import { Root as m, addLicense as e } from "@amcharts/amcharts5/index.js";
import { getLocale as n, getLocaleLanguage as a } from "@arcgis/core/intl.js";
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
v4.34.7 */
e("AM5C241025748");
const p = "en-US", r = /* @__PURE__ */ new Map([
  ["ar", () => import("@amcharts/amcharts5/locales/ar.js")],
  ["bg-BG", () => import("@amcharts/amcharts5/locales/bg_BG.js")],
  ["bs-BA", () => import("@amcharts/amcharts5/locales/bs_BA.js")],
  ["ca-ES", () => import("@amcharts/amcharts5/locales/ca_ES.js")],
  ["cs-CZ", () => import("@amcharts/amcharts5/locales/cs_CZ.js")],
  ["da-DK", () => import("@amcharts/amcharts5/locales/da_DK.js")],
  ["de-DE", () => import("@amcharts/amcharts5/locales/de_DE.js")],
  ["de-CH", () => import("@amcharts/amcharts5/locales/de_CH.js")],
  ["el-GR", () => import("@amcharts/amcharts5/locales/el_GR.js")],
  ["en-US", () => import("@amcharts/amcharts5/locales/en_US.js")],
  ["en-CA", () => import("@amcharts/amcharts5/locales/en_CA.js")],
  ["es-ES", () => import("@amcharts/amcharts5/locales/es_ES.js")],
  ["et-EE", () => import("@amcharts/amcharts5/locales/et_EE.js")],
  ["fi-FI", () => import("@amcharts/amcharts5/locales/fi_FI.js")],
  ["fr-FR", () => import("@amcharts/amcharts5/locales/fr_FR.js")],
  ["he-IL", () => import("@amcharts/amcharts5/locales/he_IL.js")],
  ["hr-HR", () => import("@amcharts/amcharts5/locales/hr_HR.js")],
  ["hu-HU", () => import("@amcharts/amcharts5/locales/hu_HU.js")],
  ["id-ID", () => import("@amcharts/amcharts5/locales/id_ID.js")],
  ["it-IT", () => import("@amcharts/amcharts5/locales/it_IT.js")],
  ["ja-JP", () => import("@amcharts/amcharts5/locales/ja_JP.js")],
  ["ko-KR", () => import("@amcharts/amcharts5/locales/ko_KR.js")],
  ["lt-LT", () => import("@amcharts/amcharts5/locales/lt_LT.js")],
  ["lv-LV", () => import("@amcharts/amcharts5/locales/lv_LV.js")],
  ["no-NO", () => import("@amcharts/amcharts5/locales/nb_NO.js")],
  ["nb-NO", () => import("@amcharts/amcharts5/locales/nb_NO.js")],
  ["nl-NL", () => import("@amcharts/amcharts5/locales/nl_NL.js")],
  ["pl-PL", () => import("@amcharts/amcharts5/locales/pl_PL.js")],
  ["pt-BR", () => import("@amcharts/amcharts5/locales/pt_BR.js")],
  ["pt-PT", () => import("@amcharts/amcharts5/locales/pt_PT.js")],
  ["ro-RO", () => import("@amcharts/amcharts5/locales/ro_RO.js")],
  ["ru-RU", () => import("@amcharts/amcharts5/locales/ru_RU.js")],
  ["sk-SK", () => import("@amcharts/amcharts5/locales/sk_SK.js")],
  ["sl-SL", () => import("@amcharts/amcharts5/locales/sl_SL.js")],
  ["sr-RS", () => import("@amcharts/amcharts5/locales/sr_RS.js")],
  ["sv-SE", () => import("@amcharts/amcharts5/locales/sv_SE.js")],
  ["th-TH", () => import("@amcharts/amcharts5/locales/th_TH.js")],
  ["tr-TR", () => import("@amcharts/amcharts5/locales/tr_TR.js")],
  ["uk-UA", () => import("@amcharts/amcharts5/locales/uk_UA.js")],
  ["vi-VN", () => import("@amcharts/amcharts5/locales/vi_VN.js")],
  ["zh-CN", () => import("@amcharts/amcharts5/locales/zh_Hans.js")],
  ["zh-HK", () => import("@amcharts/amcharts5/locales/zh_Hant.js")],
  ["zh-TW", () => import("@amcharts/amcharts5/locales/zh_Hant.js")]
]);
function c(t) {
  if (!t)
    return p;
  if (r.has(t))
    return t;
  const o = a();
  return o && r.has(o) ? o : p;
}
async function u(t, o = n()) {
  const i = m.new(t);
  return i.locale = (await r.get(c(o))()).default, i;
}
export {
  u as createRoot
};
