/* Metro module 1779; source: unknown; dependencies: [1621] */ function _fun19591(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1906:6, offset: 0x00eaeae3, size: 275 bytes, params: 8, frame: 17 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = {code: 'function getVal_Pnpm_interpolationTs1(type,coef,val,leftEdgeOutput,rightEdgeOutput,x){const{Extrapolation}=this.__closure;switch(type){case Extrapolation.IDENTITY:return x;case Extrapolation.CLAMP:if(coef*val=leftEdgeOutput?1:-1;if(coef*valcoef*rightEdgeOutput){return getVal(extrapolationConfig.extrapolateRight,coef,val,leftEdgeOutput,rightEdgeOutput,x);}return val;}'}; const env0_10 = _fun19598(); const env0_11 = {code: "function interpolate_Pnpm_interpolationTs5(x,inputRange,outputRange,type){const{validateType,internalInterpolate}=this.__closure;if(inputRange.length<2||outputRange.length<2){throw new ReanimatedError('Interpolation input and output ranges should contain at least two values.');}const extrapolationConfig=validateType(type);const length=inputRange.length;const narrowedInput={leftEdgeInput:inputRange[0],rightEdgeInput:inputRange[1],leftEdgeOutput:outputRange[0],rightEdgeOutput:outputRange[1]};if(length>2){if(x>inputRange[length-1]){narrowedInput.leftEdgeInput=inputRange[length-2];narrowedInput.rightEdgeInput=inputRange[length-1];narrowedInput.leftEdgeOutput=outputRange[length-2];narrowedInput.rightEdgeOutput=outputRange[length-1];}else{for(let i=1;i= leftEdgeOutput ? 1 : -1; if (r5 * value < r5 * leftEdgeOutput) { value7 = environment.__proto__; value = env1_4(a2.extrapolateLeft, r5, value, leftEdgeOutput, rightEdgeOutput, a0); r1 = value; } else if (r5 * value > r5 * rightEdgeOutput) { value6 = environment.__proto__; value = env1_4(a2.extrapolateRight, r5, value, leftEdgeOutput, rightEdgeOutput, a0); r1 = value; } else { r1 = value; } return r1; } function interpolate_19601(a0, a1, a2, a3) { // fn#19601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1906:5734, offset: 0x00eaef72, size: 330 bytes, params: 5, frame: 23 var r11; var value; var value4; const ReanimatedError = (require(1621) /* metro dependency 1621 */).ReanimatedError; let length = a1.length; if (length < 2) { value = environment.__proto__; throw new ReanimatedError('Interpolation input and output ranges should contain at least two values.'); } if (a2.length < 2) { value = environment.__proto__; throw new ReanimatedError('Interpolation input and output ranges should contain at least two values.'); } value = environment.__proto__; const value2 = env1_8(a3); length = a1.length; const object2 = {leftEdgeInput: a1[0]}; const value3 = 1; object2.rightEdgeInput = a1[value3]; object2.leftEdgeOutput = a2[0]; object2.rightEdgeOutput = a2[value3]; if (length > 2) { if (a0 > a1[length - value3]) { object2.leftEdgeInput = a1[length - 2]; object2.rightEdgeInput = a1[length - value3]; object2.leftEdgeOutput = a2[length - 2]; object2.rightEdgeOutput = a2[length - value3]; } else if (value3 < length) { r11 = value3; loopExit5: while (true) { if (a0 <= a1[r11]) { object2.leftEdgeInput = a1[r11 - value3]; object2.rightEdgeInput = a1[r11]; object2.leftEdgeOutput = a2[r11 - value3]; object2.rightEdgeOutput = a2[r11]; break loopExit5; } value4 = typeof r11 === 'bigint' ? r11 + 1n : +r11 + 1; if (value4 < length) { r11 = value4; continue; } break loopExit5; } } } return env1_10(a0, object2, value2); }