import { i as m } from "./provider-C8In649C.js";
import "./css-D6ZBcSwh.js";
import { C as g } from "./types-BNX_Jj6k.js";
const n = [
  { weight: 200, style: "light", value: "Inter 200, sans-serif" },
  { weight: 300, value: "Inter Threee, sans-serif" },
  { weight: 400, value: "Inter Four, sans-serif" },
  { weight: 500, value: "Inter Five, sans-serif" },
  { weight: 600, value: "Inter Six, sans-serif" },
  { weight: 700, value: "Inter Seven, sans-serif" },
  { weight: 800, value: "Inter Eight, sans-serif" },
  { weight: 900, style: "bold", value: "Inter Nine, sans-serif" }
], p = (s) => n.find((t, e) => e === n.length - 1 ? !0 : typeof s == "number" ? s >= t.weight && s < n[e + 1].weight : t.style === s), d = (s, { level: t, weight: e, code: a }) => {
  const {
    typography: r,
    sizes: { base: o }
  } = s;
  let i = r.family;
  if (a) i = r.codeFamily;
  else if (e != null) {
    const f = p(e);
    f != null ? i = f.value : i = "Inter Light, sans-serif";
  }
  const u = r[m(t) ? g[t] : t].size, l = (o * u).toFixed(1), [h, c] = i.split(", ");
  return e != null ? ` ${e} ${l}px ${h}, ${c}` : ` ${l}px ${i}`;
};
export {
  d as f
};
