import { getPath as f } from "./get-path.mjs";
import { setPath as i } from "./set-path.mjs";
function h(n, c, o, r) {
  const t = f(n, r);
  if (!Array.isArray(t) || t.length <= o)
    return r;
  const e = [...t];
  return e[o] = c, i(n, e, r);
}
export {
  h as replacePath
};
//# sourceMappingURL=replace-path.mjs.map
