791 lines
40 KiB
TypeScript
791 lines
40 KiB
TypeScript
/* Metro module 11857; source: modules/chat_input/native/ChatInputCommandOptionParser.tsx; dependencies: [4502, 6540, 1938, 3784, 661, 1881, 11858, 3801, 11647, 697, 4805, 2] */
|
|
function _fun90896(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:6, offset: 0x0204b46e, size: 457 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const _arrayLikeToArray_90899 = function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var value3;
|
|
var length;
|
|
var value5;
|
|
var value = undefined;
|
|
var value2 = value == null;
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
r0 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
value3 = value > a0.length;
|
|
r0 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r0) {
|
|
length = a0.length;
|
|
r1 = length;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
value = (0, global.Array)(r1);
|
|
var value4 = 0;
|
|
if (value4 < r1) {
|
|
r2 = value4;
|
|
reducibleLoop5: while (true) {
|
|
value[r2] = a0[r2];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value5 < r1) {
|
|
r2 = value5;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
return value;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
|
const emojiStore = importDefault(6540) /* metro dependency 6540: EmojiStore */;
|
|
const guildRoleStore = importDefault(1938) /* metro dependency 1938: GuildRoleStore */;
|
|
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
|
const env0_7 = (require(661) /* metro dependency 661: Constants */).Permissions;
|
|
const env0_8 = (require(1881) /* metro dependency 1881: EmojiConstants */).EmojiIntention;
|
|
const regexp = RegExp('[\\t-\\r \\xA0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]((?:[\\x2D0-9A-Z_a-z\\xAA\\xB2\\xB3\\xB5\\xB9\\xBA\\xBC-\\xBE\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u0660-\\u0669\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07C0-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0900-\\u0950\\u0955-\\u0963\\u0966-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09E6-\\u09F1\\u09F4-\\u09F9\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A6F\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\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33\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F-\\u1049\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u1090-\\u1099\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1369-\\u137C\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u17E0-\\u17E9\\u17F0-\\u17F9\\u1810-\\u1819\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19DA\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B50-\\u1B59\\u1B83-\\u1BA0\\u1BAE-\\u1BE5\\u1C00-\\u1C23\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1C80-\\u1C8A\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2070\\u2071\\u2074-\\u2079\\u207F-\\u2089\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2150-\\u2189\\u2460-\\u249B\\u24EA-\\u24FF\\u2776-\\u2793\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2CFD\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u3192-\\u3195\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3220-\\u3229\\u3248-\\u324F\\u3251-\\u325F\\u3280-\\u3289\\u32B1-\\u32BF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CD\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7DC\\uA7F2-\\uA801\\u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\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8\\uDF00-\\uDF09\\uDFC0-\\uDFE0\\uDFF0-\\uDFF9]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC50-\\uDC6C\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD50-\\uDD59\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDDA0-\\uDDA9\\uDEE0-\\uDEF2\\uDF02\\uDF04-\\uDF10\\uDF12-\\uDF33\\uDF50-\\uDF59\\uDFB0\\uDFC0-\\uDFD4]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC00-\\uDC6E\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD80E\\uD80F\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD887][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2F\\uDC41-\\uDC46\\uDC60-\\uDFFF]|\\uD810[\\uDC00-\\uDFFA]|\\uD811[\\uDC00-\\uDE46]|\\uD818[\\uDD00-\\uDD1D\\uDD30-\\uDD39]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE60-\\uDE69\\uDE70-\\uDEBE\\uDEC0-\\uDEC9\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF50-\\uDF59\\uDF5B-\\uDF61\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDD40-\\uDD6C\\uDD70-\\uDD79\\uDE40-\\uDE96\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDC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00-\\uDD43\\uDD4B\\uDD50-\\uDD59]|\\uD83B[\\uDC71-\\uDCAB\\uDCAD-\\uDCAF\\uDCB1-\\uDCB4\\uDD01-\\uDD2D\\uDD2F-\\uDD3D\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD83C[\\uDD00-\\uDD0C]|\\uD83E[\\uDFF0-\\uDFF9]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF39\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0\\uDFF0-\\uDFFF]|\\uD87B[\\uDC00-\\uDE5D]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD888[\\uDC00-\\uDFAF])+):',
|
|
'g');
|
|
const env0_10 = RegExp(':((?:[\\0-\\x08\\x0E-\\x1F!-9;-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+?(?:::skin-tone-[0-9])?):',
|
|
'g');
|
|
const env0_11 = RegExp('@((?:(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])(?:[\\0-"\\$-9;-\\?A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+)#([0-9]{4}))',
|
|
'g');
|
|
const env0_12 = RegExp('@([\\.0-9_a-z]{2,32})', 'g');
|
|
const env0_13 = RegExp('@(((?:[\\0-"\\$-9;-\\?A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]){1,100}))(?![0-9A-Z_a-z]*#)',
|
|
'g');
|
|
const env0_14 = RegExp('#(((?:[\\0-\\x08\\x0E-\\x1F!"\\$-9;-\\?A-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+))',
|
|
'g');
|
|
const env0_15 = RegExp('^@(silent(?![^\\s]))', '');
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/chat_input/native/ChatInputCommandOptionParser.tsx');
|
|
exports.commandOptionRegex = regexp;
|
|
exports.getMatchedOptionsWithValue = getMatchedOptionsWithValue;
|
|
exports.getMatchedOptions = getMatchedOptions;
|
|
exports.getTextBeforeFirstOption = getTextBeforeFirstOption;
|
|
exports.getEmojiHighlightNodes = getEmojiHighlightNodes;
|
|
exports.getUsernameHighlightNodes = getUsernameHighlightNodes;
|
|
exports.getRoleHighlightNodes = getRoleHighlightNodes;
|
|
exports.getSilentHighlightNodes = getSilentHighlightNodes;
|
|
exports.getChannelHighlightNodes = getChannelHighlightNodes;
|
|
}
|
|
|
|
function _createForOfIteratorHelperLoose_90897(a0, a1) { // fn#90897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:194, offset: 0x0204b637, size: 372 bytes, params: 3, frame: 20
|
|
var r6;
|
|
var r9;
|
|
var r5;
|
|
var value3;
|
|
var regexp;
|
|
const env0_0 = a0;
|
|
const Symbol = global.Symbol;
|
|
let value = typeof Symbol !== 'undefined';
|
|
let r1 = value && a0[global.Symbol.iterator];
|
|
r1 = !r1 ? a0['@@iterator'] : r1;
|
|
if (r1) {
|
|
value = r1.call(a0);
|
|
return value.next.bind(value);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
if (r1) {
|
|
}
|
|
return _fun90898;
|
|
}
|
|
value = undefined;
|
|
if (a0) {
|
|
if (typeof a0 === 'string') {
|
|
value = _arrayLikeToArray_90899(a0, value);
|
|
r5 = value;
|
|
} else {
|
|
value3 = ({}).toString.call(a0).slice(8, -1);
|
|
r6 = value3 === 'Object' && a0.constructor;
|
|
r9 = r6 ? a0.constructor.name : value3;
|
|
if (r9 === 'Map') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Set') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Arguments') {
|
|
value = _arrayLikeToArray_90899(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
|
if (regexp.test(r9)) {
|
|
value = _arrayLikeToArray_90899(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
}
|
|
r5 = r6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
if (r5) {
|
|
}
|
|
return _fun90898;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
|
}
|
|
|
|
function getMatchedOptionsWithValue(a0, a1) { // fn#90900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:12045, offset: 0x0204b7ab, size: 633 bytes, params: 3, frame: 39
|
|
var r6;
|
|
var r7;
|
|
var r18;
|
|
var r19;
|
|
var r21;
|
|
var r22;
|
|
var r17;
|
|
var r3;
|
|
var length;
|
|
var property;
|
|
var substring;
|
|
var value8;
|
|
var value9;
|
|
var displayName;
|
|
var value10;
|
|
var push;
|
|
var object3;
|
|
var location;
|
|
var index;
|
|
var data;
|
|
var option;
|
|
var name;
|
|
var object5;
|
|
var ChatInputParseResultDataType;
|
|
var COMMAND_OPTION;
|
|
var value11;
|
|
var value12;
|
|
var object6;
|
|
const env0_0 = a0;
|
|
const value = null;
|
|
const value2 = undefined;
|
|
const options = value == a1 || value == a1.activeCommand ? value2 : a1.activeCommand.options;
|
|
if (value == (value == a1 ? value2 : a1.activeCommand)) {
|
|
return [];
|
|
}
|
|
if (value == options) {
|
|
return [];
|
|
}
|
|
const env0_1 = a1.preferredOptionValues;
|
|
const closure = optionValueLength;
|
|
let binding = env0_9;
|
|
const value4 = 0;
|
|
binding.lastIndex = value4;
|
|
const items2 = [];
|
|
const Set = global.Set;
|
|
const set = new Set();
|
|
const value7 = binding.exec(a0);
|
|
if (value != value7) {
|
|
r6 = value;
|
|
r7 = value7;
|
|
while (true) {
|
|
length = r7[value4].length;
|
|
if (length > 1) {
|
|
property = r7[value4];
|
|
substring = property.substring;
|
|
length = r7[value4].length;
|
|
value8 = Reflect.apply(substring, property, [1, length - 1]);
|
|
length = options.length;
|
|
if (!(value4 < length)) {
|
|
r17 = r6;
|
|
break;
|
|
}
|
|
r18 = value4;
|
|
r19 = r6;
|
|
while (true) {
|
|
value9 = set.has(r18);
|
|
if (value9) {
|
|
r21 = value9;
|
|
} else {
|
|
value10 = options[r18].displayName !== value8;
|
|
r21 = value10;
|
|
}
|
|
if (r21) {
|
|
r22 = r19;
|
|
continue;
|
|
}
|
|
if (value == r19) {
|
|
continue;
|
|
}
|
|
push = items2.push;
|
|
object3 = {};
|
|
location = r19.location;
|
|
object3.location = location;
|
|
location = r19.location;
|
|
index = r7.index;
|
|
data = r19.data;
|
|
option = data.option;
|
|
name = option.name;
|
|
data = r19.data;
|
|
option = data.option;
|
|
displayName = option.displayName;
|
|
object3.length = closure(location, index, name, displayName);
|
|
data = r19.data;
|
|
object3.data = data;
|
|
Reflect.apply(push, items2, [object3]);
|
|
object5 = {};
|
|
index = r7.index;
|
|
object5.location = index + 1;
|
|
object5.length = r7[value4].length - 1;
|
|
ChatInputParseResultDataType = (require(11858) /* metro dependency 11858: ChatInputParser */).ChatInputParseResultDataType;
|
|
COMMAND_OPTION = ChatInputParseResultDataType.COMMAND_OPTION;
|
|
object5.data = {type: COMMAND_OPTION, option: options[r18]};
|
|
set.add(r18);
|
|
r22 = object5;
|
|
value11 = typeof r18 === 'bigint' ? r18 + 1n : +r18 + 1;
|
|
length = options.length;
|
|
if (value11 < length) {
|
|
r18 = value11;
|
|
r19 = r22;
|
|
continue;
|
|
}
|
|
r17 = r22;
|
|
break;
|
|
}
|
|
} else {
|
|
r17 = r6;
|
|
}
|
|
binding = env0_9;
|
|
index = r7.index;
|
|
binding.lastIndex = index + 1;
|
|
value12 = binding.exec(a0);
|
|
if (value != value12) {
|
|
r6 = r17;
|
|
r7 = value12;
|
|
continue;
|
|
}
|
|
r3 = r17;
|
|
break;
|
|
}
|
|
} else {
|
|
r3 = value;
|
|
}
|
|
if (value != r3) {
|
|
push = items2.push;
|
|
object6 = {};
|
|
location = r3.location;
|
|
object6.location = location;
|
|
location = r3.location;
|
|
length = a0.length;
|
|
data = r3.data;
|
|
option = data.option;
|
|
name = option.name;
|
|
data = r3.data;
|
|
option = data.option;
|
|
object6.length = closure(location, length, name, option.displayName);
|
|
data = r3.data;
|
|
object6.data = data;
|
|
Reflect.apply(push, items2, [object6]);
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
function getMatchedOptions(a0, a1) { // fn#90902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:13041, offset: 0x0204bab7, size: 414 bytes, params: 3, frame: 30
|
|
var r3;
|
|
var r14;
|
|
var r16;
|
|
var length;
|
|
var property;
|
|
var substring;
|
|
var value7;
|
|
var value8;
|
|
var displayName;
|
|
var value9;
|
|
var push;
|
|
var object2;
|
|
var index;
|
|
var ChatInputParseResultDataType;
|
|
var COMMAND_OPTION;
|
|
var value10;
|
|
var value11;
|
|
const value = undefined;
|
|
const options = a1 == null || a1.activeCommand == null ? value : a1.activeCommand.options;
|
|
if ((a1 == null ? value : a1.activeCommand) == null) {
|
|
return [];
|
|
}
|
|
if (options == null) {
|
|
return [];
|
|
}
|
|
let binding = env0_9;
|
|
const value3 = 0;
|
|
binding.lastIndex = value3;
|
|
const items2 = [];
|
|
const Set = global.Set;
|
|
const set = new Set();
|
|
const value6 = binding.exec(a0);
|
|
if (value6 != null) {
|
|
r3 = value6;
|
|
while (true) {
|
|
length = r3[value3].length;
|
|
if (length > 1) {
|
|
property = r3[value3];
|
|
substring = property.substring;
|
|
length = r3[value3].length;
|
|
value7 = Reflect.apply(substring, property, [1, length - 1]);
|
|
length = options.length;
|
|
if (!(value3 < length)) {
|
|
break;
|
|
}
|
|
r14 = value3;
|
|
while (true) {
|
|
value8 = set.has(r14);
|
|
if (value8) {
|
|
r16 = value8;
|
|
} else {
|
|
displayName = options[r14].displayName;
|
|
value9 = displayName !== value7;
|
|
r16 = value9;
|
|
}
|
|
if (r16) {
|
|
continue;
|
|
}
|
|
push = items2.push;
|
|
object2 = {};
|
|
index = r3.index;
|
|
object2.location = index + 1;
|
|
object2.length = r3[value3].length - 1;
|
|
ChatInputParseResultDataType = (require(11858) /* metro dependency 11858: ChatInputParser */).ChatInputParseResultDataType;
|
|
COMMAND_OPTION = ChatInputParseResultDataType.COMMAND_OPTION;
|
|
object2.data = {type: COMMAND_OPTION, option: options[r14]};
|
|
Reflect.apply(push, items2, [object2]);
|
|
set.add(r14);
|
|
value10 = typeof r14 === 'bigint' ? r14 + 1n : +r14 + 1;
|
|
length = options.length;
|
|
if (value10 < length) {
|
|
r14 = value10;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
binding = env0_9;
|
|
index = r3.index;
|
|
binding.lastIndex = index + 1;
|
|
value11 = binding.exec(a0);
|
|
if (value11 != null) {
|
|
r3 = value11;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
function getTextBeforeFirstOption(a0) { // fn#90903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:13538, offset: 0x0204bc55, size: 85 bytes, params: 2, frame: 16
|
|
const value = a0;
|
|
const binding = env0_9;
|
|
binding.lastIndex = 0;
|
|
const value3 = binding.exec(value);
|
|
return {match: value3, text: value3 == null ? value : value.slice(0, env0_9.lastIndex - value3[0].length)};
|
|
}
|
|
|
|
function getEmojiHighlightNodes(a0, a1) { // fn#90904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:13665, offset: 0x0204bcaa, size: 268 bytes, params: 3, frame: 24
|
|
var r1;
|
|
var r2;
|
|
var r15;
|
|
var getDisambiguatedEmojiContext;
|
|
var getGuildId;
|
|
var value4;
|
|
var property;
|
|
var value5;
|
|
var byId;
|
|
var byName;
|
|
var defaultImport;
|
|
var getEmojiUnavailableReason;
|
|
var object2;
|
|
var CHAT;
|
|
var push;
|
|
var index;
|
|
var value8;
|
|
let length = a1.length;
|
|
if (length === 0) {
|
|
return [];
|
|
}
|
|
const items2 = [];
|
|
let binding = env0_10;
|
|
const value2 = binding.exec(a1);
|
|
const value3 = null;
|
|
if (value3 != value2) {
|
|
r1 = value3;
|
|
r2 = value2;
|
|
while (true) {
|
|
if (value3 == r1) {
|
|
getDisambiguatedEmojiContext = EmojiStore.getDisambiguatedEmojiContext;
|
|
getGuildId = a0.getGuildId;
|
|
value4 = Reflect.apply(getDisambiguatedEmojiContext, EmojiStore, [Reflect.apply(getGuildId, a0, [])]);
|
|
r1 = value4;
|
|
}
|
|
property = r2[1];
|
|
value5 = property.trim();
|
|
byId = r1.getById(value5);
|
|
if (value3 != byId) {
|
|
r15 = byId;
|
|
continue;
|
|
}
|
|
byName = r1.getByName(value5);
|
|
r15 = byName;
|
|
if (value3 == r15) {
|
|
continue;
|
|
}
|
|
defaultImport = importDefault(3801) /* metro dependency 3801: EmojiUtils */;
|
|
getEmojiUnavailableReason = defaultImport.getEmojiUnavailableReason;
|
|
object2 = {emoji: r15, channel: a0};
|
|
CHAT = EmojiIntention.CHAT;
|
|
object2.intention = CHAT;
|
|
if (value3 !== Reflect.apply(getEmojiUnavailableReason, defaultImport, [object2])) {
|
|
continue;
|
|
}
|
|
push = items2.push;
|
|
index = r2.index;
|
|
length = r2[0].length;
|
|
Reflect.apply(push, items2, [{location: index, length: length}]);
|
|
binding = env0_10;
|
|
value8 = binding.exec(a1);
|
|
if (value3 != value8) {
|
|
r2 = value8;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
function getUsernameHighlightNodes(a0, a1) { // fn#90905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:14073, offset: 0x0204bdb6, size: 103 bytes, params: 3, frame: 17
|
|
let env0_0 = a1;
|
|
let closure = function(a0, a1) {
|
|
var value3;
|
|
var env0_0 = a1;
|
|
var closure = _fun90907;
|
|
var value2 = a0.exec(require);
|
|
var env0_1 = value2;
|
|
if (value2 != null) {
|
|
while (true) {
|
|
closure();
|
|
value3 = a0.exec(require);
|
|
env0_1 = value3;
|
|
if (value3 == null) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
const env0_2 = (require(11647) /* metro dependency 11647: ApplicationCommandOptionValueParser */).getUsers(a0);
|
|
closure(env0_11, function(a0) {
|
|
return a0;
|
|
});
|
|
closure(env0_12, function(a0) {
|
|
return a0.split('#')[0];
|
|
});
|
|
return [];
|
|
}
|
|
|
|
function getRoleHighlightNodes(a0, a1) { // fn#90911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:14422, offset: 0x0204bf18, size: 204 bytes, params: 3, frame: 20
|
|
var r2;
|
|
var guildId;
|
|
var object2;
|
|
var value4;
|
|
var value5;
|
|
var done;
|
|
var value6;
|
|
var name;
|
|
var value7;
|
|
var closure;
|
|
var binding;
|
|
var exec;
|
|
var value8;
|
|
var value9;
|
|
const can = PermissionStore.can;
|
|
const MENTION_EVERYONE = Permissions.MENTION_EVERYONE;
|
|
if (Reflect.apply(can, PermissionStore, [MENTION_EVERYONE, a0])) {
|
|
guildId = a0.getGuildId();
|
|
object2 = {};
|
|
value4 = _createForOfIteratorHelperLoose_90897(guildId != null ? GuildRoleStore.getSortedRoles(guildId) : []);
|
|
value5 = value4();
|
|
done = value5.done;
|
|
if (!done) {
|
|
r2 = value5;
|
|
reducibleLoop6: while (true) {
|
|
value6 = r2.value;
|
|
name = value6.name;
|
|
object2[name] = value6;
|
|
value7 = value4();
|
|
done = value7.done;
|
|
if (done) {
|
|
break reducibleLoop6;
|
|
}
|
|
r2 = value7;
|
|
continue reducibleLoop6;
|
|
}
|
|
}
|
|
closure = getRoleHighlightNodes_loop2;
|
|
binding = env0_13;
|
|
value8 = binding.exec(a1);
|
|
var env0_1;
|
|
if (value8 != null) {
|
|
reducibleLoop8: while (true) {
|
|
closure();
|
|
binding = env0_13;
|
|
exec = binding.exec;
|
|
value9 = Reflect.apply(exec, binding, [a1]);
|
|
env0_1 = value9;
|
|
if (value9 != null) {
|
|
continue reducibleLoop8;
|
|
}
|
|
break reducibleLoop8;
|
|
}
|
|
}
|
|
}
|
|
return [];
|
|
}
|
|
|
|
function getSilentHighlightNodes(a0) { // fn#90915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:15380, offset: 0x0204c255, size: 69 bytes, params: 2, frame: 13
|
|
const items2 = [];
|
|
const value = env0_15.exec(a0);
|
|
if (value != null) {
|
|
items2.push({location: value.index, length: value[0].length});
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
function getChannelHighlightNodes(a0, a1) { // fn#90916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:15530, offset: 0x0204c29a, size: 89 bytes, params: 3, frame: 14
|
|
const env0_0 = a1;
|
|
const env0_2 = (require(11647) /* metro dependency 11647: ApplicationCommandOptionValueParser */).getChannels(a0);
|
|
const closure = _loop3;
|
|
if (!closure()) {
|
|
while (true) {
|
|
if (closure()) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return [];
|
|
}
|
|
|
|
function optionValueLength(a0, a1, a2, a3) { // fn#90901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:12221, owner: getMatchedOptionsWithValue.optionValueLength, offset: 0x0204ba24, size: 147 bytes, params: 5, frame: 18
|
|
var r0;
|
|
var binding;
|
|
var length;
|
|
var value;
|
|
const r1 = preferredOptionValues?.[a2];
|
|
const value3 = a1 - a0;
|
|
let r3 = r1 != null && r1.displayText !== '';
|
|
if (r3) {
|
|
binding = env0_0;
|
|
value = binding.substring(a0 + a3.length + 1, a1);
|
|
value = value.startsWith(r1.displayText);
|
|
r3 = value;
|
|
}
|
|
if (r3) {
|
|
length = a3.length;
|
|
value = length + 1;
|
|
length = r1.displayText.length;
|
|
value += length;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function processRegex(a0, a1) { // fn#90906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:14145, owner: getUsernameHighlightNodes.processRegex, offset: 0x0204be1d, size: 78 bytes, params: 3, frame: 16
|
|
var value3;
|
|
const env0_0 = a1;
|
|
const closure = processRegex_loop;
|
|
const value2 = a0.exec(require);
|
|
var env0_1;
|
|
if (value2 != null) {
|
|
while (true) {
|
|
closure();
|
|
value3 = a0.exec(require);
|
|
env0_1 = value3;
|
|
if (value3 == null) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function getRoleHighlightNodes_loop2() { // fn#90912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:14637, owner: getRoleHighlightNodes._loop2, offset: 0x0204bfe4, size: 563 bytes, params: 1, frame: 23
|
|
var environment;
|
|
var binding;
|
|
var push;
|
|
var object4;
|
|
var object5;
|
|
const ChatInputParseResultDataType = (require(11858) /* metro dependency 11858: ChatInputParser */).ChatInputParseResultDataType;
|
|
var object6;
|
|
let property = env0_1[1];
|
|
if (property[0] === ' ') {
|
|
return 1;
|
|
}
|
|
const value2 = property.trimEnd();
|
|
const value3 = '';
|
|
const env0_0 = value3;
|
|
const value6 = value2.split(RegExp('\\s', '')).map(_fun90913).reverse();
|
|
const value7 = value6.find(_fun90914);
|
|
const value8 = null;
|
|
const r4 = value8 != value7 ? value7 : value3;
|
|
property = value6[value6.length - 1];
|
|
const property2 = env0_2[r4];
|
|
if (value8 != property2) {
|
|
binding = env0_0;
|
|
push = binding.push;
|
|
value = environment.__proto__;
|
|
Reflect.apply(push, binding, [{location: env0_1.index, length: r4.length + 1,
|
|
data: {type: ChatInputParseResultDataType.ROLE_HIGHLIGHT,
|
|
color: AccessibilityStore.roleStyle !== 'username' ? value8 : property2.colorString}}]);
|
|
} else if (property.startsWith('everyone')) {
|
|
binding = env0_0;
|
|
push = binding.push;
|
|
object4 = {};
|
|
object4.location = env0_1.index;
|
|
object4.length = 9;
|
|
object6 = {};
|
|
value = environment.__proto__;
|
|
object6.type = ChatInputParseResultDataType.ROLE_HIGHLIGHT;
|
|
object6.color = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500;
|
|
object4.data = object6;
|
|
Reflect.apply(push, binding, [object4]);
|
|
} else if (property.startsWith('here')) {
|
|
binding = env0_0;
|
|
push = binding.push;
|
|
object4 = {};
|
|
object4.location = env0_1.index;
|
|
object4.length = 5;
|
|
object5 = {};
|
|
value = environment.__proto__;
|
|
object5.type = ChatInputParseResultDataType.ROLE_HIGHLIGHT;
|
|
object5.color = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500;
|
|
object4.data = object5;
|
|
Reflect.apply(push, binding, [object4]);
|
|
}
|
|
}
|
|
|
|
function _loop3() { // fn#90917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:15619, owner: getChannelHighlightNodes._loop3, offset: 0x0204c2f3, size: 462 bytes, params: 1, frame: 19
|
|
var environment;
|
|
var value3;
|
|
var binding;
|
|
var value4;
|
|
var property;
|
|
var trim;
|
|
var find;
|
|
var push;
|
|
var index;
|
|
var length;
|
|
var value5;
|
|
var binding2;
|
|
var binding3;
|
|
var value6;
|
|
var value7;
|
|
var moduleValue;
|
|
var binding5;
|
|
const value2 = require.indexOf('#', env0_3);
|
|
env0_3 = value2;
|
|
if (value2 < 0) {
|
|
return 1;
|
|
}
|
|
if (require[env0_3 + 1] === '"') {
|
|
binding = env0_3;
|
|
value5 = binding + 2;
|
|
env0_3 = value5;
|
|
length = require.length;
|
|
if (value5 < length) {
|
|
reducibleLoop6: while (true) {
|
|
if (require[env0_3] !== '\\') {
|
|
reducibleJoin9: while (true) {
|
|
if (require[env0_3] === '"') {
|
|
break reducibleLoop6;
|
|
}
|
|
break reducibleJoin9;
|
|
}
|
|
} else {
|
|
binding2 = env0_3;
|
|
env0_3 = typeof binding2 === 'bigint' ? binding2 + 1n : +binding2 + 1;
|
|
}
|
|
binding3 = env0_3;
|
|
value6 = typeof binding3 === 'bigint' ? binding3 + 1n : +binding3 + 1;
|
|
env0_3 = value6;
|
|
length = require.length;
|
|
if (value6 < length) {
|
|
continue reducibleLoop6;
|
|
}
|
|
break reducibleLoop6;
|
|
}
|
|
}
|
|
value7 = environment.__proto__;
|
|
moduleValue = require(4805) /* metro dependency 4805: useChannelName */;
|
|
var env0_0 = moduleValue.unescapeChannelName(require.substring(binding + 2, env0_3));
|
|
if (env0_2.find(_fun90918) != null) {
|
|
binding5 = env0_1;
|
|
binding5.push({location: binding, length: env0_3 - binding + 1});
|
|
} else {
|
|
env0_3 = binding + 1;
|
|
}
|
|
} else {
|
|
value3 = environment.__proto__;
|
|
binding = env1_14;
|
|
binding.lastIndex = env0_3;
|
|
value4 = binding.exec(require);
|
|
reducibleJoin13: while (true) {
|
|
if (value4 == null) {
|
|
break reducibleJoin13;
|
|
}
|
|
property = value4[1];
|
|
trim = property.trim;
|
|
var env0_1 = Reflect.apply(trim, property, []);
|
|
binding = env0_2;
|
|
find = binding.find;
|
|
if (Reflect.apply(find, binding, [_fun90919]) == null) {
|
|
break reducibleJoin13;
|
|
}
|
|
binding = env0_1;
|
|
push = binding.push;
|
|
index = value4.index;
|
|
length = value4[0].length;
|
|
Reflect.apply(push, binding, [{location: index, length: length}]);
|
|
break reducibleJoin13;
|
|
}
|
|
}
|
|
binding = env0_3;
|
|
env0_3 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
}
|
|
|
|
function processRegex_loop() { // fn#90907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:14188, owner: getUsernameHighlightNodes.processRegex._loop, offset: 0x0204be6b, size: 113 bytes, params: 1, frame: 13
|
|
const env0_0 = env0_1[1].trim();
|
|
if (env1_2.find(_fun90908) != null) {
|
|
env1_1.push({location: env0_1.index, length: env0_1[0].length});
|
|
}
|
|
}
|
|
|
|
function _fun90913(a0) { // fn#90913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:14728, offset: 0x0204c217, size: 40 bytes, params: 2, frame: 11
|
|
return (env0_0 + (a0 + ' ')).trim();
|
|
}
|
|
|
|
function _fun90914(a0) { // fn#90914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:14780, offset: 0x0204c23f, size: 22 bytes, params: 2, frame: 2
|
|
return env1_2[a0] != null;
|
|
}
|
|
|
|
function _fun90918({text}) { // fn#90918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:15825, offset: 0x0204c4c1, size: 21 bytes, params: 2, frame: 2
|
|
return text === env0_0;
|
|
}
|
|
|
|
function _fun90919({text}) { // fn#90919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:15964, offset: 0x0204c4d6, size: 21 bytes, params: 2, frame: 2
|
|
return text === env0_1;
|
|
}
|
|
|
|
function _fun90908({text}) { // fn#90908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12043:14231, offset: 0x0204bedc, size: 35 bytes, params: 2, frame: 11
|
|
const value = environment.__proto__;
|
|
return require(text) === env0_0;
|
|
}
|
|
|