722 lines
29 KiB
JavaScript
722 lines
29 KiB
JavaScript
/* Metro module 882; source: unknown; dependencies: [830, 842] */
|
|
import * as GLOBAL_OBJModule from './module-00830-GLOBAL_OBJ.js'; /* Metro dependency 830 */
|
|
|
|
function _fun9522(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1009:6, offset: 0x00d699fc, size: 93 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const getFilenameToDebugIdMap2 = getFilenameToDebugIdMap;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.getDebugImagesForResources = getDebugImagesForResources;
|
|
exports.getFilenameToDebugIdMap = getFilenameToDebugIdMap2;
|
|
function getFilenameToDebugIdMap(a0) { // fn#9523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1009:43, offset: 0x00d69a59, size: 237 bytes, params: 2, frame: 18
|
|
var object2;
|
|
var r5;
|
|
var r2;
|
|
var length;
|
|
var processDebugIds2;
|
|
const env0_0 = a0;
|
|
const {_sentryDebugIds, _debugIds} = (GLOBAL_OBJModule).GLOBAL_OBJ;
|
|
if (_sentryDebugIds) {
|
|
r5 = _sentryDebugIds ? global.Object.keys(_sentryDebugIds) : [];
|
|
r2 = _debugIds ? global.Object.keys(_debugIds) : [];
|
|
if (env0_5) {
|
|
length = r5.length;
|
|
if (length !== length2) {
|
|
length = r5.length;
|
|
length = r2.length;
|
|
length3 = length;
|
|
if (!object2) {
|
|
object2 = {};
|
|
}
|
|
processDebugIds2 = processDebugIds;
|
|
if (_sentryDebugIds) {
|
|
processDebugIds2(r5, _sentryDebugIds);
|
|
}
|
|
if (_debugIds) {
|
|
processDebugIds2(r2, _debugIds);
|
|
}
|
|
return {};
|
|
}
|
|
length = r2.length;
|
|
if (length === length3) {
|
|
return env0_5;
|
|
}
|
|
length = r5.length;
|
|
length = r2.length;
|
|
if (!object2) {
|
|
object2 = {};
|
|
}
|
|
processDebugIds2 = processDebugIds;
|
|
if (_sentryDebugIds) {
|
|
processDebugIds2(r5, _sentryDebugIds);
|
|
}
|
|
if (_debugIds) {
|
|
processDebugIds2(r2, _debugIds);
|
|
}
|
|
return {};
|
|
}
|
|
length = r5.length;
|
|
length2 = length;
|
|
length = r2.length;
|
|
length3 = length;
|
|
if (!object2) {
|
|
object2 = {};
|
|
}
|
|
processDebugIds2 = processDebugIds;
|
|
if (_sentryDebugIds) {
|
|
processDebugIds2(r5, _sentryDebugIds);
|
|
}
|
|
if (_debugIds) {
|
|
processDebugIds2(r2, _debugIds);
|
|
}
|
|
} else if (_debugIds) {
|
|
r5 = _sentryDebugIds ? global.Object.keys(_sentryDebugIds) : [];
|
|
r2 = _debugIds ? global.Object.keys(_debugIds) : [];
|
|
if (env0_5) {
|
|
length = r5.length;
|
|
if (length !== length2) {
|
|
length = r5.length;
|
|
length = r2.length;
|
|
length3 = length;
|
|
if (!object2) {
|
|
object2 = {};
|
|
}
|
|
processDebugIds2 = processDebugIds;
|
|
if (_sentryDebugIds) {
|
|
processDebugIds2(r5, _sentryDebugIds);
|
|
}
|
|
if (_debugIds) {
|
|
processDebugIds2(r2, _debugIds);
|
|
}
|
|
return {};
|
|
}
|
|
length = r2.length;
|
|
if (length === length3) {
|
|
return env0_5;
|
|
}
|
|
length = r5.length;
|
|
length = r2.length;
|
|
if (!object2) {
|
|
object2 = {};
|
|
}
|
|
processDebugIds2 = processDebugIds;
|
|
if (_sentryDebugIds) {
|
|
processDebugIds2(r5, _sentryDebugIds);
|
|
}
|
|
if (_debugIds) {
|
|
processDebugIds2(r2, _debugIds);
|
|
}
|
|
return {};
|
|
}
|
|
length = r5.length;
|
|
length = r2.length;
|
|
if (!object2) {
|
|
object2 = {};
|
|
}
|
|
processDebugIds2 = processDebugIds;
|
|
if (_sentryDebugIds) {
|
|
processDebugIds2(r5, _sentryDebugIds);
|
|
}
|
|
if (_debugIds) {
|
|
processDebugIds2(r2, _debugIds);
|
|
}
|
|
return {};
|
|
}
|
|
return {};
|
|
function processDebugIds(a0, a1) { // fn#9524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1009:303, owner: getFilenameToDebugIdMap.processDebugIds, offset: 0x00d69b46, size: 332 bytes, params: 3, frame: 30
|
|
var r17;
|
|
var r14;
|
|
var filename;
|
|
var property;
|
|
var binding;
|
|
var value4;
|
|
var property2;
|
|
var value5;
|
|
var length;
|
|
var value6;
|
|
var value7;
|
|
var property3;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var items2;
|
|
var property4;
|
|
var property5;
|
|
var error;
|
|
const value = undefined;
|
|
const iterator = a0[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let r2 = iterator;
|
|
let item2 = Reflect.apply(iterator2, r2, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === value) {
|
|
}
|
|
return value;
|
|
reducibleLoop2: while (true) {
|
|
try {
|
|
property = a1[item];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env1_2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value4 = binding == null;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin10: while (true) {
|
|
if (value4) {
|
|
r17 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
try {
|
|
property2 = binding[item];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r17 = property2;
|
|
break reducibleJoin10;
|
|
}
|
|
reducibleJoin1: while (true) {
|
|
reducibleJoin14: while (true) {
|
|
if (r17) {
|
|
try {
|
|
binding = env1_5;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (binding) {
|
|
if (property) {
|
|
try {
|
|
binding = env1_5;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property4 = r17[0];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding[property4] = property;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env1_2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (binding) {
|
|
try {
|
|
binding = env1_2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property5 = r17[0];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
items2[0] = property5;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
items2[1] = property;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding[item] = items2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
break reducibleJoin1;
|
|
}
|
|
r2 = item2;
|
|
break reducibleJoin1;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
if (!property) {
|
|
r2 = item2;
|
|
break reducibleJoin1;
|
|
}
|
|
try {
|
|
binding = env0_0;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value5 = binding(item);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = value5.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = length - 1;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = value6 >= 0;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (!value7) {
|
|
r2 = item2;
|
|
break reducibleJoin1;
|
|
}
|
|
r14 = value6;
|
|
reducibleLoop23: while (true) {
|
|
try {
|
|
property3 = value5[r14];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value8 = property3 == null;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin30: while (true) {
|
|
if (value8) {
|
|
filename = value;
|
|
break reducibleJoin30;
|
|
}
|
|
try {
|
|
filename = property3.filename;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
break reducibleJoin30;
|
|
}
|
|
if (filename) {
|
|
try {
|
|
binding = env1_5;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin35: while (true) {
|
|
if (binding) {
|
|
try {
|
|
binding = env1_2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (binding) {
|
|
try {
|
|
binding = env1_5;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding[filename] = property;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env1_2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
items2[0] = filename;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
items2[1] = property;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding[item] = items2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
break reducibleJoin1;
|
|
}
|
|
break reducibleJoin35;
|
|
}
|
|
break reducibleJoin35;
|
|
}
|
|
}
|
|
try {
|
|
value9 = typeof r14 === 'bigint' ? r14 - 1n : +r14 - 1;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value10 = value9 >= 0;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value10) {
|
|
r14 = value9;
|
|
continue reducibleLoop23;
|
|
}
|
|
r2 = item2;
|
|
break reducibleJoin1;
|
|
}
|
|
break reducibleJoin1;
|
|
}
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === value) {
|
|
break reducibleLoop2;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
function getDebugImagesForResources(a0, a1) { // fn#9525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1009:674, offset: 0x00d69c92, size: 172 bytes, params: 3, frame: 23
|
|
var r10;
|
|
var property;
|
|
var moduleValue;
|
|
var normalizeStackTracePath;
|
|
var value3;
|
|
var push;
|
|
var object;
|
|
var error;
|
|
const filenameToDebugIdMap = getFilenameToDebugIdMap(a0);
|
|
const items2 = [];
|
|
if (filenameToDebugIdMap) {
|
|
var iterator = a1[Symbol.iterator]();
|
|
var iterator2 = iterator.next;
|
|
var r2 = iterator;
|
|
var item2 = Reflect.apply(iterator2, r2, []);
|
|
var item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
reducibleJoin4: while (true) {
|
|
if (item2 === undefined) {
|
|
return items2;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleLoop4: while (true) {
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = dependencyMap[1];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue = require(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
normalizeStackTracePath = moduleValue.normalizeStackTracePath;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value3 = Reflect.apply(normalizeStackTracePath, moduleValue, [item]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin14: while (true) {
|
|
if (value3) {
|
|
try {
|
|
property = filenameToDebugIdMap[value3];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r10 = property;
|
|
break reducibleJoin14;
|
|
}
|
|
r10 = value3;
|
|
break reducibleJoin14;
|
|
}
|
|
reducibleJoin3: while (true) {
|
|
if (r10) {
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.type = 'sourcemap';
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.code_file = item;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = filenameToDebugIdMap[value3];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.debug_id = property;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [object]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
break reducibleJoin3;
|
|
}
|
|
r2 = item2;
|
|
break reducibleJoin3;
|
|
}
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop4;
|
|
}
|
|
continue reducibleLoop4;
|
|
}
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun9522, 882, [830, 842]) /* metro module 882, dependencies: [830, 842] */;
|