707 lines
28 KiB
React
707 lines
28 KiB
React
/* Metro module 227; source: unknown; dependencies: [65, 57, 6, 7] */
|
|
function _fun3136(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#3136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:6, offset: 0x00c919cf, size: 125 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(65) /* metro dependency 65 */;
|
|
const env0_1 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
exports.URLSearchParams = _fun3137();
|
|
}
|
|
|
|
function _fun3137() { // fn#3137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:139, offset: 0x00c91a4c, size: 364 bytes, params: 1, frame: 15
|
|
const binding = env0_3;
|
|
const closure = URLSearchParams;
|
|
const Symbol = global.Symbol;
|
|
return binding(closure, [{key: 'size', get: function() {
|
|
return this._searchParams.size;
|
|
}}, {key: 'append', value: function(a0, a1) {
|
|
var _searchParams = this._searchParams;
|
|
var value = _searchParams.has(a0);
|
|
_searchParams = this._searchParams;
|
|
if (value) {
|
|
value = _searchParams.get(a0);
|
|
if (value != null) {
|
|
value.push(a1);
|
|
}
|
|
} else {
|
|
_searchParams.set(a0, [a1]);
|
|
}
|
|
}}, {key: 'delete', value: function(a0) {
|
|
this._searchParams.delete(a0);
|
|
}}, {key: 'get', value: function(a0) {
|
|
var value = this._searchParams.get(a0);
|
|
return value ? value[0] : null;
|
|
}}, {key: 'getAll', value: function(a0) {
|
|
return this._searchParams.get(a0) ?? [];
|
|
}}, {key: 'has', value: function(a0) {
|
|
return this._searchParams.has(a0);
|
|
}}, {key: 'set', value: function(a0, a1) {
|
|
this._searchParams.set(a0, [a1]);
|
|
}}, {key: 'keys', value: function() {
|
|
return this._searchParams.keys();
|
|
}}, {key: 'values', value: function() {
|
|
return _fun3152(this._searchParams);
|
|
}}, {key: 'entries', value: function() {
|
|
return _fun3155(this._searchParams);
|
|
}}, {key: 'forEach', value: value_3157}, {key: 'sort', value: value_3158}, {key: Symbol.iterator,
|
|
value: value_3160}, {key: 'toString', value: function() {
|
|
var Array = global.Array;
|
|
var value = Array.from(this._searchParams.entries());
|
|
value = value.map(_fun3162);
|
|
return value.join('&');
|
|
}}]);
|
|
}
|
|
|
|
function URLSearchParams(a0) { // fn#3138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:160, offset: 0x00c91bb8, size: 226 bytes, params: 2, frame: 16
|
|
var environment;
|
|
var Array;
|
|
const value = environment.__proto__;
|
|
env1_2(this, URLSearchParams);
|
|
const Map = global.Map;
|
|
let map = new Map();
|
|
this._searchParams = map;
|
|
if (a0 !== null) {
|
|
map = typeof a0;
|
|
if (map === 'string') {
|
|
map = a0.replace(RegExp('^\\?', ''), '');
|
|
map = map.split('&');
|
|
map.forEach(_fun3139);
|
|
} else {
|
|
Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
a0.forEach(_fun3141);
|
|
} else if (map === 'object') {
|
|
global.Object.entries(a0).forEach(_fun3142);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_3151() { // fn#3151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:1363, offset: 0x00c91e75, size: 25 bytes, params: 1, frame: 11
|
|
return generateValues(this._searchParams);
|
|
}
|
|
|
|
function value_3154() { // fn#3154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:1506, offset: 0x00c91ef9, size: 25 bytes, params: 1, frame: 11
|
|
return generateEntries(this._searchParams);
|
|
}
|
|
|
|
function value_3157(a0) { // fn#3157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:1674, offset: 0x00c91fa2, size: 112 bytes, params: 2, frame: 25
|
|
var r2;
|
|
var r11;
|
|
var _searchParams;
|
|
var iterator;
|
|
var iterator2;
|
|
var value;
|
|
var item;
|
|
var item2;
|
|
var binding;
|
|
var value2;
|
|
var property;
|
|
var property2;
|
|
var iterator3;
|
|
var item3;
|
|
var value3;
|
|
var error;
|
|
exceptionSkip17: while (true) {
|
|
exceptionLanding17: while (true) {
|
|
exceptionSkip14: while (true) {
|
|
exceptionLanding14: while (true) {
|
|
_searchParams = this._searchParams;
|
|
iterator = _searchParams[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
value = environment.__proto__;
|
|
r2 = iterator;
|
|
while (true) {
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
binding = env1_1;
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
try {
|
|
value2 = binding(item, 2);
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
try {
|
|
property = value2[0];
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
try {
|
|
property2 = value2[1];
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
try {
|
|
iterator = property2[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
r11 = iterator;
|
|
while (true) {
|
|
try {
|
|
item3 = Reflect.apply(iterator3, r11, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r11;
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
try {
|
|
value3 = item3 === undefined;
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
if (value3) {
|
|
r2 = item2;
|
|
break;
|
|
}
|
|
try {
|
|
try {
|
|
a0(item, property, this);
|
|
} catch (error) {
|
|
break exceptionLanding14;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
r11 = item3;
|
|
}
|
|
}
|
|
return undefined;
|
|
break exceptionSkip14;
|
|
}
|
|
try {
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
break exceptionSkip14;
|
|
}
|
|
break exceptionSkip17;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip17;
|
|
}
|
|
}
|
|
|
|
function value_3158() { // fn#3158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:1802, offset: 0x00c92012, size: 87 bytes, params: 1, frame: 14
|
|
var environment;
|
|
const Map = global.Map;
|
|
let value = environment.__proto__;
|
|
const binding = env1_0;
|
|
value = this._searchParams.entries();
|
|
value = binding(value);
|
|
value = value.sort(_fun3159);
|
|
const value2 = Object.create(Map.prototype, {constructor: {value: Map}});
|
|
const map = new Map(value);
|
|
this._searchParams = map instanceof Object ? map : value2;
|
|
}
|
|
|
|
function value_3160() { // fn#3160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:1984, offset: 0x00c9209e, size: 153 bytes, params: 1, frame: 25
|
|
var r2;
|
|
var r10;
|
|
var items3;
|
|
var _searchParams;
|
|
var iterator;
|
|
var iterator2;
|
|
var value;
|
|
var item;
|
|
var item2;
|
|
var binding;
|
|
var value2;
|
|
var property;
|
|
var property2;
|
|
var iterator3;
|
|
var item3;
|
|
var value3;
|
|
var push;
|
|
var items2;
|
|
var error;
|
|
var Symbol;
|
|
exceptionSkip22: while (true) {
|
|
exceptionLanding22: while (true) {
|
|
exceptionSkip19: while (true) {
|
|
exceptionLanding19: while (true) {
|
|
items3 = [];
|
|
_searchParams = this._searchParams;
|
|
iterator = _searchParams[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
value = environment.__proto__;
|
|
r2 = iterator;
|
|
while (true) {
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
binding = env1_1;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
value2 = binding(item, 2);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
property = value2[0];
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
property2 = value2[1];
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
iterator = property2[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
r10 = iterator;
|
|
while (true) {
|
|
try {
|
|
item3 = Reflect.apply(iterator3, r10, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r10;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
value3 = item3 === undefined;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
if (value3) {
|
|
r2 = item2;
|
|
break;
|
|
}
|
|
try {
|
|
try {
|
|
push = items3.push;
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
try {
|
|
items2[0] = property;
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
try {
|
|
items2[1] = item;
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(push, items3, [items2]);
|
|
} catch (error) {
|
|
break exceptionLanding19;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
r10 = item3;
|
|
}
|
|
}
|
|
Symbol = global.Symbol;
|
|
iterator = Symbol.iterator;
|
|
return items3[iterator]();
|
|
break exceptionSkip19;
|
|
}
|
|
try {
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
break exceptionSkip19;
|
|
}
|
|
break exceptionSkip22;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip22;
|
|
}
|
|
}
|
|
|
|
function value_3161() { // fn#3161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:2151, offset: 0x00c92137, size: 70 bytes, params: 1, frame: 12
|
|
const Array = global.Array;
|
|
const from = Array.from;
|
|
const _searchParams = this._searchParams;
|
|
let value = Reflect.apply(from, Array, [_searchParams.entries()]);
|
|
value = value.map(_fun3162);
|
|
return value.join('&');
|
|
}
|
|
|
|
function _fun3139(a0) { // fn#3139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:320, offset: 0x00c91c9a, size: 91 bytes, params: 2, frame: 13
|
|
var environment;
|
|
var value;
|
|
var value2;
|
|
if (a0) {
|
|
value = a0.split('=');
|
|
value = value.map(function(a0) {
|
|
return global.decodeURIComponent(a0.replace(RegExp('\\+', 'g'), ' '));
|
|
});
|
|
value2 = environment.__proto__.__proto__;
|
|
value = env2_1(value, 2);
|
|
env0_0.append(value[0], value[1]);
|
|
}
|
|
}
|
|
|
|
function _fun3141(a0) { // fn#3141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:494, offset: 0x00c91d28, size: 55 bytes, params: 2, frame: 13
|
|
let value = environment.__proto__.__proto__;
|
|
value = env2_1(a0, 2);
|
|
return env0_0.append(value[0], value[1]);
|
|
}
|
|
|
|
function* generateValues(a0) { // fn#3153, original name: ?anon_0_generateValues, inferred name: generateValues, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:1388, owner: value_3151.generateValues, offset: 0x00c91e97, size: 98 bytes, params: 2, frame: 15
|
|
var r3;
|
|
var r5;
|
|
var value;
|
|
var value2;
|
|
var values;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var iterator3;
|
|
var item3;
|
|
var value3;
|
|
var error;
|
|
exceptionSkip17: while (true) {
|
|
exceptionLanding17: while (true) {
|
|
exceptionSkip14: while (true) {
|
|
exceptionLanding14: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
values = a0.values;
|
|
iterator = Reflect.apply(values, a0, [])[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r3 = iterator;
|
|
reducibleLoop2: while (true) {
|
|
item2 = Reflect.apply(iterator2, r3, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r3;
|
|
if (item2 === undefined) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
iterator = item[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
r5 = iterator;
|
|
reducibleLoop5: while (true) {
|
|
try {
|
|
item3 = Reflect.apply(iterator3, r5, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r5;
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
try {
|
|
value = item3 === undefined;
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
if (value) {
|
|
r3 = item2;
|
|
continue reducibleLoop2;
|
|
}
|
|
yield item;
|
|
try {
|
|
try {
|
|
value = undefined;
|
|
value3 = false;
|
|
} catch (error) {
|
|
break exceptionLanding14;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
if (value3) {
|
|
break reducibleLoop2;
|
|
}
|
|
r5 = item3;
|
|
continue reducibleLoop5;
|
|
}
|
|
}
|
|
try {
|
|
item3.return();
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
item2.return();
|
|
return value;
|
|
break exceptionSkip14;
|
|
}
|
|
try {
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
break exceptionLanding17;
|
|
}
|
|
break exceptionSkip14;
|
|
}
|
|
break exceptionSkip17;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip17;
|
|
}
|
|
}
|
|
|
|
function* generateEntries(a0) { // fn#3156, original name: ?anon_0_generateEntries, inferred name: generateEntries, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:1532, owner: value_3154.generateEntries, offset: 0x00c91f1b, size: 135 bytes, params: 2, frame: 23
|
|
var r3;
|
|
var r10;
|
|
var value;
|
|
var value2;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var binding;
|
|
var value3;
|
|
var property;
|
|
var property2;
|
|
var iterator3;
|
|
var item3;
|
|
var value4;
|
|
var items2;
|
|
var value5;
|
|
var value6;
|
|
var error;
|
|
exceptionSkip25: while (true) {
|
|
exceptionLanding25: while (true) {
|
|
exceptionSkip22: while (true) {
|
|
exceptionLanding22: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
iterator = a0[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
r3 = iterator;
|
|
reducibleLoop2: while (true) {
|
|
item2 = Reflect.apply(iterator2, r3, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r3;
|
|
if (item2 === undefined) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env3_1;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
value3 = binding(item, 2);
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
property = value3[0];
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
property2 = value3[1];
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
iterator = property2[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
r10 = iterator;
|
|
reducibleLoop9: while (true) {
|
|
try {
|
|
item3 = Reflect.apply(iterator3, r10, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r10;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
value4 = item3 === undefined;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
if (value4) {
|
|
r3 = item2;
|
|
continue reducibleLoop2;
|
|
}
|
|
try {
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
try {
|
|
items2[0] = property;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
try {
|
|
items2[1] = item;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
yield items2;
|
|
try {
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
if (value6) {
|
|
break reducibleLoop2;
|
|
}
|
|
r10 = item3;
|
|
continue reducibleLoop9;
|
|
}
|
|
}
|
|
try {
|
|
item3.return();
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
item2.return();
|
|
return value5;
|
|
break exceptionSkip22;
|
|
}
|
|
try {
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
break exceptionSkip22;
|
|
}
|
|
break exceptionSkip25;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip25;
|
|
}
|
|
}
|
|
|
|
function _fun3159(a0, a1) { // fn#3159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:1883, offset: 0x00c92069, size: 53 bytes, params: 3, frame: 15
|
|
const value = environment.__proto__.__proto__;
|
|
const binding = env2_1;
|
|
return binding(a0, 1)[0].localeCompare(binding(a1, 1)[0]);
|
|
}
|
|
|
|
function _fun3162(a0) { // fn#3162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:2224, offset: 0x00c9217d, size: 71 bytes, params: 2, frame: 14
|
|
var environment;
|
|
let value = environment.__proto__.__proto__;
|
|
const env0_0 = env2_1(a0, 2)[0];
|
|
value = value[1].map(_fun3163);
|
|
return value.join('&');
|
|
}
|
|
|
|
function _fun3163(a0) { // fn#3163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:252:2273, offset: 0x00c921c4, size: 120 bytes, params: 2, frame: 16
|
|
const encodeURIComponent = global.encodeURIComponent;
|
|
let value = encodeURIComponent(env0_0);
|
|
value = value.replace(RegExp('%20', 'g'), '+');
|
|
return '' + value + '=' + global.encodeURIComponent(a0).replace(RegExp('%20', 'g'), '+');
|
|
}
|
|
|