/* Metro module 1525; source: unknown; dependencies: [] */ function _fun17278(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1652:6, offset: 0x00e68861, size: 121 bytes, params: 8, frame: 15 let RegExp = global.RegExp; let regExp = new RegExp('(%[a-f0-9]{2})|([^%]+?)', 'gi'); RegExp = global.RegExp; regExp = new RegExp('(%[a-f0-9]{2})+', 'gi'); module.exports = exports_17281; } function decodeComponents(a0, a1) { // fn#17279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1652:130, offset: 0x00e688da, size: 166 bytes, params: 3, frame: 17 var r2; var decodeURIComponent; var value2; var value3; var items2; var error; var length; var value4; var value5; var Array; var prototype; var concat; var call; var value6; var decodeComponentsBinding; var value7; let value = a1; try { decodeURIComponent = global.decodeURIComponent; value2 = a0.join(''); value3 = decodeURIComponent(value2); items2 = [value3]; } catch (error) { length = a0.length; value4 = 1; if (value4 === length) { return a0; } r2 = value || value4; value = a0.slice(0, r2); value5 = a0.slice(r2); Array = global.Array; prototype = Array.prototype; concat = prototype.concat; call = concat.call; value6 = environment; decodeComponentsBinding = decodeComponents; value = decodeComponentsBinding(value); value7 = decodeComponentsBinding(value5); return Reflect.apply(call, concat, [[], value, value7]); } return items2; } function decode_17280(a0) { // fn#17280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1652:357, offset: 0x00e68980, size: 159 bytes, params: 2, frame: 19 var r1; var r6; var r7; var r0; var decodeURIComponent; var value2; var error; var match; var value3; var value4; var value5; var length; var value6; var value7; let value = a0; try { decodeURIComponent = global.decodeURIComponent; value2 = decodeURIComponent(value); } catch (error) { match = value.match; value3 = environment; value4 = Reflect.apply(match, value, [env0_0]); r1 = value4 || []; value5 = 1; length = r1.length; if (value5 < length) { r6 = r1; r7 = value5; while (true) { value = decodeComponents(r6, r7); value = value.join(''); value6 = value.match(env0_0); r1 = value6 || []; value7 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; length = r1.length; if (value7 < length) { r6 = r1; r7 = value7; continue; } r0 = value; break; } } else { r0 = value; } return r0; } return value2; } function exports_17281(a0) { // fn#17281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1652:532, offset: 0x00e68a1f, size: 406 bytes, params: 2, frame: 22 var r0; var r8; var r1; var r6; var value; var value2; var replace; var regexp; var decodeURIComponent; var error; var object2; var binding; var exec; var value3; var value4; var property; var property2; var value5; var value6; var value7; var Object; var keys; var length; var RegExp; var prototype; var value8; var regExp; var value9; var value10; var value11; exceptionSkip18: while (true) { exceptionLanding18: while (true) { exceptionSkip11: while (true) { exceptionLanding11: while (true) { value = a0; value2 = typeof value; if (value2 !== 'string') { throw new global.TypeError('Expected `encodedURI` to be of type `string`, got `' + value2 + '`'); } try { replace = value.replace; } catch (error) { r0 = value; break exceptionLanding11; } try { regexp = RegExp('\\+', 'g'); } catch (error) { r0 = value; break exceptionLanding11; } try { value = Reflect.apply(replace, value, [regexp, ' ']); } catch (error) { r0 = value; break exceptionLanding11; } try { decodeURIComponent = global.decodeURIComponent; } catch (error) { r0 = value; break exceptionLanding11; } try { value = decodeURIComponent(value); } catch (error) { r0 = value; break exceptionLanding11; } return value; break exceptionSkip11; } object2 = {'%FE%FF': '��', '%FF%FE': '��'}; value = environment; binding = env0_1; exec = binding.exec; value3 = Reflect.apply(exec, binding, [r0]); value4 = 0; if (value3) { r8 = value3; reducibleLoop12: while (true) { try { property = r8[value4]; } catch (error) { break exceptionLanding18; } try { decodeURIComponent = global.decodeURIComponent; } catch (error) { break exceptionLanding18; } try { property2 = r8[value4]; } catch (error) { break exceptionLanding18; } try { value5 = decodeURIComponent(property2); } catch (error) { break exceptionLanding18; } try { object2[property] = value5; } catch (error) { break exceptionLanding18; } binding = env0_1; exec = binding.exec; value7 = Reflect.apply(exec, binding, [r0]); if (value7) { r8 = value7; continue reducibleLoop12; } break reducibleLoop12; } } object2['%C2'] = '�'; Object = global.Object; keys = Object.keys; value = Reflect.apply(keys, Object, [object2]); length = value.length; if (value4 < length) { r1 = r0; r6 = value4; reducibleLoop22: while (true) { property = value[r6]; replace = r1.replace; RegExp = global.RegExp; prototype = RegExp.prototype; value8 = Object.create(prototype, {constructor: {value: RegExp}}); regExp = new RegExp(property, 'g'); value9 = regExp instanceof Object ? regExp : value8; value10 = Reflect.apply(replace, r1, [value9, object2[property]]); value11 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1; length = value.length; if (value11 < length) { r1 = value10; r6 = value11; continue reducibleLoop22; } r1 = value10; break reducibleLoop22; } } else { r1 = r0; } return r1; break exceptionSkip11; } break exceptionSkip18; } exceptionRetry18: while (true) { value6 = decode_17280(r8[value4]); reducibleJoin20: while (true) { if (value6 === r8[value4]) { break reducibleJoin20; } object2[r8[value4]] = value6; break reducibleJoin20; } reducibleLoop20: while (true) { binding = env0_1; exec = binding.exec; value7 = Reflect.apply(exec, binding, [r0]); if (value7) { r8 = value7; try { property = r8[value4]; } catch (error) { continue exceptionRetry18; } try { decodeURIComponent = global.decodeURIComponent; } catch (error) { continue exceptionRetry18; } try { property2 = r8[value4]; } catch (error) { continue exceptionRetry18; } try { value5 = decodeURIComponent(property2); } catch (error) { continue exceptionRetry18; } try { object2[property] = value5; } catch (error) { continue exceptionRetry18; } continue reducibleLoop20; } break reducibleLoop20; } object2['%C2'] = '�'; Object = global.Object; keys = Object.keys; value = Reflect.apply(keys, Object, [object2]); length = value.length; if (value4 < length) { r1 = r0; r6 = value4; reducibleLoop22: while (true) { property = value[r6]; replace = r1.replace; RegExp = global.RegExp; prototype = RegExp.prototype; value8 = Object.create(prototype, {constructor: {value: RegExp}}); regExp = new RegExp(property, 'g'); value9 = regExp instanceof Object ? regExp : value8; value10 = Reflect.apply(replace, r1, [value9, object2[property]]); value11 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1; length = value.length; if (value11 < length) { r1 = value10; r6 = value11; continue reducibleLoop22; } r1 = value10; break reducibleLoop22; } } else { r1 = r0; } return r1; } break exceptionSkip18; } }