/* Metro module 1688; source: unknown; dependencies: [1686] */ function _fun18422(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1815:6, offset: 0x00e8bb56, size: 86 bytes, params: 8, frame: 16 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = {code: 'function rigidDecay_Pnpm_rigidDecayTs1(animation,now,config){const{SLOPE_FACTOR,VELOCITY_EPS}=this.__closure;const{lastTimestamp:lastTimestamp,startTimestamp:startTimestamp,initialVelocity:initialVelocity,current:current,velocity:velocity}=animation;const deltaTime=Math.min(Math.max(now-lastTimestamp,0),64);const v=velocity*Math.exp(-(1-config.deceleration)*(now-startTimestamp)*SLOPE_FACTOR);animation.current=current+v*config.velocityFactor*deltaTime/1000;animation.velocity=v;animation.lastTimestamp=now;if(config.clamp){if(initialVelocity<0&&animation.current<=config.clamp[0]){animation.current=config.clamp[0];return true;}else if(initialVelocity>0&&animation.current>=config.clamp[1]){animation.current=config.clamp[1];return true;}}return Math.abs(v) 0) { if (a0.current >= a2.clamp[1]) { a0.current = a2.clamp[1]; return true; } return global.Math.abs(value6) < VELOCITY_EPS; } return global.Math.abs(value6) < VELOCITY_EPS; } if (initialVelocity > 0) { if (a0.current >= a2.clamp[1]) { a0.current = a2.clamp[1]; return true; } return global.Math.abs(value6) < VELOCITY_EPS; } return global.Math.abs(value6) < VELOCITY_EPS; } Math = global.Math; return Math.abs(value6) < VELOCITY_EPS; }