import { s } from "./chunk-E5O6P5I2.js"; // node_modules/@arcgis/core/core/fontUtils.js var n = "woff2"; var s2 = /* @__PURE__ */ new Map(); async function o(t) { const r = i(t); let o2 = s2.get(r); if (o2) return o2; const a2 = new FontFace(t.family, `url('${s.fontsUrl}/woff2/${r}.${n}') format('${n}')`), u = document.fonts; return u.has(a2) && "loading" === a2.status ? a2.loaded : (o2 = a2.load(), s2.set(r, o2), u.add(a2), o2); } function a(e) { if (!e) return "arial-unicode-ms"; const t = e.toLowerCase().split(" ").join("-"); switch (t) { case "serif": return "noto-serif"; case "sans-serif": return "arial-unicode-ms"; case "monospace": return "ubuntu-mono"; case "fantasy": return "cabin-sketch"; case "cursive": return "redressed"; default: return t; } } function i(e) { const t = c(e) + f(e); return a(e.family) + (t.length > 0 ? t : "-regular"); } function c(e) { if (!e.weight) return ""; switch (e.weight.toLowerCase()) { case "bold": case "bolder": return "-bold"; } return ""; } function f(e) { if (!e.style) return ""; switch (e.style.toLowerCase()) { case "italic": case "oblique": return "-italic"; } return ""; } export { o, a, i }; //# sourceMappingURL=chunk-5IVP3KUS.js.map