Files
discord-decomp/sources/by-id/module-07438-parameterize.js
T
2026-07-28 01:06:53 +03:00

54 lines
2.0 KiB
JavaScript

/* Metro module 7438; source: unknown; dependencies: [] */
function _fun60039(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7616:6, offset: 0x016f98ad, size: 52 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.parameterize = parameterize;
}
function parameterize(a0) { // fn#60040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7616:94, offset: 0x00d71f7a, size: 248 bytes, params: 2, frame: 18
var r1;
var r2;
var value4;
var value7;
var value8;
const length = arguments.length;
const Array = global.Array;
const value2 = 1;
reducibleJoin2: while (true) {
if (length > value2) {
value4 = length - value2;
r1 = value4;
break reducibleJoin2;
}
r1 = 0;
break reducibleJoin2;
}
const array = new Array();
if (value2 < length) {
r2 = value2;
reducibleLoop3: while (true) {
value7 = r2 - value2;
array[value7] = arguments[r2];
value8 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value8 < length) {
r2 = value8;
continue reducibleLoop3;
}
break reducibleLoop3;
}
}
const String = global.String;
const String2 = global.String;
const raw = String2.raw;
const apply = raw.apply;
const String3 = global.String;
const items2 = [a0];
const string = new String(Reflect.apply(apply, raw, [String3, items2.concat(array)]));
string.__sentry_template_string__ = a0.join('\x00').replace(RegExp('%', 'g'), '%%').replace(RegExp('\\0', 'g'),
'%s');
string.__sentry_template_values__ = array;
return string;
}
global.__d(_fun60039, 7438, []) /* metro module 7438 */;