/* Metro module 1649; source: unknown; dependencies: [1650, 1653, 1661, 1614] */ function _fun18029(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1776:6, offset: 0x00e7d473, size: 160 bytes, params: 8, frame: 16 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = {code: "function resolvePath_Pnpm_styleAnimationTs1(obj,path){const keys=Array.isArray(path)?path:[path];return keys.reduce(function(acc,current){if(Array.isArray(acc)&&typeof current==='number'){return acc[current];}else if(acc!==null&&typeof acc==='object'&¤t in acc){return acc[current];}return undefined;},obj);}"}; const env0_3 = _fun18030(); object = {code: "function setPath_Pnpm_styleAnimationTs2(obj,path,value){const keys=Array.isArray(path)?path:[path];let currObj=obj;for(let i=0;i0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation===\'object\'&¤tAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&¤tStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:callback};});}'}; object = {code: 'function pnpm_styleAnimationTs4(){const{ColorProperties,setPath,processColor,styleAnimations,resolvePath,__DEV__,logger,isValidLayoutAnimationProp,withTiming}=this.__closure;const onFrame=function(animation,now){let stillGoing=false;const entriesToCheck=[{value:animation.styleAnimations,path:[]}];while(entriesToCheck.length>0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentEntry=entriesToCheck.pop();if(Array.isArray(currentEntry.value)){for(let index=0;index0){const currentAnimation=animationsToCheck.pop();if(Array.isArray(currentAnimation)){for(const element of currentAnimation){animationsToCheck.push(element);}}else if(typeof currentAnimation===\'object\'&¤tAnimation.onStart===undefined){for(const value of Object.values(currentAnimation)){animationsToCheck.push(value);}}else{const currentStyleAnimation=currentAnimation;if(!currentStyleAnimation.finished&¤tStyleAnimation.callback){currentStyleAnimation.callback(false);}}}}};return{isHigherOrder:true,onFrame:onFrame,onStart:onStart,current:{},styleAnimations:styleAnimations,callback:callback};}'}; exports.withStyleAnimation = _fun18035(); } function _fun18030() { // fn#18030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1776:425, offset: 0x00e7d513, size: 46 bytes, params: 1, frame: 2 const closure = function(a0, a1) { var value = a1; var Array = global.Array; return (Array.isArray(value) ? value : [value]).reduce(_fun18032, a0); }; closure.__closure = {}; closure.__workletHash = 6511886988303; closure.__initData = env0_2; return closure; } function _fun18033() { // fn#18033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1776:1038, offset: 0x00e7d5c9, size: 46 bytes, params: 1, frame: 2 const closure = setPath; closure.__closure = {}; closure.__workletHash = 1936400546748; closure.__initData = env0_4; return closure; } function _fun18035() { // fn#18035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1776:8787, offset: 0x00e7d6a1, size: 210 bytes, params: 1, frame: 17 const closure = withStyleAnimation; const object2 = {}; object2.defineAnimation = (require(1650) /* metro dependency 1650 */).defineAnimation; const ColorProperties = (require(1653) /* metro dependency 1653 */).ColorProperties; object2.ColorProperties = ColorProperties; object2.setPath = env0_5; object2.processColor = (require(1653) /* metro dependency 1653 */).processColor; object2.resolvePath = env0_3; object2.__DEV__ = false; object2.logger = (require(1614) /* metro dependency 1614 */).logger; object2.isValidLayoutAnimationProp = (require(1650) /* metro dependency 1650 */).isValidLayoutAnimationProp; object2.withTiming = (require(1661) /* metro dependency 1661 */).withTiming; closure.__closure = object2; closure.__workletHash = 3046356752495; closure.__initData = env0_6; return closure; } function resolvePath(a0, a1) { // fn#18031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1776:442, offset: 0x00e7d541, size: 62 bytes, params: 3, frame: 13 const value = a1; const Array = global.Array; return (Array.isArray(value) ? value : [value]).reduce(function(a0, a1) { return global.Array.isArray(a0) && typeof a1 === 'number' ? a0[a1] : a0 === null || typeof a0 !== 'object' ? undefined : a1 in a0 ? a0[a1] : undefined; }, a0); } function setPath(a0, a1, a2) { // fn#18034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1776:1055, offset: 0x00e7d5f7, size: 170 bytes, params: 4, frame: 16 var r4; var r6; var r2; var property; let value = a0; const value2 = a1; const Array = global.Array; const r1 = Array.isArray(value2) ? value2 : [value2]; let length = r1.length; const value3 = 0; if (value3 < length - 1) { r4 = value; r6 = value3; while (true) { if (!(r1[r6] in r4)) { if (typeof r1[r6 + 1] === 'number') { r4[r1[r6]] = []; break; } r4[r1[r6]] = {}; break; } property = r4[r1[r6]]; value = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1; length = r1.length; if (value < length - 1) { r4 = property; r6 = value; continue; } r2 = property; break; } } else { r2 = value; } r2[r1[r1.length - 1]] = a2; } function withStyleAnimation(a0) { // fn#18036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1776:8804, offset: 0x00e7d773, size: 225 bytes, params: 2, frame: 21 const env0_0 = a0; const moduleValue = require(1650) /* metro dependency 1650 */; const defineAnimation = moduleValue.defineAnimation; const closure = pnpm_styleAnimationTs4; const object2 = {}; const ColorProperties = (require(1653) /* metro dependency 1653 */).ColorProperties; object2.ColorProperties = ColorProperties; object2.setPath = env1_5; object2.processColor = (require(1653) /* metro dependency 1653 */).processColor; object2.styleAnimations = a0; object2.resolvePath = env1_3; object2.__DEV__ = false; object2.logger = (require(1614) /* metro dependency 1614 */).logger; object2.isValidLayoutAnimationProp = moduleValue.isValidLayoutAnimationProp; object2.withTiming = (require(1661) /* metro dependency 1661 */).withTiming; closure.__closure = object2; closure.__workletHash = 1293354823532; closure.__initData = env1_7; return Reflect.apply(defineAnimation, moduleValue, [{}, closure]); } function pnpm_styleAnimationTs4() { // fn#18037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1776:8873, owner: withStyleAnimation.pnpm_styleAnimationTs4, offset: 0x00e7d854, size: 61 bytes, params: 1, frame: 3 return {isHigherOrder: true, onFrame: onFrame, onStart: onStart_18039, current: {}, styleAnimations: env0_0, callback: callback_18040}; } function pnpm_styleAnimationTs4OnFrame(a0, a1) { // fn#18038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1776:8939, owner: withStyleAnimation.pnpm_styleAnimationTs4.onFrame, offset: 0x00e7d891, size: 611 bytes, params: 3, frame: 38 var r4; var r20; var r21; var r19; var r16; var r0; var object2; var styleAnimations; var items2; var length; var value; var value2; var value3; var value4; var pop; var value5; var Array; var isArray; var value6; var isArray2; var value7; var value8; var onFrame; var value9; var finished; var callback; var ColorProperties; var includes; var path; var value10; var binding; var current; var current2; var moduleValue; var processColor; var current3; var value11; var Object; var keys; var value12; var iterator; var iterator2; var item; var item2; var push; var value13; var property; var concat; var value14; var error; var value15; var value16; var value17; exceptionSkip26: while (true) { exceptionLanding26: while (true) { object2 = {}; styleAnimations = a0.styleAnimations; object2.value = styleAnimations; object2.path = []; items2 = [object2]; length = items2.length; value = 0; value2 = false; value3 = environment.__proto__.__proto__.__proto__; value4 = true; if (length > value) { r4 = value2; reducibleLoop1: while (true) { pop = items2.pop; value5 = Reflect.apply(pop, items2, []); Array = global.Array; isArray = Array.isArray; value6 = value5.value; isArray2 = Reflect.apply(isArray, Array, [value6]); value7 = value5.value; if (isArray2) { length = value7.length; if (value < length) { r19 = value; reducibleLoop28: while (true) { push = items2.push; value15 = value5.value; path = value5.path; concat = path.concat; Reflect.apply(push, items2, [{value: value15[r19], path: Reflect.apply(concat, path, [r19])}]); value16 = typeof r19 === 'bigint' ? r19 + 1n : +r19 + 1; value17 = value5.value; length = value17.length; if (value16 < length) { r19 = value16; continue reducibleLoop28; } r16 = r4; break reducibleLoop28; } } else { r16 = r4; } } else { reducibleJoin29: while (true) { reducibleJoin4: while (true) { if (typeof value7 !== 'object') { break reducibleJoin4; } value8 = value5.value; onFrame = value8.onFrame; if (onFrame === undefined) { Object = global.Object; keys = Object.keys; value12 = value5.value; iterator = Reflect.apply(keys, Object, [value12])[Symbol.iterator](); iterator2 = iterator.next; r20 = iterator; reducibleLoop13: while (true) { item2 = Reflect.apply(iterator2, r20, []); item = item2.value; item2 = item2.done ? undefined : r20; if (item2 === undefined) { r16 = r4; break reducibleJoin29; } try { push = items2.push; } catch (error) { break exceptionLanding26; } try { object2 = {}; } catch (error) { break exceptionLanding26; } try { value13 = value5.value; } catch (error) { break exceptionLanding26; } try { property = value13[item]; } catch (error) { break exceptionLanding26; } try { object2.value = property; } catch (error) { break exceptionLanding26; } try { path = value5.path; } catch (error) { break exceptionLanding26; } try { concat = path.concat; } catch (error) { break exceptionLanding26; } try { value14 = Reflect.apply(concat, path, [item]); } catch (error) { break exceptionLanding26; } try { object2.path = value14; } catch (error) { break exceptionLanding26; } try { Reflect.apply(push, items2, [object2]); } catch (error) { break exceptionLanding26; } r20 = item2; continue reducibleLoop13; } length = items2.length; if (length > value) { r4 = r16; continue reducibleLoop1; } r0 = r16; break reducibleLoop1; } break reducibleJoin4; } value9 = value5.value; finished = value9.finished; if (finished) { r16 = r4; break reducibleJoin29; } onFrame = value9.onFrame; reducibleJoin8: while (true) { if (Reflect.apply(onFrame, value9, [value9, a1])) { value9.finished = value4; callback = value9.callback; if (callback) { callback = value9.callback; Reflect.apply(callback, value9, [value4]); r20 = r4; break reducibleJoin8; } r20 = r4; break reducibleJoin8; } r20 = value4; break reducibleJoin8; } ColorProperties = (require(1653) /* metro dependency 1653 */).ColorProperties; includes = ColorProperties.includes; path = value5.path; value10 = Reflect.apply(includes, ColorProperties, [path[value]]); binding = env3_5; current = a0.current; path = value5.path; if (value10) { moduleValue = require(1653) /* metro dependency 1653 */; processColor = moduleValue.processColor; current3 = value9.current; value11 = Reflect.apply(processColor, moduleValue, [current3]); r21 = value11; } else { current2 = value9.current; r21 = current2; } binding(current, path, r21); r16 = r20; break reducibleJoin29; } } length = items2.length; if (length > value) { r4 = r16; continue reducibleLoop1; } r0 = r16; break reducibleLoop1; } } else { r0 = value2; } return !r0; break exceptionSkip26; } try { item2.return(); } catch { } throw error; break exceptionSkip26; } } function pnpm_styleAnimationTs4OnStart(a0, a1, a2, a3) { // fn#18039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1776:9527, owner: withStyleAnimation.pnpm_styleAnimationTs4.onStart, offset: 0x00e7daf4, size: 650 bytes, params: 5, frame: 41 var styleAnimations; var r18; var r19; var r23; var r22; var value; var object2; var value2; var items2; var length; var value3; var value4; var pop; var value5; var Array; var isArray; var value6; var isArray2; var value7; var value8; var onStart; var binding; var path; var value9; var value10; var value11; var current; var value12; var value13; var moduleValue; var withTiming; var value14; var value15; var value16; var Object; var keys; var value17; var iterator; var iterator2; var item; var item2; var push; var value18; var property; var concat; var value19; var error; var value20; var value21; var value22; exceptionSkip29: while (true) { exceptionLanding29: while (true) { value = undefined; object2 = {}; value2 = environment.__proto__; object2.value = env1_0; object2.path = []; items2 = [object2]; length = items2.length; value3 = 0; value4 = environment.__proto__.__proto__.__proto__; if (length > value3) { reducibleLoop1: while (true) { pop = items2.pop; value5 = Reflect.apply(pop, items2, []); Array = global.Array; isArray = Array.isArray; value6 = value5.value; isArray2 = Reflect.apply(isArray, Array, [value6]); value7 = value5.value; if (isArray2) { length = value7.length; if (value3 < length) { r22 = value3; reducibleLoop31: while (true) { push = items2.push; value20 = value5.value; path = value5.path; concat = path.concat; Reflect.apply(push, items2, [{value: value20[r22], path: Reflect.apply(concat, path, [r22])}]); value21 = typeof r22 === 'bigint' ? r22 + 1n : +r22 + 1; value22 = value5.value; length = value22.length; if (value21 < length) { r22 = value21; continue reducibleLoop31; } break reducibleLoop31; } } } else { reducibleJoin32: while (true) { reducibleJoin14: while (true) { if (typeof value7 !== 'object') { binding = env3_3; reducibleJoin6: while (true) { if (a3 == null) { styleAnimations = value; break reducibleJoin6; } styleAnimations = a3.styleAnimations; break reducibleJoin6; } path = value5.path; value9 = binding(styleAnimations, path); binding = env3_3; path = value5.path; value10 = binding(a1, path); reducibleJoin8: while (true) { if (value9) { value11 = !value10; r18 = value11; break reducibleJoin8; } r18 = value9; break reducibleJoin8; } reducibleJoin10: while (true) { if (r18) { current = value9.current; r19 = current; break reducibleJoin10; } r19 = value10; break reducibleJoin10; } binding = env3_5; current = a0.current; path = value5.path; binding(current, path, r19); if (typeof value5.value === 'object') { value13 = value5.value; if (value13.onStart) { value16 = value5.value; r18 = value16; break reducibleJoin14; } } moduleValue = require(1661) /* metro dependency 1661 */; value15 = moduleValue.withTiming(value5.value, {duration: value3}); binding = env3_5; styleAnimations = a0.styleAnimations; path = value5.path; binding(styleAnimations, path, value15); r18 = value15; break reducibleJoin14; } value8 = value5.value; onStart = value8.onStart; if (value === onStart) { Object = global.Object; keys = Object.keys; value17 = value5.value; iterator = Reflect.apply(keys, Object, [value17])[Symbol.iterator](); iterator2 = iterator.next; r23 = iterator; reducibleLoop16: while (true) { item2 = Reflect.apply(iterator2, r23, []); item = item2.value; item2 = item2.done ? undefined : r23; if (item2 === value) { break reducibleJoin32; } try { push = items2.push; } catch (error) { break exceptionLanding29; } try { object2 = {}; } catch (error) { break exceptionLanding29; } try { value18 = value5.value; } catch (error) { break exceptionLanding29; } try { property = value18[item]; } catch (error) { break exceptionLanding29; } try { object2.value = property; } catch (error) { break exceptionLanding29; } try { path = value5.path; } catch (error) { break exceptionLanding29; } try { concat = path.concat; } catch (error) { break exceptionLanding29; } try { value19 = Reflect.apply(concat, path, [item]); } catch (error) { break exceptionLanding29; } try { object2.path = value19; } catch (error) { break exceptionLanding29; } try { Reflect.apply(push, items2, [object2]); } catch (error) { break exceptionLanding29; } r23 = item2; continue reducibleLoop16; } length = items2.length; if (length > value3) { continue reducibleLoop1; } break reducibleLoop1; } binding = env3_3; reducibleJoin6: while (true) { if (a3 == null) { styleAnimations = value; break reducibleJoin6; } styleAnimations = a3.styleAnimations; break reducibleJoin6; } path = value5.path; value9 = binding(styleAnimations, path); binding = env3_3; path = value5.path; value10 = binding(a1, path); reducibleJoin8: while (true) { if (value9) { value11 = !value10; r18 = value11; break reducibleJoin8; } r18 = value9; break reducibleJoin8; } reducibleJoin10: while (true) { if (r18) { current = value9.current; r19 = current; break reducibleJoin10; } r19 = value10; break reducibleJoin10; } binding = env3_5; current = a0.current; path = value5.path; binding(current, path, r19); value12 = value5.value; if (typeof value12 === 'object') { value13 = value5.value; onStart = value13.onStart; if (onStart) { value16 = value5.value; r18 = value16; break reducibleJoin14; } } moduleValue = require(1661) /* metro dependency 1661 */; withTiming = moduleValue.withTiming; value14 = value5.value; value15 = Reflect.apply(withTiming, moduleValue, [value14, {duration: value3}]); binding = env3_5; styleAnimations = a0.styleAnimations; path = value5.path; binding(styleAnimations, path, value15); r18 = value15; break reducibleJoin14; } onStart = r18.onStart; Reflect.apply(onStart, r18, [r18, r19, a2, value9]); break reducibleJoin32; } } length = items2.length; if (length > value3) { continue reducibleLoop1; } break reducibleLoop1; } } return value; break exceptionSkip29; } try { item2.return(); } catch { } throw error; break exceptionSkip29; } } function pnpm_styleAnimationTs4Callback(a0) { // fn#18040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1776:10171, owner: withStyleAnimation.pnpm_styleAnimationTs4.callback, offset: 0x00e7dd7e, size: 267 bytes, params: 2, frame: 22 var r1; var r9; var value; var binding; var items2; var length; var pop; var Array; var isArray; var onStart; var finished; var value2; var callback; var Object; var values; var iterator; var iterator2; var item; var item2; var push; var error; var iterator3; var item3; exceptionSkip20: while (true) { exceptionLanding20: while (true) { exceptionSkip14: while (true) { exceptionLanding14: while (true) { reducibleJoin22: while (true) { if (a0) { break reducibleJoin22; } value = environment.__proto__; binding = env1_0; items2 = [binding]; length = items2.length; if (!(length > 0)) { break reducibleJoin22; } reducibleLoop2: while (true) { pop = items2.pop; value = Reflect.apply(pop, items2, []); Array = global.Array; isArray = Array.isArray; if (Reflect.apply(isArray, Array, [value])) { iterator = value[Symbol.iterator](); iterator3 = iterator.next; r9 = iterator; reducibleLoop16: while (true) { item3 = Reflect.apply(iterator3, r9, []); item = item3.value; item3 = item3.done ? undefined : r9; if (item3 === undefined) { break reducibleLoop16; } try { push = items2.push; } catch (error) { break exceptionLanding20; } try { Reflect.apply(push, items2, [item]); } catch (error) { break exceptionLanding20; } r9 = item3; continue reducibleLoop16; } } else { reducibleJoin21: while (true) { reducibleJoin7: while (true) { if (typeof value !== 'object') { finished = value.finished; if (finished) { r1 = !finished; break reducibleJoin7; } r1 = value.callback; break reducibleJoin7; } onStart = value.onStart; if (onStart === undefined) { Object = global.Object; values = Object.values; iterator = Reflect.apply(values, Object, [value])[Symbol.iterator](); iterator2 = iterator.next; r9 = iterator; reducibleLoop10: while (true) { item2 = Reflect.apply(iterator2, r9, []); item = item2.value; item2 = item2.done ? undefined : r9; if (item2 === undefined) { break reducibleJoin21; } try { push = items2.push; } catch (error) { break exceptionLanding14; } try { Reflect.apply(push, items2, [item]); } catch (error) { break exceptionLanding14; } r9 = item2; continue reducibleLoop10; } length = items2.length; if (length > 0) { continue reducibleLoop2; } break reducibleJoin22; } finished = value.finished; value2 = !finished; if (finished) { r1 = value2; break reducibleJoin7; } callback = value.callback; r1 = callback; break reducibleJoin7; } if (r1) { callback = value.callback; Reflect.apply(callback, value, [false]); break reducibleJoin21; } break reducibleJoin21; } } length = items2.length; if (length > 0) { continue reducibleLoop2; } break reducibleJoin22; } } return undefined; break exceptionSkip14; } try { item2.return(); } catch { } throw error; break exceptionSkip14; } break exceptionSkip20; } try { item3.return(); } catch { } throw error; break exceptionSkip20; } }