import { evaluateVisibilityStepCondition as l } from "../evaluateVisibilityStepCondition/index.js";
const s = (t, e, r, o) => {
  for (let i = t - 1; i >= 0; i--) {
    const n = e[i];
    if (l(n, r || {}, o))
      return i;
  }
  return -1;
};
export {
  s as findPrevVisibleValidStep
};
