/* Metro module 1523; source: unknown; dependencies: [77, 57, 65, 1524, 1525, 1526, 1527] */ import * as Module00057Module from './module-00057.js'; /* Metro dependency 57 */ import * as Module00065Module from './module-00065.js'; /* Metro dependency 65 */ import * as Module00077Module from './module-00077.js'; /* Metro dependency 77 */ import * as Module01526Module from './module-01526.js'; /* Metro dependency 1526 */ function _fun17233(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:6, offset: 0x00e6729b, size: 236 bytes, params: 8, frame: 16 const env0_0 = require; const validateArrayFormatSeparator = function(a0) { if (typeof a0 !== 'string') { throw new global.TypeError('arrayFormatSeparator must be single character string'); } if (a0.length !== 1) { throw new global.TypeError('arrayFormatSeparator must be single character string'); } }; const removeHash = function(a0) { var r0; var value = a0; var value2 = value.indexOf('#'); if (value2 === -1) { r0 = value; } else { value = value.slice(0, value2); r0 = value; } return r0; }; const extract2 = extract; const parse_172432 = parse_17243; const Symbol = global.Symbol; const env0_6 = Symbol('encodeFragmentIdentifier'); exports.extract = extract2; exports.parse = parse_172432; exports.stringify = stringify_17254; exports.parseUrl = parseUrl_17269; exports.stringifyUrl = stringifyUrl; exports.pick = pick; exports.exclude = exclude; function encode_17235(a0, a1) { // fn#17235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:268, offset: 0x00e673c9, size: 79 bytes, params: 3, frame: 14 var r1; var r0; let value = a0; if (a1.encode) { if (a1.strict) { value = (require(1524) /* metro dependency 1524 */)(value); r1 = value; } else { value = global.encodeURIComponent(value); r1 = value; } r0 = r1; } else { r0 = value; } return r0; } function decode_17236(a0, a1) { // fn#17236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:349, offset: 0x00e67418, size: 50 bytes, params: 3, frame: 13 var r0; let value = a0; if (a1.decode) { value = (require(1525) /* metro dependency 1525 */)(value); r0 = value; } else { r0 = value; } return r0; } function keysSorter(a0) { // fn#17237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:399, offset: 0x00e6744a, size: 119 bytes, params: 2, frame: 14 var r0; var keysSorterBinding; let value = a0; const Array = global.Array; if (Array.isArray(value)) { value = value.sort(); r0 = value; } else if (typeof value !== 'object') { r0 = value; } else { keysSorterBinding = keysSorter; value = global.Object.keys(value); value = keysSorterBinding(value); value = value.sort(function(a0, a1) { return (0, global.Number)(a0) - (0, global.Number)(a1); }); value = value.map(_fun17239); r0 = value; } return r0; function _fun17239(a0) { // fn#17239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:556, offset: 0x00c3fbaf, size: 16 bytes, params: 2, frame: 2 return env0_0[a0]; } } function extract(a0) { // fn#17241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:662, offset: 0x00e674e7, size: 67 bytes, params: 2, frame: 13 var r0; var value; const value2 = removeHash(a0).indexOf('?'); if (value2 === -1) { r0 = ''; } else { value = value.slice(value2 + 1); r0 = value; } return r0; } function parse_17243(a0, a1) { // fn#17243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:980, offset: 0x00e675df, size: 755 bytes, params: 3, frame: 39 var environment; var r8; var r24; var r27; var r15; var r4; var r1; var value; var validateArrayFormatSeparatorBinding; var Object; var assign; var value2; var arrayFormatSeparator; var value3; var create; var value4; var value5; var trim; var value6; var replace; var value7; var split; var iterator; var iterator2; var item; var item2; var value8; var property; var moduleValue; var decode; var regexp; var value9; var value10; var binding; var value11; var property2; var value12; var items2; var includes; var arrayFormat; var value13; var decode_17236Binding; var value14; var value15; var error; var keys; var iterator3; var item3; var value16; var value17; var parseValue_17242Binding; var value_17242; var value18; var iterator4; var item4; var value19; var property3; var value_172422; var sort; var sort2; var reduce; exceptionSkip77: while (true) { exceptionLanding77: while (true) { exceptionSkip74: while (true) { exceptionLanding74: while (true) { exceptionSkip43: while (true) { exceptionLanding43: while (true) { value = environment; validateArrayFormatSeparatorBinding = validateArrayFormatSeparator; Object = global.Object; assign = Object.assign; value2 = Reflect.apply(assign, Object, [{'decode': true, 'sort': true, 'arrayFormat': 'none', 'arrayFormatSeparator': ',', 'parseNumbers': false, 'parseBooleans': false}, a1]); arrayFormatSeparator = value2.arrayFormatSeparator; validateArrayFormatSeparatorBinding(arrayFormatSeparator); value3 = ((a0) => { var env0_0 = a0; var arrayFormat = a0.arrayFormat; if (arrayFormat === 'index') { return _fun17245; } if (arrayFormat === 'bracket') { return _fun17246; } if (arrayFormat === 'colon-list-separator') { return _fun17247; } if (arrayFormat === 'comma') { return _fun17248; } if (arrayFormat === 'separator') { return _fun17248; } if (arrayFormat === 'bracket-separator') { return _fun17250; } return _fun17252; })(value2); Object = global.Object; create = Object.create; value4 = null; value5 = Reflect.apply(create, Object, [value4]); var env0_0 = value5; if (typeof a0 !== 'string') { return value5; } trim = a0.trim; value6 = Reflect.apply(trim, a0, []); replace = value6.replace; value7 = Reflect.apply(replace, value6, [RegExp('^[?#&]', ''), '']); if (value7) { split = value7.split; iterator = Reflect.apply(split, value7, ['&'])[Symbol.iterator](); iterator2 = iterator.next; r8 = iterator; reducibleLoop4: while (true) { item2 = Reflect.apply(iterator2, r8, []); item = item2.value; item2 = item2.done ? undefined : r8; if (item2 === undefined) { break reducibleLoop4; } try { value8 = item === ''; } catch (error) { break exceptionLanding43; } if (value8) { r8 = item2; continue reducibleLoop4; } try { } catch (error) { break exceptionLanding43; } try { } catch (error) { break exceptionLanding43; } try { property = dependencyMap[5]; } catch (error) { break exceptionLanding43; } try { moduleValue = require(property); } catch (error) { break exceptionLanding43; } try { decode = value2.decode; } catch (error) { break exceptionLanding43; } if (decode) { try { replace = item.replace; } catch (error) { break exceptionLanding43; } try { regexp = RegExp('\\+', 'g'); } catch (error) { break exceptionLanding43; } try { value9 = Reflect.apply(replace, item, [regexp, ' ']); } catch (error) { break exceptionLanding43; } r24 = value9; } else { r24 = item; } try { value10 = moduleValue(r24, '='); } catch (error) { break exceptionLanding43; } try { binding = Module00057Module; } catch (error) { break exceptionLanding43; } try { value11 = binding(value10, 2); } catch (error) { break exceptionLanding43; } try { property = value11[0]; } catch (error) { break exceptionLanding43; } try { property2 = value11[1]; } catch (error) { break exceptionLanding43; } try { value12 = property2 === undefined; } catch (error) { break exceptionLanding43; } reducibleJoin37: while (true) { if (value12) { r27 = value4; break reducibleJoin37; } try { items2 = ['comma', 'separator', 'bracket-separator']; } catch (error) { break exceptionLanding43; } try { includes = items2.includes; } catch (error) { break exceptionLanding43; } try { arrayFormat = value2.arrayFormat; } catch (error) { break exceptionLanding43; } try { value13 = Reflect.apply(includes, items2, [arrayFormat]); } catch (error) { break exceptionLanding43; } if (value13) { r24 = property2; } else { try { decode_17236Binding = decode_17236; } catch (error) { break exceptionLanding43; } try { value14 = decode_17236Binding(property2, value2); } catch (error) { break exceptionLanding43; } r24 = value14; } r27 = r24; break reducibleJoin37; } try { decode_17236Binding = decode_17236; } catch (error) { break exceptionLanding43; } try { value15 = decode_17236Binding(property, value2); } catch (error) { break exceptionLanding43; } try { value3(value15, r27, value5); } catch (error) { break exceptionLanding43; } r8 = item2; continue reducibleLoop4; } Object = global.Object; keys = Object.keys; iterator = Reflect.apply(keys, Object, [value5])[Symbol.iterator](); iterator3 = iterator.next; r8 = iterator; reducibleLoop45: while (true) { item3 = Reflect.apply(iterator3, r8, []); item = item3.value; item3 = item3.done ? undefined : r8; if (item3 === undefined) { break reducibleLoop45; } try { property = value5[item]; } catch (error) { break exceptionLanding77; } try { value16 = typeof property !== 'object'; } catch (error) { break exceptionLanding77; } if (!value16) { try { value17 = value4 !== property; } catch (error) { break exceptionLanding77; } reducibleJoin52: while (true) { if (value17) { try { Object = global.Object; } catch (error) { break exceptionLanding77; } try { keys = Object.keys; } catch (error) { break exceptionLanding77; } try { value18 = Reflect.apply(keys, Object, [property]); } catch (error) { break exceptionLanding77; } try { iterator = value18[Symbol.iterator](); iterator4 = iterator.next; } catch (error) { break exceptionLanding77; } r15 = iterator; reducibleLoop64: while (true) { try { item4 = Reflect.apply(iterator4, r15, []); item = item4.value; item4 = item4.done ? undefined : r15; } catch (error) { break exceptionLanding77; } try { value19 = item4 === undefined; } catch (error) { break exceptionLanding77; } if (value19) { r8 = item3; continue reducibleLoop45; } try { try { parseValue_17242Binding = parseValue_17242; } catch (error) { break exceptionLanding74; } } catch (error) { break exceptionLanding77; } try { try { property3 = property[item]; } catch (error) { break exceptionLanding74; } } catch (error) { break exceptionLanding77; } try { try { value_172422 = parseValue_17242Binding(property3, value2); } catch (error) { break exceptionLanding74; } } catch (error) { break exceptionLanding77; } try { try { property[item] = value_172422; } catch (error) { break exceptionLanding74; } } catch (error) { break exceptionLanding77; } r15 = item4; continue reducibleLoop64; } continue reducibleLoop45; } break reducibleJoin52; } } try { parseValue_17242Binding = parseValue_17242; } catch (error) { break exceptionLanding77; } try { value_17242 = parseValue_17242Binding(property, value2); } catch (error) { break exceptionLanding77; } try { value5[item] = value_17242; } catch (error) { break exceptionLanding77; } r8 = item3; continue reducibleLoop45; } sort = value2.sort; reducibleJoin83: while (true) { if (sort === false) { r1 = value5; break reducibleJoin83; } sort = value2.sort; if (sort === true) { Object = global.Object; keys = Object.keys; value = Reflect.apply(keys, Object, [value5]); sort = value.sort; value = Reflect.apply(sort, value, []); r4 = value; } else { Object = global.Object; keys = Object.keys; value = Reflect.apply(keys, Object, [value5]); sort = value.sort; sort2 = value2.sort; value = Reflect.apply(sort, value, [sort2]); r4 = value; } reduce = r4.reduce; Object = global.Object; create = Object.create; value = Reflect.apply(create, Object, [value4]); value = Reflect.apply(reduce, r4, [_fun17253, value]); r1 = value; break reducibleJoin83; } return r1; } return value5; break exceptionSkip43; } try { item2.return(); } catch { } throw error; break exceptionSkip43; } break exceptionSkip74; } try { try { item4.return(); } catch { } } catch (error) { break exceptionLanding77; } try { throw error; } catch (error) { break exceptionLanding77; } break exceptionSkip74; } break exceptionSkip77; } try { item3.return(); } catch { } throw error; break exceptionSkip77; } function parserForArrayFormat(a0) { // fn#17244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:1175, owner: parse_17243.parserForArrayFormat, offset: 0x00e678d2, size: 111 bytes, params: 2, frame: 3 const env0_0 = a0; const arrayFormat = a0.arrayFormat; if (arrayFormat === 'index') { return _fun17245; } if (arrayFormat === 'bracket') { return _fun17246; } if (arrayFormat === 'colon-list-separator') { return _fun17247; } if (arrayFormat === 'comma') { return _fun17248; } if (arrayFormat === 'separator') { return _fun17248; } if (arrayFormat === 'bracket-separator') { return _fun17250; } return function(a0, a1, a2) { if (a2[a0] !== undefined) { a2[a0] = [].concat(a2[a0], a1); } else { a2[a0] = a1; } }; function _fun17245(a0, a1, a2) { // fn#17245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:1255, offset: 0x00e67941, size: 122 bytes, params: 4, frame: 16 env0_1 = RegExp('\\[(\\d*)\\]$', '').exec(a0); value = a0.replace(RegExp('\\[\\d*\\]$', ''), ''); if (env0_1) { if (a2[value] === undefined) { a2[value] = {}; } a2[value][env0_1[1]] = a1; } else { a2[value] = a1; } } function _fun17246(a0, a1, a2) { // fn#17246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:1392, offset: 0x00e679bb, size: 134 bytes, params: 4, frame: 16 var items2; env0_1 = RegExp('(\\[\\])$', '').exec(a0); value = a0.replace(RegExp('\\[\\]$', ''), ''); if (env0_1) { if (a2[value] !== undefined) { items2 = []; a2[value] = items2.concat(a2[value], a1); } else { a2[value] = [a1]; } } else { a2[value] = a1; } } function _fun17247(a0, a1, a2) { // fn#17247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:1542, offset: 0x00e67a41, size: 134 bytes, params: 4, frame: 16 var items2; env0_1 = RegExp('(:list)$', '').exec(a0); value = a0.replace(RegExp(':list$', ''), ''); if (env0_1) { if (a2[value] !== undefined) { items2 = []; a2[value] = items2.concat(a2[value], a1); } else { a2[value] = [a1]; } } else { a2[value] = a1; } } function _fun17248(a0, a1, a2) { // fn#17248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:1695, offset: 0x00e67ac7, size: 211 bytes, params: 4, frame: 16 var environment; var r3; var r2; var value6; var decode_17236Binding; var binding; var value8; var value10; let value = a1; const value2 = typeof value === 'string'; const r1 = value2 && value.includes(env0_0.arrayFormatSeparator); let r0 = value2 && !r1; if (r0) { value6 = environment.__proto__.__proto__; decode_17236Binding = decode_17236; binding = env0_0; value8 = decode_17236Binding(value, binding); r0 = value8.includes(binding.arrayFormatSeparator); } if (r0) { value10 = environment.__proto__.__proto__; value = decode_17236(value, env0_0); r3 = value; } else { r3 = value; } if (r1) { value = r3.split(env0_0.arrayFormatSeparator); value = value.map(_fun17249); r2 = value; } else if (r0) { value = r3.split(env0_0.arrayFormatSeparator); value = value.map(_fun17249); r2 = value; } else if (r3 === null) { r2 = r3; } else { value = environment.__proto__.__proto__; value = decode_17236(r3, env0_0); r2 = value; } a2[a0] = r2; function _fun17249(a0) { // fn#17249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:1909, offset: 0x00e67b9a, size: 27 bytes, params: 2, frame: 13 return decode_17236(a0, env1_0); } } function _fun17250(a0, a1, a2) { // fn#17250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:2005, offset: 0x00e67bb5, size: 194 bytes, params: 4, frame: 16 var environment; var r0; var r5; var value4; var items2; let value = a1; const value2 = RegExp('(\\[\\])$', '').test(a0); const value3 = a0.replace(RegExp('\\[\\]$', ''), ''); if (value2) { if (value === null) { r5 = []; } else { value = value.split(env0_0.arrayFormatSeparator); value = value.map(_fun17251); r5 = value; } if (a2[value3] !== undefined) { items2 = []; a2[value3] = items2.concat(a2[value3], r5); } else { a2[value3] = r5; } } else { if (value) { value4 = environment.__proto__.__proto__; value = decode_17236(value, env0_0); r0 = value; } else { r0 = value; } a2[value3] = r0; } function _fun17251(a0) { // fn#17251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:2130, offset: 0x00e67b9a, size: 27 bytes, params: 2, frame: 13 return decode_17236(a0, env1_0); } } } function _fun17253(a0, a1) { // fn#17253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:2886, offset: 0x00e67ca9, size: 89 bytes, params: 3, frame: 15 var Array; const property = env0_0[a1]; const Boolean = global.Boolean; if (Boolean(property)) { if (typeof property !== 'object') { a0[a1] = property; } else { Array = global.Array; if (Array.isArray(property)) { a0[a1] = property; } else { value = environment.__proto__; a0[a1] = keysSorter(property); } } } else { a0[a1] = property; } return a0; } } function stringify_17254(a0, a1) { // fn#17254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:3063, offset: 0x00e67d02, size: 279 bytes, params: 3, frame: 22 var shouldFilter22; var property; var error; var value3; var sort; var sort2; var map; var filter; var join; const env0_0 = a0; const env0_1 = a1; if (!a0) { return ''; } const validateArrayFormatSeparatorBinding = validateArrayFormatSeparator; let Object = global.Object; let value = Object.assign({'encode': true, 'strict': true, 'arrayFormat': 'none', 'arrayFormatSeparator': ','}, a1); validateArrayFormatSeparatorBinding(value.arrayFormatSeparator); const shouldFilter2 = shouldFilter; const env0_2 = encoderForArrayFormat(value); const object = {}; Object = global.Object; let keys = Object.keys; const iterator = Reflect.apply(keys, Object, [a0])[Symbol.iterator](); const iterator2 = iterator.next; let r5 = iterator; let item2 = Reflect.apply(iterator2, r5, []); let item = item2.value; item2 = item2.done ? undefined : r5; reducibleJoin4: while (true) { if (item2 === undefined) { Object = global.Object; keys = Object.keys; value3 = Reflect.apply(keys, Object, [object]); sort = value.sort; reducibleJoin13: while (true) { if (sort === false) { break reducibleJoin13; } sort = value3.sort; sort2 = value.sort; Reflect.apply(sort, value3, [sort2]); break reducibleJoin13; } map = value3.map; value = Reflect.apply(map, value3, [_fun17267]); filter = value.filter; value = Reflect.apply(filter, value, [function(a0) { return a0.length > 0; }]); join = value.join; return Reflect.apply(join, value, ['&']); } break reducibleJoin4; } reducibleLoop4: while (true) { try { shouldFilter22 = shouldFilter2(item); } catch (error) { try { item2.return(); } catch { } throw error; } reducibleJoin3: while (true) { if (shouldFilter22) { r5 = item2; break reducibleJoin3; } try { property = a0[item]; } catch (error) { try { item2.return(); } catch { } throw error; } try { object[item] = property; } catch (error) { try { item2.return(); } catch { } throw error; } r5 = item2; break reducibleJoin3; } item2 = Reflect.apply(iterator2, r5, []); item = item2.value; item2 = item2.done ? undefined : r5; if (item2 === undefined) { break reducibleLoop4; } continue reducibleLoop4; } Object = global.Object; value3 = Object.keys(object); sort = value.sort; reducibleJoin13: while (true) { if (sort === false) { break reducibleJoin13; } sort = value3.sort; sort2 = value.sort; Reflect.apply(sort, value3, [sort2]); break reducibleJoin13; } value = value3.map(_fun17267); value = value.filter(function(a0) { return a0.length > 0; }); return value.join('&'); function shouldFilter(a0) { // fn#17255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:3236, owner: stringify_17254.shouldFilter, offset: 0x00e67e19, size: 70 bytes, params: 2, frame: 5 let r0 = require.skipNull && env0_0[a0] == null; r0 = !r0 ? require.skipEmptyString && env0_0[a0] === '' : r0; return r0; } function encoderForArrayFormat(a0) { // fn#17256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:3365, owner: stringify_17254.encoderForArrayFormat, offset: 0x00e67e5f, size: 134 bytes, params: 2, frame: 4 var r1; let env0_0 = a0; const arrayFormat = a0.arrayFormat; if (arrayFormat === 'index') { return function(a0) { var env0_0 = a0; return _fun17258; }; } if (arrayFormat === 'bracket') { return function(a0) { var env0_0 = a0; return _fun17260; }; } if (arrayFormat === 'colon-list-separator') { return function(a0) { var env0_0 = a0; return _fun17262; }; } if (arrayFormat === 'comma') { r1 = a0.arrayFormat !== 'bracket-separator' ? '=' : '[]='; return function(a0) { var env0_0 = a0; return _fun17264; }; } if (arrayFormat === 'separator') { r1 = a0.arrayFormat !== 'bracket-separator' ? '=' : '[]='; return function(a0) { var env0_0 = a0; return _fun17264; }; } if (arrayFormat === 'bracket-separator') { r1 = a0.arrayFormat !== 'bracket-separator' ? '=' : '[]='; return function(a0) { var env0_0 = a0; return _fun17264; }; } return function(a0) { var env0_0 = a0; return _fun17266; }; function _fun17257(a0) { // fn#17257, offset: 0x00e67ee5, size: 16 bytes, params: 2, frame: 2 const env0_0 = a0; return _fun17258; function _fun17258(a0, a1) { // fn#17258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:3459, offset: 0x00e67ef5, size: 278 bytes, params: 3, frame: 22 var r0; var value2; var items2; var concat; var value3; let value = a0; const length = value.length; if (a1 === undefined) { r0 = value; } else { value2 = environment.__proto__; if (env1_0.skipNull) { if (a1 === null) { r0 = value; } else if (env1_0.skipEmptyString) { if (a1 === '') { r0 = value; } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [[encode_17235(env0_0, env1_0), '[', length, ']'].join('')] : [[encode_17235(env0_0, env1_0), '[', encode_17235(length, env1_0), ']=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [[encode_17235(env0_0, env1_0), '[', length, ']'].join('')] : [[encode_17235(env0_0, env1_0), '[', encode_17235(length, env1_0), ']=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } else if (env1_0.skipEmptyString) { if (a1 === '') { r0 = value; } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [[encode_17235(env0_0, env1_0), '[', length, ']'].join('')] : [[encode_17235(env0_0, env1_0), '[', encode_17235(length, env1_0), ']=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [[encode_17235(env0_0, env1_0), '[', length, ']'].join('')] : [[encode_17235(env0_0, env1_0), '[', encode_17235(length, env1_0), ']=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } return r0; } } function _fun17259(a0) { // fn#17259, offset: 0x00e6800b, size: 16 bytes, params: 2, frame: 2 const env0_0 = a0; return _fun17260; function _fun17260(a0, a1) { // fn#17260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:3717, offset: 0x00e6801b, size: 245 bytes, params: 3, frame: 21 var r0; var value2; var items2; var concat; var value3; let value = a0; if (a1 === undefined) { r0 = value; } else { value2 = environment.__proto__; if (env1_0.skipNull) { if (a1 === null) { r0 = value; } else if (env1_0.skipEmptyString) { if (a1 === '') { r0 = value; } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [[encode_17235(env0_0, env1_0), '[]'].join('')] : [[encode_17235(env0_0, env1_0), '[]=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [[encode_17235(env0_0, env1_0), '[]'].join('')] : [[encode_17235(env0_0, env1_0), '[]=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } else if (env1_0.skipEmptyString) { if (a1 === '') { r0 = value; } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [[encode_17235(env0_0, env1_0), '[]'].join('')] : [[encode_17235(env0_0, env1_0), '[]=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [[encode_17235(env0_0, env1_0), '[]'].join('')] : [[encode_17235(env0_0, env1_0), '[]=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } return r0; } } function _fun17261(a0) { // fn#17261, offset: 0x00e68110, size: 16 bytes, params: 2, frame: 2 const env0_0 = a0; return _fun17262; function _fun17262(a0, a1) { // fn#17262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:3953, offset: 0x00e68120, size: 245 bytes, params: 3, frame: 21 var r0; var value2; var items2; var concat; var value3; let value = a0; if (a1 === undefined) { r0 = value; } else { value2 = environment.__proto__; if (env1_0.skipNull) { if (a1 === null) { r0 = value; } else if (env1_0.skipEmptyString) { if (a1 === '') { r0 = value; } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [[encode_17235(env0_0, env1_0), ':list='].join('')] : [[encode_17235(env0_0, env1_0), ':list=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [[encode_17235(env0_0, env1_0), ':list='].join('')] : [[encode_17235(env0_0, env1_0), ':list=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } else if (env1_0.skipEmptyString) { if (a1 === '') { r0 = value; } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [[encode_17235(env0_0, env1_0), ':list='].join('')] : [[encode_17235(env0_0, env1_0), ':list=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [[encode_17235(env0_0, env1_0), ':list='].join('')] : [[encode_17235(env0_0, env1_0), ':list=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } return r0; } } function _fun17263(a0) { // fn#17263, offset: 0x00e68215, size: 16 bytes, params: 2, frame: 2 const env0_0 = a0; return _fun17264; function _fun17264(a0, a1) { // fn#17264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:4273, offset: 0x00e68225, size: 231 bytes, params: 3, frame: 19 var r6; var items2; var r0; var value3; var value4; var items3; var encode_17235Binding; var binding; var binding2; let value = a0; const value2 = a1; if (value2 === undefined) { r0 = value; } else { value3 = environment.__proto__; if (env1_0.skipNull) { if (value2 === null) { r0 = value; } else if (env1_0.skipEmptyString) { if (value2 === '') { r0 = value; } else { value4 = ''; r6 = value2 === null ? value4 : value2; if (value.length === 0) { value = environment.__proto__.__proto__.__proto__; encode_17235Binding = encode_17235; binding = env0_0; binding2 = env1_0; value = encode_17235Binding(binding, binding2); value = [value, env1_1, encode_17235Binding(r6, binding2)].join(value4); items2 = [value]; } else { items3 = [value]; value = environment.__proto__.__proto__.__proto__; encode_17235Binding = encode_17235; binding = env1_0; items3[1] = encode_17235Binding(r6, binding); value = items3.join(binding.arrayFormatSeparator); items2 = [value]; } r0 = items2; } } else { value4 = ''; r6 = value2 === null ? value4 : value2; if (value.length === 0) { value = environment.__proto__.__proto__.__proto__; encode_17235Binding = encode_17235; binding = env0_0; binding2 = env1_0; value = encode_17235Binding(binding, binding2); value = [value, env1_1, encode_17235Binding(r6, binding2)].join(value4); items2 = [value]; } else { items3 = [value]; value = environment.__proto__.__proto__.__proto__; encode_17235Binding = encode_17235; binding = env1_0; items3[1] = encode_17235Binding(r6, binding); value = items3.join(binding.arrayFormatSeparator); items2 = [value]; } r0 = items2; } } else if (env1_0.skipEmptyString) { if (value2 === '') { r0 = value; } else { value4 = ''; r6 = value2 === null ? value4 : value2; if (value.length === 0) { value = environment.__proto__.__proto__.__proto__; encode_17235Binding = encode_17235; binding = env0_0; binding2 = env1_0; value = encode_17235Binding(binding, binding2); value = [value, env1_1, encode_17235Binding(r6, binding2)].join(value4); items2 = [value]; } else { items3 = [value]; value = environment.__proto__.__proto__.__proto__; encode_17235Binding = encode_17235; binding = env1_0; items3[1] = encode_17235Binding(r6, binding); value = items3.join(binding.arrayFormatSeparator); items2 = [value]; } r0 = items2; } } else { value4 = ''; r6 = value2 === null ? value4 : value2; if (value.length === 0) { value = environment.__proto__.__proto__.__proto__; encode_17235Binding = encode_17235; binding = env0_0; binding2 = env1_0; value = encode_17235Binding(binding, binding2); value = [value, env1_1, encode_17235Binding(r6, binding2)].join(value4); items2 = [value]; } else { items3 = [value]; value = environment.__proto__.__proto__.__proto__; encode_17235Binding = encode_17235; binding = env1_0; items3[1] = encode_17235Binding(r6, binding); value = items3.join(binding.arrayFormatSeparator); items2 = [value]; } r0 = items2; } } return r0; } } function _fun17265(a0) { // fn#17265, offset: 0x00e6830c, size: 16 bytes, params: 2, frame: 2 const env0_0 = a0; return _fun17266; function _fun17266(a0, a1) { // fn#17266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:4509, offset: 0x00e6831c, size: 211 bytes, params: 3, frame: 21 var r0; var value2; var items2; var concat; var value3; let value = a0; if (a1 === undefined) { r0 = value; } else { value2 = environment.__proto__; if (env1_0.skipNull) { if (a1 === null) { r0 = value; } else if (env1_0.skipEmptyString) { if (a1 === '') { r0 = value; } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [encode_17235(env0_0, env1_0)] : [[encode_17235(env0_0, env1_0), '=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [encode_17235(env0_0, env1_0)] : [[encode_17235(env0_0, env1_0), '=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } else if (env1_0.skipEmptyString) { if (a1 === '') { r0 = value; } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [encode_17235(env0_0, env1_0)] : [[encode_17235(env0_0, env1_0), '=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } else { items2 = []; concat = items2.concat; value3 = environment.__proto__.__proto__.__proto__; value = env3_5(value); value = Reflect.apply(concat, items2, [value, a1 === null ? [encode_17235(env0_0, env1_0)] : [[encode_17235(env0_0, env1_0), '=', encode_17235(a1, env1_0)].join('')]]); r0 = value; } } return r0; } } } function _fun17267(a0) { // fn#17267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:4792, offset: 0x00e683ef, size: 224 bytes, params: 2, frame: 18 var r3; var r1; var r0; var Array; var value3; var encode_17235Binding; var reduce; var value6; var value7; var value; const property = env0_0[a0]; if (property === undefined) { r0 = ''; } else { if (property === null) { value7 = environment.__proto__; r1 = encode_17235(a0, require); } else { Array = global.Array; if (Array.isArray(property)) { if (property.length !== 0) { reduce = property.reduce; value = env0_2(a0); value = Reflect.apply(reduce, property, [value, []]); value = value.join('&'); r3 = value; } else if (require.arrayFormat === 'bracket-separator') { value6 = environment.__proto__; value = encode_17235(a0, require); value += '[]'; r3 = value; } else { reduce = property.reduce; value = env0_2(a0); value = Reflect.apply(reduce, property, [value, []]); value = value.join('&'); r3 = value; } r1 = r3; } else { value3 = environment.__proto__; encode_17235Binding = encode_17235; r1 = encode_17235Binding(a0, require) + '=' + encode_17235Binding(property, require); } } r0 = r1; } return r0; } } function parseUrl_17269(a0, a1) { // fn#17269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:5063, offset: 0x00e684cf, size: 210 bytes, params: 3, frame: 21 var object3; var object; let Object = global.Object; let assign = Object.assign; const value = Reflect.apply(assign, Object, [{decode: true}, a1]); const value4 = Module00057Module((Module01526Module)(a0, '#'), 2); let property = value4[0]; const property2 = value4[1]; Object = global.Object; assign = Object.assign; object3 = {}; property = property.split('?')[0]; let r0 = property || ''; object3.url = r0; object3.query = parse_17243(extract(a0), value); if (value) { if (value.parseFragmentIdentifier) { if (property2) { object = {}; object.fragmentIdentifier = decode_17236(property2, value); r0 = object; } else { r0 = {}; } } else { r0 = {}; } } else { r0 = {}; } return Reflect.apply(assign, Object, [object3, r0]); } function stringifyUrl(a0, a1) { // fn#17270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:5310, offset: 0x00e685a1, size: 325 bytes, params: 3, frame: 23 let Object = global.Object; const assign = Object.assign; let binding = Module00077Module; const value3 = Reflect.apply(assign, Object, [binding({'encode': true, 'strict': true}, env0_6, true), a1]); const removeHashBinding = removeHash; let url = a0.url; const r4 = removeHashBinding(url).split('?')[0] || ''; binding = env0_1; const value8 = binding.parse(binding.extract(a0.url), {sort: false}); Object = global.Object; const value10 = binding.stringify(Object.assign(value8, a0.query), value3); const r3 = value10 && '?' + value10; url = a0.url; const value12 = url.indexOf('#'); const value13 = ''; let r1 = value12 === -1 ? value13 : url.slice(value12); r1 = a0.fragmentIdentifier ? '#' + (value3[env0_6] ? encode_17235(a0.fragmentIdentifier, value3) : a0.fragmentIdentifier) : r1; return value13 + r4 + r3 + r1; } function pick(a0, a1, a2) { // fn#17271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:5728, offset: 0x00e686e6, size: 148 bytes, params: 4, frame: 20 const Object = global.Object; const assign = Object.assign; let binding = Module00077Module; const value3 = Reflect.apply(assign, Object, [binding({parseFragmentIdentifier: true}, env0_6, false), a2]); binding = env0_1; const url = binding.parseUrl(a0, value3); const url2 = url.url; const query = url.query; const fragmentIdentifier = url.fragmentIdentifier; const stringifyUrl = binding.stringifyUrl; object = {url: url2}; object.query = (require(1527) /* metro dependency 1527 */)(query, a1); object.fragmentIdentifier = fragmentIdentifier; return Reflect.apply(stringifyUrl, binding, [object, value3]); } function exclude(a0, a1, a2) { // fn#17272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:5947, offset: 0x00e6877a, size: 70 bytes, params: 4, frame: 15 const env0_0 = a1; const Array = global.Array; return env0_1.pick(a0, Array.isArray(a1) ? function(a0) { return !require.includes(a0); } : _fun17274, a2); function _fun17274(a0, a1) { // fn#17274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:6020, offset: 0x00e687c0, size: 26 bytes, params: 3, frame: 13 return !require(a0, a1); } } } function parseValue_17242(a0, a1) { // fn#17242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:748, offset: 0x00e6752a, size: 181 bytes, params: 3, frame: 15 var r1; var r0; var Number; var parseBooleans; let value = a0; if (a1.parseNumbers) { Number = global.Number; if (Number.isNaN(global.Number(value))) { parseBooleans = a1.parseBooleans; r1 = parseBooleans ? value === null : !parseBooleans; r1 = !r1 ? value.toLowerCase() !== 'true' && value.toLowerCase() !== 'false' : r1; if (r1) { r0 = value; } else { value = value.toLowerCase(); value = value === 'true'; r0 = value; } } else if (typeof value !== 'string') { parseBooleans = a1.parseBooleans; r1 = parseBooleans ? value === null : !parseBooleans; r1 = !r1 ? value.toLowerCase() !== 'true' && value.toLowerCase() !== 'false' : r1; if (r1) { r0 = value; } else { value = value.toLowerCase(); value = value === 'true'; r0 = value; } } else if (value.trim() === '') { parseBooleans = a1.parseBooleans; r1 = parseBooleans ? value === null : !parseBooleans; r1 = !r1 ? value.toLowerCase() !== 'true' && value.toLowerCase() !== 'false' : r1; if (r1) { r0 = value; } else { value = value.toLowerCase(); value = value === 'true'; r0 = value; } } else { value = global.Number(value); r0 = value; } } else { parseBooleans = a1.parseBooleans; r1 = parseBooleans ? value === null : !parseBooleans; r1 = !r1 ? value.toLowerCase() !== 'true' && value.toLowerCase() !== 'false' : r1; if (r1) { r0 = value; } else { value = value.toLowerCase(); value = value === 'true'; r0 = value; } } return r0; } function _fun17252(a0, a1, a2) { // fn#17252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1650:2250, offset: 0x00e67c77, size: 50 bytes, params: 4, frame: 16 var items2; if (a2[a0] !== undefined) { items2 = []; a2[a0] = items2.concat(a2[a0], a1); } else { a2[a0] = a1; } } global.__d(_fun17233, 1523, [77, 57, 65, 1524, 1525, 1526, 1527]) /* metro module 1523, dependencies: [77, 57, 65, 1524, 1525, 1526, 1527] */;