69 lines
2.3 KiB
TypeScript
69 lines
2.3 KiB
TypeScript
/* Metro module 8705; source: utils/native/StringUtils.tsx; dependencies: [8704, 2] */
|
|
function _fun68371(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8890:6, offset: 0x01c4c2cd, size: 99 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/StringUtils.tsx');
|
|
exports.splitGraphemes = splitGraphemes;
|
|
}
|
|
|
|
function splitGraphemes(a0) { // fn#68372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8890:171, offset: 0x01c4c330, size: 236 bytes, params: 2, frame: 24
|
|
var r13;
|
|
var r2;
|
|
var lastIndex;
|
|
var r6;
|
|
var index;
|
|
var push;
|
|
var Array;
|
|
var from;
|
|
var slice;
|
|
var value4;
|
|
var items2;
|
|
var value5;
|
|
var value6;
|
|
var items3;
|
|
const value = 0;
|
|
const value2 = importDefault(dependencyMap[value])();
|
|
const items4 = [];
|
|
const value3 = value2.exec(a0);
|
|
if (value3 === null) {
|
|
r6 = value;
|
|
} else {
|
|
r2 = value3;
|
|
lastIndex = value;
|
|
while (true) {
|
|
index = r2.index;
|
|
if (index > lastIndex) {
|
|
push = items4.push;
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
slice = a0.slice;
|
|
index = r2.index;
|
|
value4 = Reflect.apply(from, Array, [Reflect.apply(slice, a0, [lastIndex, index])]);
|
|
items2 = [];
|
|
arraySpread(items2, value4, value, slice);
|
|
apply(push, items2, items4, slice);
|
|
r13 = slice;
|
|
}
|
|
items4.push(r2[value]);
|
|
lastIndex = value2.lastIndex;
|
|
value5 = value2.exec(a0);
|
|
if (value5 !== null) {
|
|
r2 = value5;
|
|
continue;
|
|
}
|
|
r6 = lastIndex;
|
|
break;
|
|
}
|
|
}
|
|
if (r6 < a0.length) {
|
|
push = items4.push;
|
|
Array = global.Array;
|
|
value6 = Array.from(a0.slice(r6));
|
|
items3 = [];
|
|
arraySpread(items3, value6, value, r13);
|
|
apply(push, items3, items4, r13);
|
|
}
|
|
return items4;
|
|
}
|
|
|