811 lines
37 KiB
JavaScript
811 lines
37 KiB
JavaScript
/* Metro module 6628; source: unknown; dependencies: [65] */
|
|
import * as Module00065Module from './module-00065.js'; /* Metro dependency 65 */
|
|
|
|
function _fun52475(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6806:6, offset: 0x0132d6a6, size: 279 bytes, params: 8, frame: 15
|
|
const decode_524782 = decode_52478;
|
|
const env0_1 = RegExp('^xn--', '');
|
|
const env0_2 = RegExp('[^\\0-\\x7E]', '');
|
|
const env0_3 = RegExp('[\\x2E\\u3002\\uFF0E\\uFF61]', 'g');
|
|
const env0_4 = {'overflow': 'Overflow: input needs wider integers to process',
|
|
'not-basic': 'Illegal input >= 0x80 (not a basic code point)', 'invalid-input': 'Invalid input'};
|
|
const Math = global.Math;
|
|
const env0_5 = Math.floor;
|
|
const String = global.String;
|
|
const env0_6 = String.fromCharCode;
|
|
const basicToDigit = function(a0) {
|
|
return a0 - 48 < 10 ? a0 - 22 : a0 - 65 < 26 ? a0 - 65 : a0 - 97 < 26 ? a0 - 97 : 36;
|
|
};
|
|
const digitToBasic_52480 = function(a0, a1) {
|
|
var value = a0 + 22;
|
|
value += 75 * (a0 < 26);
|
|
return value - ((0 != 0) << 5);
|
|
};
|
|
module.exports = {version: '2.1.0', ucs2: {decode: decode_524782, encode: encode_52484}, decode: decode_52482,
|
|
encode: encode_52483, toASCII: function(a0) {
|
|
return mapDomain_52477(a0, _fun52486);
|
|
}, toUnicode: function(a0) {
|
|
return mapDomain_52477(a0, _fun52488);
|
|
}};
|
|
function error_52476(a0) { // fn#52476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6806:323, offset: 0x0132d7bd, size: 44 bytes, params: 2, frame: 11
|
|
const RangeError = global.RangeError;
|
|
throw new RangeError(env0_4[a0]);
|
|
}
|
|
|
|
function mapDomain_52477(a0, a1) { // fn#52477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6806:368, offset: 0x0132d7e9, size: 143 bytes, params: 3, frame: 17
|
|
var r1;
|
|
var r4;
|
|
var r5;
|
|
var property;
|
|
var value6;
|
|
var value7;
|
|
let value = a0;
|
|
const value2 = value.split('@');
|
|
let length = value2.length;
|
|
reducibleJoin2: while (true) {
|
|
if (length > 1) {
|
|
value = value2[0] + '@';
|
|
property = value2[1];
|
|
r1 = value;
|
|
r4 = property;
|
|
break reducibleJoin2;
|
|
}
|
|
r1 = '';
|
|
r4 = value;
|
|
break reducibleJoin2;
|
|
}
|
|
value = r4.replace(env0_3, '.');
|
|
value = value.split('.');
|
|
const items2 = [];
|
|
length = value.length;
|
|
const value4 = typeof length === 'bigint' ? length : +length;
|
|
if (value4) {
|
|
r5 = typeof value4 === 'bigint' ? value4 - 1n : +value4 - 1;
|
|
reducibleLoop3: while (true) {
|
|
items2[r5] = a1(value[r5]);
|
|
value6 = typeof r5 === 'bigint' ? r5 : +r5;
|
|
value7 = typeof value6 === 'bigint' ? value6 - 1n : +value6 - 1;
|
|
if (value6) {
|
|
r5 = value7;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
}
|
|
return r1 + items2.join('.');
|
|
}
|
|
|
|
function adapt_52481(a0, a1, a2) { // fn#52481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6806:954, offset: 0x0132d97c, size: 147 bytes, params: 4, frame: 19
|
|
var r4;
|
|
var r6;
|
|
var r5;
|
|
var value4;
|
|
var value5;
|
|
let r3 = a2 ? floor(a0 / 700) : a0 >> 1;
|
|
const value2 = r3 + floor(r3 / a1);
|
|
const value3 = 0;
|
|
if (value2 > 455) {
|
|
r4 = value3;
|
|
for (r6 = value2; true; r6 = value4) {
|
|
value4 = floor(r6 / 35);
|
|
value5 = r4 + 36;
|
|
if (!(value4 > 455)) {
|
|
r3 = value5;
|
|
r5 = value4;
|
|
break;
|
|
}
|
|
r4 = value5;
|
|
}
|
|
} else {
|
|
r3 = value3;
|
|
r5 = value2;
|
|
}
|
|
return floor(r3 + 36 * r5 / (r5 + 38));
|
|
}
|
|
|
|
function decode_52482(a0) { // fn#52482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6806:1064, offset: 0x0132da0f, size: 490 bytes, params: 2, frame: 37
|
|
var r0;
|
|
var r2;
|
|
var r10;
|
|
var r12;
|
|
var r19;
|
|
var r20;
|
|
var r21;
|
|
var r22;
|
|
var r25;
|
|
var r23;
|
|
var charCodeAt;
|
|
var push;
|
|
var value4;
|
|
var basicToDigitBinding;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var floorBinding;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var length2;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var splice;
|
|
var value26;
|
|
const items2 = [];
|
|
const length = a0.length;
|
|
const value = a0.lastIndexOf('-');
|
|
const value2 = 0;
|
|
const r1 = value < value2 ? value2 : value;
|
|
const value3 = 128;
|
|
if (value2 < r1) {
|
|
r0 = value2;
|
|
while (true) {
|
|
charCodeAt = a0.charCodeAt;
|
|
if (Reflect.apply(charCodeAt, a0, [r0]) >= value3) {
|
|
error_52476('not-basic');
|
|
}
|
|
push = items2.push;
|
|
charCodeAt = a0.charCodeAt;
|
|
Reflect.apply(push, items2, [Reflect.apply(charCodeAt, a0, [r0])]);
|
|
value4 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (value4 < r1) {
|
|
r0 = value4;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
let r11 = r1 > value2 ? r1 + 1 : value2;
|
|
const value6 = 72;
|
|
const value7 = 1;
|
|
const value8 = 36;
|
|
const value9 = 26;
|
|
if (r11 < length) {
|
|
r2 = value2;
|
|
r10 = value6;
|
|
r12 = value3;
|
|
while (true) {
|
|
r19 = value8;
|
|
r20 = value7;
|
|
r21 = r2;
|
|
while (true) {
|
|
if (r11 >= length) {
|
|
error_52476('invalid-input');
|
|
}
|
|
basicToDigitBinding = basicToDigit;
|
|
charCodeAt = a0.charCodeAt;
|
|
value10 = typeof r11 === 'bigint' ? r11 : +r11;
|
|
value11 = typeof value10 === 'bigint' ? value10 + 1n : +value10 + 1;
|
|
value12 = basicToDigitBinding(Reflect.apply(charCodeAt, a0, [value10]));
|
|
value13 = value12 >= value8;
|
|
if (value13) {
|
|
r22 = value13;
|
|
continue;
|
|
}
|
|
value14 = value12 > floor((2147483647 - r21) / r20);
|
|
r22 = value14;
|
|
if (!r22) {
|
|
continue;
|
|
}
|
|
error_52476('overflow');
|
|
value15 = r21 + value12 * r20;
|
|
if (r19 <= r10) {
|
|
r23 = value7;
|
|
continue;
|
|
}
|
|
if (r19 >= r10 + value9) {
|
|
r25 = value9;
|
|
continue;
|
|
}
|
|
value16 = r19 - r10;
|
|
r25 = value16;
|
|
r23 = r25;
|
|
if (value12 < r23) {
|
|
break;
|
|
}
|
|
value17 = value8 - r23;
|
|
if (!(r20 > floor(2147483647 / value17))) {
|
|
continue;
|
|
}
|
|
error_52476('overflow');
|
|
value18 = r20 * value17;
|
|
value19 = r19 + value8;
|
|
r11 = value11;
|
|
r19 = value19;
|
|
r20 = value18;
|
|
r21 = value15;
|
|
}
|
|
length2 = items2.length;
|
|
value20 = length2 + value7;
|
|
value21 = adapt_52481(value15 - r2, value20, value2 === r2);
|
|
floorBinding = floor;
|
|
value22 = value15 / value20;
|
|
value23 = floorBinding(value22);
|
|
if (!(value23 > 2147483647 - r12)) {
|
|
continue;
|
|
}
|
|
error_52476('overflow');
|
|
value24 = r12 + floor(value22);
|
|
value25 = value15 % value20;
|
|
splice = items2.splice;
|
|
value26 = typeof value25 === 'bigint' ? value25 + 1n : +value25 + 1;
|
|
Reflect.apply(splice, items2, [value25, value2, value24]);
|
|
if (value11 < length) {
|
|
r2 = value26;
|
|
r10 = value21;
|
|
r11 = value11;
|
|
r12 = value24;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
let String = global.String;
|
|
const fromCodePoint = String.fromCodePoint;
|
|
const apply = fromCodePoint.apply;
|
|
String = global.String;
|
|
return Reflect.apply(apply, fromCodePoint, [String, items2]);
|
|
}
|
|
|
|
function encode_52483(a0) { // fn#52483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6806:1618, offset: 0x0132dbf9, size: 662 bytes, params: 2, frame: 43
|
|
var r2;
|
|
var r12;
|
|
var r13;
|
|
var r14;
|
|
var r16;
|
|
var r17;
|
|
var r24;
|
|
var r25;
|
|
var r21;
|
|
var r22;
|
|
var r26;
|
|
var items2;
|
|
var value;
|
|
var value2;
|
|
var length;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var value6;
|
|
var push;
|
|
var fromCharCodeBinding;
|
|
var value7;
|
|
var error;
|
|
var length2;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var iterator3;
|
|
var item3;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var floorBinding;
|
|
var error_52476Binding;
|
|
var value16;
|
|
var iterator4;
|
|
var item4;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var digitToBasic_52480Binding;
|
|
var value28;
|
|
var value29;
|
|
var value30;
|
|
var value31;
|
|
var value32;
|
|
var value33;
|
|
var value34;
|
|
var value35;
|
|
var value36;
|
|
var adapt_52481Binding;
|
|
var value37;
|
|
var value38;
|
|
var value39;
|
|
var value40;
|
|
var value41;
|
|
var join;
|
|
exceptionSkip87: while (true) {
|
|
exceptionLanding87: while (true) {
|
|
exceptionSkip24: while (true) {
|
|
exceptionLanding24: while (true) {
|
|
exceptionSkip10: while (true) {
|
|
exceptionLanding10: while (true) {
|
|
items2 = [];
|
|
value = environment;
|
|
value2 = decode_52478(a0);
|
|
length = value2.length;
|
|
value3 = 128;
|
|
value4 = 0;
|
|
value5 = 72;
|
|
iterator = value2[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r2 = iterator;
|
|
while (true) {
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
value6 = item < value3;
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
if (!value6) {
|
|
r2 = item2;
|
|
continue;
|
|
}
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
fromCharCodeBinding = fromCharCode;
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
value7 = fromCharCodeBinding(item);
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [value7]);
|
|
} catch (error) {
|
|
break exceptionLanding10;
|
|
}
|
|
r2 = item2;
|
|
}
|
|
length2 = items2.length;
|
|
if (length2) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, ['-']);
|
|
}
|
|
value8 = 36;
|
|
value9 = 26;
|
|
value10 = 1;
|
|
value11 = 2147483647;
|
|
if (length2 < length) {
|
|
r12 = value3;
|
|
r13 = value4;
|
|
r14 = value5;
|
|
r16 = length2;
|
|
while (true) {
|
|
iterator = value2[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
r17 = value11;
|
|
r24 = iterator;
|
|
while (true) {
|
|
item3 = Reflect.apply(iterator3, r24, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r24;
|
|
if (item3 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
value12 = item >= r12;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
if (!value12) {
|
|
r25 = value12;
|
|
continue;
|
|
}
|
|
try {
|
|
value13 = item < r17;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
r25 = value13;
|
|
if (!r25) {
|
|
continue;
|
|
}
|
|
r17 = item;
|
|
r24 = item3;
|
|
}
|
|
value14 = r16 + value10;
|
|
value15 = r17 - r12;
|
|
if (!(value15 > floor((value11 - r13) / value14))) {
|
|
continue;
|
|
}
|
|
error_52476('overflow');
|
|
value16 = r13 + (r17 - r12) * value14;
|
|
iterator = value2[Symbol.iterator]();
|
|
iterator4 = iterator.next;
|
|
r13 = value16;
|
|
r24 = iterator;
|
|
while (true) {
|
|
item4 = Reflect.apply(iterator4, r24, []);
|
|
item = item4.value;
|
|
item4 = item4.done ? undefined : r24;
|
|
if (item4 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
value17 = item < r17;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
if (!value17) {
|
|
r25 = value17;
|
|
continue;
|
|
}
|
|
try {
|
|
value18 = typeof r13 === 'bigint' ? r13 + 1n : +r13 + 1;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value19 = value18 > value11;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
r13 = value18;
|
|
r25 = value19;
|
|
if (!r25) {
|
|
continue;
|
|
}
|
|
try {
|
|
error_52476Binding = error_52476;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
error_52476Binding('overflow');
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value20 = item != r17;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
if (value20) {
|
|
continue;
|
|
}
|
|
r21 = r13;
|
|
r22 = value8;
|
|
while (true) {
|
|
try {
|
|
value21 = r22 <= r14;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
if (value21) {
|
|
r26 = value10;
|
|
continue;
|
|
}
|
|
try {
|
|
value22 = r14 + value9;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value23 = r22 >= value22;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
if (value23) {
|
|
r25 = value9;
|
|
continue;
|
|
}
|
|
try {
|
|
value24 = r22 - r14;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
r25 = value24;
|
|
r26 = r25;
|
|
try {
|
|
value25 = r21 < r26;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
if (value25) {
|
|
break;
|
|
}
|
|
try {
|
|
value26 = r21 - r26;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value27 = value8 - r26;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
fromCharCodeBinding = fromCharCode;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
digitToBasic_52480Binding = digitToBasic_52480;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value28 = value26 % value27;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value29 = r26 + value28;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value30 = digitToBasic_52480Binding(value29, value4);
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value31 = fromCharCodeBinding(value30);
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [value31]);
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
floorBinding = floor;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value32 = value26 / value27;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value33 = floorBinding(value32);
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value34 = r22 + value8;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
r21 = value33;
|
|
r22 = value34;
|
|
}
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
fromCharCodeBinding = fromCharCode;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
digitToBasic_52480Binding = digitToBasic_52480;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value35 = digitToBasic_52480Binding(r21, value4);
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value36 = fromCharCodeBinding(value35);
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [value36]);
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
adapt_52481Binding = adapt_52481;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value37 = r16 == length2;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value38 = adapt_52481Binding(r13, value14, value37);
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
try {
|
|
value39 = typeof r16 === 'bigint' ? r16 + 1n : +r16 + 1;
|
|
} catch (error) {
|
|
break exceptionLanding87;
|
|
}
|
|
r13 = value4;
|
|
r14 = value38;
|
|
r16 = value39;
|
|
r24 = item4;
|
|
}
|
|
value40 = typeof r13 === 'bigint' ? r13 + 1n : +r13 + 1;
|
|
value41 = typeof r17 === 'bigint' ? r17 + 1n : +r17 + 1;
|
|
if (r16 < length) {
|
|
r12 = value41;
|
|
r13 = value40;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
join = items2.join;
|
|
return Reflect.apply(join, items2, ['']);
|
|
break exceptionSkip10;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip10;
|
|
}
|
|
break exceptionSkip24;
|
|
}
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip24;
|
|
}
|
|
break exceptionSkip87;
|
|
}
|
|
try {
|
|
item4.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip87;
|
|
}
|
|
}
|
|
|
|
function encode_52484(a0) { // fn#52484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6806:2149, offset: 0x0132de8f, size: 50 bytes, params: 2, frame: 15
|
|
let String = global.String;
|
|
const fromCodePoint = String.fromCodePoint;
|
|
const apply = fromCodePoint.apply;
|
|
String = global.String;
|
|
return Reflect.apply(apply, fromCodePoint, [String, Module00065Module(a0)]);
|
|
}
|
|
|
|
function toASCII_52485(a0) { // fn#52485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6806:2247, offset: 0x0132dec1, size: 27 bytes, params: 2, frame: 13
|
|
return mapDomain_52477(a0, _fun52486);
|
|
function _fun52486(a0) { // fn#52486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6806:2287, offset: 0x0132dedc, size: 49 bytes, params: 2, frame: 12
|
|
var r0;
|
|
let value = a0;
|
|
const binding = env1_2;
|
|
if (binding.test(value)) {
|
|
value = encode_52483(value);
|
|
value = 'xn--' + value;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function toUnicode_52487(a0) { // fn#52487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6806:2344, offset: 0x0132df0d, size: 27 bytes, params: 2, frame: 13
|
|
return mapDomain_52477(a0, _fun52488);
|
|
function _fun52488(a0) { // fn#52488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6806:2386, offset: 0x0132df28, size: 62 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var decode_52482Binding;
|
|
let value = a0;
|
|
const binding = env1_1;
|
|
if (binding.test(value)) {
|
|
decode_52482Binding = decode_52482;
|
|
value = value.slice(4);
|
|
value = value.toLowerCase();
|
|
value = decode_52482Binding(value);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function decode_52478(a0) { // fn#52478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6806:580, offset: 0x0132d878, size: 194 bytes, params: 2, frame: 25
|
|
var r9;
|
|
var charCodeAt;
|
|
var value2;
|
|
var push;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
const items2 = [];
|
|
const length = a0.length;
|
|
let value = 0;
|
|
if (value < length) {
|
|
r9 = value;
|
|
reducibleLoop1: while (true) {
|
|
charCodeAt = a0.charCodeAt;
|
|
value = typeof r9 === 'bigint' ? r9 : +r9;
|
|
value2 = typeof value === 'bigint' ? value + 1n : +value + 1;
|
|
value = Reflect.apply(charCodeAt, a0, [value]);
|
|
reducibleJoin8: while (true) {
|
|
reducibleJoin4: while (true) {
|
|
if (value >= 55296) {
|
|
if (value <= 56319) {
|
|
if (value2 < length) {
|
|
charCodeAt = a0.charCodeAt;
|
|
value3 = typeof value2 === 'bigint' ? value2 : +value2;
|
|
value4 = typeof value3 === 'bigint' ? value3 + 1n : +value3 + 1;
|
|
value5 = Reflect.apply(charCodeAt, a0, [value3]);
|
|
if ((64512 & value5) === 56320) {
|
|
push = items2.push;
|
|
value = 1023 & value;
|
|
value6 = 1023 & value5;
|
|
Reflect.apply(push, items2, [(value << 10) + value6 + 65536]);
|
|
r9 = value4;
|
|
break reducibleJoin8;
|
|
}
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [value]);
|
|
value = typeof value4 === 'bigint' ? value4 - 1n : +value4 - 1;
|
|
r9 = value;
|
|
break reducibleJoin8;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [value]);
|
|
r9 = value2;
|
|
break reducibleJoin8;
|
|
}
|
|
if (r9 < length) {
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
global.__d(_fun52475, 6628, [65]) /* metro module 6628, dependencies: [65] */;
|