function o(n) {
  const e = [];
  let t = "", r = "";
  for (let a = 0; a < n.length; a++) {
    const s = n[a];
    /[dMyY]/.test(s) ? (r && e.length > 0 && (e[e.length - 1].separator = r, r = ""), t += s) : (t && (e.push({
      length: t.length,
      separator: "",
      // Use the first character of the token to determine type: d/m/y
      type: t[0].toLowerCase()
    }), t = ""), r += s);
  }
  return t && e.push({
    length: t.length,
    separator: "",
    type: t[0].toLowerCase()
  }), e;
}
export {
  o as default
};
//# sourceMappingURL=parseFormatParts.js.map
