/* Metro module 556; source: unknown; dependencies: [] */ function _fun6703(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:606:6, offset: 0x00d06140, size: 133 bytes, params: 8, frame: 4 const defaultOptions = function() { return {depthLimit: global.Number.MAX_SAFE_INTEGER, edgesLimit: global.Number.MAX_SAFE_INTEGER}; }; const closure = exports_6705; const compareFunction = function(a0, a1) { return a0 < a1 ? -1 : a0 > a1 ? 1 : 0; }; const closure2 = stable; const replaceGetterValues = function(a0) { var value = a0; var env0_0 = value; env0_0 = value !== undefined ? value : _fun6712; return _fun6713; }; module.exports = closure; closure.default = closure; closure.stable = closure2; closure.stableStringify = closure2; const env0_2 = []; const env0_3 = []; } function exports_6705(a0, a1, a2, a3) { // fn#6705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:606:312, offset: 0x00d061ed, size: 542 bytes, params: 5, frame: 28 var r1; var value; var binding; var length; var value2; var JSON; var stringify; var replaceGetterValuesBinding; var value3; var value4; var value5; var pop; var value6; var property; var property2; var Object; var defineProperty; var property3; var error; var value7; var value8; var property4; var property5; var value9; var property6; var property7; exceptionSkip39: while (true) { exceptionLanding39: while (true) { exceptionSkip27: while (true) { exceptionLanding27: while (true) { value = a3; if (value !== undefined) { r1 = value; } else { value = environment; value = defaultOptions(); r1 = value; } value = environment; decirc(a0, '', 0, [], undefined, 0, r1); try { try { binding = env0_3; } catch (error) { break exceptionLanding27; } } catch (error) { break exceptionLanding39; } try { try { length = binding.length; } catch (error) { break exceptionLanding27; } } catch (error) { break exceptionLanding39; } try { try { value2 = length === 0; } catch (error) { break exceptionLanding27; } } catch (error) { break exceptionLanding39; } if (value2) { try { try { JSON = global.JSON; } catch (error) { break exceptionLanding27; } } catch (error) { break exceptionLanding39; } try { try { stringify = JSON.stringify; } catch (error) { break exceptionLanding27; } } catch (error) { break exceptionLanding39; } try { try { value5 = Reflect.apply(stringify, JSON, [a0, a1, a2]); } catch (error) { break exceptionLanding27; } } catch (error) { break exceptionLanding39; } r1 = value5; } else { try { try { JSON = global.JSON; } catch (error) { break exceptionLanding27; } } catch (error) { break exceptionLanding39; } try { try { stringify = JSON.stringify; } catch (error) { break exceptionLanding27; } } catch (error) { break exceptionLanding39; } try { try { replaceGetterValuesBinding = replaceGetterValues; } catch (error) { break exceptionLanding27; } } catch (error) { break exceptionLanding39; } try { try { value3 = replaceGetterValuesBinding(a1); } catch (error) { break exceptionLanding27; } } catch (error) { break exceptionLanding39; } try { try { value4 = Reflect.apply(stringify, JSON, [a0, value3, a2]); } catch (error) { break exceptionLanding27; } } catch (error) { break exceptionLanding39; } r1 = value4; } length = env0_2.length; if (length !== 0) { while (true) { binding = env0_2; pop = binding.pop; value6 = Reflect.apply(pop, binding, []); length = value6.length; if (length === 4) { Object = global.Object; defineProperty = Object.defineProperty; property = value6[0]; property3 = value6[1]; Reflect.apply(defineProperty, Object, [property, property3, value6[3]]); } else { property = value6[0]; property2 = value6[1]; property[property2] = value6[2]; } length = env0_2.length; if (length !== 0) { continue; } break; } } return r1; break exceptionSkip27; } try { JSON = global.JSON; } catch (error) { break exceptionLanding39; } try { stringify = JSON.stringify; } catch (error) { break exceptionLanding39; } try { value7 = Reflect.apply(stringify, JSON, ['[unable to serialize, circular reference is too complex to analyze]']); } catch (error) { break exceptionLanding39; } length = env0_2.length; if (length !== 0) { reducibleLoop34: while (true) { binding = env0_2; pop = binding.pop; value8 = Reflect.apply(pop, binding, []); length = value8.length; if (length === 4) { Object = global.Object; defineProperty = Object.defineProperty; property = value8[0]; property5 = value8[1]; Reflect.apply(defineProperty, Object, [property, property5, value8[3]]); } else { property = value8[0]; property4 = value8[1]; property[property4] = value8[2]; } length = env0_2.length; if (length !== 0) { continue reducibleLoop34; } break reducibleLoop34; } } return value7; break exceptionSkip27; } break exceptionSkip39; } length = env0_2.length; if (length !== 0) { reducibleLoop40: while (true) { binding = env0_2; pop = binding.pop; value9 = Reflect.apply(pop, binding, []); length = value9.length; if (length === 4) { Object = global.Object; defineProperty = Object.defineProperty; property = value9[0]; property7 = value9[1]; Reflect.apply(defineProperty, Object, [property, property7, value9[3]]); } else { property = value9[0]; property6 = value9[1]; property[property6] = value9[2]; } length = env0_2.length; if (length !== 0) { continue reducibleLoop40; } break reducibleLoop40; } } throw error; break exceptionSkip39; } } function setReplace(a0, a1, a2, a3) { // fn#6706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:606:713, offset: 0x00d0640b, size: 189 bytes, params: 5, frame: 21 const Object = global.Object; const ownPropertyDescriptor = Object.getOwnPropertyDescriptor(a3, a2); const get = ownPropertyDescriptor.get; if (get !== undefined) { if (ownPropertyDescriptor.configurable) { global.Object.defineProperty(a3, a2, {value: a0}); env0_2.push([a3, a2, a1, ownPropertyDescriptor]); } else { env0_3.push([a1, a2, a0]); } } else { a3[a2] = a0; env0_2.push([a3, a2, a1]); } } function decirc(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:606:913, offset: 0x00d064c8, size: 417 bytes, params: 8, frame: 28 var r1; var r6; var r7; var length; var value2; var value3; var depthLimit; var edgesLimit; var value4; var push; var Array; var isArray; var Object; var keys; var value5; var value6; var property; var value7; var value8; var value9; var pop; let value = exports + 1; if (typeof global === 'object') { reducibleJoin15: while (true) { if (global === null) { break reducibleJoin15; } length = importAll.length; value2 = 0; if (value2 < length) { r1 = value2; reducibleLoop3: while (true) { if (importAll[r1] === global) { value = environment; setReplace(env0_1, global, require, module); return undefined; } value3 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1; length = importAll.length; if (value3 < length) { r1 = value3; continue reducibleLoop3; } break reducibleLoop3; } } depthLimit = dependencyMap.depthLimit; if (depthLimit !== undefined) { depthLimit = dependencyMap.depthLimit; reducibleJoin7: while (true) { if (value > depthLimit) { value = environment; setReplace(env0_0, global, require, module); return undefined; } break reducibleJoin7; } } edgesLimit = dependencyMap.edgesLimit; if (edgesLimit !== undefined) { value4 = importDefault + 1; edgesLimit = dependencyMap.edgesLimit; reducibleJoin9: while (true) { if (value4 > edgesLimit) { value = environment; setReplace(env0_0, global, require, module); return undefined; } break reducibleJoin9; } } push = importAll.push; Reflect.apply(push, importAll, [global]); Array = global.Array; isArray = Array.isArray; if (Reflect.apply(isArray, Array, [global])) { length = global.length; value8 = environment; if (value2 < length) { r7 = value2; reducibleLoop13: while (true) { decirc(global[r7], r7, r7, importAll, global, value, dependencyMap); value9 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; length = global.length; if (value9 < length) { r7 = value9; continue reducibleLoop13; } break reducibleLoop13; } } } else { Object = global.Object; keys = Object.keys; value5 = Reflect.apply(keys, Object, [global]); length = value5.length; value6 = environment; if (value2 < length) { r6 = value2; reducibleLoop11: while (true) { property = value5[r6]; decirc(global[property], property, r6, importAll, global, value, dependencyMap); value7 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1; length = value5.length; if (value7 < length) { r6 = value7; continue reducibleLoop11; } break reducibleLoop11; } } } pop = importAll.pop; Reflect.apply(pop, importAll, []); break reducibleJoin15; } } } function stable(a0, a1, a2, a3) { // fn#6709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:606:1429, offset: 0x00d0668d, size: 553 bytes, params: 5, frame: 28 var r13; var r1; var value; var value2; var value3; var value4; var value5; var value6; var binding; var length; var JSON; var stringify; var replaceGetterValuesBinding; var pop; var property; var property2; var Object; var defineProperty; var property3; var error; var value7; var property4; var property5; var property6; var property7; exceptionSkip40: while (true) { exceptionLanding40: while (true) { exceptionSkip28: while (true) { exceptionLanding28: while (true) { value = a0; value2 = a3; if (value2 !== undefined) { r13 = value2; } else { value3 = environment; value4 = defaultOptions(); r13 = value4; } value5 = environment; value6 = deterministicDecirc(value, '', 0, [], undefined, 0, r13); r1 = value6 || value; try { try { binding = env0_3; } catch (error) { break exceptionLanding28; } } catch (error) { break exceptionLanding40; } try { try { length = binding.length; } catch (error) { break exceptionLanding28; } } catch (error) { break exceptionLanding40; } try { try { value = length === 0; } catch (error) { break exceptionLanding28; } } catch (error) { break exceptionLanding40; } if (value) { try { try { JSON = global.JSON; } catch (error) { break exceptionLanding28; } } catch (error) { break exceptionLanding40; } try { try { stringify = JSON.stringify; } catch (error) { break exceptionLanding28; } } catch (error) { break exceptionLanding40; } try { try { value = Reflect.apply(stringify, JSON, [r1, a1, a2]); } catch (error) { break exceptionLanding28; } } catch (error) { break exceptionLanding40; } r1 = value; } else { try { try { JSON = global.JSON; } catch (error) { break exceptionLanding28; } } catch (error) { break exceptionLanding40; } try { try { stringify = JSON.stringify; } catch (error) { break exceptionLanding28; } } catch (error) { break exceptionLanding40; } try { try { replaceGetterValuesBinding = replaceGetterValues; } catch (error) { break exceptionLanding28; } } catch (error) { break exceptionLanding40; } try { try { value = replaceGetterValuesBinding(a1); } catch (error) { break exceptionLanding28; } } catch (error) { break exceptionLanding40; } try { try { value = Reflect.apply(stringify, JSON, [r1, value, a2]); } catch (error) { break exceptionLanding28; } } catch (error) { break exceptionLanding40; } r1 = value; } length = env0_2.length; if (length !== 0) { while (true) { binding = env0_2; pop = binding.pop; value = Reflect.apply(pop, binding, []); length = value.length; if (length === 4) { Object = global.Object; defineProperty = Object.defineProperty; property = value[0]; property3 = value[1]; Reflect.apply(defineProperty, Object, [property, property3, value[3]]); } else { property = value[0]; property2 = value[1]; property[property2] = value[2]; } length = env0_2.length; if (length !== 0) { continue; } break; } } return r1; break exceptionSkip28; } try { JSON = global.JSON; } catch (error) { break exceptionLanding40; } try { stringify = JSON.stringify; } catch (error) { break exceptionLanding40; } try { value = Reflect.apply(stringify, JSON, ['[unable to serialize, circular reference is too complex to analyze]']); } catch (error) { break exceptionLanding40; } length = env0_2.length; if (length !== 0) { reducibleLoop35: while (true) { binding = env0_2; pop = binding.pop; value7 = Reflect.apply(pop, binding, []); length = value7.length; if (length === 4) { Object = global.Object; defineProperty = Object.defineProperty; property = value7[0]; property5 = value7[1]; Reflect.apply(defineProperty, Object, [property, property5, value7[3]]); } else { property = value7[0]; property4 = value7[1]; property[property4] = value7[2]; } length = env0_2.length; if (length !== 0) { continue reducibleLoop35; } break reducibleLoop35; } } return value; break exceptionSkip28; } break exceptionSkip40; } length = env0_2.length; if (length !== 0) { reducibleLoop41: while (true) { binding = env0_2; pop = binding.pop; value = Reflect.apply(pop, binding, []); length = value.length; if (length === 4) { Object = global.Object; defineProperty = Object.defineProperty; property = value[0]; property7 = value[1]; Reflect.apply(defineProperty, Object, [property, property7, value[3]]); } else { property = value[0]; property6 = value[1]; property[property6] = value[2]; } length = env0_2.length; if (length !== 0) { continue reducibleLoop41; } break reducibleLoop41; } } throw error; break exceptionSkip40; } } function deterministicDecirc(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:606:1861, offset: 0x00d068b6, size: 609 bytes, params: 8, frame: 35 var r10; var value; var value2; var length; var value3; var toJSON; var value4; var depthLimit; var edgesLimit; var value5; var push; var Array; var isArray; var object2; var Object; var keys; var value6; var sort; var value7; var value8; var property; var value9; var binding; var value10; var value11; var pop; var error; exceptionSkip26: while (true) { exceptionLanding26: while (true) { value = exports + 1; if (typeof global === 'object') { reducibleJoin22: while (true) { if (global === null) { break reducibleJoin22; } value2 = 0; length = importAll.length; if (value2 < length) { r10 = value2; reducibleLoop3: while (true) { if (importAll[r10] === global) { value = environment; setReplace(env0_1, global, require, module); return undefined; } value3 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1; length = importAll.length; if (value3 < length) { r10 = value3; continue reducibleLoop3; } break reducibleLoop3; } } try { toJSON = global.toJSON; } catch (error) { break exceptionLanding26; } try { value4 = typeof toJSON === 'function'; } catch (error) { break exceptionLanding26; } if (value4) { return undefined; } depthLimit = dependencyMap.depthLimit; if (depthLimit !== undefined) { depthLimit = dependencyMap.depthLimit; reducibleJoin11: while (true) { if (value > depthLimit) { value = environment; setReplace(env0_0, global, require, module); return undefined; } break reducibleJoin11; } } edgesLimit = dependencyMap.edgesLimit; if (edgesLimit !== undefined) { value5 = importDefault + 1; edgesLimit = dependencyMap.edgesLimit; reducibleJoin13: while (true) { if (value5 > edgesLimit) { value = environment; setReplace(env0_0, global, require, module); return undefined; } break reducibleJoin13; } } push = importAll.push; Reflect.apply(push, importAll, [global]); Array = global.Array; isArray = Array.isArray; if (Reflect.apply(isArray, Array, [global])) { length = global.length; value10 = environment; if (value2 < length) { r10 = value2; reducibleLoop20: while (true) { deterministicDecirc(global[r10], r10, r10, importAll, global, value, dependencyMap); value11 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1; length = global.length; if (value11 < length) { r10 = value11; continue reducibleLoop20; } break reducibleLoop20; } } } else { object2 = {}; Object = global.Object; keys = Object.keys; value6 = Reflect.apply(keys, Object, [global]); sort = value6.sort; value7 = environment; value8 = Reflect.apply(sort, value6, [compareFunction]); length = value8.length; if (value2 < length) { r10 = value2; reducibleLoop15: while (true) { property = value8[r10]; deterministicDecirc(global[property], property, r10, importAll, global, value, dependencyMap); object2[property] = global[property]; value9 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1; length = value8.length; if (value9 < length) { r10 = value9; continue reducibleLoop15; } break reducibleLoop15; } } if (module === undefined) { return object2; } binding = env0_2; push = binding.push; Reflect.apply(push, binding, [[module, require, global]]); module[require] = object2; } pop = importAll.pop; Reflect.apply(pop, importAll, []); break reducibleJoin22; } } return undefined; break exceptionSkip26; } return undefined; break exceptionSkip26; } } function replaceGetterValues(a0) { // fn#6711, offset: 0x00d06b17, size: 31 bytes, params: 2, frame: 3 const value = a0; const env0_0 = value !== undefined ? value : function(a0, a1) { return a1; }; return _fun6713; } function _fun6713(a0, a1) { // fn#6713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:606:2582, offset: 0x00d06b36, size: 145 bytes, params: 3, frame: 20 var r7; var r3; var property; var value4; var binding; var splice; const value = a1; let length = env1_3.length; const value3 = 0; reducibleJoin6: while (true) { if (!(length > value3)) { r3 = value; break reducibleJoin6; } length = env1_3.length; if (!(value3 < length)) { r3 = value; break reducibleJoin6; } r7 = value3; reducibleLoop2: while (true) { property = env1_3[r7]; if (property[1] === a0) { reducibleJoin4: while (true) { if (property[value3] === value) { property = property[2]; binding = env1_3; splice = binding.splice; Reflect.apply(splice, binding, [r7, 1]); r3 = property; break reducibleJoin6; } break reducibleJoin4; } } value4 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; length = env1_3.length; if (value4 < length) { r7 = value4; continue reducibleLoop2; } r3 = value; break reducibleJoin6; } } return env0_0.call(this, a0, r3); }