/* Metro module 7383; source: unknown; dependencies: [7370] */ function _fun59477(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7561:6, offset: 0x016eb329, size: 344 bytes, params: 8, frame: 26 var r9; var r6; var r8; var r5; var r4; var value3; var value4; var timeOrigin; var value5; var value7; const env0_0 = require; const closure = function() { var Date = global.Date; return Date.now() / 1000; }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const value = undefined; const unixTimestampInSecondsFunc = createUnixTimestampInSecondsFunc(); exports._browserPerformanceTimeOriginMode = value; const GLOBAL_OBJ = (require(7370) /* metro dependency 7370 */).GLOBAL_OBJ; const performance = GLOBAL_OBJ.performance; if (performance) { if (performance.now) { value3 = performance.now(); value4 = global.Date.now(); timeOrigin = performance.timeOrigin; value5 = 3600000; r9 = timeOrigin ? global.Math.abs(performance.timeOrigin + value3 - value4) : value5; value7 = r9 < value5; r6 = performance.timing && performance.timing.navigationStart; r8 = typeof r6 !== 'number' ? value5 : global.Math.abs(r6 + value3 - value4); if (value7) { if (r9 <= r8) { exports._browserPerformanceTimeOriginMode = 'timeOrigin'; r6 = performance.timeOrigin; } else { exports._browserPerformanceTimeOriginMode = 'navigationStart'; } r5 = r6; } else if (r8 < value5) { if (r9 <= r8) { exports._browserPerformanceTimeOriginMode = 'timeOrigin'; r6 = performance.timeOrigin; } else { exports._browserPerformanceTimeOriginMode = 'navigationStart'; } r5 = r6; } else { exports._browserPerformanceTimeOriginMode = 'dateNow'; r5 = value4; } r4 = r5; } else { exports._browserPerformanceTimeOriginMode = 'none'; r4 = value; } } else { exports._browserPerformanceTimeOriginMode = 'none'; r4 = value; } exports.browserPerformanceTimeOrigin = r4; exports.dateTimestampInSeconds = closure; exports.timestampInSeconds = unixTimestampInSecondsFunc; return value; } function createUnixTimestampInSecondsFunc() { // fn#59479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7561:141, offset: 0x016eb481, size: 118 bytes, params: 1, frame: 13 var r1; var value; const GLOBAL_OBJ = (require(7370) /* metro dependency 7370 */).GLOBAL_OBJ; const performance = GLOBAL_OBJ.performance; if (performance) { if (performance.now) { value = global.Date.now(); value -= performance.now(); r1 = performance.timeOrigin ?? value; return _fun59480; } } return dateTimestampInSeconds_59478; } function _fun59480() { // fn#59480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7561:334, offset: 0x016eb4f7, size: 36 bytes, params: 1, frame: 10 const binding = env0_1; const performanceBinding = performance; return (binding + performanceBinding.now()) / 1000; }