2446 lines
100 KiB
React
2446 lines
100 KiB
React
/* Metro module 1156; source: unknown; dependencies: [5, 77, 57, 65, 31, 1032, 1157, 1158, 826, 1150, 1148] */
|
|
function _fun12796(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:6, offset: 0x00dd5f56, size: 534 bytes, params: 8, frame: 28
|
|
const env0_0 = require;
|
|
const cancelScheduledCallback = function(a0) {
|
|
var WINDOW = require(dependencyMap[5]).WINDOW;
|
|
if (WINDOW == null) {
|
|
(0, global.clearTimeout)(a0);
|
|
} else if (WINDOW.cancelAnimationFrame) {
|
|
WINDOW.cancelAnimationFrame(a0);
|
|
} else {
|
|
(0, global.clearTimeout)(a0);
|
|
}
|
|
};
|
|
const closure = function(a0) {
|
|
return '' + a0.pathname + (a0.search || '') + (a0.hash || '');
|
|
};
|
|
const isParameterizedRoute = function(a0) {
|
|
return a0.includes(':') || a0.includes('*');
|
|
};
|
|
const closure2 = shouldSkipNavigation;
|
|
const closure3 = addResolvedRoutesToParent;
|
|
const closure4 = processResolvedRoutes;
|
|
const closure5 = updateNavigationSpan;
|
|
const closure6 = handleNavigation;
|
|
const closure7 = function(a0) {
|
|
a0.forEach(_fun12822);
|
|
};
|
|
const env0_2 = require(5) /* metro dependency 5 */;
|
|
const env0_3 = require(77) /* metro dependency 77 */;
|
|
const env0_4 = require(57) /* metro dependency 57 */;
|
|
const env0_5 = require(65) /* metro dependency 65 */;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
const env0_11 = require(31) /* metro dependency 31 */;
|
|
const WeakSet = global.WeakSet;
|
|
const weakSet = new WeakSet();
|
|
let WeakMap = global.WeakMap;
|
|
const weakMap = new WeakMap();
|
|
const Set = global.Set;
|
|
let set = new Set();
|
|
WeakMap = global.WeakMap;
|
|
set = new WeakMap();
|
|
exports.addResolvedRoutesToParent = closure3;
|
|
exports.addRoutesToAllRoutes = closure7;
|
|
exports.allRoutes = set;
|
|
exports.computeLocationKey = closure;
|
|
exports.createReactRouterV6CompatibleTracingIntegration = createReactRouterV6CompatibleTracingIntegration;
|
|
exports.createV6CompatibleWithSentryReactRouterRouting = createV6CompatibleWithSentryReactRouterRouting;
|
|
exports.createV6CompatibleWrapCreateBrowserRouter = createV6CompatibleWrapCreateBrowserRouter;
|
|
exports.createV6CompatibleWrapCreateMemoryRouter = createV6CompatibleWrapCreateMemoryRouter;
|
|
exports.createV6CompatibleWrapUseRoutes = createV6CompatibleWrapUseRoutes;
|
|
exports.handleNavigation = closure6;
|
|
exports.processResolvedRoutes = closure4;
|
|
exports.shouldSkipNavigation = closure2;
|
|
exports.updateNavigationSpan = closure5;
|
|
}
|
|
|
|
function shouldSkipNavigation(a0, a1, a2, a3) { // fn#12800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:532, offset: 0x00dd6230, size: 309 bytes, params: 5, frame: 17
|
|
var r2;
|
|
var r4;
|
|
var length;
|
|
var r3;
|
|
var r1;
|
|
var routeName;
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var length2;
|
|
if (a0) {
|
|
if (a0.locationKey !== a1) {
|
|
return {'skip': false, 'shouldUpdate': false};
|
|
}
|
|
if (a0.isPlaceholder) {
|
|
routeName = a0.routeName;
|
|
value = !!routeName;
|
|
if (routeName) {
|
|
value = require(1157) /* metro dependency 1157 */;
|
|
value = value.transactionNameHasWildcard(a0.routeName);
|
|
r2 = value;
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
value2 = undefined;
|
|
value3 = (require(1157) /* metro dependency 1157 */).transactionNameHasWildcard(a2);
|
|
routeName = a0.routeName;
|
|
r4 = routeName ? isParameterizedRoute(a0.routeName) : !!routeName;
|
|
value = isParameterizedRoute(a2);
|
|
r2 = r2 && !value3;
|
|
r4 = !r4 && value;
|
|
routeName = a0.routeName;
|
|
value = a2 !== routeName;
|
|
if (value) {
|
|
length2 = a2.length;
|
|
routeName = a0.routeName;
|
|
length = routeName == null ? value2 : routeName.length;
|
|
length = !length ? 0 : length;
|
|
r3 = length2 > length;
|
|
} else {
|
|
r3 = value;
|
|
}
|
|
r3 = r3 && !value3;
|
|
routeName = a0.routeName;
|
|
value = !routeName;
|
|
if (routeName) {
|
|
r2 = !r2 ? r4 : r2;
|
|
r2 = !r2 ? r3 : r2;
|
|
r1 = !r2;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
return {skip: true, shouldUpdate: !r1};
|
|
}
|
|
if (a3) {
|
|
return {'skip': false, 'shouldUpdate': false};
|
|
}
|
|
routeName = a0.routeName;
|
|
value = !!routeName;
|
|
if (routeName) {
|
|
value = require(1157) /* metro dependency 1157 */;
|
|
value = value.transactionNameHasWildcard(a0.routeName);
|
|
r2 = value;
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
value2 = undefined;
|
|
value3 = (require(1157) /* metro dependency 1157 */).transactionNameHasWildcard(a2);
|
|
routeName = a0.routeName;
|
|
r4 = routeName ? isParameterizedRoute(a0.routeName) : !!routeName;
|
|
value = isParameterizedRoute(a2);
|
|
r2 = r2 && !value3;
|
|
r4 = !r4 && value;
|
|
routeName = a0.routeName;
|
|
value = a2 !== routeName;
|
|
if (value) {
|
|
length2 = a2.length;
|
|
routeName = a0.routeName;
|
|
length = routeName == null ? value2 : routeName.length;
|
|
length = !length ? 0 : length;
|
|
r3 = length2 > length;
|
|
} else {
|
|
r3 = value;
|
|
}
|
|
r3 = r3 && !value3;
|
|
routeName = a0.routeName;
|
|
value = !routeName;
|
|
if (routeName) {
|
|
r2 = !r2 ? r4 : r2;
|
|
r2 = !r2 ? r3 : r2;
|
|
r1 = !r2;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
return {skip: true, shouldUpdate: !r1};
|
|
}
|
|
return {'skip': false, 'shouldUpdate': false};
|
|
}
|
|
|
|
function addResolvedRoutesToParent(a0, a1) { // fn#12801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:1026, offset: 0x00dd6365, size: 98 bytes, params: 3, frame: 17
|
|
var items2;
|
|
const r7 = a1.children || [];
|
|
const value = a0.filter(function(a0) {
|
|
return !a0.some(_fun12803);
|
|
});
|
|
if (value.length > 0) {
|
|
items2 = [];
|
|
a1.children = items2.concat(env0_5(r7), env0_5(value));
|
|
}
|
|
}
|
|
|
|
function processResolvedRoutes(a0, a1) { // fn#12804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:1247, offset: 0x00dd6447, size: 530 bytes, params: 3, frame: 23
|
|
var r6;
|
|
var value9;
|
|
var op;
|
|
const WINDOW = (require(1032) /* metro dependency 1032 */).WINDOW;
|
|
var object2;
|
|
var Array;
|
|
var updatePageloadTransactionBinding;
|
|
const value = undefined;
|
|
const value2 = null;
|
|
const r8 = arguments.length > 2 ? value === arguments[2] ? value2 : arguments[2] : value2;
|
|
const r7 = arguments.length > 3 ? arguments[3] : value;
|
|
a0.forEach(_fun12805);
|
|
if (a1) {
|
|
addResolvedRoutesToParent(a0, a1);
|
|
}
|
|
const r5 = value2 != r7 ? r7 : (require(1157) /* metro dependency 1157 */).getActiveRootSpan();
|
|
if (r5) {
|
|
value9 = (require(826) /* metro dependency 826 */).spanToJSON(r5);
|
|
if (value9.timestamp) {
|
|
if ((require(1150) /* metro dependency 1150 */).DEBUG_BUILD) {
|
|
(require(826) /* metro dependency 826 */).debug.warn('[React Router] Lazy handler resolved after span ended - skipping update');
|
|
}
|
|
return value;
|
|
}
|
|
op = value9.op;
|
|
r6 = r8 || r7 || value === WINDOW ? r8 : value2 != WINDOW.location && WINDOW.location.pathname ? {pathname: WINDOW.location.pathname} : r8;
|
|
if (r6) {
|
|
if (op === 'pageload') {
|
|
updatePageloadTransactionBinding = updatePageloadTransaction;
|
|
object2 = {activeRootSpan: r5};
|
|
object2.location = {pathname: r6.pathname};
|
|
Array = global.Array;
|
|
object2.routes = Array.from(env0_16);
|
|
Array = global.Array;
|
|
object2.allRoutes = Array.from(env0_16);
|
|
updatePageloadTransactionBinding(object2);
|
|
} else if (op === 'navigation') {
|
|
updateNavigationSpan(r5, r6, global.Array.from(env0_16), false, env0_10);
|
|
}
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function updateNavigationSpan(a0, a1, a2) { // fn#12806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:2083, offset: 0x00dd669e, size: 524 bytes, params: 4, frame: 28
|
|
var r9;
|
|
var r4;
|
|
var r2;
|
|
var value9;
|
|
var moduleValue3;
|
|
var value10;
|
|
var property;
|
|
var property2;
|
|
var data;
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
|
|
const value = undefined;
|
|
const r7 = arguments.length > 3 && value !== arguments[3] && arguments[3];
|
|
const r6 = arguments.length > 4 ? arguments[4] : value;
|
|
const value7 = (require(826) /* metro dependency 826 */).spanToJSON(a0);
|
|
const description = value7.description;
|
|
const __sentry_navigation_name_set__ = a0 == null ? value : a0.__sentry_navigation_name_set__;
|
|
const r10 = description && (require(1157) /* metro dependency 1157 */).transactionNameHasWildcard(description);
|
|
if (__sentry_navigation_name_set__) {
|
|
if (r7) {
|
|
if (!value7.timestamp) {
|
|
value9 = r6(a2, a1);
|
|
moduleValue3 = require(1157) /* metro dependency 1157 */;
|
|
value10 = env0_4(moduleValue3.resolveRouteNameAndSource(a1, a2, a2, value9 || [], ''), 2);
|
|
property = value10[0];
|
|
property2 = value10[1];
|
|
data = value7.data;
|
|
r9 = data == null ? value : data[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];
|
|
if (property) {
|
|
r4 = description ? !__sentry_navigation_name_set__ && (r9 !== 'route' || property2 === 'route') : !description;
|
|
r4 = !r4 ? r9 !== 'route' && property2 === 'route' : r4;
|
|
if (!r4) {
|
|
r9 = r9 === 'route' && property2 === 'route';
|
|
r9 = r9 && r10;
|
|
r4 = r9;
|
|
}
|
|
r2 = r4;
|
|
} else {
|
|
r2 = property;
|
|
}
|
|
if (r2) {
|
|
a0.updateName(property);
|
|
a0.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, property2);
|
|
if (!((require(1157) /* metro dependency 1157 */).transactionNameHasWildcard(property) || property2 !== 'route')) {
|
|
(require(826) /* metro dependency 826 */).addNonEnumerableProperty(a0,
|
|
'__sentry_navigation_name_set__',
|
|
true);
|
|
}
|
|
}
|
|
}
|
|
} else if (r10) {
|
|
if (!value7.timestamp) {
|
|
value9 = r6(a2, a1);
|
|
moduleValue3 = require(1157) /* metro dependency 1157 */;
|
|
value10 = env0_4(moduleValue3.resolveRouteNameAndSource(a1, a2, a2, value9 || [], ''), 2);
|
|
property = value10[0];
|
|
property2 = value10[1];
|
|
data = value7.data;
|
|
r9 = data == null ? value : data[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];
|
|
if (property) {
|
|
r4 = description ? !__sentry_navigation_name_set__ && (r9 !== 'route' || property2 === 'route') : !description;
|
|
r4 = !r4 ? r9 !== 'route' && property2 === 'route' : r4;
|
|
if (!r4) {
|
|
r9 = r9 === 'route' && property2 === 'route';
|
|
r9 = r9 && r10;
|
|
r4 = r9;
|
|
}
|
|
r2 = r4;
|
|
} else {
|
|
r2 = property;
|
|
}
|
|
if (r2) {
|
|
a0.updateName(property);
|
|
a0.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, property2);
|
|
if (!((require(1157) /* metro dependency 1157 */).transactionNameHasWildcard(property) || property2 !== 'route')) {
|
|
(require(826) /* metro dependency 826 */).addNonEnumerableProperty(a0,
|
|
'__sentry_navigation_name_set__',
|
|
true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else if (!value7.timestamp) {
|
|
value9 = r6(a2, a1);
|
|
moduleValue3 = require(1157) /* metro dependency 1157 */;
|
|
value10 = env0_4(moduleValue3.resolveRouteNameAndSource(a1, a2, a2, value9 || [], ''), 2);
|
|
property = value10[0];
|
|
property2 = value10[1];
|
|
data = value7.data;
|
|
r9 = data == null ? value : data[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];
|
|
if (property) {
|
|
r4 = description ? !__sentry_navigation_name_set__ && (r9 !== 'route' || property2 === 'route') : !description;
|
|
r4 = !r4 ? r9 !== 'route' && property2 === 'route' : r4;
|
|
if (!r4) {
|
|
r9 = r9 === 'route' && property2 === 'route';
|
|
r9 = r9 && r10;
|
|
r4 = r9;
|
|
}
|
|
r2 = r4;
|
|
} else {
|
|
r2 = property;
|
|
}
|
|
if (r2) {
|
|
a0.updateName(property);
|
|
a0.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, property2);
|
|
if (!((require(1157) /* metro dependency 1157 */).transactionNameHasWildcard(property) || property2 !== 'route')) {
|
|
(require(826) /* metro dependency 826 */).addNonEnumerableProperty(a0, '__sentry_navigation_name_set__',
|
|
true);
|
|
}
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function setupRouterSubscription(a0, a1, a2, a3, a4) { // fn#12807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:2850, offset: 0x00dd68aa, size: 133 bytes, params: 6, frame: 16
|
|
const env0_0 = a1;
|
|
const env0_1 = a2;
|
|
const env0_2 = a3;
|
|
let value = !!a4;
|
|
if (a4) {
|
|
value = require(826) /* metro dependency 826 */;
|
|
value = value.spanToJSON(a4).op === 'pageload';
|
|
}
|
|
a0.subscribe(_fun12808);
|
|
}
|
|
|
|
function wrapPatchRoutesOnNavigation(a0) { // fn#12810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:3690, offset: 0x00dd6b51, size: 146 bytes, params: 2, frame: 18
|
|
var patchRoutesOnNavigation;
|
|
var Object;
|
|
var assign;
|
|
const value = a0;
|
|
const r2 = arguments.length > 1 && arguments[1] !== undefined && arguments[1];
|
|
if (value) {
|
|
if ('patchRoutesOnNavigation' in value) {
|
|
patchRoutesOnNavigation = value.patchRoutesOnNavigation;
|
|
if (typeof patchRoutesOnNavigation !== 'function') {
|
|
return value || ({});
|
|
}
|
|
patchRoutesOnNavigation = value.patchRoutesOnNavigation;
|
|
var env0_2 = patchRoutesOnNavigation;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
var env0_1 = env0_2(_fun12812);
|
|
return Reflect.apply(assign, Object, [{}, value, {patchRoutesOnNavigation: patchRoutesOnNavigation}]);
|
|
}
|
|
}
|
|
return value || ({});
|
|
}
|
|
|
|
function handleNavigation({location, routes, navigationType, version, matches, basename, allRoutes}) { // fn#12819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:4961, offset: 0x00dd6fc2, size: 1323 bytes, params: 2, frame: 40
|
|
var r13;
|
|
var r7;
|
|
var moduleValue3;
|
|
var moduleValue4;
|
|
var resolveRouteNameAndSource;
|
|
var value4;
|
|
var property;
|
|
var property2;
|
|
var locationKey;
|
|
var value5;
|
|
var shouldSkipNavigationBinding;
|
|
var moduleValue5;
|
|
var span;
|
|
var shouldSkipNavigation2;
|
|
var object;
|
|
var moduleValue6;
|
|
var startBrowserTracingNavigationSpan;
|
|
var object2;
|
|
var routeName;
|
|
var moduleValue7;
|
|
var SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
|
|
var object5;
|
|
var value9;
|
|
var moduleValue8;
|
|
var SEMANTIC_ATTRIBUTE_SENTRY_OP;
|
|
var value10;
|
|
var moduleValue9;
|
|
var SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
var concat;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var error;
|
|
const DEBUG_BUILD = require(dependencyMap[9]).DEBUG_BUILD;
|
|
const debug = require(dependencyMap[8]).debug;
|
|
var moduleValue10;
|
|
var addNonEnumerableProperty;
|
|
const Array = global.Array;
|
|
const r19 = Array.isArray(matches) ? matches : env0_10(allRoutes || routes, location, basename);
|
|
const client = require(dependencyMap[8]).getClient();
|
|
if (client) {
|
|
var binding = env0_14;
|
|
if (!binding.has(client)) {
|
|
return undefined;
|
|
}
|
|
var activeRootSpan = require(dependencyMap[6]).getActiveRootSpan();
|
|
if (activeRootSpan) {
|
|
moduleValue3 = require(dependencyMap[8]);
|
|
if (moduleValue3.spanToJSON(activeRootSpan).op !== 'pageload') {
|
|
if (navigationType === 'PUSH') {
|
|
if (!r19) {
|
|
return undefined;
|
|
}
|
|
moduleValue4 = require(dependencyMap[6]);
|
|
resolveRouteNameAndSource = moduleValue4.resolveRouteNameAndSource;
|
|
r13 = allRoutes || routes;
|
|
r7 = allRoutes || routes;
|
|
value4 = env0_4(Reflect.apply(resolveRouteNameAndSource, moduleValue4, [location, r13, r7, r19,
|
|
basename]),
|
|
2);
|
|
property = value4[0];
|
|
property2 = value4[1];
|
|
locationKey = computeLocationKey(location);
|
|
binding = env0_15;
|
|
value5 = binding.get(client);
|
|
shouldSkipNavigationBinding = shouldSkipNavigation;
|
|
r7 = value5 ? value5.isPlaceholder : !value5;
|
|
if (r7) {
|
|
r7 = !r7;
|
|
} else {
|
|
moduleValue5 = require(dependencyMap[8]);
|
|
r7 = !!moduleValue5.spanToJSON(value5.span).timestamp;
|
|
}
|
|
shouldSkipNavigation2 = shouldSkipNavigationBinding(value5, locationKey, property, r7);
|
|
if (shouldSkipNavigation2.skip) {
|
|
if (shouldSkipNavigation2.shouldUpdate) {
|
|
if (value5) {
|
|
routeName = value5.routeName;
|
|
if (value5.isPlaceholder) {
|
|
value5.routeName = property;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Updated placeholder navigation name from "' + routeName + '" to "' + property + '" (will apply to real span)');
|
|
}
|
|
} else {
|
|
span = value5.span;
|
|
span.updateName(property);
|
|
span = value5.span;
|
|
span.setAttribute(require(dependencyMap[8]).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
|
|
property2);
|
|
moduleValue10 = require(dependencyMap[8]);
|
|
addNonEnumerableProperty = moduleValue10.addNonEnumerableProperty;
|
|
span = value5.span;
|
|
Reflect.apply(addNonEnumerableProperty, moduleValue10, [span,
|
|
'__sentry_navigation_name_set__',
|
|
true]);
|
|
value5.routeName = property;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Updated navigation span name from "' + routeName + '" to "' + property + '"');
|
|
}
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Skipping duplicate navigation for location: ' + locationKey);
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Skipping duplicate navigation for location: ' + locationKey);
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env0_15;
|
|
binding.set(client, {span: {end: function() {
|
|
}}, routeName: property, pathname: location.pathname, locationKey: locationKey,
|
|
isPlaceholder: true});
|
|
} else {
|
|
if (navigationType !== 'POP') {
|
|
return undefined;
|
|
}
|
|
if (!r19) {
|
|
return undefined;
|
|
}
|
|
moduleValue4 = require(dependencyMap[6]);
|
|
resolveRouteNameAndSource = moduleValue4.resolveRouteNameAndSource;
|
|
r13 = allRoutes || routes;
|
|
r7 = allRoutes || routes;
|
|
value4 = env0_4(Reflect.apply(resolveRouteNameAndSource, moduleValue4, [location, r13, r7, r19,
|
|
basename]),
|
|
2);
|
|
property = value4[0];
|
|
property2 = value4[1];
|
|
locationKey = computeLocationKey(location);
|
|
binding = env0_15;
|
|
value5 = binding.get(client);
|
|
shouldSkipNavigationBinding = shouldSkipNavigation;
|
|
r7 = value5 ? value5.isPlaceholder : !value5;
|
|
if (r7) {
|
|
r7 = !r7;
|
|
} else {
|
|
moduleValue5 = require(dependencyMap[8]);
|
|
r7 = !!moduleValue5.spanToJSON(value5.span).timestamp;
|
|
}
|
|
shouldSkipNavigation2 = shouldSkipNavigationBinding(value5, locationKey, property, r7);
|
|
if (shouldSkipNavigation2.skip) {
|
|
if (shouldSkipNavigation2.shouldUpdate) {
|
|
if (value5) {
|
|
routeName = value5.routeName;
|
|
if (value5.isPlaceholder) {
|
|
value5.routeName = property;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Updated placeholder navigation name from "' + routeName + '" to "' + property + '" (will apply to real span)');
|
|
}
|
|
} else {
|
|
span = value5.span;
|
|
span.updateName(property);
|
|
span = value5.span;
|
|
span.setAttribute(require(dependencyMap[8]).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
|
|
property2);
|
|
moduleValue10 = require(dependencyMap[8]);
|
|
addNonEnumerableProperty = moduleValue10.addNonEnumerableProperty;
|
|
span = value5.span;
|
|
Reflect.apply(addNonEnumerableProperty, moduleValue10, [span,
|
|
'__sentry_navigation_name_set__',
|
|
true]);
|
|
value5.routeName = property;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Updated navigation span name from "' + routeName + '" to "' + property + '"');
|
|
}
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Skipping duplicate navigation for location: ' + locationKey);
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Skipping duplicate navigation for location: ' + locationKey);
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env0_15;
|
|
binding.set(client, {span: {end: end_12820}, routeName: property, pathname: location.pathname,
|
|
locationKey: locationKey, isPlaceholder: true});
|
|
}
|
|
} else {
|
|
if (navigationType === 'POP') {
|
|
return undefined;
|
|
}
|
|
if (navigationType === 'PUSH') {
|
|
if (!r19) {
|
|
return undefined;
|
|
}
|
|
moduleValue4 = require(dependencyMap[6]);
|
|
resolveRouteNameAndSource = moduleValue4.resolveRouteNameAndSource;
|
|
r13 = allRoutes || routes;
|
|
r7 = allRoutes || routes;
|
|
value4 = env0_4(Reflect.apply(resolveRouteNameAndSource, moduleValue4, [location, r13, r7, r19,
|
|
basename]),
|
|
2);
|
|
property = value4[0];
|
|
property2 = value4[1];
|
|
locationKey = computeLocationKey(location);
|
|
binding = env0_15;
|
|
value5 = binding.get(client);
|
|
shouldSkipNavigationBinding = shouldSkipNavigation;
|
|
r7 = value5 ? value5.isPlaceholder : !value5;
|
|
if (r7) {
|
|
r7 = !r7;
|
|
} else {
|
|
moduleValue5 = require(dependencyMap[8]);
|
|
r7 = !!moduleValue5.spanToJSON(value5.span).timestamp;
|
|
}
|
|
shouldSkipNavigation2 = shouldSkipNavigationBinding(value5, locationKey, property, r7);
|
|
if (shouldSkipNavigation2.skip) {
|
|
if (shouldSkipNavigation2.shouldUpdate) {
|
|
if (value5) {
|
|
routeName = value5.routeName;
|
|
if (value5.isPlaceholder) {
|
|
value5.routeName = property;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Updated placeholder navigation name from "' + routeName + '" to "' + property + '" (will apply to real span)');
|
|
}
|
|
} else {
|
|
span = value5.span;
|
|
span.updateName(property);
|
|
span = value5.span;
|
|
span.setAttribute(require(dependencyMap[8]).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
|
|
property2);
|
|
moduleValue10 = require(dependencyMap[8]);
|
|
addNonEnumerableProperty = moduleValue10.addNonEnumerableProperty;
|
|
span = value5.span;
|
|
Reflect.apply(addNonEnumerableProperty, moduleValue10, [span,
|
|
'__sentry_navigation_name_set__',
|
|
true]);
|
|
value5.routeName = property;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Updated navigation span name from "' + routeName + '" to "' + property + '"');
|
|
}
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Skipping duplicate navigation for location: ' + locationKey);
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Skipping duplicate navigation for location: ' + locationKey);
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env0_15;
|
|
binding.set(client, {span: {end: end_12820}, routeName: property, pathname: location.pathname,
|
|
locationKey: locationKey, isPlaceholder: true});
|
|
} else {
|
|
if (navigationType !== 'POP') {
|
|
return undefined;
|
|
}
|
|
if (!r19) {
|
|
return undefined;
|
|
}
|
|
moduleValue4 = require(dependencyMap[6]);
|
|
resolveRouteNameAndSource = moduleValue4.resolveRouteNameAndSource;
|
|
r13 = allRoutes || routes;
|
|
r7 = allRoutes || routes;
|
|
value4 = env0_4(Reflect.apply(resolveRouteNameAndSource, moduleValue4, [location, r13, r7, r19,
|
|
basename]),
|
|
2);
|
|
property = value4[0];
|
|
property2 = value4[1];
|
|
locationKey = computeLocationKey(location);
|
|
binding = env0_15;
|
|
value5 = binding.get(client);
|
|
shouldSkipNavigationBinding = shouldSkipNavigation;
|
|
r7 = value5 ? value5.isPlaceholder : !value5;
|
|
if (r7) {
|
|
r7 = !r7;
|
|
} else {
|
|
moduleValue5 = require(dependencyMap[8]);
|
|
r7 = !!moduleValue5.spanToJSON(value5.span).timestamp;
|
|
}
|
|
shouldSkipNavigation2 = shouldSkipNavigationBinding(value5, locationKey, property, r7);
|
|
if (shouldSkipNavigation2.skip) {
|
|
if (shouldSkipNavigation2.shouldUpdate) {
|
|
if (value5) {
|
|
routeName = value5.routeName;
|
|
if (value5.isPlaceholder) {
|
|
value5.routeName = property;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Updated placeholder navigation name from "' + routeName + '" to "' + property + '" (will apply to real span)');
|
|
}
|
|
} else {
|
|
span = value5.span;
|
|
span.updateName(property);
|
|
span = value5.span;
|
|
span.setAttribute(require(dependencyMap[8]).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
|
|
property2);
|
|
moduleValue10 = require(dependencyMap[8]);
|
|
addNonEnumerableProperty = moduleValue10.addNonEnumerableProperty;
|
|
span = value5.span;
|
|
Reflect.apply(addNonEnumerableProperty, moduleValue10, [span,
|
|
'__sentry_navigation_name_set__',
|
|
true]);
|
|
value5.routeName = property;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Updated navigation span name from "' + routeName + '" to "' + property + '"');
|
|
}
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Skipping duplicate navigation for location: ' + locationKey);
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Skipping duplicate navigation for location: ' + locationKey);
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env0_15;
|
|
binding.set(client, {span: {end: end_12820}, routeName: property, pathname: location.pathname,
|
|
locationKey: locationKey, isPlaceholder: true});
|
|
}
|
|
}
|
|
} else if (navigationType === 'PUSH') {
|
|
if (!r19) {
|
|
return undefined;
|
|
}
|
|
moduleValue4 = require(dependencyMap[6]);
|
|
resolveRouteNameAndSource = moduleValue4.resolveRouteNameAndSource;
|
|
r13 = allRoutes || routes;
|
|
r7 = allRoutes || routes;
|
|
value4 = env0_4(Reflect.apply(resolveRouteNameAndSource, moduleValue4, [location, r13, r7, r19, basename]),
|
|
2);
|
|
property = value4[0];
|
|
property2 = value4[1];
|
|
locationKey = computeLocationKey(location);
|
|
binding = env0_15;
|
|
value5 = binding.get(client);
|
|
shouldSkipNavigationBinding = shouldSkipNavigation;
|
|
r7 = value5 ? value5.isPlaceholder : !value5;
|
|
if (r7) {
|
|
r7 = !r7;
|
|
} else {
|
|
moduleValue5 = require(dependencyMap[8]);
|
|
r7 = !!moduleValue5.spanToJSON(value5.span).timestamp;
|
|
}
|
|
shouldSkipNavigation2 = shouldSkipNavigationBinding(value5, locationKey, property, r7);
|
|
if (shouldSkipNavigation2.skip) {
|
|
if (shouldSkipNavigation2.shouldUpdate) {
|
|
if (value5) {
|
|
routeName = value5.routeName;
|
|
if (value5.isPlaceholder) {
|
|
value5.routeName = property;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Updated placeholder navigation name from "' + routeName + '" to "' + property + '" (will apply to real span)');
|
|
}
|
|
} else {
|
|
span = value5.span;
|
|
span.updateName(property);
|
|
span = value5.span;
|
|
span.setAttribute(require(dependencyMap[8]).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, property2);
|
|
moduleValue10 = require(dependencyMap[8]);
|
|
addNonEnumerableProperty = moduleValue10.addNonEnumerableProperty;
|
|
span = value5.span;
|
|
Reflect.apply(addNonEnumerableProperty, moduleValue10, [span,
|
|
'__sentry_navigation_name_set__',
|
|
true]);
|
|
value5.routeName = property;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Updated navigation span name from "' + routeName + '" to "' + property + '"');
|
|
}
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Skipping duplicate navigation for location: ' + locationKey);
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Skipping duplicate navigation for location: ' + locationKey);
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env0_15;
|
|
binding.set(client, {span: {end: end_12820}, routeName: property, pathname: location.pathname,
|
|
locationKey: locationKey, isPlaceholder: true});
|
|
} else {
|
|
if (navigationType !== 'POP') {
|
|
return undefined;
|
|
}
|
|
if (!r19) {
|
|
return undefined;
|
|
}
|
|
moduleValue4 = require(dependencyMap[6]);
|
|
resolveRouteNameAndSource = moduleValue4.resolveRouteNameAndSource;
|
|
r13 = allRoutes || routes;
|
|
r7 = allRoutes || routes;
|
|
value4 = env0_4(Reflect.apply(resolveRouteNameAndSource, moduleValue4, [location, r13, r7, r19, basename]),
|
|
2);
|
|
property = value4[0];
|
|
property2 = value4[1];
|
|
locationKey = computeLocationKey(location);
|
|
binding = env0_15;
|
|
value5 = binding.get(client);
|
|
shouldSkipNavigationBinding = shouldSkipNavigation;
|
|
r7 = value5 ? value5.isPlaceholder : !value5;
|
|
if (r7) {
|
|
r7 = !r7;
|
|
} else {
|
|
moduleValue5 = require(dependencyMap[8]);
|
|
r7 = !!moduleValue5.spanToJSON(value5.span).timestamp;
|
|
}
|
|
shouldSkipNavigation2 = shouldSkipNavigationBinding(value5, locationKey, property, r7);
|
|
if (shouldSkipNavigation2.skip) {
|
|
if (shouldSkipNavigation2.shouldUpdate) {
|
|
if (value5) {
|
|
routeName = value5.routeName;
|
|
if (value5.isPlaceholder) {
|
|
value5.routeName = property;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Updated placeholder navigation name from "' + routeName + '" to "' + property + '" (will apply to real span)');
|
|
}
|
|
} else {
|
|
span = value5.span;
|
|
span.updateName(property);
|
|
span = value5.span;
|
|
span.setAttribute(require(dependencyMap[8]).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, property2);
|
|
moduleValue10 = require(dependencyMap[8]);
|
|
addNonEnumerableProperty = moduleValue10.addNonEnumerableProperty;
|
|
span = value5.span;
|
|
Reflect.apply(addNonEnumerableProperty, moduleValue10, [span,
|
|
'__sentry_navigation_name_set__',
|
|
true]);
|
|
value5.routeName = property;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Updated navigation span name from "' + routeName + '" to "' + property + '"');
|
|
}
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Skipping duplicate navigation for location: ' + locationKey);
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.log('[Tracing] Skipping duplicate navigation for location: ' + locationKey);
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env0_15;
|
|
binding.set(client, {span: {end: end_12820}, routeName: property, pathname: location.pathname,
|
|
locationKey: locationKey, isPlaceholder: true});
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[5];
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue6 = require(property);
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
startBrowserTracingNavigationSpan = moduleValue6.startBrowserTracingNavigationSpan;
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
routeName = object.routeName;
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.name = routeName;
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env0_3;
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[8];
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue7 = require(property);
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = moduleValue7.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
value9 = binding(object5, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, property2);
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[8];
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue8 = require(property);
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
SEMANTIC_ATTRIBUTE_SENTRY_OP = moduleValue8.SEMANTIC_ATTRIBUTE_SENTRY_OP;
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
value10 = binding(value9, SEMANTIC_ATTRIBUTE_SENTRY_OP, 'navigation');
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[8];
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue9 = require(property);
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = moduleValue9.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(concat, 'auto.navigation.react.reactrouter_v', [version]);
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = binding(value10, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, value11);
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.attributes = value12;
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(startBrowserTracingNavigationSpan, moduleValue6, [client, object2]);
|
|
} catch (error) {
|
|
binding = env0_15;
|
|
binding.delete(client);
|
|
throw error;
|
|
}
|
|
binding = env0_15;
|
|
if (value13) {
|
|
binding.set(client, {span: value13, routeName: object.routeName, pathname: location.pathname,
|
|
locationKey: locationKey});
|
|
patchSpanEnd(value13, location, routes, basename, allRoutes, 'navigation');
|
|
} else {
|
|
binding.delete(client);
|
|
}
|
|
}
|
|
}
|
|
|
|
function addRoutesToAllRoutes(a0) { // fn#12821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:6665, offset: 0x00dd74ed, size: 24 bytes, params: 2, frame: 11
|
|
a0.forEach(_fun12822);
|
|
}
|
|
|
|
function getChildRoutesRecursively(a0) { // fn#12824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:6786, offset: 0x00dd7541, size: 129 bytes, params: 2, frame: 14
|
|
const r0 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new global.Set();
|
|
if (!r0.has(a0)) {
|
|
r0.add(a0);
|
|
if (a0.children && !a0.index) {
|
|
a0.children.forEach(_fun12825);
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function updatePageloadTransaction({activeRootSpan, location, routes, matches, basename, allRoutes}) { // fn#12827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:7044, offset: 0x00dd7606, size: 325 bytes, params: 2, frame: 27
|
|
var r1;
|
|
var r8;
|
|
var moduleValue;
|
|
var resolveRouteNameAndSource;
|
|
var value2;
|
|
var property;
|
|
var property2;
|
|
var currentScope;
|
|
var setTransactionName;
|
|
const Array = global.Array;
|
|
const r11 = Array.isArray(matches) ? matches : env0_10(allRoutes || routes, location, basename);
|
|
if (r11) {
|
|
moduleValue = require(1157) /* metro dependency 1157 */;
|
|
resolveRouteNameAndSource = moduleValue.resolveRouteNameAndSource;
|
|
r8 = allRoutes || routes;
|
|
r1 = allRoutes || routes;
|
|
value2 = env0_4(Reflect.apply(resolveRouteNameAndSource, moduleValue, [location, r8, r1, r11, basename]), 2);
|
|
property = value2[0];
|
|
property2 = value2[1];
|
|
currentScope = (require(826) /* metro dependency 826 */).getCurrentScope();
|
|
setTransactionName = currentScope.setTransactionName;
|
|
r1 = property || '/';
|
|
Reflect.apply(setTransactionName, currentScope, [r1]);
|
|
if (activeRootSpan) {
|
|
activeRootSpan.updateName(property);
|
|
activeRootSpan.setAttribute((require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
|
|
property2);
|
|
patchSpanEnd(activeRootSpan, location, routes, basename, allRoutes, 'pageload');
|
|
}
|
|
}
|
|
}
|
|
|
|
function tryUpdateSpanNameBeforeEnd(a0, a1, a2, a3, a4, a5, a6, a7) { // fn#12828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:7459, offset: 0x00dd774b, size: 530 bytes, params: 9, frame: 35
|
|
var environment;
|
|
var r19;
|
|
var r6;
|
|
var data;
|
|
var value3;
|
|
var value4;
|
|
var property;
|
|
var moduleValue;
|
|
var SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
|
|
var value5;
|
|
var value6;
|
|
var moduleValue2;
|
|
var transactionNameHasWildcard;
|
|
var value7;
|
|
var Array;
|
|
var from;
|
|
var value8;
|
|
var length;
|
|
var value9;
|
|
var binding;
|
|
var value10;
|
|
var moduleValue3;
|
|
var resolveRouteNameAndSource;
|
|
var routeNameAndSource;
|
|
var value11;
|
|
var property2;
|
|
var closure;
|
|
var value12;
|
|
var value13;
|
|
var timestamp;
|
|
var value14;
|
|
var updateName;
|
|
var setAttribute;
|
|
var error;
|
|
var DEBUG_BUILD;
|
|
var debug;
|
|
var warn;
|
|
var HermesInternal;
|
|
var concat;
|
|
let value = a4;
|
|
const value2 = undefined;
|
|
reducibleJoin3: while (true) {
|
|
reduciblePort81: while (true) {
|
|
exceptionLanding79: while (true) {
|
|
try {
|
|
data = a1.data;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
value = environment;
|
|
DEBUG_BUILD = require(dependencyMap[9]).DEBUG_BUILD;
|
|
reducibleJoin81: while (true) {
|
|
if (DEBUG_BUILD) {
|
|
debug = require(dependencyMap[8]).debug;
|
|
warn = debug.warn;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(warn, debug, ['Error updating span details before ending: ' + error]);
|
|
break reducibleJoin81;
|
|
}
|
|
break reducibleJoin81;
|
|
}
|
|
break reduciblePort81;
|
|
}
|
|
return value2;
|
|
}
|
|
try {
|
|
value3 = data == null;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
reducibleJoin14: while (true) {
|
|
if (value3) {
|
|
r19 = value2;
|
|
break reducibleJoin14;
|
|
}
|
|
value4 = environment;
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
property = dependencyMap[8];
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
moduleValue = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = moduleValue.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
property = data[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
r19 = property;
|
|
break reducibleJoin14;
|
|
}
|
|
try {
|
|
value5 = r19 !== 'route';
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
if (!value5) {
|
|
reducibleJoin28: while (true) {
|
|
if (a2) {
|
|
value6 = environment;
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
property = dependencyMap[6];
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
moduleValue2 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
transactionNameHasWildcard = moduleValue2.transactionNameHasWildcard;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(transactionNameHasWildcard, moduleValue2, [a2]);
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
if (!value7) {
|
|
return value2;
|
|
}
|
|
break reducibleJoin28;
|
|
}
|
|
break reducibleJoin28;
|
|
}
|
|
}
|
|
try {
|
|
Array = global.Array;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
from = Array.from;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(from, Array, [a7]);
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
length = value8.length;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
value9 = length > 0;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
const r20 = value9 ? value8 : value;
|
|
value = environment;
|
|
try {
|
|
binding = env0_10;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
value10 = binding(r20, a3, a5);
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
if (value10) {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
property = dependencyMap[6];
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
moduleValue3 = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
resolveRouteNameAndSource = moduleValue3.resolveRouteNameAndSource;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
routeNameAndSource = Reflect.apply(resolveRouteNameAndSource, moduleValue3, [a3, r20, r20, value10, a5]);
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
binding = env0_4;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
value11 = binding(routeNameAndSource, 2);
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
property = value11[0];
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
property2 = value11[1];
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
closure = shouldUpdateWildcardSpanName;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
value12 = closure(a2, r19, property, property2, true);
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
value13 = a6 === 'pageload';
|
|
reducibleJoin66: while (true) {
|
|
if (value13) {
|
|
r6 = value13;
|
|
break reducibleJoin66;
|
|
}
|
|
try {
|
|
timestamp = a1.timestamp;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
value14 = !timestamp;
|
|
r6 = value14;
|
|
break reducibleJoin66;
|
|
}
|
|
reducibleJoin68: while (true) {
|
|
if (value12) {
|
|
break reducibleJoin68;
|
|
}
|
|
r6 = value12;
|
|
break reducibleJoin68;
|
|
}
|
|
reducibleJoin81: while (true) {
|
|
if (r6) {
|
|
try {
|
|
updateName = a0.updateName;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
Reflect.apply(updateName, a0, [property]);
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
setAttribute = a0.setAttribute;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
property = dependencyMap[8];
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
value = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = value.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
try {
|
|
Reflect.apply(setAttribute, a0, [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, property2]);
|
|
} catch (error) {
|
|
break exceptionLanding79;
|
|
}
|
|
break reducibleJoin81;
|
|
}
|
|
break reducibleJoin81;
|
|
}
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function patchSpanEnd(a0, a1, a2, a3, a4, a5) { // fn#12830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:8280, offset: 0x00dd7a1c, size: 223 bytes, params: 7, frame: 18
|
|
var set;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
const env0_3 = a3;
|
|
const env0_4 = a5;
|
|
const value = '__sentry_' + a5 + '_end_patched__';
|
|
const value2 = undefined;
|
|
if (!(a0 == null ? value2 : a0[value])) {
|
|
if (a0.end) {
|
|
if (a4) {
|
|
set = new global.Set(a4);
|
|
}
|
|
var env0_6 = a0.end.bind(a0);
|
|
a0.end = end_12831;
|
|
(require(826) /* metro dependency 826 */).addNonEnumerableProperty(a0, value, true);
|
|
}
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function createReactRouterV6CompatibleTracingIntegration(a0, a1) { // fn#12837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:9538, offset: 0x00dd7e22, size: 271 bytes, params: 3, frame: 20
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
var value;
|
|
const browserTracingIntegration = (require(1032) /* metro dependency 1032 */).browserTracingIntegration;
|
|
let Object = global.Object;
|
|
value = Reflect.apply(browserTracingIntegration, value, [Object.assign({}, a0, {'instrumentPageLoad': false,
|
|
'instrumentNavigation': false})]);
|
|
const env0_3 = a0.useEffect;
|
|
const env0_4 = a0.useLocation;
|
|
const env0_5 = a0.useNavigationType;
|
|
const env0_6 = a0.createRoutesFromChildren;
|
|
const env0_7 = a0.matchRoutes;
|
|
const env0_8 = a0.stripBasename;
|
|
const enableAsyncRouteHandlers = a0.enableAsyncRouteHandlers;
|
|
let r5 = enableAsyncRouteHandlers !== undefined && enableAsyncRouteHandlers;
|
|
const instrumentPageLoad = a0.instrumentPageLoad;
|
|
r5 = instrumentPageLoad === undefined || instrumentPageLoad;
|
|
const instrumentNavigation = a0.instrumentNavigation;
|
|
const env0_11 = instrumentNavigation === undefined || instrumentNavigation;
|
|
const env0_12 = a0.lazyRouteTimeout;
|
|
Object = global.Object;
|
|
return Object.assign({}, value, {setup: setup_12838, afterAllSetup: afterAllSetup});
|
|
}
|
|
|
|
function createV6CompatibleWithSentryReactRouterRouting(a0, a1) { // fn#12840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:11108, offset: 0x00dd8244, size: 238 bytes, params: 3, frame: 34
|
|
const DEBUG_BUILD = (require(1150) /* metro dependency 1150 */).DEBUG_BUILD;
|
|
const debug = (require(826) /* metro dependency 826 */).debug;
|
|
var closure;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
if (env0_6) {
|
|
if (env0_7) {
|
|
if (env0_8) {
|
|
if (env0_9) {
|
|
if (env0_10) {
|
|
closure = createV6CompatibleWithSentryReactRouterRoutingSentryRoutes;
|
|
(require(1148) /* metro dependency 1148 */).hoistNonReactStatics(closure, a0);
|
|
return closure;
|
|
}
|
|
if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n useEffect: ' + env0_6 + '. useLocation: ' + env0_7 + '. useNavigationType: ' + env0_8 + '.\n createRoutesFromChildren: ' + env0_9 + '. matchRoutes: ' + env0_10 + '.');
|
|
}
|
|
return a0;
|
|
}
|
|
if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n useEffect: ' + env0_6 + '. useLocation: ' + env0_7 + '. useNavigationType: ' + env0_8 + '.\n createRoutesFromChildren: ' + env0_9 + '. matchRoutes: ' + env0_10 + '.');
|
|
}
|
|
return a0;
|
|
}
|
|
if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n useEffect: ' + env0_6 + '. useLocation: ' + env0_7 + '. useNavigationType: ' + env0_8 + '.\n createRoutesFromChildren: ' + env0_9 + '. matchRoutes: ' + env0_10 + '.');
|
|
}
|
|
return a0;
|
|
}
|
|
if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n useEffect: ' + env0_6 + '. useLocation: ' + env0_7 + '. useNavigationType: ' + env0_8 + '.\n createRoutesFromChildren: ' + env0_9 + '. matchRoutes: ' + env0_10 + '.');
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n useEffect: ' + env0_6 + '. useLocation: ' + env0_7 + '. useNavigationType: ' + env0_8 + '.\n createRoutesFromChildren: ' + env0_9 + '. matchRoutes: ' + env0_10 + '.');
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function createV6CompatibleWrapCreateBrowserRouter(a0, a1) { // fn#12843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:11967, offset: 0x00dd848e, size: 160 bytes, params: 3, frame: 18
|
|
var r0;
|
|
const DEBUG_BUILD = (require(1150) /* metro dependency 1150 */).DEBUG_BUILD;
|
|
const debug = (require(826) /* metro dependency 826 */).debug;
|
|
const value = a0;
|
|
const env0_1 = a1;
|
|
if (env0_6) {
|
|
if (env0_7) {
|
|
if (env0_8) {
|
|
if (env0_10) {
|
|
r0 = _fun12844;
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV' + a1 + 'Instrumentation was unable to wrap the `createRouter` function because of one or more missing parameters.');
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV' + a1 + 'Instrumentation was unable to wrap the `createRouter` function because of one or more missing parameters.');
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV' + a1 + 'Instrumentation was unable to wrap the `createRouter` function because of one or more missing parameters.');
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV' + a1 + 'Instrumentation was unable to wrap the `createRouter` function because of one or more missing parameters.');
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function createV6CompatibleWrapCreateMemoryRouter(a0, a1) { // fn#12845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:12676, offset: 0x00dd8647, size: 160 bytes, params: 3, frame: 18
|
|
var r0;
|
|
const DEBUG_BUILD = (require(1150) /* metro dependency 1150 */).DEBUG_BUILD;
|
|
const debug = (require(826) /* metro dependency 826 */).debug;
|
|
const value = a0;
|
|
const env0_1 = a1;
|
|
if (env0_6) {
|
|
if (env0_7) {
|
|
if (env0_8) {
|
|
if (env0_10) {
|
|
r0 = _fun12846;
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV' + a1 + 'Instrumentation was unable to wrap the `createMemoryRouter` function because of one or more missing parameters.');
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV' + a1 + 'Instrumentation was unable to wrap the `createMemoryRouter` function because of one or more missing parameters.');
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV' + a1 + 'Instrumentation was unable to wrap the `createMemoryRouter` function because of one or more missing parameters.');
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV' + a1 + 'Instrumentation was unable to wrap the `createMemoryRouter` function because of one or more missing parameters.');
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function createV6CompatibleWrapUseRoutes(a0, a1) { // fn#12847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:13555, offset: 0x00dd8878, size: 138 bytes, params: 3, frame: 14
|
|
const DEBUG_BUILD = (require(1150) /* metro dependency 1150 */).DEBUG_BUILD;
|
|
const debug = (require(826) /* metro dependency 826 */).debug;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
if (env0_6) {
|
|
if (env0_7) {
|
|
if (env0_8) {
|
|
if (env0_10) {
|
|
return _fun12850;
|
|
}
|
|
if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters.');
|
|
}
|
|
return a0;
|
|
}
|
|
if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters.');
|
|
}
|
|
return a0;
|
|
}
|
|
if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters.');
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn('reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters.');
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function _fun12802(a0) { // fn#12802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:1099, offset: 0x00dd63c7, size: 37 bytes, params: 2, frame: 11
|
|
const binding = a0;
|
|
return !binding.some(_fun12803);
|
|
}
|
|
|
|
function _fun12805(a0) { // fn#12805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:1401, offset: 0x00dd6659, size: 69 bytes, params: 2, frame: 14
|
|
var moduleValue;
|
|
env1_16.add(a0);
|
|
if (env1_12) {
|
|
moduleValue = require(1158) /* metro dependency 1158 */;
|
|
moduleValue.checkRouteForAsyncHandler(a0, processResolvedRoutes);
|
|
}
|
|
}
|
|
|
|
function _fun12808(a0) { // fn#12808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:2981, offset: 0x00dd692f, size: 416 bytes, params: 2, frame: 17
|
|
var environment;
|
|
var value2;
|
|
var activeRootSpan;
|
|
var moduleValue2;
|
|
var value4;
|
|
var locationKey;
|
|
var closure;
|
|
const WINDOW = (require(1032) /* metro dependency 1032 */).WINDOW;
|
|
var value5;
|
|
var value6;
|
|
const env0_0 = a0;
|
|
if (!env0_3) {
|
|
value2 = environment.__proto__;
|
|
activeRootSpan = (require(1157) /* metro dependency 1157 */).getActiveRootSpan();
|
|
if (activeRootSpan) {
|
|
moduleValue2 = require(826) /* metro dependency 826 */;
|
|
env0_3 = moduleValue2.spanToJSON(activeRootSpan).op !== 'pageload' && env0_4 && (a0.historyAction !== 'POP' || env0_5) || env0_3;
|
|
} else {
|
|
env0_3 = env0_4 && (a0.historyAction !== 'POP' || env0_5) || env0_3;
|
|
}
|
|
}
|
|
if (a0.historyAction === 'PUSH') {
|
|
value4 = environment.__proto__;
|
|
locationKey = computeLocationKey(a0.location);
|
|
closure = navigationHandler;
|
|
if (a0.navigation.state !== 'idle') {
|
|
if (env0_7 === locationKey) {
|
|
}
|
|
if (env0_6 !== null) {
|
|
cancelScheduledCallback(env0_6);
|
|
}
|
|
if (WINDOW == null) {
|
|
value5 = global.setTimeout(closure, 0);
|
|
} else if (WINDOW.requestAnimationFrame) {
|
|
value6 = WINDOW.requestAnimationFrame(closure);
|
|
} else {
|
|
value5 = global.setTimeout(closure, 0);
|
|
}
|
|
} else {
|
|
if (env0_6 !== null) {
|
|
cancelScheduledCallback(env0_6);
|
|
}
|
|
closure();
|
|
}
|
|
} else if (a0.historyAction === 'POP') {
|
|
if (env0_3) {
|
|
value4 = environment.__proto__;
|
|
locationKey = computeLocationKey(a0.location);
|
|
closure = navigationHandler;
|
|
if (a0.navigation.state !== 'idle') {
|
|
if (env0_7 === locationKey) {
|
|
}
|
|
if (env0_6 !== null) {
|
|
cancelScheduledCallback(env0_6);
|
|
}
|
|
if (WINDOW == null) {
|
|
value5 = global.setTimeout(closure, 0);
|
|
} else if (WINDOW.requestAnimationFrame) {
|
|
value6 = WINDOW.requestAnimationFrame(closure);
|
|
} else {
|
|
value5 = global.setTimeout(closure, 0);
|
|
}
|
|
} else {
|
|
if (env0_6 !== null) {
|
|
cancelScheduledCallback(env0_6);
|
|
}
|
|
closure();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function* _fun12812(a0) { // fn#12812, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:3982, offset: 0x00dd6bec, size: 172 bytes, params: 2, frame: 18
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const env0_0 = a0;
|
|
value = undefined;
|
|
const env0_1 = a0 == null ? value : a0.path;
|
|
const activeRootSpan = env2_0(env2_1[6]).getActiveRootSpan();
|
|
if (!require) {
|
|
if (a0 == null ? value : a0.patch) {
|
|
a0.patch = patch_12813;
|
|
}
|
|
}
|
|
const value7 = env2_2(_fun12815)();
|
|
if (activeRootSpan) {
|
|
trackLazyRouteLoad(activeRootSpan, value7);
|
|
}
|
|
return value7;
|
|
}
|
|
|
|
function _fun12822(a0) { // fn#12822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:6709, offset: 0x00dd7505, size: 36 bytes, params: 2, frame: 12
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
getChildRoutesRecursively(a0).forEach(_fun12823);
|
|
}
|
|
|
|
function _fun12825(a0) { // fn#12825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:6962, offset: 0x00dd75c2, size: 44 bytes, params: 2, frame: 13
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
getChildRoutesRecursively(a0, env0_0).forEach(_fun12826);
|
|
}
|
|
|
|
function shouldUpdateWildcardSpanName(a0, a1, a2, a3) { // fn#12829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:7797, owner: tryUpdateSpanNameBeforeEnd.shouldUpdateWildcardSpanName, offset: 0x00dd795d, size: 191 bytes, params: 5, frame: 18
|
|
var r2;
|
|
var r1;
|
|
var r0;
|
|
var value9;
|
|
var moduleValue;
|
|
let value = a0;
|
|
if (a2) {
|
|
if (value) {
|
|
r1 = value;
|
|
} else {
|
|
r2 = arguments.length > 4 && arguments[4] !== undefined;
|
|
r2 = r2 && arguments[4];
|
|
r1 = !r2;
|
|
}
|
|
if (r1) {
|
|
if (value) {
|
|
value9 = environment.__proto__;
|
|
moduleValue = require(1157) /* metro dependency 1157 */;
|
|
value = !moduleValue.transactionNameHasWildcard(value);
|
|
r2 = value;
|
|
} else {
|
|
r2 = !value;
|
|
}
|
|
r2 = !r2 ? a3 !== 'route' : r2;
|
|
if (!r2) {
|
|
value = environment.__proto__;
|
|
value = require(1157) /* metro dependency 1157 */;
|
|
value = value.transactionNameHasWildcard(a2);
|
|
r2 = value;
|
|
}
|
|
value = !r2;
|
|
r1 = value;
|
|
} else {
|
|
r1 = !r1;
|
|
}
|
|
r1 = !r1 ? a1 !== 'route' && a3 === 'route' : r1;
|
|
r0 = r1;
|
|
} else {
|
|
r0 = !!a2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function patchSpanEndEnd() { // fn#12831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:8433, owner: patchSpanEnd.end, offset: 0x00dd7afb, size: 532 bytes, params: 1, frame: 32
|
|
var r2;
|
|
var r9;
|
|
var r8;
|
|
var moduleValue2;
|
|
var Promise;
|
|
var value10;
|
|
var race;
|
|
var items2;
|
|
var Promise2;
|
|
var value11;
|
|
var promise;
|
|
const value = undefined;
|
|
if (!env0_7) {
|
|
r2 = arguments.length > 0 ? arguments.length <= 0 ? value : arguments[0] : global.Date.now() / 1000;
|
|
var env0_0 = r2;
|
|
var value7 = (require(826) /* metro dependency 826 */).spanToJSON(env0_0);
|
|
var description = value7.description;
|
|
var data = value7.data;
|
|
r9 = data == null ? value : data[(require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];
|
|
var closure = cleanupNavigationSpan;
|
|
var value8 = env1_17.get(env0_0);
|
|
if (value8) {
|
|
if (value8.size > 0) {
|
|
if (description) {
|
|
moduleValue2 = require(1157) /* metro dependency 1157 */;
|
|
if (moduleValue2.transactionNameHasWildcard(description)) {
|
|
if (env1_13 === 0) {
|
|
tryUpdateSpanNameBeforeEnd(env0_0, value7, description, require, importDefault, importAll,
|
|
env0_4,
|
|
env0_5);
|
|
closure();
|
|
env0_6(r2);
|
|
return value;
|
|
}
|
|
Promise = global.Promise;
|
|
value10 = Promise.allSettled(value8).then(function() {
|
|
});
|
|
if (env1_13 === Infinity) {
|
|
r8 = value10;
|
|
} else {
|
|
Promise = global.Promise;
|
|
race = Promise.race;
|
|
items2 = [value10];
|
|
Promise2 = global.Promise;
|
|
value11 = Object.create(Promise2.prototype, {constructor: {value: Promise2}});
|
|
promise = new Promise2(_fun12834);
|
|
items2[1] = promise instanceof Object ? promise : value11;
|
|
r8 = Reflect.apply(race, Promise, [items2]);
|
|
}
|
|
r8.then(_fun12835).catch(_fun12836);
|
|
return value;
|
|
}
|
|
if (r9 !== 'route') {
|
|
if (env1_13 === 0) {
|
|
tryUpdateSpanNameBeforeEnd(env0_0, value7, description, require, importDefault, importAll,
|
|
env0_4,
|
|
env0_5);
|
|
closure();
|
|
env0_6(r2);
|
|
return value;
|
|
}
|
|
Promise = global.Promise;
|
|
value10 = Promise.allSettled(value8).then(_fun12833);
|
|
if (env1_13 === Infinity) {
|
|
r8 = value10;
|
|
} else {
|
|
Promise = global.Promise;
|
|
race = Promise.race;
|
|
items2 = [value10];
|
|
Promise2 = global.Promise;
|
|
value11 = Object.create(Promise2.prototype, {constructor: {value: Promise2}});
|
|
promise = new Promise2(_fun12834);
|
|
items2[1] = promise instanceof Object ? promise : value11;
|
|
r8 = Reflect.apply(race, Promise, [items2]);
|
|
}
|
|
r8.then(_fun12835).catch(_fun12836);
|
|
return value;
|
|
}
|
|
tryUpdateSpanNameBeforeEnd(env0_0, value7, description, require, importDefault, importAll, env0_4,
|
|
env0_5);
|
|
closure();
|
|
env0_6(r2);
|
|
return value;
|
|
}
|
|
tryUpdateSpanNameBeforeEnd(env0_0, value7, description, require, importDefault, importAll, env0_4,
|
|
env0_5);
|
|
closure();
|
|
env0_6(r2);
|
|
return value;
|
|
}
|
|
tryUpdateSpanNameBeforeEnd(env0_0, value7, description, require, importDefault, importAll, env0_4, env0_5);
|
|
closure();
|
|
env0_6(r2);
|
|
return value;
|
|
}
|
|
tryUpdateSpanNameBeforeEnd(env0_0, value7, description, require, importDefault, importAll, env0_4, env0_5);
|
|
closure();
|
|
env0_6(r2);
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function createReactRouterV6CompatibleTracingIntegrationSetup(a0) { // fn#12838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:10004, owner: createReactRouterV6CompatibleTracingIntegration.setup, offset: 0x00dd7f31, size: 521 bytes, params: 2, frame: 20
|
|
var Number;
|
|
var value5;
|
|
var value6;
|
|
const DEBUG_BUILD = (require(1150) /* metro dependency 1150 */).DEBUG_BUILD;
|
|
const debug = (require(826) /* metro dependency 826 */).debug;
|
|
var value7;
|
|
var value8;
|
|
env0_2.setup(a0);
|
|
const r5 = env0_0.finalTimeout ?? 30000;
|
|
const value4 = 3 * (env0_0.idleTimeout ?? 1000);
|
|
const r8 = lazyRouteTimeout ?? value4;
|
|
if (r8 === Infinity) {
|
|
value8 = environment.__proto__;
|
|
if (DEBUG_BUILD) {
|
|
debug.log('[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:', r5,
|
|
'ms to prevent indefinite hangs');
|
|
}
|
|
} else {
|
|
Number = global.Number;
|
|
if (Number.isNaN(r8)) {
|
|
value7 = environment.__proto__;
|
|
if (DEBUG_BUILD) {
|
|
debug.warn('[React Router] lazyRouteTimeout must be a number, falling back to default:', value4);
|
|
}
|
|
} else if (r8 < 0) {
|
|
value6 = environment.__proto__;
|
|
if (DEBUG_BUILD) {
|
|
debug.warn('[React Router] lazyRouteTimeout must be non-negative or Infinity, got:', r8,
|
|
'falling back to:',
|
|
value4);
|
|
}
|
|
} else {
|
|
value5 = environment.__proto__;
|
|
}
|
|
}
|
|
const matchRoutesBinding = matchRoutes;
|
|
const moduleValue = require(1157) /* metro dependency 1157 */;
|
|
moduleValue.initializeRouterUtils(matchRoutesBinding, stripBasename || false);
|
|
}
|
|
|
|
function createReactRouterV6CompatibleTracingIntegrationAfterAllSetup(a0) { // fn#12839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:10671, owner: createReactRouterV6CompatibleTracingIntegration.afterAllSetup, offset: 0x00dd813a, size: 266 bytes, params: 2, frame: 24
|
|
var moduleValue;
|
|
var startBrowserTracingPageLoadSpan;
|
|
var object2;
|
|
let binding = env0_2;
|
|
binding.afterAllSetup(a0);
|
|
const value3 = undefined;
|
|
const WINDOW = (require(1032) /* metro dependency 1032 */).WINDOW;
|
|
const location = WINDOW.location;
|
|
const pathname = location == null ? value3 : location.pathname;
|
|
binding = env0_10;
|
|
if (binding && pathname) {
|
|
moduleValue = require(1032) /* metro dependency 1032 */;
|
|
startBrowserTracingPageLoadSpan = moduleValue.startBrowserTracingPageLoadSpan;
|
|
object2 = {name: pathname};
|
|
binding = env1_3;
|
|
object2.attributes = binding(binding(binding({},
|
|
(require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'url'),
|
|
(require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_OP, 'pageload'),
|
|
(require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
|
|
'auto.pageload.react.reactrouter_v' + require);
|
|
Reflect.apply(startBrowserTracingPageLoadSpan, moduleValue, [a0, object2]);
|
|
}
|
|
if (env0_11) {
|
|
env1_14.add(a0);
|
|
}
|
|
return value3;
|
|
}
|
|
|
|
function createV6CompatibleWithSentryReactRouterRoutingSentryRoutes(a0) { // fn#12841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:11473, owner: createV6CompatibleWithSentryReactRouterRouting.SentryRoutes, offset: 0x00dd8332, size: 127 bytes, params: 2, frame: 17
|
|
const env0_0 = a0;
|
|
const binding = env1_11;
|
|
const env0_1 = binding.useRef(true);
|
|
env1_6(_fun12842, [env1_7(), env1_8()]);
|
|
const createElement = binding.createElement;
|
|
const binding3 = env0_0;
|
|
const Object = global.Object;
|
|
return Reflect.apply(createElement, binding, [binding3, Object.assign({}, a0)]);
|
|
}
|
|
|
|
function _fun12844(a0, a1) { // fn#12844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:12041, offset: 0x00dd852e, size: 281 bytes, params: 3, frame: 24
|
|
var r1;
|
|
var basename;
|
|
var r7;
|
|
var value;
|
|
var addRoutesToAllRoutesBinding;
|
|
var value2;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var property;
|
|
var moduleValue;
|
|
var checkRouteForAsyncHandler;
|
|
var processResolvedRoutesBinding;
|
|
var error;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var moduleValue2;
|
|
var getActiveRootSpan;
|
|
var value6;
|
|
var state;
|
|
var historyAction;
|
|
var value7;
|
|
var updatePageloadTransactionBinding;
|
|
var location;
|
|
var Array;
|
|
var from;
|
|
exceptionSkip10: while (true) {
|
|
exceptionLanding10: while (true) {
|
|
value = environment.__proto__;
|
|
addRoutesToAllRoutesBinding = addRoutesToAllRoutes;
|
|
value2 = undefined;
|
|
addRoutesToAllRoutesBinding(a0);
|
|
if (env1_12) {
|
|
iterator = a0[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
for (r1 = iterator; true; r1 = item2) {
|
|
item2 = Reflect.apply(iterator2, r1, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r1;
|
|
if (item2 === value2) {
|
|
break;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
property = dependencyMap[7];
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
moduleValue = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
checkRouteForAsyncHandler = moduleValue.checkRouteForAsyncHandler;
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
processResolvedRoutesBinding = processResolvedRoutes;
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
Reflect.apply(checkRouteForAsyncHandler, moduleValue, [item, processResolvedRoutesBinding]);
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
}
|
|
}
|
|
value3 = wrapPatchRoutesOnNavigation(a1);
|
|
value4 = environment;
|
|
value5 = env0_0(a0, value3);
|
|
basename = a1 == null ? value2 : a1.basename;
|
|
moduleValue2 = require(dependencyMap[6]);
|
|
getActiveRootSpan = moduleValue2.getActiveRootSpan;
|
|
value6 = Reflect.apply(getActiveRootSpan, moduleValue2, []);
|
|
state = value5.state;
|
|
historyAction = state.historyAction;
|
|
value7 = historyAction === 'POP';
|
|
r7 = value7 && value6;
|
|
if (r7) {
|
|
updatePageloadTransactionBinding = updatePageloadTransaction;
|
|
state = value5.state;
|
|
location = state.location;
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
updatePageloadTransactionBinding({activeRootSpan: value6, location: location, routes: a0,
|
|
basename: basename,
|
|
allRoutes: Reflect.apply(from, Array, [env1_16])});
|
|
}
|
|
setupRouterSubscription(value5, a0, require, basename, value6);
|
|
return value5;
|
|
break exceptionSkip10;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip10;
|
|
}
|
|
}
|
|
|
|
function _fun12846(a0, a1) { // fn#12846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:12749, offset: 0x00dd86e7, size: 401 bytes, params: 3, frame: 24
|
|
var r1;
|
|
var basename;
|
|
var initialEntries;
|
|
var initialIndex;
|
|
var r8;
|
|
var r9;
|
|
var r3;
|
|
var r7;
|
|
var value;
|
|
var addRoutesToAllRoutesBinding;
|
|
var value2;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var property;
|
|
var moduleValue;
|
|
var checkRouteForAsyncHandler;
|
|
var processResolvedRoutesBinding;
|
|
var error;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var length;
|
|
var value6;
|
|
var value7;
|
|
var state;
|
|
var location;
|
|
var moduleValue2;
|
|
var getActiveRootSpan;
|
|
var value8;
|
|
var historyAction;
|
|
var value9;
|
|
var updatePageloadTransactionBinding;
|
|
var Array;
|
|
var from;
|
|
exceptionSkip10: while (true) {
|
|
exceptionLanding10: while (true) {
|
|
value = environment.__proto__;
|
|
addRoutesToAllRoutesBinding = addRoutesToAllRoutes;
|
|
value2 = undefined;
|
|
addRoutesToAllRoutesBinding(a0);
|
|
if (env1_12) {
|
|
iterator = a0[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
for (r1 = iterator; true; r1 = item2) {
|
|
item2 = Reflect.apply(iterator2, r1, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r1;
|
|
if (item2 === value2) {
|
|
break;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
property = dependencyMap[7];
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
moduleValue = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
checkRouteForAsyncHandler = moduleValue.checkRouteForAsyncHandler;
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
processResolvedRoutesBinding = processResolvedRoutes;
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
Reflect.apply(checkRouteForAsyncHandler, moduleValue, [item, processResolvedRoutesBinding]);
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
}
|
|
}
|
|
value3 = wrapPatchRoutesOnNavigation(a1, true);
|
|
value4 = environment;
|
|
value5 = env0_0(a0, value3);
|
|
basename = a1 == null ? value2 : a1.basename;
|
|
initialEntries = a1 == null ? value2 : a1.initialEntries;
|
|
initialIndex = a1 == null ? value2 : a1.initialIndex;
|
|
if (initialEntries) {
|
|
length = initialEntries.length;
|
|
value6 = length === 1;
|
|
r8 = value6;
|
|
} else {
|
|
r8 = initialEntries;
|
|
}
|
|
value7 = value2 !== initialIndex;
|
|
r9 = value7 && initialEntries;
|
|
if (r9) {
|
|
r9 = initialEntries[initialIndex];
|
|
}
|
|
if (r8) {
|
|
property = initialEntries[0];
|
|
r8 = property;
|
|
} else {
|
|
if (!r9) {
|
|
r8 = value2;
|
|
continue;
|
|
}
|
|
property = initialEntries[initialIndex];
|
|
r8 = property;
|
|
}
|
|
if (r8) {
|
|
if (typeof r8 !== 'string') {
|
|
r3 = r8;
|
|
continue;
|
|
}
|
|
r9 = {pathname: r8};
|
|
} else {
|
|
location = value5.state.location;
|
|
r9 = location;
|
|
}
|
|
moduleValue2 = require(dependencyMap[6]);
|
|
getActiveRootSpan = moduleValue2.getActiveRootSpan;
|
|
value8 = Reflect.apply(getActiveRootSpan, moduleValue2, []);
|
|
state = value5.state;
|
|
historyAction = state.historyAction;
|
|
value9 = historyAction === 'POP';
|
|
r7 = value9 && value8;
|
|
if (r7) {
|
|
updatePageloadTransactionBinding = updatePageloadTransaction;
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
updatePageloadTransactionBinding({activeRootSpan: value8, location: r9, routes: a0, basename: basename,
|
|
allRoutes: Reflect.apply(from, Array, [env1_16])});
|
|
}
|
|
setupRouterSubscription(value5, a0, require, basename, value8);
|
|
return value5;
|
|
break exceptionSkip10;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip10;
|
|
}
|
|
}
|
|
|
|
function createV6CompatibleWrapUseRoutesSentryRoutes({routes, locationArg}) { // fn#12848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:13781, owner: createV6CompatibleWrapUseRoutes.SentryRoutes, offset: 0x00dd8902, size: 147 bytes, params: 2, frame: 18
|
|
const value3 = env1_11.useRef(true)(routes, locationArg);
|
|
const value4 = env1_7();
|
|
env1_6(_fun12849, [env1_8(),
|
|
typeof locationArg === 'string' ? locationArg : locationArg == null ? value4 : locationArg.pathname ? locationArg : value4]);
|
|
return value3;
|
|
}
|
|
|
|
function _fun12850(a0, a1) { // fn#12850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:14256, offset: 0x00dd8a87, size: 46 bytes, params: 3, frame: 14
|
|
const binding = env1_11;
|
|
return binding.createElement(createV6CompatibleWrapUseRoutesSentryRoutes, {routes: a0, locationArg: a1});
|
|
}
|
|
|
|
function _fun12803(a0) { // fn#12803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:1126, offset: 0x00dd63ec, size: 91 bytes, params: 2, frame: 6
|
|
let r0 = a0 === env0_0 || env0_0.path && a0.path === env0_0.path;
|
|
r0 = !r0 ? env0_0.id && a0.id === env0_0.id : r0;
|
|
return r0;
|
|
}
|
|
|
|
function navigationHandler() { // fn#12809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:3220, offset: 0x00dd6acf, size: 130 bytes, params: 1, frame: 14
|
|
var value3;
|
|
var handleNavigationBinding;
|
|
var object2;
|
|
let binding = env1_7;
|
|
if (binding !== env0_1) {
|
|
value3 = environment.__proto__.__proto__;
|
|
handleNavigationBinding = handleNavigation;
|
|
object2 = {};
|
|
binding = env0_0;
|
|
object2.location = binding.location;
|
|
object2.routes = require;
|
|
object2.navigationType = binding.historyAction;
|
|
object2.version = importDefault;
|
|
object2.basename = importAll;
|
|
object2.allRoutes = global.Array.from(env2_16);
|
|
handleNavigationBinding(object2);
|
|
}
|
|
}
|
|
|
|
function patch_12813(a0, a1) { // fn#12813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:4102, offset: 0x00dd6c98, size: 189 bytes, params: 3, frame: 22
|
|
var value5;
|
|
env3_28(a1);
|
|
const activeRootSpan = env3_0(env3_1[6]).getActiveRootSpan();
|
|
let r4 = path && activeRootSpan;
|
|
if (r4) {
|
|
value5 = env3_0(env3_1[8]);
|
|
r4 = value5.spanToJSON(activeRootSpan).op === 'navigation';
|
|
}
|
|
if (r4) {
|
|
env3_24(activeRootSpan, {'pathname': null, 'search': '', 'hash': '', 'state': null, 'key': 'default',
|
|
pathname: path}, global.Array.from(env3_16), true, env3_10);
|
|
}
|
|
return patch(a0, a1);
|
|
}
|
|
|
|
function* _fun12815() { // fn#12815, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:4347, offset: 0x00dd6d5e, size: 426 bytes, params: 1, frame: 29
|
|
var r9;
|
|
var binding2;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value14;
|
|
var binding4;
|
|
var location;
|
|
var error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
let binding = env4_0;
|
|
const value4 = binding(env4_1[6]);
|
|
const value6 = value4.setNavigationContext(env1_1, patchRoutesOnNavigation);
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
value = binding(env4_1[6]);
|
|
value.clearNavigationContext(value6);
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env1_0;
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
value = binding(env4_1[6]);
|
|
value.clearNavigationContext(value6);
|
|
throw error;
|
|
}
|
|
try {
|
|
value8 = binding(binding2);
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
value = binding(env4_1[6]);
|
|
value.clearNavigationContext(value6);
|
|
throw error;
|
|
}
|
|
yield value8;
|
|
try {
|
|
value9 = undefined;
|
|
value10 = false;
|
|
} catch (error) {
|
|
binding = env4_0;
|
|
value = binding(env4_1[6]);
|
|
value.clearNavigationContext(value6);
|
|
throw error;
|
|
}
|
|
if (value10) {
|
|
env4_0(env4_1[6]).clearNavigationContext(value6);
|
|
} else {
|
|
binding = env4_0;
|
|
var binding3 = env4_1;
|
|
binding(binding3[6]).clearNavigationContext(value6);
|
|
var activeRootSpan = binding(binding3[6]).getActiveRootSpan();
|
|
if (activeRootSpan) {
|
|
binding = env4_0;
|
|
value14 = binding(env4_1[8]);
|
|
if (value14.spanToJSON(activeRootSpan).op === 'navigation') {
|
|
binding = env3_0;
|
|
binding4 = env1_1;
|
|
if (binding) {
|
|
r9 = binding4;
|
|
} else if (binding4) {
|
|
r9 = binding4;
|
|
} else {
|
|
location = env4_0(env4_1[5]).WINDOW.location;
|
|
r9 = location == null ? value : location.pathname;
|
|
}
|
|
if (r9) {
|
|
env4_24(activeRootSpan, {'pathname': null, 'search': '', 'hash': '', 'state': null,
|
|
'key': 'default',
|
|
pathname: r9},
|
|
global.Array.from(env4_16), false, env4_10);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return value9;
|
|
}
|
|
|
|
function trackLazyRouteLoad(a0, a1) { // fn#12816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:4741, offset: 0x00dd6f08, size: 112 bytes, params: 3, frame: 16
|
|
var r3;
|
|
var set;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const value2 = env3_17.get(a0);
|
|
if (value2) {
|
|
r3 = value2;
|
|
} else {
|
|
set = new global.Set();
|
|
env3_17.set(a0, set);
|
|
r3 = set;
|
|
}
|
|
r3.add(a1);
|
|
a1.finally(_fun12817);
|
|
}
|
|
|
|
function _fun12823(a0) { // fn#12823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:6759, offset: 0x00dd7529, size: 24 bytes, params: 2, frame: 11
|
|
env2_16.add(a0);
|
|
}
|
|
|
|
function _fun12826(a0) { // fn#12826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:7014, offset: 0x00dd75ee, size: 24 bytes, params: 2, frame: 11
|
|
env1_0.add(a0);
|
|
}
|
|
|
|
function cleanupNavigationSpan() { // fn#12832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:8667, owner: patchSpanEnd.end.cleanupNavigationSpan, offset: 0x00dd7d0f, size: 106 bytes, params: 1, frame: 15
|
|
var value3;
|
|
var value4;
|
|
const client = (require(826) /* metro dependency 826 */).getClient();
|
|
if (client) {
|
|
value3 = environment.__proto__;
|
|
if (env1_4 === 'navigation') {
|
|
value4 = env2_15.get(client);
|
|
if (value4 && value4.span === env1_0) {
|
|
env2_15.delete(client);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun12834(a0) { // fn#12834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:9043, offset: 0x00dd7d79, size: 28 bytes, params: 2, frame: 13
|
|
return global.setTimeout(a0, env2_13);
|
|
}
|
|
|
|
function _fun12835() { // fn#12835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:9090, offset: 0x00dd7d95, size: 110 bytes, params: 1, frame: 26
|
|
const moduleValue = require(826) /* metro dependency 826 */;
|
|
const spanToJSON = moduleValue.spanToJSON;
|
|
const binding = env1_0;
|
|
const value3 = Reflect.apply(spanToJSON, moduleValue, [binding]);
|
|
tryUpdateSpanNameBeforeEnd(binding, value3, value3.description, require, importDefault, importAll, env1_4, env1_5);
|
|
cleanupNavigationSpan();
|
|
env1_6(env0_0);
|
|
}
|
|
|
|
function _fun12836() { // fn#12836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:9205, offset: 0x00dd7e03, size: 31 bytes, params: 1, frame: 11
|
|
cleanupNavigationSpan();
|
|
env1_6(env0_0);
|
|
}
|
|
|
|
function _fun12842() { // fn#12842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:11539, offset: 0x00dd83b1, size: 221 bytes, params: 1, frame: 17
|
|
var handleNavigationBinding;
|
|
var object2;
|
|
var value4;
|
|
var updatePageloadTransactionBinding;
|
|
const value3 = env2_9(env0_0.children);
|
|
if (env0_1.current) {
|
|
addRoutesToAllRoutes(value3);
|
|
updatePageloadTransactionBinding = updatePageloadTransaction;
|
|
object2 = {};
|
|
object2.activeRootSpan = (require(1157) /* metro dependency 1157 */).getActiveRootSpan();
|
|
object2.location = env0_2;
|
|
object2.routes = value3;
|
|
object2.allRoutes = global.Array.from(env2_16);
|
|
updatePageloadTransactionBinding(object2);
|
|
env0_1.current = false;
|
|
} else {
|
|
handleNavigationBinding = handleNavigation;
|
|
object2 = {location: env0_2, routes: value3, navigationType: env0_3};
|
|
value4 = environment.__proto__;
|
|
object2.version = require;
|
|
object2.allRoutes = global.Array.from(env2_16);
|
|
handleNavigationBinding(object2);
|
|
}
|
|
}
|
|
|
|
function _fun12849() { // fn#12849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:13929, offset: 0x00dd8995, size: 242 bytes, params: 1, frame: 18
|
|
var object2;
|
|
var handleNavigationBinding;
|
|
var routesBinding;
|
|
var addRoutesToAllRoutesBinding;
|
|
var updatePageloadTransactionBinding;
|
|
const r6 = typeof env0_3 === 'string' ? {pathname: env0_3} : env0_3;
|
|
if (env0_0.current) {
|
|
addRoutesToAllRoutesBinding = addRoutesToAllRoutes;
|
|
routesBinding = routes;
|
|
addRoutesToAllRoutesBinding(routesBinding);
|
|
updatePageloadTransactionBinding = updatePageloadTransaction;
|
|
object2 = {};
|
|
object2.activeRootSpan = (require(1157) /* metro dependency 1157 */).getActiveRootSpan();
|
|
object2.location = r6;
|
|
object2.routes = routesBinding;
|
|
object2.allRoutes = global.Array.from(env2_16);
|
|
updatePageloadTransactionBinding(object2);
|
|
env0_0.current = false;
|
|
} else {
|
|
handleNavigationBinding = handleNavigation;
|
|
object2 = {location: r6};
|
|
object2.routes = routes;
|
|
object2.navigationType = env0_2;
|
|
value = environment.__proto__;
|
|
object2.version = require;
|
|
object2.allRoutes = global.Array.from(env2_16);
|
|
handleNavigationBinding(object2);
|
|
}
|
|
}
|
|
|
|
function _fun12817() { // fn#12817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1283:4835, offset: 0x00dd6f78, size: 45 bytes, params: 1, frame: 12
|
|
const value2 = env4_17.get(env0_0);
|
|
if (value2) {
|
|
value2.delete(require);
|
|
}
|
|
}
|
|
|