/* Metro module 237; source: unknown; dependencies: [44] */ function _fun3251(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#3251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:268:6, offset: 0x00c93f5f, size: 124 bytes, params: 8, frame: 16 const env0_1 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = {'log': 'log', 'info': 'info', 'warn': 'warn', 'error': 'error', 'fatal': 'error'}; exports.default = {logIfNoNativeHook: logIfNoNativeHook, logToConsole: logToConsole, setWarningHandler: function(a0) { env0_4 = a0; }}; } function logIfNoNativeHook(a0) { // fn#3252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:268:190, offset: 0x00c93fdb, size: 183 bytes, params: 2, frame: 18 var r2; var r3; var value4; var value7; var value8; var binding; var value9; var apply; var logToConsole; var items2; const length = arguments.length; const Array = global.Array; const value2 = 1; reducibleJoin2: while (true) { if (length > value2) { value4 = length - value2; r2 = value4; break reducibleJoin2; } r2 = 0; break reducibleJoin2; } const array = new Array(); if (value2 < length) { r2 = value2; reducibleLoop3: while (true) { value7 = r2 - value2; array[value7] = arguments[r2]; value8 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value8 < length) { r2 = value8; continue reducibleLoop3; } break reducibleLoop3; } } if (env0_0.nativeLoggingHook === undefined) { logToConsole = env0_5.logToConsole; apply = logToConsole.apply; binding = env0_5; items2 = [a0]; Reflect.apply(apply, logToConsole, [binding, items2.concat(array)]); } else { binding = env0_4; reducibleJoin7: while (true) { if (binding) { value9 = a0 === 'warn'; r3 = value9; break reducibleJoin7; } r3 = binding; break reducibleJoin7; } reducibleJoin10: while (true) { if (r3) { binding = env0_4; apply = binding.apply; Reflect.apply(apply, binding, [undefined, array]); break reducibleJoin10; } break reducibleJoin10; } } } function logToConsole(a0) { // fn#3253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:268:416, offset: 0x00c94092, size: 192 bytes, params: 2, frame: 19 var r8; var r3; var value7; var value8; var value; const binding = env0_3; let property = binding[a0]; const moduleValue = require(44) /* metro dependency 44 */; const value2 = 'Level "' + a0; const Object = global.Object; moduleValue(property, value2 + '" not one of ' + Object.keys(binding).toString()); const length = arguments.length; const Array = global.Array; const value6 = 1; reducibleJoin2: while (true) { if (length > value6) { value = length - value6; r8 = value; break reducibleJoin2; } r8 = value; break reducibleJoin2; } const array = new Array(); if (value6 < length) { r3 = value6; reducibleLoop3: while (true) { value7 = r3 - value6; array[value7] = arguments[r3]; value8 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1; if (value8 < length) { r3 = value8; continue reducibleLoop3; } break reducibleLoop3; } } const console = global.console; property = console[property]; property.apply(console, array); }