@esri/solutions-components 0.7.29 → 0.7.30
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/card-manager/resources_ar.json +1 -4
- package/dist/assets/t9n/card-manager/resources_bg.json +1 -4
- package/dist/assets/t9n/card-manager/resources_bs.json +1 -4
- package/dist/assets/t9n/card-manager/resources_ca.json +1 -4
- package/dist/assets/t9n/card-manager/resources_cs.json +1 -4
- package/dist/assets/t9n/card-manager/resources_da.json +1 -4
- package/dist/assets/t9n/card-manager/resources_de.json +1 -4
- package/dist/assets/t9n/card-manager/resources_el.json +1 -4
- package/dist/assets/t9n/card-manager/resources_es.json +1 -4
- package/dist/assets/t9n/card-manager/resources_et.json +1 -4
- package/dist/assets/t9n/card-manager/resources_fi.json +1 -4
- package/dist/assets/t9n/card-manager/resources_fr.json +1 -4
- package/dist/assets/t9n/card-manager/resources_he.json +1 -4
- package/dist/assets/t9n/card-manager/resources_hr.json +1 -4
- package/dist/assets/t9n/card-manager/resources_hu.json +1 -4
- package/dist/assets/t9n/card-manager/resources_id.json +1 -4
- package/dist/assets/t9n/card-manager/resources_it.json +1 -4
- package/dist/assets/t9n/card-manager/resources_ja.json +1 -4
- package/dist/assets/t9n/card-manager/resources_ko.json +1 -4
- package/dist/assets/t9n/card-manager/resources_lt.json +1 -4
- package/dist/assets/t9n/card-manager/resources_lv.json +1 -4
- package/dist/assets/t9n/card-manager/resources_nb.json +1 -4
- package/dist/assets/t9n/card-manager/resources_nl.json +1 -4
- package/dist/assets/t9n/card-manager/resources_pl.json +1 -4
- package/dist/assets/t9n/card-manager/resources_pt-BR.json +1 -4
- package/dist/assets/t9n/card-manager/resources_pt-PT.json +1 -4
- package/dist/assets/t9n/card-manager/resources_ro.json +1 -4
- package/dist/assets/t9n/card-manager/resources_ru.json +1 -4
- package/dist/assets/t9n/card-manager/resources_sk.json +1 -4
- package/dist/assets/t9n/card-manager/resources_sl.json +1 -4
- package/dist/assets/t9n/card-manager/resources_sr.json +1 -4
- package/dist/assets/t9n/card-manager/resources_sv.json +1 -4
- package/dist/assets/t9n/card-manager/resources_th.json +1 -4
- package/dist/assets/t9n/card-manager/resources_tr.json +1 -4
- package/dist/assets/t9n/card-manager/resources_uk.json +1 -4
- package/dist/assets/t9n/card-manager/resources_vi.json +1 -4
- package/dist/assets/t9n/card-manager/resources_zh-CN.json +1 -4
- package/dist/assets/t9n/card-manager/resources_zh-HK.json +1 -4
- package/dist/assets/t9n/card-manager/resources_zh-TW.json +1 -4
- package/dist/assets/t9n/crowdsource-manager/resources_ar.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_bg.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_bs.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_ca.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_cs.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_da.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_de.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_el.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_es.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_et.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_fi.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_fr.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_he.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_hr.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_hu.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_id.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_it.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_ja.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_ko.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_lt.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_lv.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_nb.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_nl.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_pl.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_pt-BR.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_pt-PT.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_ro.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_ru.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_sk.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_sl.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_sr.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_sv.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_th.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_tr.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_uk.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_vi.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_zh-CN.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_zh-HK.json +2 -2
- package/dist/assets/t9n/crowdsource-manager/resources_zh-TW.json +2 -2
- package/dist/assets/t9n/crowdsource-reporter/resources_ar.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_bg.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_bs.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_ca.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_cs.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_da.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_de.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_el.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_es.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_et.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_fi.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_fr.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_he.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_hr.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_hu.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_id.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_it.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_ja.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_ko.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_lt.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_lv.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_nb.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_nl.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_pl.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_pt-BR.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_pt-PT.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_ro.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_ru.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_sk.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_sl.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_sr.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_sv.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_th.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_tr.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_uk.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_vi.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_zh-CN.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_zh-HK.json +20 -0
- package/dist/assets/t9n/crowdsource-reporter/resources_zh-TW.json +20 -0
- package/dist/assets/t9n/delete-button/resources_ar.json +8 -0
- package/dist/assets/t9n/delete-button/resources_bg.json +8 -0
- package/dist/assets/t9n/delete-button/resources_bs.json +8 -0
- package/dist/assets/t9n/delete-button/resources_ca.json +8 -0
- package/dist/assets/t9n/delete-button/resources_cs.json +8 -0
- package/dist/assets/t9n/delete-button/resources_da.json +8 -0
- package/dist/assets/t9n/delete-button/resources_de.json +8 -0
- package/dist/assets/t9n/delete-button/resources_el.json +8 -0
- package/dist/assets/t9n/delete-button/resources_es.json +8 -0
- package/dist/assets/t9n/delete-button/resources_et.json +8 -0
- package/dist/assets/t9n/delete-button/resources_fi.json +8 -0
- package/dist/assets/t9n/delete-button/resources_fr.json +8 -0
- package/dist/assets/t9n/delete-button/resources_he.json +8 -0
- package/dist/assets/t9n/delete-button/resources_hr.json +8 -0
- package/dist/assets/t9n/delete-button/resources_hu.json +8 -0
- package/dist/assets/t9n/delete-button/resources_id.json +8 -0
- package/dist/assets/t9n/delete-button/resources_it.json +8 -0
- package/dist/assets/t9n/delete-button/resources_ja.json +8 -0
- package/dist/assets/t9n/delete-button/resources_ko.json +8 -0
- package/dist/assets/t9n/delete-button/resources_lt.json +8 -0
- package/dist/assets/t9n/delete-button/resources_lv.json +8 -0
- package/dist/assets/t9n/delete-button/resources_nb.json +8 -0
- package/dist/assets/t9n/delete-button/resources_nl.json +8 -0
- package/dist/assets/t9n/delete-button/resources_pl.json +8 -0
- package/dist/assets/t9n/delete-button/resources_pt-BR.json +8 -0
- package/dist/assets/t9n/delete-button/resources_pt-PT.json +8 -0
- package/dist/assets/t9n/delete-button/resources_ro.json +8 -0
- package/dist/assets/t9n/delete-button/resources_ru.json +8 -0
- package/dist/assets/t9n/delete-button/resources_sk.json +8 -0
- package/dist/assets/t9n/delete-button/resources_sl.json +8 -0
- package/dist/assets/t9n/delete-button/resources_sr.json +8 -0
- package/dist/assets/t9n/delete-button/resources_sv.json +8 -0
- package/dist/assets/t9n/delete-button/resources_th.json +8 -0
- package/dist/assets/t9n/delete-button/resources_tr.json +8 -0
- package/dist/assets/t9n/delete-button/resources_uk.json +8 -0
- package/dist/assets/t9n/delete-button/resources_vi.json +8 -0
- package/dist/assets/t9n/delete-button/resources_zh-CN.json +8 -0
- package/dist/assets/t9n/delete-button/resources_zh-HK.json +8 -0
- package/dist/assets/t9n/delete-button/resources_zh-TW.json +8 -0
- package/dist/assets/t9n/feature-list/resources_ar.json +4 -0
- package/dist/assets/t9n/feature-list/resources_bg.json +4 -0
- package/dist/assets/t9n/feature-list/resources_bs.json +4 -0
- package/dist/assets/t9n/feature-list/resources_ca.json +4 -0
- package/dist/assets/t9n/feature-list/resources_cs.json +4 -0
- package/dist/assets/t9n/feature-list/resources_da.json +4 -0
- package/dist/assets/t9n/feature-list/resources_de.json +4 -0
- package/dist/assets/t9n/feature-list/resources_el.json +4 -0
- package/dist/assets/t9n/feature-list/resources_es.json +4 -0
- package/dist/assets/t9n/feature-list/resources_et.json +4 -0
- package/dist/assets/t9n/feature-list/resources_fi.json +4 -0
- package/dist/assets/t9n/feature-list/resources_fr.json +4 -0
- package/dist/assets/t9n/feature-list/resources_he.json +4 -0
- package/dist/assets/t9n/feature-list/resources_hr.json +4 -0
- package/dist/assets/t9n/feature-list/resources_hu.json +4 -0
- package/dist/assets/t9n/feature-list/resources_id.json +4 -0
- package/dist/assets/t9n/feature-list/resources_it.json +4 -0
- package/dist/assets/t9n/feature-list/resources_ja.json +4 -0
- package/dist/assets/t9n/feature-list/resources_ko.json +4 -0
- package/dist/assets/t9n/feature-list/resources_lt.json +4 -0
- package/dist/assets/t9n/feature-list/resources_lv.json +4 -0
- package/dist/assets/t9n/feature-list/resources_nb.json +4 -0
- package/dist/assets/t9n/feature-list/resources_nl.json +4 -0
- package/dist/assets/t9n/feature-list/resources_pl.json +4 -0
- package/dist/assets/t9n/feature-list/resources_pt-BR.json +4 -0
- package/dist/assets/t9n/feature-list/resources_pt-PT.json +4 -0
- package/dist/assets/t9n/feature-list/resources_ro.json +4 -0
- package/dist/assets/t9n/feature-list/resources_ru.json +4 -0
- package/dist/assets/t9n/feature-list/resources_sk.json +4 -0
- package/dist/assets/t9n/feature-list/resources_sl.json +4 -0
- package/dist/assets/t9n/feature-list/resources_sr.json +4 -0
- package/dist/assets/t9n/feature-list/resources_sv.json +4 -0
- package/dist/assets/t9n/feature-list/resources_th.json +4 -0
- package/dist/assets/t9n/feature-list/resources_tr.json +4 -0
- package/dist/assets/t9n/feature-list/resources_uk.json +4 -0
- package/dist/assets/t9n/feature-list/resources_vi.json +4 -0
- package/dist/assets/t9n/feature-list/resources_zh-CN.json +4 -0
- package/dist/assets/t9n/feature-list/resources_zh-HK.json +4 -0
- package/dist/assets/t9n/feature-list/resources_zh-TW.json +4 -0
- package/dist/assets/t9n/info-card/resources_ar.json +2 -1
- package/dist/assets/t9n/info-card/resources_bg.json +2 -1
- package/dist/assets/t9n/info-card/resources_bs.json +2 -1
- package/dist/assets/t9n/info-card/resources_ca.json +2 -1
- package/dist/assets/t9n/info-card/resources_cs.json +2 -1
- package/dist/assets/t9n/info-card/resources_da.json +2 -1
- package/dist/assets/t9n/info-card/resources_de.json +2 -1
- package/dist/assets/t9n/info-card/resources_el.json +2 -1
- package/dist/assets/t9n/info-card/resources_es.json +2 -1
- package/dist/assets/t9n/info-card/resources_et.json +2 -1
- package/dist/assets/t9n/info-card/resources_fi.json +2 -1
- package/dist/assets/t9n/info-card/resources_fr.json +2 -1
- package/dist/assets/t9n/info-card/resources_he.json +2 -1
- package/dist/assets/t9n/info-card/resources_hr.json +2 -1
- package/dist/assets/t9n/info-card/resources_hu.json +2 -1
- package/dist/assets/t9n/info-card/resources_id.json +2 -1
- package/dist/assets/t9n/info-card/resources_it.json +2 -1
- package/dist/assets/t9n/info-card/resources_ja.json +2 -1
- package/dist/assets/t9n/info-card/resources_ko.json +2 -1
- package/dist/assets/t9n/info-card/resources_lt.json +2 -1
- package/dist/assets/t9n/info-card/resources_lv.json +2 -1
- package/dist/assets/t9n/info-card/resources_nb.json +2 -1
- package/dist/assets/t9n/info-card/resources_nl.json +2 -1
- package/dist/assets/t9n/info-card/resources_pl.json +2 -1
- package/dist/assets/t9n/info-card/resources_pt-BR.json +2 -1
- package/dist/assets/t9n/info-card/resources_pt-PT.json +2 -1
- package/dist/assets/t9n/info-card/resources_ro.json +2 -1
- package/dist/assets/t9n/info-card/resources_ru.json +2 -1
- package/dist/assets/t9n/info-card/resources_sk.json +2 -1
- package/dist/assets/t9n/info-card/resources_sl.json +2 -1
- package/dist/assets/t9n/info-card/resources_sr.json +2 -1
- package/dist/assets/t9n/info-card/resources_sv.json +2 -1
- package/dist/assets/t9n/info-card/resources_th.json +2 -1
- package/dist/assets/t9n/info-card/resources_tr.json +2 -1
- package/dist/assets/t9n/info-card/resources_uk.json +2 -1
- package/dist/assets/t9n/info-card/resources_vi.json +2 -1
- package/dist/assets/t9n/info-card/resources_zh-CN.json +2 -1
- package/dist/assets/t9n/info-card/resources_zh-HK.json +2 -1
- package/dist/assets/t9n/info-card/resources_zh-TW.json +2 -1
- package/dist/assets/t9n/layer-list/resources_ar.json +4 -0
- package/dist/assets/t9n/layer-list/resources_bg.json +4 -0
- package/dist/assets/t9n/layer-list/resources_bs.json +4 -0
- package/dist/assets/t9n/layer-list/resources_ca.json +4 -0
- package/dist/assets/t9n/layer-list/resources_cs.json +4 -0
- package/dist/assets/t9n/layer-list/resources_da.json +4 -0
- package/dist/assets/t9n/layer-list/resources_de.json +4 -0
- package/dist/assets/t9n/layer-list/resources_el.json +4 -0
- package/dist/assets/t9n/layer-list/resources_es.json +4 -0
- package/dist/assets/t9n/layer-list/resources_et.json +4 -0
- package/dist/assets/t9n/layer-list/resources_fi.json +4 -0
- package/dist/assets/t9n/layer-list/resources_fr.json +4 -0
- package/dist/assets/t9n/layer-list/resources_he.json +4 -0
- package/dist/assets/t9n/layer-list/resources_hr.json +4 -0
- package/dist/assets/t9n/layer-list/resources_hu.json +4 -0
- package/dist/assets/t9n/layer-list/resources_id.json +4 -0
- package/dist/assets/t9n/layer-list/resources_it.json +4 -0
- package/dist/assets/t9n/layer-list/resources_ja.json +4 -0
- package/dist/assets/t9n/layer-list/resources_ko.json +4 -0
- package/dist/assets/t9n/layer-list/resources_lt.json +4 -0
- package/dist/assets/t9n/layer-list/resources_lv.json +4 -0
- package/dist/assets/t9n/layer-list/resources_nb.json +4 -0
- package/dist/assets/t9n/layer-list/resources_nl.json +4 -0
- package/dist/assets/t9n/layer-list/resources_pl.json +4 -0
- package/dist/assets/t9n/layer-list/resources_pt-BR.json +4 -0
- package/dist/assets/t9n/layer-list/resources_pt-PT.json +4 -0
- package/dist/assets/t9n/layer-list/resources_ro.json +4 -0
- package/dist/assets/t9n/layer-list/resources_ru.json +4 -0
- package/dist/assets/t9n/layer-list/resources_sk.json +4 -0
- package/dist/assets/t9n/layer-list/resources_sl.json +4 -0
- package/dist/assets/t9n/layer-list/resources_sr.json +4 -0
- package/dist/assets/t9n/layer-list/resources_sv.json +4 -0
- package/dist/assets/t9n/layer-list/resources_th.json +4 -0
- package/dist/assets/t9n/layer-list/resources_tr.json +4 -0
- package/dist/assets/t9n/layer-list/resources_uk.json +4 -0
- package/dist/assets/t9n/layer-list/resources_vi.json +4 -0
- package/dist/assets/t9n/layer-list/resources_zh-CN.json +4 -0
- package/dist/assets/t9n/layer-list/resources_zh-HK.json +4 -0
- package/dist/assets/t9n/layer-list/resources_zh-TW.json +4 -0
- package/dist/assets/t9n/layer-table/resources_ar.json +5 -9
- package/dist/assets/t9n/layer-table/resources_bg.json +5 -9
- package/dist/assets/t9n/layer-table/resources_bs.json +5 -9
- package/dist/assets/t9n/layer-table/resources_ca.json +5 -9
- package/dist/assets/t9n/layer-table/resources_cs.json +5 -9
- package/dist/assets/t9n/layer-table/resources_da.json +5 -9
- package/dist/assets/t9n/layer-table/resources_de.json +5 -9
- package/dist/assets/t9n/layer-table/resources_el.json +5 -9
- package/dist/assets/t9n/layer-table/resources_es.json +5 -9
- package/dist/assets/t9n/layer-table/resources_et.json +5 -9
- package/dist/assets/t9n/layer-table/resources_fi.json +5 -9
- package/dist/assets/t9n/layer-table/resources_fr.json +5 -9
- package/dist/assets/t9n/layer-table/resources_he.json +5 -9
- package/dist/assets/t9n/layer-table/resources_hr.json +5 -9
- package/dist/assets/t9n/layer-table/resources_hu.json +5 -9
- package/dist/assets/t9n/layer-table/resources_id.json +5 -9
- package/dist/assets/t9n/layer-table/resources_it.json +5 -9
- package/dist/assets/t9n/layer-table/resources_ja.json +5 -9
- package/dist/assets/t9n/layer-table/resources_ko.json +5 -9
- package/dist/assets/t9n/layer-table/resources_lt.json +5 -9
- package/dist/assets/t9n/layer-table/resources_lv.json +5 -9
- package/dist/assets/t9n/layer-table/resources_nb.json +5 -9
- package/dist/assets/t9n/layer-table/resources_nl.json +5 -9
- package/dist/assets/t9n/layer-table/resources_pl.json +5 -9
- package/dist/assets/t9n/layer-table/resources_pt-BR.json +5 -9
- package/dist/assets/t9n/layer-table/resources_pt-PT.json +5 -9
- package/dist/assets/t9n/layer-table/resources_ro.json +5 -9
- package/dist/assets/t9n/layer-table/resources_ru.json +5 -9
- package/dist/assets/t9n/layer-table/resources_sk.json +5 -9
- package/dist/assets/t9n/layer-table/resources_sl.json +5 -9
- package/dist/assets/t9n/layer-table/resources_sr.json +5 -9
- package/dist/assets/t9n/layer-table/resources_sv.json +5 -9
- package/dist/assets/t9n/layer-table/resources_th.json +5 -9
- package/dist/assets/t9n/layer-table/resources_tr.json +5 -9
- package/dist/assets/t9n/layer-table/resources_uk.json +5 -9
- package/dist/assets/t9n/layer-table/resources_vi.json +5 -9
- package/dist/assets/t9n/layer-table/resources_zh-CN.json +5 -9
- package/dist/assets/t9n/layer-table/resources_zh-HK.json +5 -9
- package/dist/assets/t9n/layer-table/resources_zh-TW.json +5 -9
- package/dist/assets/t9n/map-tools/resources_ar.json +2 -2
- package/dist/assets/t9n/map-tools/resources_bg.json +2 -2
- package/dist/assets/t9n/map-tools/resources_bs.json +2 -2
- package/dist/assets/t9n/map-tools/resources_ca.json +2 -2
- package/dist/assets/t9n/map-tools/resources_cs.json +2 -2
- package/dist/assets/t9n/map-tools/resources_da.json +2 -2
- package/dist/assets/t9n/map-tools/resources_de.json +2 -2
- package/dist/assets/t9n/map-tools/resources_el.json +2 -2
- package/dist/assets/t9n/map-tools/resources_es.json +2 -2
- package/dist/assets/t9n/map-tools/resources_et.json +2 -2
- package/dist/assets/t9n/map-tools/resources_fi.json +2 -2
- package/dist/assets/t9n/map-tools/resources_fr.json +2 -2
- package/dist/assets/t9n/map-tools/resources_he.json +2 -2
- package/dist/assets/t9n/map-tools/resources_hr.json +2 -2
- package/dist/assets/t9n/map-tools/resources_hu.json +2 -2
- package/dist/assets/t9n/map-tools/resources_id.json +2 -2
- package/dist/assets/t9n/map-tools/resources_it.json +2 -2
- package/dist/assets/t9n/map-tools/resources_ja.json +2 -2
- package/dist/assets/t9n/map-tools/resources_ko.json +2 -2
- package/dist/assets/t9n/map-tools/resources_lt.json +2 -2
- package/dist/assets/t9n/map-tools/resources_lv.json +2 -2
- package/dist/assets/t9n/map-tools/resources_nb.json +2 -2
- package/dist/assets/t9n/map-tools/resources_nl.json +2 -2
- package/dist/assets/t9n/map-tools/resources_pl.json +2 -2
- package/dist/assets/t9n/map-tools/resources_pt-BR.json +2 -2
- package/dist/assets/t9n/map-tools/resources_pt-PT.json +2 -2
- package/dist/assets/t9n/map-tools/resources_ro.json +2 -2
- package/dist/assets/t9n/map-tools/resources_ru.json +2 -2
- package/dist/assets/t9n/map-tools/resources_sk.json +2 -2
- package/dist/assets/t9n/map-tools/resources_sl.json +2 -2
- package/dist/assets/t9n/map-tools/resources_sr.json +2 -2
- package/dist/assets/t9n/map-tools/resources_sv.json +2 -2
- package/dist/assets/t9n/map-tools/resources_th.json +2 -2
- package/dist/assets/t9n/map-tools/resources_tr.json +2 -2
- package/dist/assets/t9n/map-tools/resources_uk.json +2 -2
- package/dist/assets/t9n/map-tools/resources_vi.json +2 -2
- package/dist/assets/t9n/map-tools/resources_zh-CN.json +2 -2
- package/dist/assets/t9n/map-tools/resources_zh-HK.json +2 -2
- package/dist/assets/t9n/map-tools/resources_zh-TW.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ar.json +2 -2
- package/dist/assets/t9n/public-notification/resources_bg.json +2 -2
- package/dist/assets/t9n/public-notification/resources_bs.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ca.json +2 -2
- package/dist/assets/t9n/public-notification/resources_cs.json +2 -2
- package/dist/assets/t9n/public-notification/resources_da.json +2 -2
- package/dist/assets/t9n/public-notification/resources_de.json +2 -2
- package/dist/assets/t9n/public-notification/resources_el.json +2 -2
- package/dist/assets/t9n/public-notification/resources_es.json +2 -2
- package/dist/assets/t9n/public-notification/resources_et.json +2 -2
- package/dist/assets/t9n/public-notification/resources_fi.json +2 -2
- package/dist/assets/t9n/public-notification/resources_fr.json +2 -2
- package/dist/assets/t9n/public-notification/resources_he.json +2 -2
- package/dist/assets/t9n/public-notification/resources_hr.json +2 -2
- package/dist/assets/t9n/public-notification/resources_hu.json +2 -2
- package/dist/assets/t9n/public-notification/resources_id.json +2 -2
- package/dist/assets/t9n/public-notification/resources_it.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ja.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ko.json +2 -2
- package/dist/assets/t9n/public-notification/resources_lt.json +2 -2
- package/dist/assets/t9n/public-notification/resources_lv.json +2 -2
- package/dist/assets/t9n/public-notification/resources_nb.json +2 -2
- package/dist/assets/t9n/public-notification/resources_nl.json +2 -2
- package/dist/assets/t9n/public-notification/resources_pl.json +2 -2
- package/dist/assets/t9n/public-notification/resources_pt-BR.json +2 -2
- package/dist/assets/t9n/public-notification/resources_pt-PT.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ro.json +2 -2
- package/dist/assets/t9n/public-notification/resources_ru.json +2 -2
- package/dist/assets/t9n/public-notification/resources_sk.json +2 -2
- package/dist/assets/t9n/public-notification/resources_sl.json +2 -2
- package/dist/assets/t9n/public-notification/resources_sr.json +2 -2
- package/dist/assets/t9n/public-notification/resources_sv.json +2 -2
- package/dist/assets/t9n/public-notification/resources_th.json +2 -2
- package/dist/assets/t9n/public-notification/resources_tr.json +2 -2
- package/dist/assets/t9n/public-notification/resources_uk.json +2 -2
- package/dist/assets/t9n/public-notification/resources_vi.json +2 -2
- package/dist/assets/t9n/public-notification/resources_zh-CN.json +2 -2
- package/dist/assets/t9n/public-notification/resources_zh-HK.json +2 -2
- package/dist/assets/t9n/public-notification/resources_zh-TW.json +2 -2
- package/dist/cjs/calcite-flow_4.cjs.entry.js +9 -6
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +86 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +88 -3
- package/dist/collection/components/feature-list/feature-list.js +1 -0
- package/dist/collection/components/layer-list/layer-list.css +4 -0
- package/dist/collection/components/layer-list/layer-list.js +43 -5
- package/dist/collection/demos/crowdsource-reporter.html +4 -4
- package/dist/collection/demos/feature-list.html +1 -1
- package/dist/components/crowdsource-reporter.js +88 -3
- package/dist/components/feature-list2.js +1 -0
- package/dist/components/layer-list2.js +10 -6
- package/dist/esm/calcite-alert_4.entry.js +1 -1
- package/dist/esm/calcite-combobox_6.entry.js +1 -1
- package/dist/esm/calcite-flow_4.entry.js +10 -7
- package/dist/esm/card-manager_3.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +87 -3
- package/dist/esm/{downloadUtils-a301c193.js → downloadUtils-d070a467.js} +2 -2
- package/dist/esm/{index.es-37a9907e.js → index.es-d48535a2.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +2 -2
- package/dist/esm/{mapViewUtils-6daedef8.js → mapViewUtils-cf05e880.js} +1 -1
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +4 -4
- package/dist/solutions-components/demos/feature-list.html +1 -1
- package/dist/solutions-components/{p-4566438a.js → p-2c382841.js} +1 -1
- package/dist/solutions-components/p-2f162664.entry.js +6 -0
- package/dist/solutions-components/{p-fe295e9d.entry.js → p-309cdea1.entry.js} +1 -1
- package/dist/solutions-components/{p-a603e673.js → p-55b835a1.js} +2 -2
- package/dist/solutions-components/{p-12de822a.entry.js → p-6b2b8b41.entry.js} +1 -1
- package/dist/solutions-components/{p-dbe62aaf.entry.js → p-802acc51.entry.js} +1 -1
- package/dist/solutions-components/{p-6a452a84.entry.js → p-94ee3ef7.entry.js} +3 -3
- package/dist/solutions-components/{p-643e7ee1.entry.js → p-b699637f.entry.js} +1 -1
- package/dist/solutions-components/{p-0587972d.js → p-b913a4fd.js} +1 -1
- package/dist/solutions-components/{p-78e720cc.entry.js → p-f120ff40.entry.js} +1 -1
- package/dist/solutions-components/{p-b37ec1f3.entry.js → p-f22ff57e.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +41 -4
- package/dist/types/components/feature-list/feature-list.d.ts +1 -0
- package/dist/types/components/layer-list/layer-list.d.ts +10 -2
- package/dist/types/components.d.ts +16 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-8756eebb.entry.js +0 -6
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{a as t,c as r,g as i}from"./p-e1a4994d.js";import{_ as e}from"./p-a603e673.js";import"./p-78780f63.js";import"./p-e902ba19.js";import"./p-d918ec36.js";import"./p-4566438a.js";import"./p-c1cf3ebc.js";import"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-220ec0d1.js";var n,s,a=function(t){return t&&t.Math==Math&&t},o=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},u=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!h((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,l=c?f.bind(f):function(){return f.apply(f,arguments)},v={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,p=d&&!v.call({1:2},1)?function(t){var r=d(this,t);return!!r&&r.enumerable}:v,y={f:p},g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=Function.prototype,b=m.call,w=c&&m.bind.bind(b,b),x=c?w:function(t){return function(){return b.apply(t,arguments)}},M=x({}.toString),k=x("".slice),S=function(t){return k(M(t),8,-1)},N=Object,j=x("".split),P=h((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?j(t,""):N(t)}:N,O=function(t){return null==t},E=TypeError,T=function(t){if(O(t))throw E("Can't call method on "+t);return t},C=function(t){return P(T(t))},A="object"==typeof document&&document.all,R={all:A,IS_HTMLDDA:void 0===A&&void 0!==A},B=R.all,L=R.IS_HTMLDDA?function(t){return"function"==typeof t||t===B}:function(t){return"function"==typeof t},$=R.all,I=R.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===$}:function(t){return"object"==typeof t?null!==t:L(t)},D=function(t,r){return arguments.length<2?L(i=o[t])?i:void 0:o[t]&&o[t][r];var i},F=x({}.isPrototypeOf),z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",_=o.process,Y=o.Deno,X=_&&_.versions||Y&&Y.version,q=X&&X.v8;q&&(s=(n=q.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&z&&(!(n=z.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=z.match(/Chrome\/(\d+)/))&&(s=+n[1]);var G=s,U=!!Object.getOwnPropertySymbols&&!h((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&G&&G<41})),V=U&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=Object,W=V?function(t){return"symbol"==typeof t}:function(t){var r=D("Symbol");return L(r)&&F(r.prototype,H(t))},Q=String,Z=function(t){try{return Q(t)}catch(t){return"Object"}},K=TypeError,J=function(t){if(L(t))return t;throw K(Z(t)+" is not a function")},tt=function(t,r){var i=t[r];return O(i)?void 0:J(i)},rt=TypeError,it=Object.defineProperty,et=function(t,r){try{it(o,t,{value:r,configurable:!0,writable:!0})}catch(i){o[t]=r}return r},nt="__core-js_shared__",st=o[nt]||et(nt,{}),at=r((function(t){(t.exports=function(t,r){return st[t]||(st[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})})),ot=Object,ht=function(t){return ot(T(t))},ut=x({}.hasOwnProperty),ct=Object.hasOwn||function(t,r){return ut(ht(t),r)},ft=0,lt=Math.random(),vt=x(1..toString),dt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+vt(++ft+lt,36)},pt=o.Symbol,yt=at("wks"),gt=V?pt.for||pt:pt&&pt.withoutSetter||dt,mt=function(t){return ct(yt,t)||(yt[t]=U&&ct(pt,t)?pt[t]:gt("Symbol."+t)),yt[t]},bt=TypeError,wt=mt("toPrimitive"),xt=function(t){var r=function(t,r){if(!I(t)||W(t))return t;var i,e=tt(t,wt);if(e){if(void 0===r&&(r="default"),i=l(e,t,r),!I(i)||W(i))return i;throw bt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&L(i=t.toString)&&!I(e=l(i,t)))return e;if(L(i=t.valueOf)&&!I(e=l(i,t)))return e;if("string"!==r&&L(i=t.toString)&&!I(e=l(i,t)))return e;throw rt("Can't convert object to primitive value")}(t,r)}(t,"string");return W(r)?r:r+""},Mt=o.document,kt=I(Mt)&&I(Mt.createElement),St=function(t){return kt?Mt.createElement(t):{}},Nt=!u&&!h((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,Pt=u?jt:function(t,r){if(t=C(t),r=xt(r),Nt)try{return jt(t,r)}catch(t){}if(ct(t,r))return g(!l(y.f,t,r),t[r])},Ot={f:Pt},Et=u&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Tt=String,Ct=TypeError,At=function(t){if(I(t))return t;throw Ct(Tt(t)+" is not an object")},Rt=TypeError,Bt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,$t="enumerable",It="configurable",Dt="writable",Ft=u?Et?function(t,r,i){if(At(t),r=xt(r),At(i),"function"==typeof t&&"prototype"===r&&"value"in i&&Dt in i&&!i[Dt]){var e=Lt(t,r);e&&e[Dt]&&(t[r]=i.value,i={configurable:It in i?i[It]:e[It],enumerable:$t in i?i[$t]:e[$t],writable:!1})}return Bt(t,r,i)}:Bt:function(t,r,i){if(At(t),r=xt(r),At(i),Nt)try{return Bt(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Rt("Accessors not supported");return"value"in i&&(t[r]=i.value),t},zt={f:Ft},_t=u?function(t,r,i){return zt.f(t,r,g(1,i))}:function(t,r,i){return t[r]=i,t},Yt=Function.prototype,Xt=u&&Object.getOwnPropertyDescriptor,qt=ct(Yt,"name"),Gt={EXISTS:qt,PROPER:qt&&"something"===function(){}.name,CONFIGURABLE:qt&&(!u||u&&Xt(Yt,"name").configurable)},Ut=x(Function.toString);L(st.inspectSource)||(st.inspectSource=function(t){return Ut(t)});var Vt,Ht,Wt,Qt=st.inspectSource,Zt=o.WeakMap,Kt=L(Zt)&&/native code/.test(String(Zt)),Jt=at("keys"),tr=function(t){return Jt[t]||(Jt[t]=dt(t))},rr={},ir="Object already initialized",er=o.TypeError;if(Kt||st.state){var nr=st.state||(st.state=new(0,o.WeakMap));nr.get=nr.get,nr.has=nr.has,nr.set=nr.set,Vt=function(t,r){if(nr.has(t))throw er(ir);return r.facade=t,nr.set(t,r),r},Ht=function(t){return nr.get(t)||{}},Wt=function(t){return nr.has(t)}}else{var sr=tr("state");rr[sr]=!0,Vt=function(t,r){if(ct(t,sr))throw er(ir);return r.facade=t,_t(t,sr,r),r},Ht=function(t){return ct(t,sr)?t[sr]:{}},Wt=function(t){return ct(t,sr)}}var ar={set:Vt,get:Ht,has:Wt,enforce:function(t){return Wt(t)?Ht(t):Vt(t,{})},getterFor:function(t){return function(r){var i;if(!I(r)||(i=Ht(r)).type!==t)throw er("Incompatible receiver, "+t+" required");return i}}},or=r((function(t){var r=Gt.CONFIGURABLE,i=ar.enforce,e=ar.get,n=String,s=Object.defineProperty,a=x("".slice),o=x("".replace),c=x([].join),f=u&&!h((function(){return 8!==s((function(){}),"length",{value:8}).length})),l=String(String).split("String"),v=t.exports=function(t,e,h){"Symbol("===a(n(e),0,7)&&(e="["+o(n(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(e="get "+e),h&&h.setter&&(e="set "+e),(!ct(t,"name")||r&&t.name!==e)&&(u?s(t,"name",{value:e,configurable:!0}):t.name=e),f&&h&&ct(h,"arity")&&t.length!==h.arity&&s(t,"length",{value:h.arity});try{h&&ct(h,"constructor")&&h.constructor?u&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var v=i(t);return ct(v,"source")||(v.source=c(l,"string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return L(this)&&e(this).source||Qt(this)}),"toString")})),hr=function(t,r,i,e){e||(e={});var n=e.enumerable,s=void 0!==e.name?e.name:r;if(L(i)&&or(i,s,e),e.global)n?t[r]=i:et(r,i);else{try{e.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=i:zt.f(t,r,{value:i,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},ur=Math.ceil,cr=Math.floor,fr=Math.trunc||function(t){var r=+t;return(r>0?cr:ur)(r)},lr=function(t){var r=+t;return r!=r||0===r?0:fr(r)},vr=Math.max,dr=Math.min,pr=function(t,r){var i=lr(t);return i<0?vr(i+r,0):dr(i,r)},yr=Math.min,gr=function(t){return t>0?yr(lr(t),9007199254740991):0},mr=function(t){return gr(t.length)},br=function(t){return function(r,i,e){var n,s=C(r),a=mr(s),o=pr(e,a);if(t&&i!=i){for(;a>o;)if((n=s[o++])!=n)return!0}else for(;a>o;o++)if((t||o in s)&&s[o]===i)return t||o||0;return!t&&-1}},wr={includes:br(!0),indexOf:br(!1)},xr=wr.indexOf,Mr=x([].push),kr=function(t,r){var i,e=C(t),n=0,s=[];for(i in e)!ct(rr,i)&&ct(e,i)&&Mr(s,i);for(;r.length>n;)ct(e,i=r[n++])&&(~xr(s,i)||Mr(s,i));return s},Sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nr=Sr.concat("length","prototype"),jr=Object.getOwnPropertyNames||function(t){return kr(t,Nr)},Pr={f:jr},Or={f:Object.getOwnPropertySymbols},Er=x([].concat),Tr=D("Reflect","ownKeys")||function(t){var r=Pr.f(At(t)),i=Or.f;return i?Er(r,i(t)):r},Cr=function(t,r,i){for(var e=Tr(r),n=zt.f,s=Ot.f,a=0;a<e.length;a++){var o=e[a];ct(t,o)||i&&ct(i,o)||n(t,o,s(r,o))}},Ar=/#|\.prototype\./,Rr=function(t,r){var i=Lr[Br(t)];return i==Ir||i!=$r&&(L(r)?h(r):!!r)},Br=Rr.normalize=function(t){return String(t).replace(Ar,".").toLowerCase()},Lr=Rr.data={},$r=Rr.NATIVE="N",Ir=Rr.POLYFILL="P",Dr=Rr,Fr=Ot.f,zr=function(t,r){var i,e,n,s,a,h=t.target,u=t.global,c=t.stat;if(i=u?o:c?o[h]||et(h,{}):(o[h]||{}).prototype)for(e in r){if(s=r[e],n=t.dontCallGetSet?(a=Fr(i,e))&&a.value:i[e],!Dr(u?e:h+(c?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Cr(s,n)}(t.sham||n&&n.sham)&&_t(s,"sham",!0),hr(i,e,s,t)}},_r="undefined"!=typeof process&&"process"==S(process),Yr=String,Xr=TypeError,qr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return At(i),function(t){if("object"==typeof t||L(t))return t;throw Xr("Can't set "+Yr(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),Gr=zt.f,Ur=mt("toStringTag"),Vr=function(t,r,i){t&&!i&&(t=t.prototype),t&&!ct(t,Ur)&&Gr(t,Ur,{configurable:!0,value:r})},Hr=mt("species"),Wr=TypeError,Qr={};Qr[mt("toStringTag")]="z";var Zr="[object z]"===String(Qr),Kr=mt("toStringTag"),Jr=Object,ti="Arguments"==S(function(){return arguments}()),ri=Zr?S:function(t){var r,i,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,r){try{return t[r]}catch(t){}}(r=Jr(t),Kr))?i:ti?S(r):"Object"==(e=S(r))&&L(r.callee)?"Arguments":e},ii=function(){},ei=[],ni=D("Reflect","construct"),si=/^\s*(?:class|function)\b/,ai=x(si.exec),oi=!si.exec(ii),hi=function(t){if(!L(t))return!1;try{return ni(ii,ei,t),!0}catch(t){return!1}},ui=function(t){if(!L(t))return!1;switch(ri(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return oi||!!ai(si,Qt(t))}catch(t){return!0}};ui.sham=!0;var ci,fi,li,vi,di=!ni||h((function(){var t;return hi(hi.call)||!hi(Object)||!hi((function(){t=!0}))||t}))?ui:hi,pi=TypeError,yi=mt("species"),gi=function(t,r){var i,e=At(t).constructor;return void 0===e||O(i=At(e)[yi])?r:function(t){if(di(t))return t;throw pi(Z(t)+" is not a constructor")}(i)},mi=Function.prototype,bi=mi.apply,wi=mi.call,xi="object"==typeof Reflect&&Reflect.apply||(c?wi.bind(bi):function(){return wi.apply(bi,arguments)}),Mi=function(t){if("Function"===S(t))return x(t)},ki=Mi(Mi.bind),Si=function(t,r){return J(t),void 0===r?t:c?ki(t,r):function(){return t.apply(r,arguments)}},Ni=D("document","documentElement"),ji=x([].slice),Pi=TypeError,Oi=/(?:ipad|iphone|ipod).*applewebkit/i.test(z),Ei=o.setImmediate,Ti=o.clearImmediate,Ci=o.process,Ai=o.Dispatch,Ri=o.Function,Bi=o.MessageChannel,Li=o.String,$i=0,Ii={},Di="onreadystatechange";h((function(){ci=o.location}));var Fi=function(t){if(ct(Ii,t)){var r=Ii[t];delete Ii[t],r()}},zi=function(t){return function(){Fi(t)}},_i=function(t){Fi(t.data)},Yi=function(t){o.postMessage(Li(t),ci.protocol+"//"+ci.host)};Ei&&Ti||(Ei=function(t){!function(t){if(t<1)throw Pi("Not enough arguments")}(arguments.length);var r=L(t)?t:Ri(t),i=ji(arguments,1);return Ii[++$i]=function(){xi(r,void 0,i)},fi($i),$i},Ti=function(t){delete Ii[t]},_r?fi=function(t){Ci.nextTick(zi(t))}:Ai&&Ai.now?fi=function(t){Ai.now(zi(t))}:Bi&&!Oi?(vi=(li=new Bi).port2,li.port1.onmessage=_i,fi=Si(vi.postMessage,vi)):o.addEventListener&&L(o.postMessage)&&!o.importScripts&&ci&&"file:"!==ci.protocol&&!h(Yi)?(fi=Yi,o.addEventListener("message",_i,!1)):fi=Di in St("script")?function(t){Ni.appendChild(St("script"))[Di]=function(){Ni.removeChild(this),Fi(t)}}:function(t){setTimeout(zi(t),0)});var Xi={set:Ei,clear:Ti},qi=function(){this.head=null,this.tail=null};qi.prototype={add:function(t){var r={item:t,next:null},i=this.tail;i?i.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Gi,Ui,Vi,Hi,Wi,Qi=qi,Zi=/ipad|iphone|ipod/i.test(z)&&"undefined"!=typeof Pebble,Ki=/web0s(?!.*chrome)/i.test(z),Ji=Xi.set,te=o.MutationObserver||o.WebKitMutationObserver,re=o.document,ie=o.process,ee=o.Promise,ne=(0,Ot.f)(o,"queueMicrotask"),se=ne&&ne.value;if(!se){var ae=new Qi,oe=function(){var t,r;for(_r&&(t=ie.domain)&&t.exit();r=ae.get();)try{r()}catch(t){throw ae.head&&Gi(),t}t&&t.enter()};Oi||_r||Ki||!te||!re?!Zi&&ee&&ee.resolve?((Hi=ee.resolve(void 0)).constructor=ee,Wi=Si(Hi.then,Hi),Gi=function(){Wi(oe)}):_r?Gi=function(){ie.nextTick(oe)}:(Ji=Si(Ji,o),Gi=function(){Ji(oe)}):(Ui=!0,Vi=re.createTextNode(""),new te(oe).observe(Vi,{characterData:!0}),Gi=function(){Vi.data=Ui=!Ui}),se=function(t){ae.head||Gi(),ae.add(t)}}var he,ue,ce,fe,le=se,ve=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},de=o.Promise,pe="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ye=!pe&&!_r&&"object"==typeof window&&"object"==typeof document,ge=mt("species"),me=!1,be=L(o.PromiseRejectionEvent),we=Dr("Promise",(function(){var t=Qt(de),r=t!==String(de);if(!r&&66===G)return!0;if(!G||G<51||!/native code/.test(t)){var i=new de((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((i.constructor={})[ge]=e,!(me=i.then((function(){}))instanceof e))return!0}return!r&&(ye||pe)&&!be})),xe={CONSTRUCTOR:we,REJECTION_EVENT:be,SUBCLASSING:me},Me=TypeError,ke=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw Me("Bad Promise constructor");r=t,i=e})),this.resolve=J(r),this.reject=J(i)},Se={f:function(t){return new ke(t)}},Ne=Xi.set,je="Promise",Pe=xe.CONSTRUCTOR,Oe=xe.REJECTION_EVENT,Ee=xe.SUBCLASSING,Te=ar.getterFor(je),Ce=ar.set,Ae=de&&de.prototype,Re=de,Be=Ae,Le=o.TypeError,$e=o.document,Ie=o.process,De=Se.f,Fe=De,ze=!!($e&&$e.createEvent&&o.dispatchEvent),_e="unhandledrejection",Ye=function(t){var r;return!(!I(t)||!L(r=t.then))&&r},Xe=function(t,r){var i,e,n,s=r.value,a=1==r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&He(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Le("Promise-chain cycle")):(e=Ye(i))?l(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},qe=function(t,r){t.notified||(t.notified=!0,le((function(){for(var i,e=t.reactions;i=e.get();)Xe(i,t);t.notified=!1,r&&!t.rejection&&Ue(t)})))},Ge=function(t,r,i){var e,n;ze?((e=$e.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),o.dispatchEvent(e)):e={promise:r,reason:i},!Oe&&(n=o["on"+t])?n(e):t===_e&&function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",i)},Ue=function(t){l(Ne,o,(function(){var r,i=t.facade,e=t.value;if(Ve(t)&&(r=ve((function(){_r?Ie.emit("unhandledRejection",e,i):Ge(_e,i,e)})),t.rejection=_r||Ve(t)?2:1,r.error))throw r.value}))},Ve=function(t){return 1!==t.rejection&&!t.parent},He=function(t){l(Ne,o,(function(){var r=t.facade;_r?Ie.emit("rejectionHandled",r):Ge("rejectionhandled",r,t.value)}))},We=function(t,r,i){return function(e){t(r,e,i)}},Qe=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,qe(t,!0))},Ze=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Le("Promise can't be resolved itself");var e=Ye(r);e?le((function(){var i={done:!1};try{l(e,r,We(Ze,i,t),We(Qe,i,t))}catch(r){Qe(i,r,t)}})):(t.value=r,t.state=1,qe(t,!1))}catch(r){Qe({done:!1},r,t)}}};if(Pe&&(Re=function(t){!function(t){if(F(Be,t))return t;throw Wr("Incorrect invocation")}(this),J(t),l(he,this);var r=Te(this);try{t(We(Ze,r),We(Qe,r))}catch(t){Qe(r,t)}},(he=function(){Ce(this,{type:je,done:!1,notified:!1,parent:!1,reactions:new Qi,rejection:!1,state:0,value:void 0})}).prototype=hr(Be=Re.prototype,"then",(function(t,r){var i=Te(this),e=De(gi(this,Re));return i.parent=!0,e.ok=!L(t)||t,e.fail=L(r)&&r,e.domain=_r?Ie.domain:void 0,0==i.state?i.reactions.add(e):le((function(){Xe(e,i)})),e.promise})),ue=function(){var t=new he,r=Te(t);this.promise=t,this.resolve=We(Ze,r),this.reject=We(Qe,r)},Se.f=De=function(t){return t===Re||void 0===t?new ue(t):Fe(t)},L(de)&&Ae!==Object.prototype)){ce=Ae.then,Ee||hr(Ae,"then",(function(t,r){var i=this;return new Re((function(t,r){l(ce,i,t,r)})).then(t,r)}),{unsafe:!0});try{delete Ae.constructor}catch(t){}qr&&qr(Ae,Be)}zr({global:!0,constructor:!0,wrap:!0,forced:Pe},{Promise:Re}),Vr(Re,je,!1),fe=D(je),u&&fe&&!fe[Hr]&&(0,zt.f)(fe,Hr,{configurable:!0,get:function(){return this}});var Ke={},Je=mt("iterator"),tn=Array.prototype,rn=mt("iterator"),en=function(t){if(!O(t))return tt(t,rn)||tt(t,"@@iterator")||Ke[ri(t)]},nn=TypeError,sn=function(t,r,i){var e,n;At(t);try{if(!(e=tt(t,"return"))){if("throw"===r)throw i;return i}e=l(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return At(e),i},an=TypeError,on=function(t,r){this.stopped=t,this.result=r},hn=on.prototype,un=function(t,r,i){var e,n,s,a,o,h,u,c,f=!(!i||!i.AS_ENTRIES),v=!(!i||!i.IS_RECORD),d=!(!i||!i.IS_ITERATOR),p=!(!i||!i.INTERRUPTED),y=Si(r,i&&i.that),g=function(t){return e&&sn(e,"normal",t),new on(!0,t)},m=function(t){return f?(At(t),p?y(t[0],t[1],g):y(t[0],t[1])):p?y(t,g):y(t)};if(v)e=t.iterator;else if(d)e=t;else{if(!(n=en(t)))throw an(Z(t)+" is not iterable");if(void 0!==(c=n)&&(Ke.Array===c||tn[Je]===c)){for(s=0,a=mr(t);a>s;s++)if((o=m(t[s]))&&F(hn,o))return o;return new on(!1)}e=function(t,r){var i=arguments.length<2?en(t):r;if(J(i))return At(l(i,t));throw nn(Z(t)+" is not iterable")}(t,n)}for(h=v?t.next:e.next;!(u=l(h,e)).done;){try{o=m(u.value)}catch(t){sn(e,"throw",t)}if("object"==typeof o&&o&&F(hn,o))return o}return new on(!1)},cn=mt("iterator"),fn=!1;try{var ln=0,vn={next:function(){return{done:!!ln++}},return:function(){fn=!0}};vn[cn]=function(){return this},Array.from(vn,(function(){throw 2}))}catch(t){}var dn=xe.CONSTRUCTOR||!function(){if(!fn)return!1;var t=!1;try{var r={};r[cn]=function(){return{next:function(){return{done:t=!0}}}},de.all(r).then(void 0,(function(){}))}catch(t){}return t}();zr({target:"Promise",stat:!0,forced:dn},{all:function(t){var r=this,i=Se.f(r),e=i.resolve,n=i.reject,s=ve((function(){var i=J(r.resolve),s=[],a=0,o=1;un(t,(function(t){var h=a++,u=!1;o++,l(i,r,t).then((function(t){u||(u=!0,s[h]=t,--o||e(s))}),n)})),--o||e(s)}));return s.error&&n(s.value),i.promise}});var pn=de&&de.prototype;if(zr({target:"Promise",proto:!0,forced:xe.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(de)){var yn=D("Promise").prototype.catch;pn.catch!==yn&&hr(pn,"catch",yn,{unsafe:!0})}zr({target:"Promise",stat:!0,forced:dn},{race:function(t){var r=this,i=Se.f(r),e=i.reject,n=ve((function(){var n=J(r.resolve);un(t,(function(t){l(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}}),zr({target:"Promise",stat:!0,forced:xe.CONSTRUCTOR},{reject:function(t){var r=Se.f(this);return l(r.reject,void 0,t),r.promise}}),zr({target:"Promise",stat:!0,forced:xe.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(At(t),I(r)&&r.constructor===t)return r;var i=Se.f(t);return(0,i.resolve)(r),i.promise}(this,t)}});const gn=i(r((function(t){function r(t,r,i,e,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void i(t)}o.done?r(h):Promise.resolve(h).then(e,n)}t.exports=function(t){return function(){var i=this,e=arguments;return new Promise((function(n,s){var a=t.apply(i,e);function o(t){r(a,n,s,o,h,"next",t)}function h(t){r(a,n,s,o,h,"throw",t)}o(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports})));var mn,bn=String,wn=function(t){if("Symbol"===ri(t))throw TypeError("Cannot convert a Symbol value to a string");return bn(t)},xn=function(){var t=At(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Mn=o.RegExp,kn=h((function(){var t=Mn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Sn=kn||h((function(){return!Mn("a","y").sticky})),Nn={BROKEN_CARET:kn||h((function(){var t=Mn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Sn,UNSUPPORTED_Y:kn},jn=Object.keys||function(t){return kr(t,Sr)},Pn=u&&!Et?Object.defineProperties:function(t,r){At(t);for(var i,e=C(r),n=jn(r),s=n.length,a=0;s>a;)zt.f(t,i=n[a++],e[i]);return t},On={f:Pn},En="prototype",Tn="script",Cn=tr("IE_PROTO"),An=function(){},Rn=function(t){return"<"+Tn+">"+t+"</"+Tn+">"},Bn=function(t){t.write(Rn("")),t.close();var r=t.parentWindow.Object;return t=null,r},Ln=function(){try{mn=new ActiveXObject("htmlfile")}catch(t){}var t,r,i;Ln="undefined"!=typeof document?document.domain&&mn?Bn(mn):(r=St("iframe"),i="java"+Tn+":",r.style.display="none",Ni.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(Rn("document.F=Object")),t.close(),t.F):Bn(mn);for(var e=Sr.length;e--;)delete Ln[En][Sr[e]];return Ln()};rr[Cn]=!0;var $n,In,Dn=Object.create||function(t,r){var i;return null!==t?(An[En]=At(t),i=new An,An[En]=null,i[Cn]=t):i=Ln(),void 0===r?i:On.f(i,r)},Fn=o.RegExp,zn=h((function(){var t=Fn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),_n=o.RegExp,Yn=h((function(){var t=_n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Xn=ar.get,qn=at("native-string-replace",String.prototype.replace),Gn=RegExp.prototype.exec,Un=Gn,Vn=x("".charAt),Hn=x("".indexOf),Wn=x("".replace),Qn=x("".slice),Zn=(In=/b*/g,l(Gn,$n=/a/,"a"),l(Gn,In,"a"),0!==$n.lastIndex||0!==In.lastIndex),Kn=Nn.BROKEN_CARET,Jn=void 0!==/()??/.exec("")[1];(Zn||Jn||Kn||zn||Yn)&&(Un=function(t){var r,i,e,n,s,a,o,h=this,u=Xn(h),c=wn(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=l(Un,f,c),h.lastIndex=f.lastIndex,r;var v=u.groups,d=Kn&&h.sticky,p=l(xn,h),y=h.source,g=0,m=c;if(d&&(p=Wn(p,"y",""),-1===Hn(p,"g")&&(p+="g"),m=Qn(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Vn(c,h.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,g++),i=new RegExp("^(?:"+y+")",p)),Jn&&(i=new RegExp("^"+y+"$(?!\\s)",p)),Zn&&(e=h.lastIndex),n=l(Gn,d?i:h,m),d?n?(n.input=Qn(n.input,g),n[0]=Qn(n[0],g),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Zn&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),Jn&&n&&n.length>1&&l(qn,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&v)for(n.groups=a=Dn(null),s=0;s<v.length;s++)a[(o=v[s])[0]]=n[o[1]];return n});var ts=Un;zr({target:"RegExp",proto:!0,forced:/./.exec!==ts},{exec:ts});var rs=mt("species"),is=RegExp.prototype,es=function(t,r,i,e){var n=mt(t),s=!h((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!h((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[rs]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var o=Mi(/./[n]),u=r(n,""[t],(function(t,r,i,e,n){var a=Mi(t),h=r.exec;return h===ts||h===is.exec?s&&!n?{done:!0,value:o(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));hr(String.prototype,t,u[0]),hr(is,n,u[1])}e&&_t(is[n],"sham",!0)},ns=x("".charAt),ss=x("".charCodeAt),as=x("".slice),os=function(t){return function(r,i){var e,n,s=wn(T(r)),a=lr(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=ss(s,a))<55296||e>56319||a+1===o||(n=ss(s,a+1))<56320||n>57343?t?ns(s,a):e:t?as(s,a,a+2):n-56320+(e-55296<<10)+65536}},hs=(os(!1),os(!0)),us=function(t,r,i){return r+(i?hs(t,r).length:1)},cs=TypeError,fs=function(t,r){var i=t.exec;if(L(i)){var e=l(i,t,r);return null!==e&&At(e),e}if("RegExp"===S(t))return l(ts,t,r);throw cs("RegExp#exec called on incompatible receiver")};es("match",(function(t,r,i){return[function(r){var i=T(this),e=O(r)?void 0:tt(r,t);return e?l(e,r,i):new RegExp(r)[t](wn(i))},function(t){var e=At(this),n=wn(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return fs(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=fs(e,n));){var c=wn(o[0]);h[u]=c,""===c&&(e.lastIndex=us(n,gr(e.lastIndex),a)),u++}return 0===u?null:h}]}));var ls=Math.floor,vs=x("".charAt),ds=x("".replace),ps=x("".slice),ys=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,gs=/\$([$&'`]|\d{1,2})/g,ms=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=gs;return void 0!==n&&(n=ht(n),h=ys),ds(s,h,(function(s,h){var u;switch(vs(h,0)){case"$":return"$";case"&":return t;case"`":return ps(r,0,i);case"'":return ps(r,a);case"<":u=n[ps(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=ls(c/10);return 0===f?s:f<=o?void 0===e[f-1]?vs(h,1):e[f-1]+vs(h,1):s}u=e[c-1]}return void 0===u?"":u}))},bs=mt("replace"),ws=Math.max,xs=Math.min,Ms=x([].concat),ks=x([].push),Ss=x("".indexOf),Ns=x("".slice),js="$0"==="a".replace(/./,"$0"),Ps=!!/./[bs]&&""===/./[bs]("a","$0");es("replace",(function(t,r,i){var e=Ps?"$":"$0";return[function(t,i){var e=T(this),n=O(t)?void 0:tt(t,bs);return n?l(n,t,e,i):l(r,wn(e),t,i)},function(t,n){var s=At(this),a=wn(t);if("string"==typeof n&&-1===Ss(n,e)&&-1===Ss(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=L(n);h||(n=wn(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=fs(s,a);if(null===l)break;if(ks(f,l),!u)break;""===wn(l[0])&&(s.lastIndex=us(a,gr(s.lastIndex),c))}for(var v,d="",p=0,y=0;y<f.length;y++){for(var g=wn((l=f[y])[0]),m=ws(xs(lr(l.index),a.length),0),b=[],w=1;w<l.length;w++)ks(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=Ms([g],b,m,a);void 0!==x&&ks(M,x);var k=wn(xi(n,void 0,M))}else k=ms(g,a,m,b,x,n);m>=p&&(d+=Ns(a,p,m)+k,p=m+g.length)}return d+Ns(a,p)}]}),!!h((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!js||Ps);var Os,Es=mt("match"),Ts=function(t){var r;return I(t)&&(void 0!==(r=t[Es])?!!r:"RegExp"==S(t))},Cs=TypeError,As=function(t){if(Ts(t))throw Cs("The method doesn't accept regular expressions");return t},Rs=mt("match"),Bs=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[Rs]=!1,"/./"[t](r)}catch(t){}}return!1},Ls=Ot.f,$s=Mi("".startsWith),Is=Mi("".slice),Ds=Math.min,Fs=Bs("startsWith"),zs=!(Fs||(Os=Ls(String.prototype,"startsWith"),!Os||Os.writable));zr({target:"String",proto:!0,forced:!zs&&!Fs},{startsWith:function(t){var r=wn(T(this));As(t);var i=gr(Ds(arguments.length>1?arguments[1]:void 0,r.length)),e=wn(t);return $s?$s(r,e,i):Is(r,i,i+e.length)===e}});var _s=zt.f,Ys=mt("unscopables"),Xs=Array.prototype;null==Xs[Ys]&&_s(Xs,Ys,{configurable:!0,value:Dn(null)});var qs,Gs,Us,Vs=function(t){Xs[Ys][t]=!0},Hs=!h((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Ws=tr("IE_PROTO"),Qs=Object,Zs=Qs.prototype,Ks=Hs?Qs.getPrototypeOf:function(t){var r=ht(t);if(ct(r,Ws))return r[Ws];var i=r.constructor;return L(i)&&r instanceof i?i.prototype:r instanceof Qs?Zs:null},Js=mt("iterator"),ta=!1;[].keys&&("next"in(Us=[].keys())?(Gs=Ks(Ks(Us)))!==Object.prototype&&(qs=Gs):ta=!0);var ra=!I(qs)||h((function(){var t={};return qs[Js].call(t)!==t}));ra&&(qs={}),L(qs[Js])||hr(qs,Js,(function(){return this}));var ia={IteratorPrototype:qs,BUGGY_SAFARI_ITERATORS:ta},ea=ia.IteratorPrototype,na=function(){return this},sa=Gt.PROPER,aa=Gt.CONFIGURABLE,oa=ia.IteratorPrototype,ha=ia.BUGGY_SAFARI_ITERATORS,ua=mt("iterator"),ca="keys",fa="values",la="entries",va=function(){return this},da=function(t,r){return{value:t,done:r}},pa=zt.f,ya="Array Iterator",ga=ar.set,ma=ar.getterFor(ya),ba=function(t,r,i,e,n){!function(t,r,i){var e=r+" Iterator";t.prototype=Dn(ea,{next:g(1,i)}),Vr(t,e,!1),Ke[e]=na}(i,r,(function(){var t=ma(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,da(void 0,!0)):da("keys"==i?e:"values"==i?r[e]:[e,r[e]],!1)}));var s,a,o,h=function(t){if(t===n&&d)return d;if(!ha&&t in f)return f[t];switch(t){case ca:case fa:case la:return function(){return new i(this,t)}}return function(){return new i(this)}},u=r+" Iterator",c=!1,f=t.prototype,v=f[ua]||f["@@iterator"]||n&&f[n],d=!ha&&v||h(n),p=f.entries||v;if(p&&(s=Ks(p.call(new t)))!==Object.prototype&&s.next&&(Ks(s)!==oa&&(qr?qr(s,oa):L(s[ua])||hr(s,ua,va)),Vr(s,u,!0)),sa&&v&&v.name!==fa&&(aa?_t(f,"name",fa):(c=!0,d=function(){return l(v,this)})),n)if(void(a={values:h(fa),keys:h(ca),entries:h(la)}))for(o in a)(ha||c||!(o in f))&&hr(f,o,a[o]);else zr({target:r,proto:!0,forced:ha||c},a);return f[ua]!==d&&hr(f,ua,d,{name:n}),Ke[r]=d,a}(Array,"Array",(function(t,r){ga(this,{type:ya,target:C(t),index:0,kind:r})}),0,"values"),wa=Ke.Arguments=Ke.Array;if(Vs("keys"),Vs("values"),Vs("entries"),u&&"values"!==wa.name)try{pa(wa,"name",{value:"values"})}catch(t){}var xa={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ma=St("span").classList,ka=Ma&&Ma.constructor&&Ma.constructor.prototype,Sa=ka===Object.prototype?void 0:ka,Na=mt("iterator"),ja=mt("toStringTag"),Pa=ba.values,Oa=function(t,r){if(t){if(t[Na]!==Pa)try{_t(t,Na,Pa)}catch(r){t[Na]=Pa}if(t[ja]||_t(t,ja,r),xa[r])for(var i in ba)if(t[i]!==ba[i])try{_t(t,i,ba[i])}catch(r){t[i]=ba[i]}}};for(var Ea in xa)Oa(o[Ea]&&o[Ea].prototype,Ea);Oa(Sa,"DOMTokenList");var Ta=r((function(t){var r=e.default;t.exports=function(t,i){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),Ca=r((function(t){var r=e.default;t.exports=function(t){var i=Ta(t,"string");return"symbol"===r(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports}));const Aa=i(r((function(t){t.exports=function(t,r,i){return(r=Ca(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports})));var Ra=TypeError,Ba=function(t){return function(r,i,e,n){J(i);var s=ht(r),a=P(s),o=mr(s),h=t?o-1:0,u=t?-1:1;if(e<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw Ra("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in a&&(n=i(n,a[h],h,s));return n}},La=function(t,r){var i=[][t];return!!i&&h((function(){i.call(null,r||function(){return 1},1)}))},$a=[Ba(!1),Ba(!0)][0],Ia=!_r&&G>79&&G<83||!La("reduce");zr({target:"Array",proto:!0,forced:Ia},{reduce:function(t){var r=arguments.length;return $a(this,t,r,r>1?arguments[1]:void 0)}});var Da=Ot.f,Fa=Mi("".endsWith),za=Mi("".slice),_a=Math.min,Ya=Bs("endsWith"),Xa=!Ya&&!!function(){var t=Da(String.prototype,"endsWith");return t&&!t.writable}();zr({target:"String",proto:!0,forced:!Xa&&!Ya},{endsWith:function(t){var r=wn(T(this));As(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:_a(gr(i),e),s=wn(t);return Fa?Fa(r,s,n):za(r,n-s.length,n)===s}});var qa=Array,Ga=Math.max,Ua=function(t,r,i){for(var e,n,s,a=mr(t),o=pr(r,a),h=pr(void 0===i?a:i,a),u=qa(Ga(h-o,0)),c=0;o<h;o++,c++)e=u,n=t[o],void 0,(s=xt(c))in e?zt.f(e,s,g(0,n)):e[s]=n;return u.length=c,u},Va=Nn.UNSUPPORTED_Y,Ha=4294967295,Wa=Math.min,Qa=[].push,Za=x(/./.exec),Ka=x(Qa),Ja=x("".slice);es("split",(function(t,r,i){var e;return e="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var e=wn(T(this)),n=void 0===i?Ha:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!Ts(t))return l(r,e,t,n);for(var s,a,o,h=[],u=0,c=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=l(ts,c,e))&&!((a=c.lastIndex)>u&&(Ka(h,Ja(e,u,s.index)),s.length>1&&s.index<e.length&&xi(Qa,h,Ua(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&Za(c,"")||Ka(h,""):Ka(h,Ja(e,u)),h.length>n?Ua(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:l(r,this,t,i)}:r,[function(r,i){var n=T(this),s=O(r)?void 0:tt(r,t);return s?l(s,r,n,i):l(e,wn(n),r,i)},function(t,n){var s=At(this),a=wn(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=gi(s,RegExp),u=s.unicode,c=new h(Va?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Va?"g":"y")),f=void 0===n?Ha:n>>>0;if(0===f)return[];if(0===a.length)return null===fs(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=Va?0:v;var p,y=fs(c,Va?Ja(a,v):a);if(null===y||(p=Wa(gr(c.lastIndex+(Va?v:0)),a.length))===l)v=us(a,v,u);else{if(Ka(d,Ja(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(Ka(d,y[g]),d.length===f)return d;v=l=p}}return Ka(d,Ja(a,l)),d}]}),!!h((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),Va);for(var to=r((function(r){(function(){var t,i,e,n,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?r.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(r.exports=function(){return(t()-s)/1e6},i=process.hrtime,n=(t=function(){var t;return 1e9*(t=i())[0]+t[1]})(),a=1e9*process.uptime(),s=n-a):Date.now?(r.exports=function(){return Date.now()-e},e=Date.now()):(r.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(t)})),ro="undefined"==typeof window?t:window,io=["moz","webkit"],eo="AnimationFrame",no=ro["request"+eo],so=ro["cancel"+eo]||ro["cancelRequest"+eo],ao=0;!no&&ao<io.length;ao++)no=ro[io[ao]+"Request"+eo],so=ro[io[ao]+"Cancel"+eo]||ro[io[ao]+"CancelRequest"+eo];if(!no||!so){var oo=0,ho=0,uo=[];no=function(t){if(0===uo.length){var r=to(),i=Math.max(0,16.666666666666668-(r-oo));oo=i+r,setTimeout((function(){var t=uo.slice(0);uo.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(oo)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return uo.push({handle:++ho,callback:t,cancelled:!1}),ho},so=function(t){for(var r=0;r<uo.length;r++)uo[r].handle===t&&(uo[r].cancelled=!0)}}var co=function(t){return no.call(ro,t)};co.cancel=function(){so.apply(ro,arguments)},co.polyfill=function(t){t||(t=ro),t.requestAnimationFrame=no,t.cancelAnimationFrame=so};var fo,lo="\t\n\v\f\r \u2028\u2029\ufeff",vo=x("".replace),po="["+lo+"]",yo=RegExp("^"+po+po+"*"),go=RegExp(po+po+"*$"),mo=function(t){return function(r){var i=wn(T(r));return 1&t&&(i=vo(i,yo,"")),2&t&&(i=vo(i,go,"")),i}},bo={start:mo(1),end:mo(2),trim:mo(3)},wo=Gt.PROPER,xo=bo.trim;zr({target:"String",proto:!0,forced:(fo="trim",h((function(){return!!lo[fo]()||"
"!=="
"[fo]()||wo&&lo[fo].name!==fo})))},{trim:function(){return xo(this)}});var Mo=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var i=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<i.length;e++){var n=i[e].process,s=i[e].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==i.length&&(i="0"+i),"#"+t+r+i},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var h=document.createElement("li"),u=new RGBColor(t[e]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[e]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},ko=wr.indexOf,So=Mi([].indexOf),No=!!So&&1/So([1],1,-0)<0,jo=No||!La("indexOf");zr({target:"Array",proto:!0,forced:jo},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return No?So(this,t,r)||0:ko(this,t,r)}});var Po=x("".indexOf);zr({target:"String",proto:!0,forced:!Bs("includes")},{includes:function(t){return!!~Po(wn(T(this)),wn(As(t)),arguments.length>1?arguments[1]:void 0)}});var Oo=Array.isArray||function(t){return"Array"==S(t)},Eo=x([].reverse),To=[1,2];zr({target:"Array",proto:!0,forced:String(To)===String(To.reverse())},{reverse:function(){return Oo(this)&&(this.length=this.length),Eo(this)}});
|
6
|
+
import{a as t,c as r,g as i}from"./p-e1a4994d.js";import{_ as e}from"./p-55b835a1.js";import"./p-78780f63.js";import"./p-e902ba19.js";import"./p-d918ec36.js";import"./p-2c382841.js";import"./p-c1cf3ebc.js";import"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-220ec0d1.js";var n,s,a=function(t){return t&&t.Math==Math&&t},o=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},u=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!h((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,l=c?f.bind(f):function(){return f.apply(f,arguments)},v={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,p=d&&!v.call({1:2},1)?function(t){var r=d(this,t);return!!r&&r.enumerable}:v,y={f:p},g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=Function.prototype,b=m.call,w=c&&m.bind.bind(b,b),x=c?w:function(t){return function(){return b.apply(t,arguments)}},M=x({}.toString),k=x("".slice),S=function(t){return k(M(t),8,-1)},N=Object,j=x("".split),P=h((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?j(t,""):N(t)}:N,O=function(t){return null==t},E=TypeError,T=function(t){if(O(t))throw E("Can't call method on "+t);return t},C=function(t){return P(T(t))},A="object"==typeof document&&document.all,R={all:A,IS_HTMLDDA:void 0===A&&void 0!==A},B=R.all,L=R.IS_HTMLDDA?function(t){return"function"==typeof t||t===B}:function(t){return"function"==typeof t},$=R.all,I=R.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===$}:function(t){return"object"==typeof t?null!==t:L(t)},D=function(t,r){return arguments.length<2?L(i=o[t])?i:void 0:o[t]&&o[t][r];var i},F=x({}.isPrototypeOf),z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",_=o.process,Y=o.Deno,X=_&&_.versions||Y&&Y.version,q=X&&X.v8;q&&(s=(n=q.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&z&&(!(n=z.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=z.match(/Chrome\/(\d+)/))&&(s=+n[1]);var G=s,U=!!Object.getOwnPropertySymbols&&!h((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&G&&G<41})),V=U&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=Object,W=V?function(t){return"symbol"==typeof t}:function(t){var r=D("Symbol");return L(r)&&F(r.prototype,H(t))},Q=String,Z=function(t){try{return Q(t)}catch(t){return"Object"}},K=TypeError,J=function(t){if(L(t))return t;throw K(Z(t)+" is not a function")},tt=function(t,r){var i=t[r];return O(i)?void 0:J(i)},rt=TypeError,it=Object.defineProperty,et=function(t,r){try{it(o,t,{value:r,configurable:!0,writable:!0})}catch(i){o[t]=r}return r},nt="__core-js_shared__",st=o[nt]||et(nt,{}),at=r((function(t){(t.exports=function(t,r){return st[t]||(st[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})})),ot=Object,ht=function(t){return ot(T(t))},ut=x({}.hasOwnProperty),ct=Object.hasOwn||function(t,r){return ut(ht(t),r)},ft=0,lt=Math.random(),vt=x(1..toString),dt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+vt(++ft+lt,36)},pt=o.Symbol,yt=at("wks"),gt=V?pt.for||pt:pt&&pt.withoutSetter||dt,mt=function(t){return ct(yt,t)||(yt[t]=U&&ct(pt,t)?pt[t]:gt("Symbol."+t)),yt[t]},bt=TypeError,wt=mt("toPrimitive"),xt=function(t){var r=function(t,r){if(!I(t)||W(t))return t;var i,e=tt(t,wt);if(e){if(void 0===r&&(r="default"),i=l(e,t,r),!I(i)||W(i))return i;throw bt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&L(i=t.toString)&&!I(e=l(i,t)))return e;if(L(i=t.valueOf)&&!I(e=l(i,t)))return e;if("string"!==r&&L(i=t.toString)&&!I(e=l(i,t)))return e;throw rt("Can't convert object to primitive value")}(t,r)}(t,"string");return W(r)?r:r+""},Mt=o.document,kt=I(Mt)&&I(Mt.createElement),St=function(t){return kt?Mt.createElement(t):{}},Nt=!u&&!h((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,Pt=u?jt:function(t,r){if(t=C(t),r=xt(r),Nt)try{return jt(t,r)}catch(t){}if(ct(t,r))return g(!l(y.f,t,r),t[r])},Ot={f:Pt},Et=u&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Tt=String,Ct=TypeError,At=function(t){if(I(t))return t;throw Ct(Tt(t)+" is not an object")},Rt=TypeError,Bt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,$t="enumerable",It="configurable",Dt="writable",Ft=u?Et?function(t,r,i){if(At(t),r=xt(r),At(i),"function"==typeof t&&"prototype"===r&&"value"in i&&Dt in i&&!i[Dt]){var e=Lt(t,r);e&&e[Dt]&&(t[r]=i.value,i={configurable:It in i?i[It]:e[It],enumerable:$t in i?i[$t]:e[$t],writable:!1})}return Bt(t,r,i)}:Bt:function(t,r,i){if(At(t),r=xt(r),At(i),Nt)try{return Bt(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Rt("Accessors not supported");return"value"in i&&(t[r]=i.value),t},zt={f:Ft},_t=u?function(t,r,i){return zt.f(t,r,g(1,i))}:function(t,r,i){return t[r]=i,t},Yt=Function.prototype,Xt=u&&Object.getOwnPropertyDescriptor,qt=ct(Yt,"name"),Gt={EXISTS:qt,PROPER:qt&&"something"===function(){}.name,CONFIGURABLE:qt&&(!u||u&&Xt(Yt,"name").configurable)},Ut=x(Function.toString);L(st.inspectSource)||(st.inspectSource=function(t){return Ut(t)});var Vt,Ht,Wt,Qt=st.inspectSource,Zt=o.WeakMap,Kt=L(Zt)&&/native code/.test(String(Zt)),Jt=at("keys"),tr=function(t){return Jt[t]||(Jt[t]=dt(t))},rr={},ir="Object already initialized",er=o.TypeError;if(Kt||st.state){var nr=st.state||(st.state=new(0,o.WeakMap));nr.get=nr.get,nr.has=nr.has,nr.set=nr.set,Vt=function(t,r){if(nr.has(t))throw er(ir);return r.facade=t,nr.set(t,r),r},Ht=function(t){return nr.get(t)||{}},Wt=function(t){return nr.has(t)}}else{var sr=tr("state");rr[sr]=!0,Vt=function(t,r){if(ct(t,sr))throw er(ir);return r.facade=t,_t(t,sr,r),r},Ht=function(t){return ct(t,sr)?t[sr]:{}},Wt=function(t){return ct(t,sr)}}var ar={set:Vt,get:Ht,has:Wt,enforce:function(t){return Wt(t)?Ht(t):Vt(t,{})},getterFor:function(t){return function(r){var i;if(!I(r)||(i=Ht(r)).type!==t)throw er("Incompatible receiver, "+t+" required");return i}}},or=r((function(t){var r=Gt.CONFIGURABLE,i=ar.enforce,e=ar.get,n=String,s=Object.defineProperty,a=x("".slice),o=x("".replace),c=x([].join),f=u&&!h((function(){return 8!==s((function(){}),"length",{value:8}).length})),l=String(String).split("String"),v=t.exports=function(t,e,h){"Symbol("===a(n(e),0,7)&&(e="["+o(n(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(e="get "+e),h&&h.setter&&(e="set "+e),(!ct(t,"name")||r&&t.name!==e)&&(u?s(t,"name",{value:e,configurable:!0}):t.name=e),f&&h&&ct(h,"arity")&&t.length!==h.arity&&s(t,"length",{value:h.arity});try{h&&ct(h,"constructor")&&h.constructor?u&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var v=i(t);return ct(v,"source")||(v.source=c(l,"string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return L(this)&&e(this).source||Qt(this)}),"toString")})),hr=function(t,r,i,e){e||(e={});var n=e.enumerable,s=void 0!==e.name?e.name:r;if(L(i)&&or(i,s,e),e.global)n?t[r]=i:et(r,i);else{try{e.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=i:zt.f(t,r,{value:i,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},ur=Math.ceil,cr=Math.floor,fr=Math.trunc||function(t){var r=+t;return(r>0?cr:ur)(r)},lr=function(t){var r=+t;return r!=r||0===r?0:fr(r)},vr=Math.max,dr=Math.min,pr=function(t,r){var i=lr(t);return i<0?vr(i+r,0):dr(i,r)},yr=Math.min,gr=function(t){return t>0?yr(lr(t),9007199254740991):0},mr=function(t){return gr(t.length)},br=function(t){return function(r,i,e){var n,s=C(r),a=mr(s),o=pr(e,a);if(t&&i!=i){for(;a>o;)if((n=s[o++])!=n)return!0}else for(;a>o;o++)if((t||o in s)&&s[o]===i)return t||o||0;return!t&&-1}},wr={includes:br(!0),indexOf:br(!1)},xr=wr.indexOf,Mr=x([].push),kr=function(t,r){var i,e=C(t),n=0,s=[];for(i in e)!ct(rr,i)&&ct(e,i)&&Mr(s,i);for(;r.length>n;)ct(e,i=r[n++])&&(~xr(s,i)||Mr(s,i));return s},Sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nr=Sr.concat("length","prototype"),jr=Object.getOwnPropertyNames||function(t){return kr(t,Nr)},Pr={f:jr},Or={f:Object.getOwnPropertySymbols},Er=x([].concat),Tr=D("Reflect","ownKeys")||function(t){var r=Pr.f(At(t)),i=Or.f;return i?Er(r,i(t)):r},Cr=function(t,r,i){for(var e=Tr(r),n=zt.f,s=Ot.f,a=0;a<e.length;a++){var o=e[a];ct(t,o)||i&&ct(i,o)||n(t,o,s(r,o))}},Ar=/#|\.prototype\./,Rr=function(t,r){var i=Lr[Br(t)];return i==Ir||i!=$r&&(L(r)?h(r):!!r)},Br=Rr.normalize=function(t){return String(t).replace(Ar,".").toLowerCase()},Lr=Rr.data={},$r=Rr.NATIVE="N",Ir=Rr.POLYFILL="P",Dr=Rr,Fr=Ot.f,zr=function(t,r){var i,e,n,s,a,h=t.target,u=t.global,c=t.stat;if(i=u?o:c?o[h]||et(h,{}):(o[h]||{}).prototype)for(e in r){if(s=r[e],n=t.dontCallGetSet?(a=Fr(i,e))&&a.value:i[e],!Dr(u?e:h+(c?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Cr(s,n)}(t.sham||n&&n.sham)&&_t(s,"sham",!0),hr(i,e,s,t)}},_r="undefined"!=typeof process&&"process"==S(process),Yr=String,Xr=TypeError,qr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return At(i),function(t){if("object"==typeof t||L(t))return t;throw Xr("Can't set "+Yr(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),Gr=zt.f,Ur=mt("toStringTag"),Vr=function(t,r,i){t&&!i&&(t=t.prototype),t&&!ct(t,Ur)&&Gr(t,Ur,{configurable:!0,value:r})},Hr=mt("species"),Wr=TypeError,Qr={};Qr[mt("toStringTag")]="z";var Zr="[object z]"===String(Qr),Kr=mt("toStringTag"),Jr=Object,ti="Arguments"==S(function(){return arguments}()),ri=Zr?S:function(t){var r,i,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,r){try{return t[r]}catch(t){}}(r=Jr(t),Kr))?i:ti?S(r):"Object"==(e=S(r))&&L(r.callee)?"Arguments":e},ii=function(){},ei=[],ni=D("Reflect","construct"),si=/^\s*(?:class|function)\b/,ai=x(si.exec),oi=!si.exec(ii),hi=function(t){if(!L(t))return!1;try{return ni(ii,ei,t),!0}catch(t){return!1}},ui=function(t){if(!L(t))return!1;switch(ri(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return oi||!!ai(si,Qt(t))}catch(t){return!0}};ui.sham=!0;var ci,fi,li,vi,di=!ni||h((function(){var t;return hi(hi.call)||!hi(Object)||!hi((function(){t=!0}))||t}))?ui:hi,pi=TypeError,yi=mt("species"),gi=function(t,r){var i,e=At(t).constructor;return void 0===e||O(i=At(e)[yi])?r:function(t){if(di(t))return t;throw pi(Z(t)+" is not a constructor")}(i)},mi=Function.prototype,bi=mi.apply,wi=mi.call,xi="object"==typeof Reflect&&Reflect.apply||(c?wi.bind(bi):function(){return wi.apply(bi,arguments)}),Mi=function(t){if("Function"===S(t))return x(t)},ki=Mi(Mi.bind),Si=function(t,r){return J(t),void 0===r?t:c?ki(t,r):function(){return t.apply(r,arguments)}},Ni=D("document","documentElement"),ji=x([].slice),Pi=TypeError,Oi=/(?:ipad|iphone|ipod).*applewebkit/i.test(z),Ei=o.setImmediate,Ti=o.clearImmediate,Ci=o.process,Ai=o.Dispatch,Ri=o.Function,Bi=o.MessageChannel,Li=o.String,$i=0,Ii={},Di="onreadystatechange";h((function(){ci=o.location}));var Fi=function(t){if(ct(Ii,t)){var r=Ii[t];delete Ii[t],r()}},zi=function(t){return function(){Fi(t)}},_i=function(t){Fi(t.data)},Yi=function(t){o.postMessage(Li(t),ci.protocol+"//"+ci.host)};Ei&&Ti||(Ei=function(t){!function(t){if(t<1)throw Pi("Not enough arguments")}(arguments.length);var r=L(t)?t:Ri(t),i=ji(arguments,1);return Ii[++$i]=function(){xi(r,void 0,i)},fi($i),$i},Ti=function(t){delete Ii[t]},_r?fi=function(t){Ci.nextTick(zi(t))}:Ai&&Ai.now?fi=function(t){Ai.now(zi(t))}:Bi&&!Oi?(vi=(li=new Bi).port2,li.port1.onmessage=_i,fi=Si(vi.postMessage,vi)):o.addEventListener&&L(o.postMessage)&&!o.importScripts&&ci&&"file:"!==ci.protocol&&!h(Yi)?(fi=Yi,o.addEventListener("message",_i,!1)):fi=Di in St("script")?function(t){Ni.appendChild(St("script"))[Di]=function(){Ni.removeChild(this),Fi(t)}}:function(t){setTimeout(zi(t),0)});var Xi={set:Ei,clear:Ti},qi=function(){this.head=null,this.tail=null};qi.prototype={add:function(t){var r={item:t,next:null},i=this.tail;i?i.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Gi,Ui,Vi,Hi,Wi,Qi=qi,Zi=/ipad|iphone|ipod/i.test(z)&&"undefined"!=typeof Pebble,Ki=/web0s(?!.*chrome)/i.test(z),Ji=Xi.set,te=o.MutationObserver||o.WebKitMutationObserver,re=o.document,ie=o.process,ee=o.Promise,ne=(0,Ot.f)(o,"queueMicrotask"),se=ne&&ne.value;if(!se){var ae=new Qi,oe=function(){var t,r;for(_r&&(t=ie.domain)&&t.exit();r=ae.get();)try{r()}catch(t){throw ae.head&&Gi(),t}t&&t.enter()};Oi||_r||Ki||!te||!re?!Zi&&ee&&ee.resolve?((Hi=ee.resolve(void 0)).constructor=ee,Wi=Si(Hi.then,Hi),Gi=function(){Wi(oe)}):_r?Gi=function(){ie.nextTick(oe)}:(Ji=Si(Ji,o),Gi=function(){Ji(oe)}):(Ui=!0,Vi=re.createTextNode(""),new te(oe).observe(Vi,{characterData:!0}),Gi=function(){Vi.data=Ui=!Ui}),se=function(t){ae.head||Gi(),ae.add(t)}}var he,ue,ce,fe,le=se,ve=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},de=o.Promise,pe="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ye=!pe&&!_r&&"object"==typeof window&&"object"==typeof document,ge=mt("species"),me=!1,be=L(o.PromiseRejectionEvent),we=Dr("Promise",(function(){var t=Qt(de),r=t!==String(de);if(!r&&66===G)return!0;if(!G||G<51||!/native code/.test(t)){var i=new de((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((i.constructor={})[ge]=e,!(me=i.then((function(){}))instanceof e))return!0}return!r&&(ye||pe)&&!be})),xe={CONSTRUCTOR:we,REJECTION_EVENT:be,SUBCLASSING:me},Me=TypeError,ke=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw Me("Bad Promise constructor");r=t,i=e})),this.resolve=J(r),this.reject=J(i)},Se={f:function(t){return new ke(t)}},Ne=Xi.set,je="Promise",Pe=xe.CONSTRUCTOR,Oe=xe.REJECTION_EVENT,Ee=xe.SUBCLASSING,Te=ar.getterFor(je),Ce=ar.set,Ae=de&&de.prototype,Re=de,Be=Ae,Le=o.TypeError,$e=o.document,Ie=o.process,De=Se.f,Fe=De,ze=!!($e&&$e.createEvent&&o.dispatchEvent),_e="unhandledrejection",Ye=function(t){var r;return!(!I(t)||!L(r=t.then))&&r},Xe=function(t,r){var i,e,n,s=r.value,a=1==r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&He(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Le("Promise-chain cycle")):(e=Ye(i))?l(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},qe=function(t,r){t.notified||(t.notified=!0,le((function(){for(var i,e=t.reactions;i=e.get();)Xe(i,t);t.notified=!1,r&&!t.rejection&&Ue(t)})))},Ge=function(t,r,i){var e,n;ze?((e=$e.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),o.dispatchEvent(e)):e={promise:r,reason:i},!Oe&&(n=o["on"+t])?n(e):t===_e&&function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",i)},Ue=function(t){l(Ne,o,(function(){var r,i=t.facade,e=t.value;if(Ve(t)&&(r=ve((function(){_r?Ie.emit("unhandledRejection",e,i):Ge(_e,i,e)})),t.rejection=_r||Ve(t)?2:1,r.error))throw r.value}))},Ve=function(t){return 1!==t.rejection&&!t.parent},He=function(t){l(Ne,o,(function(){var r=t.facade;_r?Ie.emit("rejectionHandled",r):Ge("rejectionhandled",r,t.value)}))},We=function(t,r,i){return function(e){t(r,e,i)}},Qe=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,qe(t,!0))},Ze=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Le("Promise can't be resolved itself");var e=Ye(r);e?le((function(){var i={done:!1};try{l(e,r,We(Ze,i,t),We(Qe,i,t))}catch(r){Qe(i,r,t)}})):(t.value=r,t.state=1,qe(t,!1))}catch(r){Qe({done:!1},r,t)}}};if(Pe&&(Re=function(t){!function(t){if(F(Be,t))return t;throw Wr("Incorrect invocation")}(this),J(t),l(he,this);var r=Te(this);try{t(We(Ze,r),We(Qe,r))}catch(t){Qe(r,t)}},(he=function(){Ce(this,{type:je,done:!1,notified:!1,parent:!1,reactions:new Qi,rejection:!1,state:0,value:void 0})}).prototype=hr(Be=Re.prototype,"then",(function(t,r){var i=Te(this),e=De(gi(this,Re));return i.parent=!0,e.ok=!L(t)||t,e.fail=L(r)&&r,e.domain=_r?Ie.domain:void 0,0==i.state?i.reactions.add(e):le((function(){Xe(e,i)})),e.promise})),ue=function(){var t=new he,r=Te(t);this.promise=t,this.resolve=We(Ze,r),this.reject=We(Qe,r)},Se.f=De=function(t){return t===Re||void 0===t?new ue(t):Fe(t)},L(de)&&Ae!==Object.prototype)){ce=Ae.then,Ee||hr(Ae,"then",(function(t,r){var i=this;return new Re((function(t,r){l(ce,i,t,r)})).then(t,r)}),{unsafe:!0});try{delete Ae.constructor}catch(t){}qr&&qr(Ae,Be)}zr({global:!0,constructor:!0,wrap:!0,forced:Pe},{Promise:Re}),Vr(Re,je,!1),fe=D(je),u&&fe&&!fe[Hr]&&(0,zt.f)(fe,Hr,{configurable:!0,get:function(){return this}});var Ke={},Je=mt("iterator"),tn=Array.prototype,rn=mt("iterator"),en=function(t){if(!O(t))return tt(t,rn)||tt(t,"@@iterator")||Ke[ri(t)]},nn=TypeError,sn=function(t,r,i){var e,n;At(t);try{if(!(e=tt(t,"return"))){if("throw"===r)throw i;return i}e=l(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return At(e),i},an=TypeError,on=function(t,r){this.stopped=t,this.result=r},hn=on.prototype,un=function(t,r,i){var e,n,s,a,o,h,u,c,f=!(!i||!i.AS_ENTRIES),v=!(!i||!i.IS_RECORD),d=!(!i||!i.IS_ITERATOR),p=!(!i||!i.INTERRUPTED),y=Si(r,i&&i.that),g=function(t){return e&&sn(e,"normal",t),new on(!0,t)},m=function(t){return f?(At(t),p?y(t[0],t[1],g):y(t[0],t[1])):p?y(t,g):y(t)};if(v)e=t.iterator;else if(d)e=t;else{if(!(n=en(t)))throw an(Z(t)+" is not iterable");if(void 0!==(c=n)&&(Ke.Array===c||tn[Je]===c)){for(s=0,a=mr(t);a>s;s++)if((o=m(t[s]))&&F(hn,o))return o;return new on(!1)}e=function(t,r){var i=arguments.length<2?en(t):r;if(J(i))return At(l(i,t));throw nn(Z(t)+" is not iterable")}(t,n)}for(h=v?t.next:e.next;!(u=l(h,e)).done;){try{o=m(u.value)}catch(t){sn(e,"throw",t)}if("object"==typeof o&&o&&F(hn,o))return o}return new on(!1)},cn=mt("iterator"),fn=!1;try{var ln=0,vn={next:function(){return{done:!!ln++}},return:function(){fn=!0}};vn[cn]=function(){return this},Array.from(vn,(function(){throw 2}))}catch(t){}var dn=xe.CONSTRUCTOR||!function(){if(!fn)return!1;var t=!1;try{var r={};r[cn]=function(){return{next:function(){return{done:t=!0}}}},de.all(r).then(void 0,(function(){}))}catch(t){}return t}();zr({target:"Promise",stat:!0,forced:dn},{all:function(t){var r=this,i=Se.f(r),e=i.resolve,n=i.reject,s=ve((function(){var i=J(r.resolve),s=[],a=0,o=1;un(t,(function(t){var h=a++,u=!1;o++,l(i,r,t).then((function(t){u||(u=!0,s[h]=t,--o||e(s))}),n)})),--o||e(s)}));return s.error&&n(s.value),i.promise}});var pn=de&&de.prototype;if(zr({target:"Promise",proto:!0,forced:xe.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(de)){var yn=D("Promise").prototype.catch;pn.catch!==yn&&hr(pn,"catch",yn,{unsafe:!0})}zr({target:"Promise",stat:!0,forced:dn},{race:function(t){var r=this,i=Se.f(r),e=i.reject,n=ve((function(){var n=J(r.resolve);un(t,(function(t){l(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}}),zr({target:"Promise",stat:!0,forced:xe.CONSTRUCTOR},{reject:function(t){var r=Se.f(this);return l(r.reject,void 0,t),r.promise}}),zr({target:"Promise",stat:!0,forced:xe.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(At(t),I(r)&&r.constructor===t)return r;var i=Se.f(t);return(0,i.resolve)(r),i.promise}(this,t)}});const gn=i(r((function(t){function r(t,r,i,e,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void i(t)}o.done?r(h):Promise.resolve(h).then(e,n)}t.exports=function(t){return function(){var i=this,e=arguments;return new Promise((function(n,s){var a=t.apply(i,e);function o(t){r(a,n,s,o,h,"next",t)}function h(t){r(a,n,s,o,h,"throw",t)}o(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports})));var mn,bn=String,wn=function(t){if("Symbol"===ri(t))throw TypeError("Cannot convert a Symbol value to a string");return bn(t)},xn=function(){var t=At(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Mn=o.RegExp,kn=h((function(){var t=Mn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Sn=kn||h((function(){return!Mn("a","y").sticky})),Nn={BROKEN_CARET:kn||h((function(){var t=Mn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Sn,UNSUPPORTED_Y:kn},jn=Object.keys||function(t){return kr(t,Sr)},Pn=u&&!Et?Object.defineProperties:function(t,r){At(t);for(var i,e=C(r),n=jn(r),s=n.length,a=0;s>a;)zt.f(t,i=n[a++],e[i]);return t},On={f:Pn},En="prototype",Tn="script",Cn=tr("IE_PROTO"),An=function(){},Rn=function(t){return"<"+Tn+">"+t+"</"+Tn+">"},Bn=function(t){t.write(Rn("")),t.close();var r=t.parentWindow.Object;return t=null,r},Ln=function(){try{mn=new ActiveXObject("htmlfile")}catch(t){}var t,r,i;Ln="undefined"!=typeof document?document.domain&&mn?Bn(mn):(r=St("iframe"),i="java"+Tn+":",r.style.display="none",Ni.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(Rn("document.F=Object")),t.close(),t.F):Bn(mn);for(var e=Sr.length;e--;)delete Ln[En][Sr[e]];return Ln()};rr[Cn]=!0;var $n,In,Dn=Object.create||function(t,r){var i;return null!==t?(An[En]=At(t),i=new An,An[En]=null,i[Cn]=t):i=Ln(),void 0===r?i:On.f(i,r)},Fn=o.RegExp,zn=h((function(){var t=Fn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),_n=o.RegExp,Yn=h((function(){var t=_n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Xn=ar.get,qn=at("native-string-replace",String.prototype.replace),Gn=RegExp.prototype.exec,Un=Gn,Vn=x("".charAt),Hn=x("".indexOf),Wn=x("".replace),Qn=x("".slice),Zn=(In=/b*/g,l(Gn,$n=/a/,"a"),l(Gn,In,"a"),0!==$n.lastIndex||0!==In.lastIndex),Kn=Nn.BROKEN_CARET,Jn=void 0!==/()??/.exec("")[1];(Zn||Jn||Kn||zn||Yn)&&(Un=function(t){var r,i,e,n,s,a,o,h=this,u=Xn(h),c=wn(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=l(Un,f,c),h.lastIndex=f.lastIndex,r;var v=u.groups,d=Kn&&h.sticky,p=l(xn,h),y=h.source,g=0,m=c;if(d&&(p=Wn(p,"y",""),-1===Hn(p,"g")&&(p+="g"),m=Qn(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Vn(c,h.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,g++),i=new RegExp("^(?:"+y+")",p)),Jn&&(i=new RegExp("^"+y+"$(?!\\s)",p)),Zn&&(e=h.lastIndex),n=l(Gn,d?i:h,m),d?n?(n.input=Qn(n.input,g),n[0]=Qn(n[0],g),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Zn&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),Jn&&n&&n.length>1&&l(qn,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&v)for(n.groups=a=Dn(null),s=0;s<v.length;s++)a[(o=v[s])[0]]=n[o[1]];return n});var ts=Un;zr({target:"RegExp",proto:!0,forced:/./.exec!==ts},{exec:ts});var rs=mt("species"),is=RegExp.prototype,es=function(t,r,i,e){var n=mt(t),s=!h((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!h((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[rs]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var o=Mi(/./[n]),u=r(n,""[t],(function(t,r,i,e,n){var a=Mi(t),h=r.exec;return h===ts||h===is.exec?s&&!n?{done:!0,value:o(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));hr(String.prototype,t,u[0]),hr(is,n,u[1])}e&&_t(is[n],"sham",!0)},ns=x("".charAt),ss=x("".charCodeAt),as=x("".slice),os=function(t){return function(r,i){var e,n,s=wn(T(r)),a=lr(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=ss(s,a))<55296||e>56319||a+1===o||(n=ss(s,a+1))<56320||n>57343?t?ns(s,a):e:t?as(s,a,a+2):n-56320+(e-55296<<10)+65536}},hs=(os(!1),os(!0)),us=function(t,r,i){return r+(i?hs(t,r).length:1)},cs=TypeError,fs=function(t,r){var i=t.exec;if(L(i)){var e=l(i,t,r);return null!==e&&At(e),e}if("RegExp"===S(t))return l(ts,t,r);throw cs("RegExp#exec called on incompatible receiver")};es("match",(function(t,r,i){return[function(r){var i=T(this),e=O(r)?void 0:tt(r,t);return e?l(e,r,i):new RegExp(r)[t](wn(i))},function(t){var e=At(this),n=wn(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return fs(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=fs(e,n));){var c=wn(o[0]);h[u]=c,""===c&&(e.lastIndex=us(n,gr(e.lastIndex),a)),u++}return 0===u?null:h}]}));var ls=Math.floor,vs=x("".charAt),ds=x("".replace),ps=x("".slice),ys=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,gs=/\$([$&'`]|\d{1,2})/g,ms=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=gs;return void 0!==n&&(n=ht(n),h=ys),ds(s,h,(function(s,h){var u;switch(vs(h,0)){case"$":return"$";case"&":return t;case"`":return ps(r,0,i);case"'":return ps(r,a);case"<":u=n[ps(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=ls(c/10);return 0===f?s:f<=o?void 0===e[f-1]?vs(h,1):e[f-1]+vs(h,1):s}u=e[c-1]}return void 0===u?"":u}))},bs=mt("replace"),ws=Math.max,xs=Math.min,Ms=x([].concat),ks=x([].push),Ss=x("".indexOf),Ns=x("".slice),js="$0"==="a".replace(/./,"$0"),Ps=!!/./[bs]&&""===/./[bs]("a","$0");es("replace",(function(t,r,i){var e=Ps?"$":"$0";return[function(t,i){var e=T(this),n=O(t)?void 0:tt(t,bs);return n?l(n,t,e,i):l(r,wn(e),t,i)},function(t,n){var s=At(this),a=wn(t);if("string"==typeof n&&-1===Ss(n,e)&&-1===Ss(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=L(n);h||(n=wn(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=fs(s,a);if(null===l)break;if(ks(f,l),!u)break;""===wn(l[0])&&(s.lastIndex=us(a,gr(s.lastIndex),c))}for(var v,d="",p=0,y=0;y<f.length;y++){for(var g=wn((l=f[y])[0]),m=ws(xs(lr(l.index),a.length),0),b=[],w=1;w<l.length;w++)ks(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=Ms([g],b,m,a);void 0!==x&&ks(M,x);var k=wn(xi(n,void 0,M))}else k=ms(g,a,m,b,x,n);m>=p&&(d+=Ns(a,p,m)+k,p=m+g.length)}return d+Ns(a,p)}]}),!!h((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!js||Ps);var Os,Es=mt("match"),Ts=function(t){var r;return I(t)&&(void 0!==(r=t[Es])?!!r:"RegExp"==S(t))},Cs=TypeError,As=function(t){if(Ts(t))throw Cs("The method doesn't accept regular expressions");return t},Rs=mt("match"),Bs=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[Rs]=!1,"/./"[t](r)}catch(t){}}return!1},Ls=Ot.f,$s=Mi("".startsWith),Is=Mi("".slice),Ds=Math.min,Fs=Bs("startsWith"),zs=!(Fs||(Os=Ls(String.prototype,"startsWith"),!Os||Os.writable));zr({target:"String",proto:!0,forced:!zs&&!Fs},{startsWith:function(t){var r=wn(T(this));As(t);var i=gr(Ds(arguments.length>1?arguments[1]:void 0,r.length)),e=wn(t);return $s?$s(r,e,i):Is(r,i,i+e.length)===e}});var _s=zt.f,Ys=mt("unscopables"),Xs=Array.prototype;null==Xs[Ys]&&_s(Xs,Ys,{configurable:!0,value:Dn(null)});var qs,Gs,Us,Vs=function(t){Xs[Ys][t]=!0},Hs=!h((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Ws=tr("IE_PROTO"),Qs=Object,Zs=Qs.prototype,Ks=Hs?Qs.getPrototypeOf:function(t){var r=ht(t);if(ct(r,Ws))return r[Ws];var i=r.constructor;return L(i)&&r instanceof i?i.prototype:r instanceof Qs?Zs:null},Js=mt("iterator"),ta=!1;[].keys&&("next"in(Us=[].keys())?(Gs=Ks(Ks(Us)))!==Object.prototype&&(qs=Gs):ta=!0);var ra=!I(qs)||h((function(){var t={};return qs[Js].call(t)!==t}));ra&&(qs={}),L(qs[Js])||hr(qs,Js,(function(){return this}));var ia={IteratorPrototype:qs,BUGGY_SAFARI_ITERATORS:ta},ea=ia.IteratorPrototype,na=function(){return this},sa=Gt.PROPER,aa=Gt.CONFIGURABLE,oa=ia.IteratorPrototype,ha=ia.BUGGY_SAFARI_ITERATORS,ua=mt("iterator"),ca="keys",fa="values",la="entries",va=function(){return this},da=function(t,r){return{value:t,done:r}},pa=zt.f,ya="Array Iterator",ga=ar.set,ma=ar.getterFor(ya),ba=function(t,r,i,e,n){!function(t,r,i){var e=r+" Iterator";t.prototype=Dn(ea,{next:g(1,i)}),Vr(t,e,!1),Ke[e]=na}(i,r,(function(){var t=ma(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,da(void 0,!0)):da("keys"==i?e:"values"==i?r[e]:[e,r[e]],!1)}));var s,a,o,h=function(t){if(t===n&&d)return d;if(!ha&&t in f)return f[t];switch(t){case ca:case fa:case la:return function(){return new i(this,t)}}return function(){return new i(this)}},u=r+" Iterator",c=!1,f=t.prototype,v=f[ua]||f["@@iterator"]||n&&f[n],d=!ha&&v||h(n),p=f.entries||v;if(p&&(s=Ks(p.call(new t)))!==Object.prototype&&s.next&&(Ks(s)!==oa&&(qr?qr(s,oa):L(s[ua])||hr(s,ua,va)),Vr(s,u,!0)),sa&&v&&v.name!==fa&&(aa?_t(f,"name",fa):(c=!0,d=function(){return l(v,this)})),n)if(void(a={values:h(fa),keys:h(ca),entries:h(la)}))for(o in a)(ha||c||!(o in f))&&hr(f,o,a[o]);else zr({target:r,proto:!0,forced:ha||c},a);return f[ua]!==d&&hr(f,ua,d,{name:n}),Ke[r]=d,a}(Array,"Array",(function(t,r){ga(this,{type:ya,target:C(t),index:0,kind:r})}),0,"values"),wa=Ke.Arguments=Ke.Array;if(Vs("keys"),Vs("values"),Vs("entries"),u&&"values"!==wa.name)try{pa(wa,"name",{value:"values"})}catch(t){}var xa={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ma=St("span").classList,ka=Ma&&Ma.constructor&&Ma.constructor.prototype,Sa=ka===Object.prototype?void 0:ka,Na=mt("iterator"),ja=mt("toStringTag"),Pa=ba.values,Oa=function(t,r){if(t){if(t[Na]!==Pa)try{_t(t,Na,Pa)}catch(r){t[Na]=Pa}if(t[ja]||_t(t,ja,r),xa[r])for(var i in ba)if(t[i]!==ba[i])try{_t(t,i,ba[i])}catch(r){t[i]=ba[i]}}};for(var Ea in xa)Oa(o[Ea]&&o[Ea].prototype,Ea);Oa(Sa,"DOMTokenList");var Ta=r((function(t){var r=e.default;t.exports=function(t,i){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),Ca=r((function(t){var r=e.default;t.exports=function(t){var i=Ta(t,"string");return"symbol"===r(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports}));const Aa=i(r((function(t){t.exports=function(t,r,i){return(r=Ca(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports})));var Ra=TypeError,Ba=function(t){return function(r,i,e,n){J(i);var s=ht(r),a=P(s),o=mr(s),h=t?o-1:0,u=t?-1:1;if(e<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw Ra("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in a&&(n=i(n,a[h],h,s));return n}},La=function(t,r){var i=[][t];return!!i&&h((function(){i.call(null,r||function(){return 1},1)}))},$a=[Ba(!1),Ba(!0)][0],Ia=!_r&&G>79&&G<83||!La("reduce");zr({target:"Array",proto:!0,forced:Ia},{reduce:function(t){var r=arguments.length;return $a(this,t,r,r>1?arguments[1]:void 0)}});var Da=Ot.f,Fa=Mi("".endsWith),za=Mi("".slice),_a=Math.min,Ya=Bs("endsWith"),Xa=!Ya&&!!function(){var t=Da(String.prototype,"endsWith");return t&&!t.writable}();zr({target:"String",proto:!0,forced:!Xa&&!Ya},{endsWith:function(t){var r=wn(T(this));As(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:_a(gr(i),e),s=wn(t);return Fa?Fa(r,s,n):za(r,n-s.length,n)===s}});var qa=Array,Ga=Math.max,Ua=function(t,r,i){for(var e,n,s,a=mr(t),o=pr(r,a),h=pr(void 0===i?a:i,a),u=qa(Ga(h-o,0)),c=0;o<h;o++,c++)e=u,n=t[o],void 0,(s=xt(c))in e?zt.f(e,s,g(0,n)):e[s]=n;return u.length=c,u},Va=Nn.UNSUPPORTED_Y,Ha=4294967295,Wa=Math.min,Qa=[].push,Za=x(/./.exec),Ka=x(Qa),Ja=x("".slice);es("split",(function(t,r,i){var e;return e="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var e=wn(T(this)),n=void 0===i?Ha:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!Ts(t))return l(r,e,t,n);for(var s,a,o,h=[],u=0,c=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=l(ts,c,e))&&!((a=c.lastIndex)>u&&(Ka(h,Ja(e,u,s.index)),s.length>1&&s.index<e.length&&xi(Qa,h,Ua(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&Za(c,"")||Ka(h,""):Ka(h,Ja(e,u)),h.length>n?Ua(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:l(r,this,t,i)}:r,[function(r,i){var n=T(this),s=O(r)?void 0:tt(r,t);return s?l(s,r,n,i):l(e,wn(n),r,i)},function(t,n){var s=At(this),a=wn(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=gi(s,RegExp),u=s.unicode,c=new h(Va?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Va?"g":"y")),f=void 0===n?Ha:n>>>0;if(0===f)return[];if(0===a.length)return null===fs(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=Va?0:v;var p,y=fs(c,Va?Ja(a,v):a);if(null===y||(p=Wa(gr(c.lastIndex+(Va?v:0)),a.length))===l)v=us(a,v,u);else{if(Ka(d,Ja(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(Ka(d,y[g]),d.length===f)return d;v=l=p}}return Ka(d,Ja(a,l)),d}]}),!!h((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),Va);for(var to=r((function(r){(function(){var t,i,e,n,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?r.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(r.exports=function(){return(t()-s)/1e6},i=process.hrtime,n=(t=function(){var t;return 1e9*(t=i())[0]+t[1]})(),a=1e9*process.uptime(),s=n-a):Date.now?(r.exports=function(){return Date.now()-e},e=Date.now()):(r.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(t)})),ro="undefined"==typeof window?t:window,io=["moz","webkit"],eo="AnimationFrame",no=ro["request"+eo],so=ro["cancel"+eo]||ro["cancelRequest"+eo],ao=0;!no&&ao<io.length;ao++)no=ro[io[ao]+"Request"+eo],so=ro[io[ao]+"Cancel"+eo]||ro[io[ao]+"CancelRequest"+eo];if(!no||!so){var oo=0,ho=0,uo=[];no=function(t){if(0===uo.length){var r=to(),i=Math.max(0,16.666666666666668-(r-oo));oo=i+r,setTimeout((function(){var t=uo.slice(0);uo.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(oo)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return uo.push({handle:++ho,callback:t,cancelled:!1}),ho},so=function(t){for(var r=0;r<uo.length;r++)uo[r].handle===t&&(uo[r].cancelled=!0)}}var co=function(t){return no.call(ro,t)};co.cancel=function(){so.apply(ro,arguments)},co.polyfill=function(t){t||(t=ro),t.requestAnimationFrame=no,t.cancelAnimationFrame=so};var fo,lo="\t\n\v\f\r \u2028\u2029\ufeff",vo=x("".replace),po="["+lo+"]",yo=RegExp("^"+po+po+"*"),go=RegExp(po+po+"*$"),mo=function(t){return function(r){var i=wn(T(r));return 1&t&&(i=vo(i,yo,"")),2&t&&(i=vo(i,go,"")),i}},bo={start:mo(1),end:mo(2),trim:mo(3)},wo=Gt.PROPER,xo=bo.trim;zr({target:"String",proto:!0,forced:(fo="trim",h((function(){return!!lo[fo]()||"
"!=="
"[fo]()||wo&&lo[fo].name!==fo})))},{trim:function(){return xo(this)}});var Mo=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var i=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<i.length;e++){var n=i[e].process,s=i[e].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==i.length&&(i="0"+i),"#"+t+r+i},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var h=document.createElement("li"),u=new RGBColor(t[e]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[e]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},ko=wr.indexOf,So=Mi([].indexOf),No=!!So&&1/So([1],1,-0)<0,jo=No||!La("indexOf");zr({target:"Array",proto:!0,forced:jo},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return No?So(this,t,r)||0:ko(this,t,r)}});var Po=x("".indexOf);zr({target:"String",proto:!0,forced:!Bs("includes")},{includes:function(t){return!!~Po(wn(T(this)),wn(As(t)),arguments.length>1?arguments[1]:void 0)}});var Oo=Array.isArray||function(t){return"Array"==S(t)},Eo=x([].reverse),To=[1,2];zr({target:"Array",proto:!0,forced:String(To)===String(To.reverse())},{reverse:function(){return Oo(this)&&(this.length=this.length),Eo(this)}});
|
7
7
|
/*! *****************************************************************************
|
8
8
|
Copyright (c) Microsoft Corporation.
|
9
9
|
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as i,h as t,H as s,g as e,c as h}from"./p-78780f63.js";import{g as o,l as a}from"./p-e902ba19.js";import{q as l,g as n,a as d,e as r,f as c,i as v}from"./p-4566438a.js";import{d as p}from"./p-a603e673.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-c1cf3ebc.js";import"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-220ec0d1.js";const u=class{constructor(t){i(this,t),this.isMobile=void 0,this.layer=void 0,this.mapView=void 0,this.zoomAndScrollToSelected=void 0,this._cardLoading=!1,this._graphics=void 0,this._translations=void 0}async featureSelectionChange(i){const t=i.detail;this._cardLoading=!0;const s=t.length>0?await l(t,this.layer,[],!1,this.mapView.spatialReference):[];this._graphics=s.sort(((i,s)=>t.indexOf(i.getObjectId())-t.indexOf(s.getObjectId()))),this._cardLoading=!1}async layerSelectionChange(i){const t=i.detail[0];this.layer=await n(this.mapView,t)}async componentWillLoad(){await this._getTranslations()}render(){var i,e;const h=(null===(i=this._graphics)||void 0===i?void 0:i.length)>0?"":"display-none",o=(null===(e=this._graphics)||void 0===e?void 0:e.length)>0?"display-none":"";return t(s,null,t("div",{class:"overflow-auto height-full"},t("calcite-shell",{class:"position-relative "+h},t("div",null,t("info-card",{graphics:this._graphics,isLoading:this._cardLoading,isMobile:this.isMobile,mapView:this.mapView,zoomAndScrollToSelected:this.zoomAndScrollToSelected}))),t("calcite-shell",{class:"position-relative "+o},t("div",{class:"padding-1"},t("calcite-notice",{icon:"table",open:!0},t("div",{slot:"message"},this._translations.selectFeaturesToStart))))))}async _getTranslations(){const i=await o(this.el);this._translations=i[0]}get el(){return e(this)}};u.style=":host{display:block !important}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.padding-bottom-1{padding-bottom:1rem}.padding-1{padding:1rem}.position-relative{position:relative}.focus-margin{margin:1px 1px 0px 1px}.overflow-auto{overflow:auto}.height-full{height:100%}card-manager{display:block}";const b=class{constructor(t){i(this,t),this.featureSelectionChange=h(this,"featureSelectionChange",7),this._allIds=[],this._ctrlIsPressed=!1,this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._observerSet=!1,this._shiftIsPressed=!1,this._skipOnChange=!1,this._tableSorting=!1,this.onTableNodeCreate=i=>{this._tableNode=i},this.defaultFilter=void 0,this.defaultGlobalId=void 0,this.defaultLayerId=void 0,this.defaultOid=void 0,this.enableAutoRefresh=void 0,this.enableColumnReorder=!0,this.enableCSV=void 0,this.enableInlineEdit=void 0,this.enableShare=void 0,this.isMobile=void 0,this.mapInfo=void 0,this.mapView=void 0,this.onlyShowUpdatableLayers=void 0,this.selectedIds=[],this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.showNewestFirst=void 0,this.zoomAndScrollToSelected=void 0,this._controlsThatFit=void 0,this._fetchingData=!1,this._filterActive=!1,this._filterOpen=!1,this._layer=void 0,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._sortActive=!1,this._translations=void 0}enableCSVWatchHandler(){var i;(null===(i=this._toolInfos)||void 0===i?void 0:i.length)>0&&this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}_controlsThatFitWatchHandler(){var i;const t=this._controlsThatFit?this._controlsThatFit.reduce(((i,t)=>(i.push(t.id),i)),[]):[];this._toolInfos=null===(i=this._toolInfos)||void 0===i?void 0:i.map((i=>{if(i&&this._controlsThatFit){const s=this._getId(i.icon);return i.isOverflow=t.indexOf(s)<0,i}}))}isMobileWatchHandler(){this._toolInfos||this.isMobile||this._initToolInfos()}async mapInfoWatchHandler(){var i;(null===(i=this._toolInfos)||void 0===i?void 0:i.length)>0&&this._initToolInfos(),this._initLayerExpressions()}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",(i=>{this._mapClicked(i)})))}async _layerWatchHandler(){var i,t;this._fetchingData=!0,this._definitionExpression=this._layer.definitionExpression,this._floorField=null===(t=null===(i=this._layer)||void 0===i?void 0:i.floorInfo)||void 0===t?void 0:t.floorField,this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl(),this._initLayerExpressions(),this._fetchingData=!1}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1)}async _sortActiveWatchHandler(){this._sortActive||await this._sortTable()}async selectionChanged(i){const t=i.detail[0],s=t.getObjectId();if(this.zoomAndScrollToSelected){const i=this._table.viewModel.getObjectIdIndex(s);this._table.scrollToIndex(i);const e=t.layer;let h;this.mapView.allLayerViews.toArray().some((i=>{if(i.layer.title===e.title&&"feature"===i.layer.type)return h=i,!0})),h&&await d([s],h,this.mapView,!0)}}async editsComplete(i){const t=i.detail;"delete"!==t&&"add"!==t||(this._allIds=await r(this._layer)),await this._refresh()}async levelChanged(i){this._floorLevel=i.detail,this._updateFloorDefinitionExpression()}noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initToolInfos(),this._resizeObserver||(this._resizeObserver=new ResizeObserver((()=>this._onResize())))}render(){const i=this._fetchingData?"display-none":"",e=this._fetchingData?"":"display-none",h=this._allIds.length.toString(),o=this.selectedIds.length.toString(),a=this.isMobile?"height-full":"height-full-adjusted";return this._validateActiveActions(),t(s,null,t("calcite-shell",null,this._getTableControlRow("header"),t("div",{class:`width-full ${a}`},t("calcite-panel",{class:"height-full width-full"},t("calcite-loader",{class:e,label:this._translations.fetchingData,scale:"l"}),t("div",{class:i,ref:this.onTableNodeCreate})),this.isMobile?void 0:t("div",{class:"bottom-left text-color height-19"},this._translations.recordsSelected.replace("{{total}}",h).replace("{{selected}}",o)))),this._filterModal())}async componentDidLoad(){this.isMobile||this._observerSet||(this._resizeObserver.observe(this._toolbar),this._observerSet=!0),document.onclick=i=>this._handleDocumentClick(i),document.onkeydown=i=>this._handleKeyDown(i),document.onkeyup=i=>this._handleKeyUp(i)}componentDidRender(){this._updateToolbar()}async _initModules(){const[i,t]=await a(["esri/widgets/FeatureTable","esri/core/reactiveUtils"]);this.FeatureTable=i,this.reactiveUtils=t}_onResize(){this._updateToolbar()}_getTableControlRow(i){return t("div",{class:"display-flex border-bottom height-51",ref:i=>this._toolbar=i,slot:i},this._getActionBar(),this.isMobile?void 0:this._getDropdown("more-table-options"),this.enableShare&&!this.isMobile?this._getShare("share"):void 0)}_getActionBar(){const i=this.isMobile?"width-full":"",s=this.isMobile?"border-top":"";return t("calcite-action-bar",{class:i,expandDisabled:!0,expanded:!0,id:this._getId("bar"),layout:"horizontal"},t("div",{class:`border-end ${i} ${s}`,id:"solutions-map-layer-picker-container"},t("map-layer-picker",{appearance:"transparent",defaultLayerId:this.defaultLayerId,display:"inline-flex",height:50,isMobile:this.isMobile,mapView:this.mapView,onLayerSelectionChange:i=>this._layerSelectionChanged(i),onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,placeholderIcon:"layers",scale:"l",showSingleLayerAsLabel:!0,showTables:!0,type:"dropdown"})),this.isMobile?void 0:this._getActions())}_getActions(){return this._getActionItems().reduce(((i,s)=>(s&&!s.isOverflow&&i.push(s.isDanger?this._getDangerAction(s.icon,s.label,s.func,s.disabled):s.isSublist?t("calcite-dropdown",{closeOnSelectDisabled:!0,id:this._getId(s.icon),onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:i=>this._showHideDropdown=i},this._getAction(s.active,this._showHideOpen?"chevron-down":s.icon,s.indicator,s.label,s.func,s.disabled,"trigger"),this._showHideOpen?this._getFieldlist():void 0):this._getAction(s.active,s.icon,s.indicator,s.label,s.func,s.disabled)),i)),[])}_getFieldlist(){return this._columnsInfo?t("calcite-dropdown-group",{"selection-mode":"multiple"},Object.keys(this._columnsInfo).map((i=>t("calcite-dropdown-item",{id:i,onClick:i=>{const t=i.target;this._columnsInfo[t.id]=t.selected,t.selected?this._table.showColumn(t.id):this._table.hideColumn(t.id)},selected:this._columnsInfo[i]},i)))):void 0}_validateEnabledActions(){var i;const t=this._featuresSelected(),s=["zoom-to-object","trash","erase","selected-items-filter"];null===(i=this._toolInfos)||void 0===i||i.forEach((i=>{i&&s.indexOf(i.icon)>-1&&(i.disabled=!t)}))}_validateActiveActions(){var i;const t=["filter","list-check-all","selected-items-filter"];null===(i=this._toolInfos)||void 0===i||i.forEach((i=>{i&&t.indexOf(i.icon)>-1&&("filter"===i.icon&&(i.indicator=this._filterActive),"list-check-all"===i.icon&&(i.active=this._selectAllActive),"selected-items-filter"===i.icon&&(i.active=this._showOnlySelected))}))}_initToolInfos(){const i=this._featuresSelected(),t=this._featuresEmpty(),s=this._hasFilterExpressions();this._translations&&(this._toolInfos=[{active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!i,isOverflow:!1},s?{active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this._toggleFilter(),disabled:!1,isOverflow:!1}:void 0,this._deleteEnabled?{active:void 0,icon:"trash",indicator:void 0,label:void 0,func:void 0,disabled:!i,isDanger:!0,isOverflow:!1}:void 0,{active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this._clearSelection(),disabled:!i,isOverflow:!1},{active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!i,isOverflow:!1},{active:!1,icon:"list-check-all",indicator:!1,func:()=>this._selectAll(),label:this._translations.selectAll,disabled:t,isOverflow:!1},{active:!1,icon:"compare",indicator:!1,func:()=>this._switchSelected(),label:this._translations.switchSelected,disabled:t,isOverflow:!1},{active:!1,icon:"refresh",indicator:!1,func:()=>this._refresh(),label:this._translations.refresh,disabled:!1,isOverflow:!1},this.enableCSV?{active:!1,icon:"export",indicator:!1,func:()=>{this._exportToCSV()},label:this._translations.exportCSV,disabled:t,isOverflow:!1}:void 0,{active:!1,icon:this._showHideOpen?"chevron-down":"chevron-right",indicator:!1,func:()=>this._toggleShowHide(),label:this._translations.showHideColumns,disabled:!1,isOverflow:!1,isSublist:!0}],this._defaultVisibleToolSizeInfos=void 0)}_updateFloorDefinitionExpression(){this._floorField&&this._floorLevel&&(this._layer.definitionExpression=`${this._floorField} = '${this._floorLevel}'`)}_featuresSelected(){return this.selectedIds.length>0}_featuresEmpty(){return 0===this._allIds.length}_hasFilterExpressions(){var i,t,s;let e;return(null===(t=null===(i=this.mapInfo)||void 0===i?void 0:i.filterConfig)||void 0===t?void 0:t.layerExpressions)&&(null===(s=this._layer)||void 0===s?void 0:s.id)&&(e=this.mapInfo.filterConfig.layerExpressions.filter((i=>i.id===this._layer.id))),(null==e?void 0:e.length)>0}_updateToolbar(){this._timeout&&clearTimeout(this._timeout),this.isMobile||(this._timeout=setTimeout((()=>{clearTimeout(this._timeout),this._setToolbarSizeInfos();const i=this._toolbar.offsetWidth;let t=this._toolbarSizeInfos.reduce(((i,t)=>i+t.width),0);const s=["solutions-more","solutions-map-layer-picker-container","solutions-action-share"];if(t>i){if(this._toolbarSizeInfos.length>0){const e=[...this._toolbarSizeInfos].reverse().reduce(((e,h)=>(s.indexOf(h.id)<0&&(t>i?t-=h.width:e.push(h)),e)),[]).reverse();this._setControlsThatFit(e,s)}}else if(this._defaultVisibleToolSizeInfos){const e=this._toolbarSizeInfos.reduce(((i,t)=>(i.push(t.id),i)),[]);let h=!1;const o=[...this._defaultVisibleToolSizeInfos].reduce(((o,a)=>(!h&&s.indexOf(a.id)<0&&(e.indexOf(a.id)>-1||t+a.width<=i)?(e.indexOf(a.id)<0&&(t+=a.width),o.push(a)):s.indexOf(a.id)<0&&t+a.width>i&&(h=!0),o)),[]);this._setControlsThatFit(o,s)}}),5))}_setControlsThatFit(i,t){let s=JSON.stringify(i)!==JSON.stringify(this._controlsThatFit);document.getElementById("solutions-action-bar").childNodes.forEach((i=>{t.indexOf(i.id)<0&&!s&&(s=this._controlsThatFit.map((i=>i.id)).indexOf(i.id)<0)})),s&&(this._controlsThatFit=[...i])}_setToolbarSizeInfos(){let i=!1;this._toolbarSizeInfos=[],this._toolbar.childNodes.forEach(((t,s)=>{0===s?t.childNodes.forEach((t=>{this._toolbarSizeInfos.push({id:t.id,width:t.offsetWidth}),i||(i=t.offsetWidth>0)})):t.referenceElement||(this._toolbarSizeInfos.push({id:t.id,width:t.offsetWidth}),i||(i=t.offsetWidth>0))})),i&&!this._defaultVisibleToolSizeInfos&&(this._defaultVisibleToolSizeInfos=[...this._toolbarSizeInfos])}_getActionItems(){var i;return null===(i=this._toolInfos)||void 0===i?void 0:i.filter((i=>i&&!i.isOverflow))}_getDropdown(i){const s=this._getDropdownItems();return s.length>0?t("calcite-dropdown",{closeOnSelectDisabled:!0,disabled:void 0===this._layer,id:"solutions-more",onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:i=>this._moreDropdown=i},t("calcite-action",{appearance:"solid",id:i,label:"",onClick:()=>this._closeShowHide(),slot:"trigger",text:""},t("calcite-button",{appearance:"transparent",iconEnd:"chevron-down",kind:"neutral"},this._translations.more)),t("calcite-dropdown-group",{"selection-mode":"none"},s.map((i=>t("calcite-dropdown-group",{class:i.disabled?"disabled":"",selectionMode:i.disabled?"none":"single"},t("calcite-dropdown-item",{iconStart:i.isSublist&&this._showHideOpen?"chevron-down":i.icon,id:"solutions-subset-list",onClick:i.func},i.label))))),this._showHideOpen?this._getFieldlist():void 0):void 0}_getDropdownItems(){var i;return null===(i=this._toolInfos)||void 0===i?void 0:i.filter((i=>i&&i.isOverflow))}_getAction(i,s,e,h,o,a,l){const n=void 0===this._layer||a;return t("div",{class:"display-flex",id:this._getId(s),slot:l},t("calcite-action",{active:i,appearance:"solid",disabled:n,icon:s,id:s,indicator:e,label:h,onClick:o,text:h,textEnabled:!0}),this._getToolTip("bottom",s,h))}_getShare(i){return t("div",{class:"share-action",id:this._getId(i)},t("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"instant-app-share",embed:this.shareIncludeEmbed,popoverButtonIconScale:"s",ref:i=>this._shareNode=i,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",socialMedia:this.shareIncludeSocial,view:this.mapView}),this._getToolTip("bottom",i,this._translations.share))}_updateShareUrl(){var i,t,s,e;const h=null===(i=this._shareNode)||void 0===i?void 0:i.shareUrl;if(!h)return;const o=new URL(h);if((null===(t=this.mapInfo)||void 0===t?void 0:t.id)?o.searchParams.set("webmap",this.mapInfo.id):o.searchParams.delete("webmap"),(null===(s=this._layer)||void 0===s?void 0:s.id)?o.searchParams.set("layer",this._layer.id):o.searchParams.delete("layer"),(null===(e=this.selectedIds)||void 0===e?void 0:e.length)>0?o.searchParams.set("oid",this.selectedIds.join(",")):o.searchParams.delete("oid"),this._filterActive){const i=JSON.parse(this._filterList.urlParams.get("filter")),t=this._filterList.layerExpressions.map((t=>(t.expressions=t.expressions.map((t=>(t.id.toString()===i.expressionId.toString()&&(t.active=!0),t))),t)));o.searchParams.set("filter",JSON.stringify(t))}else o.searchParams.delete("filter");this._shareNode.shareUrl=o.href}_getToolTip(i,s,e){return t("calcite-tooltip",{placement:i,"reference-element":s},t("span",null,e))}_getId(i){return`solutions-action-${i}`}_getDangerAction(i,s,e,h){const o=void 0===this._layer||h;return t("div",{class:"display-flex",id:this._getId(i)},"trash"===i?t("delete-button",{buttonType:"action",class:"display-flex",disabled:o,icon:i,ids:this._getIds(),layer:this._layer}):t("calcite-action",{appearance:"solid",disabled:o,id:i,onClick:e,text:""},t("calcite-button",{appearance:"transparent",iconStart:i,kind:"danger"},s)),this._getToolTip("bottom",i,s))}_getIds(){return this._table.highlightIds.toArray()}async _getTable(i,t){this._layer&&(await this._layer.when((()=>{this._table=new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!0,multiSortEnabled:!1,visibleElements:{header:!1,menu:!1},tableTemplate:{columnTemplates:t},container:i})})),this._initColumnsInfo(),this._checkEditEnabled(),await this._table.when((()=>{this._table.highlightIds.on("change",(i=>{this._handleOnChange(i)})),this.reactiveUtils.watch((()=>this._table.activeSortOrders),(i=>{var t,s,e,h;this._sortActive=!!this._layer&&(i.length>0&&"asc"===(null===(t=i[0])||void 0===t?void 0:t.direction)||"desc"===(null===(s=i[0])||void 0===s?void 0:s.direction)||null===(null===(e=i[0])||void 0===e?void 0:e.direction)&&(null===(h=i[0])||void 0===h?void 0:h.fieldName)===this._layer.objectIdField)}))})))}async _handleOnChange(i){const t=[...this._table.highlightIds.toArray()];if(this._skipOnChange)this._skipOnChange=!1;else{if(this._ctrlIsPressed||this._shiftIsPressed){if(this._ctrlIsPressed)this.selectedIds=t.reverse();else if(this._shiftIsPressed&&(this._skipOnChange=!0,this._previousCurrentId=this._currentId,this._currentId=[...this._table.highlightIds.toArray()].reverse()[0],this._previousCurrentId!==this._currentId)){const i=this._table.activeSortOrders.reduce(((i,t)=>(i.push(`${t.fieldName} ${t.direction}`),i)),[]),s=await c(this._layer,this._layer.definitionExpression,i);let e=!1;const h=this._table.viewModel.getObjectIdIndex(this._previousCurrentId),o=this._table.viewModel.getObjectIdIndex(this._currentId),a=h<o?h:o,l=o>h?o:h;this._skipOnChange=a+1!==l;const n=s.reduce(((i,t)=>{const s=t,h=this._table.viewModel.getObjectIdIndex(s);return s!==this._currentId&&s!==this._previousCurrentId||(e=!e,i.indexOf(s)<0&&i.push(s)),e&&i.indexOf(s)<0&&i.push(s),(this.selectedIds.indexOf(s)>-1||h>=a&&h<=l)&&i.indexOf(s)<0&&h>-1&&i.push(s),i}),[]);this.selectedIds=h<o?n.reverse():n,this._table.highlightIds.addMany(this.selectedIds.filter((i=>t.indexOf(i)<0)))}}else if(this.selectedIds.length>0){this._skipOnChange=!0;const s=this.selectedIds.length>1&&1===i.removed.length?i.removed:t.filter((i=>this.selectedIds.indexOf(i)<0));this._clearSelection(),this.selectedIds=[...s],s.length>0?this._table.highlightIds.add(s[0]):this._skipOnChange=!1}else this.selectedIds=t.reverse();this._finishOnChange()}this._currentId=[...this._table.highlightIds.toArray()].reverse()[0]}_finishOnChange(){this._showOnlySelected&&(this._featuresSelected()?this._table.filterBySelection():this._toggleShowSelected()),this.featureSelectionChange.emit(this.selectedIds)}async _resetTable(){var i;this._clearSelection(),this._allIds=[],this.featureSelectionChange.emit(this.selectedIds);const t=this._getColumnTemplates(this._layer.id,null===(i=this._layer)||void 0===i?void 0:i.fields);this._allIds=await r(this._layer),this._table?t&&(this._table.tableTemplate.columnTemplates=t):await this._getTable(this._tableNode,t),this._table.layer=this._layer,this._table.view=this.mapView,this._checkEditEnabled(),this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,this._initToolInfos(),await this._table.when((async()=>{var i,t;if(this._table.highlightIds.removeAll(),this._table.clearSelectionFilter(),this._initColumnsInfo(),!this._defaultOidHonored&&(null===(i=this.defaultOid)||void 0===i?void 0:i.length)>0&&this.defaultOid[0]>-1&&(this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0),!this._defaultGlobalIdHonored&&(null===(t=this.defaultGlobalId)||void 0===t?void 0:t.length)>0){const i=await v(this.defaultGlobalId,this._layer),t=(null==i?void 0:i.length)>0?i.map((i=>i.getObjectId())):void 0;t&&this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0}!this._defaultFilterHonored&&this.defaultFilter&&this._filterList&&(this._layerExpressions=this.defaultFilter,this._filterActive=!0,this._defaultFilterHonored=!0)})),this._showOnlySelected=!1,this._sortActive=!1,await this._sortTable()}_initColumnsInfo(){this._columnsInfo=this._table.columns.reduce(((i,t)=>(i[t.name]=!t.hidden,i)),{})}_selectDefaultFeature(i){i.length>0&&(this._table.highlightIds.addMany(i),this._table.when((()=>{const t=this._table.viewModel.getObjectIdIndex(i[0]);this._table.viewModel.scrollToIndex(t)})))}_checkEditEnabled(){this._editEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsUpdate,this._deleteEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsDelete}async _sortTable(){this._table&&this._layer&&!this._sortActive&&!this._tableSorting&&this.showNewestFirst&&(this._tableSorting=!0,await this._table.when(),await this._layer.when((()=>{this._table.sortColumn(this._layer.objectIdField,"desc"),this._tableSorting=!1})))}_forceShowHide(){this._showHideDropdown&&(this._showHideDropdown.open=this._showHideOpen),this._moreDropdown&&(this._moreDropdown.open=this._showHideOpen)}_toggleShowHide(){this._showHideOpen=!this._showHideOpen}_closeShowHide(){this._showHideOpen=!1}_handleDocumentClick(i){var t;const s=null===(t=i.target)||void 0===t?void 0:t.id;this._showHideOpen&&Object.keys(this._columnsInfo).indexOf(s)<0&&"solutions-subset-list"!==s&&"chevron-right"!==s&&(this._closeShowHide(),this._moreDropdown&&(this._moreDropdown.open=!1),this._showHideDropdown&&(this._showHideDropdown.open=!1))}_handleKeyDown(i){this._ctrlIsPressed=i.ctrlKey,this._shiftIsPressed=i.shiftKey}_handleKeyUp(i){this._ctrlIsPressed=i.ctrlKey,this._shiftIsPressed=i.shiftKey}_filterModal(){var i,s,e;return t("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:async()=>this._closeFilter(),open:this._filterOpen,widthScale:"s"},t("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},null===(s=null===(i=this._translations)||void 0===i?void 0:i.filter)||void 0===s?void 0:s.replace("{{title}}",null===(e=this._layer)||void 0===e?void 0:e.title)),t("div",{slot:"content"},t("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:async()=>this._closeFilter(),layerExpressions:this._layerExpressions,onFilterListReset:()=>this._handleFilterListReset(),onFilterUpdate:()=>this._handleFilterUpdate(),ref:i=>this._filterList=i,view:this.mapView,zoomBtn:!1})))}_handleFilterListReset(){this._filterActive=!1,this._updateShareUrl()}_handleFilterUpdate(){this._filterActive=this._definitionExpression!==this._layer.definitionExpression,this._updateShareUrl()}async _closeFilter(){this._filterOpen&&(this._allIds=await r(this._layer),this._filterOpen=!1)}async _mapClicked(i){const t={include:this._layer},s=await this.mapView.hitTest(i.screenPoint,t);s.results.length>0&&(s.results.forEach((i=>{this._clearSelection();const t=i.graphic.getObjectId(),s=this._table.highlightIds.indexOf(t);s>-1?this._table.highlightIds.removeAt(s):this._table.highlightIds.add(t)})),this._showOnlySelected&&this._table.filterBySelection())}_selectAll(){const i=this._allIds;this._table.highlightIds.removeAll(),this._skipOnChange=!0,this._table.highlightIds.addMany(i),this.selectedIds=i,this._finishOnChange(),this._selectAllActive=!0}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._showOnlySelected?this._table.filterBySelection():this._table.clearSelectionFilter()}_clearSelection(){var i;this.selectedIds=[],null===(i=this._table)||void 0===i||i.highlightIds.removeAll(),this._finishOnChange()}_toggleFilter(){this._filterOpen=!this._filterOpen}_initLayerExpressions(){var i,t;const s=null===(t=null===(i=this.mapInfo)||void 0===i?void 0:i.filterConfig)||void 0===t?void 0:t.layerExpressions;this._layerExpressions=s?s.filter((i=>{var t;return i.id===(null===(t=this._layer)||void 0===t?void 0:t.id)})):[],this._filterList.layerExpressions=this._layerExpressions,this._filterActive=!1}_switchSelected(){const i=[...this.selectedIds];this._table.highlightIds.removeAll();const t=this._allIds.reduce(((t,s)=>(i.indexOf(s)<0&&t.push(s),t)),[]).sort(((i,t)=>i-t));this._skipOnChange=!0,this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()}async _exportToCSV(){const i={},t=this._table.highlightIds.toArray();i[this._layer.id]={selectionSetNames:[this._layer.title],ids:t,layer:this._layer};const s=this._table.columns.toArray().reduce(((i,t)=>(t.hidden||i.push(t.name.toLocaleLowerCase()),i)),[]);p(null,i,!1,!1,!0,s)}async _refresh(){await this._table.refresh(),this.featureSelectionChange.emit(this.selectedIds)}_zoom(){this._table.zoomToSelection()}async _layerSelectionChanged(i){var t;const s=i.detail[0];if(s!==(null===(t=this._layer)||void 0===t?void 0:t.id)||this._featuresEmpty()){this._fetchingData=!0;const i=await n(this.mapView,s);await i.when((()=>{this._layer=i}))}this._fetchingData=!1}_getColumnTemplates(i,t){var s;let e;null===(s=this.mapInfo.layerInfos)||void 0===s||s.some((t=>{if(t.id===i)return e=t,!0}));let h=null==e?void 0:e.columnTemplates;return t&&(h=h?h.map((i=>(t.some((t=>{if(t.name===i.fieldName)return i.label=t.alias,i.menuConfig=this._getMenuConfig(t.name),!0})),i))):t.map((i=>({type:"field",fieldName:i.name,label:i.alias,menuConfig:this._getMenuConfig(i.name)})))),h}_getMenuConfig(i){return{items:[{label:this._translations.hideField,iconClass:"esri-icon-non-visible",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(i)}}]}}_handleHideClick(i){this._columnsInfo[i]=!1,this._table.hideColumn(i),this._table.tableTemplate.columnTemplates.forEach((t=>{t.fieldName===i&&(t.visible=!1)}))}async _getTranslations(){const i=await o(this.el);this._translations=i[0]}get el(){return e(this)}static get watchers(){return{enableCSV:["enableCSVWatchHandler"],enableInlineEdit:["enableInlineEditWatchHandler"],_controlsThatFit:["_controlsThatFitWatchHandler"],isMobile:["isMobileWatchHandler"],mapInfo:["mapInfoWatchHandler"],mapView:["mapViewWatchHandler"],_layer:["_layerWatchHandler"],selectedIds:["selectedIdsWatchHandler"],_sortActive:["_sortActiveWatchHandler"]}}};b.style=':host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir="rtl"] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{font-size:14px !important;color:var(--calcite-color-text-3) !important}.share-action{position:absolute;right:0}html[dir="rtl"] .share-action{left:0}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.instant-app-share{height:50px !important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding:0}';const m=class{constructor(t){i(this,t),this.mapChanged=h(this,"mapChanged",7),this.beforeMapChanged=h(this,"beforeMapChanged",7),this._defaultWebmapHonored=!1,this._loadedId="",this.defaultWebmapId="",this.enableHome=void 0,this.enableLegend=void 0,this.enableFloorFilter=void 0,this.enableFullscreen=void 0,this.enableSingleExpand=!0,this.enableSearch=void 0,this.enableBasemap=void 0,this.basemapConfig=void 0,this.hidden=void 0,this.homeZoomIndex=3,this.homeZoomPosition="top-left",this.homeZoomToolsSize="m",this.mapInfos=[],this.mapWidgetsIndex=0,this.mapWidgetsPosition="top-right",this.mapWidgetsSize="m",this.mapView=void 0,this.stackTools=!0,this.theme=void 0,this.toolOrder=void 0,this._searchConfiguration=void 0,this._webMapInfo=void 0}enableHomeWatchHandler(){this._initHome()}async mapInfoChange(i){await this._loadMap(i.detail)}async componentWillLoad(){await this._initModules()}render(){var i,e;const h=this.hidden?"visibility-hidden":"",o="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light",a=(null===(i=this.mapInfos)||void 0===i?void 0:i.length)>1?"":"display-none",l=(null===(e=this.mapInfos)||void 0===e?void 0:e.length)>1?"map-height":"height-full";return t(s,null,t("map-picker",{class:a,mapInfos:this.mapInfos,ref:i=>this._mapPicker=i}),t("div",{class:`${l} ${h}`,ref:i=>this._mapDiv=i}),t("map-tools",{basemapConfig:this.basemapConfig,class:`box-shadow ${o}`,enableBasemap:this.enableBasemap,enableFloorFilter:this.enableFloorFilter,enableFullscreen:this.enableFullscreen,enableHome:this.enableHome,enableLegend:this.enableLegend,enableSearch:this.enableSearch,enableSingleExpand:this.enableSingleExpand,homeZoomToolsSize:this.homeZoomToolsSize,mapView:this.mapView,mapWidgetsSize:this.mapWidgetsSize,position:this.mapWidgetsPosition,ref:i=>this._mapTools=i,searchConfiguration:this._searchConfiguration,stackTools:this.stackTools,toolOrder:this.toolOrder}))}async _initModules(){const[i,t,s]=await a(["esri/WebMap","esri/views/MapView","esri/widgets/Home"]);this.WebMap=i,this.MapView=t,this.Home=s}async _loadMap(i){var t;const s=!this._defaultWebmapHonored&&this.defaultWebmapId,e=null===(t=this.mapInfos)||void 0===t?void 0:t.filter((i=>i.id===this.defaultWebmapId)),h=JSON.stringify(i)!==JSON.stringify(this._webMapInfo);this._webMapInfo=s&&e?e[0]:!(null==i?void 0:i.id)&&this.mapInfos.length>0?this.mapInfos[0]:i;const o=this._webMapInfo.id,a=s&&(null==i?void 0:i.id)===this.defaultWebmapId;if(this._loadedId!==o&&!s||a){const i=new this.WebMap({portalItem:{id:o}});this.mapView=new this.MapView({container:this._mapDiv,map:i,resizeAlign:"center"}),this._loadedId=o,this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),await this.mapView.when((()=>{this._initHome(),this.mapView.ui.add(this._mapTools,{position:this.mapWidgetsPosition,index:this.mapWidgetsIndex}),this._defaultWebmapHonored=!!a||this._defaultWebmapHonored,this.mapChanged.emit({id:o,mapView:this.mapView})}))}else s?(this._defaultWebmapHonored=!0,this._mapPicker.setMapByID(o)):h&&(this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapChanged.emit({id:o,mapView:this.mapView}))}_initHome(){if(this.enableHome){this._homeWidget=new this.Home({view:this.mapView}),this.mapView.ui.add(this._homeWidget,{position:this.homeZoomPosition,index:this.homeZoomIndex});const i="s"===this.homeZoomToolsSize?"32px":"m"===this.homeZoomToolsSize?"40px":"48px";this._homeWidget.domNode.style.height=i,this._homeWidget.domNode.style.width=i}else this._homeWidget&&this.mapView.ui.remove(this._homeWidget)}get el(){return e(this)}static get watchers(){return{enableHome:["enableHomeWatchHandler"]}}};m.style=":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% - 51px)}.height-full{height:100%}.box-shadow{box-shadow:none !important}.visibility-hidden{visibility:hidden}.display-none{display:none}";export{u as card_manager,b as layer_table,m as map_card}
|
6
|
+
import{r as i,h as t,H as s,g as e,c as h}from"./p-78780f63.js";import{g as o,l as a}from"./p-e902ba19.js";import{q as l,g as n,b as d,e as r,f as c,i as v}from"./p-2c382841.js";import{d as p}from"./p-55b835a1.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-c1cf3ebc.js";import"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-220ec0d1.js";const u=class{constructor(t){i(this,t),this.isMobile=void 0,this.layer=void 0,this.mapView=void 0,this.zoomAndScrollToSelected=void 0,this._cardLoading=!1,this._graphics=void 0,this._translations=void 0}async featureSelectionChange(i){const t=i.detail;this._cardLoading=!0;const s=t.length>0?await l(t,this.layer,[],!1,this.mapView.spatialReference):[];this._graphics=s.sort(((i,s)=>t.indexOf(i.getObjectId())-t.indexOf(s.getObjectId()))),this._cardLoading=!1}async layerSelectionChange(i){const t=i.detail[0];this.layer=await n(this.mapView,t)}async componentWillLoad(){await this._getTranslations()}render(){var i,e;const h=(null===(i=this._graphics)||void 0===i?void 0:i.length)>0?"":"display-none",o=(null===(e=this._graphics)||void 0===e?void 0:e.length)>0?"display-none":"";return t(s,null,t("div",{class:"overflow-auto height-full"},t("calcite-shell",{class:"position-relative "+h},t("div",null,t("info-card",{graphics:this._graphics,isLoading:this._cardLoading,isMobile:this.isMobile,mapView:this.mapView,zoomAndScrollToSelected:this.zoomAndScrollToSelected}))),t("calcite-shell",{class:"position-relative "+o},t("div",{class:"padding-1"},t("calcite-notice",{icon:"table",open:!0},t("div",{slot:"message"},this._translations.selectFeaturesToStart))))))}async _getTranslations(){const i=await o(this.el);this._translations=i[0]}get el(){return e(this)}};u.style=":host{display:block !important}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.padding-bottom-1{padding-bottom:1rem}.padding-1{padding:1rem}.position-relative{position:relative}.focus-margin{margin:1px 1px 0px 1px}.overflow-auto{overflow:auto}.height-full{height:100%}card-manager{display:block}";const b=class{constructor(t){i(this,t),this.featureSelectionChange=h(this,"featureSelectionChange",7),this._allIds=[],this._ctrlIsPressed=!1,this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._observerSet=!1,this._shiftIsPressed=!1,this._skipOnChange=!1,this._tableSorting=!1,this.onTableNodeCreate=i=>{this._tableNode=i},this.defaultFilter=void 0,this.defaultGlobalId=void 0,this.defaultLayerId=void 0,this.defaultOid=void 0,this.enableAutoRefresh=void 0,this.enableColumnReorder=!0,this.enableCSV=void 0,this.enableInlineEdit=void 0,this.enableShare=void 0,this.isMobile=void 0,this.mapInfo=void 0,this.mapView=void 0,this.onlyShowUpdatableLayers=void 0,this.selectedIds=[],this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.showNewestFirst=void 0,this.zoomAndScrollToSelected=void 0,this._controlsThatFit=void 0,this._fetchingData=!1,this._filterActive=!1,this._filterOpen=!1,this._layer=void 0,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._sortActive=!1,this._translations=void 0}enableCSVWatchHandler(){var i;(null===(i=this._toolInfos)||void 0===i?void 0:i.length)>0&&this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}_controlsThatFitWatchHandler(){var i;const t=this._controlsThatFit?this._controlsThatFit.reduce(((i,t)=>(i.push(t.id),i)),[]):[];this._toolInfos=null===(i=this._toolInfos)||void 0===i?void 0:i.map((i=>{if(i&&this._controlsThatFit){const s=this._getId(i.icon);return i.isOverflow=t.indexOf(s)<0,i}}))}isMobileWatchHandler(){this._toolInfos||this.isMobile||this._initToolInfos()}async mapInfoWatchHandler(){var i;(null===(i=this._toolInfos)||void 0===i?void 0:i.length)>0&&this._initToolInfos(),this._initLayerExpressions()}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",(i=>{this._mapClicked(i)})))}async _layerWatchHandler(){var i,t;this._fetchingData=!0,this._definitionExpression=this._layer.definitionExpression,this._floorField=null===(t=null===(i=this._layer)||void 0===i?void 0:i.floorInfo)||void 0===t?void 0:t.floorField,this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl(),this._initLayerExpressions(),this._fetchingData=!1}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1)}async _sortActiveWatchHandler(){this._sortActive||await this._sortTable()}async selectionChanged(i){const t=i.detail[0],s=t.getObjectId();if(this.zoomAndScrollToSelected){const i=this._table.viewModel.getObjectIdIndex(s);this._table.scrollToIndex(i);const e=t.layer;let h;this.mapView.allLayerViews.toArray().some((i=>{if(i.layer.title===e.title&&"feature"===i.layer.type)return h=i,!0})),h&&await d([s],h,this.mapView,!0)}}async editsComplete(i){const t=i.detail;"delete"!==t&&"add"!==t||(this._allIds=await r(this._layer)),await this._refresh()}async levelChanged(i){this._floorLevel=i.detail,this._updateFloorDefinitionExpression()}noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initToolInfos(),this._resizeObserver||(this._resizeObserver=new ResizeObserver((()=>this._onResize())))}render(){const i=this._fetchingData?"display-none":"",e=this._fetchingData?"":"display-none",h=this._allIds.length.toString(),o=this.selectedIds.length.toString(),a=this.isMobile?"height-full":"height-full-adjusted";return this._validateActiveActions(),t(s,null,t("calcite-shell",null,this._getTableControlRow("header"),t("div",{class:`width-full ${a}`},t("calcite-panel",{class:"height-full width-full"},t("calcite-loader",{class:e,label:this._translations.fetchingData,scale:"l"}),t("div",{class:i,ref:this.onTableNodeCreate})),this.isMobile?void 0:t("div",{class:"bottom-left text-color height-19"},this._translations.recordsSelected.replace("{{total}}",h).replace("{{selected}}",o)))),this._filterModal())}async componentDidLoad(){this.isMobile||this._observerSet||(this._resizeObserver.observe(this._toolbar),this._observerSet=!0),document.onclick=i=>this._handleDocumentClick(i),document.onkeydown=i=>this._handleKeyDown(i),document.onkeyup=i=>this._handleKeyUp(i)}componentDidRender(){this._updateToolbar()}async _initModules(){const[i,t]=await a(["esri/widgets/FeatureTable","esri/core/reactiveUtils"]);this.FeatureTable=i,this.reactiveUtils=t}_onResize(){this._updateToolbar()}_getTableControlRow(i){return t("div",{class:"display-flex border-bottom height-51",ref:i=>this._toolbar=i,slot:i},this._getActionBar(),this.isMobile?void 0:this._getDropdown("more-table-options"),this.enableShare&&!this.isMobile?this._getShare("share"):void 0)}_getActionBar(){const i=this.isMobile?"width-full":"",s=this.isMobile?"border-top":"";return t("calcite-action-bar",{class:i,expandDisabled:!0,expanded:!0,id:this._getId("bar"),layout:"horizontal"},t("div",{class:`border-end ${i} ${s}`,id:"solutions-map-layer-picker-container"},t("map-layer-picker",{appearance:"transparent",defaultLayerId:this.defaultLayerId,display:"inline-flex",height:50,isMobile:this.isMobile,mapView:this.mapView,onLayerSelectionChange:i=>this._layerSelectionChanged(i),onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,placeholderIcon:"layers",scale:"l",showSingleLayerAsLabel:!0,showTables:!0,type:"dropdown"})),this.isMobile?void 0:this._getActions())}_getActions(){return this._getActionItems().reduce(((i,s)=>(s&&!s.isOverflow&&i.push(s.isDanger?this._getDangerAction(s.icon,s.label,s.func,s.disabled):s.isSublist?t("calcite-dropdown",{closeOnSelectDisabled:!0,id:this._getId(s.icon),onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:i=>this._showHideDropdown=i},this._getAction(s.active,this._showHideOpen?"chevron-down":s.icon,s.indicator,s.label,s.func,s.disabled,"trigger"),this._showHideOpen?this._getFieldlist():void 0):this._getAction(s.active,s.icon,s.indicator,s.label,s.func,s.disabled)),i)),[])}_getFieldlist(){return this._columnsInfo?t("calcite-dropdown-group",{"selection-mode":"multiple"},Object.keys(this._columnsInfo).map((i=>t("calcite-dropdown-item",{id:i,onClick:i=>{const t=i.target;this._columnsInfo[t.id]=t.selected,t.selected?this._table.showColumn(t.id):this._table.hideColumn(t.id)},selected:this._columnsInfo[i]},i)))):void 0}_validateEnabledActions(){var i;const t=this._featuresSelected(),s=["zoom-to-object","trash","erase","selected-items-filter"];null===(i=this._toolInfos)||void 0===i||i.forEach((i=>{i&&s.indexOf(i.icon)>-1&&(i.disabled=!t)}))}_validateActiveActions(){var i;const t=["filter","list-check-all","selected-items-filter"];null===(i=this._toolInfos)||void 0===i||i.forEach((i=>{i&&t.indexOf(i.icon)>-1&&("filter"===i.icon&&(i.indicator=this._filterActive),"list-check-all"===i.icon&&(i.active=this._selectAllActive),"selected-items-filter"===i.icon&&(i.active=this._showOnlySelected))}))}_initToolInfos(){const i=this._featuresSelected(),t=this._featuresEmpty(),s=this._hasFilterExpressions();this._translations&&(this._toolInfos=[{active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!i,isOverflow:!1},s?{active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this._toggleFilter(),disabled:!1,isOverflow:!1}:void 0,this._deleteEnabled?{active:void 0,icon:"trash",indicator:void 0,label:void 0,func:void 0,disabled:!i,isDanger:!0,isOverflow:!1}:void 0,{active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this._clearSelection(),disabled:!i,isOverflow:!1},{active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!i,isOverflow:!1},{active:!1,icon:"list-check-all",indicator:!1,func:()=>this._selectAll(),label:this._translations.selectAll,disabled:t,isOverflow:!1},{active:!1,icon:"compare",indicator:!1,func:()=>this._switchSelected(),label:this._translations.switchSelected,disabled:t,isOverflow:!1},{active:!1,icon:"refresh",indicator:!1,func:()=>this._refresh(),label:this._translations.refresh,disabled:!1,isOverflow:!1},this.enableCSV?{active:!1,icon:"export",indicator:!1,func:()=>{this._exportToCSV()},label:this._translations.exportCSV,disabled:t,isOverflow:!1}:void 0,{active:!1,icon:this._showHideOpen?"chevron-down":"chevron-right",indicator:!1,func:()=>this._toggleShowHide(),label:this._translations.showHideColumns,disabled:!1,isOverflow:!1,isSublist:!0}],this._defaultVisibleToolSizeInfos=void 0)}_updateFloorDefinitionExpression(){this._floorField&&this._floorLevel&&(this._layer.definitionExpression=`${this._floorField} = '${this._floorLevel}'`)}_featuresSelected(){return this.selectedIds.length>0}_featuresEmpty(){return 0===this._allIds.length}_hasFilterExpressions(){var i,t,s;let e;return(null===(t=null===(i=this.mapInfo)||void 0===i?void 0:i.filterConfig)||void 0===t?void 0:t.layerExpressions)&&(null===(s=this._layer)||void 0===s?void 0:s.id)&&(e=this.mapInfo.filterConfig.layerExpressions.filter((i=>i.id===this._layer.id))),(null==e?void 0:e.length)>0}_updateToolbar(){this._timeout&&clearTimeout(this._timeout),this.isMobile||(this._timeout=setTimeout((()=>{clearTimeout(this._timeout),this._setToolbarSizeInfos();const i=this._toolbar.offsetWidth;let t=this._toolbarSizeInfos.reduce(((i,t)=>i+t.width),0);const s=["solutions-more","solutions-map-layer-picker-container","solutions-action-share"];if(t>i){if(this._toolbarSizeInfos.length>0){const e=[...this._toolbarSizeInfos].reverse().reduce(((e,h)=>(s.indexOf(h.id)<0&&(t>i?t-=h.width:e.push(h)),e)),[]).reverse();this._setControlsThatFit(e,s)}}else if(this._defaultVisibleToolSizeInfos){const e=this._toolbarSizeInfos.reduce(((i,t)=>(i.push(t.id),i)),[]);let h=!1;const o=[...this._defaultVisibleToolSizeInfos].reduce(((o,a)=>(!h&&s.indexOf(a.id)<0&&(e.indexOf(a.id)>-1||t+a.width<=i)?(e.indexOf(a.id)<0&&(t+=a.width),o.push(a)):s.indexOf(a.id)<0&&t+a.width>i&&(h=!0),o)),[]);this._setControlsThatFit(o,s)}}),5))}_setControlsThatFit(i,t){let s=JSON.stringify(i)!==JSON.stringify(this._controlsThatFit);document.getElementById("solutions-action-bar").childNodes.forEach((i=>{t.indexOf(i.id)<0&&!s&&(s=this._controlsThatFit.map((i=>i.id)).indexOf(i.id)<0)})),s&&(this._controlsThatFit=[...i])}_setToolbarSizeInfos(){let i=!1;this._toolbarSizeInfos=[],this._toolbar.childNodes.forEach(((t,s)=>{0===s?t.childNodes.forEach((t=>{this._toolbarSizeInfos.push({id:t.id,width:t.offsetWidth}),i||(i=t.offsetWidth>0)})):t.referenceElement||(this._toolbarSizeInfos.push({id:t.id,width:t.offsetWidth}),i||(i=t.offsetWidth>0))})),i&&!this._defaultVisibleToolSizeInfos&&(this._defaultVisibleToolSizeInfos=[...this._toolbarSizeInfos])}_getActionItems(){var i;return null===(i=this._toolInfos)||void 0===i?void 0:i.filter((i=>i&&!i.isOverflow))}_getDropdown(i){const s=this._getDropdownItems();return s.length>0?t("calcite-dropdown",{closeOnSelectDisabled:!0,disabled:void 0===this._layer,id:"solutions-more",onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:i=>this._moreDropdown=i},t("calcite-action",{appearance:"solid",id:i,label:"",onClick:()=>this._closeShowHide(),slot:"trigger",text:""},t("calcite-button",{appearance:"transparent",iconEnd:"chevron-down",kind:"neutral"},this._translations.more)),t("calcite-dropdown-group",{"selection-mode":"none"},s.map((i=>t("calcite-dropdown-group",{class:i.disabled?"disabled":"",selectionMode:i.disabled?"none":"single"},t("calcite-dropdown-item",{iconStart:i.isSublist&&this._showHideOpen?"chevron-down":i.icon,id:"solutions-subset-list",onClick:i.func},i.label))))),this._showHideOpen?this._getFieldlist():void 0):void 0}_getDropdownItems(){var i;return null===(i=this._toolInfos)||void 0===i?void 0:i.filter((i=>i&&i.isOverflow))}_getAction(i,s,e,h,o,a,l){const n=void 0===this._layer||a;return t("div",{class:"display-flex",id:this._getId(s),slot:l},t("calcite-action",{active:i,appearance:"solid",disabled:n,icon:s,id:s,indicator:e,label:h,onClick:o,text:h,textEnabled:!0}),this._getToolTip("bottom",s,h))}_getShare(i){return t("div",{class:"share-action",id:this._getId(i)},t("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"instant-app-share",embed:this.shareIncludeEmbed,popoverButtonIconScale:"s",ref:i=>this._shareNode=i,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",socialMedia:this.shareIncludeSocial,view:this.mapView}),this._getToolTip("bottom",i,this._translations.share))}_updateShareUrl(){var i,t,s,e;const h=null===(i=this._shareNode)||void 0===i?void 0:i.shareUrl;if(!h)return;const o=new URL(h);if((null===(t=this.mapInfo)||void 0===t?void 0:t.id)?o.searchParams.set("webmap",this.mapInfo.id):o.searchParams.delete("webmap"),(null===(s=this._layer)||void 0===s?void 0:s.id)?o.searchParams.set("layer",this._layer.id):o.searchParams.delete("layer"),(null===(e=this.selectedIds)||void 0===e?void 0:e.length)>0?o.searchParams.set("oid",this.selectedIds.join(",")):o.searchParams.delete("oid"),this._filterActive){const i=JSON.parse(this._filterList.urlParams.get("filter")),t=this._filterList.layerExpressions.map((t=>(t.expressions=t.expressions.map((t=>(t.id.toString()===i.expressionId.toString()&&(t.active=!0),t))),t)));o.searchParams.set("filter",JSON.stringify(t))}else o.searchParams.delete("filter");this._shareNode.shareUrl=o.href}_getToolTip(i,s,e){return t("calcite-tooltip",{placement:i,"reference-element":s},t("span",null,e))}_getId(i){return`solutions-action-${i}`}_getDangerAction(i,s,e,h){const o=void 0===this._layer||h;return t("div",{class:"display-flex",id:this._getId(i)},"trash"===i?t("delete-button",{buttonType:"action",class:"display-flex",disabled:o,icon:i,ids:this._getIds(),layer:this._layer}):t("calcite-action",{appearance:"solid",disabled:o,id:i,onClick:e,text:""},t("calcite-button",{appearance:"transparent",iconStart:i,kind:"danger"},s)),this._getToolTip("bottom",i,s))}_getIds(){return this._table.highlightIds.toArray()}async _getTable(i,t){this._layer&&(await this._layer.when((()=>{this._table=new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!0,multiSortEnabled:!1,visibleElements:{header:!1,menu:!1},tableTemplate:{columnTemplates:t},container:i})})),this._initColumnsInfo(),this._checkEditEnabled(),await this._table.when((()=>{this._table.highlightIds.on("change",(i=>{this._handleOnChange(i)})),this.reactiveUtils.watch((()=>this._table.activeSortOrders),(i=>{var t,s,e,h;this._sortActive=!!this._layer&&(i.length>0&&"asc"===(null===(t=i[0])||void 0===t?void 0:t.direction)||"desc"===(null===(s=i[0])||void 0===s?void 0:s.direction)||null===(null===(e=i[0])||void 0===e?void 0:e.direction)&&(null===(h=i[0])||void 0===h?void 0:h.fieldName)===this._layer.objectIdField)}))})))}async _handleOnChange(i){const t=[...this._table.highlightIds.toArray()];if(this._skipOnChange)this._skipOnChange=!1;else{if(this._ctrlIsPressed||this._shiftIsPressed){if(this._ctrlIsPressed)this.selectedIds=t.reverse();else if(this._shiftIsPressed&&(this._skipOnChange=!0,this._previousCurrentId=this._currentId,this._currentId=[...this._table.highlightIds.toArray()].reverse()[0],this._previousCurrentId!==this._currentId)){const i=this._table.activeSortOrders.reduce(((i,t)=>(i.push(`${t.fieldName} ${t.direction}`),i)),[]),s=await c(this._layer,this._layer.definitionExpression,i);let e=!1;const h=this._table.viewModel.getObjectIdIndex(this._previousCurrentId),o=this._table.viewModel.getObjectIdIndex(this._currentId),a=h<o?h:o,l=o>h?o:h;this._skipOnChange=a+1!==l;const n=s.reduce(((i,t)=>{const s=t,h=this._table.viewModel.getObjectIdIndex(s);return s!==this._currentId&&s!==this._previousCurrentId||(e=!e,i.indexOf(s)<0&&i.push(s)),e&&i.indexOf(s)<0&&i.push(s),(this.selectedIds.indexOf(s)>-1||h>=a&&h<=l)&&i.indexOf(s)<0&&h>-1&&i.push(s),i}),[]);this.selectedIds=h<o?n.reverse():n,this._table.highlightIds.addMany(this.selectedIds.filter((i=>t.indexOf(i)<0)))}}else if(this.selectedIds.length>0){this._skipOnChange=!0;const s=this.selectedIds.length>1&&1===i.removed.length?i.removed:t.filter((i=>this.selectedIds.indexOf(i)<0));this._clearSelection(),this.selectedIds=[...s],s.length>0?this._table.highlightIds.add(s[0]):this._skipOnChange=!1}else this.selectedIds=t.reverse();this._finishOnChange()}this._currentId=[...this._table.highlightIds.toArray()].reverse()[0]}_finishOnChange(){this._showOnlySelected&&(this._featuresSelected()?this._table.filterBySelection():this._toggleShowSelected()),this.featureSelectionChange.emit(this.selectedIds)}async _resetTable(){var i;this._clearSelection(),this._allIds=[],this.featureSelectionChange.emit(this.selectedIds);const t=this._getColumnTemplates(this._layer.id,null===(i=this._layer)||void 0===i?void 0:i.fields);this._allIds=await r(this._layer),this._table?t&&(this._table.tableTemplate.columnTemplates=t):await this._getTable(this._tableNode,t),this._table.layer=this._layer,this._table.view=this.mapView,this._checkEditEnabled(),this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,this._initToolInfos(),await this._table.when((async()=>{var i,t;if(this._table.highlightIds.removeAll(),this._table.clearSelectionFilter(),this._initColumnsInfo(),!this._defaultOidHonored&&(null===(i=this.defaultOid)||void 0===i?void 0:i.length)>0&&this.defaultOid[0]>-1&&(this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0),!this._defaultGlobalIdHonored&&(null===(t=this.defaultGlobalId)||void 0===t?void 0:t.length)>0){const i=await v(this.defaultGlobalId,this._layer),t=(null==i?void 0:i.length)>0?i.map((i=>i.getObjectId())):void 0;t&&this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0}!this._defaultFilterHonored&&this.defaultFilter&&this._filterList&&(this._layerExpressions=this.defaultFilter,this._filterActive=!0,this._defaultFilterHonored=!0)})),this._showOnlySelected=!1,this._sortActive=!1,await this._sortTable()}_initColumnsInfo(){this._columnsInfo=this._table.columns.reduce(((i,t)=>(i[t.name]=!t.hidden,i)),{})}_selectDefaultFeature(i){i.length>0&&(this._table.highlightIds.addMany(i),this._table.when((()=>{const t=this._table.viewModel.getObjectIdIndex(i[0]);this._table.viewModel.scrollToIndex(t)})))}_checkEditEnabled(){this._editEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsUpdate,this._deleteEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsDelete}async _sortTable(){this._table&&this._layer&&!this._sortActive&&!this._tableSorting&&this.showNewestFirst&&(this._tableSorting=!0,await this._table.when(),await this._layer.when((()=>{this._table.sortColumn(this._layer.objectIdField,"desc"),this._tableSorting=!1})))}_forceShowHide(){this._showHideDropdown&&(this._showHideDropdown.open=this._showHideOpen),this._moreDropdown&&(this._moreDropdown.open=this._showHideOpen)}_toggleShowHide(){this._showHideOpen=!this._showHideOpen}_closeShowHide(){this._showHideOpen=!1}_handleDocumentClick(i){var t;const s=null===(t=i.target)||void 0===t?void 0:t.id;this._showHideOpen&&Object.keys(this._columnsInfo).indexOf(s)<0&&"solutions-subset-list"!==s&&"chevron-right"!==s&&(this._closeShowHide(),this._moreDropdown&&(this._moreDropdown.open=!1),this._showHideDropdown&&(this._showHideDropdown.open=!1))}_handleKeyDown(i){this._ctrlIsPressed=i.ctrlKey,this._shiftIsPressed=i.shiftKey}_handleKeyUp(i){this._ctrlIsPressed=i.ctrlKey,this._shiftIsPressed=i.shiftKey}_filterModal(){var i,s,e;return t("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:async()=>this._closeFilter(),open:this._filterOpen,widthScale:"s"},t("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},null===(s=null===(i=this._translations)||void 0===i?void 0:i.filter)||void 0===s?void 0:s.replace("{{title}}",null===(e=this._layer)||void 0===e?void 0:e.title)),t("div",{slot:"content"},t("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:async()=>this._closeFilter(),layerExpressions:this._layerExpressions,onFilterListReset:()=>this._handleFilterListReset(),onFilterUpdate:()=>this._handleFilterUpdate(),ref:i=>this._filterList=i,view:this.mapView,zoomBtn:!1})))}_handleFilterListReset(){this._filterActive=!1,this._updateShareUrl()}_handleFilterUpdate(){this._filterActive=this._definitionExpression!==this._layer.definitionExpression,this._updateShareUrl()}async _closeFilter(){this._filterOpen&&(this._allIds=await r(this._layer),this._filterOpen=!1)}async _mapClicked(i){const t={include:this._layer},s=await this.mapView.hitTest(i.screenPoint,t);s.results.length>0&&(s.results.forEach((i=>{this._clearSelection();const t=i.graphic.getObjectId(),s=this._table.highlightIds.indexOf(t);s>-1?this._table.highlightIds.removeAt(s):this._table.highlightIds.add(t)})),this._showOnlySelected&&this._table.filterBySelection())}_selectAll(){const i=this._allIds;this._table.highlightIds.removeAll(),this._skipOnChange=!0,this._table.highlightIds.addMany(i),this.selectedIds=i,this._finishOnChange(),this._selectAllActive=!0}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._showOnlySelected?this._table.filterBySelection():this._table.clearSelectionFilter()}_clearSelection(){var i;this.selectedIds=[],null===(i=this._table)||void 0===i||i.highlightIds.removeAll(),this._finishOnChange()}_toggleFilter(){this._filterOpen=!this._filterOpen}_initLayerExpressions(){var i,t;const s=null===(t=null===(i=this.mapInfo)||void 0===i?void 0:i.filterConfig)||void 0===t?void 0:t.layerExpressions;this._layerExpressions=s?s.filter((i=>{var t;return i.id===(null===(t=this._layer)||void 0===t?void 0:t.id)})):[],this._filterList.layerExpressions=this._layerExpressions,this._filterActive=!1}_switchSelected(){const i=[...this.selectedIds];this._table.highlightIds.removeAll();const t=this._allIds.reduce(((t,s)=>(i.indexOf(s)<0&&t.push(s),t)),[]).sort(((i,t)=>i-t));this._skipOnChange=!0,this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()}async _exportToCSV(){const i={},t=this._table.highlightIds.toArray();i[this._layer.id]={selectionSetNames:[this._layer.title],ids:t,layer:this._layer};const s=this._table.columns.toArray().reduce(((i,t)=>(t.hidden||i.push(t.name.toLocaleLowerCase()),i)),[]);p(null,i,!1,!1,!0,s)}async _refresh(){await this._table.refresh(),this.featureSelectionChange.emit(this.selectedIds)}_zoom(){this._table.zoomToSelection()}async _layerSelectionChanged(i){var t;const s=i.detail[0];if(s!==(null===(t=this._layer)||void 0===t?void 0:t.id)||this._featuresEmpty()){this._fetchingData=!0;const i=await n(this.mapView,s);await i.when((()=>{this._layer=i}))}this._fetchingData=!1}_getColumnTemplates(i,t){var s;let e;null===(s=this.mapInfo.layerInfos)||void 0===s||s.some((t=>{if(t.id===i)return e=t,!0}));let h=null==e?void 0:e.columnTemplates;return t&&(h=h?h.map((i=>(t.some((t=>{if(t.name===i.fieldName)return i.label=t.alias,i.menuConfig=this._getMenuConfig(t.name),!0})),i))):t.map((i=>({type:"field",fieldName:i.name,label:i.alias,menuConfig:this._getMenuConfig(i.name)})))),h}_getMenuConfig(i){return{items:[{label:this._translations.hideField,iconClass:"esri-icon-non-visible",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(i)}}]}}_handleHideClick(i){this._columnsInfo[i]=!1,this._table.hideColumn(i),this._table.tableTemplate.columnTemplates.forEach((t=>{t.fieldName===i&&(t.visible=!1)}))}async _getTranslations(){const i=await o(this.el);this._translations=i[0]}get el(){return e(this)}static get watchers(){return{enableCSV:["enableCSVWatchHandler"],enableInlineEdit:["enableInlineEditWatchHandler"],_controlsThatFit:["_controlsThatFitWatchHandler"],isMobile:["isMobileWatchHandler"],mapInfo:["mapInfoWatchHandler"],mapView:["mapViewWatchHandler"],_layer:["_layerWatchHandler"],selectedIds:["selectedIdsWatchHandler"],_sortActive:["_sortActiveWatchHandler"]}}};b.style=':host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir="rtl"] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{font-size:14px !important;color:var(--calcite-color-text-3) !important}.share-action{position:absolute;right:0}html[dir="rtl"] .share-action{left:0}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.instant-app-share{height:50px !important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding:0}';const m=class{constructor(t){i(this,t),this.mapChanged=h(this,"mapChanged",7),this.beforeMapChanged=h(this,"beforeMapChanged",7),this._defaultWebmapHonored=!1,this._loadedId="",this.defaultWebmapId="",this.enableHome=void 0,this.enableLegend=void 0,this.enableFloorFilter=void 0,this.enableFullscreen=void 0,this.enableSingleExpand=!0,this.enableSearch=void 0,this.enableBasemap=void 0,this.basemapConfig=void 0,this.hidden=void 0,this.homeZoomIndex=3,this.homeZoomPosition="top-left",this.homeZoomToolsSize="m",this.mapInfos=[],this.mapWidgetsIndex=0,this.mapWidgetsPosition="top-right",this.mapWidgetsSize="m",this.mapView=void 0,this.stackTools=!0,this.theme=void 0,this.toolOrder=void 0,this._searchConfiguration=void 0,this._webMapInfo=void 0}enableHomeWatchHandler(){this._initHome()}async mapInfoChange(i){await this._loadMap(i.detail)}async componentWillLoad(){await this._initModules()}render(){var i,e;const h=this.hidden?"visibility-hidden":"",o="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light",a=(null===(i=this.mapInfos)||void 0===i?void 0:i.length)>1?"":"display-none",l=(null===(e=this.mapInfos)||void 0===e?void 0:e.length)>1?"map-height":"height-full";return t(s,null,t("map-picker",{class:a,mapInfos:this.mapInfos,ref:i=>this._mapPicker=i}),t("div",{class:`${l} ${h}`,ref:i=>this._mapDiv=i}),t("map-tools",{basemapConfig:this.basemapConfig,class:`box-shadow ${o}`,enableBasemap:this.enableBasemap,enableFloorFilter:this.enableFloorFilter,enableFullscreen:this.enableFullscreen,enableHome:this.enableHome,enableLegend:this.enableLegend,enableSearch:this.enableSearch,enableSingleExpand:this.enableSingleExpand,homeZoomToolsSize:this.homeZoomToolsSize,mapView:this.mapView,mapWidgetsSize:this.mapWidgetsSize,position:this.mapWidgetsPosition,ref:i=>this._mapTools=i,searchConfiguration:this._searchConfiguration,stackTools:this.stackTools,toolOrder:this.toolOrder}))}async _initModules(){const[i,t,s]=await a(["esri/WebMap","esri/views/MapView","esri/widgets/Home"]);this.WebMap=i,this.MapView=t,this.Home=s}async _loadMap(i){var t;const s=!this._defaultWebmapHonored&&this.defaultWebmapId,e=null===(t=this.mapInfos)||void 0===t?void 0:t.filter((i=>i.id===this.defaultWebmapId)),h=JSON.stringify(i)!==JSON.stringify(this._webMapInfo);this._webMapInfo=s&&e?e[0]:!(null==i?void 0:i.id)&&this.mapInfos.length>0?this.mapInfos[0]:i;const o=this._webMapInfo.id,a=s&&(null==i?void 0:i.id)===this.defaultWebmapId;if(this._loadedId!==o&&!s||a){const i=new this.WebMap({portalItem:{id:o}});this.mapView=new this.MapView({container:this._mapDiv,map:i,resizeAlign:"center"}),this._loadedId=o,this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),await this.mapView.when((()=>{this._initHome(),this.mapView.ui.add(this._mapTools,{position:this.mapWidgetsPosition,index:this.mapWidgetsIndex}),this._defaultWebmapHonored=!!a||this._defaultWebmapHonored,this.mapChanged.emit({id:o,mapView:this.mapView})}))}else s?(this._defaultWebmapHonored=!0,this._mapPicker.setMapByID(o)):h&&(this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapChanged.emit({id:o,mapView:this.mapView}))}_initHome(){if(this.enableHome){this._homeWidget=new this.Home({view:this.mapView}),this.mapView.ui.add(this._homeWidget,{position:this.homeZoomPosition,index:this.homeZoomIndex});const i="s"===this.homeZoomToolsSize?"32px":"m"===this.homeZoomToolsSize?"40px":"48px";this._homeWidget.domNode.style.height=i,this._homeWidget.domNode.style.width=i}else this._homeWidget&&this.mapView.ui.remove(this._homeWidget)}get el(){return e(this)}static get watchers(){return{enableHome:["enableHomeWatchHandler"]}}};m.style=":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% - 51px)}.height-full{height:100%}.box-shadow{box-shadow:none !important}.visibility-hidden{visibility:hidden}.display-none{display:none}";export{u as card_manager,b as layer_table,m as map_card}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,a as s,h as e,H as a,g as l}from"./p-78780f63.js";import{b as o,c as n,a as c}from"./p-c1cf3ebc.js";import{l as h,g as d}from"./p-e902ba19.js";import{a as r,h as p}from"./p-4566438a.js";import{s as g}from"./p-8684a905.js";import{c as b,r as m}from"./p-a603e673.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-225c4ca4.js";import"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-220ec0d1.js";const u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this._onboardingImageUrl="",this._titleValue=void 0,this._numSelected=0,this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}async mapViewWatchHandler(t){(null==t?void 0:t.popup)&&(this._popupsEnabled=null==t?void 0:t.popup.autoOpenEnabled)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);s!==JSON.stringify(i)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){var s;if(this._checkPopups(),(null===(s=this.mapView)||void 0===s?void 0:s.popup)&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),t!==n.SELECT)return this._highlightFeatures()}selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=s("../assets/data/images/onboarding.png")}render(){return e(a,null,e("calcite-shell",null,e("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i]=await h(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils"]);this._geometryEngine=t,this._jsonUtils=i}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return e("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},e("div",{class:"background-override"},e("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),e("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},e("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),e("div",{class:"display-flex padding-1"},e("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},e("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return e("div",{class:"display-flex padding-sides-1"},e("img",{class:"img-container",src:this._onboardingImageUrl}))}_getSelectionSetList(){return e("div",{class:"padding-top-1-2 padding-bottom-1-2"},e("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{var a;const l=this._getSelectionSetIds(i);let o=!0;return i.workflowType===c.REFINE&&(o=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),o&&t.push(e("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(a=null==i?void 0:i.layerView)||void 0===a?void 0:a.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",l.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==c.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===c.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==c.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return e("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),e("div",null,e("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return e("calcite-panel",null,e("div",null,this._getLabel(this._translations.export,!1),t?e("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),e("div",{class:"padding-sides-1 "+i},e("div",{class:"display-flex"},e("calcite-label",{layout:"inline"},e("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),e("div",{class:"display-flex"},this._translations.removeDuplicate,e("div",{class:"info-message padding-start-1-2"},e("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"remove-duplicates-icon",scale:"s"})),e("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},e("span",{class:"tooltip-message"},this._translations.duplicatesTip))),e("div",{class:"border-bottom"}),e("div",{class:"padding-top-sides-1"},e("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t)},e("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},e("span",{class:"font-weight-500"},this._translations.pdf)),e("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},e("span",{class:"font-weight-500"},this._translations.csv)))),e("div",{class:"padding-bottom-1"},this._getExportOptions()),e("div",{class:"padding-1 display-flex"},e("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},e("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",s=this._addResults?"":"display-none";return e("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),e("div",{class:`padding-top-sides-1 ${s}`},e("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),e("div",{class:`padding-sides-1 ${s}`},e("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),e("div",{class:t},this._getLabel(this._translations.title,!0,""),e("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:i})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._addMap=!this._addMap}),this._translations.includeMap)))}_getRefinePage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?e("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),e("refine-selection",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,a,l,o){return e("div",{class:"padding-bottom-1"},e("div",{class:"display-flex padding-top-sides-1"},e("calcite-button",{disabled:i,onClick:s,width:"full"},e("span",{class:"font-weight-500"},t))),e("div",{class:"display-flex padding-top-1-2 padding-sides-1"},e("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},e("span",{class:"font-weight-500"},a))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return e("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},e("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{var s;const a=this._getSelectionSetIds(i),l=i.workflowType!==c.REFINE||a.length>0;return!this._downloadActive&&i.download&&l&&(this._downloadActive=!0),l&&t.push(e("div",{class:"display-flex padding-sides-1 padding-bottom-1"},e("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),e("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},e("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",a.length.toString()))))))),t}),[])||e("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=null==t?void 0:t.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{var s;if(i.workflowType===c.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const e=null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.id;t=this._updateExportInfos(t,e,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,a,l=!1,o=""){return e("calcite-action",{disabled:!t,icon:i,indicator:l,onClick:a,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){var t,i;const s=await(null===(t=this._selectTools)||void 0===t?void 0:t.getSelection()),e=null===(i=this._selectTools)||void 0===i?void 0:i.isUpdate;return this._selectionSets=e?this._selectionSets.map((t=>t.id===s.id?s:t)):[...this._selectionSets,s],this._home()}async _clearSelection(){var t;await(null===(t=this._selectTools)||void 0===t?void 0:t.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){r(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===c.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){var t;"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=null===(t=this.mapView)||void 0===t?void 0:t.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await d(this.el);this._translations=t[0]}get el(){return l(this)}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
|
6
|
+
import{r as t,c as i,a as s,h as e,H as a,g as l}from"./p-78780f63.js";import{b as o,c as n,a as c}from"./p-c1cf3ebc.js";import{l as h,g as d}from"./p-e902ba19.js";import{b as r,h as p}from"./p-2c382841.js";import{s as g}from"./p-8684a905.js";import{c as b,r as m}from"./p-55b835a1.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-225c4ca4.js";import"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-220ec0d1.js";const u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this._onboardingImageUrl="",this._titleValue=void 0,this._numSelected=0,this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}async mapViewWatchHandler(t){(null==t?void 0:t.popup)&&(this._popupsEnabled=null==t?void 0:t.popup.autoOpenEnabled)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);s!==JSON.stringify(i)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){var s;if(this._checkPopups(),(null===(s=this.mapView)||void 0===s?void 0:s.popup)&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),t!==n.SELECT)return this._highlightFeatures()}selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=s("../assets/data/images/onboarding.png")}render(){return e(a,null,e("calcite-shell",null,e("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i]=await h(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils"]);this._geometryEngine=t,this._jsonUtils=i}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return e("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},e("div",{class:"background-override"},e("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),e("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},e("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),e("div",{class:"display-flex padding-1"},e("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},e("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return e("div",{class:"display-flex padding-sides-1"},e("img",{class:"img-container",src:this._onboardingImageUrl}))}_getSelectionSetList(){return e("div",{class:"padding-top-1-2 padding-bottom-1-2"},e("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{var a;const l=this._getSelectionSetIds(i);let o=!0;return i.workflowType===c.REFINE&&(o=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),o&&t.push(e("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(a=null==i?void 0:i.layerView)||void 0===a?void 0:a.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",l.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==c.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===c.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==c.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return e("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),e("div",null,e("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return e("calcite-panel",null,e("div",null,this._getLabel(this._translations.export,!1),t?e("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),e("div",{class:"padding-sides-1 "+i},e("div",{class:"display-flex"},e("calcite-label",{layout:"inline"},e("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),e("div",{class:"display-flex"},this._translations.removeDuplicate,e("div",{class:"info-message padding-start-1-2"},e("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"remove-duplicates-icon",scale:"s"})),e("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},e("span",{class:"tooltip-message"},this._translations.duplicatesTip))),e("div",{class:"border-bottom"}),e("div",{class:"padding-top-sides-1"},e("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t)},e("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},e("span",{class:"font-weight-500"},this._translations.pdf)),e("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},e("span",{class:"font-weight-500"},this._translations.csv)))),e("div",{class:"padding-bottom-1"},this._getExportOptions()),e("div",{class:"padding-1 display-flex"},e("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},e("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",s=this._addResults?"":"display-none";return e("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),e("div",{class:`padding-top-sides-1 ${s}`},e("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),e("div",{class:`padding-sides-1 ${s}`},e("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),e("div",{class:t},this._getLabel(this._translations.title,!0,""),e("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:i})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._addMap=!this._addMap}),this._translations.includeMap)))}_getRefinePage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?e("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),e("refine-selection",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,a,l,o){return e("div",{class:"padding-bottom-1"},e("div",{class:"display-flex padding-top-sides-1"},e("calcite-button",{disabled:i,onClick:s,width:"full"},e("span",{class:"font-weight-500"},t))),e("div",{class:"display-flex padding-top-1-2 padding-sides-1"},e("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},e("span",{class:"font-weight-500"},a))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return e("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},e("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{var s;const a=this._getSelectionSetIds(i),l=i.workflowType!==c.REFINE||a.length>0;return!this._downloadActive&&i.download&&l&&(this._downloadActive=!0),l&&t.push(e("div",{class:"display-flex padding-sides-1 padding-bottom-1"},e("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),e("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},e("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",a.length.toString()))))))),t}),[])||e("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=null==t?void 0:t.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{var s;if(i.workflowType===c.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const e=null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.id;t=this._updateExportInfos(t,e,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,a,l=!1,o=""){return e("calcite-action",{disabled:!t,icon:i,indicator:l,onClick:a,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){var t,i;const s=await(null===(t=this._selectTools)||void 0===t?void 0:t.getSelection()),e=null===(i=this._selectTools)||void 0===i?void 0:i.isUpdate;return this._selectionSets=e?this._selectionSets.map((t=>t.id===s.id?s:t)):[...this._selectionSets,s],this._home()}async _clearSelection(){var t;await(null===(t=this._selectTools)||void 0===t?void 0:t.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){r(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===c.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){var t;"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=null===(t=this.mapView)||void 0===t?void 0:t.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await d(this.el);this._translations=t[0]}get el(){return l(this)}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
|