@arcgis/core 4.28.0-next.20230913 → 4.28.0-next.20230914
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arcade/languageUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/1573065cb29dac670fe6.js +1 -0
- package/assets/esri/core/workers/chunks/{e9dc0599bf83eacf0147.js → 1c44f7c86f16f225642d.js} +1 -1
- package/assets/esri/core/workers/chunks/{a1283987bf6446953d56.js → 1da74a306aa5b4eacaae.js} +1 -1
- package/assets/esri/core/workers/chunks/20c91f34cc30aefbcbb8.js +1 -0
- package/assets/esri/core/workers/chunks/5aed6171ca89441bfbc4.js +1 -0
- package/assets/esri/core/workers/chunks/7390bf897f7c62a25678.js +1 -0
- package/assets/esri/core/workers/chunks/{860417f4138f53d315ba.js → b3fe727c5984d090b8ba.js} +56 -56
- package/assets/esri/core/workers/chunks/e9766bc9e3129354bf80.js +1 -0
- package/assets/esri/t9n/common_ar.json +1 -1
- package/assets/esri/t9n/common_bg.json +1 -1
- package/assets/esri/t9n/common_bs.json +1 -1
- package/assets/esri/t9n/common_ca.json +1 -1
- package/assets/esri/t9n/common_cs.json +1 -1
- package/assets/esri/t9n/common_da.json +1 -1
- package/assets/esri/t9n/common_de.json +1 -1
- package/assets/esri/t9n/common_el.json +1 -1
- package/assets/esri/t9n/common_es.json +1 -1
- package/assets/esri/t9n/common_et.json +1 -1
- package/assets/esri/t9n/common_fi.json +1 -1
- package/assets/esri/t9n/common_fr.json +1 -1
- package/assets/esri/t9n/common_he.json +1 -1
- package/assets/esri/t9n/common_hr.json +1 -1
- package/assets/esri/t9n/common_hu.json +1 -1
- package/assets/esri/t9n/common_id.json +1 -1
- package/assets/esri/t9n/common_it.json +1 -1
- package/assets/esri/t9n/common_ja.json +1 -1
- package/assets/esri/t9n/common_ko.json +1 -1
- package/assets/esri/t9n/common_lt.json +1 -1
- package/assets/esri/t9n/common_lv.json +1 -1
- package/assets/esri/t9n/common_nb.json +1 -1
- package/assets/esri/t9n/common_nl.json +1 -1
- package/assets/esri/t9n/common_pl.json +1 -1
- package/assets/esri/t9n/common_pt-BR.json +1 -1
- package/assets/esri/t9n/common_pt-PT.json +1 -1
- package/assets/esri/t9n/common_ro.json +1 -1
- package/assets/esri/t9n/common_ru.json +1 -1
- package/assets/esri/t9n/common_sk.json +1 -1
- package/assets/esri/t9n/common_sl.json +1 -1
- package/assets/esri/t9n/common_sr.json +1 -1
- package/assets/esri/t9n/common_sv.json +1 -1
- package/assets/esri/t9n/common_th.json +1 -1
- package/assets/esri/t9n/common_tr.json +1 -1
- package/assets/esri/t9n/common_uk.json +1 -1
- package/assets/esri/t9n/common_vi.json +1 -1
- package/assets/esri/t9n/common_zh-CN.json +1 -1
- package/assets/esri/t9n/common_zh-HK.json +1 -1
- package/assets/esri/t9n/common_zh-TW.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ar.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_bg.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_bs.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ca.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_cs.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_da.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_de.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_el.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_es.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_et.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_fi.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_fr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_he.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_hr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_hu.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_id.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_it.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ja.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ko.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_lt.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_lv.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_nb.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_nl.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pl.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pt-BR.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_pt-PT.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ro.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_ru.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sk.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sl.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_sv.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_th.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_tr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_uk.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_vi.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-CN.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-HK.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/Tooltip_zh-TW.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ar.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_bg.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_bs.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ca.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_cs.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_da.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_de.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_el.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_es.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_et.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_fi.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_fr.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_he.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_hr.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_hu.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_id.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_it.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ja.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ko.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_lt.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_lv.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_nb.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_nl.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pl.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pt-BR.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pt-PT.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ro.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ru.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sk.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sl.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sr.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sv.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_th.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_tr.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_uk.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_vi.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-CN.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-HK.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-TW.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_ar.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_bg.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_bs.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_ca.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_cs.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_da.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_de.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_el.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_es.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_et.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_fi.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_fr.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_he.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_hr.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_hu.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_id.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_it.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_ja.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_ko.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_lt.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_lv.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_nb.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_nl.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_pl.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_pt-BR.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_pt-PT.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_ro.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_ru.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_sk.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_sl.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_sr.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_sv.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_th.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_tr.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_uk.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_vi.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_zh-CN.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_zh-HK.json +1 -1
- package/assets/esri/widgets/Daylight/t9n/Daylight_zh-TW.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ar.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_bg.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_bs.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ca.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_cs.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_da.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_de.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_el.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_es.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_et.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_fi.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_fr.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_he.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_hr.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_hu.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_id.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_it.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ja.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ko.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_lt.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_lv.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_nb.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_nl.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_pl.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_pt-BR.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_pt-PT.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ro.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ru.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sk.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sl.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sr.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sv.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_th.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_tr.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_uk.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_vi.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_zh-CN.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_zh-HK.json +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_zh-TW.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nb.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ar.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bg.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ca.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_cs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_da.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_de.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_el.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_es.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_et.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_he.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hu.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_id.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_it.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ja.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ko.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lt.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nb.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ro.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ru.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_th.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_tr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_uk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_vi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-TW.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nb.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ar.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bg.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ca.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_cs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_da.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_de.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_el.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_es.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_et.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_he.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hu.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_id.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_it.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ja.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ko.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lt.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nb.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-BR.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-PT.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ro.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ru.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_th.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_tr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_uk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_vi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-CN.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-HK.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-TW.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_ar.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_bg.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_bs.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_ca.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_cs.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_da.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_de.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_el.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_es.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_et.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_fi.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_fr.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_he.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_hr.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_hu.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_id.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_it.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_ja.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_ko.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_lt.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_lv.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_nb.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_nl.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_pl.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_pt-BR.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_pt-PT.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_ro.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_ru.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_sk.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_sl.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_sr.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_sv.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_th.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_tr.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_uk.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_vi.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_zh-CN.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_zh-HK.json +1 -1
- package/assets/esri/widgets/ValuePicker/t9n/ValuePicker_zh-TW.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_ar.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_bg.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_bs.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_ca.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_cs.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_da.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_de.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_el.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_es.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_et.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_fi.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_fr.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_he.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_hr.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_hu.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_id.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_it.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_ja.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_ko.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_lt.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_lv.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_nb.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_nl.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_pl.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_pt-BR.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_pt-PT.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_ro.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_ru.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_sk.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_sl.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_sr.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_sv.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_th.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_tr.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_uk.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_vi.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_zh-CN.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_zh-HK.json +1 -1
- package/assets/esri/widgets/support/SketchTooltipControls/t9n/SketchTooltipControls_zh-TW.json +1 -1
- package/chunks/ajv.bundle.js +1 -1
- package/chunks/ar.js +1 -1
- package/chunks/bg_BG.js +1 -1
- package/chunks/bs_BA.js +1 -1
- package/chunks/ca_ES.js +1 -1
- package/chunks/chartUtilsAm5.js +1 -1
- package/chunks/cs_CZ.js +1 -1
- package/chunks/da_DK.js +1 -1
- package/chunks/de_CH.js +1 -1
- package/chunks/de_DE.js +1 -1
- package/chunks/el_GR.js +1 -1
- package/chunks/en_CA.js +1 -1
- package/chunks/en_US.js +1 -1
- package/chunks/es_ES.js +1 -1
- package/chunks/et_EE.js +1 -1
- package/chunks/fi_FI.js +1 -1
- package/chunks/fr_FR.js +1 -1
- package/chunks/he_IL.js +1 -1
- package/chunks/hr_HR.js +1 -1
- package/chunks/hu_HU.js +1 -1
- package/chunks/id_ID.js +1 -1
- package/chunks/it_IT.js +1 -1
- package/chunks/ja_JP.js +1 -1
- package/chunks/ko_KR.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/chunks/lt_LT.js +1 -1
- package/chunks/lv_LV.js +1 -1
- package/chunks/nb_NO.js +1 -1
- package/chunks/nl_NL.js +1 -1
- package/chunks/pl_PL.js +1 -1
- package/chunks/pt_BR.js +1 -1
- package/chunks/pt_PT.js +1 -1
- package/chunks/ro_RO.js +1 -1
- package/chunks/ru_RU.js +1 -1
- package/chunks/sk_SK.js +1 -1
- package/chunks/sl_SL.js +1 -1
- package/chunks/sr_RS.js +1 -1
- package/chunks/sv_SE.js +1 -1
- package/chunks/th_TH.js +1 -1
- package/chunks/tr_TR.js +1 -1
- package/chunks/uk_UA.js +1 -1
- package/chunks/vi_VN.js +1 -1
- package/chunks/zh_Hans.js +1 -1
- package/chunks/zh_Hant.js +1 -1
- package/geometry/support/MeshComponent.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +12 -0
- package/layers/graphics/sources/support/uploadAssets.js +1 -1
- package/layers/support/rasterFunctionUtils.js +1 -1
- package/layers/support/rasterFunctions/creators/createAppearenceFunctions.js +1 -1
- package/layers/support/rasterFunctions/creators/createStatisticsFunctions.js +5 -0
- package/package.json +1 -1
- package/smartMapping/raster/renderers/rgb.js +1 -1
- package/support/progressUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/3d/glTF/loader.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/0920312e3c7b63c2e253.js +0 -1
- package/assets/esri/core/workers/chunks/0cb007ab5db0a2a598ec.js +0 -1
- package/assets/esri/core/workers/chunks/a753d9874801cd448946.js +0 -1
- package/assets/esri/core/workers/chunks/eb0d1c5c96f735c162d3.js +0 -1
- package/assets/esri/core/workers/chunks/f18370d2df67e5e7d1e0.js +0 -1
- package/chunks/_commonjs-dynamic-modules.js +0 -5
- package/chunks/ar2.js +0 -5
- package/chunks/bg_BG2.js +0 -5
- package/chunks/bs_BA2.js +0 -5
- package/chunks/ca_ES2.js +0 -5
- package/chunks/cs_CZ2.js +0 -5
- package/chunks/da_DK2.js +0 -5
- package/chunks/de_CH2.js +0 -5
- package/chunks/de_DE2.js +0 -5
- package/chunks/el_GR2.js +0 -5
- package/chunks/en_CA2.js +0 -5
- package/chunks/en_US2.js +0 -5
- package/chunks/es_ES2.js +0 -5
- package/chunks/et_EE2.js +0 -5
- package/chunks/fi_FI2.js +0 -5
- package/chunks/fr_FR2.js +0 -5
- package/chunks/he_IL2.js +0 -5
- package/chunks/hr_HR2.js +0 -5
- package/chunks/hu_HU2.js +0 -5
- package/chunks/id_ID2.js +0 -5
- package/chunks/index.js +0 -5
- package/chunks/it_IT2.js +0 -5
- package/chunks/ja_JP2.js +0 -5
- package/chunks/ko_KR2.js +0 -5
- package/chunks/lt_LT2.js +0 -5
- package/chunks/lv_LV2.js +0 -5
- package/chunks/nb_NO2.js +0 -5
- package/chunks/nl_NL2.js +0 -5
- package/chunks/pl_PL2.js +0 -5
- package/chunks/pt_BR2.js +0 -5
- package/chunks/pt_PT2.js +0 -5
- package/chunks/ro_RO2.js +0 -5
- package/chunks/ru_RU2.js +0 -5
- package/chunks/sk_SK2.js +0 -5
- package/chunks/sl_SL2.js +0 -5
- package/chunks/sr_RS2.js +0 -5
- package/chunks/sv_SE2.js +0 -5
- package/chunks/th_TH2.js +0 -5
- package/chunks/tr_TR2.js +0 -5
- package/chunks/uk_UA2.js +0 -5
- package/chunks/vi_VN2.js +0 -5
- package/chunks/zh_Hans2.js +0 -5
- package/chunks/zh_Hant2.js +0 -5
- package/widgets/support/chartUtils.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8079],{79583:(_,E,T)=>{function R(_){switch(_){case"u8":case"i8":return 1;case"u16":case"i16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}T.d(E,{n1:()=>R})},78079:(_,E,T)=>{T.r(E),T.d(E,{loadGLTFMesh:()=>d});var R=T(22303),A=T(3172),e=T(30175),N=T(22021),t=T(21787),n=T(46521),S=T(65617),C=T(88669),I=T(62540),O=T(60746),r=T(85965),o=T(80218),L=T(71630),M=T(56481),u=T(20773),D=T(11077),P=T(79583);Object.freeze(Object.defineProperty({__proto__:null,copy:function(_,E,T){const R=_.typedBuffer,A=_.typedBufferStride,e=E.typedBuffer,N=E.typedBufferStride,t=T?T.count:E.count;let n=(T&&T.dstIndex?T.dstIndex:0)*A,S=(T&&T.srcIndex?T.srcIndex:0)*N;for(let _=0;_<t;++_){for(let _=0;_<9;++_)R[n+_]=e[S+_];n+=A,S+=N}}},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,copy:function(_,E,T){const R=_.typedBuffer,A=_.typedBufferStride,e=E.typedBuffer,N=E.typedBufferStride,t=T?T.count:E.count;let n=(T&&T.dstIndex?T.dstIndex:0)*A,S=(T&&T.srcIndex?T.srcIndex:0)*N;for(let _=0;_<t;++_){for(let _=0;_<16;++_)R[n+_]=e[S+_];n+=A,S+=N}}},Symbol.toStringTag,{value:"Module"})),T(93860);var G=T(10816),c=T(56067),s=T(75488);function U(_,E){return new _(new ArrayBuffer(E*_.ElementCount*(0,P.n1)(_.ElementType)))}var B=T(66459),l=T(40270),a=T(91695),i=T(91911),f=T(15317),F=T(57758),H=T(35371);async function d(_,E,T){const e={...T,useTransform:T?.useTransform??!0},t=new l.C(function(_){const E=_?.resolveFile,T=_?.requestFile;return E||T?{busy:!1,request:async(_,R,e)=>{const N=E?.(_)??_;if(T){const _=await T(N,R,e?.signal);if(void 0!==_)return _}const t="image"===R?"image":"binary"===R?"array-buffer":"json";return(await(0,A.Z)(N,{responseType:t,signal:null!=e?e.signal:null})).data}}:null}(e)),n=(await(0,a.Q)(t,E,e,!0)).model,I=n.lods.shift(),M=new Map,u=new Map;n.textures.forEach(((_,E)=>M.set(E,function(_){return new r.Z({data:((0,f.$A)(_.data),_.data),wrap:X(_.parameters.wrap)})}(_)))),n.materials.forEach(((_,E)=>u.set(E,function(_,E){const T=new R.Z(function(_,E){return(0,C.f)(b(_[0]),b(_[1]),b(_[2]),E)}(_.color,_.opacity)),A=_.emissiveFactor?new R.Z(function(_){return(0,S.f)(b(_[0]),b(_[1]),b(_[2]))}(_.emissiveFactor)):null,e=_=>_?new o.Z({scale:_.scale?[_.scale[0],_.scale[1]]:[1,1],rotation:(0,N.BV)(_.rotation??0),offset:_.offset?[_.offset[0],_.offset[1]]:[0,0]}):null;return new O.Z({color:T,colorTexture:E.get(_.textureColor),normalTexture:E.get(_.textureNormal),emissiveColor:A,emissiveTexture:E.get(_.textureEmissive),occlusionTexture:E.get(_.textureOcclusion),alphaMode:Y(_.alphaMode),alphaCutoff:_.alphaCutoff,doubleSided:_.doubleSided,metallic:_.metallicFactor,roughness:_.roughnessFactor,metallicRoughnessTexture:E.get(_.textureMetallicRoughness),colorTextureTransform:e(_.colorTextureTransform),normalTextureTransform:e(_.normalTextureTransform),occlusionTextureTransform:e(_.occlusionTextureTransform),emissiveTextureTransform:e(_.emissiveTextureTransform),metallicRoughnessTextureTransform:e(_.metallicRoughnessTextureTransform)})}(_,M))));const D=x(I);for(const _ of D.parts)V(D,_,u);const{position:P,normal:G,tangent:c,color:s,texCoord0:U}=D.vertexAttributes,i={position:P.typedBuffer,normal:null!=G?G.typedBuffer:null,tangent:null!=c?c.typedBuffer:null,uv:null!=U?U.typedBuffer:null,color:null!=s?s.typedBuffer:null},F=(0,B.w1)(i,_,e);return{transform:F.transform,vertexSpace:F.vertexSpace,components:D.components,spatialReference:_.spatialReference,vertexAttributes:new L.Q({position:F.vertexAttributes.position,normal:F.vertexAttributes.normal,tangent:F.vertexAttributes.tangent,color:i.color,uv:i.uv})}}function m(_,E){if(null==_)return"-";const T=_.typedBuffer;return`${(0,e.s1)(E,T.buffer,(()=>E.size))}/${T.byteOffset}/${T.byteLength}`}function p(_){return null!=_?_.toString():"-"}function x(_){let E=0;const T={color:!1,tangent:!1,normal:!1,texCoord0:!1},R=new Map,A=new Map,N=[];for(const t of _.parts){const{attributes:{position:_,normal:n,color:S,tangent:C,texCoord0:I}}=t,O=`\n ${m(_,R)}/\n ${m(n,R)}/\n ${m(S,R)}/\n ${m(C,R)}/\n ${m(I,R)}/\n ${p(t.transform)}\n `;let r=!1;const o=(0,e.s1)(A,O,(()=>(r=!0,{start:E,length:_.count})));r&&(E+=_.count),n&&(T.normal=!0),S&&(T.color=!0),C&&(T.tangent=!0),I&&(T.texCoord0=!0),N.push({gltf:t,writeVertices:r,region:o})}return{vertexAttributes:{position:U(M.fP,E),normal:T.normal?U(M.ct,E):null,tangent:T.tangent?U(M.ek,E):null,color:T.color?U(M.mc,E):null,texCoord0:T.texCoord0?U(M.Eu,E):null},parts:N,components:[]}}function V(_,E,T){E.writeVertices&&function(_,E){const{position:T,normal:R,tangent:A,color:e,texCoord0:S}=_.vertexAttributes,C=E.region.start,{attributes:I,transform:O}=E.gltf,r=I.position.count;if((0,u.c)(T.slice(C,r),I.position,O),null!=I.normal&&null!=R){const _=(0,t.n)((0,n.a)(),O),E=R.slice(C,r);(0,u.b)(E,I.normal,_),(0,N.oc)(_)&&(0,u.d)(E,E)}else null!=R&&(0,c.f)(R,0,0,1,{dstIndex:C,count:r});if(null!=I.tangent&&null!=A){const _=(0,t.n)((0,n.a)(),O),E=A.slice(C,r);(0,D.a)(E,I.tangent,_),(0,N.oc)(_)&&(0,D.n)(E,E)}else null!=A&&(0,s.f)(A,0,0,1,1,{dstIndex:C,count:r});if(null!=I.texCoord0&&null!=S?(0,G.a)(S.slice(C,r),I.texCoord0):null!=S&&(0,G.f)(S,0,0,{dstIndex:C,count:r}),null!=I.color&&null!=e){const _=I.color,E=e.slice(C,r);if(4===_.elementCount)_ instanceof M.ek?(0,D.b)(E,_,255):_ instanceof M.mc?(0,s.a)(E,_):_ instanceof M.v6&&(0,D.b)(E,_,1/256);else{(0,s.f)(E,255,255,255,255);const T=M.ne.fromTypedArray(E.typedBuffer,E.typedBufferStride);_ instanceof M.ct?(0,u.e)(T,_,255):_ instanceof M.ne?(0,c.a)(T,_):_ instanceof M.mw&&(0,u.e)(T,_,1/256)}}else null!=e&&(0,s.f)(e.slice(C,r),255,255,255,255)}(_,E);const{indices:R,attributes:A,primitiveType:e,material:S}=E.gltf;let C=(0,i.p)(R||A.position.count,e);const O=E.region.start;if(O){const _=new Uint32Array(C);for(let E=0;E<C.length;E++)_[E]+=O;C=_}_.components.push(new I.Z({name:E.gltf.name,faces:C,material:T.get(S),shading:A.normal?"source":"flat",trustSourceNormals:!0}))}function Y(_){switch(_){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function X(_){return{horizontal:g(_.s),vertical:g(_.t)}}function g(_){switch(_){case H.e8.CLAMP_TO_EDGE:return"clamp";case H.e8.MIRRORED_REPEAT:return"mirror";case H.e8.REPEAT:return"repeat"}}function b(_){return _**(1/F.j)*255}},35371:(_,E,T)=>{var R,A,e,N,t,n,S,C,I,O,r,o,L,M,u,D,P,G,c,s,U,B,l;T.d(E,{Br:()=>D,LR:()=>n,Lu:()=>a,MX:()=>A,No:()=>L,Tg:()=>P,VI:()=>M,VY:()=>B,Wf:()=>S,_g:()=>U,cw:()=>r,db:()=>N,e8:()=>o,g:()=>C,l1:()=>G,lP:()=>u,lk:()=>R,q_:()=>i,qi:()=>s,w0:()=>t,wb:()=>I,xS:()=>O,zi:()=>e}),function(_){_[_.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",_[_.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",_[_.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(R||(R={})),function(_){_[_.POINTS=0]="POINTS",_[_.LINES=1]="LINES",_[_.LINE_LOOP=2]="LINE_LOOP",_[_.LINE_STRIP=3]="LINE_STRIP",_[_.TRIANGLES=4]="TRIANGLES",_[_.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",_[_.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(A||(A={})),function(_){_[_.ZERO=0]="ZERO",_[_.ONE=1]="ONE",_[_.SRC_COLOR=768]="SRC_COLOR",_[_.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",_[_.SRC_ALPHA=770]="SRC_ALPHA",_[_.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",_[_.DST_ALPHA=772]="DST_ALPHA",_[_.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",_[_.DST_COLOR=774]="DST_COLOR",_[_.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",_[_.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",_[_.CONSTANT_COLOR=32769]="CONSTANT_COLOR",_[_.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",_[_.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",_[_.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(e||(e={})),function(_){_[_.ADD=32774]="ADD",_[_.MIN=32775]="MIN",_[_.MAX=32776]="MAX",_[_.SUBTRACT=32778]="SUBTRACT",_[_.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(N||(N={})),function(_){_[_.ARRAY_BUFFER=34962]="ARRAY_BUFFER",_[_.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",_[_.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",_[_.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",_[_.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",_[_.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",_[_.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(t||(t={})),function(_){_[_.FRONT=1028]="FRONT",_[_.BACK=1029]="BACK",_[_.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(n||(n={})),function(_){_[_.CW=2304]="CW",_[_.CCW=2305]="CCW"}(S||(S={})),function(_){_[_.BYTE=5120]="BYTE",_[_.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",_[_.SHORT=5122]="SHORT",_[_.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",_[_.INT=5124]="INT",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.FLOAT=5126]="FLOAT"}(C||(C={})),function(_){_[_.NEVER=512]="NEVER",_[_.LESS=513]="LESS",_[_.EQUAL=514]="EQUAL",_[_.LEQUAL=515]="LEQUAL",_[_.GREATER=516]="GREATER",_[_.NOTEQUAL=517]="NOTEQUAL",_[_.GEQUAL=518]="GEQUAL",_[_.ALWAYS=519]="ALWAYS"}(I||(I={})),function(_){_[_.ZERO=0]="ZERO",_[_.KEEP=7680]="KEEP",_[_.REPLACE=7681]="REPLACE",_[_.INCR=7682]="INCR",_[_.DECR=7683]="DECR",_[_.INVERT=5386]="INVERT",_[_.INCR_WRAP=34055]="INCR_WRAP",_[_.DECR_WRAP=34056]="DECR_WRAP"}(O||(O={})),function(_){_[_.NEAREST=9728]="NEAREST",_[_.LINEAR=9729]="LINEAR",_[_.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",_[_.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",_[_.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",_[_.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(r||(r={})),function(_){_[_.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",_[_.REPEAT=10497]="REPEAT",_[_.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(o||(o={})),function(_){_[_.TEXTURE_2D=3553]="TEXTURE_2D",_[_.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",_[_.TEXTURE_3D=32879]="TEXTURE_3D",_[_.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",_[_.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",_[_.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",_[_.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",_[_.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(L||(L={})),function(_){_[_.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL",_[_.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",_[_.ALPHA=6406]="ALPHA",_[_.RGB=6407]="RGB",_[_.RGBA=6408]="RGBA",_[_.LUMINANCE=6409]="LUMINANCE",_[_.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",_[_.RED=6403]="RED",_[_.RG=33319]="RG",_[_.RED_INTEGER=36244]="RED_INTEGER",_[_.RG_INTEGER=33320]="RG_INTEGER",_[_.RGB_INTEGER=36248]="RGB_INTEGER",_[_.RGBA_INTEGER=36249]="RGBA_INTEGER"}(M||(M={})),function(_){_[_.RGBA4=32854]="RGBA4",_[_.R16F=33325]="R16F",_[_.RG16F=33327]="RG16F",_[_.RGB32F=34837]="RGB32F",_[_.RGBA16F=34842]="RGBA16F",_[_.R32F=33326]="R32F",_[_.RG32F=33328]="RG32F",_[_.RGBA32F=34836]="RGBA32F",_[_.R11F_G11F_B10F=35898]="R11F_G11F_B10F",_[_.RGB8=32849]="RGB8",_[_.RGBA8=32856]="RGBA8",_[_.RGB5_A1=32855]="RGB5_A1",_[_.R8=33321]="R8",_[_.RG8=33323]="RG8",_[_.R8I=33329]="R8I",_[_.R8UI=33330]="R8UI",_[_.R16I=33331]="R16I",_[_.R16UI=33332]="R16UI",_[_.R32I=33333]="R32I",_[_.R32UI=33334]="R32UI",_[_.RG8I=33335]="RG8I",_[_.RG8UI=33336]="RG8UI",_[_.RG16I=33337]="RG16I",_[_.RG16UI=33338]="RG16UI",_[_.RG32I=33339]="RG32I",_[_.RG32UI=33340]="RG32UI",_[_.RGB16F=34843]="RGB16F",_[_.RGB9_E5=35901]="RGB9_E5",_[_.SRGB8=35905]="SRGB8",_[_.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",_[_.RGB565=36194]="RGB565",_[_.RGBA32UI=36208]="RGBA32UI",_[_.RGB32UI=36209]="RGB32UI",_[_.RGBA16UI=36214]="RGBA16UI",_[_.RGB16UI=36215]="RGB16UI",_[_.RGBA8UI=36220]="RGBA8UI",_[_.RGB8UI=36221]="RGB8UI",_[_.RGBA32I=36226]="RGBA32I",_[_.RGB32I=36227]="RGB32I",_[_.RGBA16I=36232]="RGBA16I",_[_.RGB16I=36233]="RGB16I",_[_.RGBA8I=36238]="RGBA8I",_[_.RGB8I=36239]="RGB8I",_[_.R8_SNORM=36756]="R8_SNORM",_[_.RG8_SNORM=36757]="RG8_SNORM",_[_.RGB8_SNORM=36758]="RGB8_SNORM",_[_.RGBA8_SNORM=36759]="RGBA8_SNORM",_[_.RGB10_A2=32857]="RGB10_A2",_[_.RGB10_A2UI=36975]="RGB10_A2UI"}(u||(u={})),function(_){_[_.FLOAT=5126]="FLOAT",_[_.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",_[_.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",_[_.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",_[_.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",_[_.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",_[_.BYTE=5120]="BYTE",_[_.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",_[_.SHORT=5122]="SHORT",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.INT=5124]="INT",_[_.HALF_FLOAT=5131]="HALF_FLOAT",_[_.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",_[_.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",_[_.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",_[_.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(D||(D={})),function(_){_[_.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",_[_.STENCIL_INDEX8=36168]="STENCIL_INDEX8",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL",_[_.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",_[_.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",_[_.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",_[_.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(P||(P={})),function(_){_[_.STATIC_DRAW=35044]="STATIC_DRAW",_[_.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",_[_.STREAM_DRAW=35040]="STREAM_DRAW",_[_.STATIC_READ=35045]="STATIC_READ",_[_.DYNAMIC_READ=35049]="DYNAMIC_READ",_[_.STREAM_READ=35041]="STREAM_READ",_[_.STATIC_COPY=35046]="STATIC_COPY",_[_.DYNAMIC_COPY=35050]="DYNAMIC_COPY",_[_.STREAM_COPY=35042]="STREAM_COPY"}(G||(G={})),function(_){_[_.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",_[_.VERTEX_SHADER=35633]="VERTEX_SHADER"}(c||(c={})),function(_){_[_.FRAMEBUFFER=36160]="FRAMEBUFFER",_[_.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",_[_.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(s||(s={})),function(_){_[_.Texture=0]="Texture",_[_.BufferObject=1]="BufferObject",_[_.VertexArrayObject=2]="VertexArrayObject",_[_.Shader=3]="Shader",_[_.Program=4]="Program",_[_.FramebufferObject=5]="FramebufferObject",_[_.Renderbuffer=6]="Renderbuffer",_[_.Sync=7]="Sync",_[_.COUNT=8]="COUNT"}(U||(U={})),function(_){_[_.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",_[_.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",_[_.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",_[_.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",_[_.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",_[_.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",_[_.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",_[_.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",_[_.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",_[_.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",_[_.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",_[_.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",_[_.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",_[_.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",_[_.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",_[_.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(B||(B={})),function(_){_[_.NONE=0]="NONE",_[_.BACK=1029]="BACK"}(l||(l={}));const a=33306;var i,f,F,H,d,m,p;!function(_){_[_.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",_[_.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",_[_.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",_[_.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",_[_.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",_[_.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",_[_.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",_[_.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",_[_.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",_[_.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",_[_.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(i||(i={})),function(_){_[_.FLOAT=5126]="FLOAT",_[_.FLOAT_VEC2=35664]="FLOAT_VEC2",_[_.FLOAT_VEC3=35665]="FLOAT_VEC3",_[_.FLOAT_VEC4=35666]="FLOAT_VEC4",_[_.INT=5124]="INT",_[_.INT_VEC2=35667]="INT_VEC2",_[_.INT_VEC3=35668]="INT_VEC3",_[_.INT_VEC4=35669]="INT_VEC4",_[_.BOOL=35670]="BOOL",_[_.BOOL_VEC2=35671]="BOOL_VEC2",_[_.BOOL_VEC3=35672]="BOOL_VEC3",_[_.BOOL_VEC4=35673]="BOOL_VEC4",_[_.FLOAT_MAT2=35674]="FLOAT_MAT2",_[_.FLOAT_MAT3=35675]="FLOAT_MAT3",_[_.FLOAT_MAT4=35676]="FLOAT_MAT4",_[_.SAMPLER_2D=35678]="SAMPLER_2D",_[_.SAMPLER_CUBE=35680]="SAMPLER_CUBE",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",_[_.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",_[_.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",_[_.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",_[_.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",_[_.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",_[_.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",_[_.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",_[_.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",_[_.SAMPLER_3D=35679]="SAMPLER_3D",_[_.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",_[_.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",_[_.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",_[_.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",_[_.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",_[_.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",_[_.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",_[_.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",_[_.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",_[_.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",_[_.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",_[_.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(f||(f={})),function(_){_[_.OBJECT_TYPE=37138]="OBJECT_TYPE",_[_.SYNC_CONDITION=37139]="SYNC_CONDITION",_[_.SYNC_STATUS=37140]="SYNC_STATUS",_[_.SYNC_FLAGS=37141]="SYNC_FLAGS"}(F||(F={})),function(_){_[_.UNSIGNALED=37144]="UNSIGNALED",_[_.SIGNALED=37145]="SIGNALED"}(H||(H={})),function(_){_[_.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",_[_.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",_[_.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",_[_.WAIT_FAILED=37149]="WAIT_FAILED"}(d||(d={})),function(_){_[_.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(m||(m={})),function(_){_[_.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(p||(p={}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[450,661,5234,9880],{41993:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=41993,e.exports=t},99880:(e,t,s)=>{"use strict";s.d(t,{V:()=>l});var r=s(68773),i=(s(3172),s(20102)),n=s(92604),o=s(17452);const a=n.Z.getLogger("esri.assets");function l(e){if(!r.default.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new i.Z("assets:path-not-set","config.assetsPath is not set");return(0,o.v_)(r.default.assetsPath,e)}},46791:(e,t,s)=>{"use strict";s.d(t,{Z:()=>O});var r,i=s(43697),n=s(3894),o=s(32448),a=s(50758),l=s(22974),h=s(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(r||(r={}));var c,d=s(1654),u=s(75215),p=s(58971),f=s(5600),_=s(52421),m=s(52011),g=s(10661);class v{constructor(e,t,s,r,i){this.target=e,this.added=t,this.removed=s,this.start=r,this.deleteCount=i}}const y=new h.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1}));function w(e){return e?e instanceof x?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function b(e){if(e&&e.length)return e[0]}function S(e,t,s,r){const i=Math.min(e.length-s,t.length-r);let n=0;for(;n<i&&e[s+n]===t[r+n];)n++;return n}function I(e,t,s,r){t&&t.forEach(((t,i,n)=>{e.push(t),I(e,s.call(r,t,i,n),s,r)}))}const A=new Set,k=new Set,C=new Set,T=new Map;let U=0,x=c=class extends o.Z.EventedAccessor{static isCollection(e){return null!=e&&e instanceof c}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new g.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:U++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof c?{items:e}:e:{}}destroy(){this._removeAllRaw()}*[Symbol.iterator](){yield*this.items}get items(){return(0,p.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(r.ADD)||(this._splice(0,this.length,w(e)),this._emitAfterChanges(r.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,s={removed:!1,callback:t};return e.push(s),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,a.kB)((()=>{s.removed=!0,e.splice(e.indexOf(s),1)}))}return this._emitter.on(e,t)}once(e,t){const s="deref"in t?()=>t.deref():()=>t,r=this.on(e,(e=>{s()?.call(null,e),r.remove()}));return r}add(e,t){if((0,p.it)(this._observable),this._emitBeforeChanges(r.ADD))return this;const s=this.getNextIndex(t??null);return this._splice(s,0,[e]),this._emitAfterChanges(r.ADD),this}addMany(e,t=this._items.length){if((0,p.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(r.ADD))return this;const s=this.getNextIndex(t);return this._splice(s,0,w(e)),this._emitAfterChanges(r.ADD),this}at(e){if((0,p.it)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return[];const e=this._removeAllRaw();return this._emitAfterChanges(r.REMOVE),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.it)(this._observable),this._createNewInstance({items:this._items.map(l.d9)})}concat(...e){(0,p.it)(this._observable);const t=e.map(w);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const s=this._splice(0,this.length),i=s.length;for(let r=0;r<i;r++)e.call(t,s[r],r,s);this._emitAfterChanges(r.REMOVE)}every(e,t){return(0,p.it)(this._observable),this._items.every(e,t)}filter(e,t){let s;return(0,p.it)(this._observable),s=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:s})}find(e,t){return(0,p.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,p.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,p.it)(this._observable);const s=[];return I(s,this,e,t),new c(s)}forEach(e,t){return(0,p.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,p.it)(this._observable),this._items[e]}getNextIndex(e){(0,p.it)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,p.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,p.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,p.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,p.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,p.it)(this._observable);const s=this._items.map(e,t);return new c({items:s})}reorder(e,t=this.length-1){(0,p.it)(this._observable);const s=this.indexOf(e);if(-1!==s){if(t<0?t=0:t>=this.length&&(t=this.length-1),s!==t){if(this._emitBeforeChanges(r.MOVE))return e;this._splice(s,1),this._splice(t,0,[e]),this._emitAfterChanges(r.MOVE)}return e}}pop(){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=b(this._splice(this.length-1,1));return this._emitAfterChanges(r.REMOVE),e}push(...e){return(0,p.it)(this._observable),this._emitBeforeChanges(r.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(r.ADD)),this.length}reduce(e,t){(0,p.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(e,t):s.reduce(e)}reduceRight(e,t){(0,p.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(e,t):s.reduceRight(e)}remove(e){return(0,p.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,p.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(r.REMOVE))return;const t=b(this._splice(e,1));return this._emitAfterChanges(r.REMOVE),t}removeMany(e){if((0,p.it)(this._observable),!e||!e.length||this._emitBeforeChanges(r.REMOVE))return[];const t=e instanceof c?e.toArray():e,s=this._items,i=[],n=t.length;for(let e=0;e<n;e++){const r=t[e],n=s.indexOf(r);if(n>-1){const r=1+S(t,s,e+1,n+1),o=this._splice(n,r);o&&o.length>0&&i.push.apply(i,o),e+=r-1}}return this._emitAfterChanges(r.REMOVE),i}reverse(){if((0,p.it)(this._observable),this._emitBeforeChanges(r.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(r.MOVE),this}shift(){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=b(this._splice(0,1));return this._emitAfterChanges(r.REMOVE),e}slice(e=0,t=this.length){return(0,p.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,p.it)(this._observable),this._items.some(e,t)}sort(e){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.MOVE))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(r.MOVE),this}splice(e,t,...s){(0,p.it)(this._observable);const i=(t?r.REMOVE:0)|(s.length?r.ADD:0);if(this._emitBeforeChanges(i))return[];const n=this._splice(e,t,s)||[];return this._emitAfterChanges(i),n}toArray(){return(0,p.it)(this._observable),this._items.slice()}toJSON(){return(0,p.it)(this._observable),this.toArray()}toLocaleString(){return(0,p.it)(this._observable),this._items.toLocaleString()}toString(){return(0,p.it)(this._observable),this._items.toString()}unshift(...e){return(0,p.it)(this._observable),!e.length||this._emitBeforeChanges(r.ADD)||(this._splice(0,0,e),this._emitAfterChanges(r.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,s){const r=this._items,i=this.itemType;let n,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,d.Os)((()=>this._dispatchChange()))),e<0&&(e+=this.length),t){if(o=r.splice(e,t),this.hasEventListener("before-remove")){const t=y.acquire();t.target=this,t.cancellable=!0;for(let s=0,i=o.length;s<i;s++)n=o[s],t.reset(n),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(s,1),r.splice(e,0,n),e+=1,s-=1,i-=1);y.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=y.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let s=0;s<t;s++)e.reset(o[s]),this.emit("after-remove",e);y.release(e)}}if(s&&s.length){if(i){const e=[];for(const t of s){const s=i.ensureType(t);null==s&&null!=t||e.push(s)}s=e}const t=this.hasEventListener("before-add"),n=this.hasEventListener("after-add"),o=e===this.length;if(t||n){const i=y.acquire();i.target=this,i.cancellable=!0;const a=y.acquire();a.target=this,a.cancellable=!1;for(const l of s)t?(i.reset(l),this.emit("before-add",i),i.defaultPrevented||(o?r.push(l):r.splice(e++,0,l),this._set("length",r.length),n&&(a.reset(l),this.emit("after-add",a)))):(o?r.push(l):r.splice(e++,0,l),this._set("length",r.length),a.reset(l),this.emit("after-add",a));y.release(a),y.release(i)}else{if(o)for(const e of s)r.push(e);else r.splice(e,0,...s);this._set("length",r.length)}}if((s&&s.length||o&&o.length)&&this._notifyChangeEvent(s,o),this.hasEventListener("after-splice")){const r=new v(this,s,o,e,t);this.emit("after-splice",r)}return o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const s=y.acquire();s.target=this,s.cancellable=!0,s.type=e,this.emit("before-changes",s),t=s.defaultPrevented,y.release(s)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=y.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),y.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;A.clear(),k.clear(),C.clear();for(const{added:t,removed:s}of e){if(t)if(0===C.size&&0===k.size)for(const e of t)A.add(e);else for(const e of t)k.has(e)?(C.add(e),k.delete(e)):C.has(e)||A.add(e);if(s)if(0===C.size&&0===A.size)for(const e of s)k.add(e);else for(const e of s)A.has(e)?A.delete(e):(C.delete(e),k.add(e))}const s=n.Z.acquire();A.forEach((e=>{s.push(e)}));const r=n.Z.acquire();k.forEach((e=>{r.push(e)}));const i=this._items,o=t.items,a=n.Z.acquire();if(C.forEach((e=>{o.indexOf(e)!==i.indexOf(e)&&a.push(e)})),t.listeners&&(s.length||r.length||a.length)){const e={target:this,added:s,removed:r,moved:a},i=t.listeners.length;for(let s=0;s<i;s++){const r=t.listeners[s];r.removed||r.callback.call(this,e)}}n.Z.release(s),n.Z.release(r),n.Z.release(a)}A.clear(),k.clear(),C.clear()}};x.ofType=e=>{if(!e)return c;if(T.has(e))return T.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const s in e.typeMap){const r=e.typeMap[s].prototype.declaredClass;t?t+=` | ${r}`:t=r}let s=class extends c{};return(0,i._)([(0,_.c)({Type:e,ensureType:"function"==typeof e?(0,u.se)(e):(0,u.N7)(e)})],s.prototype,"itemType",void 0),s=(0,i._)([(0,m.j)(`esri.core.Collection<${t}>`)],s),T.set(e,s),s},(0,i._)([(0,f.Cb)()],x.prototype,"length",void 0),(0,i._)([(0,f.Cb)()],x.prototype,"items",null),x=c=(0,i._)([(0,m.j)("esri.core.Collection")],x);const O=x},32448:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var r=s(43697),i=s(92036),n=s(50758),o=s(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this._target=e,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(e,t){let s=this._listenersMap?.get(e);if(!s)return!1;const r=this._target||this;let i=!1;for(const e of s.slice()){const s="deref"in e?e.deref():e;s?s?.call(r,t):i=!0}return i&&(s=s.filter((e=>!("deref"in e)||null!=e.deref())),this._listenersMap.set(e,s)),s.length>0}on(e,t){if(Array.isArray(e)){const s=e.map((e=>this.on(e,t)));return(0,n.AL)(s)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const s=this._listenersMap.get(e)||[];return s.push(t),this._listenersMap.set(e,s),(0,n.kB)((()=>{const s=this._listenersMap?.get(e),r=s?.indexOf(t)??-1;r>=0&&s.splice(r,1)}))}once(e,t){const s=this.on(e,(e=>{s.remove();const r="deref"in t?t.deref():t;r?.call(null,e)}));return s}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let s=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return s=(0,r._)([(0,o.j)("esri.core.Evented")],s),s};let s=class extends i.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};s=(0,r._)([(0,o.j)("esri.core.Evented")],s),e.EventedAccessor=s}(a||(a={}));const l=a},609:(e,t,s)=>{"use strict";s.d(t,{D:()=>d,v:()=>c});var r,i,n=s(43697),o=s(92036),a=s(95330),l=s(52011);(i=r||(r={}))[i.PENDING=0]="PENDING",i[i.RESOLVED=1]="RESOLVED",i[i.REJECTED=2]="REJECTED";class h{constructor(){this._resolver=(0,a.hh)(),this._status=r.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=r.RESOLVED,this._cleanUp()}),(()=>{this._status=r.REJECTED,this._cleanUp()})),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return this._status===r.RESOLVED}isRejected(){return this._status===r.REJECTED}isFulfilled(){return this._status!==r.PENDING}abort(){this._resolver.reject((0,a.zE)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const e=(0,a.hh)(),t=[...this._resolvingPromises,e.promise],s=this._allPromise=Promise.all(t);s.then((()=>{this.isFulfilled()||this._allPromise!==s||this._resolver.resolve()}),(e=>{this.isFulfilled()||this._allPromise!==s||(0,a.D_)(e)||this._resolver.reject(e)})),e.resolve()}}const c=e=>{let t=class extends e{constructor(...e){super(...e),this._promiseProps=new h,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then((()=>this)).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}};return t=(0,n._)([(0,l.j)("esri.core.Promise")],t),t};let d=class extends(c(o.Z)){};d=(0,n._)([(0,l.j)("esri.core.Promise")],d)},90578:(e,t,s)=>{"use strict";s.d(t,{p:()=>l});var r=s(75215),i=s(7628);const n=Object.prototype.toString;function o(e){const t="__accessorMetadata__"in e?(0,r.se)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,s,r){(0,i.Oe)(e,t).cast=r}function l(...e){if(3!==e.length||"string"!=typeof e[1])return 1===e.length&&"[object Function]"===n.call(e[0])?o(e[0]):1===e.length&&"string"==typeof e[0]?function(e){return(t,s)=>{(0,i.Oe)(t,e).cast=t[s]}}(e[0]):void 0}},52421:(e,t,s)=>{"use strict";function r(e){return(t,s)=>{t[s]=e}}s.d(t,{c:()=>r})},10661:(e,t,s)=>{"use strict";s.d(t,{s:()=>i});var r=s(42100);class i extends r.s{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},66643:(e,t,s)=>{"use strict";s.d(t,{Ed:()=>h,UI:()=>c,mt:()=>f,q6:()=>p,vr:()=>_});var r=s(43697),i=s(92036),n=s(70586),o=s(95330),a=s(5600),l=s(52011);function h(e,t,s){return(0,o.as)(e.map(((e,r)=>t.apply(s,[e,r]))))}async function c(e,t,s){return(await(0,o.as)(e.map(((e,r)=>t.apply(s,[e,r]))))).map((e=>e.value))}function d(e){return{ok:!0,value:e}}function u(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return d(await e)}catch(e){return u(e)}}async function f(e){try{return d(await e)}catch(e){return(0,o.r9)(e),u(e)}}function _(e,t){return new m(e,t)}let m=class extends i.Z{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.IM)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:s}=this._abortController;this.promise=e(s),this.promise.then((e=>{this._result=d(e),this._cleanup()}),(e=>{this._result=u(e),this._cleanup()})),this._abortHandle=(0,o.fu)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.hw)(this._abortHandle),this._abortController=null}};(0,r._)([(0,a.Cb)()],m.prototype,"value",null),(0,r._)([(0,a.Cb)()],m.prototype,"error",null),(0,r._)([(0,a.Cb)()],m.prototype,"finished",null),(0,r._)([(0,a.Cb)()],m.prototype,"promise",void 0),(0,r._)([(0,a.Cb)()],m.prototype,"_result",void 0),m=(0,r._)([(0,l.j)("esri.core.asyncUtils.ReactiveTask")],m)},35454:(e,t,s)=>{"use strict";s.d(t,{X:()=>i,w:()=>n});var r=s(78286);class i{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=this._invertMap(e),this.apiValues=this._getKeysSorted(this._apiToJSON),this.jsonValues=this._getKeysSorted(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,s)=>{const i=this.toJSON(e);void 0!==i&&(0,r.RB)(s,i,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}_invertMap(e){const t={};for(const s in e)t[e[s]]=s;return t}_getKeysSorted(e){const t=[];for(const s in e)t.push(s);return t.sort(),t}}function n(){return function(e,t){return new i(e,{ignoreUnknown:!0,...t})}}},17445:(e,t,s)=>{"use strict";s.d(t,{N1:()=>u,YP:()=>l,Z_:()=>_,gx:()=>h,nn:()=>m,on:()=>d,tX:()=>g}),s(66643),s(46791);var r=s(91460),i=s(50758),n=s(70586),o=s(95330),a=s(26258);function l(e,t,s={}){return c(e,t,s,p)}function h(e,t,s={}){return c(e,t,s,f)}function c(e,t,s={},r){let i=null;const o=s.once?(e,s)=>{r(e)&&((0,n.hw)(i),t(e,s))}:(e,s)=>{r(e)&&t(e,s)};if(i=(0,a.aQ)(e,o,s.sync,s.equals),s.initial){const t=e();o(t,t)}return i}function d(e,t,s,o={}){let a=null,h=null,c=null;function d(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function u(e){o.once&&o.once&&(0,n.hw)(c),s(e)}const p=l(e,((e,s)=>{d(),(0,r.vT)(e)&&(a=e,h=(0,r.on)(e,t,u),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return c=(0,i.kB)((()=>{p.remove(),d()})),c}function u(e,t){return function(e,t,s){if((0,o.Hc)(s))return Promise.reject((0,o.zE)());const r=e();if(t?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,n.hw)(a)}return new Promise(((r,n)=>{a=(0,i.AL)([(0,o.fu)(s,(()=>{l(),n((0,o.zE)())})),c(e,(e=>{l(),r(e)}),{sync:!1,once:!0},t??p)])}))}(e,f,t)}function p(e){return!0}function f(e){return!!e}s(87538);const _={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},41123:(e,t,s)=>{"use strict";s.d(t,{D:()=>i,z:()=>n});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${i()}}`}},73660:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>mt});var r=s(40330),i=s(43697),n=s(68773),o=s(3172),a=s(20102),l=s(32448),h=s(91460),c=s(22974),d=s(78286),u=s(95330),p=s(17445),f=s(17452),_=s(5600),m=(s(75215),s(52011)),g=(s(67676),s(80442),s(940)),v=(s(2587),s(60235));Element.prototype.closest;var y=s(92604),w=s(70586),b=s(609),S=s(41123),I=s(90578),A=s(58971),k=s(38805),C=s(8728),T=s(3894),U=s(50758);const x=new Map;function O(){x.clear()}function P(e){x.delete(e)}y.Z.getLogger("esri.widgets.support.widgetUtils");function E(e){const t=T.Z.acquire();for(let e=0;e<arguments.length;e++){const s=arguments[e],r=typeof s;if("string"===r)t.push(s);else if(Array.isArray(s))t.push.apply(t,s);else if("object"===r)for(const e in s)s[e]&&t.push(e)}const s=t.join(" ");return T.Z.release(t),s}function R(e){this[e.getAttribute("data-node-ref")]=e}(()=>{const e=new Map;new ResizeObserver((t=>{O();for(const s of t)e.get(s.target)?.(s)}))})();const D=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce(((e,t)=>(e[t]=[],e)),{}),N=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],L=new C.Z({whiteList:D,onTagAttr:(e,t,s)=>{const r=`${t}="${s}"`;if(N.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),j="http://www.w3.org/",M=`${j}2000/svg`,q=`${j}1999/xlink`;let B=[],V=(e,t)=>{let s={};return Object.keys(e).forEach((t=>{s[t]=e[t]})),t&&Object.keys(t).forEach((e=>{s[e]=t[e]})),s},Z=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),$=e=>{if("string"!=typeof e)throw new Error("Style values must be strings")},F=(e,t,s)=>{if(""!==t.vnodeSelector)for(let r=s;r<e.length;r++)if(Z(e[r],t))return r;return-1},z=(e,t,s,r)=>{let i=e[t];if(""===i.vnodeSelector)return;let n=i.properties;if(!(n?void 0===n.key?n.bind:n.key:void 0))for(let n=0;n<e.length;n++)if(n!==t){let t=e[n];if(Z(t,i))throw new Error(`${s.vnodeSelector} had a ${i.vnodeSelector} child ${"added"===r?r:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}},H=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},J=[],W=!1,Y=e=>{(e.children||[]).forEach(Y),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},G=()=>{W=!1,J.forEach(Y),J.length=0},K=e=>{J.push(e),W||(W=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(G,{timeout:16}):setTimeout(G,16))},X=e=>{let t=e.domNode;if(e.properties){let s=e.properties.exitAnimation;if(s){t.style.pointerEvents="none";let r=()=>{t.parentNode&&(t.parentNode.removeChild(t),K(e))};return void s(t,r,e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),K(e))},Q=(e,t,s)=>{if(!t)return;let r=s.eventHandlerInterceptor,i=Object.keys(t),n=i.length;for(let o=0;o<n;o++){let n=i[o],a=t[n];if("className"===n)throw new Error('Property "className" is not supported, use "class".');if("class"===n)ie(e,a,!0);else if("classes"===n){let t=Object.keys(a),s=t.length;for(let r=0;r<s;r++){let s=t[r];a[s]&&e.classList.add(s)}}else if("styles"===n){let t=Object.keys(a),r=t.length;for(let i=0;i<r;i++){let r=t[i],n=a[r];n&&($(n),s.styleApplyer(e,r,n))}}else if("key"!==n&&null!=a){let i=typeof a;"function"===i?(0===n.lastIndexOf("on",0)&&(r&&(a=r(n,a,e,t)),"oninput"===n&&function(){let e=a;a=function(t){e.apply(this,[t]),t.target["oninput-value"]=t.target.value}}()),e[n]=a):s.namespace===M?"href"===n?e.setAttributeNS(q,n,a):e.setAttribute(n,a):"string"===i&&"value"!==n?"innerHTML"===n?e[n]=L.sanitize(a):ee(e)&&n in e?e[n]=a:e.setAttribute(n,a):e[n]=a}}};function ee(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;const t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}let te,se=(e,t,s)=>{((e,t,s)=>{if(t)for(let r of t)re(r,e,void 0,s)})(e,t.children,s),t.text&&(e.textContent=t.text),Q(e,t.properties,s),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,s,t.vnodeSelector,t.properties,t.children])},re=(e,t,s,r)=>{let i,n=0,o=e.vnodeSelector,a=t.ownerDocument;if(""===o)i=e.domNode=a.createTextNode(e.text),void 0!==s?t.insertBefore(i,s):t.appendChild(i);else{for(let l=0;l<=o.length;++l){let h=o.charAt(l);if(l===o.length||"."===h||"#"===h){let h=o.charAt(n-1),c=o.slice(n,l);"."===h?i.classList.add(c):"#"===h?i.id=c:("svg"===c&&(r=V(r,{namespace:M})),void 0!==r.namespace?i=e.domNode=a.createElementNS(r.namespace,c):(i=e.domNode=e.domNode||a.createElement(c),"input"===c&&e.properties&&void 0!==e.properties.type&&i.setAttribute("type",e.properties.type)),void 0!==s?t.insertBefore(i,s):i.parentNode!==t&&t.appendChild(i)),n=l+1}}se(i,e,r)}},ie=(e,t,s)=>{t&&t.split(" ").forEach((t=>{t&&e.classList.toggle(t,s)}))},ne=(e,t,s,r,i)=>{if(s===r)return!1;r=r||B;let n,o=(s=s||B).length,a=r.length,l=0,h=0,c=!1;for(;h<a;){let a=l<o?s[l]:void 0,d=r[h];if(void 0!==a&&Z(a,d))c=te(a,d,i)||c,l++;else{let a=F(s,d,l+1);if(a>=0){for(n=l;n<a;n++)X(s[n]),z(s,n,e,"removed");c=te(s[a],d,i)||c,l=a+1}else re(d,t,l<o?s[l].domNode:void 0,i),H(d),z(r,h,e,"added")}h++}if(o>l)for(n=l;n<o;n++)X(s[n]),z(s,n,e,"removed");return c};te=(e,t,s)=>{let r=e.domNode,i=!1;if(e===t)return!1;let n=!1;if(""===t.vnodeSelector){if(t.text!==e.text){let e=r.ownerDocument.createTextNode(t.text);return r.parentNode.replaceChild(e,r),t.domNode=e,i=!0,i}t.domNode=r}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(s=V(s,{namespace:M})),e.text!==t.text&&(n=!0,void 0===t.text?r.removeChild(r.firstChild):r.textContent=t.text),t.domNode=r,n=ne(t,r,e.children,t.children,s)||n,n=((e,t,s,r)=>{if(!s)return;let i=!1,n=Object.keys(s),o=n.length;for(let a=0;a<o;a++){let o=n[a],l=s[o],h=t[o];if("class"===o)h!==l&&(ie(e,h,!1),ie(e,l,!0));else if("classes"===o){let t=e.classList,s=Object.keys(l),r=s.length;for(let e=0;e<r;e++){let r=s[e],n=!!l[r];n!==!!h[r]&&(i=!0,n?t.add(r):t.remove(r))}}else if("styles"===o){let t=Object.keys(l),s=t.length;for(let n=0;n<s;n++){let s=t[n],o=l[s];o!==h[s]&&(i=!0,o?($(o),r.styleApplyer(e,s,o)):r.styleApplyer(e,s,""))}}else if(l||"string"!=typeof h||(l=""),"value"!==o||ee(e)){if(l!==h){let t=typeof l;"function"===t&&r.eventHandlerInterceptor||(r.namespace===M?"href"===o?e.setAttributeNS(q,o,l):e.setAttribute(o,l):"string"===t?"innerHTML"===o?e[o]=L.sanitize(l):"role"===o&&""===l?e.removeAttribute(o):ee(e)&&o in e?e[o]=l:e.setAttribute(o,l):e[o]!==l&&(e[o]=l),i=!0)}}else{let t=e[o];t!==l&&(e["oninput-value"]?t===e["oninput-value"]:l!==h)&&(e[o]=l,e["oninput-value"]=void 0),l!==h&&(i=!0)}}return i})(r,e.properties,t.properties,s)||n,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[r,s,t.vnodeSelector,t.properties,t.children]);return n&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(r,t.properties,e.properties),i};let oe=(e,t)=>({getLastRender:()=>e,update:s=>{if(e.vnodeSelector!==s.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let r=e;e=s,te(r,s,t)},domNode:e.domNode});const ae={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,s)=>{"-"===t.charAt(0)?e.style.setProperty(t,s):e.style[t]=s}};let le,he=e=>V(ae,e),ce=(e,t,s)=>(s=he(s),re(t,e,void 0,s),oe(t,s)),de=(e,t,s)=>(s=he(s),re(t,e.parentNode,e,s),oe(t,s)),ue=(e,t,s)=>(s=he(s),t.domNode=e,se(e,t,s),oe(t,s)),pe=(e,t,s)=>(s=he(s),re(t,e.parentNode,e,s),e.parentNode.removeChild(e),oe(t,s));le=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0];const fe={handleInterceptedEvent:(e,t,s,r)=>(e.scheduleRender(),t.properties[`on${r.type}`].apply(t.properties.bind||s,[r]))},_e={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,s)=>{"-"===t.charAt(0)?e.style.setProperty(t,s):e.style[t]=s}},me=(e,t,s=!1)=>{let r=e;return t.forEach(((e,i)=>{const n=r?.children?((e,t)=>e.find(t))(r.children,(t=>t.domNode===e)):void 0;s&&!n&&i!==t.length-1||(r=n)})),r};var ge=s(65161),ve=s(99880);let ye;ye="components/assets";const we=Symbol("widget"),be=Symbol("widget-test-data"),Se=[],Ie={},Ae=new WeakMap;function ke(e,t){let s=t.children;if(s&&s.length)for(let t=0;t<s.length;++t)s[t]=ke(e,s[t]);else s=Se;const r=t.vnodeSelector;if(xe(r)){const i=t.properties||Ie,n=i.key||r;return{vnodeSelector:"div",properties:{key:n,afterCreate:Ce,afterUpdate:Te,afterRemoved:Ue,parentWidget:e,widgetConstructor:r,widgetProperties:{...i,key:n,children:s}},children:void 0,text:void 0,domNode:null}}return t}function Ce(e,t,s,{parentWidget:r,widgetConstructor:i,widgetProperties:n}){const o=new i(n);o.container=e,Ae.set(e,o),o.afterCreate?.(o,e),r.addHandles((0,U.kB)((()=>Ue(e)))),queueMicrotask((()=>{o[be].projector.renderNow()}))}function Te(e,t,s,{widgetProperties:r}){const i=Ae.get(e);i&&(i.set(r),i.afterUpdate?.(i,e))}function Ue(e){const t=Ae.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),Ae.delete(e))}function xe(e){return"function"==typeof e&&e[we]}const Oe=new Set;var Pe,Ee=s(70171),Re=s(94443);let De=0;function Ne(e,t){for(const s in t)null!=e[s]&&("object"==typeof e[s]&&"object"==typeof t[s]?Ne(e[s],t?.[s]):e[s]=t[s]);return e}const Le=(e=>{let t;const s={...fe,...e},r=(n=s,{..._e,...n}),i=r.performanceLogger;var n;let o,a=!0,l=!1;const h=[],c=[],d=(e,n,o)=>{let a;r.eventHandlerInterceptor=(e,r,n,o)=>function(e){let r;i("domEvent",e);const n=((e,t)=>{const s=[];for(;e&&e!==t;)s.push(e),e=e.parentNode;return s})(e.currentTarget,a.domNode),o=n.some((e=>customElements.get(e?.tagName?.toLowerCase())));if(e.eventPhase!==Event.CAPTURING_PHASE&&o){const t=e.composedPath(),s=t.slice(t.indexOf(e.currentTarget),t.indexOf(a.domNode)).filter((e=>e.getRootNode()===e.ownerDocument)).reverse();r=me(a.getLastRender(),s,!0)}else n.reverse(),r=me(a.getLastRender(),n);let l;return r&&(l=s.handleInterceptedEvent(t,r,this,e)),i("domEventProcessed",e),l},s.postProcessProjectionOptions?.(r);const l=o();a=e(n,l,r),r.eventHandlerInterceptor=void 0,h.push(a),c.push(o),s.afterFirstVNodeRendered&&s.afterFirstVNodeRendered(a,l)};let u=()=>{if(o=void 0,a){a=!1,i("renderStart",void 0);for(let e=0;e<h.length;e++){const t=c[e]();i("rendered",void 0),h[e].update(t),i("patched",void 0)}i("renderDone",void 0),a=!0}};return s.modifyDoRenderImplementation&&(u=s.modifyDoRenderImplementation(u,h,c)),t={renderNow:u,scheduleRender:()=>{o||l||(o=requestAnimationFrame(u))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),l=!0},resume:()=>{l=!1,a=!0,t.scheduleRender()},append:(e,t)=>{d(ce,e,t)},insertBefore:(e,t)=>{d(de,e,t)},merge:(e,t)=>{d(ue,e,t)},replace:(e,t)=>{d(pe,e,t)},detach:e=>{for(let t=0;t<c.length;t++)if(c[t]===e)return c.splice(t,1),h.splice(t,1)[0];throw new Error("renderFunction was not found")}},t})({postProcessProjectionOptions(e){const t=e.eventHandlerInterceptor,s=/capture$/i;e.eventHandlerInterceptor=(e,r,i,n)=>{const o=t?.(e,r,i,n),a=s.test(e);if(!((e=e.replace(s,"")).toLowerCase()in i)||a){const t=e[2].toLowerCase()+e.slice(3),s=e=>o?.call(i,e);i.addEventListener(t,s,a);const r=()=>i.removeEventListener(t,s,a),l=n.afterRemoved;n.afterRemoved=e=>{l?.(e),r()}}return o}},handleInterceptedEvent(e,t,s,r){const{eventPhase:i,type:n}=r,o=i===Event.CAPTURING_PHASE;let a=`on${n}${o?"capture":""}`;const l=t.properties;(l&&a in l||(a=`on${n[0].toUpperCase()}${n.slice(1)}${o?"Capture":""}`,l&&a in l))&&(O(),e.scheduleRender(),l[a].call(l.bind||s,r))}});let je=!1,Me=class extends((0,b.v)(l.Z.EventedAccessor)){constructor(e,t){super(e,t),this._attached=!1,this._projector=Le,this._readyForTrueRender=!1,this.iconClass="esri-icon-checkbox-unchecked",this.icon=null,this.key=this,this._loadLocale=(0,u.Ds)((async()=>{if(this._messageBundleProps?.length){const e=await Promise.allSettled(this._messageBundleProps.map((async({bundlePath:e,propertyName:t})=>{if(this.destroyed)return;let s=await(0,Re.ME)(e);this.uiStrings&&Object.keys(this.uiStrings)&&(s=Ne((0,c.d9)(s),this.uiStrings)),this[t]=s})));if(this.destroyed)return;for(const t of e)"rejected"===t.status&&y.Z.getLogger(this).error("widget-intl:locale-error",this.declaredClass,t.reason)}await this.loadLocale()})),function(){try{(0,ge.K3)(".")}catch{(0,ge.YY)((0,f.hF)((0,ve.V)("components/assets")))}}();const s="esri-widget-uid-"+(0,S.D)(),r=this.render.bind(this);this._trackingTarget=new k.M((()=>this.scheduleRender()));const i=()=>{if(!this._readyForTrueRender||this.destroyed)return null;const e=r();let{properties:t}=e;t||(e.properties=t={});const{key:i}=t;if(i||(t.key=s),xe(e.vnodeSelector)){if(!this.visible)return{vnodeSelector:"div",properties:{key:`${s}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}}else this.visible?t.styles||(t.styles={}):(t.class="",t.styles={display:"none"}),t.styles.display||(t.styles.display="");let n=0;return e.children?.forEach((e=>{if(xe(e.vnodeSelector))return;let{properties:t}=e;t||(e.properties=t={}),t.key||(t.key=`${this.id}--${n++}`)})),ke(this,e)};this.render=()=>{if(je)return i();let e=function(e){return x.get(e)}(this)??null;if(e)return e;this._trackingTarget.clear(),je=!0;try{e=(0,A.LJ)(this._trackingTarget,i)}catch(e){throw console.error(e),e}finally{je=!1}return e&&function(e,t){x.set(e,t)}(this,e),e};const n=this.beforeFirstRender();var o;n?this._resourcesFetch=n.then((()=>{this._readyForTrueRender=!0,this._postInitialize()})):(this._resourcesFetch=Promise.resolve().then((()=>{this._postInitialize()})),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),o=this._resourcesFetch,Oe.add(o),o.finally((()=>Oe.delete(o)))}normalizeCtorArgs(e,t){const s={...e};return t&&(s.container=t),s}postInitialize(){}beforeFirstRender(){const e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then((()=>{})).catch(u.H9):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||((0,w.SC)(this._trackingTarget),(0,w.SC)(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,P(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return function(e){return"string"==typeof e?document.getElementById(e):e??null}(e)}get domNode(){return this.container}set domNode(e){this.container=e}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+De++}set id(e){e&&this._set("id",e)}get label(){return this.declaredClass.split(".").pop()}set label(e){this._overrideIfSome("label",e)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(e){this._set("visible",e)}get[(Pe=we,be)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(P(this),this._projector.scheduleRender())}own(e){(0,v.XV)(y.Z.getLogger(this.declaredClass),"`Widget.own()` is deprecated in favor of Widget.addHandles()'",{replacement:"Widget.addHandles()",version:"4.28"}),this.addHandles(e)}classes(...e){return E.apply(this,e)}renderNow(){P(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles((0,p.YP)((()=>this.viewModel),((e,t)=>{t&&this.removeHandles("delegated-events"),e&&(0,h.vT)(e)&&this.addHandles(this._delegatedEventNames.map((t=>(0,h.on)(e,t,(e=>{this.emit(t,e)})))),"delegated-events")}),p.tX)),this.postInitialize();const e=async()=>{await this._loadLocale().catch(u.H9),this.scheduleRender()};this.addHandles([(0,Ee.qe)(e),(0,p.YP)((()=>this.uiStrings),e),(0,p.gx)((()=>this.container),(e=>{this.destroyed||this._attach(e)}),{initial:!0,once:!0})])}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){this._attached&&(this._projector.detach(this.render),this._attached=!1),e?.parentNode?.removeChild(e)}};Me[Pe]=!0,(0,i._)([(0,_.Cb)()],Me.prototype,"_readyForTrueRender",void 0),(0,i._)([(0,_.Cb)({value:null})],Me.prototype,"container",null),(0,i._)([(0,I.p)("container")],Me.prototype,"castContainer",null),(0,i._)([(0,_.Cb)()],Me.prototype,"iconClass",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"icon",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"id",null),(0,i._)([(0,_.Cb)()],Me.prototype,"label",null),(0,i._)([(0,_.Cb)()],Me.prototype,"renderable",null),(0,i._)([(0,_.Cb)()],Me.prototype,"uiStrings",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"viewModel",void 0),(0,i._)([(0,_.Cb)({value:!0})],Me.prototype,"visible",null),(0,i._)([(0,_.Cb)()],Me.prototype,"key",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"children",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"afterCreate",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"afterUpdate",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"afterRemoved",void 0),Me=(0,i._)([(0,m.j)("esri.widgets.Widget")],Me);const qe=Me;function Be(e){return(t,s)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:s})}}var Ve=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},Ze=function(e,t){for(var s=0,r=e.length;s<r;s++){var i=e[s];Array.isArray(i)?Ze(i,t):null!=i&&!1!==i&&(i.hasOwnProperty("vnodeSelector")||(i=Ve(i)),t.push(i))}};function $e(e,t,...s){return"function"!=typeof e||xe(e)?function(e,t){for(var s=[],r=2;r<arguments.length;r++)s[r-2]=arguments[r];if(1===s.length&&"string"==typeof s[0])return{vnodeSelector:e,properties:t||void 0,children:void 0,text:s[0],domNode:null};var i=[];return Ze(s,i),{vnodeSelector:e,properties:t||void 0,children:i,text:void 0,domNode:null}}(e,t,...s):e(t,...s)}const Fe="esri-identity-form",ze={base:Fe,group:`${Fe}__group`,label:`${Fe}__label`,footer:`${Fe}__footer`,esriInput:"esri-input",esriButton:"esri-button",esriButtonSecondary:"esri-button--secondary"};let He=class extends qe{constructor(e,t){super(e,t),this._usernameInputNode=null,this._passwordInputNode=null,this.signingIn=!1,this.server=null,this.resource=null,this.error=null,this.oAuthPrompt=!1}render(){const{error:e,server:t,resource:s,signingIn:r,oAuthPrompt:i,messages:n}=this,o=$e("div",{class:ze.group},(0,g.n)(i?n.oAuthInfo:n.info,{server:t&&/\.arcgis\.com/i.test(t)?"ArcGIS Online":t,resource:`(${s||n.lblItem})`})),a=i?null:$e("div",{class:ze.group,key:"username"},$e("label",{class:ze.label},n.lblUser,$e("input",{value:"",required:!0,autocomplete:"off",spellcheck:!1,type:"text",bind:this,afterCreate:R,"data-node-ref":"_usernameInputNode",class:ze.esriInput}))),l=i?null:$e("div",{class:ze.group,key:"password"},$e("label",{class:ze.label},n.lblPwd,$e("input",{value:"",required:!0,type:"password",bind:this,afterCreate:R,"data-node-ref":"_passwordInputNode",class:ze.esriInput}))),h=$e("div",{class:this.classes(ze.group,ze.footer)},$e("input",{type:"submit",disabled:!!r,value:r?n.lblSigning:n.lblOk,class:ze.esriButton}),$e("input",{type:"button",value:n.lblCancel,bind:this,onclick:this._cancel,class:this.classes(ze.esriButton,ze.esriButtonSecondary)})),c=e?$e("div",null,e.details&&e.details.httpStatus?n.invalidUser:n.noAuthService):null;return $e("form",{class:ze.base,bind:this,onsubmit:this._submit},o,c,a,l,h)}_cancel(){this._set("signingIn",!1),this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);const t=this.oAuthPrompt?{}:{username:this._usernameInputNode&&this._usernameInputNode.value,password:this._passwordInputNode&&this._passwordInputNode.value};this.emit("submit",t)}};(0,i._)([(0,_.Cb)(),Be("esri/identity/t9n/identity")],He.prototype,"messages",void 0),(0,i._)([(0,_.Cb)()],He.prototype,"signingIn",void 0),(0,i._)([(0,_.Cb)()],He.prototype,"server",void 0),(0,i._)([(0,_.Cb)()],He.prototype,"resource",void 0),(0,i._)([(0,_.Cb)()],He.prototype,"error",void 0),(0,i._)([(0,_.Cb)()],He.prototype,"oAuthPrompt",void 0),He=(0,i._)([(0,m.j)("esri.identity.IdentityForm")],He);const Je=He;var We=s(44291);const Ye="esri-identity-modal",Ge={base:Ye,open:`${Ye}--open`,closed:`${Ye}--closed`,title:`${Ye}__title`,dialog:`${Ye}__dialog`,content:`${Ye}__content`,closeButton:`${Ye}__close-button`,iconClose:"esri-icon-close"};let Ke=class extends qe{constructor(e,t){super(e,t),this.container=document.createElement("div"),this.content=null,this.open=!1,this._focusTrap=null,this._close=()=>{this.open=!1},document.body.appendChild(this.container),this.addHandles((0,p.YP)((()=>this.open),(()=>this._toggleFocusTrap())))}destroy(){this._destroyFocusTrap()}get title(){return this.messages?.auth.signIn}render(){const e=this.id,{open:t,content:s,title:r,messages:i}=this,n=t&&!!s,o={[Ge.open]:n,[Ge.closed]:!n},a=$e("button",{class:Ge.closeButton,"aria-label":i.close,title:i.close,bind:this,onclick:this._close,type:"button"},$e("span",{"aria-hidden":"true",class:Ge.iconClose})),l=`${e}_title`,h=`${e}_content`,c=r?$e("h1",{id:l,class:Ge.title},r):null,d=n?$e("div",{bind:this,class:Ge.dialog,role:"dialog","aria-labelledby":l,"aria-describedby":h,afterCreate:this._createFocusTrap},a,c,this._renderContent(h)):null;return $e("div",{tabIndex:-1,class:this.classes(Ge.base,o)},d)}_destroyFocusTrap(){this._focusTrap?.deactivate({onDeactivate:()=>{}}),this._focusTrap=null}_toggleFocusTrap(){const{_focusTrap:e,open:t}=this;e&&(t?e.activate():e.deactivate())}_createFocusTrap(e){this._destroyFocusTrap();const t=requestAnimationFrame((()=>{this._focusTrap=(0,We.v)(e,{initialFocus:"input",onDeactivate:this._close}),this._toggleFocusTrap()}));this.addHandles((0,U.kB)((()=>cancelAnimationFrame(t))))}_renderContent(e){const t=this.content;return"string"==typeof t?$e("div",{class:Ge.content,id:e,innerHTML:t}):function(e){return e&&"function"==typeof e.render}(t)?$e("div",{class:Ge.content,id:e},t.render()):t instanceof HTMLElement?$e("div",{class:Ge.content,id:e,bind:t,afterCreate:this._attachToNode}):null}_attachToNode(e){e.appendChild(this)}};(0,i._)([(0,_.Cb)({readOnly:!0})],Ke.prototype,"container",void 0),(0,i._)([(0,_.Cb)()],Ke.prototype,"content",void 0),(0,i._)([(0,_.Cb)()],Ke.prototype,"open",void 0),(0,i._)([(0,_.Cb)(),Be("esri/t9n/common")],Ke.prototype,"messages",void 0),(0,i._)([(0,_.Cb)()],Ke.prototype,"title",null),Ke=(0,i._)([(0,m.j)("esri.identity.IdentityModal")],Ke);const Xe=Ke,Qe="esriJSAPIOAuth";class et{constructor(e,t){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=e,this.storage=t,this._init()}isValid(){let e=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token))if(null==this.expires&&this.refreshToken)e=!0;else if(this.expires){const t=Date.now();this.expires>t&&(this.expires-t)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(e=!0)}return e}save(){if(!this.storage)return!1;const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let s=e[t.authNamespace];s||(s=e[t.authNamespace]={}),this.appId||(this.appId=t.appId),s[t.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(Qe,JSON.stringify(e))}catch(e){return console.warn(e),!1}return!0}return!1}destroy(){const e=this._load(),t=this.oAuthInfo;if(t&&t.appId&&t.portalUrl&&(null==this.expires||this.expires>Date.now())&&(this.refreshToken||this.token)){const e=t.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",s=new FormData;if(s.append("f","json"),s.append("auth_token",this.refreshToken||this.token),s.append("client_id",t.appId),s.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),"function"==typeof navigator.sendBeacon)navigator.sendBeacon(e,s);else{const t=new XMLHttpRequest;t.open("POST",e),t.send(s)}}if(t&&t.authNamespace&&t.portalUrl&&this.storage){const s=e[t.authNamespace];if(s){delete s[t.portalUrl];try{this.storage.setItem(Qe,JSON.stringify(e))}catch(e){console.log(e)}}}t&&(t._oAuthCred=null,this.oAuthInfo=null)}_init(){const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let s=e[t.authNamespace];s&&(s=s[t.portalUrl],s&&(this.appId=s.appId,this.codeVerifier=s.codeVerifier,this.expires=s.expires,this.refreshToken=s.refreshToken,this.ssl=s.ssl,this.stateUID=s.stateUID,this.token=s.token,this.userId=s.userId))}}_load(){let e={};if(this.storage){const t=this.storage.getItem(Qe);if(t)try{e=JSON.parse(t)}catch(e){console.warn(e)}}return e}}et.prototype.declaredClass="esri.identity.OAuthCredential";var tt,st=s(96674);let rt=tt=class extends st.wq{constructor(e){super(e),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return tt.fromJSON(this.toJSON())}};(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"appId",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"authNamespace",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"expiration",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"flowType",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"forceLogin",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"forceUserId",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"locale",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"minTimeUntilExpiration",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"popup",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"popupCallbackUrl",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"popupWindowFeatures",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"portalUrl",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"preserveUrlHash",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"userId",void 0),rt=tt=(0,i._)([(0,m.j)("esri.identity.OAuthInfo")],rt);const it=rt;let nt=class extends st.wq{constructor(e){super(e),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"adminTokenServiceUrl",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"currentVersion",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"hasPortal",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"hasServer",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"owningSystemUrl",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"owningTenant",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"server",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"shortLivedTokenValidity",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"tokenServiceUrl",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"webTierAuth",void 0),nt=(0,i._)([(0,m.j)("esri.identity.ServerInfo")],nt);const ot=nt;var at=s(19745);const lt={},ht=e=>{const t=new f.R9(e.owningSystemUrl).host,s=new f.R9(e.server).host,r=/.+\.arcgis\.com$/i;return r.test(t)&&r.test(s)},ct=(e,t)=>!!(ht(e)&&t&&t.some((t=>t.test(e.server))));let dt=null,ut=null;try{dt=window.localStorage,ut=window.sessionStorage}catch{}class pt extends l.Z{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.formConstructor=Je,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin="null"!==window.origin?window.origin:window.location.origin,this._appUrlObj=(0,f.mN)(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^\/]+\/[^\/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer)).*/gi,this._gwUser=/http.+\/users\/([^\/]+)\/?.*/i,this._gwItem=/http.+\/items\/([^\/]+)\/?.*/i,this._gwGroup=/http.+\/groups\/([^\/]+)\/?.*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getOAuthLocationParams(),window.addEventListener("pageshow",(e=>{this._pageShowHandler(e)}))}registerServers(e){const t=this.serverInfos;t?(e=e.filter((e=>!this.findServerInfo(e.server))),this.serverInfos=t.concat(e)):this.serverInfos=e,e.forEach((e=>{e.owningSystemUrl&&this._portals.push(e.owningSystemUrl),e.hasPortal&&this._portals.push(e.server)}))}registerOAuthInfos(e){const t=this.oAuthInfos;if(t){for(const s of e){const e=this.findOAuthInfo(s.portalUrl);e&&t.splice(t.indexOf(e),1)}this.oAuthInfos=t.concat(e)}else this.oAuthInfos=e}registerToken(e){e={...e};const t=this._sanitizeUrl(e.server),s=this._isServerRsrc(t);let r,i=this.findServerInfo(t),n=!0;i||(i=new ot,i.server=this._getServerInstanceRoot(t),s?i.hasServer=!0:(i.tokenServiceUrl=this._getTokenSvcUrl(t),i.hasPortal=!0),this.registerServers([i])),r=this._findCredential(t),r?(delete e.server,Object.assign(r,e),n=!1):(r=new ft({userId:e.userId,server:i.server,token:e.token,expires:e.expires,ssl:e.ssl,scope:s?"server":"portal"}),r.resources=[t],this.credentials.push(r)),r.emitTokenChange(!1),n||r.refreshServerTokens()}toJSON(){return(0,c.yd)({serverInfos:this.serverInfos.map((e=>e.toJSON())),oAuthInfos:this.oAuthInfos.map((e=>e.toJSON())),credentials:this.credentials.map((e=>e.toJSON()))})}initialize(e){if(!e)return;"string"==typeof e&&(e=JSON.parse(e));const t=e.serverInfos,s=e.oAuthInfos,r=e.credentials;if(t){const e=[];t.forEach((t=>{t.server&&t.tokenServiceUrl&&e.push(t.declaredClass?t:new ot(t))})),e.length&&this.registerServers(e)}if(s){const e=[];s.forEach((t=>{t.appId&&e.push(t.declaredClass?t:new it(t))})),e.length&&this.registerOAuthInfos(e)}r&&r.forEach((e=>{e.server&&e.token&&e.expires&&e.expires>Date.now()&&((e=e.declaredClass?e:new ft(e)).emitTokenChange(),this.credentials.push(e))}))}findServerInfo(e){let t;e=this._sanitizeUrl(e);for(const s of this.serverInfos)if(this._hasSameServerInstance(s.server,e)){t=s;break}return t}findOAuthInfo(e){let t;e=this._sanitizeUrl(e);for(const s of this.oAuthInfos)if(this._hasSameServerInstance(s.portalUrl,e)){t=s;break}return t}findCredential(e,t){if(!e)return;let s;e=this._sanitizeUrl(e);const r=this._isServerRsrc(e)?"server":"portal";if(t){for(const i of this.credentials)if(this._hasSameServerInstance(i.server,e)&&t===i.userId&&i.scope===r){s=i;break}}else for(const t of this.credentials)if(this._hasSameServerInstance(t.server,e)&&-1!==this._getIdenticalSvcIdx(e,t)&&t.scope===r){s=t;break}return s}getCredential(e,t){let s,r,i=!0;t&&(s=!!t.token,r=t.error,i=!1!==t.prompt),t={...t},e=this._sanitizeUrl(e);const n=new AbortController,o=(0,u.hh)();if(t.signal&&(0,u.fu)(t.signal,(()=>{n.abort()})),(0,u.fu)(n,(()=>{o.reject(new a.Z("identity-manager:user-aborted","ABORTED"))})),(0,u.Hc)(n))return o.promise;t.signal=n.signal;const l=this._isAdminResource(e),h=s?this.findCredential(e):null;let c;if(h&&r&&r.details&&498===r.details.httpStatus)h.destroy();else if(h)return c=new a.Z("identity-manager:not-authorized","You are currently signed in as: '"+h.userId+"'. You do not have access to this resource: "+e,{error:r}),o.reject(c),o.promise;const d=this._findCredential(e,t);if(d)return o.resolve(d),o.promise;let p=this.findServerInfo(e);if(p)!p.hasPortal&&p.server&&p.owningSystemUrl&&this._hasSameServerInstance(p.server,p.owningSystemUrl)&&(p.hasPortal=!0),!p.hasServer&&this._isServerRsrc(e)&&(p._restInfoPms=this._getTokenSvcUrl(e),p.hasServer=!0);else{const t=this._getTokenSvcUrl(e);if(!t)return c=new a.Z("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),o.reject(c),o.promise;p=new ot,p.server=this._getServerInstanceRoot(e),"string"==typeof t?(p.tokenServiceUrl=t,p.hasPortal=!0):(p._restInfoPms=t,p.hasServer=!0),this.registerServers([p])}return p.hasPortal&&void 0===p._selfReq&&(i||(0,f.D6)(p.tokenServiceUrl,this._appOrigin)||this._gwDomains.some((e=>e.tokenServiceUrl===p.tokenServiceUrl)))&&(p._selfReq={owningTenant:t&&t.owningTenant,selfDfd:this._getPortalSelf(p.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,p,t,o,l)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,t,s){const r=this._rePortalTokenSvc.test(e.tokenServiceUrl),i=new f.R9(this._appOrigin),n=e.shortLivedTokenValidity;let l,h,c,d,u,p,_,m;t&&(m=this.tokenValidity||n||this._defaultTokenValidity,m>n&&n>0&&(m=n)),s&&(l=s.isAdmin,h=s.serverUrl,c=s.token,p=s.signal,_=s.ssl,e.customParameters=s.customParameters),l?d=e.adminTokenServiceUrl:(d=e.tokenServiceUrl,u=new f.R9(d.toLowerCase()),e.webTierAuth&&s?.serverUrl&&!_&&"http"===i.scheme&&((0,f.D6)(i.uri,d,!0)||"https"===u.scheme&&i.host===u.host&&"7080"===i.port&&"7443"===u.port)&&(d=d.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));const g={query:{request:"getToken",username:t?.username,password:t?.password,serverUrl:h,token:c,expiration:m,referer:l||r?this._appOrigin:null,client:l?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,s),signal:p,...s?.ioArgs};return r||(g.withCredentials=!1),(0,o.Z)(d,g).then((s=>{const r=s.data;if(!r||!r.token)return new a.Z("identity-manager:authentication-failed","Unable to generate token");const i=e.server;return lt[i]||(lt[i]={}),t&&(lt[i][t.username]=t.password),r.validity=m,r}))}isBusy(){return!!this._busy}checkSignInStatus(e){return this.checkAppAccess(e,"").then((e=>e.credential))}checkAppAccess(e,t,s){let r=!1;return this.getCredential(e,{prompt:!1}).then((i=>{let n;const l={f:"json"};if("portal"===i.scope)if(t&&(this._doPortalSignIn(e)||s&&s.force))n=i.server+"/sharing/rest/oauth2/validateAppAccess",l.client_id=t;else{if(!i.token)return{credential:i};n=i.server+"/sharing/rest"}else{if(!i.token)return{credential:i};n=i.server+"/rest/services"}return i.token&&(l.token=i.token),(0,o.Z)(n,{query:l,authMode:"anonymous"}).then((e=>{if(!1===e.data.valid)throw new a.Z("identity-manager:not-authorized",`You are currently signed in as: '${i.userId}'.`,e.data);return r=!!e.data.viewOnlyUserTypeApp,{credential:i}})).catch((e=>{if("identity-manager:not-authorized"===e.name)throw e;const t=e.details&&e.details.httpStatus;if(498===t)throw i.destroy(),new a.Z("identity-manager:not-authenticated","User is not signed in.");if(400===t)throw new a.Z("identity-manager:invalid-request");return{credential:i}}))})).then((e=>({credential:e.credential,viewOnly:r})))}setOAuthResponseHash(e){e&&("#"===e.charAt(0)&&(e=e.substring(1)),this._processOAuthPopupParams((0,f.u0)(e)))}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e}setProtocolErrorHandler(e){this._protocolFunc=e}signIn(e,t,s={}){const r=(0,u.hh)(),i=()=>{l?.remove(),h?.remove(),c?.remove(),o?.destroy(),this.dialog?.destroy(),this.dialog=o=l=h=c=null},n=()=>{i(),this._oAuthDfd=null,r.reject(new a.Z("identity-manager:user-aborted","ABORTED"))};s.signal&&(0,u.fu)(s.signal,(()=>{n()}));let o=new this.formConstructor;o.resource=this.getResourceName(e),o.server=t.server,this.dialog=new Xe,this.dialog.content=o,this.dialog.open=!0,this.emit("dialog-create");let l=o.on("cancel",n),h=(0,p.YP)((()=>this.dialog.open),n),c=o.on("submit",(e=>{this.generateToken(t,e,{isAdmin:s.isAdmin,signal:s.signal}).then((n=>{i();const o=new ft({userId:e.username,server:t.server,token:n.token,expires:null!=n.expires?Number(n.expires):null,ssl:!!n.ssl,isAdmin:s.isAdmin,validity:n.validity});r.resolve(o)})).catch((e=>{o.error=e,o.signingIn=!1}))}));return r.promise}oAuthSignIn(e,t,s,r){this._oAuthDfd=(0,u.hh)();const i=this._oAuthDfd;let n;r?.signal&&(0,u.fu)(r.signal,(()=>{const e=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;e&&!e.closed?e.close():this.dialog&&_()})),i.resUrl_=e,i.sinfo_=t,i.oinfo_=s;const o=s._oAuthCred;if(o.storage&&("authorization-code"===s.flowType||"auto"===s.flowType&&!s.popup&&t.currentVersion>=8.4)){let e=crypto.getRandomValues(new Uint8Array(32));n=(0,f.rS)(e),o.codeVerifier=n,e=crypto.getRandomValues(new Uint8Array(32)),o.stateUID=(0,f.rS)(e),o.save()||(o.codeVerifier=n=null)}else o.codeVerifier=null;let l,h,c,d;this._getCodeChallenge(n).then((i=>{const n=!r||!1!==r.oAuthPopupConfirmation;s.popup&&n?(l=new this.formConstructor,l.oAuthPrompt=!0,l.server=t.server,this.dialog=new Xe,this.dialog.content=l,this.dialog.open=!0,this.emit("dialog-create"),h=l.on("cancel",_),c=(0,p.YP)((()=>this.dialog.open),_),d=l.on("submit",(()=>{m(),this._doOAuthSignIn(e,t,s,i)}))):this._doOAuthSignIn(e,t,s,i)}));const _=()=>{m(),this._oAuthDfd=null,i.reject(new a.Z("identity-manager:user-aborted","ABORTED"))},m=()=>{h?.remove(),c?.remove(),d?.remove(),l?.destroy(),this.dialog?.destroy(),this.dialog=null};return i.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach((e=>{e.destroy()})),this.emit("credentials-destroy")}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=(0,h.on)(window,"message",(t=>{if((t.origin===this._appOrigin||t.origin.endsWith(".arcgis.com"))&&"arcgis:auth:requestCredential"===t.data?.type){const s=t.source;this.getCredential(e).then((e=>{s.postMessage({type:"arcgis:auth:credential",credential:{expires:e.expires,server:e.server,ssl:e.ssl,token:e.token,userId:e.userId}},t.origin)})).catch((e=>{s.postMessage({type:"arcgis:auth:error",error:{name:e.name,message:e.message}},t.origin)}))}}))}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthLocationParams(){let e=window.location.hash;if(e){"#"===e.charAt(0)&&(e=e.substring(1));const t=(0,f.u0)(e);let s=!1;if(t.access_token&&t.expires_in&&t.state&&t.hasOwnProperty("username"))try{t.state=JSON.parse(t.state),t.state.portalUrl&&(this._oAuthLocationParams=t,s=!0)}catch{}else if(t.error&&t.error_description&&(console.log("IdentityManager OAuth Error: ",t.error," - ",t.error_description),"access_denied"===t.error&&(s=!0,t.state)))try{t.state=JSON.parse(t.state)}catch{}s&&(window.location.hash=t.state?.hash||"")}let t=window.location.search;if(t){"?"===t.charAt(0)&&(t=t.substring(1));const e=(0,f.u0)(t);let s=!1;if(e.code&&e.state)try{e.state=JSON.parse(e.state),e.state.portalUrl&&e.state.uid&&(this._oAuthLocationParams=e,s=!0)}catch{}else if(e.error&&e.error_description&&(console.log("IdentityManager OAuth Error: ",e.error," - ",e.error_description),"access_denied"===e.error&&(s=!0,e.state)))try{e.state=JSON.parse(e.state)}catch{}if(s){const t={...e};["code","error","error_description","message_code","persist","state"].forEach((e=>{delete t[e]}));const s=(0,f.B7)(t),r=window.location.pathname+(s?`?${s}`:"")+(e.state?.hash||"");window.history.replaceState(window.history.state,"",r)}}}_getOAuthToken(e,t,s,r,i){return e=e.replace(/^http:/i,"https:"),(0,o.Z)(`${e}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:r&&i?{grant_type:"authorization_code",code:t,redirect_uri:r,client_id:s,code_verifier:i}:{grant_type:"refresh_token",refresh_token:t,client_id:s}}).then((e=>e.data))}_getCodeChallenge(e){if(e&&globalThis.isSecureContext){const t=(new TextEncoder).encode(e);return crypto.subtle.digest("SHA-256",t).then((e=>(0,f.rS)(new Uint8Array(e))))}return Promise.resolve(null)}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){const e=new a.Z("identity-manager:user-aborted","ABORTED");this._errbackFunc(e)}}_findCredential(e,t){let s,r,i,n,o=-1;const a=t&&t.token,l=t&&t.resource,h=this._isServerRsrc(e)?"server":"portal",c=this.credentials.filter((t=>this._hasSameServerInstance(t.server,e)&&t.scope===h));if(e=l||e,c.length)if(1===c.length){if(s=c[0],i=this.findServerInfo(s.server),r=i&&i.owningSystemUrl,n=r?this.findCredential(r,s.userId):void 0,o=this._getIdenticalSvcIdx(e,s),!a)return-1===o&&s.resources.push(e),this._addResource(e,n),s;-1!==o&&(s.resources.splice(o,1),this._removeResource(e,n))}else{let t,s;if(c.some((a=>(s=this._getIdenticalSvcIdx(e,a),-1!==s&&(t=a,i=this.findServerInfo(t.server),r=i&&i.owningSystemUrl,n=r?this.findCredential(r,t.userId):void 0,o=s,!0)))),a)t&&(t.resources.splice(o,1),this._removeResource(e,n));else if(t)return this._addResource(e,n),t}}_findOAuthInfo(e){let t=this.findOAuthInfo(e);if(!t)for(const s of this.oAuthInfos)if(this._isIdProvider(s.portalUrl,e)){t=s;break}return t}_addResource(e,t){t&&-1===this._getIdenticalSvcIdx(e,t)&&t.resources.push(e)}_removeResource(e,t){let s=-1;t&&(s=this._getIdenticalSvcIdx(e,t),s>-1&&t.resources.splice(s,1))}_useProxy(e,t){return t&&t.isAdmin&&!(0,f.D6)(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&"10.1"===String(e.currentVersion)&&!(0,f.D6)(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){const t=new f.R9(e);return t.scheme+"://"+t.host+(null!=t.port?":"+t.port:"")}_getServerInstanceRoot(e){const t=e.toLowerCase();let s=t.indexOf(this._agsRest);return-1===s&&this._isAdminResource(e)&&(s=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),-1!==s||(0,at.P)(t)||(s=t.indexOf("/sharing")),-1===s&&"/"===t.substr(-1)&&(s=t.length-1),s>-1?e.substring(0,s):e}_hasSameServerInstance(e,t){return"/"===e.substr(-1)&&(e=e.slice(0,-1)),e=e.toLowerCase(),t=this._getServerInstanceRoot(t).toLowerCase(),e=this._normalizeAGOLorgDomain(e),t=this._normalizeAGOLorgDomain(t),(e=e.substr(e.indexOf(":")))===t.substr(t.indexOf(":"))}_normalizeAGOLorgDomain(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,s=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,r=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):s.test(e)?e=e.replace(s,"https://devext.arcgis.com"):r.test(e)&&(e=e.replace(r,"https://qaext.arcgis.com")),e}_sanitizeUrl(e){const t=(n.default.request.proxyUrl||"").toLowerCase(),s=t?e.toLowerCase().indexOf(t+"?"):-1;return-1!==s&&(e=e.substring(s+t.length+1)),e=(0,f.Fv)(e),(0,f.mN)(e).path}_isRESTService(e){return e.includes(this._agsRest)}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,t){let s=!1;if(this._isRESTService(e)&&this._isRESTService(t)){const r=this._getSuffix(e).toLowerCase(),i=this._getSuffix(t).toLowerCase();if(s=r===i,!s){const e=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;s=r.replaceAll(e,"$1")===i.replaceAll(e,"$1")}}else this._isAdminResource(e)&&this._isAdminResource(t)?s=!0:this._isServerRsrc(e)||this._isServerRsrc(t)||!this._isPortalDomain(e)||(s=!0);return s}_isPortalDomain(e){const t=new f.R9(e.toLowerCase()),s=this._portalConfig;let r=this._gwDomains.some((e=>e.regex.test(t.uri)));return!r&&s&&(r=this._hasSameServerInstance(this._getServerInstanceRoot(s.restBaseUrl),t.uri)),r||n.default.portalUrl&&(r=(0,f.D6)(t,n.default.portalUrl,!0)),r||(r=this._portals.some((e=>this._hasSameServerInstance(e,t.uri)))),r=r||this._agsPortal.test(t.path),r}_isIdProvider(e,t){let s=-1,r=-1;this._gwDomains.forEach(((i,n)=>{-1===s&&i.regex.test(e)&&(s=n),-1===r&&i.regex.test(t)&&(r=n)}));let i=!1;if(s>-1&&r>-1&&(0===s||4===s?0!==r&&4!==r||(i=!0):1===s?1!==r&&2!==r||(i=!0):2===s?2===r&&(i=!0):3===s&&3===r&&(i=!0)),!i){const s=this.findServerInfo(t),r=s?.owningSystemUrl;r&&ht(s)&&this._isPortalDomain(r)&&this._isIdProvider(e,r)&&(i=!0)}return i}_getIdenticalSvcIdx(e,t){let s=-1;for(let r=0;r<t.resources.length;r++){const i=t.resources[r];if(this._isIdenticalService(e,i)){s=r;break}}return s}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let t,s,r;if(this._isRESTService(e)||this._isAdminResource(e)){const r=this._getServerInstanceRoot(e);return t=r+"/admin/generateToken",s=(0,o.Z)(e=r+"/rest/info",{query:{f:"json"}}).then((e=>e.data)),{adminUrl:t,promise:s}}if(this._isPortalDomain(e)){let t="";if(this._gwDomains.some((s=>(s.regex.test(e)&&(t=s.tokenServiceUrl),!!t))),t||this._portals.some((s=>(this._hasSameServerInstance(s,e)&&(t=s+this._gwTokenUrl),!!t))),t||(r=e.toLowerCase().indexOf("/sharing"),-1!==r&&(t=e.substring(0,r)+this._gwTokenUrl)),t||(t=this._getOrigin(e)+this._gwTokenUrl),t){const s=new f.R9(e).port;/^http:\/\//i.test(e)&&"7080"===s&&(t=t.replace(/:7080/i,":7443")),t=t.replace(/http:/i,"https:")}return t}if(e.toLowerCase().includes("premium.arcgisonline.com"))return"https://premium.arcgisonline.com/server/tokens"}_processOAuthResponseParams(e,t,s){const r=t._oAuthCred;if(e.code){const i=r.codeVerifier;return r.codeVerifier=null,r.stateUID=null,r.save(),this._getOAuthToken(s.server,e.code,t.appId,this._getRedirectURI(t,!0),i).then((i=>{const n=new ft({userId:i.username,server:s.server,token:i.access_token,expires:Date.now()+1e3*i.expires_in,ssl:i.ssl,oAuthState:e.state,_oAuthCred:r});return t.userId=n.userId,r.storage=i.persist?dt:ut,r.refreshToken=i.refresh_token,r.token=null,r.expires=i.refresh_token_expires_in?Date.now()+1e3*i.refresh_token_expires_in:null,r.userId=n.userId,r.ssl=n.ssl,r.save(),n}))}const i=new ft({userId:e.username,server:s.server,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:"true"===e.ssl,oAuthState:e.state,_oAuthCred:r});return t.userId=i.userId,r.storage=e.persist?dt:ut,r.refreshToken=null,r.token=i.token,r.expires=i.expires,r.userId=i.userId,r.ssl=i.ssl,r.save(),Promise.resolve(i)}_processOAuthPopupParams(e){const t=this._oAuthDfd;if(this._oAuthDfd=null,t)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),e.error){const s="access_denied"===e.error,r=new a.Z(s?"identity-manager:user-aborted":"identity-manager:authentication-failed",s?"ABORTED":"OAuth: "+e.error+" - "+e.error_description);t.reject(r)}else this._processOAuthResponseParams(e,t.oinfo_,t.sinfo_).then((e=>{t.resolve(e)})).catch((e=>{t.reject(e)}))}_setOAuthResponseQueryString(e){e&&("?"===e.charAt(0)&&(e=e.substring(1)),this._processOAuthPopupParams((0,f.u0)(e)))}_exchangeToken(e,t,s){return(0,o.Z)(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:t,token:s}}).then((e=>e.data.token))}_getPlatformSelf(e,t){return e=e.replace(/^http:/i,"https:"),(0,o.Z)(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":t,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0}).then((e=>e.data))}_getPortalSelf(e,t){let s;return this._gwDomains.some((t=>(t.regex.test(e)&&(s=t.customBaseUrl),!!s))),s?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:s,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(t)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),(0,o.Z)(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then((e=>e.data)))}_doPortalSignIn(e){const t=this._portalConfig,s=window.location.href,r=this.findServerInfo(e);return!(!t&&!this._isPortalDomain(s)||!(r?r.hasPortal||r.owningSystemUrl&&this._isPortalDomain(r.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(s,e)||t&&(this._hasSameServerInstance(this._getServerInstanceRoot(t.restBaseUrl),e)||this._isIdProvider(t.restBaseUrl,e))||(0,f.D6)(s,e,!0)))}_checkProtocol(e,t,s,r){let i=!0;const n=r?t.adminTokenServiceUrl:t.tokenServiceUrl;return n.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&(0,f.ed)(n)&&(i=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:t}),!i)&&s(new a.Z("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),i}_enqueue(e,t,s,r,i,n){return r||(r=(0,u.hh)()),r.resUrl_=e,r.sinfo_=t,r.options_=s,r.admin_=i,r.refresh_=n,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(r)):this._xoReqs.push(r):this._doSignIn(r),r.promise}_doSignIn(e){this._busy=e,this._rejectOnPersistedPageShow=!1;const t=t=>{const s=e.options_&&e.options_.resource,r=e.resUrl_,i=e.refresh_;let n=!1;this.credentials.includes(t)||(i&&this.credentials.includes(i)?(i.userId=t.userId,i.token=t.token,i.expires=t.expires,i.validity=t.validity,i.ssl=t.ssl,i.creationTime=t.creationTime,n=!0,t=i):this.credentials.push(t)),t.resources||(t.resources=[]),t.resources.includes(s||r)||t.resources.push(s||r),t.scope=this._isServerRsrc(r)?"server":"portal",t.emitTokenChange();const o=this._soReqs,a={};this._soReqs=[],o.forEach((e=>{if(!this._isIdenticalService(r,e.resUrl_)){const s=this._getSuffix(e.resUrl_);a[s]||(a[s]=!0,t.resources.push(e.resUrl_))}})),e.resolve(t),o.forEach((e=>{this._hasSameServerInstance(this._getServerInstanceRoot(r),e.resUrl_)?e.resolve(t):this._soReqs.push(e)})),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,n||this.emit("credential-create",{credential:t}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},s=t=>{e.reject(t),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},r=(i,n,o,l)=>{const c=e.sinfo_,d=!e.options_||!1!==e.options_.prompt,p=c.hasPortal&&this._findOAuthInfo(e.resUrl_);let _,m;if(i)t(new ft({userId:i,server:c.server,token:o||null,expires:null!=l?Number(l):null,ssl:!!n}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);const r=(0,h.on)(window,"message",(e=>{e.source===window.parent&&e.data&&("arcgis:auth:credential"===e.data.type?(r.remove(),e.data.credential.expires<Date.now()?s(new a.Z("identity-manager:credential-request-failed","Parent application's token has expired.")):t(new ft(e.data.credential))):"arcgis:auth:error"===e.data.type&&(r.remove(),"tokenExpiredError"===e.data.error.name?s(new a.Z("identity-manager:credential-request-failed","Parent application's token has expired.")):s(a.Z.fromJSON(e.data.error))))}));(0,u.fu)(e.options_?.signal,(()=>{r.remove()}))}else if(p){let i=p._oAuthCred;if(!i){const e=new et(p,dt),t=new et(p,ut);e.isValid()&&t.isValid()?e.expires>t.expires?(i=e,t.destroy()):(i=t,e.destroy()):i=e.isValid()?e:t,p._oAuthCred=i}if(i.isValid()){_=new ft({userId:i.userId,server:c.server,token:i.token,expires:i.expires,ssl:i.ssl,_oAuthCred:i});const s=p.appId!==i.appId&&this._doPortalSignIn(e.resUrl_);s||i.refreshToken?(e._pendingDfd=i.refreshToken?this._getOAuthToken(c.server,i.refreshToken,i.appId).then((e=>(_.expires=Date.now()+1e3*e.expires_in,_.token=e.access_token,_))):Promise.resolve(_),e._pendingDfd.then((e=>s?this._exchangeToken(e.server,p.appId,e.token).then((t=>(e.token=t,e))).catch((()=>e)):e)).then((e=>{t(e)})).catch((()=>{i?.destroy(),r()}))):t(_)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(p.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===i.stateUID&&i.codeVerifier)){const r=this._oAuthLocationParams;this._oAuthLocationParams=null,e._pendingDfd=this._processOAuthResponseParams(r,p,c).then((e=>{t(e)})).catch(s)}else{const r=()=>{d?e._pendingDfd=this.oAuthSignIn(e.resUrl_,c,p,e.options_).then(t,s):(m=new a.Z("identity-manager:not-authenticated","User is not signed in."),s(m))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(c.server,p.appId).then((e=>{(0,f.D6)(e.portalUrl,this._appOrigin,!0)?(_=new ft({userId:e.username,server:c.server,expires:Date.now()+1e3*e.expires_in,token:e.token}),t(_)):r()})).catch(r):r()}}else if(d){if(this._checkProtocol(e.resUrl_,c,s,e.admin_)){let r=e.options_;e.admin_&&(r=r||{},r.isAdmin=!0),e._pendingDfd=this.signIn(e.resUrl_,c,r).then(t,s)}}else m=new a.Z("identity-manager:not-authenticated","User is not signed in."),s(m)},i=()=>{const r=e.sinfo_,i=r.owningSystemUrl,n=e.options_;let o,a,l,h;if(n&&(o=n.token,a=n.error,l=n.prompt),h=this._findCredential(i,{token:o,resource:e.resUrl_}),!h)for(const e of this.credentials)if(this._isIdProvider(i,e.server)){h=e;break}if(h){const i=this.findCredential(e.resUrl_,h.userId);if(i)t(i);else if(ct(r,this._legacyFed)){const e=h.toJSON();e.server=r.server,e.resources=null,t(new ft(e))}else(e._pendingDfd=this.generateToken(this.findServerInfo(h.server),null,{serverUrl:e.resUrl_,token:h.token,signal:e.options_.signal,ssl:h.ssl})).then((s=>{t(new ft({userId:h?.userId,server:r.server,token:s.token,expires:null!=s.expires?Number(s.expires):null,ssl:!!s.ssl,isAdmin:e.admin_,validity:s.validity}))}),s)}else this._busy=null,o&&(e.options_.token=null),(e._pendingDfd=this.getCredential(i.replace(/\/?$/,"/sharing"),{resource:e.resUrl_,owningTenant:r.owningTenant,signal:e.options_.signal,token:o,error:a,prompt:l})).then((()=>{this._enqueue(e.resUrl_,e.sinfo_,e.options_,e,e.admin_)}),(t=>{e.resUrl_=e.sinfo_=e.refresh_=null,e.reject(t)}))};this._errbackFunc=s;const n=e.sinfo_.owningSystemUrl,o=this._isServerRsrc(e.resUrl_),l=e.sinfo_._restInfoPms;l?l.promise.then((t=>{const s=e.sinfo_;if(s._restInfoPms){s.adminTokenServiceUrl=s._restInfoPms.adminUrl,s._restInfoPms=null,s.tokenServiceUrl=((0,d.hS)("authInfo.tokenServicesUrl",t)||(0,d.hS)("authInfo.tokenServiceUrl",t)||(0,d.hS)("tokenServiceUrl",t))??null,s.shortLivedTokenValidity=(0,d.hS)("authInfo.shortLivedTokenValidity",t)??null,s.currentVersion=t.currentVersion,s.owningTenant=t.owningTenant;const e=s.owningSystemUrl=t.owningSystemUrl;e&&this._portals.push(e)}o&&s.owningSystemUrl?i():r()}),(()=>{e.sinfo_._restInfoPms=null;const t=new a.Z("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");s(t)})):o&&n?i():e.sinfo_._selfReq?e.sinfo_._selfReq.selfDfd.then((t=>{const s={};let r,i,n,o;return t&&(r=t.user&&t.user.username,s.username=r,s.allSSL=t.allSSL,i=t.supportsOAuth,o=parseFloat(t.currentVersion),"multitenant"===t.portalMode&&(n=t.customBaseUrl),e.sinfo_.currentVersion=o),e.sinfo_.webTierAuth=!!r,r&&this.normalizeWebTierAuth?this.generateToken(e.sinfo_,null,{ssl:s.allSSL}).catch((()=>null)).then((e=>(s.portalToken=e&&e.token,s.tokenExpiration=e&&e.expires,s))):!r&&i&&o>=4.4&&!this._findOAuthInfo(e.resUrl_)?this._generateOAuthInfo({portalUrl:e.sinfo_.server,customBaseUrl:n,owningTenant:e.sinfo_._selfReq.owningTenant}).catch((()=>null)).then((()=>s)):s})).catch((()=>null)).then((t=>{e.sinfo_._selfReq=null,t?r(t.username,t.allSSL,t.portalToken,t.tokenExpiration):r()})):r()}_generateOAuthInfo(e){let t,s=null,r=e.portalUrl;const i=e.customBaseUrl,n=e.owningTenant,a=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(a){s=window.location.href;let e=s.indexOf("?");e>-1&&(s=s.slice(0,e)),e=s.search(/\/(apps|home)\//),s=e>-1?s.slice(0,e):null}return a&&s?(this._hasTestedIfAppIsOnPortal=!0,t=(0,o.Z)(s+"/sharing/rest",{query:{f:"json"}}).then((()=>{this._defaultOAuthInfo=new it({appId:"arcgisonline",popupCallbackUrl:s+"/home/oauth-callback.html"})}))):t=Promise.resolve(),t.then((()=>{if(this._defaultOAuthInfo)return r=r.replace(/^http:/i,"https:"),(0,o.Z)(r+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:n,client_id:this._defaultOAuthInfo.appId,redirect_uri:(0,f.hF)(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then((e=>{if(e.data.valid){const t=this._defaultOAuthInfo.clone();e.data.urlKey&&i?t.portalUrl="https://"+e.data.urlKey.toLowerCase()+"."+i:t.portalUrl=r,t.popup=window!==window.top||!((0,f.D6)(r,this._appOrigin)||this._gwDomains.some((e=>e.regex.test(r)&&e.regex.test(this._appOrigin)))),this.oAuthInfos.push(t)}}))}))}_doOAuthSignIn(e,t,s,r){const i=s._oAuthCred,n={portalUrl:s.portalUrl};!s.popup&&s.preserveUrlHash&&window.location.hash&&(n.hash=window.location.hash),i.stateUID&&(n.uid=i.stateUID);const o={client_id:s.appId,response_type:i.codeVerifier?"code":"token",state:JSON.stringify(n),expiration:s.expiration,locale:s.locale,redirect_uri:this._getRedirectURI(s,!!i.codeVerifier)};s.forceLogin&&(o.force_login=!0),s.forceUserId&&s.userId&&(o.prepopulatedusername=s.userId),!s.popup&&this._doPortalSignIn(e)&&(o.redirectToUserOrgUrl=!0),i.codeVerifier&&(o.code_challenge=r||i.codeVerifier,o.code_challenge_method=r?"S256":"plain");const l=s.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",c=l+"?"+(0,f.B7)(o);if(s.popup){const e=window.open(c,"esriJSAPIOAuth",s.popupWindowFeatures);if(e)e.focus(),this._oAuthDfd.oAuthWin_=e,this._oAuthIntervalId=setInterval((()=>{if(e.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();const e=this._oAuthDfd;if(e){const t=new a.Z("identity-manager:user-aborted","ABORTED");e.reject(t)}}}),500),this._oAuthOnPopupHandle=(0,h.on)(window,["arcgis:auth:hash","arcgis:auth:location:search"],(e=>{"arcgis:auth:hash"===e.type?this.setOAuthResponseHash(e.detail):this._setOAuthResponseQueryString(e.detail)}));else{const e=new a.Z("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(e)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:o,authorizeUrl:l,resourceUrl:e,serverInfo:t,oAuthInfo:s}):window.location.href=c}_getRedirectURI(e,t){const s=window.location.href.replace(/#.*$/,"");if(e.popup)return(0,f.hF)(e.popupCallbackUrl);if(t){const e=(0,f.mN)(s);return e.query&&["code","error","error_description","message_code","persist","state"].forEach((t=>{delete e.query[t]})),(0,f.fl)(e.path,e.query)}return s}}pt.prototype.declaredClass="esri.identity.IdentityManagerBase";let ft=class extends l.Z.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e&&e._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],null==this.creationTime&&(this.creationTime=Date.now())}refreshToken(){const e=r.id.findServerInfo(this.server),t=e?.owningSystemUrl,s=!!t&&"server"===this.scope,i=s&&ct(e,r.id._legacyFed),n=e.webTierAuth,o=n&&r.id.normalizeWebTierAuth,a=lt[this.server],l=a&&a[this.userId];let h,c=this.resources&&this.resources[0],d=s?r.id.findServerInfo(t):null,u={username:this.userId,password:l};if(n&&!o)return;s&&!d&&r.id.serverInfos.some((e=>(r.id._isIdProvider(t,e.server)&&(d=e),!!d)));const p=d?r.id.findCredential(d.server,this.userId):null;if(!s||p){if(!i){if(s)h={serverUrl:c,token:p&&p.token,ssl:p&&p.ssl};else if(o)u=null,h={ssl:this.ssl};else{if(!l){let t;return c&&(c=r.id._sanitizeUrl(c),this._enqueued=1,t=r.id._enqueue(c,e,null,null,this.isAdmin,this),t.then((()=>{this._enqueued=0,this.refreshServerTokens()})).catch((()=>{this._enqueued=0}))),t}this.isAdmin&&(h={isAdmin:!0})}return r.id.generateToken(s?d:e,s?null:u,h).then((e=>{this.token=e.token,this.expires=null!=e.expires?Number(e.expires):null,this.creationTime=Date.now(),this.validity=e.validity,this.emitTokenChange(),this.refreshServerTokens()})).catch((()=>{}))}p?.refreshToken()}}refreshServerTokens(){"portal"===this.scope&&r.id.credentials.forEach((e=>{const t=r.id.findServerInfo(e.server),s=t?.owningSystemUrl;e!==this&&e.userId===this.userId&&s&&"server"===e.scope&&(r.id._hasSameServerInstance(this.server,s)||r.id._isIdProvider(s,this.server))&&(ct(t,r.id._legacyFed)?(e.token=this.token,e.expires=this.expires,e.creationTime=this.creationTime,e.validity=this.validity,e.emitTokenChange()):e.refreshToken())}))}emitTokenChange(e){clearTimeout(this._refreshTimer);const t=this.server?r.id.findServerInfo(this.server):null,s=t?.owningSystemUrl,i=s?r.id.findServerInfo(s):null;!1===e||s&&"portal"!==this.scope&&(!i?.webTierAuth||r.id.normalizeWebTierAuth)||null==this.expires&&null==this.validity||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);const e=r.id.credentials.indexOf(this);e>-1&&r.id.credentials.splice(e,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){const e=(0,c.yd)({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);const e=6e4*this.tokenRefreshBuffer,t=2**31-1;let s=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();s<0?s=0:s>t&&(s=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),s>e?s-e:s)}};(0,i._)([(0,_.Cb)()],ft.prototype,"creationTime",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"expires",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"isAdmin",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"oAuthState",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"resources",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"scope",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"server",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"ssl",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"token",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"tokenRefreshBuffer",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"userId",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"validity",void 0),ft=(0,i._)([(0,m.j)("esri.identity.Credential")],ft);class _t extends pt{}_t.prototype.declaredClass="esri.identity.IdentityManager";const mt=new _t;(0,r.qh)(mt)},2587:(e,t,s)=>{"use strict";s(23756),s(18848),s(940),s(70171);var r=s(94443),i=s(3172),n=s(20102);async function o(e){if(null!=l.fetchBundleAsset)return l.fetchBundleAsset(e);const t=await(0,i.Z)(e,{responseType:"text"});return JSON.parse(t.data)}class a{constructor({base:e="",pattern:t,location:s=new URL(window.location.href)}){let r;r="string"==typeof s?e=>new URL(e,new URL(s,window.location.href)).href:s instanceof URL?e=>new URL(e,s).href:s,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,s,i){const a=t.exec(s);if(!a)throw new n.Z("esri-intl:invalid-bundle",`Bundle id "${s}" is not compatible with the pattern "${t}"`);const l=a[1]?`${a[1]}/`:"",h=a[2],c=(0,r.Su)(i),d=`${l}${h}.json`,u=c?`${l}${h}_${c}.json`:d;let p;try{p=await o(e(u))}catch(t){if(u===d)throw new n.Z("intl:unknown-bundle",`Bundle "${s}" cannot be loaded`,{error:t});try{p=await o(e(d))}catch(e){throw new n.Z("intl:unknown-bundle",`Bundle "${s}" cannot be loaded`,{error:e})}}return p}(this.getAssetUrl,this.matcher,e,t)}}const l={};var h,c=s(99880);(0,r.tz)((h={pattern:"esri/",location:c.V},new a(h)))},23756:(e,t,s)=>{"use strict";s.d(t,{Ze:()=>b,Xr:()=>m,p6:()=>S,f1:()=>A});var r=s(35454),i=s(70171);const n="system",o="unknown",a="UTC";s(17126);const l=Intl.DateTimeFormat().resolvedOptions().timeZone,h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},u={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},f={...p,second:"numeric"},_={"short-date":h,"short-date-short-time":{...h,...p},"short-date-short-time-24":{...h,...p,hour12:!1},"short-date-long-time":{...h,...f},"short-date-long-time-24":{...h,...f,hour12:!1},"short-date-le":h,"short-date-le-short-time":{...h,...p},"short-date-le-short-time-24":{...h,...p,hour12:!1},"short-date-le-long-time":{...h,...f},"short-date-le-long-time-24":{...h,...f,hour12:!1},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...p},"long-month-day-year-short-time-24":{...c,...p,hour12:!1},"long-month-day-year-long-time":{...c,...f},"long-month-day-year-long-time-24":{...c,...f,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...p},"day-short-month-year-short-time-24":{...d,...p,hour12:!1},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,...f,hour12:!1},"long-date":u,"long-date-short-time":{...u,...p},"long-date-short-time-24":{...u,...p,hour12:!1},"long-date-long-time":{...u,...f},"long-date-long-time-24":{...u,...f,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":f},m=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),g={ar:"ar-u-nu-latn-ca-gregory"};let v=new WeakMap;const y=_["short-date-short-time"];function w(e){let t=v.get(e);if(!t){const s=(0,i.Kd)(),r=g[s]||s,n=I(e);t=new Intl.DateTimeFormat(r,n),v.set(e,t)}return t}function b(e){return _[e]}function S(e,t=y){return w(t).format(e)}function I(e){const t=A(e.timeZone??n);return{...e,timeZone:t}}function A(e){switch(e){case n:return l;case o:return a;default:return e}}(0,i.Ze)((()=>{v=new WeakMap}))},70171:(e,t,s)=>{"use strict";s.d(t,{G3:()=>l,Kd:()=>a,Ze:()=>u,qe:()=>c});var r=s(50758);let i;const n=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function o(){return n??globalThis.navigator?.language??"en"}function a(){return void 0===i&&(i=o()),i}function l(e=a()){const t=/^([a-zA-Z]{2,3})(?:[_\-]\w+)*$/.exec(e);return t?.[1].toLowerCase()}const h=[];function c(e){return h.push(e),(0,r.kB)((()=>h.splice(h.indexOf(e),1)))}const d=[];function u(e){return d.push(e),(0,r.kB)((()=>h.splice(d.indexOf(e),1)))}globalThis.addEventListener?.("languagechange",(function(){const e=o();i!==e&&(i=e,[...d].forEach((t=>{t.call(null,e)})),[...h].forEach((t=>{t.call(null,e)})))}))},94443:(e,t,s)=>{"use strict";s.d(t,{ME:()=>f,Su:()=>_,tz:()=>p});var r=s(20102),i=s(50758),n=s(95330),o=s(70171);const a=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,l={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function h(e){return e in l}Object.keys(l);const c=[],d=new Map;function u(e){for(const t of d.keys())m(e.pattern,t)&&d.delete(t)}function p(e){return c.includes(e)||(u(e),c.unshift(e)),(0,i.kB)((()=>{const t=c.indexOf(e);t>-1&&(c.splice(t,1),u(e))}))}async function f(e){const t=(0,o.Kd)();d.has(e)||d.set(e,async function(e,t){const s=[];for(const r of c)if(m(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){s.push(e)}if(s.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:s});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const s=d.get(e);return s&&await g.add(s),s}function _(e){if(!a.test(e))return null;const t=a.exec(e);if(null===t)return null;const[,s,r]=t,i=s+(r?"-"+r.toUpperCase():"");return h(i)?i:h(s)?s:null}function m(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ze)((()=>{d.clear()}));const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,n.hh)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,s)=>{"use strict";s.d(t,{uf:()=>a});var r=s(70171);const i={ar:"ar-u-nu-latn"};let n=new WeakMap,o={};function a(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||o;if(!n.has(t)){const s=(0,r.Kd)(),o=i[(0,r.Kd)()]||s;n.set(t,new Intl.NumberFormat(o,e))}return n.get(t)}(t).format(e)}(0,r.Ze)((()=>{n=new WeakMap,o={}}))},940:(e,t,s)=>{"use strict";s.d(t,{n:()=>h});var r=s(92604),i=s(78286),n=s(19153),o=s(23756),a=s(18848);const l=r.Z.getLogger("esri.intl.substitute");function h(e,t,s={}){const{format:r={}}=s;return(0,n.gx)(e,(e=>function(e,t,s){let r,n;const o=e.indexOf(":");if(-1===o?r=e.trim():(r=e.slice(0,o).trim(),n=e.slice(o+1).trim()),!r)return"";const a=(0,i.hS)(r,t);if(null==a)return"";const l=(n?s?.[n]:null)??s?.[r];return l?c(a,l):n?d(a,n):u(a)}(e,t,r)))}function c(e,t){switch(t.type){case"date":return(0,o.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),u(e)}}function d(e,t){switch(t.toLowerCase()){case"dateformat":return(0,o.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,o.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):u(e)}}function u(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,o.p6)(e):""}}}}]);
|
|
1
|
+
(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[450,661,5234,9880],{41993:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=41993,e.exports=t},99880:(e,t,s)=>{"use strict";s.d(t,{V:()=>l});var r=s(68773),i=(s(3172),s(20102)),n=s(92604),o=s(17452);const a=n.Z.getLogger("esri.assets");function l(e){if(!r.default.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new i.Z("assets:path-not-set","config.assetsPath is not set");return(0,o.v_)(r.default.assetsPath,e)}},46791:(e,t,s)=>{"use strict";s.d(t,{Z:()=>O});var r,i=s(43697),n=s(3894),o=s(32448),a=s(50758),l=s(22974),h=s(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(r||(r={}));var c,d=s(1654),u=s(75215),p=s(58971),f=s(5600),_=s(52421),m=s(52011),g=s(10661);class v{constructor(e,t,s,r,i){this.target=e,this.added=t,this.removed=s,this.start=r,this.deleteCount=i}}const y=new h.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1}));function w(e){return e?e instanceof x?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function b(e){if(e&&e.length)return e[0]}function S(e,t,s,r){const i=Math.min(e.length-s,t.length-r);let n=0;for(;n<i&&e[s+n]===t[r+n];)n++;return n}function I(e,t,s,r){t&&t.forEach(((t,i,n)=>{e.push(t),I(e,s.call(r,t,i,n),s,r)}))}const A=new Set,k=new Set,C=new Set,T=new Map;let U=0,x=c=class extends o.Z.EventedAccessor{static isCollection(e){return null!=e&&e instanceof c}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new g.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:U++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof c?{items:e}:e:{}}destroy(){this._removeAllRaw()}*[Symbol.iterator](){yield*this.items}get items(){return(0,p.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(r.ADD)||(this._splice(0,this.length,w(e)),this._emitAfterChanges(r.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,s={removed:!1,callback:t};return e.push(s),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,a.kB)((()=>{s.removed=!0,e.splice(e.indexOf(s),1)}))}return this._emitter.on(e,t)}once(e,t){const s="deref"in t?()=>t.deref():()=>t,r=this.on(e,(e=>{s()?.call(null,e),r.remove()}));return r}add(e,t){if((0,p.it)(this._observable),this._emitBeforeChanges(r.ADD))return this;const s=this.getNextIndex(t??null);return this._splice(s,0,[e]),this._emitAfterChanges(r.ADD),this}addMany(e,t=this._items.length){if((0,p.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(r.ADD))return this;const s=this.getNextIndex(t);return this._splice(s,0,w(e)),this._emitAfterChanges(r.ADD),this}at(e){if((0,p.it)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return[];const e=this._removeAllRaw();return this._emitAfterChanges(r.REMOVE),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.it)(this._observable),this._createNewInstance({items:this._items.map(l.d9)})}concat(...e){(0,p.it)(this._observable);const t=e.map(w);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const s=this._splice(0,this.length),i=s.length;for(let r=0;r<i;r++)e.call(t,s[r],r,s);this._emitAfterChanges(r.REMOVE)}every(e,t){return(0,p.it)(this._observable),this._items.every(e,t)}filter(e,t){let s;return(0,p.it)(this._observable),s=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:s})}find(e,t){return(0,p.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,p.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,p.it)(this._observable);const s=[];return I(s,this,e,t),new c(s)}forEach(e,t){return(0,p.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,p.it)(this._observable),this._items[e]}getNextIndex(e){(0,p.it)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,p.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,p.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,p.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,p.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,p.it)(this._observable);const s=this._items.map(e,t);return new c({items:s})}reorder(e,t=this.length-1){(0,p.it)(this._observable);const s=this.indexOf(e);if(-1!==s){if(t<0?t=0:t>=this.length&&(t=this.length-1),s!==t){if(this._emitBeforeChanges(r.MOVE))return e;this._splice(s,1),this._splice(t,0,[e]),this._emitAfterChanges(r.MOVE)}return e}}pop(){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=b(this._splice(this.length-1,1));return this._emitAfterChanges(r.REMOVE),e}push(...e){return(0,p.it)(this._observable),this._emitBeforeChanges(r.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(r.ADD)),this.length}reduce(e,t){(0,p.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduce(e,t):s.reduce(e)}reduceRight(e,t){(0,p.it)(this._observable);const s=this._items;return 2===arguments.length?s.reduceRight(e,t):s.reduceRight(e)}remove(e){return(0,p.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,p.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(r.REMOVE))return;const t=b(this._splice(e,1));return this._emitAfterChanges(r.REMOVE),t}removeMany(e){if((0,p.it)(this._observable),!e||!e.length||this._emitBeforeChanges(r.REMOVE))return[];const t=e instanceof c?e.toArray():e,s=this._items,i=[],n=t.length;for(let e=0;e<n;e++){const r=t[e],n=s.indexOf(r);if(n>-1){const r=1+S(t,s,e+1,n+1),o=this._splice(n,r);o&&o.length>0&&i.push.apply(i,o),e+=r-1}}return this._emitAfterChanges(r.REMOVE),i}reverse(){if((0,p.it)(this._observable),this._emitBeforeChanges(r.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(r.MOVE),this}shift(){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=b(this._splice(0,1));return this._emitAfterChanges(r.REMOVE),e}slice(e=0,t=this.length){return(0,p.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,p.it)(this._observable),this._items.some(e,t)}sort(e){if((0,p.it)(this._observable),!this.length||this._emitBeforeChanges(r.MOVE))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(r.MOVE),this}splice(e,t,...s){(0,p.it)(this._observable);const i=(t?r.REMOVE:0)|(s.length?r.ADD:0);if(this._emitBeforeChanges(i))return[];const n=this._splice(e,t,s)||[];return this._emitAfterChanges(i),n}toArray(){return(0,p.it)(this._observable),this._items.slice()}toJSON(){return(0,p.it)(this._observable),this.toArray()}toLocaleString(){return(0,p.it)(this._observable),this._items.toLocaleString()}toString(){return(0,p.it)(this._observable),this._items.toString()}unshift(...e){return(0,p.it)(this._observable),!e.length||this._emitBeforeChanges(r.ADD)||(this._splice(0,0,e),this._emitAfterChanges(r.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,s){const r=this._items,i=this.itemType;let n,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,d.Os)((()=>this._dispatchChange()))),e<0&&(e+=this.length),t){if(o=r.splice(e,t),this.hasEventListener("before-remove")){const t=y.acquire();t.target=this,t.cancellable=!0;for(let s=0,i=o.length;s<i;s++)n=o[s],t.reset(n),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(s,1),r.splice(e,0,n),e+=1,s-=1,i-=1);y.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=y.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let s=0;s<t;s++)e.reset(o[s]),this.emit("after-remove",e);y.release(e)}}if(s&&s.length){if(i){const e=[];for(const t of s){const s=i.ensureType(t);null==s&&null!=t||e.push(s)}s=e}const t=this.hasEventListener("before-add"),n=this.hasEventListener("after-add"),o=e===this.length;if(t||n){const i=y.acquire();i.target=this,i.cancellable=!0;const a=y.acquire();a.target=this,a.cancellable=!1;for(const l of s)t?(i.reset(l),this.emit("before-add",i),i.defaultPrevented||(o?r.push(l):r.splice(e++,0,l),this._set("length",r.length),n&&(a.reset(l),this.emit("after-add",a)))):(o?r.push(l):r.splice(e++,0,l),this._set("length",r.length),a.reset(l),this.emit("after-add",a));y.release(a),y.release(i)}else{if(o)for(const e of s)r.push(e);else r.splice(e,0,...s);this._set("length",r.length)}}if((s&&s.length||o&&o.length)&&this._notifyChangeEvent(s,o),this.hasEventListener("after-splice")){const r=new v(this,s,o,e,t);this.emit("after-splice",r)}return o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const s=y.acquire();s.target=this,s.cancellable=!0,s.type=e,this.emit("before-changes",s),t=s.defaultPrevented,y.release(s)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=y.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),y.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;A.clear(),k.clear(),C.clear();for(const{added:t,removed:s}of e){if(t)if(0===C.size&&0===k.size)for(const e of t)A.add(e);else for(const e of t)k.has(e)?(C.add(e),k.delete(e)):C.has(e)||A.add(e);if(s)if(0===C.size&&0===A.size)for(const e of s)k.add(e);else for(const e of s)A.has(e)?A.delete(e):(C.delete(e),k.add(e))}const s=n.Z.acquire();A.forEach((e=>{s.push(e)}));const r=n.Z.acquire();k.forEach((e=>{r.push(e)}));const i=this._items,o=t.items,a=n.Z.acquire();if(C.forEach((e=>{o.indexOf(e)!==i.indexOf(e)&&a.push(e)})),t.listeners&&(s.length||r.length||a.length)){const e={target:this,added:s,removed:r,moved:a},i=t.listeners.length;for(let s=0;s<i;s++){const r=t.listeners[s];r.removed||r.callback.call(this,e)}}n.Z.release(s),n.Z.release(r),n.Z.release(a)}A.clear(),k.clear(),C.clear()}};x.ofType=e=>{if(!e)return c;if(T.has(e))return T.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const s in e.typeMap){const r=e.typeMap[s].prototype.declaredClass;t?t+=` | ${r}`:t=r}let s=class extends c{};return(0,i._)([(0,_.c)({Type:e,ensureType:"function"==typeof e?(0,u.se)(e):(0,u.N7)(e)})],s.prototype,"itemType",void 0),s=(0,i._)([(0,m.j)(`esri.core.Collection<${t}>`)],s),T.set(e,s),s},(0,i._)([(0,f.Cb)()],x.prototype,"length",void 0),(0,i._)([(0,f.Cb)()],x.prototype,"items",null),x=c=(0,i._)([(0,m.j)("esri.core.Collection")],x);const O=x},32448:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var r=s(43697),i=s(92036),n=s(50758),o=s(52011);class a{constructor(){this._emitter=new a.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this._target=e,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(e,t){let s=this._listenersMap?.get(e);if(!s)return!1;const r=this._target||this;let i=!1;for(const e of s.slice()){const s="deref"in e?e.deref():e;s?s?.call(r,t):i=!0}return i&&(s=s.filter((e=>!("deref"in e)||null!=e.deref())),this._listenersMap.set(e,s)),s.length>0}on(e,t){if(Array.isArray(e)){const s=e.map((e=>this.on(e,t)));return(0,n.AL)(s)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const s=this._listenersMap.get(e)||[];return s.push(t),this._listenersMap.set(e,s),(0,n.kB)((()=>{const s=this._listenersMap?.get(e),r=s?.indexOf(t)??-1;r>=0&&s.splice(r,1)}))}once(e,t){const s=this.on(e,(e=>{s.remove();const r="deref"in t?t.deref():t;r?.call(null,e)}));return s}hasEventListener(e){const t=this._listenersMap&&this._listenersMap.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let s=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return s=(0,r._)([(0,o.j)("esri.core.Evented")],s),s};let s=class extends i.Z{constructor(){super(...arguments),this._emitter=new a.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};s=(0,r._)([(0,o.j)("esri.core.Evented")],s),e.EventedAccessor=s}(a||(a={}));const l=a},609:(e,t,s)=>{"use strict";s.d(t,{D:()=>d,v:()=>c});var r,i,n=s(43697),o=s(92036),a=s(95330),l=s(52011);(i=r||(r={}))[i.PENDING=0]="PENDING",i[i.RESOLVED=1]="RESOLVED",i[i.REJECTED=2]="REJECTED";class h{constructor(){this._resolver=(0,a.hh)(),this._status=r.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=r.RESOLVED,this._cleanUp()}),(()=>{this._status=r.REJECTED,this._cleanUp()})),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return this._status===r.RESOLVED}isRejected(){return this._status===r.REJECTED}isFulfilled(){return this._status!==r.PENDING}abort(){this._resolver.reject((0,a.zE)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const e=(0,a.hh)(),t=[...this._resolvingPromises,e.promise],s=this._allPromise=Promise.all(t);s.then((()=>{this.isFulfilled()||this._allPromise!==s||this._resolver.resolve()}),(e=>{this.isFulfilled()||this._allPromise!==s||(0,a.D_)(e)||this._resolver.reject(e)})),e.resolve()}}const c=e=>{let t=class extends e{constructor(...e){super(...e),this._promiseProps=new h,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then((()=>this)).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}};return t=(0,n._)([(0,l.j)("esri.core.Promise")],t),t};let d=class extends(c(o.Z)){};d=(0,n._)([(0,l.j)("esri.core.Promise")],d)},90578:(e,t,s)=>{"use strict";s.d(t,{p:()=>l});var r=s(75215),i=s(7628);const n=Object.prototype.toString;function o(e){const t="__accessorMetadata__"in e?(0,r.se)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,s,r){(0,i.Oe)(e,t).cast=r}function l(...e){if(3!==e.length||"string"!=typeof e[1])return 1===e.length&&"[object Function]"===n.call(e[0])?o(e[0]):1===e.length&&"string"==typeof e[0]?function(e){return(t,s)=>{(0,i.Oe)(t,e).cast=t[s]}}(e[0]):void 0}},52421:(e,t,s)=>{"use strict";function r(e){return(t,s)=>{t[s]=e}}s.d(t,{c:()=>r})},10661:(e,t,s)=>{"use strict";s.d(t,{s:()=>i});var r=s(42100);class i extends r.s{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},66643:(e,t,s)=>{"use strict";s.d(t,{Ed:()=>h,UI:()=>c,mt:()=>f,q6:()=>p,vr:()=>_});var r=s(43697),i=s(92036),n=s(70586),o=s(95330),a=s(5600),l=s(52011);function h(e,t,s){return(0,o.as)(e.map(((e,r)=>t.apply(s,[e,r]))))}async function c(e,t,s){return(await(0,o.as)(e.map(((e,r)=>t.apply(s,[e,r]))))).map((e=>e.value))}function d(e){return{ok:!0,value:e}}function u(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return d(await e)}catch(e){return u(e)}}async function f(e){try{return d(await e)}catch(e){return(0,o.r9)(e),u(e)}}function _(e,t){return new m(e,t)}let m=class extends i.Z{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.IM)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:s}=this._abortController;this.promise=e(s),this.promise.then((e=>{this._result=d(e),this._cleanup()}),(e=>{this._result=u(e),this._cleanup()})),this._abortHandle=(0,o.fu)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.hw)(this._abortHandle),this._abortController=null}};(0,r._)([(0,a.Cb)()],m.prototype,"value",null),(0,r._)([(0,a.Cb)()],m.prototype,"error",null),(0,r._)([(0,a.Cb)()],m.prototype,"finished",null),(0,r._)([(0,a.Cb)()],m.prototype,"promise",void 0),(0,r._)([(0,a.Cb)()],m.prototype,"_result",void 0),m=(0,r._)([(0,l.j)("esri.core.asyncUtils.ReactiveTask")],m)},35454:(e,t,s)=>{"use strict";s.d(t,{X:()=>i,w:()=>n});var r=s(78286);class i{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=this._invertMap(e),this.apiValues=this._getKeysSorted(this._apiToJSON),this.jsonValues=this._getKeysSorted(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,s)=>{const i=this.toJSON(e);void 0!==i&&(0,r.RB)(s,i,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}_invertMap(e){const t={};for(const s in e)t[e[s]]=s;return t}_getKeysSorted(e){const t=[];for(const s in e)t.push(s);return t.sort(),t}}function n(){return function(e,t){return new i(e,{ignoreUnknown:!0,...t})}}},17445:(e,t,s)=>{"use strict";s.d(t,{N1:()=>u,YP:()=>l,Z_:()=>_,gx:()=>h,nn:()=>m,on:()=>d,tX:()=>g}),s(66643),s(46791);var r=s(91460),i=s(50758),n=s(70586),o=s(95330),a=s(26258);function l(e,t,s={}){return c(e,t,s,p)}function h(e,t,s={}){return c(e,t,s,f)}function c(e,t,s={},r){let i=null;const o=s.once?(e,s)=>{r(e)&&((0,n.hw)(i),t(e,s))}:(e,s)=>{r(e)&&t(e,s)};if(i=(0,a.aQ)(e,o,s.sync,s.equals),s.initial){const t=e();o(t,t)}return i}function d(e,t,s,o={}){let a=null,h=null,c=null;function d(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function u(e){o.once&&o.once&&(0,n.hw)(c),s(e)}const p=l(e,((e,s)=>{d(),(0,r.vT)(e)&&(a=e,h=(0,r.on)(e,t,u),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return c=(0,i.kB)((()=>{p.remove(),d()})),c}function u(e,t){return function(e,t,s){if((0,o.Hc)(s))return Promise.reject((0,o.zE)());const r=e();if(t?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,n.hw)(a)}return new Promise(((r,n)=>{a=(0,i.AL)([(0,o.fu)(s,(()=>{l(),n((0,o.zE)())})),c(e,(e=>{l(),r(e)}),{sync:!1,once:!0},t??p)])}))}(e,f,t)}function p(e){return!0}function f(e){return!!e}s(87538);const _={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},41123:(e,t,s)=>{"use strict";s.d(t,{D:()=>i,z:()=>n});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${i()}}`}},73660:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>mt});var r=s(40330),i=s(43697),n=s(68773),o=s(3172),a=s(20102),l=s(32448),h=s(91460),c=s(22974),d=s(78286),u=s(95330),p=s(17445),f=s(17452),_=s(5600),m=(s(75215),s(52011)),g=(s(67676),s(80442),s(940)),v=(s(2587),s(60235));Element.prototype.closest;var y=s(92604),w=s(70586),b=s(609),S=s(41123),I=s(90578),A=s(58971),k=s(38805),C=s(8728),T=s(3894),U=s(50758);const x=new Map;function O(){x.clear()}function P(e){x.delete(e)}y.Z.getLogger("esri.widgets.support.widgetUtils");function E(e){const t=T.Z.acquire();for(let e=0;e<arguments.length;e++){const s=arguments[e],r=typeof s;if("string"===r)t.push(s);else if(Array.isArray(s))t.push.apply(t,s);else if("object"===r)for(const e in s)s[e]&&t.push(e)}const s=t.join(" ");return T.Z.release(t),s}function R(e){this[e.getAttribute("data-node-ref")]=e}(()=>{const e=new Map;new ResizeObserver((t=>{O();for(const s of t)e.get(s.target)?.(s)}))})();const D=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce(((e,t)=>(e[t]=[],e)),{}),N=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],L=new C.Z({whiteList:D,onTagAttr:(e,t,s)=>{const r=`${t}="${s}"`;if(N.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),j="http://www.w3.org/",M=`${j}2000/svg`,q=`${j}1999/xlink`;let B=[],V=(e,t)=>{let s={};return Object.keys(e).forEach((t=>{s[t]=e[t]})),t&&Object.keys(t).forEach((e=>{s[e]=t[e]})),s},Z=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),$=e=>{if("string"!=typeof e)throw new Error("Style values must be strings")},F=(e,t,s)=>{if(""!==t.vnodeSelector)for(let r=s;r<e.length;r++)if(Z(e[r],t))return r;return-1},z=(e,t,s,r)=>{let i=e[t];if(""===i.vnodeSelector)return;let n=i.properties;if(!(n?void 0===n.key?n.bind:n.key:void 0))for(let n=0;n<e.length;n++)if(n!==t){let t=e[n];if(Z(t,i))throw new Error(`${s.vnodeSelector} had a ${i.vnodeSelector} child ${"added"===r?r:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}},H=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},J=[],W=!1,Y=e=>{(e.children||[]).forEach(Y),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},G=()=>{W=!1,J.forEach(Y),J.length=0},K=e=>{J.push(e),W||(W=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(G,{timeout:16}):setTimeout(G,16))},X=e=>{let t=e.domNode;if(e.properties){let s=e.properties.exitAnimation;if(s){t.style.pointerEvents="none";let r=()=>{t.parentNode&&(t.parentNode.removeChild(t),K(e))};return void s(t,r,e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),K(e))},Q=(e,t,s)=>{if(!t)return;let r=s.eventHandlerInterceptor,i=Object.keys(t),n=i.length;for(let o=0;o<n;o++){let n=i[o],a=t[n];if("className"===n)throw new Error('Property "className" is not supported, use "class".');if("class"===n)ie(e,a,!0);else if("classes"===n){let t=Object.keys(a),s=t.length;for(let r=0;r<s;r++){let s=t[r];a[s]&&e.classList.add(s)}}else if("styles"===n){let t=Object.keys(a),r=t.length;for(let i=0;i<r;i++){let r=t[i],n=a[r];n&&($(n),s.styleApplyer(e,r,n))}}else if("key"!==n&&null!=a){let i=typeof a;"function"===i?(0===n.lastIndexOf("on",0)&&(r&&(a=r(n,a,e,t)),"oninput"===n&&function(){let e=a;a=function(t){e.apply(this,[t]),t.target["oninput-value"]=t.target.value}}()),e[n]=a):s.namespace===M?"href"===n?e.setAttributeNS(q,n,a):e.setAttribute(n,a):"string"===i&&"value"!==n?"innerHTML"===n?e[n]=L.sanitize(a):ee(e)&&n in e?e[n]=a:e.setAttribute(n,a):e[n]=a}}};function ee(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;const t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}let te,se=(e,t,s)=>{((e,t,s)=>{if(t)for(let r of t)re(r,e,void 0,s)})(e,t.children,s),t.text&&(e.textContent=t.text),Q(e,t.properties,s),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,s,t.vnodeSelector,t.properties,t.children])},re=(e,t,s,r)=>{let i,n=0,o=e.vnodeSelector,a=t.ownerDocument;if(""===o)i=e.domNode=a.createTextNode(e.text),void 0!==s?t.insertBefore(i,s):t.appendChild(i);else{for(let l=0;l<=o.length;++l){let h=o.charAt(l);if(l===o.length||"."===h||"#"===h){let h=o.charAt(n-1),c=o.slice(n,l);"."===h?i.classList.add(c):"#"===h?i.id=c:("svg"===c&&(r=V(r,{namespace:M})),void 0!==r.namespace?i=e.domNode=a.createElementNS(r.namespace,c):(i=e.domNode=e.domNode||a.createElement(c),"input"===c&&e.properties&&void 0!==e.properties.type&&i.setAttribute("type",e.properties.type)),void 0!==s?t.insertBefore(i,s):i.parentNode!==t&&t.appendChild(i)),n=l+1}}se(i,e,r)}},ie=(e,t,s)=>{t&&t.split(" ").forEach((t=>{t&&e.classList.toggle(t,s)}))},ne=(e,t,s,r,i)=>{if(s===r)return!1;r=r||B;let n,o=(s=s||B).length,a=r.length,l=0,h=0,c=!1;for(;h<a;){let a=l<o?s[l]:void 0,d=r[h];if(void 0!==a&&Z(a,d))c=te(a,d,i)||c,l++;else{let a=F(s,d,l+1);if(a>=0){for(n=l;n<a;n++)X(s[n]),z(s,n,e,"removed");c=te(s[a],d,i)||c,l=a+1}else re(d,t,l<o?s[l].domNode:void 0,i),H(d),z(r,h,e,"added")}h++}if(o>l)for(n=l;n<o;n++)X(s[n]),z(s,n,e,"removed");return c};te=(e,t,s)=>{let r=e.domNode,i=!1;if(e===t)return!1;let n=!1;if(""===t.vnodeSelector){if(t.text!==e.text){let e=r.ownerDocument.createTextNode(t.text);return r.parentNode.replaceChild(e,r),t.domNode=e,i=!0,i}t.domNode=r}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(s=V(s,{namespace:M})),e.text!==t.text&&(n=!0,void 0===t.text?r.removeChild(r.firstChild):r.textContent=t.text),t.domNode=r,n=ne(t,r,e.children,t.children,s)||n,n=((e,t,s,r)=>{if(!s)return;let i=!1,n=Object.keys(s),o=n.length;for(let a=0;a<o;a++){let o=n[a],l=s[o],h=t[o];if("class"===o)h!==l&&(ie(e,h,!1),ie(e,l,!0));else if("classes"===o){let t=e.classList,s=Object.keys(l),r=s.length;for(let e=0;e<r;e++){let r=s[e],n=!!l[r];n!==!!h[r]&&(i=!0,n?t.add(r):t.remove(r))}}else if("styles"===o){let t=Object.keys(l),s=t.length;for(let n=0;n<s;n++){let s=t[n],o=l[s];o!==h[s]&&(i=!0,o?($(o),r.styleApplyer(e,s,o)):r.styleApplyer(e,s,""))}}else if(l||"string"!=typeof h||(l=""),"value"!==o||ee(e)){if(l!==h){let t=typeof l;"function"===t&&r.eventHandlerInterceptor||(r.namespace===M?"href"===o?e.setAttributeNS(q,o,l):e.setAttribute(o,l):"string"===t?"innerHTML"===o?e[o]=L.sanitize(l):"role"===o&&""===l?e.removeAttribute(o):ee(e)&&o in e?e[o]=l:e.setAttribute(o,l):e[o]!==l&&(e[o]=l),i=!0)}}else{let t=e[o];t!==l&&(e["oninput-value"]?t===e["oninput-value"]:l!==h)&&(e[o]=l,e["oninput-value"]=void 0),l!==h&&(i=!0)}}return i})(r,e.properties,t.properties,s)||n,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[r,s,t.vnodeSelector,t.properties,t.children]);return n&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(r,t.properties,e.properties),i};let oe=(e,t)=>({getLastRender:()=>e,update:s=>{if(e.vnodeSelector!==s.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let r=e;e=s,te(r,s,t)},domNode:e.domNode});const ae={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,s)=>{"-"===t.charAt(0)?e.style.setProperty(t,s):e.style[t]=s}};let le,he=e=>V(ae,e),ce=(e,t,s)=>(s=he(s),re(t,e,void 0,s),oe(t,s)),de=(e,t,s)=>(s=he(s),re(t,e.parentNode,e,s),oe(t,s)),ue=(e,t,s)=>(s=he(s),t.domNode=e,se(e,t,s),oe(t,s)),pe=(e,t,s)=>(s=he(s),re(t,e.parentNode,e,s),e.parentNode.removeChild(e),oe(t,s));le=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0];const fe={handleInterceptedEvent:(e,t,s,r)=>(e.scheduleRender(),t.properties[`on${r.type}`].apply(t.properties.bind||s,[r]))},_e={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,s)=>{"-"===t.charAt(0)?e.style.setProperty(t,s):e.style[t]=s}},me=(e,t,s=!1)=>{let r=e;return t.forEach(((e,i)=>{const n=r?.children?((e,t)=>e.find(t))(r.children,(t=>t.domNode===e)):void 0;s&&!n&&i!==t.length-1||(r=n)})),r};var ge=s(65161),ve=s(99880);let ye;ye="components/assets";const we=Symbol("widget"),be=Symbol("widget-test-data"),Se=[],Ie={},Ae=new WeakMap;function ke(e,t){let s=t.children;if(s&&s.length)for(let t=0;t<s.length;++t)s[t]=ke(e,s[t]);else s=Se;const r=t.vnodeSelector;if(xe(r)){const i=t.properties||Ie,n=i.key||r;return{vnodeSelector:"div",properties:{key:n,afterCreate:Ce,afterUpdate:Te,afterRemoved:Ue,parentWidget:e,widgetConstructor:r,widgetProperties:{...i,key:n,children:s}},children:void 0,text:void 0,domNode:null}}return t}function Ce(e,t,s,{parentWidget:r,widgetConstructor:i,widgetProperties:n}){const o=new i(n);o.container=e,Ae.set(e,o),o.afterCreate?.(o,e),r.addHandles((0,U.kB)((()=>Ue(e)))),queueMicrotask((()=>{o[be].projector.renderNow()}))}function Te(e,t,s,{widgetProperties:r}){const i=Ae.get(e);i&&(i.set(r),i.afterUpdate?.(i,e))}function Ue(e){const t=Ae.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),Ae.delete(e))}function xe(e){return"function"==typeof e&&e[we]}const Oe=new Set;var Pe,Ee=s(70171),Re=s(94443);let De=0;function Ne(e,t){for(const s in t)null!=e[s]&&("object"==typeof e[s]&&"object"==typeof t[s]?Ne(e[s],t?.[s]):e[s]=t[s]);return e}const Le=(e=>{let t;const s={...fe,...e},r=(n=s,{..._e,...n}),i=r.performanceLogger;var n;let o,a=!0,l=!1;const h=[],c=[],d=(e,n,o)=>{let a;r.eventHandlerInterceptor=(e,r,n,o)=>function(e){let r;i("domEvent",e);const n=((e,t)=>{const s=[];for(;e&&e!==t;)s.push(e),e=e.parentNode;return s})(e.currentTarget,a.domNode),o=n.some((e=>customElements.get(e?.tagName?.toLowerCase())));if(e.eventPhase!==Event.CAPTURING_PHASE&&o){const t=e.composedPath(),s=t.slice(t.indexOf(e.currentTarget),t.indexOf(a.domNode)).filter((e=>e.getRootNode()===e.ownerDocument)).reverse();r=me(a.getLastRender(),s,!0)}else n.reverse(),r=me(a.getLastRender(),n);let l;return r&&(l=s.handleInterceptedEvent(t,r,this,e)),i("domEventProcessed",e),l},s.postProcessProjectionOptions?.(r);const l=o();a=e(n,l,r),r.eventHandlerInterceptor=void 0,h.push(a),c.push(o),s.afterFirstVNodeRendered&&s.afterFirstVNodeRendered(a,l)};let u=()=>{if(o=void 0,a){a=!1,i("renderStart",void 0);for(let e=0;e<h.length;e++){const t=c[e]();i("rendered",void 0),h[e].update(t),i("patched",void 0)}i("renderDone",void 0),a=!0}};return s.modifyDoRenderImplementation&&(u=s.modifyDoRenderImplementation(u,h,c)),t={renderNow:u,scheduleRender:()=>{o||l||(o=requestAnimationFrame(u))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),l=!0},resume:()=>{l=!1,a=!0,t.scheduleRender()},append:(e,t)=>{d(ce,e,t)},insertBefore:(e,t)=>{d(de,e,t)},merge:(e,t)=>{d(ue,e,t)},replace:(e,t)=>{d(pe,e,t)},detach:e=>{for(let t=0;t<c.length;t++)if(c[t]===e)return c.splice(t,1),h.splice(t,1)[0];throw new Error("renderFunction was not found")}},t})({postProcessProjectionOptions(e){const t=e.eventHandlerInterceptor,s=/capture$/i;e.eventHandlerInterceptor=(e,r,i,n)=>{const o=t?.(e,r,i,n),a=s.test(e);if(!((e=e.replace(s,"")).toLowerCase()in i)||a){const t=e[2].toLowerCase()+e.slice(3),s=e=>o?.call(i,e);i.addEventListener(t,s,a);const r=()=>i.removeEventListener(t,s,a),l=n.afterRemoved;n.afterRemoved=e=>{l?.(e),r()}}return o}},handleInterceptedEvent(e,t,s,r){const{eventPhase:i,type:n}=r,o=i===Event.CAPTURING_PHASE;let a=`on${n}${o?"capture":""}`;const l=t.properties;(l&&a in l||(a=`on${n[0].toUpperCase()}${n.slice(1)}${o?"Capture":""}`,l&&a in l))&&(O(),e.scheduleRender(),l[a].call(l.bind||s,r))}});let je=!1,Me=class extends((0,b.v)(l.Z.EventedAccessor)){constructor(e,t){super(e,t),this._attached=!1,this._projector=Le,this._readyForTrueRender=!1,this.iconClass="esri-icon-checkbox-unchecked",this.icon=null,this.key=this,this._loadLocale=(0,u.Ds)((async()=>{if(this._messageBundleProps?.length){const e=await Promise.allSettled(this._messageBundleProps.map((async({bundlePath:e,propertyName:t})=>{if(this.destroyed)return;let s=await(0,Re.ME)(e);this.uiStrings&&Object.keys(this.uiStrings)&&(s=Ne((0,c.d9)(s),this.uiStrings)),this[t]=s})));if(this.destroyed)return;for(const t of e)"rejected"===t.status&&y.Z.getLogger(this).error("widget-intl:locale-error",this.declaredClass,t.reason)}await this.loadLocale()})),function(){try{(0,ge.K3)(".")}catch{(0,ge.YY)((0,f.hF)((0,ve.V)("components/assets")))}}();const s="esri-widget-uid-"+(0,S.D)(),r=this.render.bind(this);this._trackingTarget=new k.M((()=>this.scheduleRender()));const i=()=>{if(!this._readyForTrueRender||this.destroyed)return null;const e=r();let{properties:t}=e;t||(e.properties=t={});const{key:i}=t;if(i||(t.key=s),xe(e.vnodeSelector)){if(!this.visible)return{vnodeSelector:"div",properties:{key:`${s}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}}else this.visible?t.styles||(t.styles={}):(t.class="",t.styles={display:"none"}),t.styles.display||(t.styles.display="");let n=0;return e.children?.forEach((e=>{if(xe(e.vnodeSelector))return;let{properties:t}=e;t||(e.properties=t={}),t.key||(t.key=`${this.id}--${n++}`)})),ke(this,e)};this.render=()=>{if(je)return i();let e=function(e){return x.get(e)}(this)??null;if(e)return e;this._trackingTarget.clear(),je=!0;try{e=(0,A.LJ)(this._trackingTarget,i)}catch(e){throw console.error(e),e}finally{je=!1}return e&&function(e,t){x.set(e,t)}(this,e),e};const n=this.beforeFirstRender();var o;n?this._resourcesFetch=n.then((()=>{this._readyForTrueRender=!0,this._postInitialize()})):(this._resourcesFetch=Promise.resolve().then((()=>{this._postInitialize()})),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),o=this._resourcesFetch,Oe.add(o),o.finally((()=>Oe.delete(o)))}normalizeCtorArgs(e,t){const s={...e};return t&&(s.container=t),s}postInitialize(){}beforeFirstRender(){const e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then((()=>{})).catch(u.H9):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||((0,w.SC)(this._trackingTarget),(0,w.SC)(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,P(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return function(e){return"string"==typeof e?document.getElementById(e):e??null}(e)}get domNode(){return this.container}set domNode(e){this.container=e}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+De++}set id(e){e&&this._set("id",e)}get label(){return this.declaredClass.split(".").pop()}set label(e){this._overrideIfSome("label",e)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(e){this._set("visible",e)}get[(Pe=we,be)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(P(this),this._projector.scheduleRender())}own(e){(0,v.XV)(y.Z.getLogger(this.declaredClass),"`Widget.own()` is deprecated in favor of Widget.addHandles()'",{replacement:"Widget.addHandles()",version:"4.28"}),this.addHandles(e)}classes(...e){return E.apply(this,e)}renderNow(){P(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles((0,p.YP)((()=>this.viewModel),((e,t)=>{t&&this.removeHandles("delegated-events"),e&&(0,h.vT)(e)&&this.addHandles(this._delegatedEventNames.map((t=>(0,h.on)(e,t,(e=>{this.emit(t,e)})))),"delegated-events")}),p.tX)),this.postInitialize();const e=async()=>{await this._loadLocale().catch(u.H9),this.scheduleRender()};this.addHandles([(0,Ee.qe)(e),(0,p.YP)((()=>this.uiStrings),e),(0,p.gx)((()=>this.container),(e=>{this.destroyed||this._attach(e)}),{initial:!0,once:!0})])}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){this._attached&&(this._projector.detach(this.render),this._attached=!1),e?.parentNode?.removeChild(e)}};Me[Pe]=!0,(0,i._)([(0,_.Cb)()],Me.prototype,"_readyForTrueRender",void 0),(0,i._)([(0,_.Cb)({value:null})],Me.prototype,"container",null),(0,i._)([(0,I.p)("container")],Me.prototype,"castContainer",null),(0,i._)([(0,_.Cb)()],Me.prototype,"iconClass",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"icon",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"id",null),(0,i._)([(0,_.Cb)()],Me.prototype,"label",null),(0,i._)([(0,_.Cb)()],Me.prototype,"renderable",null),(0,i._)([(0,_.Cb)()],Me.prototype,"uiStrings",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"viewModel",void 0),(0,i._)([(0,_.Cb)({value:!0})],Me.prototype,"visible",null),(0,i._)([(0,_.Cb)()],Me.prototype,"key",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"children",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"afterCreate",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"afterUpdate",void 0),(0,i._)([(0,_.Cb)()],Me.prototype,"afterRemoved",void 0),Me=(0,i._)([(0,m.j)("esri.widgets.Widget")],Me);const qe=Me;function Be(e){return(t,s)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:s})}}var Ve=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},Ze=function(e,t){for(var s=0,r=e.length;s<r;s++){var i=e[s];Array.isArray(i)?Ze(i,t):null!=i&&!1!==i&&(i.hasOwnProperty("vnodeSelector")||(i=Ve(i)),t.push(i))}};function $e(e,t,...s){return"function"!=typeof e||xe(e)?function(e,t){for(var s=[],r=2;r<arguments.length;r++)s[r-2]=arguments[r];if(1===s.length&&"string"==typeof s[0])return{vnodeSelector:e,properties:t||void 0,children:void 0,text:s[0],domNode:null};var i=[];return Ze(s,i),{vnodeSelector:e,properties:t||void 0,children:i,text:void 0,domNode:null}}(e,t,...s):e(t,...s)}const Fe="esri-identity-form",ze={base:Fe,group:`${Fe}__group`,label:`${Fe}__label`,footer:`${Fe}__footer`,esriInput:"esri-input",esriButton:"esri-button",esriButtonSecondary:"esri-button--secondary"};let He=class extends qe{constructor(e,t){super(e,t),this._usernameInputNode=null,this._passwordInputNode=null,this.signingIn=!1,this.server=null,this.resource=null,this.error=null,this.oAuthPrompt=!1}render(){const{error:e,server:t,resource:s,signingIn:r,oAuthPrompt:i,messages:n}=this,o=$e("div",{class:ze.group},(0,g.n)(i?n.oAuthInfo:n.info,{server:t&&/\.arcgis\.com/i.test(t)?"ArcGIS Online":t,resource:`(${s||n.lblItem})`})),a=i?null:$e("div",{class:ze.group,key:"username"},$e("label",{class:ze.label},n.lblUser,$e("input",{value:"",required:!0,autocomplete:"off",spellcheck:!1,type:"text",bind:this,afterCreate:R,"data-node-ref":"_usernameInputNode",class:ze.esriInput}))),l=i?null:$e("div",{class:ze.group,key:"password"},$e("label",{class:ze.label},n.lblPwd,$e("input",{value:"",required:!0,type:"password",bind:this,afterCreate:R,"data-node-ref":"_passwordInputNode",class:ze.esriInput}))),h=$e("div",{class:this.classes(ze.group,ze.footer)},$e("input",{type:"submit",disabled:!!r,value:r?n.lblSigning:n.lblOk,class:ze.esriButton}),$e("input",{type:"button",value:n.lblCancel,bind:this,onclick:this._cancel,class:this.classes(ze.esriButton,ze.esriButtonSecondary)})),c=e?$e("div",null,e.details&&e.details.httpStatus?n.invalidUser:n.noAuthService):null;return $e("form",{class:ze.base,bind:this,onsubmit:this._submit},o,c,a,l,h)}_cancel(){this._set("signingIn",!1),this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);const t=this.oAuthPrompt?{}:{username:this._usernameInputNode&&this._usernameInputNode.value,password:this._passwordInputNode&&this._passwordInputNode.value};this.emit("submit",t)}};(0,i._)([(0,_.Cb)(),Be("esri/identity/t9n/identity")],He.prototype,"messages",void 0),(0,i._)([(0,_.Cb)()],He.prototype,"signingIn",void 0),(0,i._)([(0,_.Cb)()],He.prototype,"server",void 0),(0,i._)([(0,_.Cb)()],He.prototype,"resource",void 0),(0,i._)([(0,_.Cb)()],He.prototype,"error",void 0),(0,i._)([(0,_.Cb)()],He.prototype,"oAuthPrompt",void 0),He=(0,i._)([(0,m.j)("esri.identity.IdentityForm")],He);const Je=He;var We=s(44291);const Ye="esri-identity-modal",Ge={base:Ye,open:`${Ye}--open`,closed:`${Ye}--closed`,title:`${Ye}__title`,dialog:`${Ye}__dialog`,content:`${Ye}__content`,closeButton:`${Ye}__close-button`,iconClose:"esri-icon-close"};let Ke=class extends qe{constructor(e,t){super(e,t),this.container=document.createElement("div"),this.content=null,this.open=!1,this._focusTrap=null,this._close=()=>{this.open=!1},document.body.appendChild(this.container),this.addHandles((0,p.YP)((()=>this.open),(()=>this._toggleFocusTrap())))}destroy(){this._destroyFocusTrap()}get title(){return this.messages?.auth.signIn}render(){const e=this.id,{open:t,content:s,title:r,messages:i}=this,n=t&&!!s,o={[Ge.open]:n,[Ge.closed]:!n},a=$e("button",{class:Ge.closeButton,"aria-label":i.close,title:i.close,bind:this,onclick:this._close,type:"button"},$e("span",{"aria-hidden":"true",class:Ge.iconClose})),l=`${e}_title`,h=`${e}_content`,c=r?$e("h1",{id:l,class:Ge.title},r):null,d=n?$e("div",{bind:this,class:Ge.dialog,role:"dialog","aria-labelledby":l,"aria-describedby":h,afterCreate:this._createFocusTrap},a,c,this._renderContent(h)):null;return $e("div",{tabIndex:-1,class:this.classes(Ge.base,o)},d)}_destroyFocusTrap(){this._focusTrap?.deactivate({onDeactivate:()=>{}}),this._focusTrap=null}_toggleFocusTrap(){const{_focusTrap:e,open:t}=this;e&&(t?e.activate():e.deactivate())}_createFocusTrap(e){this._destroyFocusTrap();const t=requestAnimationFrame((()=>{this._focusTrap=(0,We.v)(e,{initialFocus:"input",onDeactivate:this._close}),this._toggleFocusTrap()}));this.addHandles((0,U.kB)((()=>cancelAnimationFrame(t))))}_renderContent(e){const t=this.content;return"string"==typeof t?$e("div",{class:Ge.content,id:e,innerHTML:t}):function(e){return e&&"function"==typeof e.render}(t)?$e("div",{class:Ge.content,id:e},t.render()):t instanceof HTMLElement?$e("div",{class:Ge.content,id:e,bind:t,afterCreate:this._attachToNode}):null}_attachToNode(e){e.appendChild(this)}};(0,i._)([(0,_.Cb)({readOnly:!0})],Ke.prototype,"container",void 0),(0,i._)([(0,_.Cb)()],Ke.prototype,"content",void 0),(0,i._)([(0,_.Cb)()],Ke.prototype,"open",void 0),(0,i._)([(0,_.Cb)(),Be("esri/t9n/common")],Ke.prototype,"messages",void 0),(0,i._)([(0,_.Cb)()],Ke.prototype,"title",null),Ke=(0,i._)([(0,m.j)("esri.identity.IdentityModal")],Ke);const Xe=Ke,Qe="esriJSAPIOAuth";class et{constructor(e,t){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=e,this.storage=t,this._init()}isValid(){let e=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token))if(null==this.expires&&this.refreshToken)e=!0;else if(this.expires){const t=Date.now();this.expires>t&&(this.expires-t)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(e=!0)}return e}save(){if(!this.storage)return!1;const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let s=e[t.authNamespace];s||(s=e[t.authNamespace]={}),this.appId||(this.appId=t.appId),s[t.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(Qe,JSON.stringify(e))}catch(e){return console.warn(e),!1}return!0}return!1}destroy(){const e=this._load(),t=this.oAuthInfo;if(t&&t.appId&&t.portalUrl&&(null==this.expires||this.expires>Date.now())&&(this.refreshToken||this.token)){const e=t.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",s=new FormData;if(s.append("f","json"),s.append("auth_token",this.refreshToken||this.token),s.append("client_id",t.appId),s.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),"function"==typeof navigator.sendBeacon)navigator.sendBeacon(e,s);else{const t=new XMLHttpRequest;t.open("POST",e),t.send(s)}}if(t&&t.authNamespace&&t.portalUrl&&this.storage){const s=e[t.authNamespace];if(s){delete s[t.portalUrl];try{this.storage.setItem(Qe,JSON.stringify(e))}catch(e){console.log(e)}}}t&&(t._oAuthCred=null,this.oAuthInfo=null)}_init(){const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let s=e[t.authNamespace];s&&(s=s[t.portalUrl],s&&(this.appId=s.appId,this.codeVerifier=s.codeVerifier,this.expires=s.expires,this.refreshToken=s.refreshToken,this.ssl=s.ssl,this.stateUID=s.stateUID,this.token=s.token,this.userId=s.userId))}}_load(){let e={};if(this.storage){const t=this.storage.getItem(Qe);if(t)try{e=JSON.parse(t)}catch(e){console.warn(e)}}return e}}et.prototype.declaredClass="esri.identity.OAuthCredential";var tt,st=s(96674);let rt=tt=class extends st.wq{constructor(e){super(e),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return tt.fromJSON(this.toJSON())}};(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"appId",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"authNamespace",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"expiration",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"flowType",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"forceLogin",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"forceUserId",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"locale",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"minTimeUntilExpiration",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"popup",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"popupCallbackUrl",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"popupWindowFeatures",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"portalUrl",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"preserveUrlHash",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],rt.prototype,"userId",void 0),rt=tt=(0,i._)([(0,m.j)("esri.identity.OAuthInfo")],rt);const it=rt;let nt=class extends st.wq{constructor(e){super(e),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"adminTokenServiceUrl",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"currentVersion",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"hasPortal",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"hasServer",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"owningSystemUrl",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"owningTenant",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"server",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"shortLivedTokenValidity",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"tokenServiceUrl",void 0),(0,i._)([(0,_.Cb)({json:{write:!0}})],nt.prototype,"webTierAuth",void 0),nt=(0,i._)([(0,m.j)("esri.identity.ServerInfo")],nt);const ot=nt;var at=s(19745);const lt={},ht=e=>{const t=new f.R9(e.owningSystemUrl).host,s=new f.R9(e.server).host,r=/.+\.arcgis\.com$/i;return r.test(t)&&r.test(s)},ct=(e,t)=>!!(ht(e)&&t&&t.some((t=>t.test(e.server))));let dt=null,ut=null;try{dt=window.localStorage,ut=window.sessionStorage}catch{}class pt extends l.Z{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.formConstructor=Je,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin="null"!==window.origin?window.origin:window.location.origin,this._appUrlObj=(0,f.mN)(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^\/]+\/[^\/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer)).*/gi,this._gwUser=/http.+\/users\/([^\/]+)\/?.*/i,this._gwItem=/http.+\/items\/([^\/]+)\/?.*/i,this._gwGroup=/http.+\/groups\/([^\/]+)\/?.*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getOAuthLocationParams(),window.addEventListener("pageshow",(e=>{this._pageShowHandler(e)}))}registerServers(e){const t=this.serverInfos;t?(e=e.filter((e=>!this.findServerInfo(e.server))),this.serverInfos=t.concat(e)):this.serverInfos=e,e.forEach((e=>{e.owningSystemUrl&&this._portals.push(e.owningSystemUrl),e.hasPortal&&this._portals.push(e.server)}))}registerOAuthInfos(e){const t=this.oAuthInfos;if(t){for(const s of e){const e=this.findOAuthInfo(s.portalUrl);e&&t.splice(t.indexOf(e),1)}this.oAuthInfos=t.concat(e)}else this.oAuthInfos=e}registerToken(e){e={...e};const t=this._sanitizeUrl(e.server),s=this._isServerRsrc(t);let r,i=this.findServerInfo(t),n=!0;i||(i=new ot,i.server=this._getServerInstanceRoot(t),s?i.hasServer=!0:(i.tokenServiceUrl=this._getTokenSvcUrl(t),i.hasPortal=!0),this.registerServers([i])),r=this._findCredential(t),r?(delete e.server,Object.assign(r,e),n=!1):(r=new ft({userId:e.userId,server:i.server,token:e.token,expires:e.expires,ssl:e.ssl,scope:s?"server":"portal"}),r.resources=[t],this.credentials.push(r)),r.emitTokenChange(!1),n||r.refreshServerTokens()}toJSON(){return(0,c.yd)({serverInfos:this.serverInfos.map((e=>e.toJSON())),oAuthInfos:this.oAuthInfos.map((e=>e.toJSON())),credentials:this.credentials.map((e=>e.toJSON()))})}initialize(e){if(!e)return;"string"==typeof e&&(e=JSON.parse(e));const t=e.serverInfos,s=e.oAuthInfos,r=e.credentials;if(t){const e=[];t.forEach((t=>{t.server&&t.tokenServiceUrl&&e.push(t.declaredClass?t:new ot(t))})),e.length&&this.registerServers(e)}if(s){const e=[];s.forEach((t=>{t.appId&&e.push(t.declaredClass?t:new it(t))})),e.length&&this.registerOAuthInfos(e)}r&&r.forEach((e=>{e.server&&e.token&&e.expires&&e.expires>Date.now()&&((e=e.declaredClass?e:new ft(e)).emitTokenChange(),this.credentials.push(e))}))}findServerInfo(e){let t;e=this._sanitizeUrl(e);for(const s of this.serverInfos)if(this._hasSameServerInstance(s.server,e)){t=s;break}return t}findOAuthInfo(e){let t;e=this._sanitizeUrl(e);for(const s of this.oAuthInfos)if(this._hasSameServerInstance(s.portalUrl,e)){t=s;break}return t}findCredential(e,t){if(!e)return;let s;e=this._sanitizeUrl(e);const r=this._isServerRsrc(e)?"server":"portal";if(t){for(const i of this.credentials)if(this._hasSameServerInstance(i.server,e)&&t===i.userId&&i.scope===r){s=i;break}}else for(const t of this.credentials)if(this._hasSameServerInstance(t.server,e)&&-1!==this._getIdenticalSvcIdx(e,t)&&t.scope===r){s=t;break}return s}getCredential(e,t){let s,r,i=!0;t&&(s=!!t.token,r=t.error,i=!1!==t.prompt),t={...t},e=this._sanitizeUrl(e);const n=new AbortController,o=(0,u.hh)();if(t.signal&&(0,u.fu)(t.signal,(()=>{n.abort()})),(0,u.fu)(n,(()=>{o.reject(new a.Z("identity-manager:user-aborted","ABORTED"))})),(0,u.Hc)(n))return o.promise;t.signal=n.signal;const l=this._isAdminResource(e),h=s?this.findCredential(e):null;let c;if(h&&r&&r.details&&498===r.details.httpStatus)h.destroy();else if(h)return c=new a.Z("identity-manager:not-authorized","You are currently signed in as: '"+h.userId+"'. You do not have access to this resource: "+e,{error:r}),o.reject(c),o.promise;const d=this._findCredential(e,t);if(d)return o.resolve(d),o.promise;let p=this.findServerInfo(e);if(p)!p.hasPortal&&p.server&&p.owningSystemUrl&&this._hasSameServerInstance(p.server,p.owningSystemUrl)&&(p.hasPortal=!0),!p.hasServer&&this._isServerRsrc(e)&&(p._restInfoPms=this._getTokenSvcUrl(e),p.hasServer=!0);else{const t=this._getTokenSvcUrl(e);if(!t)return c=new a.Z("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),o.reject(c),o.promise;p=new ot,p.server=this._getServerInstanceRoot(e),"string"==typeof t?(p.tokenServiceUrl=t,p.hasPortal=!0):(p._restInfoPms=t,p.hasServer=!0),this.registerServers([p])}return p.hasPortal&&void 0===p._selfReq&&(i||(0,f.D6)(p.tokenServiceUrl,this._appOrigin)||this._gwDomains.some((e=>e.tokenServiceUrl===p.tokenServiceUrl)))&&(p._selfReq={owningTenant:t&&t.owningTenant,selfDfd:this._getPortalSelf(p.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,p,t,o,l)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,t,s){const r=this._rePortalTokenSvc.test(e.tokenServiceUrl),i=new f.R9(this._appOrigin),n=e.shortLivedTokenValidity;let l,h,c,d,u,p,_,m;t&&(m=this.tokenValidity||n||this._defaultTokenValidity,m>n&&n>0&&(m=n)),s&&(l=s.isAdmin,h=s.serverUrl,c=s.token,p=s.signal,_=s.ssl,e.customParameters=s.customParameters),l?d=e.adminTokenServiceUrl:(d=e.tokenServiceUrl,u=new f.R9(d.toLowerCase()),e.webTierAuth&&s?.serverUrl&&!_&&"http"===i.scheme&&((0,f.D6)(i.uri,d,!0)||"https"===u.scheme&&i.host===u.host&&"7080"===i.port&&"7443"===u.port)&&(d=d.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));const g={query:{request:"getToken",username:t?.username,password:t?.password,serverUrl:h,token:c,expiration:m,referer:l||r?this._appOrigin:null,client:l?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,s),signal:p,...s?.ioArgs};return r||(g.withCredentials=!1),(0,o.Z)(d,g).then((s=>{const r=s.data;if(!r||!r.token)return new a.Z("identity-manager:authentication-failed","Unable to generate token");const i=e.server;return lt[i]||(lt[i]={}),t&&(lt[i][t.username]=t.password),r.validity=m,r}))}isBusy(){return!!this._busy}checkSignInStatus(e){return this.checkAppAccess(e,"").then((e=>e.credential))}checkAppAccess(e,t,s){let r=!1;return this.getCredential(e,{prompt:!1}).then((i=>{let n;const l={f:"json"};if("portal"===i.scope)if(t&&(this._doPortalSignIn(e)||s&&s.force))n=i.server+"/sharing/rest/oauth2/validateAppAccess",l.client_id=t;else{if(!i.token)return{credential:i};n=i.server+"/sharing/rest"}else{if(!i.token)return{credential:i};n=i.server+"/rest/services"}return i.token&&(l.token=i.token),(0,o.Z)(n,{query:l,authMode:"anonymous"}).then((e=>{if(!1===e.data.valid)throw new a.Z("identity-manager:not-authorized",`You are currently signed in as: '${i.userId}'.`,e.data);return r=!!e.data.viewOnlyUserTypeApp,{credential:i}})).catch((e=>{if("identity-manager:not-authorized"===e.name)throw e;const t=e.details&&e.details.httpStatus;if(498===t)throw i.destroy(),new a.Z("identity-manager:not-authenticated","User is not signed in.");if(400===t)throw new a.Z("identity-manager:invalid-request");return{credential:i}}))})).then((e=>({credential:e.credential,viewOnly:r})))}setOAuthResponseHash(e){e&&("#"===e.charAt(0)&&(e=e.substring(1)),this._processOAuthPopupParams((0,f.u0)(e)))}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e}setProtocolErrorHandler(e){this._protocolFunc=e}signIn(e,t,s={}){const r=(0,u.hh)(),i=()=>{l?.remove(),h?.remove(),c?.remove(),o?.destroy(),this.dialog?.destroy(),this.dialog=o=l=h=c=null},n=()=>{i(),this._oAuthDfd=null,r.reject(new a.Z("identity-manager:user-aborted","ABORTED"))};s.signal&&(0,u.fu)(s.signal,(()=>{n()}));let o=new this.formConstructor;o.resource=this.getResourceName(e),o.server=t.server,this.dialog=new Xe,this.dialog.content=o,this.dialog.open=!0,this.emit("dialog-create");let l=o.on("cancel",n),h=(0,p.YP)((()=>this.dialog.open),n),c=o.on("submit",(e=>{this.generateToken(t,e,{isAdmin:s.isAdmin,signal:s.signal}).then((n=>{i();const o=new ft({userId:e.username,server:t.server,token:n.token,expires:null!=n.expires?Number(n.expires):null,ssl:!!n.ssl,isAdmin:s.isAdmin,validity:n.validity});r.resolve(o)})).catch((e=>{o.error=e,o.signingIn=!1}))}));return r.promise}oAuthSignIn(e,t,s,r){this._oAuthDfd=(0,u.hh)();const i=this._oAuthDfd;let n;r?.signal&&(0,u.fu)(r.signal,(()=>{const e=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;e&&!e.closed?e.close():this.dialog&&_()})),i.resUrl_=e,i.sinfo_=t,i.oinfo_=s;const o=s._oAuthCred;if(o.storage&&("authorization-code"===s.flowType||"auto"===s.flowType&&t.currentVersion>=8.4)){let e=crypto.getRandomValues(new Uint8Array(32));n=(0,f.rS)(e),o.codeVerifier=n,e=crypto.getRandomValues(new Uint8Array(32)),o.stateUID=(0,f.rS)(e),o.save()||(o.codeVerifier=n=null)}else o.codeVerifier=null;let l,h,c,d;this._getCodeChallenge(n).then((i=>{const n=!r||!1!==r.oAuthPopupConfirmation;s.popup&&n?(l=new this.formConstructor,l.oAuthPrompt=!0,l.server=t.server,this.dialog=new Xe,this.dialog.content=l,this.dialog.open=!0,this.emit("dialog-create"),h=l.on("cancel",_),c=(0,p.YP)((()=>this.dialog.open),_),d=l.on("submit",(()=>{m(),this._doOAuthSignIn(e,t,s,i)}))):this._doOAuthSignIn(e,t,s,i)}));const _=()=>{m(),this._oAuthDfd=null,i.reject(new a.Z("identity-manager:user-aborted","ABORTED"))},m=()=>{h?.remove(),c?.remove(),d?.remove(),l?.destroy(),this.dialog?.destroy(),this.dialog=null};return i.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach((e=>{e.destroy()})),this.emit("credentials-destroy")}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=(0,h.on)(window,"message",(t=>{if((t.origin===this._appOrigin||t.origin.endsWith(".arcgis.com"))&&"arcgis:auth:requestCredential"===t.data?.type){const s=t.source;this.getCredential(e).then((e=>{s.postMessage({type:"arcgis:auth:credential",credential:{expires:e.expires,server:e.server,ssl:e.ssl,token:e.token,userId:e.userId}},t.origin)})).catch((e=>{s.postMessage({type:"arcgis:auth:error",error:{name:e.name,message:e.message}},t.origin)}))}}))}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthLocationParams(){let e=window.location.hash;if(e){"#"===e.charAt(0)&&(e=e.substring(1));const t=(0,f.u0)(e);let s=!1;if(t.access_token&&t.expires_in&&t.state&&t.hasOwnProperty("username"))try{t.state=JSON.parse(t.state),t.state.portalUrl&&(this._oAuthLocationParams=t,s=!0)}catch{}else if(t.error&&t.error_description&&(console.log("IdentityManager OAuth Error: ",t.error," - ",t.error_description),"access_denied"===t.error&&(s=!0,t.state)))try{t.state=JSON.parse(t.state)}catch{}s&&(window.location.hash=t.state?.hash||"")}let t=window.location.search;if(t){"?"===t.charAt(0)&&(t=t.substring(1));const e=(0,f.u0)(t);let s=!1;if(e.code&&e.state)try{e.state=JSON.parse(e.state),e.state.portalUrl&&e.state.uid&&(this._oAuthLocationParams=e,s=!0)}catch{}else if(e.error&&e.error_description&&(console.log("IdentityManager OAuth Error: ",e.error," - ",e.error_description),"access_denied"===e.error&&(s=!0,e.state)))try{e.state=JSON.parse(e.state)}catch{}if(s){const t={...e};["code","error","error_description","message_code","persist","state"].forEach((e=>{delete t[e]}));const s=(0,f.B7)(t),r=window.location.pathname+(s?`?${s}`:"")+(e.state?.hash||"");window.history.replaceState(window.history.state,"",r)}}}_getOAuthToken(e,t,s,r,i){return e=e.replace(/^http:/i,"https:"),(0,o.Z)(`${e}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:r&&i?{grant_type:"authorization_code",code:t,redirect_uri:r,client_id:s,code_verifier:i}:{grant_type:"refresh_token",refresh_token:t,client_id:s}}).then((e=>e.data))}_getCodeChallenge(e){if(e&&globalThis.isSecureContext){const t=(new TextEncoder).encode(e);return crypto.subtle.digest("SHA-256",t).then((e=>(0,f.rS)(new Uint8Array(e))))}return Promise.resolve(null)}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){const e=new a.Z("identity-manager:user-aborted","ABORTED");this._errbackFunc(e)}}_findCredential(e,t){let s,r,i,n,o=-1;const a=t&&t.token,l=t&&t.resource,h=this._isServerRsrc(e)?"server":"portal",c=this.credentials.filter((t=>this._hasSameServerInstance(t.server,e)&&t.scope===h));if(e=l||e,c.length)if(1===c.length){if(s=c[0],i=this.findServerInfo(s.server),r=i&&i.owningSystemUrl,n=r?this.findCredential(r,s.userId):void 0,o=this._getIdenticalSvcIdx(e,s),!a)return-1===o&&s.resources.push(e),this._addResource(e,n),s;-1!==o&&(s.resources.splice(o,1),this._removeResource(e,n))}else{let t,s;if(c.some((a=>(s=this._getIdenticalSvcIdx(e,a),-1!==s&&(t=a,i=this.findServerInfo(t.server),r=i&&i.owningSystemUrl,n=r?this.findCredential(r,t.userId):void 0,o=s,!0)))),a)t&&(t.resources.splice(o,1),this._removeResource(e,n));else if(t)return this._addResource(e,n),t}}_findOAuthInfo(e){let t=this.findOAuthInfo(e);if(!t)for(const s of this.oAuthInfos)if(this._isIdProvider(s.portalUrl,e)){t=s;break}return t}_addResource(e,t){t&&-1===this._getIdenticalSvcIdx(e,t)&&t.resources.push(e)}_removeResource(e,t){let s=-1;t&&(s=this._getIdenticalSvcIdx(e,t),s>-1&&t.resources.splice(s,1))}_useProxy(e,t){return t&&t.isAdmin&&!(0,f.D6)(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&"10.1"===String(e.currentVersion)&&!(0,f.D6)(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){const t=new f.R9(e);return t.scheme+"://"+t.host+(null!=t.port?":"+t.port:"")}_getServerInstanceRoot(e){const t=e.toLowerCase();let s=t.indexOf(this._agsRest);return-1===s&&this._isAdminResource(e)&&(s=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),-1!==s||(0,at.P)(t)||(s=t.indexOf("/sharing")),-1===s&&"/"===t.substr(-1)&&(s=t.length-1),s>-1?e.substring(0,s):e}_hasSameServerInstance(e,t){return"/"===e.substr(-1)&&(e=e.slice(0,-1)),e=e.toLowerCase(),t=this._getServerInstanceRoot(t).toLowerCase(),e=this._normalizeAGOLorgDomain(e),t=this._normalizeAGOLorgDomain(t),(e=e.substr(e.indexOf(":")))===t.substr(t.indexOf(":"))}_normalizeAGOLorgDomain(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,s=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,r=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):s.test(e)?e=e.replace(s,"https://devext.arcgis.com"):r.test(e)&&(e=e.replace(r,"https://qaext.arcgis.com")),e}_sanitizeUrl(e){const t=(n.default.request.proxyUrl||"").toLowerCase(),s=t?e.toLowerCase().indexOf(t+"?"):-1;return-1!==s&&(e=e.substring(s+t.length+1)),e=(0,f.Fv)(e),(0,f.mN)(e).path}_isRESTService(e){return e.includes(this._agsRest)}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,t){let s=!1;if(this._isRESTService(e)&&this._isRESTService(t)){const r=this._getSuffix(e).toLowerCase(),i=this._getSuffix(t).toLowerCase();if(s=r===i,!s){const e=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;s=r.replaceAll(e,"$1")===i.replaceAll(e,"$1")}}else this._isAdminResource(e)&&this._isAdminResource(t)?s=!0:this._isServerRsrc(e)||this._isServerRsrc(t)||!this._isPortalDomain(e)||(s=!0);return s}_isPortalDomain(e){const t=new f.R9(e.toLowerCase()),s=this._portalConfig;let r=this._gwDomains.some((e=>e.regex.test(t.uri)));return!r&&s&&(r=this._hasSameServerInstance(this._getServerInstanceRoot(s.restBaseUrl),t.uri)),r||n.default.portalUrl&&(r=(0,f.D6)(t,n.default.portalUrl,!0)),r||(r=this._portals.some((e=>this._hasSameServerInstance(e,t.uri)))),r=r||this._agsPortal.test(t.path),r}_isIdProvider(e,t){let s=-1,r=-1;this._gwDomains.forEach(((i,n)=>{-1===s&&i.regex.test(e)&&(s=n),-1===r&&i.regex.test(t)&&(r=n)}));let i=!1;if(s>-1&&r>-1&&(0===s||4===s?0!==r&&4!==r||(i=!0):1===s?1!==r&&2!==r||(i=!0):2===s?2===r&&(i=!0):3===s&&3===r&&(i=!0)),!i){const s=this.findServerInfo(t),r=s?.owningSystemUrl;r&&ht(s)&&this._isPortalDomain(r)&&this._isIdProvider(e,r)&&(i=!0)}return i}_getIdenticalSvcIdx(e,t){let s=-1;for(let r=0;r<t.resources.length;r++){const i=t.resources[r];if(this._isIdenticalService(e,i)){s=r;break}}return s}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let t,s,r;if(this._isRESTService(e)||this._isAdminResource(e)){const r=this._getServerInstanceRoot(e);return t=r+"/admin/generateToken",s=(0,o.Z)(e=r+"/rest/info",{query:{f:"json"}}).then((e=>e.data)),{adminUrl:t,promise:s}}if(this._isPortalDomain(e)){let t="";if(this._gwDomains.some((s=>(s.regex.test(e)&&(t=s.tokenServiceUrl),!!t))),t||this._portals.some((s=>(this._hasSameServerInstance(s,e)&&(t=s+this._gwTokenUrl),!!t))),t||(r=e.toLowerCase().indexOf("/sharing"),-1!==r&&(t=e.substring(0,r)+this._gwTokenUrl)),t||(t=this._getOrigin(e)+this._gwTokenUrl),t){const s=new f.R9(e).port;/^http:\/\//i.test(e)&&"7080"===s&&(t=t.replace(/:7080/i,":7443")),t=t.replace(/http:/i,"https:")}return t}if(e.toLowerCase().includes("premium.arcgisonline.com"))return"https://premium.arcgisonline.com/server/tokens"}_processOAuthResponseParams(e,t,s){const r=t._oAuthCred;if(e.code){const i=r.codeVerifier;return r.codeVerifier=null,r.stateUID=null,r.save(),this._getOAuthToken(s.server,e.code,t.appId,this._getRedirectURI(t,!0),i).then((i=>{const n=new ft({userId:i.username,server:s.server,token:i.access_token,expires:Date.now()+1e3*i.expires_in,ssl:i.ssl,oAuthState:e.state,_oAuthCred:r});return t.userId=n.userId,r.storage=i.persist?dt:ut,r.refreshToken=i.refresh_token,r.token=null,r.expires=i.refresh_token_expires_in?Date.now()+1e3*i.refresh_token_expires_in:null,r.userId=n.userId,r.ssl=n.ssl,r.save(),n}))}const i=new ft({userId:e.username,server:s.server,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:"true"===e.ssl,oAuthState:e.state,_oAuthCred:r});return t.userId=i.userId,r.storage=e.persist?dt:ut,r.refreshToken=null,r.token=i.token,r.expires=i.expires,r.userId=i.userId,r.ssl=i.ssl,r.save(),Promise.resolve(i)}_processOAuthPopupParams(e){const t=this._oAuthDfd;if(this._oAuthDfd=null,t)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),e.error){const s="access_denied"===e.error,r=new a.Z(s?"identity-manager:user-aborted":"identity-manager:authentication-failed",s?"ABORTED":"OAuth: "+e.error+" - "+e.error_description);t.reject(r)}else this._processOAuthResponseParams(e,t.oinfo_,t.sinfo_).then((e=>{t.resolve(e)})).catch((e=>{t.reject(e)}))}_setOAuthResponseQueryString(e){e&&("?"===e.charAt(0)&&(e=e.substring(1)),this._processOAuthPopupParams((0,f.u0)(e)))}_exchangeToken(e,t,s){return(0,o.Z)(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:t,token:s}}).then((e=>e.data.token))}_getPlatformSelf(e,t){return e=e.replace(/^http:/i,"https:"),(0,o.Z)(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":t,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0}).then((e=>e.data))}_getPortalSelf(e,t){let s;return this._gwDomains.some((t=>(t.regex.test(e)&&(s=t.customBaseUrl),!!s))),s?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:s,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(t)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),(0,o.Z)(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then((e=>e.data)))}_doPortalSignIn(e){const t=this._portalConfig,s=window.location.href,r=this.findServerInfo(e);return!(!t&&!this._isPortalDomain(s)||!(r?r.hasPortal||r.owningSystemUrl&&this._isPortalDomain(r.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(s,e)||t&&(this._hasSameServerInstance(this._getServerInstanceRoot(t.restBaseUrl),e)||this._isIdProvider(t.restBaseUrl,e))||(0,f.D6)(s,e,!0)))}_checkProtocol(e,t,s,r){let i=!0;const n=r?t.adminTokenServiceUrl:t.tokenServiceUrl;return n.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&(0,f.ed)(n)&&(i=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:t}),!i)&&s(new a.Z("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),i}_enqueue(e,t,s,r,i,n){return r||(r=(0,u.hh)()),r.resUrl_=e,r.sinfo_=t,r.options_=s,r.admin_=i,r.refresh_=n,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(r)):this._xoReqs.push(r):this._doSignIn(r),r.promise}_doSignIn(e){this._busy=e,this._rejectOnPersistedPageShow=!1;const t=t=>{const s=e.options_&&e.options_.resource,r=e.resUrl_,i=e.refresh_;let n=!1;this.credentials.includes(t)||(i&&this.credentials.includes(i)?(i.userId=t.userId,i.token=t.token,i.expires=t.expires,i.validity=t.validity,i.ssl=t.ssl,i.creationTime=t.creationTime,n=!0,t=i):this.credentials.push(t)),t.resources||(t.resources=[]),t.resources.includes(s||r)||t.resources.push(s||r),t.scope=this._isServerRsrc(r)?"server":"portal",t.emitTokenChange();const o=this._soReqs,a={};this._soReqs=[],o.forEach((e=>{if(!this._isIdenticalService(r,e.resUrl_)){const s=this._getSuffix(e.resUrl_);a[s]||(a[s]=!0,t.resources.push(e.resUrl_))}})),e.resolve(t),o.forEach((e=>{this._hasSameServerInstance(this._getServerInstanceRoot(r),e.resUrl_)?e.resolve(t):this._soReqs.push(e)})),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,n||this.emit("credential-create",{credential:t}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},s=t=>{e.reject(t),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},r=(i,n,o,l)=>{const c=e.sinfo_,d=!e.options_||!1!==e.options_.prompt,p=c.hasPortal&&this._findOAuthInfo(e.resUrl_);let _,m;if(i)t(new ft({userId:i,server:c.server,token:o||null,expires:null!=l?Number(l):null,ssl:!!n}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);const r=(0,h.on)(window,"message",(e=>{e.source===window.parent&&e.data&&("arcgis:auth:credential"===e.data.type?(r.remove(),e.data.credential.expires<Date.now()?s(new a.Z("identity-manager:credential-request-failed","Parent application's token has expired.")):t(new ft(e.data.credential))):"arcgis:auth:error"===e.data.type&&(r.remove(),"tokenExpiredError"===e.data.error.name?s(new a.Z("identity-manager:credential-request-failed","Parent application's token has expired.")):s(a.Z.fromJSON(e.data.error))))}));(0,u.fu)(e.options_?.signal,(()=>{r.remove()}))}else if(p){let i=p._oAuthCred;if(!i){const e=new et(p,dt),t=new et(p,ut);e.isValid()&&t.isValid()?e.expires>t.expires?(i=e,t.destroy()):(i=t,e.destroy()):i=e.isValid()?e:t,p._oAuthCred=i}if(i.isValid()){_=new ft({userId:i.userId,server:c.server,token:i.token,expires:i.expires,ssl:i.ssl,_oAuthCred:i});const s=p.appId!==i.appId&&this._doPortalSignIn(e.resUrl_);s||i.refreshToken?(e._pendingDfd=i.refreshToken?this._getOAuthToken(c.server,i.refreshToken,i.appId).then((e=>(_.expires=Date.now()+1e3*e.expires_in,_.token=e.access_token,_))):Promise.resolve(_),e._pendingDfd.then((e=>s?this._exchangeToken(e.server,p.appId,e.token).then((t=>(e.token=t,e))).catch((()=>e)):e)).then((e=>{t(e)})).catch((()=>{i?.destroy(),r()}))):t(_)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(p.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===i.stateUID&&i.codeVerifier)){const r=this._oAuthLocationParams;this._oAuthLocationParams=null,e._pendingDfd=this._processOAuthResponseParams(r,p,c).then((e=>{t(e)})).catch(s)}else{const r=()=>{d?e._pendingDfd=this.oAuthSignIn(e.resUrl_,c,p,e.options_).then(t,s):(m=new a.Z("identity-manager:not-authenticated","User is not signed in."),s(m))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(c.server,p.appId).then((e=>{(0,f.D6)(e.portalUrl,this._appOrigin,!0)?(_=new ft({userId:e.username,server:c.server,expires:Date.now()+1e3*e.expires_in,token:e.token}),t(_)):r()})).catch(r):r()}}else if(d){if(this._checkProtocol(e.resUrl_,c,s,e.admin_)){let r=e.options_;e.admin_&&(r=r||{},r.isAdmin=!0),e._pendingDfd=this.signIn(e.resUrl_,c,r).then(t,s)}}else m=new a.Z("identity-manager:not-authenticated","User is not signed in."),s(m)},i=()=>{const r=e.sinfo_,i=r.owningSystemUrl,n=e.options_;let o,a,l,h;if(n&&(o=n.token,a=n.error,l=n.prompt),h=this._findCredential(i,{token:o,resource:e.resUrl_}),!h)for(const e of this.credentials)if(this._isIdProvider(i,e.server)){h=e;break}if(h){const i=this.findCredential(e.resUrl_,h.userId);if(i)t(i);else if(ct(r,this._legacyFed)){const e=h.toJSON();e.server=r.server,e.resources=null,t(new ft(e))}else(e._pendingDfd=this.generateToken(this.findServerInfo(h.server),null,{serverUrl:e.resUrl_,token:h.token,signal:e.options_.signal,ssl:h.ssl})).then((s=>{t(new ft({userId:h?.userId,server:r.server,token:s.token,expires:null!=s.expires?Number(s.expires):null,ssl:!!s.ssl,isAdmin:e.admin_,validity:s.validity}))}),s)}else this._busy=null,o&&(e.options_.token=null),(e._pendingDfd=this.getCredential(i.replace(/\/?$/,"/sharing"),{resource:e.resUrl_,owningTenant:r.owningTenant,signal:e.options_.signal,token:o,error:a,prompt:l})).then((()=>{this._enqueue(e.resUrl_,e.sinfo_,e.options_,e,e.admin_)}),(t=>{e.resUrl_=e.sinfo_=e.refresh_=null,e.reject(t)}))};this._errbackFunc=s;const n=e.sinfo_.owningSystemUrl,o=this._isServerRsrc(e.resUrl_),l=e.sinfo_._restInfoPms;l?l.promise.then((t=>{const s=e.sinfo_;if(s._restInfoPms){s.adminTokenServiceUrl=s._restInfoPms.adminUrl,s._restInfoPms=null,s.tokenServiceUrl=((0,d.hS)("authInfo.tokenServicesUrl",t)||(0,d.hS)("authInfo.tokenServiceUrl",t)||(0,d.hS)("tokenServiceUrl",t))??null,s.shortLivedTokenValidity=(0,d.hS)("authInfo.shortLivedTokenValidity",t)??null,s.currentVersion=t.currentVersion,s.owningTenant=t.owningTenant;const e=s.owningSystemUrl=t.owningSystemUrl;e&&this._portals.push(e)}o&&s.owningSystemUrl?i():r()}),(()=>{e.sinfo_._restInfoPms=null;const t=new a.Z("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");s(t)})):o&&n?i():e.sinfo_._selfReq?e.sinfo_._selfReq.selfDfd.then((t=>{const s={};let r,i,n,o;return t&&(r=t.user&&t.user.username,s.username=r,s.allSSL=t.allSSL,i=t.supportsOAuth,o=parseFloat(t.currentVersion),"multitenant"===t.portalMode&&(n=t.customBaseUrl),e.sinfo_.currentVersion=o),e.sinfo_.webTierAuth=!!r,r&&this.normalizeWebTierAuth?this.generateToken(e.sinfo_,null,{ssl:s.allSSL}).catch((()=>null)).then((e=>(s.portalToken=e&&e.token,s.tokenExpiration=e&&e.expires,s))):!r&&i&&o>=4.4&&!this._findOAuthInfo(e.resUrl_)?this._generateOAuthInfo({portalUrl:e.sinfo_.server,customBaseUrl:n,owningTenant:e.sinfo_._selfReq.owningTenant}).catch((()=>null)).then((()=>s)):s})).catch((()=>null)).then((t=>{e.sinfo_._selfReq=null,t?r(t.username,t.allSSL,t.portalToken,t.tokenExpiration):r()})):r()}_generateOAuthInfo(e){let t,s=null,r=e.portalUrl;const i=e.customBaseUrl,n=e.owningTenant,a=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(a){s=window.location.href;let e=s.indexOf("?");e>-1&&(s=s.slice(0,e)),e=s.search(/\/(apps|home)\//),s=e>-1?s.slice(0,e):null}return a&&s?(this._hasTestedIfAppIsOnPortal=!0,t=(0,o.Z)(s+"/sharing/rest",{query:{f:"json"}}).then((()=>{this._defaultOAuthInfo=new it({appId:"arcgisonline",popupCallbackUrl:s+"/home/oauth-callback.html"})}))):t=Promise.resolve(),t.then((()=>{if(this._defaultOAuthInfo)return r=r.replace(/^http:/i,"https:"),(0,o.Z)(r+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:n,client_id:this._defaultOAuthInfo.appId,redirect_uri:(0,f.hF)(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then((e=>{if(e.data.valid){const t=this._defaultOAuthInfo.clone();e.data.urlKey&&i?t.portalUrl="https://"+e.data.urlKey.toLowerCase()+"."+i:t.portalUrl=r,t.popup=window!==window.top||!((0,f.D6)(r,this._appOrigin)||this._gwDomains.some((e=>e.regex.test(r)&&e.regex.test(this._appOrigin)))),this.oAuthInfos.push(t)}}))}))}_doOAuthSignIn(e,t,s,r){const i=s._oAuthCred,n={portalUrl:s.portalUrl};!s.popup&&s.preserveUrlHash&&window.location.hash&&(n.hash=window.location.hash),i.stateUID&&(n.uid=i.stateUID);const o={client_id:s.appId,response_type:i.codeVerifier?"code":"token",state:JSON.stringify(n),expiration:s.expiration,locale:s.locale,redirect_uri:this._getRedirectURI(s,!!i.codeVerifier)};s.forceLogin&&(o.force_login=!0),s.forceUserId&&s.userId&&(o.prepopulatedusername=s.userId),!s.popup&&this._doPortalSignIn(e)&&(o.redirectToUserOrgUrl=!0),i.codeVerifier&&(o.code_challenge=r||i.codeVerifier,o.code_challenge_method=r?"S256":"plain");const l=s.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",c=l+"?"+(0,f.B7)(o);if(s.popup){const e=window.open(c,"esriJSAPIOAuth",s.popupWindowFeatures);if(e)e.focus(),this._oAuthDfd.oAuthWin_=e,this._oAuthIntervalId=setInterval((()=>{if(e.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();const e=this._oAuthDfd;if(e){const t=new a.Z("identity-manager:user-aborted","ABORTED");e.reject(t)}}}),500),this._oAuthOnPopupHandle=(0,h.on)(window,["arcgis:auth:hash","arcgis:auth:location:search"],(e=>{"arcgis:auth:hash"===e.type?this.setOAuthResponseHash(e.detail):this._setOAuthResponseQueryString(e.detail)}));else{const e=new a.Z("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(e)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:o,authorizeUrl:l,resourceUrl:e,serverInfo:t,oAuthInfo:s}):window.location.href=c}_getRedirectURI(e,t){const s=window.location.href.replace(/#.*$/,"");if(e.popup)return(0,f.hF)(e.popupCallbackUrl);if(t){const e=(0,f.mN)(s);return e.query&&["code","error","error_description","message_code","persist","state"].forEach((t=>{delete e.query[t]})),(0,f.fl)(e.path,e.query)}return s}}pt.prototype.declaredClass="esri.identity.IdentityManagerBase";let ft=class extends l.Z.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e&&e._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],null==this.creationTime&&(this.creationTime=Date.now())}refreshToken(){const e=r.id.findServerInfo(this.server),t=e?.owningSystemUrl,s=!!t&&"server"===this.scope,i=s&&ct(e,r.id._legacyFed),n=e.webTierAuth,o=n&&r.id.normalizeWebTierAuth,a=lt[this.server],l=a&&a[this.userId];let h,c=this.resources&&this.resources[0],d=s?r.id.findServerInfo(t):null,u={username:this.userId,password:l};if(n&&!o)return;s&&!d&&r.id.serverInfos.some((e=>(r.id._isIdProvider(t,e.server)&&(d=e),!!d)));const p=d?r.id.findCredential(d.server,this.userId):null;if(!s||p){if(!i){if(s)h={serverUrl:c,token:p&&p.token,ssl:p&&p.ssl};else if(o)u=null,h={ssl:this.ssl};else{if(!l){let t;return c&&(c=r.id._sanitizeUrl(c),this._enqueued=1,t=r.id._enqueue(c,e,null,null,this.isAdmin,this),t.then((()=>{this._enqueued=0,this.refreshServerTokens()})).catch((()=>{this._enqueued=0}))),t}this.isAdmin&&(h={isAdmin:!0})}return r.id.generateToken(s?d:e,s?null:u,h).then((e=>{this.token=e.token,this.expires=null!=e.expires?Number(e.expires):null,this.creationTime=Date.now(),this.validity=e.validity,this.emitTokenChange(),this.refreshServerTokens()})).catch((()=>{}))}p?.refreshToken()}}refreshServerTokens(){"portal"===this.scope&&r.id.credentials.forEach((e=>{const t=r.id.findServerInfo(e.server),s=t?.owningSystemUrl;e!==this&&e.userId===this.userId&&s&&"server"===e.scope&&(r.id._hasSameServerInstance(this.server,s)||r.id._isIdProvider(s,this.server))&&(ct(t,r.id._legacyFed)?(e.token=this.token,e.expires=this.expires,e.creationTime=this.creationTime,e.validity=this.validity,e.emitTokenChange()):e.refreshToken())}))}emitTokenChange(e){clearTimeout(this._refreshTimer);const t=this.server?r.id.findServerInfo(this.server):null,s=t?.owningSystemUrl,i=s?r.id.findServerInfo(s):null;!1===e||s&&"portal"!==this.scope&&(!i?.webTierAuth||r.id.normalizeWebTierAuth)||null==this.expires&&null==this.validity||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);const e=r.id.credentials.indexOf(this);e>-1&&r.id.credentials.splice(e,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){const e=(0,c.yd)({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);const e=6e4*this.tokenRefreshBuffer,t=2**31-1;let s=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();s<0?s=0:s>t&&(s=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),s>e?s-e:s)}};(0,i._)([(0,_.Cb)()],ft.prototype,"creationTime",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"expires",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"isAdmin",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"oAuthState",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"resources",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"scope",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"server",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"ssl",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"token",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"tokenRefreshBuffer",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"userId",void 0),(0,i._)([(0,_.Cb)()],ft.prototype,"validity",void 0),ft=(0,i._)([(0,m.j)("esri.identity.Credential")],ft);class _t extends pt{}_t.prototype.declaredClass="esri.identity.IdentityManager";const mt=new _t;(0,r.qh)(mt)},2587:(e,t,s)=>{"use strict";s(23756),s(18848),s(940),s(70171);var r=s(94443),i=s(3172),n=s(20102);async function o(e){if(null!=l.fetchBundleAsset)return l.fetchBundleAsset(e);const t=await(0,i.Z)(e,{responseType:"text"});return JSON.parse(t.data)}class a{constructor({base:e="",pattern:t,location:s=new URL(window.location.href)}){let r;r="string"==typeof s?e=>new URL(e,new URL(s,window.location.href)).href:s instanceof URL?e=>new URL(e,s).href:s,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,s,i){const a=t.exec(s);if(!a)throw new n.Z("esri-intl:invalid-bundle",`Bundle id "${s}" is not compatible with the pattern "${t}"`);const l=a[1]?`${a[1]}/`:"",h=a[2],c=(0,r.Su)(i),d=`${l}${h}.json`,u=c?`${l}${h}_${c}.json`:d;let p;try{p=await o(e(u))}catch(t){if(u===d)throw new n.Z("intl:unknown-bundle",`Bundle "${s}" cannot be loaded`,{error:t});try{p=await o(e(d))}catch(e){throw new n.Z("intl:unknown-bundle",`Bundle "${s}" cannot be loaded`,{error:e})}}return p}(this.getAssetUrl,this.matcher,e,t)}}const l={};var h,c=s(99880);(0,r.tz)((h={pattern:"esri/",location:c.V},new a(h)))},23756:(e,t,s)=>{"use strict";s.d(t,{Ze:()=>b,Xr:()=>m,p6:()=>S,f1:()=>A});var r=s(35454),i=s(70171);const n="system",o="unknown",a="UTC";s(17126);const l=Intl.DateTimeFormat().resolvedOptions().timeZone,h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},u={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},f={...p,second:"numeric"},_={"short-date":h,"short-date-short-time":{...h,...p},"short-date-short-time-24":{...h,...p,hour12:!1},"short-date-long-time":{...h,...f},"short-date-long-time-24":{...h,...f,hour12:!1},"short-date-le":h,"short-date-le-short-time":{...h,...p},"short-date-le-short-time-24":{...h,...p,hour12:!1},"short-date-le-long-time":{...h,...f},"short-date-le-long-time-24":{...h,...f,hour12:!1},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...p},"long-month-day-year-short-time-24":{...c,...p,hour12:!1},"long-month-day-year-long-time":{...c,...f},"long-month-day-year-long-time-24":{...c,...f,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...p},"day-short-month-year-short-time-24":{...d,...p,hour12:!1},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,...f,hour12:!1},"long-date":u,"long-date-short-time":{...u,...p},"long-date-short-time-24":{...u,...p,hour12:!1},"long-date-long-time":{...u,...f},"long-date-long-time-24":{...u,...f,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":f},m=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),g={ar:"ar-u-nu-latn-ca-gregory"};let v=new WeakMap;const y=_["short-date-short-time"];function w(e){let t=v.get(e);if(!t){const s=(0,i.Kd)(),r=g[s]||s,n=I(e);t=new Intl.DateTimeFormat(r,n),v.set(e,t)}return t}function b(e){return _[e]}function S(e,t=y){return w(t).format(e)}function I(e){const t=A(e.timeZone??n);return{...e,timeZone:t}}function A(e){switch(e){case n:return l;case o:return a;default:return e}}(0,i.Ze)((()=>{v=new WeakMap}))},70171:(e,t,s)=>{"use strict";s.d(t,{G3:()=>l,Kd:()=>a,Ze:()=>u,qe:()=>c});var r=s(50758);let i;const n=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function o(){return n??globalThis.navigator?.language??"en"}function a(){return void 0===i&&(i=o()),i}function l(e=a()){const t=/^([a-zA-Z]{2,3})(?:[_\-]\w+)*$/.exec(e);return t?.[1].toLowerCase()}const h=[];function c(e){return h.push(e),(0,r.kB)((()=>h.splice(h.indexOf(e),1)))}const d=[];function u(e){return d.push(e),(0,r.kB)((()=>h.splice(d.indexOf(e),1)))}globalThis.addEventListener?.("languagechange",(function(){const e=o();i!==e&&(i=e,[...d].forEach((t=>{t.call(null,e)})),[...h].forEach((t=>{t.call(null,e)})))}))},94443:(e,t,s)=>{"use strict";s.d(t,{ME:()=>f,Su:()=>_,tz:()=>p});var r=s(20102),i=s(50758),n=s(95330),o=s(70171);const a=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,l={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function h(e){return e in l}Object.keys(l);const c=[],d=new Map;function u(e){for(const t of d.keys())m(e.pattern,t)&&d.delete(t)}function p(e){return c.includes(e)||(u(e),c.unshift(e)),(0,i.kB)((()=>{const t=c.indexOf(e);t>-1&&(c.splice(t,1),u(e))}))}async function f(e){const t=(0,o.Kd)();d.has(e)||d.set(e,async function(e,t){const s=[];for(const r of c)if(m(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){s.push(e)}if(s.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:s});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const s=d.get(e);return s&&await g.add(s),s}function _(e){if(!a.test(e))return null;const t=a.exec(e);if(null===t)return null;const[,s,r]=t,i=s+(r?"-"+r.toUpperCase():"");return h(i)?i:h(s)?s:null}function m(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ze)((()=>{d.clear()}));const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,n.hh)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,s)=>{"use strict";s.d(t,{uf:()=>a});var r=s(70171);const i={ar:"ar-u-nu-latn"};let n=new WeakMap,o={};function a(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||o;if(!n.has(t)){const s=(0,r.Kd)(),o=i[(0,r.Kd)()]||s;n.set(t,new Intl.NumberFormat(o,e))}return n.get(t)}(t).format(e)}(0,r.Ze)((()=>{n=new WeakMap,o={}}))},940:(e,t,s)=>{"use strict";s.d(t,{n:()=>h});var r=s(92604),i=s(78286),n=s(19153),o=s(23756),a=s(18848);const l=r.Z.getLogger("esri.intl.substitute");function h(e,t,s={}){const{format:r={}}=s;return(0,n.gx)(e,(e=>function(e,t,s){let r,n;const o=e.indexOf(":");if(-1===o?r=e.trim():(r=e.slice(0,o).trim(),n=e.slice(o+1).trim()),!r)return"";const a=(0,i.hS)(r,t);if(null==a)return"";const l=(n?s?.[n]:null)??s?.[r];return l?c(a,l):n?d(a,n):u(a)}(e,t,r)))}function c(e,t){switch(t.type){case"date":return(0,o.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),u(e)}}function d(e,t){switch(t.toLowerCase()){case"dateformat":return(0,o.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,o.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):u(e)}}function u(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,o.p6)(e):""}}}}]);
|