/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{Root as a,addLicense as s}from"@amcharts/amcharts5/index.js";import{getLocale as t}from"../../intl.js";import{getLocaleLanguage as r}from"../../intl/locale.js";s("AM5C241025748");const c="en-US",m=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 l(a){const s=r(a);if(!s)return null;for(const t of m.keys()){if(r(t)===s)return t}return null}function o(a){return a?m.has(a)?a:l(a)??c:c}async function h(s,r=t()){const c=a.new(s);return c.locale=(await m.get(o(r))()).default,c}export{h as createRoot};
