function x(n, a) {
  try {
    const t = new OffscreenCanvas(100, 100).getContext("2d");
    if (!t) {
      const e = [n, ...a];
      return Math.max(...e.map((c) => c.length)) * 8 + 24;
    }
    t.font = "500 16px Inter, sans-serif";
    const s = [n, ...a];
    return Math.round(Math.max(...s.map((e) => t.measureText(e).width))) + 32 + 28;
  } catch {
    const o = [n, ...a];
    return Math.max(...o.map((s) => s.length)) * 8 + 24;
  }
}
export {
  x as default
};
//# sourceMappingURL=measureColumnWidth.js.map
