/* Metro module 925; source: unknown; dependencies: [] */ function _fun9877(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1052:6, offset: 0x00d74cc0, size: 64 bytes, params: 8, frame: 16 const Object = global.Object; const defineProperty = Object.defineProperty; const Symbol = global.Symbol; Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]); exports.parseCookie = parseCookie; } function parseCookie(a0) { // fn#9878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1052:105, offset: 0x00d74d00, size: 305 bytes, params: 2, frame: 29 var r2; var r1; var r13; var r15; var indexOf; var value2; var value3; var lastIndexOf; var value4; var slice; var value5; var trim; var value6; var value7; var value8; var charCodeAt; var value9; var value10; var value11; var decodeURIComponent; var value12; var error; var value13; const object = {}; let length = a0.length; const value = 0; reducibleJoin9: while (true) { reducibleJoin21: while (true) { if (value < length) { r2 = value; reducibleLoop1: while (true) { indexOf = a0.indexOf; value2 = Reflect.apply(indexOf, a0, ['=', r2]); if (value2 === -1) { break reducibleJoin21; } indexOf = a0.indexOf; value3 = Reflect.apply(indexOf, a0, [';', r2]); if (value3 === -1) { length = a0.length; r1 = length; } else { reducibleJoin6: while (true) { if (value3 < value2) { lastIndexOf = a0.lastIndexOf; value4 = Reflect.apply(lastIndexOf, a0, [';', value2 - 1]) + 1; r2 = value4; length = a0.length; if (r2 < length) { continue reducibleLoop1; } break reducibleJoin21; } r1 = value3; break reducibleJoin6; } } slice = a0.slice; value5 = Reflect.apply(slice, a0, [r2, value2]); trim = value5.trim; value6 = Reflect.apply(trim, value5, []); if (object[value6] !== undefined) { value13 = r1 + 1; r2 = value13; length = a0.length; if (r2 < length) { continue reducibleLoop1; } break reducibleJoin21; } break reducibleLoop1; } slice = a0.slice; value7 = Reflect.apply(slice, a0, [value2 + 1, r1]); trim = value7.trim; value8 = Reflect.apply(trim, value7, []); charCodeAt = value8.charCodeAt; if (Reflect.apply(charCodeAt, value8, [value]) !== 34) { r13 = value8; break reducibleJoin9; } slice = value8.slice; value9 = Reflect.apply(slice, value8, [1, -1]); r13 = value9; break reducibleJoin9; } break reducibleJoin21; } return object; } exceptionMain9: while (true) { reducibleLoop9: while (true) { try { indexOf = r13.indexOf; } catch (error) { while (true) { object[value6] = r13; reducibleLoop19: while (true) { value13 = r1 + 1; r2 = value13; reducibleLoop20: while (true) { length = a0.length; if (!(r2 < length)) { return object; } indexOf = a0.indexOf; value2 = Reflect.apply(indexOf, a0, ['=', r2]); if (value2 === -1) { return object; } indexOf = a0.indexOf; value3 = Reflect.apply(indexOf, a0, [';', r2]); if (value3 === -1) { length = a0.length; r1 = length; break reducibleLoop20; } if (value3 < value2) { lastIndexOf = a0.lastIndexOf; value4 = Reflect.apply(lastIndexOf, a0, [';', value2 - 1]) + 1; r2 = value4; continue reducibleLoop20; } r1 = value3; break reducibleLoop20; } slice = a0.slice; value5 = Reflect.apply(slice, a0, [r2, value2]); trim = value5.trim; value6 = Reflect.apply(trim, value5, []); if (object[value6] !== undefined) { continue reducibleLoop19; } break reducibleLoop19; } slice = a0.slice; value7 = Reflect.apply(slice, a0, [value2 + 1, r1]); trim = value7.trim; value8 = Reflect.apply(trim, value7, []); charCodeAt = value8.charCodeAt; reducibleJoin9: while (true) { if (Reflect.apply(charCodeAt, value8, [value]) !== 34) { r13 = value8; break reducibleJoin9; } slice = value8.slice; value9 = Reflect.apply(slice, value8, [1, -1]); r13 = value9; break reducibleJoin9; } continue exceptionMain9; } } try { value10 = Reflect.apply(indexOf, r13, ['%']); } catch (error) { while (true) { object[value6] = r13; reducibleLoop19: while (true) { value13 = r1 + 1; r2 = value13; reducibleLoop20: while (true) { length = a0.length; if (!(r2 < length)) { return object; } indexOf = a0.indexOf; value2 = Reflect.apply(indexOf, a0, ['=', r2]); if (value2 === -1) { return object; } indexOf = a0.indexOf; value3 = Reflect.apply(indexOf, a0, [';', r2]); if (value3 === -1) { length = a0.length; r1 = length; break reducibleLoop20; } if (value3 < value2) { lastIndexOf = a0.lastIndexOf; value4 = Reflect.apply(lastIndexOf, a0, [';', value2 - 1]) + 1; r2 = value4; continue reducibleLoop20; } r1 = value3; break reducibleLoop20; } slice = a0.slice; value5 = Reflect.apply(slice, a0, [r2, value2]); trim = value5.trim; value6 = Reflect.apply(trim, value5, []); if (object[value6] !== undefined) { continue reducibleLoop19; } break reducibleLoop19; } slice = a0.slice; value7 = Reflect.apply(slice, a0, [value2 + 1, r1]); trim = value7.trim; value8 = Reflect.apply(trim, value7, []); charCodeAt = value8.charCodeAt; reducibleJoin9: while (true) { if (Reflect.apply(charCodeAt, value8, [value]) !== 34) { r13 = value8; break reducibleJoin9; } slice = value8.slice; value9 = Reflect.apply(slice, value8, [1, -1]); r13 = value9; break reducibleJoin9; } continue exceptionMain9; } } try { value11 = value10 !== -1; } catch (error) { while (true) { object[value6] = r13; reducibleLoop19: while (true) { value13 = r1 + 1; r2 = value13; reducibleLoop20: while (true) { length = a0.length; if (!(r2 < length)) { return object; } indexOf = a0.indexOf; value2 = Reflect.apply(indexOf, a0, ['=', r2]); if (value2 === -1) { return object; } indexOf = a0.indexOf; value3 = Reflect.apply(indexOf, a0, [';', r2]); if (value3 === -1) { length = a0.length; r1 = length; break reducibleLoop20; } if (value3 < value2) { lastIndexOf = a0.lastIndexOf; value4 = Reflect.apply(lastIndexOf, a0, [';', value2 - 1]) + 1; r2 = value4; continue reducibleLoop20; } r1 = value3; break reducibleLoop20; } slice = a0.slice; value5 = Reflect.apply(slice, a0, [r2, value2]); trim = value5.trim; value6 = Reflect.apply(trim, value5, []); if (object[value6] !== undefined) { continue reducibleLoop19; } break reducibleLoop19; } slice = a0.slice; value7 = Reflect.apply(slice, a0, [value2 + 1, r1]); trim = value7.trim; value8 = Reflect.apply(trim, value7, []); charCodeAt = value8.charCodeAt; reducibleJoin9: while (true) { if (Reflect.apply(charCodeAt, value8, [value]) !== 34) { r13 = value8; break reducibleJoin9; } slice = value8.slice; value9 = Reflect.apply(slice, value8, [1, -1]); r13 = value9; break reducibleJoin9; } continue exceptionMain9; } } if (value11) { try { decodeURIComponent = global.decodeURIComponent; } catch (error) { while (true) { object[value6] = r13; reducibleLoop19: while (true) { value13 = r1 + 1; r2 = value13; reducibleLoop20: while (true) { length = a0.length; if (!(r2 < length)) { return object; } indexOf = a0.indexOf; value2 = Reflect.apply(indexOf, a0, ['=', r2]); if (value2 === -1) { return object; } indexOf = a0.indexOf; value3 = Reflect.apply(indexOf, a0, [';', r2]); if (value3 === -1) { length = a0.length; r1 = length; break reducibleLoop20; } if (value3 < value2) { lastIndexOf = a0.lastIndexOf; value4 = Reflect.apply(lastIndexOf, a0, [';', value2 - 1]) + 1; r2 = value4; continue reducibleLoop20; } r1 = value3; break reducibleLoop20; } slice = a0.slice; value5 = Reflect.apply(slice, a0, [r2, value2]); trim = value5.trim; value6 = Reflect.apply(trim, value5, []); if (object[value6] !== undefined) { continue reducibleLoop19; } break reducibleLoop19; } slice = a0.slice; value7 = Reflect.apply(slice, a0, [value2 + 1, r1]); trim = value7.trim; value8 = Reflect.apply(trim, value7, []); charCodeAt = value8.charCodeAt; reducibleJoin9: while (true) { if (Reflect.apply(charCodeAt, value8, [value]) !== 34) { r13 = value8; break reducibleJoin9; } slice = value8.slice; value9 = Reflect.apply(slice, value8, [1, -1]); r13 = value9; break reducibleJoin9; } continue exceptionMain9; } } try { value12 = decodeURIComponent(r13); } catch (error) { while (true) { object[value6] = r13; reducibleLoop19: while (true) { value13 = r1 + 1; r2 = value13; reducibleLoop20: while (true) { length = a0.length; if (!(r2 < length)) { return object; } indexOf = a0.indexOf; value2 = Reflect.apply(indexOf, a0, ['=', r2]); if (value2 === -1) { return object; } indexOf = a0.indexOf; value3 = Reflect.apply(indexOf, a0, [';', r2]); if (value3 === -1) { length = a0.length; r1 = length; break reducibleLoop20; } if (value3 < value2) { lastIndexOf = a0.lastIndexOf; value4 = Reflect.apply(lastIndexOf, a0, [';', value2 - 1]) + 1; r2 = value4; continue reducibleLoop20; } r1 = value3; break reducibleLoop20; } slice = a0.slice; value5 = Reflect.apply(slice, a0, [r2, value2]); trim = value5.trim; value6 = Reflect.apply(trim, value5, []); if (object[value6] !== undefined) { continue reducibleLoop19; } break reducibleLoop19; } slice = a0.slice; value7 = Reflect.apply(slice, a0, [value2 + 1, r1]); trim = value7.trim; value8 = Reflect.apply(trim, value7, []); charCodeAt = value8.charCodeAt; reducibleJoin9: while (true) { if (Reflect.apply(charCodeAt, value8, [value]) !== 34) { r13 = value8; break reducibleJoin9; } slice = value8.slice; value9 = Reflect.apply(slice, value8, [1, -1]); r13 = value9; break reducibleJoin9; } continue exceptionMain9; } } r15 = value12; } else { r15 = r13; } try { object[value6] = r15; } catch (error) { while (true) { object[value6] = r13; reducibleLoop19: while (true) { value13 = r1 + 1; r2 = value13; reducibleLoop20: while (true) { length = a0.length; if (!(r2 < length)) { return object; } indexOf = a0.indexOf; value2 = Reflect.apply(indexOf, a0, ['=', r2]); if (value2 === -1) { return object; } indexOf = a0.indexOf; value3 = Reflect.apply(indexOf, a0, [';', r2]); if (value3 === -1) { length = a0.length; r1 = length; break reducibleLoop20; } if (value3 < value2) { lastIndexOf = a0.lastIndexOf; value4 = Reflect.apply(lastIndexOf, a0, [';', value2 - 1]) + 1; r2 = value4; continue reducibleLoop20; } r1 = value3; break reducibleLoop20; } slice = a0.slice; value5 = Reflect.apply(slice, a0, [r2, value2]); trim = value5.trim; value6 = Reflect.apply(trim, value5, []); if (object[value6] !== undefined) { continue reducibleLoop19; } break reducibleLoop19; } slice = a0.slice; value7 = Reflect.apply(slice, a0, [value2 + 1, r1]); trim = value7.trim; value8 = Reflect.apply(trim, value7, []); charCodeAt = value8.charCodeAt; reducibleJoin9: while (true) { if (Reflect.apply(charCodeAt, value8, [value]) !== 34) { r13 = value8; break reducibleJoin9; } slice = value8.slice; value9 = Reflect.apply(slice, value8, [1, -1]); r13 = value9; break reducibleJoin9; } continue exceptionMain9; } } reducibleLoop19: while (true) { value13 = r1 + 1; r2 = value13; reducibleLoop20: while (true) { length = a0.length; if (r2 < length) { indexOf = a0.indexOf; value2 = Reflect.apply(indexOf, a0, ['=', r2]); if (value2 === -1) { break reducibleLoop9; } indexOf = a0.indexOf; value3 = Reflect.apply(indexOf, a0, [';', r2]); if (value3 === -1) { length = a0.length; r1 = length; slice = a0.slice; value5 = Reflect.apply(slice, a0, [r2, value2]); trim = value5.trim; if (object[Reflect.apply(trim, value5, [])] !== undefined) { continue reducibleLoop19; } slice = a0.slice; value7 = Reflect.apply(slice, a0, [value2 + 1, r1]); trim = value7.trim; value8 = Reflect.apply(trim, value7, []); if (value8.charCodeAt(value) !== 34) { r13 = value8; continue reducibleLoop9; } slice = value8.slice; r13 = Reflect.apply(slice, value8, [1, -1]); continue reducibleLoop9; } if (value3 < value2) { lastIndexOf = a0.lastIndexOf; value4 = Reflect.apply(lastIndexOf, a0, [';', value2 - 1]) + 1; r2 = value4; continue reducibleLoop20; } r1 = value3; slice = a0.slice; value5 = Reflect.apply(slice, a0, [r2, value2]); trim = value5.trim; value6 = Reflect.apply(trim, value5, []); if (object[value6] !== undefined) { continue reducibleLoop19; } slice = a0.slice; value7 = Reflect.apply(slice, a0, [value2 + 1, r1]); trim = value7.trim; value8 = Reflect.apply(trim, value7, []); charCodeAt = value8.charCodeAt; if (Reflect.apply(charCodeAt, value8, [value]) !== 34) { r13 = value8; continue reducibleLoop9; } slice = value8.slice; value9 = Reflect.apply(slice, value8, [1, -1]); r13 = value9; continue reducibleLoop9; } break reducibleLoop9; } } } return object; } } global.__d(_fun9877, 925, []) /* metro module 925 */;