"use client";
function o(e) {
  return e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
}
function f(e) {
  return `--${e.join("-")}`;
}
function a(e, r, n) {
  if (e != null) {
    if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
      const t = f(r);
      n[t] = String(e);
      return;
    }
    if (Array.isArray(e)) {
      e.forEach((t, i) => {
        a(t, [...r, String(i)], n);
      });
      return;
    }
    typeof e == "object" && Object.entries(e).forEach(([t, i]) => {
      const c = o(t);
      a(i, [...r, c], n);
    });
  }
}
function s(e) {
  const r = {};
  return a(e, [], r), r;
}
export {
  s as themeToCssVars
};
//# sourceMappingURL=index.esm4.js.map
