/* Metro module 1760; source: unknown; dependencies: [65, 31, 27, 1613, 1761, 1756, 1710, 1621, 1762, 1682, 1654, 1708] */ function _fun19408(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:6, offset: 0x00ea8dee, size: 431 bytes, params: 8, frame: 18 const env0_1 = require; const animatedStyleHandleToJSON = function() { return '{}'; }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_5 = importDefault(65) /* metro dependency 65 */; const value = require(31) /* metro dependency 31 */; const env0_6 = value.useEffect; const env0_7 = value.useRef; (require(27) /* metro dependency 27 */).Platform; const env0_8 = (require(1613) /* metro dependency 1613 */).shouldBeUseWeb(); let closure = prepareAnimation; closure.__closure = {}; closure.__workletHash = 14540565048240; closure.__initData = {code: "function prepareAnimation_Pnpm_useAnimatedStyleTs1(frameTimestamp,animatedProp,lastAnimation,lastValue){const prepareAnimation_Pnpm_useAnimatedStyleTs1=this._recur;if(Array.isArray(animatedProp)){animatedProp.forEach(function(prop,index){prepareAnimation_Pnpm_useAnimatedStyleTs1(frameTimestamp,prop,lastAnimation&&lastAnimation[index],lastValue&&lastValue[index]);});}if(typeof animatedProp==='object'&&animatedProp.onFrame){const animation=animatedProp;let value=animation.current;if(lastValue!==undefined&&lastValue!==null){if(typeof lastValue==='object'){if(lastValue.value!==undefined){value=lastValue.value;}else if(lastValue.onFrame!==undefined){if((lastAnimation===null||lastAnimation===void 0?void 0:lastAnimation.current)!==undefined){value=lastAnimation.current;}else if((lastValue===null||lastValue===void 0?void 0:lastValue.current)!==undefined){value=lastValue.current;}}}else{value=lastValue;}}animation.callStart=function(timestamp){animation.onStart(animation,value,timestamp,lastAnimation);};animation.callStart(frameTimestamp);animation.callStart=null;}else if(typeof animatedProp==='object'){Object.keys(animatedProp).forEach(function(key){return prepareAnimation_Pnpm_useAnimatedStyleTs1(frameTimestamp,animatedProp[key],lastAnimation&&lastAnimation[key],lastValue&&lastValue[key]);});}}"}; closure = runAnimations; closure.__closure = {}; closure.__workletHash = 2714844766543; closure.__initData = {code: "function runAnimations_Pnpm_useAnimatedStyleTs2(animation,timestamp,key,result,animationsActive,forceCopyAnimation){const runAnimations_Pnpm_useAnimatedStyleTs2=this._recur;if(!animationsActive.value){return true;}if(Array.isArray(animation)){result[key]=[];let allFinished=true;forceCopyAnimation=key==='boxShadow';animation.forEach(function(entry,index){if(!runAnimations_Pnpm_useAnimatedStyleTs2(entry,timestamp,index,result[key],animationsActive,forceCopyAnimation)){allFinished=false;}});return allFinished;}else if(typeof animation==='object'&&animation.onFrame){let finished=true;if(!animation.finished){if(animation.callStart){animation.callStart(timestamp);animation.callStart=null;}finished=animation.onFrame(animation,timestamp);animation.timestamp=timestamp;if(finished){animation.finished=true;animation.callback&&animation.callback(true);}}if(forceCopyAnimation){result[key]={...animation.current};}else{result[key]=animation.current;}return finished;}else if(typeof animation==='object'){result[key]={};let allFinished=true;Object.keys(animation).forEach(function(k){if(!runAnimations_Pnpm_useAnimatedStyleTs2(animation[k],timestamp,k,result[key],animationsActive,forceCopyAnimation)){allFinished=false;}});return allFinished;}else{result[key]=animation;return true;}}"}; object = {code: "function styleUpdater_Pnpm_useAnimatedStyleTs3(viewDescriptors,updater,state,animationsActive,isAnimatedProps=false,forceUpdate){const{SHOULD_BE_USE_WEB,processBoxShadow,isAnimated,prepareAnimation,runAnimations,updateProps,shallowEqual}=this.__closure;var _state$animations,_updater;const animations=(_state$animations=state.animations)!==null&&_state$animations!==void 0?_state$animations:{};const newValues=(_updater=updater())!==null&&_updater!==void 0?_updater:{};const oldValues=state.last;const nonAnimatedNewValues={};let hasAnimations=false;let frameTimestamp;let hasNonAnimatedValues=false;if(!SHOULD_BE_USE_WEB&&newValues.boxShadow){processBoxShadow(newValues);}for(const key in newValues){const value=newValues[key];if(isAnimated(value)){frameTimestamp=global.__frameTimestamp||global._getAnimationTimestamp();prepareAnimation(frameTimestamp,value,animations[key],oldValues[key]);animations[key]=value;hasAnimations=true;}else{hasNonAnimatedValues=true;nonAnimatedNewValues[key]=value;delete animations[key];}}if(hasAnimations){const frame=function(timestamp){const{animations:animations,last:last,isAnimationCancelled:isAnimationCancelled}=state;if(isAnimationCancelled){state.isAnimationRunning=false;return;}const updates={};let allFinished=true;for(const propName in animations){const finished=runAnimations(animations[propName],timestamp,propName,updates,animationsActive);if(finished){if(Array.isArray(updates[propName])){updates[propName].forEach(function(obj){for(const prop in obj){if(!last[propName]||typeof last[propName]!=='object'){last[propName]={};}last[propName][prop]=obj[prop];}});}else{last[propName]=updates[propName];}delete animations[propName];}else{allFinished=false;}}if(updates){updateProps(viewDescriptors,updates);}if(!allFinished){requestAnimationFrame(frame);}else{state.isAnimationRunning=false;}};state.animations=animations;if(!state.isAnimationRunning){state.isAnimationCancelled=false;state.isAnimationRunning=true;frame(frameTimestamp);}if(hasNonAnimatedValues){updateProps(viewDescriptors,nonAnimatedNewValues);}}else{state.isAnimationCancelled=true;state.animations=[];if(!shallowEqual(oldValues,newValues)||forceUpdate){updateProps(viewDescriptors,newValues,isAnimatedProps);}}state.last=newValues;}"}; const env0_12 = _fun19418(); object = {code: 'function jestStyleUpdater_Pnpm_useAnimatedStyleTs4(viewDescriptors,updater,state,animationsActive,animatedValues,adapters,forceUpdate){const{isAnimated,prepareAnimation,runAnimations,updatePropsJestWrapper,shallowEqual}=this.__closure;var _state$animations,_updater;const animations=(_state$animations=state.animations)!==null&&_state$animations!==void 0?_state$animations:{};const newValues=(_updater=updater())!==null&&_updater!==void 0?_updater:{};const oldValues=state.last;let hasAnimations=false;let frameTimestamp;Object.keys(animations).forEach(function(key){const value=newValues[key];if(!isAnimated(value)){delete animations[key];}});Object.keys(newValues).forEach(function(key){const value=newValues[key];if(isAnimated(value)){frameTimestamp=global.__frameTimestamp||global._getAnimationTimestamp();prepareAnimation(frameTimestamp,value,animations[key],oldValues[key]);animations[key]=value;hasAnimations=true;}});function frame(timestamp){const{animations:animations,last:last,isAnimationCancelled:isAnimationCancelled}=state;if(isAnimationCancelled){state.isAnimationRunning=false;return;}const updates={};let allFinished=true;Object.keys(animations).forEach(function(propName){const finished=runAnimations(animations[propName],timestamp,propName,updates,animationsActive);if(finished){last[propName]=updates[propName];delete animations[propName];}else{allFinished=false;}});if(Object.keys(updates).length){updatePropsJestWrapper(viewDescriptors,updates,animatedValues,adapters);}if(!allFinished){requestAnimationFrame(frame);}else{state.isAnimationRunning=false;}}if(hasAnimations){state.animations=animations;if(!state.isAnimationRunning){state.isAnimationCancelled=false;state.isAnimationRunning=true;frame(frameTimestamp);}}else{state.isAnimationCancelled=true;state.animations=[];}state.last=newValues;if(!shallowEqual(oldValues,newValues)||forceUpdate){updatePropsJestWrapper(viewDescriptors,newValues,animatedValues,adapters);}}'}; const env0_14 = _fun19423(); object = {code: 'function pnpm_useAnimatedStyleTs5(){const{updater,adaptersArray}=this.__closure;const newValues=updater();adaptersArray.forEach(function(adapter){adapter(newValues);});return newValues;}'}; object = {code: 'function pnpm_useAnimatedStyleTs6(forceUpdate){const{jestStyleUpdater,shareableViewDescriptors,updater,remoteState,areAnimationsActive,jestAnimatedValues,adaptersArray}=this.__closure;jestStyleUpdater(shareableViewDescriptors,updater,remoteState,areAnimationsActive,jestAnimatedValues,adaptersArray,forceUpdate);}'}; object = {code: 'function pnpm_useAnimatedStyleTs7(forceUpdate){const{styleUpdater,shareableViewDescriptors,updaterFn,remoteState,areAnimationsActive,isAnimatedProps}=this.__closure;styleUpdater(shareableViewDescriptors,updaterFn,remoteState,areAnimationsActive,isAnimatedProps,forceUpdate);}'}; object = {code: 'function pnpm_useAnimatedStyleTs8(){const{styleUpdater,shareableViewDescriptors,updaterFn,remoteState,areAnimationsActive,isAnimatedProps}=this.__closure;styleUpdater(shareableViewDescriptors,updaterFn,remoteState,areAnimationsActive,isAnimatedProps);remoteState.isFirstRun=false;}'}; object = {code: 'function pnpm_useAnimatedStyleTs9(){const{remoteState}=this.__closure;return remoteState.isFirstRun=true;}'}; exports.useAnimatedStyle = useAnimatedStyle; } function checkSharedValueUsage(a0, a1) { // fn#19409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:10704, offset: 0x00ea8f9d, size: 321 bytes, params: 3, frame: 19 var r2; var r1; var Array; var isArray; var value; var value2; const ReanimatedError = (require(1621) /* metro dependency 1621 */).ReanimatedError; var HermesInternal; var concat; var prototype; var value3; var reanimatedError; var Object; var keys; var iterator; var iterator2; var item; var item2; var checkSharedValueUsageBinding; var property; var error; var iterator3; var item3; exceptionSkip21: while (true) { exceptionLanding21: while (true) { exceptionSkip15: while (true) { exceptionLanding15: while (true) { Array = global.Array; isArray = Array.isArray; if (Reflect.apply(isArray, Array, [a0])) { iterator = a0[Symbol.iterator](); iterator3 = iterator.next; value = environment; for (r1 = iterator; true; r1 = item3) { item3 = Reflect.apply(iterator3, r1, []); item = item3.value; item3 = item3.done ? undefined : r1; if (item3 === undefined) { break; } try { checkSharedValueUsageBinding = checkSharedValueUsage; } catch (error) { break exceptionLanding21; } try { checkSharedValueUsageBinding(item, a1); } catch (error) { break exceptionLanding21; } } return undefined; } value = typeof a0; if (value !== 'object') { if (a1 === undefined) { return undefined; } if (value !== 'object') { return undefined; } if (a0 === null) { return undefined; } value = a0.value; if (value === undefined) { return undefined; } value = environment; concat = global.HermesInternal.concat; value = 'Invalid value passed to `' + a1 + '`, maybe you forgot to use `.value`?'; throw new ReanimatedError(); } if (a0 === null) { if (a1 === undefined) { return undefined; } if (value !== 'object') { return undefined; } if (a0 === null) { return undefined; } value = a0.value; if (value === undefined) { return undefined; } value = environment; concat = global.HermesInternal.concat; value = 'Invalid value passed to `' + a1 + '`, maybe you forgot to use `.value`?'; throw new ReanimatedError(); } value2 = a0.value; if (value2 === undefined) { Object = global.Object; keys = Object.keys; iterator = Reflect.apply(keys, Object, [a0])[Symbol.iterator](); iterator2 = iterator.next; value = environment; for (r2 = iterator; true; r2 = item2) { item2 = Reflect.apply(iterator2, r2, []); item = item2.value; item2 = item2.done ? undefined : r2; if (item2 === undefined) { break; } try { checkSharedValueUsageBinding = checkSharedValueUsage; } catch (error) { break exceptionLanding15; } try { property = a0[item]; } catch (error) { break exceptionLanding15; } try { checkSharedValueUsageBinding(property, item); } catch (error) { break exceptionLanding15; } } return undefined; } if (a1 === undefined) { return undefined; } if (value !== 'object') { return undefined; } if (a0 === null) { return undefined; } value = a0.value; if (value === undefined) { return undefined; } value = environment; HermesInternal = global.HermesInternal; concat = HermesInternal.concat; value = 'Invalid value passed to `' + a1 + '`, maybe you forgot to use `.value`?'; prototype = ReanimatedError.prototype; value3 = Object.create(prototype, {constructor: {value: ReanimatedError}}); reanimatedError = new ReanimatedError(); value = reanimatedError instanceof Object ? reanimatedError : value3; throw value; break exceptionSkip15; } try { item2.return(); } catch { } throw error; break exceptionSkip15; } break exceptionSkip21; } try { item3.return(); } catch { } throw error; break exceptionSkip21; } } function prepareAnimation(a0, a1, a2, a3) { // fn#19411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:1517, offset: 0x00ea90e6, size: 283 bytes, params: 5, frame: 17 var current; var value2; var callStart; const env0_0 = a0; const env0_1 = a1; const env0_2 = a2; const env0_3 = a3; const Array = global.Array; if (Array.isArray(a1)) { a1.forEach(_fun19412); } let value = typeof a1 === 'object'; if (value) { if (a1.onFrame) { var env0_4 = a1; current = a1.current; var env0_5; if (a3 != null) { if (typeof a3 === 'object') { value = a3.value; value2 = undefined; if (value2 !== value) { value = a3.value; } else if (value2 !== a3.onFrame) { current = a2 == null ? value2 : a2.current; if (value2 !== current) { current = a2.current; } else { current = a3 == null ? value2 : a3.current; if (value2 !== current) { current = a3.current; } } } } else { env0_5 = a3; } } a1.callStart = callStart; a1.callStart(a0); a1.callStart = null; } else if (value) { global.Object.keys(a1).forEach(_fun19414); } } else if (value) { global.Object.keys(a1).forEach(_fun19414); } } function runAnimations(a0, a1, a2, a3, a4, a5) { // fn#19415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:3393, offset: 0x00ea92ba, size: 347 bytes, params: 7, frame: 19 var r1; var Array; var finished; var value2; const env0_0 = a0; const env0_1 = a1; const env0_2 = a2; const env0_3 = a3; const env0_4 = a4; let env0_5 = a5; let value = a4.value; if (value) { Array = global.Array; if (Array.isArray(a0)) { a3[a2] = []; var env0_6 = true; env0_5 = a2 === 'boxShadow'; a0.forEach(_fun19416); return env0_6; } value = typeof a0 === 'object'; if (value) { if (a0.onFrame) { finished = a0.finished; value = true; if (finished) { r1 = value; } else { if (a0.callStart) { a0.callStart(a1); a0.callStart = null; } value2 = a0.onFrame(a0, a1); a0.timestamp = a1; if (value2) { a0.finished = value; if (a0.callback) { a0.callback(value); r1 = value2; } else { r1 = value2; } } else { r1 = value2; } } a3[a2] = a5 ? global.Object.assign({}, a0.current) : a0.current; return r1; } if (value) { a3[a2] = {}; var env0_7 = true; global.Object.keys(a0).forEach(_fun19417); return env0_7; } a3[a2] = a0; return true; } if (value) { a3[a2] = {}; var env0_7 = true; global.Object.keys(a0).forEach(_fun19417); return env0_7; } a3[a2] = a0; } return true; } function _fun19418() { // fn#19418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:6265, offset: 0x00ea9493, size: 172 bytes, params: 1, frame: 16 const closure = styleUpdater; const object2 = {}; object2.SHOULD_BE_USE_WEB = env0_8; object2.processBoxShadow = (require(1761) /* metro dependency 1761 */).processBoxShadow; object2.isAnimated = (require(1756) /* metro dependency 1756 */).isAnimated; object2.prepareAnimation = prepareAnimation_2; object2.runAnimations = runAnimations_2; object2.updateProps = (require(1710) /* metro dependency 1710 */).updateProps; object2.shallowEqual = (require(1756) /* metro dependency 1756 */).shallowEqual; closure.__closure = object2; closure.__workletHash = 3108907120254; closure.__initData = env0_11; return closure; } function _fun19423() { // fn#19423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:9569, offset: 0x00ea98f8, size: 140 bytes, params: 1, frame: 16 const closure = jestStyleUpdater; const object2 = {}; object2.isAnimated = (require(1756) /* metro dependency 1756 */).isAnimated; object2.prepareAnimation = prepareAnimation_2; object2.runAnimations = runAnimations_2; object2.updatePropsJestWrapper = (require(1710) /* metro dependency 1710 */).updatePropsJestWrapper; object2.shallowEqual = (require(1756) /* metro dependency 1756 */).shallowEqual; closure.__closure = object2; closure.__workletHash = 12729247822121; closure.__initData = env0_13; return closure; } function useAnimatedStyle(a0, a1, a2) { // fn#19429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:12382, offset: 0x00ea9cc5, size: 736 bytes, params: 4, frame: 25 var r11; var r12; var object; var concat; var styleUpdaterContainer; var moduleValue4; let value = a1; const value2 = a2; const value3 = undefined; const env0_0 = a0; const r1 = arguments.length > 3 && value3 !== arguments[3] && arguments[3]; const value8 = null; const value9 = useRef(value8); const Object = global.Object; const values = Object.values; const __closure = a0.__closure; const value10 = Reflect.apply(values, Object, [value8 != __closure ? __closure : {}]); let r7 = env0_8 && !value10.length; if (r7) { r7 = value8 != value; r11 = value; } else { r11 = value3; } r7 = r7 && r11.length; const r10 = r7 ? value : value10; r11 = value2 ? global.Array.isArray(value2) ? value2 : [value2] : []; const env0_5 = r11; const r6 = value2 ? (require(1756) /* metro dependency 1756 */).buildWorkletsHash(r11) : value8; const value13 = (require(1762) /* metro dependency 1762 */).useSharedValue(true); const value14 = useRef({}); if (value) { value.push(a0.__workletHash); r12 = value; } else { object = []; concat = object.concat; value = env0_5(r10); value = Reflect.apply(concat, object, [value, [a0.__workletHash]]); r12 = value; } if (r6) { r12.push(r6); } let current = value9.current; if (!current) { value = require(1682) /* metro dependency 1682 */; value = value.initialUpdaterRun(a0); object = {}; object.initial = {value: value, updater: a0}; object.remoteState = (require(1654) /* metro dependency 1654 */).makeShareable({'last': null, 'animations': null, 'isAnimationCancelled': false, 'isAnimationRunning': false, 'isFirstRun': true, last: value, animations: {}}); value = require(1708) /* metro dependency 1708 */; object.viewDescriptors = value.makeViewDescriptorsSet(); object.styleUpdaterContainer = {current: value3}; value9.current = object; } current = value9.current; const initial = current.initial; var env0_8 = current.remoteState; const viewDescriptors = current.viewDescriptors; r12.push(viewDescriptors.shareableViewDescriptors); useEffect(_fun19430, r12); useEffect(_fun19439, [value13]); checkSharedValueUsage(initial.value); value = useRef(value8); if (!value.current) { styleUpdaterContainer = value9.current.styleUpdaterContainer; moduleValue4 = require(1613) /* metro dependency 1613 */; value.current = moduleValue4.isJest() ? {viewDescriptors: viewDescriptors, initial: initial, jestAnimatedValues: value14, toJSON: animatedStyleHandleToJSON, styleUpdaterContainer: styleUpdaterContainer} : {viewDescriptors: viewDescriptors, initial: initial, styleUpdaterContainer: styleUpdaterContainer}; } return value.current; } function _fun19412(a0, a1) { // fn#19412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:1584, offset: 0x00ea9201, size: 69 bytes, params: 3, frame: 18 prepareAnimation(env0_0, a0, importDefault && importDefault[a1], importAll && importAll[a1]); } function callStart(a0) { // fn#19413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:1869, owner: prepareAnimation.callStart, offset: 0x00ea9246, size: 39 bytes, params: 2, frame: 17 require.onStart(require, env0_5, a0, importDefault); } function _fun19414(a0) { // fn#19414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:1981, offset: 0x00ea926d, size: 77 bytes, params: 2, frame: 19 prepareAnimation(env0_0, require[a0], importDefault && importDefault[a0], importAll && importAll[a0]); } function _fun19416(a0, a1) { // fn#19416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:3524, offset: 0x00ea9415, size: 59 bytes, params: 3, frame: 22 if (runAnimations(a0, require, a1, importAll[importDefault], env0_4, env0_5)) { } } function _fun19417(a0) { // fn#19417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:3875, offset: 0x00ea9450, size: 67 bytes, params: 2, frame: 22 if (runAnimations(env0_0[a0], require, a0, importAll[importDefault], env0_4, env0_5)) { } } function styleUpdater(a0, a1, a2, a3) { // fn#19419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:6282, offset: 0x00ea953f, size: 504 bytes, params: 5, frame: 43 var r15; var r18; var r19; var r22; var r26; var r7; var r8; var propertyName; var propertyName2; var property; var moduleValue2; var isAnimated; var __frameTimestamp; var value11; var prepareAnimation_2Binding; var property2; var closure; const value = undefined; const env0_0 = a0; const env0_1 = a2; const env0_2 = a3; const r14 = arguments.length > 4 && value !== arguments[4] && arguments[4]; const r13 = arguments.length > 5 ? arguments[5] : value; const r11 = a2.animations ?? ({}); const r1 = a1() ?? ({}); const last = a2.last; const object2 = {}; let binding = env1_8; let r4 = !binding && r1.boxShadow; if (r4) { (require(1761) /* metro dependency 1761 */).processBoxShadow(r1); } const value9 = false; const value10 = true; const properties = Object.keys(r1); const properties2 = 0; const properties3 = properties.length; if (properties === value) { r4 = value9; r7 = value9; r8 = value; } else { r15 = value9; r18 = value9; r19 = value; r22 = properties2; while (true) { propertyName = properties[r22]; propertyName2 = r22 + 1; if (propertyName === value) { r4 = r15; r7 = r18; r8 = r19; break; } property = r1[propertyName]; moduleValue2 = require(1756) /* metro dependency 1756 */; isAnimated = moduleValue2.isAnimated; if (Reflect.apply(isAnimated, moduleValue2, [property])) { __frameTimestamp = env1_0.__frameTimestamp; if (__frameTimestamp) { r26 = __frameTimestamp; continue; } binding = env1_0; value11 = binding._getAnimationTimestamp(); r26 = value11; prepareAnimation_2Binding = prepareAnimation_2; property2 = r11[propertyName]; prepareAnimation_2Binding(r26, property, property2, last[propertyName]); r11[propertyName] = property; r18 = value10; r19 = r26; r22 = propertyName2; } else { object2[propertyName] = property; delete r11[propertyName]; r15 = value10; r22 = propertyName2; } } } if (r7) { closure = styleUpdaterFrame; a2.animations = r11; if (!a2.isAnimationRunning) { a2.isAnimationCancelled = value9; a2.isAnimationRunning = value10; closure(r8); } if (r4) { (require(1710) /* metro dependency 1710 */).updateProps(a0, object2); } } else { a2.isAnimationCancelled = value10; a2.animations = []; if (!((require(1756) /* metro dependency 1756 */).shallowEqual(last, r1) && !r13)) { (require(1710) /* metro dependency 1710 */).updateProps(a0, r1, r14); } } a2.last = r1; return value; } function jestStyleUpdater(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:9586, offset: 0x00ea9984, size: 328 bytes, params: 8, frame: 25 var environment; const r9 = importDefault.animations ?? ({}); const r3 = require() ?? ({}); const last = importDefault.last; const env0_9 = false; let Object = global.Object; Object.keys(r9).forEach(_fun19425); Object = global.Object; Object.keys(r3).forEach(_fun19426); if (env0_9) { importDefault.animations = r9; if (!importDefault.isAnimationRunning) { importDefault.isAnimationCancelled = false; importDefault.isAnimationRunning = true; jestStyleUpdaterFrame(env0_5); } } else { importDefault.isAnimationCancelled = true; importDefault.animations = []; } importDefault.last = r3; value = environment.__proto__; if (!(require(dependencyMap[5]).shallowEqual(last, r3) && !dependencyMap)) { require(dependencyMap[6]).updatePropsJestWrapper(global, r3, module, exports); } } function _fun19430() { // fn#19430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:13166, offset: 0x00ea9fa5, size: 464 bytes, params: 1, frame: 17 var environment; var r6; var r4; var closure; var value2; const binding = env0_0; var env0_0 = binding; if (importDefault) { closure = pnpm_useAnimatedStyleTs5; closure.__closure = {updater: env0_0, adaptersArray: env0_5}; closure.__workletHash = 2827602676287; value2 = environment.__proto__; closure.__initData = env1_15; env0_0 = closure; r6 = closure; } else { r6 = binding; } const moduleValue = require(1613) /* metro dependency 1613 */; if (moduleValue.isJest()) { closure = pnpm_useAnimatedStyleTs6; closure.__closure = {jestStyleUpdater: env1_14, shareableViewDescriptors: shareableViewDescriptors, updater: env0_0, remoteState: remoteState, areAnimationsActive: env0_6, jestAnimatedValues: env0_7, adaptersArray: env0_5}; closure.__workletHash = 11745429083106; closure.__initData = env1_16; r4 = closure; } else { closure = pnpm_useAnimatedStyleTs7; closure.__closure = {styleUpdater: env1_12, shareableViewDescriptors: shareableViewDescriptors, updaterFn: r6, remoteState: remoteState, areAnimationsActive: env0_6, isAnimatedProps: env0_2}; closure.__workletHash = 6831194621571; closure.__initData = env1_17; if (!global.globalThis._IS_FABRIC && remoteState.isFirstRun) { global.requestAnimationFrame(_fun19435); r4 = closure; } else { r4 = closure; } } if (env0_3.current) { env0_3.current.styleUpdaterContainer.current = r4; } const env0_1 = (require(1654) /* metro dependency 1654 */).startMapper(r4, require); return _fun19437; } function _fun19439() { // fn#19439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:14537, offset: 0x00eaa364, size: 24 bytes, params: 1, frame: 2 env0_6.value = true; return _fun19440; } function styleUpdaterFrame(a0) { // fn#19420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:6708, owner: styleUpdater.frame, offset: 0x00ea9737, size: 192 bytes, params: 2, frame: 20 var environment; var propertyName; var value2; const env0_0 = a0; const animations = importDefault.animations; const env0_2 = importDefault.last; if (importDefault.isAnimationCancelled) { importDefault.isAnimationRunning = false; } else { var env0_4 = true; for (propertyName in animations) { frame_loop(propertyName); } value2 = environment.__proto__.__proto__; (require(1710) /* metro dependency 1710 */).updateProps(env0_0, {}); if (env0_4) { importDefault.isAnimationRunning = false; } else { global.requestAnimationFrame(styleUpdaterFrame); } } } function _fun19425(a0) { // fn#19425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:9726, offset: 0x00ea9acc, size: 63 bytes, params: 2, frame: 14 const property = env0_7[a0]; const moduleValue = require(1756) /* metro dependency 1756 */; if (!moduleValue.isAnimated(property)) { delete env0_6[a0]; } } function _fun19426(a0) { // fn#19426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:9811, offset: 0x00ea9b0b, size: 132 bytes, params: 2, frame: 19 const property = env0_7[a0]; const moduleValue = require(1756) /* metro dependency 1756 */; if (moduleValue.isAnimated(property)) { prepareAnimation_2(env2_0.__frameTimestamp || env2_0._getAnimationTimestamp(), property, env0_6[a0], last[a0]); env0_6[a0] = property; } } function jestStyleUpdaterFrame(a0) { // fn#19427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:10031, owner: jestStyleUpdater.frame, offset: 0x00ea9b8f, size: 226 bytes, params: 2, frame: 20 var environment; var object2; var Object; var value3; var moduleValue; const env0_0 = a0; const animations = importDefault.animations; const env0_2 = importDefault.last; if (importDefault.isAnimationCancelled) { importDefault.isAnimationRunning = false; } else { object2 = {}; var env0_3 = object2; var env0_4 = true; Object = global.Object; Object.keys(animations).forEach(_fun19428); Object = global.Object; if (Object.keys(object2).length) { value3 = environment.__proto__.__proto__; moduleValue = require(1710) /* metro dependency 1710 */; moduleValue.updatePropsJestWrapper(env0_0, object2, env0_3, env0_4); } if (env0_4) { importDefault.isAnimationRunning = false; } else { global.requestAnimationFrame(jestStyleUpdaterFrame); } } } function pnpm_useAnimatedStyleTs5() { // fn#19431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:13200, offset: 0x00eaa175, size: 40 bytes, params: 1, frame: 12 const value2 = env1_0(); env1_5.forEach(_fun19432); return value2; } function pnpm_useAnimatedStyleTs6(a0) { // fn#19433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:13397, offset: 0x00eaa19d, size: 47 bytes, params: 2, frame: 23 env2_14(shareableViewDescriptors, env1_0, remoteState, env1_6, env1_7, env1_5, a0); } function pnpm_useAnimatedStyleTs7(a0) { // fn#19434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:13648, offset: 0x00eaa1cc, size: 46 bytes, params: 2, frame: 21 env2_12(shareableViewDescriptors, pnpm_useAnimatedStyleTs5, remoteState, env1_6, env1_2, a0); } function _fun19435() { // fn#19435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:13932, offset: 0x00eaa1fa, size: 143 bytes, params: 1, frame: 16 const moduleValue = require(1654) /* metro dependency 1654 */; const runOnUI = moduleValue.runOnUI; const closure = pnpm_useAnimatedStyleTs8; closure.__closure = {styleUpdater: env2_12, shareableViewDescriptors: shareableViewDescriptors, updaterFn: pnpm_useAnimatedStyleTs5, remoteState: remoteState, areAnimationsActive: env1_6, isAnimatedProps: env1_2}; closure.__workletHash = 11622360674991; closure.__initData = env2_18; Reflect.apply(runOnUI, moduleValue, [closure])(); } function _fun19437() { // fn#19437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:14306, offset: 0x00eaa2c0, size: 147 bytes, params: 1, frame: 15 var environment; var moduleValue2; var runOnUI; var closure; var value3; (require(1654) /* metro dependency 1654 */).stopMapper(env0_1); if (!global.globalThis._IS_FABRIC) { moduleValue2 = require(1654) /* metro dependency 1654 */; runOnUI = moduleValue2.runOnUI; closure = function() { remoteState.isFirstRun = true; return true; }; value3 = environment.__proto__; closure.__closure = {remoteState: remoteState}; closure.__workletHash = 6168210089002; closure.__initData = env2_19; Reflect.apply(runOnUI, moduleValue2, [closure])(); } } function _fun19440() { // fn#19440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:14566, offset: 0x00eaa37c, size: 19 bytes, params: 1, frame: 2 env1_6.value = false; } function frame_loop(a0) { // fn#19421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:6825, owner: styleUpdater.frame._loop, offset: 0x00ea97f7, size: 144 bytes, params: 2, frame: 21 var Array; if (runAnimations_2(animations[a0], a0, a0, env0_3, importAll)) { Array = global.Array; if (Array.isArray(env0_3[a0])) { env0_3[a0].forEach(_fun19422); } else { last[a0] = env0_3[a0]; } delete animations[a0]; } } function _fun19428(a0) { // fn#19428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:10170, offset: 0x00ea9c71, size: 84 bytes, params: 2, frame: 20 if (runAnimations_2(animations[a0], env0_0, a0, env0_3, importAll)) { last[a0] = env0_3[a0]; delete animations[a0]; } } function pnpm_useAnimatedStyleTs8() { // fn#19436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:13970, offset: 0x00eaa289, size: 55 bytes, params: 1, frame: 20 env3_12(shareableViewDescriptors, pnpm_useAnimatedStyleTs5, remoteState, env2_6, env2_2); remoteState.isFirstRun = false; } function _fun19422(a0) { // fn#19422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1887:6894, offset: 0x00ea9887, size: 113 bytes, params: 2, frame: 13 var r9; var propertyName; var lastBinding; var property; var value3; var binding; for (propertyName in a0) { property = last[env0_0]; if (!property) { r9 = property; continue; } value3 = typeof last[env0_0] === 'object'; r9 = value3; if (r9) { continue; } lastBinding = last; binding = env0_0; lastBinding[binding] = {}; property = last[env0_0]; property[propertyName] = a0[propertyName]; } }