decord/source/1622_isValidLayoutAnimationProp.js

501 lines
31 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1622
2026-07-24 07:16:23 +00:00
// Function ID: 18038
2026-07-20 16:05:17 +00:00
// Name: isValidLayoutAnimationProp
2026-07-23 10:11:24 +00:00
// Dependencies: [65, 1585, 1607, 1593, 1623, 1624, 1625, 1589]
2026-07-20 16:05:17 +00:00
// Exports: initialUpdaterRun
// Module 1622 (isValidLayoutAnimationProp)
2026-07-23 10:11:24 +00:00
import _toConsumableArray from "_toConsumableArray";
import isJest from "isJest";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
let c3 = false;
isJest = isJest.shouldBeUseWeb();
let closure_5 = { originX: true, originY: true, width: true, height: true, borderRadius: true, globalOriginX: true, globalOriginY: true, opacity: true, transform: true, backgroundColor: true };
2026-07-20 16:05:17 +00:00
let closure_6 = { code: "function isValidLayoutAnimationProp_Pnpm_utilTs1(prop){const{LAYOUT_ANIMATION_SUPPORTED_PROPS}=this.__closure;return prop in LAYOUT_ANIMATION_SUPPORTED_PROPS;}" };
let closure_7 = { code: "function assertEasingIsWorklet_Pnpm_utilTs2(easing){const{SHOULD_BE_USE_WEB,isWorkletFunction}=this.__closure;if(_WORKLET){return;}if(SHOULD_BE_USE_WEB){return;}if(easing!==null&&easing!==void 0&&easing.factory){return;}if(!isWorkletFunction(easing)){throw new ReanimatedError('The easing function is not a worklet. Please make sure you import `Easing` from react-native-reanimated.');}}" };
let closure_8 = { code: "function recognizePrefixSuffix_Pnpm_utilTs3(value){if(typeof value==='string'){var _match$;const match=value.match(/([A-Za-z]*)(-?\\d*\\.?\\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);if(!match){throw new ReanimatedError(\"Couldn't parse animation value.\");}const prefix=match[1];const suffix=match[4];const number=match[2]+((_match$=match[3])!==null&&_match$!==void 0?_match$:'');return{prefix:prefix,suffix:suffix,strippedValue:parseFloat(number)};}else{return{strippedValue:value};}}" };
2026-07-23 10:11:24 +00:00
const tmp3 = (() => {
export function isValidLayoutAnimationProp(arg0) {
return arg0 in outer1_5;
2026-07-20 16:05:17 +00:00
}
isValidLayoutAnimationProp.__closure = { LAYOUT_ANIMATION_SUPPORTED_PROPS: closure_5 };
isValidLayoutAnimationProp.__workletHash = 13235833688548;
isValidLayoutAnimationProp.__initData = closure_6;
return isValidLayoutAnimationProp;
2026-07-23 10:11:24 +00:00
})();
let tmp5 = (() => {
export function recognizePrefixSuffix(current) {
2026-07-20 16:05:17 +00:00
if ("string" === typeof current) {
const match = current.match(/([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/);
if (match) {
let str2 = "";
if (null != match[3]) {
str2 = tmp8;
}
let obj = { prefix: match[1], suffix: match[4] };
const _parseFloat = parseFloat;
obj.strippedValue = parseFloat(match[2] + str2);
return obj;
} else {
2026-07-23 10:11:24 +00:00
const ReanimatedError = outer1_0(outer1_1[3]).ReanimatedError;
2026-07-20 16:05:17 +00:00
const prototype = ReanimatedError.prototype;
const reanimatedError = new ReanimatedError("Couldn't parse animation value.");
throw reanimatedError;
}
} else {
obj = { strippedValue: current };
return obj;
}
}
recognizePrefixSuffix.__closure = {};
recognizePrefixSuffix.__workletHash = 11076682371077;
recognizePrefixSuffix.__initData = closure_8;
return recognizePrefixSuffix;
2026-07-23 10:11:24 +00:00
})();
let closure_9 = tmp5;
const uiValue = require("isReducedMotionEnabledInSystem").ReducedMotionManager.uiValue;
2026-07-20 16:05:17 +00:00
let closure_11 = { code: "function getReduceMotionFromConfig_Pnpm_utilTs4(config){const{ReduceMotion,isReduceMotionOnUI}=this.__closure;return!config||config===ReduceMotion.System?isReduceMotionOnUI.value:config===ReduceMotion.Always;}" };
2026-07-23 10:11:24 +00:00
const tmp6 = (() => {
export function getReduceMotionFromConfig(reduceMotion) {
2026-07-20 16:05:17 +00:00
if (reduceMotion) {
2026-07-23 10:11:24 +00:00
if (reduceMotion !== outer1_0(outer1_1[2]).ReduceMotion.System) {
let value = reduceMotion === outer1_0(outer1_1[2]).ReduceMotion.Always;
2026-07-20 16:05:17 +00:00
}
return value;
}
2026-07-23 10:11:24 +00:00
value = outer1_10.value;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
getReduceMotionFromConfig.__closure = { ReduceMotion: require(1607) /* isWorkletFunction */.ReduceMotion, isReduceMotionOnUI: uiValue };
2026-07-20 16:05:17 +00:00
getReduceMotionFromConfig.__workletHash = 7977910521960;
getReduceMotionFromConfig.__initData = closure_11;
return getReduceMotionFromConfig;
2026-07-23 10:11:24 +00:00
})();
let closure_12 = tmp6;
2026-07-20 16:05:17 +00:00
let closure_13 = { code: "function getReduceMotionForAnimation_Pnpm_utilTs5(config){const{getReduceMotionFromConfig}=this.__closure;if(!config){return undefined;}return getReduceMotionFromConfig(config);}" };
let closure_14 = { code: "function applyProgressToMatrix_Pnpm_utilTs6(progress,a,b){const{addMatrices,scaleMatrix,subtractMatrices}=this.__closure;return addMatrices(a,scaleMatrix(subtractMatrices(b,a),progress));}" };
2026-07-23 10:11:24 +00:00
let tmp4 = (() => {
export function assertEasingIsWorklet(factory) {
2026-07-20 16:05:17 +00:00
if (!globalThis._WORKLET) {
2026-07-23 10:11:24 +00:00
if (!outer1_4) {
2026-07-20 16:05:17 +00:00
if (null == factory) {
if (!obj.isWorkletFunction(factory)) {
2026-07-23 10:11:24 +00:00
const ReanimatedError = outer1_0(outer1_1[3]).ReanimatedError;
2026-07-20 16:05:17 +00:00
const prototype = ReanimatedError.prototype;
const reanimatedError = new ReanimatedError("The easing function is not a worklet. Please make sure you import `Easing` from react-native-reanimated.");
throw reanimatedError;
}
2026-07-23 10:11:24 +00:00
obj = outer1_0(outer1_1[2]);
2026-07-20 16:05:17 +00:00
}
}
}
}
2026-07-23 10:11:24 +00:00
assertEasingIsWorklet.__closure = { SHOULD_BE_USE_WEB: isJest, isWorkletFunction: require(1607) /* isWorkletFunction */.isWorkletFunction };
2026-07-20 16:05:17 +00:00
assertEasingIsWorklet.__workletHash = 8431488219943;
assertEasingIsWorklet.__initData = closure_7;
return assertEasingIsWorklet;
2026-07-23 10:11:24 +00:00
})();
let closure_15 = (() => {
2026-07-20 16:05:17 +00:00
function applyProgressToMatrix(arg0, arg1, arg2) {
2026-07-23 10:11:24 +00:00
const obj = outer1_0(outer1_1[5]);
const obj2 = outer1_0(outer1_1[5]);
return obj.addMatrices(arg1, obj2.scaleMatrix(outer1_0(outer1_1[5]).subtractMatrices(arg2, arg1), arg0));
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
applyProgressToMatrix.__closure = { addMatrices: require(1624) /* isAffineMatrixFlat */.addMatrices, scaleMatrix: require(1624) /* isAffineMatrixFlat */.scaleMatrix, subtractMatrices: require(1624) /* isAffineMatrixFlat */.subtractMatrices };
2026-07-20 16:05:17 +00:00
applyProgressToMatrix.__workletHash = 4822273347900;
applyProgressToMatrix.__initData = closure_14;
return applyProgressToMatrix;
2026-07-23 10:11:24 +00:00
})();
2026-07-20 16:05:17 +00:00
let closure_16 = { code: "function applyProgressToNumber_Pnpm_utilTs7(progress,a,b){return a+progress*(b-a);}" };
2026-07-23 10:11:24 +00:00
let closure_17 = (() => {
2026-07-20 16:05:17 +00:00
function applyProgressToNumber(arg0, arg1, arg2) {
return arg1 + arg0 * (arg2 - arg1);
}
applyProgressToNumber.__closure = {};
applyProgressToNumber.__workletHash = 954128472665;
applyProgressToNumber.__initData = closure_16;
return applyProgressToNumber;
2026-07-23 10:11:24 +00:00
})();
2026-07-20 16:05:17 +00:00
let closure_18 = { code: "function decorateAnimation_Pnpm_utilTs8(animation){const{getReduceMotionFromConfig,recognizePrefixSuffix,isColor,toLinearSpace,convertToRGBA,clampRGBA,rgbaArrayToRGBAColor,toGammaSpace,decomposeMatrixIntoMatricesAndAngles,applyProgressToMatrix,applyProgressToNumber,getRotationMatrix,multiplyMatrices,flatten,isAffineMatrixFlat}=this.__closure;const baseOnStart=animation.onStart;const baseOnFrame=animation.onFrame;if(animation.isHigherOrder){animation.onStart=function(animation,value,timestamp,previousAnimation){if(animation.reduceMotion===undefined){animation.reduceMotion=getReduceMotionFromConfig();}return baseOnStart(animation,value,timestamp,previousAnimation);};return;}const animationCopy=Object.assign({},animation);delete animationCopy.callback;const prefNumberSuffOnStart=function(animation,value,timestamp,previousAnimation){var _animation$__prefix,_animation$__suffix;const{prefix:prefix,suffix:suffix,strippedValue:strippedValue}=recognizePrefixSuffix(value);animation.__prefix=prefix;animation.__suffix=suffix;animation.strippedCurrent=strippedValue;const{strippedValue:strippedToValue}=recognizePrefixSuffix(animation.toValue);animation.current=strippedValue;animation.startValue=strippedValue;animation.toValue=strippedToValue;if(previousAnimation&&previousAnimation!==animation){const{prefix:paPrefix,suffix:paSuffix,strippedValue:paStrippedValue}=recognizePrefixSuffix(previousAnimation.current);previousAnimation.current=paStrippedValue;previousAnimation.__prefix=paPrefix;previousAnimation.__suffix=paSuffix;}baseOnStart(animation,strippedValue,timestamp,previousAnimation);animation.current=((_animation$__prefix=animation.__prefix)!==null&&_animation$__prefix!==void 0?_animation$__prefix:'')+animation.current+((_animation$__suffix=animation.__suffix)!==null&&_animation$__suffix!==void 0?_animation$__suffix:'');if(previousAnimation&&previousAnimation!==animation){var _previousAnimation$__,_previousAnimation$__2;previousAnimation.current=((_previousAnimation$__=previousAnimation.__prefix)!==null&&_previousAnimation$__!==void 0?_previousAnimation$__:'')+previousAnimation.current+((_previousAnimation$__2=previousAnimation.__suffix)!==null&&_previousAnimation$__2!==void 0?_previousAnimation$__2:'');}};const prefNumberSuffOnFrame=function(animation,timestamp){var _animation$__prefix2,_animation$__suffix2;animation.current=animation.strippedCurrent;const res=baseOnFrame(animation,timestamp);animation.strippedCurrent=animation.current;animation.current=((_animation$__prefix2=animation.__prefix)!==null&&_animation$__prefix2!==void 0?_animation$__prefix2:'')+animation.current+((_animation$__suffix2=animation.__suffix)!==null&&_animation$__suffix2!==void 0?_animation$__suffix2:'');return res;};const tab=['R','G','B','A'];const colorOnStart=function(animation,value,timestamp,previousAnimation){let RGBAValue;let RGBACurrent;let RGBAToValue;const res=[];if(isColor(value)){RGBACurrent=toLinearSpace(convertToRGBA(animation.current));RGBAValue=toLinearSpace(convertToRGBA(value));if(animation.toValue){RGBAToValue=toLinearSpace(convertToRGBA(animation.toValue));}}tab.forEach(function(i,index){animation[i]=Object.assign({},animationCopy);animation[i].current=RGBACurrent[index];animation[i].toValue=RGBAToValue?RGBAToValue[index]:undefined;animation[i].onStart(animation[i],RGBAValue[index],timestamp,previousAnimation?previousAnimation[i]:undefined);res.push(animation[i].current);});animation.unroundedCurrent=res;clampRGBA(res);animation.current=rgbaArrayToRGBAColor(toGammaSpace(res));};const colorOnFrame=function(animation,timestamp){const res=[];let finished=true;animation.current=animation.nonscaledCurrent;tab.forEach(function(i){const result=animation[i].onFrame(animation[i],timestamp);finished=finished&&result;res.push(animation[i].current);});clampRGBA(res);animation.nonscaledCurrent=res;animation.current=rgbaArrayToRGBAColor(toGammaSpace(res));return finished;};const transformationMatrixOnStart=function(animation,value,timestamp,previousAnimation){const toValue=animation.toValue;animation.startMatrices=decompos
2026-07-23 10:11:24 +00:00
let closure_19 = (() => {
2026-07-20 16:05:17 +00:00
function decorateAnimation(isHigherOrder) {
2026-07-23 10:11:24 +00:00
let closure_0;
let closure_1;
2026-07-20 16:05:17 +00:00
({ onStart: closure_0, onFrame: closure_1 } = isHigherOrder);
if (isHigherOrder.isHigherOrder) {
isHigherOrder.onStart = (reduceMotion) => {
if (undefined === reduceMotion.reduceMotion) {
2026-07-23 10:11:24 +00:00
reduceMotion.reduceMotion = outer2_12();
2026-07-20 16:05:17 +00:00
}
return callback(reduceMotion, arg1, arg2, arg3);
};
} else {
2026-07-23 10:11:24 +00:00
let _Object = Object;
let _toConsumableArray = Object.assign({}, isHigherOrder);
delete tmp.callback;
2026-07-20 16:05:17 +00:00
function prefNumberSuffOnFrame(strippedCurrent) {
let __prefix;
strippedCurrent.current = strippedCurrent.strippedCurrent;
({ current: strippedCurrent.strippedCurrent, __prefix } = strippedCurrent);
let str = "";
let str2 = "";
if (null != __prefix) {
str2 = __prefix;
}
const __suffix = strippedCurrent.__suffix;
const sum = str2 + strippedCurrent.current;
if (null != __suffix) {
str = __suffix;
}
strippedCurrent.current = sum + str;
return callback2(strippedCurrent, arg1);
}
2026-07-23 10:11:24 +00:00
let closure_4 = ["R", "G", "B", "A"];
2026-07-20 16:05:17 +00:00
function colorOnFrame(nonscaledCurrent) {
2026-07-23 10:11:24 +00:00
let closure_0 = nonscaledCurrent;
let closure_1 = arg1;
2026-07-20 16:05:17 +00:00
const items = [];
2026-07-23 10:11:24 +00:00
let c3 = true;
2026-07-20 16:05:17 +00:00
nonscaledCurrent.current = nonscaledCurrent.nonscaledCurrent;
const item = closure_4.forEach((arg0) => {
2026-07-23 10:11:24 +00:00
let onFrameResult = c3;
if (c3) {
onFrameResult = obj.onFrame(nonscaledCurrent[arg0], closure_1);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
c3 = onFrameResult;
items.push(nonscaledCurrent[arg0].current);
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
outer2_0(outer2_1[6]).clampRGBA(items);
2026-07-20 16:05:17 +00:00
nonscaledCurrent.nonscaledCurrent = items;
2026-07-23 10:11:24 +00:00
const obj = outer2_0(outer2_1[6]);
const obj2 = outer2_0(outer2_1[6]);
nonscaledCurrent.current = obj2.rgbaArrayToRGBAColor(outer2_0(outer2_1[6]).toGammaSpace(items));
return c3;
2026-07-20 16:05:17 +00:00
}
function transformationMatrixOnFrame(arg0, arg1) {
let tmp3;
let tmp4;
let tmp5;
let tmp7;
let tmp8;
let tmp9;
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
const first = arg0[0];
let closure_1 = arg0[0].current / 100;
const items = [];
2026-07-23 10:11:24 +00:00
const items1 = ["translationMatrix", "scaleMatrix", "skewMatrix"];
const item = items1.forEach((arg0, arg1) => items.push(outer3_15(closure_1, closure_0.startMatrices[arg0], closure_0.stopMatrices[arg0])));
2026-07-20 16:05:17 +00:00
const items2 = [];
2026-07-23 10:11:24 +00:00
const items3 = ["x", "y", "z"];
2026-07-20 16:05:17 +00:00
[tmp3, tmp4, tmp5] = items;
const item1 = items3.forEach((arg0, arg1) => {
2026-07-23 10:11:24 +00:00
const tmp = outer3_17(closure_1, closure_0.startMatrices["r" + arg0], closure_0.stopMatrices["r" + arg0]);
items2.push(outer3_0(outer3_1[5]).getRotationMatrix(tmp, arg0));
2026-07-20 16:05:17 +00:00
});
[tmp7, tmp8, tmp9] = items2;
const onFrameResult = first.onFrame(arg0[0], arg1);
2026-07-23 10:11:24 +00:00
const obj2 = outer2_0(outer2_1[5]);
const obj3 = outer2_0(outer2_1[5]);
const multiplyMatricesResult = obj2.multiplyMatrices(tmp7, outer2_0(outer2_1[5]).multiplyMatrices(tmp8, tmp9));
const obj4 = outer2_0(outer2_1[5]);
const obj5 = outer2_0(outer2_1[5]);
const obj6 = outer2_0(outer2_1[5]);
arg0.current = obj4.flatten(obj5.multiplyMatrices(obj6.multiplyMatrices(tmp4, outer2_0(outer2_1[5]).multiplyMatrices(tmp5, multiplyMatricesResult)), tmp3));
2026-07-20 16:05:17 +00:00
return onFrameResult;
}
function arrayOnFrame(current) {
2026-07-23 10:11:24 +00:00
let closure_0 = current;
let closure_1 = arg1;
let c2 = true;
2026-07-20 16:05:17 +00:00
current = current.current;
const item = current.forEach((arg0, arg1) => {
2026-07-23 10:11:24 +00:00
let onFrameResult = c2;
if (c2) {
onFrameResult = obj.onFrame(ref[arg1], closure_1);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
c2 = onFrameResult;
ref.current[arg1] = ref[arg1].current;
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
return c2;
2026-07-20 16:05:17 +00:00
}
function objectOnFrame(current) {
const obj = {};
let flag = true;
let flag2 = true;
const keys = Object.keys();
if (keys !== undefined) {
flag2 = flag;
while (keys[tmp] !== undefined) {
let tmp5 = tmp3;
let obj2 = current[tmp3];
let onFrameResult = flag;
if (flag) {
onFrameResult = obj2.onFrame(current[tmp3], arg1);
}
obj[tmp3] = current[tmp3].current;
flag = onFrameResult;
2026-07-23 10:11:24 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
}
current.current = obj;
return flag2;
}
isHigherOrder.onStart = (reduceMotion, current, arg2, current2) => {
let strippedValue;
if (undefined === reduceMotion.reduceMotion) {
2026-07-23 10:11:24 +00:00
reduceMotion.reduceMotion = outer2_12();
2026-07-20 16:05:17 +00:00
}
if (reduceMotion.reduceMotion) {
if (undefined !== reduceMotion.toValue) {
reduceMotion.current = reduceMotion.toValue;
} else {
callback(reduceMotion, current, arg2, current2);
}
reduceMotion.startTime = 0;
reduceMotion.onFrame = () => true;
} else {
if (obj.isColor(current)) {
2026-07-23 10:11:24 +00:00
(function colorOnStart(current, current, arg2, current2) {
let closure_0 = current;
let closure_1 = arg2;
let _toConsumableArray = current2;
2026-07-20 16:05:17 +00:00
const items = [];
if (obj.isColor(current)) {
2026-07-23 10:11:24 +00:00
const obj2 = outer3_0(outer3_1[6]);
let closure_4 = obj2.toLinearSpace(outer3_0(outer3_1[6]).convertToRGBA(current.current));
const obj3 = outer3_0(outer3_1[6]);
const obj4 = outer3_0(outer3_1[6]);
let closure_3 = obj4.toLinearSpace(outer3_0(outer3_1[6]).convertToRGBA(current));
2026-07-20 16:05:17 +00:00
if (current.toValue) {
2026-07-23 10:11:24 +00:00
const obj6 = outer3_0(outer3_1[6]);
let closure_5 = obj6.toLinearSpace(outer3_0(outer3_1[6]).convertToRGBA(current.toValue));
const obj7 = outer3_0(outer3_1[6]);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj5 = outer3_0(outer3_1[6]);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const item = outer1_4.forEach((arg0, arg1) => {
dependencyMap[arg0] = Object.assign({}, outer2_2);
dependencyMap[arg0].current = table3[arg1];
2026-07-20 16:05:17 +00:00
let tmp;
2026-07-23 10:11:24 +00:00
if (table4) {
tmp = table4[arg1];
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
dependencyMap[arg0].toValue = tmp;
2026-07-20 16:05:17 +00:00
let tmp4;
2026-07-23 10:11:24 +00:00
if (table) {
tmp4 = table[arg0];
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
dependencyMap[arg0].onStart(dependencyMap[arg0], table2[arg1], closure_1, tmp4);
items.push(dependencyMap[arg0].current);
2026-07-20 16:05:17 +00:00
});
current.unroundedCurrent = items;
2026-07-23 10:11:24 +00:00
obj = outer3_0(outer3_1[6]);
outer3_0(outer3_1[6]).clampRGBA(items);
const obj8 = outer3_0(outer3_1[6]);
const obj9 = outer3_0(outer3_1[6]);
current.current = obj9.rgbaArrayToRGBAColor(outer3_0(outer3_1[6]).toGammaSpace(items));
})(reduceMotion, current, arg2, current2);
2026-07-20 16:05:17 +00:00
reduceMotion.onFrame = colorOnFrame;
} else {
if (obj2.isAffineMatrixFlat(current)) {
2026-07-23 10:11:24 +00:00
reduceMotion.startMatrices = outer2_0(outer2_1[5]).decomposeMatrixIntoMatricesAndAngles(current);
let obj3 = outer2_0(outer2_1[5]);
reduceMotion.stopMatrices = outer2_0(outer2_1[5]).decomposeMatrixIntoMatricesAndAngles(reduceMotion.toValue);
2026-07-20 16:05:17 +00:00
const _Object = Object;
2026-07-23 10:11:24 +00:00
reduceMotion[0] = Object.assign({}, _toConsumableArray);
2026-07-20 16:05:17 +00:00
reduceMotion[0].current = 0;
reduceMotion[0].toValue = 100;
const first = reduceMotion[0];
const first1 = reduceMotion[0];
let first2;
if (current2) {
first2 = current2[0];
}
first.onStart(first1, 0, arg2, first2);
reduceMotion.current = current;
reduceMotion.onFrame = transformationMatrixOnFrame;
2026-07-23 10:11:24 +00:00
let obj4 = outer2_0(outer2_1[5]);
2026-07-20 16:05:17 +00:00
} else {
const _Array = Array;
if (Array.isArray(current)) {
2026-07-23 10:11:24 +00:00
(function arrayOnStart(reduceMotion, arr, arg2, current2) {
let closure_0 = reduceMotion;
let closure_1 = arg2;
let _toConsumableArray = current2;
2026-07-20 16:05:17 +00:00
const item = arr.forEach((current) => {
2026-07-23 10:11:24 +00:00
toValue[arg1] = Object.assign({}, outer2_2);
toValue[arg1].current = current;
toValue[arg1].toValue = toValue.toValue[arg1];
2026-07-20 16:05:17 +00:00
let tmp2;
2026-07-23 10:11:24 +00:00
if (table) {
tmp2 = table[arg1];
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
toValue[arg1].onStart(toValue[arg1], current, closure_1, tmp2);
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
reduceMotion.current = outer3_2(arr);
})(reduceMotion, current, arg2, current2);
2026-07-20 16:05:17 +00:00
reduceMotion.onFrame = arrayOnFrame;
} else if ("string" === typeof current) {
2026-07-23 10:11:24 +00:00
({ strippedValue, prefix: reduceMotion.__prefix, suffix: reduceMotion.__suffix } = outer2_9(current));
2026-07-20 16:05:17 +00:00
reduceMotion.strippedCurrent = strippedValue;
reduceMotion.current = strippedValue;
reduceMotion.startValue = strippedValue;
2026-07-23 10:11:24 +00:00
reduceMotion.toValue = outer2_9(reduceMotion.toValue).strippedValue;
2026-07-20 16:05:17 +00:00
if (current2) {
if (current2 !== reduceMotion) {
2026-07-23 10:11:24 +00:00
({ strippedValue: current2.current, prefix: current2.__prefix, suffix: current2.__suffix } = outer2_9(current2.current));
const tmp28 = outer2_9(current2.current);
2026-07-20 16:05:17 +00:00
}
}
callback(reduceMotion, strippedValue, arg2, current2);
const __prefix = reduceMotion.__prefix;
let str2 = "";
let str3 = "";
if (null != __prefix) {
str3 = __prefix;
}
const __suffix = reduceMotion.__suffix;
let tmp37 = str2;
const sum = str3 + reduceMotion.current;
if (null != __suffix) {
tmp37 = __suffix;
}
reduceMotion.current = sum + tmp37;
let tmp38 = current2;
if (current2) {
tmp38 = current2 !== reduceMotion;
}
if (tmp38) {
const __prefix2 = current2.__prefix;
let tmp39 = str2;
if (null != __prefix2) {
tmp39 = __prefix2;
}
const __suffix2 = current2.__suffix;
const sum1 = tmp39 + current2.current;
if (null != __suffix2) {
str2 = __suffix2;
}
current2.current = sum1 + str2;
}
reduceMotion.onFrame = prefNumberSuffOnFrame;
2026-07-23 10:11:24 +00:00
const tmp26 = outer2_9(current);
2026-07-20 16:05:17 +00:00
} else {
if ("object" === tmp7) {
if (null !== current) {
for (const key10040 in arg1) {
let tmp72 = key10040;
let _Object2 = Object;
2026-07-23 10:11:24 +00:00
let tmp73 = _toConsumableArray;
arg0[key10040] = Object.assign({}, _toConsumableArray);
2026-07-20 16:05:17 +00:00
arg0[key10040].onStart = arg0.onStart;
arg0[key10040].current = arg1[key10040];
arg0[key10040].toValue = arg0.toValue[key10040];
let obj6 = arg0[key10040];
let tmp74 = arg0[key10040];
let tmp75 = arg1[key10040];
let tmp17;
if (arg3) {
tmp17 = arg3[key10040];
}
let tmp18 = obj6;
let tmp19 = tmp74;
let tmp20 = tmp75;
let tmp21 = arg2;
let tmp22 = tmp17;
let onStartResult1 = obj6.onStart(tmp74, tmp75, arg2, tmp17);
2026-07-23 10:11:24 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
reduceMotion.current = current;
reduceMotion.onFrame = objectOnFrame;
}
}
callback(reduceMotion, current, arg2, current2);
}
}
2026-07-23 10:11:24 +00:00
obj2 = outer2_0(outer2_1[5]);
2026-07-20 16:05:17 +00:00
}
return tmp15;
}
};
}
}
2026-07-23 10:11:24 +00:00
decorateAnimation.__closure = { getReduceMotionFromConfig: closure_12, recognizePrefixSuffix: closure_9, isColor: require(1625) /* call */.isColor, toLinearSpace: require(1625) /* call */.toLinearSpace, convertToRGBA: require(1625) /* call */.convertToRGBA, clampRGBA: require(1625) /* call */.clampRGBA, rgbaArrayToRGBAColor: require(1625) /* call */.rgbaArrayToRGBAColor, toGammaSpace: require(1625) /* call */.toGammaSpace, decomposeMatrixIntoMatricesAndAngles: require(1624) /* isAffineMatrixFlat */.decomposeMatrixIntoMatricesAndAngles, applyProgressToMatrix: closure_15, applyProgressToNumber: closure_17, getRotationMatrix: require(1624) /* isAffineMatrixFlat */.getRotationMatrix, multiplyMatrices: require(1624) /* isAffineMatrixFlat */.multiplyMatrices, flatten: require(1624) /* isAffineMatrixFlat */.flatten, isAffineMatrixFlat: require(1624) /* isAffineMatrixFlat */.isAffineMatrixFlat };
2026-07-20 16:05:17 +00:00
decorateAnimation.__workletHash = 6240615473022;
decorateAnimation.__initData = closure_18;
return decorateAnimation;
2026-07-23 10:11:24 +00:00
})();
2026-07-20 16:05:17 +00:00
let closure_20 = { code: "function defineAnimation_Pnpm_utilTs9(starting,factory){const{IN_STYLE_UPDATER,decorateAnimation,SHOULD_BE_USE_WEB}=this.__closure;if(IN_STYLE_UPDATER){return starting;}const create=function(){'worklet';const animation=factory();decorateAnimation(animation);return animation;};if(_WORKLET||SHOULD_BE_USE_WEB){return create();}create.__isAnimationDefinition=true;return create;}" };
let closure_21 = { code: "function pnpm_utilTs10(){const{factory,decorateAnimation}=this.__closure;const animation=factory();decorateAnimation(animation);return animation;}" };
let closure_22 = { code: "function cancelAnimationNative_Pnpm_utilTs11(sharedValue){const{runOnUI}=this.__closure;if(_WORKLET){sharedValue.value=sharedValue.value;}else{runOnUI(function(){'worklet';sharedValue.value=sharedValue.value;})();}}" };
let closure_23 = { code: "function pnpm_utilTs12(){const{sharedValue}=this.__closure;sharedValue.value=sharedValue.value;}" };
2026-07-23 10:11:24 +00:00
const tmp7 = (() => {
export function getReduceMotionForAnimation(reduceMotion) {
2026-07-20 16:05:17 +00:00
if (reduceMotion) {
2026-07-23 10:11:24 +00:00
return outer1_12(reduceMotion);
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
getReduceMotionForAnimation.__closure = { getReduceMotionFromConfig: closure_12 };
2026-07-20 16:05:17 +00:00
getReduceMotionForAnimation.__workletHash = 10866808344662;
getReduceMotionForAnimation.__initData = closure_13;
return getReduceMotionForAnimation;
2026-07-23 10:11:24 +00:00
})();
let cancelAnimationWeb = (() => {
2026-07-20 16:05:17 +00:00
function cancelAnimationNative(value) {
2026-07-23 10:11:24 +00:00
let closure_0 = value;
2026-07-20 16:05:17 +00:00
if (globalThis._WORKLET) {
value.value = value.value;
} else {
2026-07-23 10:11:24 +00:00
let obj = outer1_0(outer1_1[7]);
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ function pnpm_utilTs12(){const{sharedValue}=this.__closure;sharedValue.value=sharedValue.value;}
obj = { sharedValue: value };
pnpm_utilTs12.__closure = obj;
pnpm_utilTs12.__workletHash = 14261344384038;
2026-07-23 10:11:24 +00:00
pnpm_utilTs12.__initData = outer1_23;
2026-07-20 16:05:17 +00:00
obj.runOnUI(pnpm_utilTs12)();
}
}
2026-07-23 10:11:24 +00:00
cancelAnimationNative.__closure = { runOnUI: require(1589) /* runWorkletOnJS */.runOnUI };
2026-07-20 16:05:17 +00:00
cancelAnimationNative.__workletHash = 796831326214;
cancelAnimationNative.__initData = closure_22;
return cancelAnimationNative;
2026-07-23 10:11:24 +00:00
})();
if (isJest) {
2026-07-20 16:05:17 +00:00
cancelAnimationWeb = function cancelAnimationWeb(value) {
value.value = value.value;
};
}
export const initialUpdaterRun = function initialUpdaterRun(updater) {
2026-07-23 10:11:24 +00:00
let c3 = true;
c3 = false;
2026-07-20 16:05:17 +00:00
return updater();
};
2026-07-23 10:11:24 +00:00
export const defineAnimation = (() => {
2026-07-20 16:05:17 +00:00
function defineAnimation(toValue, pnpm_clampTs2) {
2026-07-23 10:11:24 +00:00
let closure_0 = pnpm_clampTs2;
if (outer1_3) {
2026-07-20 16:05:17 +00:00
return toValue;
} else {
/* worklet (recovered source) */ function pnpm_utilTs10(){const{factory,decorateAnimation}=this.__closure;const animation=factory();decorateAnimation(animation);return animation;}
2026-07-23 10:11:24 +00:00
const obj = { factory: pnpm_clampTs2, decorateAnimation: outer1_19 };
2026-07-20 16:05:17 +00:00
pnpm_utilTs10.__closure = obj;
pnpm_utilTs10.__workletHash = 9825023081203;
2026-07-23 10:11:24 +00:00
pnpm_utilTs10.__initData = outer1_21;
2026-07-20 16:05:17 +00:00
if (!globalThis._WORKLET) {
2026-07-23 10:11:24 +00:00
if (!outer1_4) {
2026-07-20 16:05:17 +00:00
pnpm_utilTs10.__isAnimationDefinition = true;
let pnpm_utilTs10Result = pnpm_utilTs10;
}
return pnpm_utilTs10Result;
}
pnpm_utilTs10Result = pnpm_utilTs10();
}
}
2026-07-23 10:11:24 +00:00
defineAnimation.__closure = { IN_STYLE_UPDATER: c3, decorateAnimation: closure_19, SHOULD_BE_USE_WEB: isJest };
2026-07-20 16:05:17 +00:00
defineAnimation.__workletHash = 8998026617746;
defineAnimation.__initData = closure_20;
return defineAnimation;
2026-07-23 10:11:24 +00:00
})();
2026-07-20 16:05:17 +00:00
export const cancelAnimation = cancelAnimationWeb;