/* Metro module 7409; source: unknown; dependencies: [7397, 7369] */ function _fun59700(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7587:6, offset: 0x016f0088, size: 66 bytes, params: 8, frame: 16 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.parseSampleRate = parseSampleRate_59701; } function parseSampleRate_59701(a0) { // fn#59701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7587:97, offset: 0x016f00ca, size: 245 bytes, params: 2, frame: 21 const DEBUG_BUILD = (require(7397) /* metro dependency 7397 */).DEBUG_BUILD; const logger = (require(7369) /* metro dependency 7369 */).logger; var warn; var JSON; let value = a0; const value2 = typeof value; if (value2 === 'boolean') { return global.Number(value); } const r0 = value2 !== 'string' ? value : global.parseFloat(value); if (typeof r0 !== 'number') { if (DEBUG_BUILD) { warn = logger.warn; JSON = global.JSON; value = JSON.stringify(value); JSON = global.JSON; Reflect.apply(warn, logger, ['[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ' + value + ' of type ' + JSON.stringify(value2) + '.']); } return undefined; } if (global.isNaN(r0)) { if (DEBUG_BUILD) { warn = logger.warn; JSON = global.JSON; value = JSON.stringify(value); JSON = global.JSON; Reflect.apply(warn, logger, ['[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ' + value + ' of type ' + JSON.stringify(value2) + '.']); } return undefined; } if (r0 < 0) { if (DEBUG_BUILD) { warn = logger.warn; JSON = global.JSON; value = JSON.stringify(value); JSON = global.JSON; Reflect.apply(warn, logger, ['[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ' + value + ' of type ' + JSON.stringify(value2) + '.']); } return undefined; } if (r0 > 1) { if (DEBUG_BUILD) { warn = logger.warn; JSON = global.JSON; value = JSON.stringify(value); JSON = global.JSON; Reflect.apply(warn, logger, ['[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ' + value + ' of type ' + JSON.stringify(value2) + '.']); } return undefined; } return r0; }