import { trimCharsLeft as a, trimChars as c } from "@milaboratories/helpers";
function m(n) {
  return n ? n.map((t) => "." + a(t, ["."])) : void 0;
}
function u(n) {
  const t = "/", i = n.startsWith(t), r = c(n, [t]).split(t), s = [
    {
      index: 0,
      name: "Root",
      path: ""
    }
  ];
  if (r.length === 1 && r[0] === "")
    return s;
  for (let e = 0; e < r.length; e++) {
    const o = (i ? t : "") + r.slice(0, e + 1).join(t);
    s.push({
      index: e + 1,
      name: r[e],
      path: o
    });
  }
  return s;
}
export {
  u as getFilePathBreadcrumbs,
  m as normalizeExtensions
};
//# sourceMappingURL=utils.js.map
