import { i as g, C as y } from "./eraser-BcLVtorx.js";
import "./css-BUXMI9PB.js";
const r = [
  { 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" }
], I = (s) => r.find((t, e) => e === r.length - 1 ? !0 : typeof s == "number" ? s >= t.weight && s < r[e + 1].weight : t.style === s), v = (s, { level: t, weight: e, code: a }) => {
  const {
    typography: n,
    sizes: { base: o }
  } = s;
  let i = n.family;
  if (a) i = n.codeFamily;
  else if (e != null) {
    const f = I(e);
    f != null ? i = f.value : i = "Inter Light, sans-serif";
  }
  const u = n[g(t) ? y[t] : t].size, l = (o * u).toFixed(1), [h, c] = i.split(", ");
  return e != null ? ` ${e} ${l}px ${h}, ${c}` : ` ${l}px ${i}`;
};
export {
  v as f
};
