@arcgis/core 4.33.0-next.20250408 → 4.33.0-next.20250410
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/066844a51cd22cbef0e6.js +1 -0
- package/assets/esri/core/workers/chunks/067dda58592fbf4fb812.js +1 -0
- package/assets/esri/core/workers/chunks/{1595f3def0ba0c4f0fe7.js → 0eed612e82a279ac8d1e.js} +1 -1
- package/assets/esri/core/workers/chunks/1014513c0ec85f9414a4.js +1 -0
- package/assets/esri/core/workers/chunks/1072b4f37eacbbfda2c8.js +1 -0
- package/assets/esri/core/workers/chunks/{19eb465f91d07862926a.js → 1263391920fbb8926ced.js} +1 -1
- package/assets/esri/core/workers/chunks/{49d6b56e21b1bc0d1948.js → 1b87fa15470cce26feea.js} +1 -1
- package/assets/esri/core/workers/chunks/23de8aeed5b82c682cbe.js +1 -0
- package/assets/esri/core/workers/chunks/{6f9a17f62786af04b74e.js → 25a686f00479ac12a1ca.js} +1 -1
- package/assets/esri/core/workers/chunks/{f92d521ed3df3c9f737b.js → 26fcbe053194bd78fcc3.js} +1 -1
- package/assets/esri/core/workers/chunks/277b61af8982092a4c81.js +1 -0
- package/assets/esri/core/workers/chunks/{7b47b08f4a58898273b9.js → 2ab7d36409e9af3ac3da.js} +1 -1
- package/assets/esri/core/workers/chunks/{c3c70dad8c8a93953237.js → 2cbab0c078d0b844934c.js} +1 -1
- package/assets/esri/core/workers/chunks/{2679da0c93f05ae956c6.js → 358a3a9326615d5e6d3b.js} +1 -1
- package/assets/esri/core/workers/chunks/37e4f588a6896f98bce3.js +1 -0
- package/assets/esri/core/workers/chunks/3b7284516a0e34a9e85e.js +1 -0
- package/assets/esri/core/workers/chunks/3f6dc811b5d515c2725c.js +1 -0
- package/assets/esri/core/workers/chunks/{8ef755e6a7b2b71f46e6.js → 400f95295bbfced31076.js} +1 -1
- package/assets/esri/core/workers/chunks/4046ec636723c20d3e28.js +1 -0
- package/assets/esri/core/workers/chunks/4275dcec730a11173661.js +1 -0
- package/assets/esri/core/workers/chunks/{0747c9542172241b52ab.js → 436623d9bcf62b8dba47.js} +1 -1
- package/assets/esri/core/workers/chunks/4403b3f08907e88d0d91.js +1 -0
- package/assets/esri/core/workers/chunks/4523ba4a3c8987abca56.js +1 -0
- package/assets/esri/core/workers/chunks/47bbfc10c2a3b9e4bdd6.js +1 -0
- package/assets/esri/core/workers/chunks/4a15308b54734247f38e.js +1 -0
- package/assets/esri/core/workers/chunks/{d65c30cd787b287833fb.js → 4ba34124054752b363c0.js} +1 -1
- package/assets/esri/core/workers/chunks/4baef5262ce401bf81bb.js +1 -0
- package/assets/esri/core/workers/chunks/{3b2bda2e8c08f486de27.js → 4bbe6160eda3fb5d58ec.js} +1 -1
- package/assets/esri/core/workers/chunks/{52b28aab40bb19e585bb.js → 566c2ce50af225e556ac.js} +1 -1
- package/assets/esri/core/workers/chunks/{948a3c1419ae323cca10.js → 5c757e20c0543e6a49b3.js} +1 -1
- package/assets/esri/core/workers/chunks/5df4e73905c0ae75e37c.js +1 -0
- package/assets/esri/core/workers/chunks/626e33ece2c49d40f6cd.js +1 -0
- package/assets/esri/core/workers/chunks/66e90f7d473d1f688254.js +1 -0
- package/assets/esri/core/workers/chunks/72097a8247101018dcdf.js +1 -0
- package/assets/esri/core/workers/chunks/72b5e43741ce3a0da8f7.js +1 -0
- package/assets/esri/core/workers/chunks/72d7e45e7eb28f2cc0b0.js +1 -0
- package/assets/esri/core/workers/chunks/759c12b0715279e3c0f6.js +1 -0
- package/assets/esri/core/workers/chunks/796cf1c2ca9955595836.js +1 -0
- package/assets/esri/core/workers/chunks/{23cc33576da66b3c4366.js → 7ea5bbb52e84be9a608e.js} +1 -1
- package/assets/esri/core/workers/chunks/{79036c5d7569c4e94abe.js → 7ef9bcd58af499a14a08.js} +1 -1
- package/assets/esri/core/workers/chunks/80427cd9f0c2e07f21c3.js +1 -0
- package/assets/esri/core/workers/chunks/80a5fd4fb79e90086538.js +1 -0
- package/assets/esri/core/workers/chunks/82353e59ac6d909dcf41.js +1 -0
- package/assets/esri/core/workers/chunks/86931186095c23e47c0c.js +1 -0
- package/assets/esri/core/workers/chunks/{89e7cc489156ff0ebdb6.js → 8aae03e347ab18ae6ee2.js} +1 -1
- package/assets/esri/core/workers/chunks/8ddf1b85cff90c34f3e3.js +1 -0
- package/assets/esri/core/workers/chunks/{7f961954e59a232bfa88.js → 90442f47c9f31f26b453.js} +1 -1
- package/assets/esri/core/workers/chunks/9050dad7e4f093568026.js +1 -0
- package/assets/esri/core/workers/chunks/{aaf67ec3d580e1fee6c7.js → 90c893959145827961ac.js} +1 -1
- package/assets/esri/core/workers/chunks/{238df0aee97315623638.js → 91439b59260b0fb04be9.js} +1 -1
- package/assets/esri/core/workers/chunks/{4de3d692557120a4bbf7.js → 95379fdd6917c8a84c71.js} +1 -1
- package/assets/esri/core/workers/chunks/999a4f7ca581f28cc1c4.js +1 -0
- package/assets/esri/core/workers/chunks/a3421383e48379012c9c.js +1 -0
- package/assets/esri/core/workers/chunks/a91f2d1deb950f46ad09.js +1 -0
- package/assets/esri/core/workers/chunks/{a32e697547f8ac345dd7.js → af9fda47d02c51a2c7da.js} +1 -1
- package/assets/esri/core/workers/chunks/{9a84ff99756c7247dd39.js → b308bef7ff08e0e635b5.js} +82 -82
- package/assets/esri/core/workers/chunks/{5c80452df87024fdaa75.js → b7a1185ac49480fc1410.js} +1 -1
- package/assets/esri/core/workers/chunks/bd0dbad694ce5531deab.js +1 -0
- package/assets/esri/core/workers/chunks/{6c65b966f4c952508fc1.js → c589d32f8efcca6bf712.js} +1 -1
- package/assets/esri/core/workers/chunks/c6580fdcdc33153008b0.js +1 -0
- package/assets/esri/core/workers/chunks/{86b4920f5a99576399fb.js → ccb289911e7445b17763.js} +2 -2
- package/assets/esri/core/workers/chunks/{6d15d953baabccbbee01.js → cda6ae4c5cb67e22b454.js} +1 -1
- package/assets/esri/core/workers/chunks/{ac91bd1fee9ddadc270b.js → d2c7067bb6654c0e2793.js} +1 -1
- package/assets/esri/core/workers/chunks/d3b0117ad9232e36f785.js +1 -0
- package/assets/esri/core/workers/chunks/d46c82a55219b27c301b.js +1 -0
- package/assets/esri/core/workers/chunks/d89f105b8a0b13dd8e5f.js +1 -0
- package/assets/esri/core/workers/chunks/{14d1a970e927ebfed9c8.js → d9b2263e0a9f9068ab62.js} +1 -1
- package/assets/esri/core/workers/chunks/daa54c8a317c27881763.js +1 -0
- package/assets/esri/core/workers/chunks/df1225a3e751a662c182.js +1 -0
- package/assets/esri/core/workers/chunks/e08bff9f8247909776a4.js +1 -0
- package/assets/esri/core/workers/chunks/e13caf9691f556071e31.js +1 -0
- package/assets/esri/core/workers/chunks/e15c612caadf7bac4ab9.js +1 -0
- package/assets/esri/core/workers/chunks/e5aff9b10877fb04d6de.js +1 -0
- package/assets/esri/core/workers/chunks/e64bc4533405af8554ae.js +1 -0
- package/assets/esri/core/workers/chunks/{2d5cb817e6e905103068.js → e6544e966f14fb410157.js} +1 -1
- package/assets/esri/core/workers/chunks/e792603b7cc3ddd133f3.js +1 -0
- package/assets/esri/core/workers/chunks/{69e606267dc5842ebf9d.js → ec83af4fb3bf59df7759.js} +1 -1
- package/assets/esri/core/workers/chunks/f5fcba6ca6f43bf1d65d.js +1 -0
- package/assets/esri/core/workers/chunks/f7d33d18bf1bd4db9df8.js +1 -0
- package/assets/esri/core/workers/chunks/f9396af9cbfd165e72e2.js +1 -0
- package/assets/esri/core/workers/chunks/{393fbd296817e813936c.js → fa9ef9e8eae505371965.js} +1 -1
- package/assets/esri/libs/dxtEncoder/dxt_encoder.wasm +0 -0
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ar.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_bg.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_bs.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ca.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_cs.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_da.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_de.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_el.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_es.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_et.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_fi.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_fr.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_he.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_hr.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_hu.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_id.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_it.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ja.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ko.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_lt.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_lv.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_nl.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_no.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pl.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pt-BR.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_pt-PT.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ro.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_ru.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sk.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sl.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sr.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_sv.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_th.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_tr.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_uk.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_vi.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-CN.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-HK.json +1 -1
- package/assets/esri/widgets/BasemapLayerList/t9n/BasemapLayerList_zh-TW.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bg.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sk.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ar.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_bg.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_bs.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ca.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_cs.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_da.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_de.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_el.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_es.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_et.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_fi.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_fr.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_he.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_hr.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_hu.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_id.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_it.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ja.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ko.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_lt.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_lv.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_nl.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_no.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_pl.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_pt-BR.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_pt-PT.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ro.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_ru.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_sk.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_sl.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_sr.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_sv.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_th.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_tr.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_uk.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_vi.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_zh-CN.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_zh-HK.json +1 -1
- package/assets/esri/widgets/CatalogLayerList/t9n/CatalogLayerList_zh-TW.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_ar.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_bg.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_bs.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_ca.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_cs.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_da.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_de.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_el.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_es.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_et.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_fi.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_fr.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_he.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_hr.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_hu.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_id.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_it.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_ja.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_ko.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_lt.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_lv.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_nl.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_no.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_pl.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_pt-BR.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_pt-PT.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_ro.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_ru.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_sk.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_sl.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_sr.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_sv.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_th.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_tr.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_uk.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_vi.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_zh-CN.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_zh-HK.json +1 -1
- package/assets/esri/widgets/LayerList/t9n/LayerList_zh-TW.json +1 -1
- package/chunks/BlendLayers.glsl.js +1 -5
- package/chunks/Theme.js +1 -1
- package/chunks/bundle.js +5 -0
- package/chunks/dxt_encoder.js +1 -1
- package/interfaces.d.ts +15 -0
- package/layers/ParquetLayer.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/executeQueryForSnapping.js +1 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/support/arcgisLayerUrl.js +1 -1
- package/layers/support/rasterDatasets/RawBlockCache.js +1 -1
- package/layers/support/rasterFunctions/RemapFunction.js +1 -1
- package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
- package/libs/parquet/loadParquetModule.js +5 -0
- package/libs/parquet/parquet.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/ElevationLayerView3D.js +1 -1
- package/views/3d/layers/ElevationLayerView3DModifications.js +5 -0
- package/views/3d/layers/ImageryLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/terrain/PriorityQueue.js +5 -0
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +7 -12
- package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/interactive/snapping/featureSources/FeatureCollectionSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/snappingUtils.js +1 -1
- package/views/support/TextureCompressionWorker.js +1 -1
- package/views/support/TextureCompressionWorkerHandle.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/views/webgl/textureUtils.js +1 -1
- package/widgets/Editor/AddAssociationWorkflow.js +1 -1
- package/widgets/ElevationProfile.js +1 -1
- package/widgets/Feature/FeatureMedia/xyChart.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature.js +1 -1
- package/widgets/FeatureTable/Grid/Grid.js +1 -1
- package/widgets/Popup.js +1 -1
- package/assets/esri/core/workers/chunks/07236fe57d76b1134cd4.js +0 -1
- package/assets/esri/core/workers/chunks/0d37c6aa261c8d5e5b23.js +0 -1
- package/assets/esri/core/workers/chunks/0d7c1de47ae006277b76.js +0 -1
- package/assets/esri/core/workers/chunks/11b725421a823f6183a2.js +0 -1
- package/assets/esri/core/workers/chunks/11badb73d43059374ad8.js +0 -1
- package/assets/esri/core/workers/chunks/1c8cdae7736b6c907d95.js +0 -1
- package/assets/esri/core/workers/chunks/1cc4fc3353d217632a1b.js +0 -1
- package/assets/esri/core/workers/chunks/3a649aa78e25e3c8aa8c.js +0 -1
- package/assets/esri/core/workers/chunks/3e1bb914aceb3a9af898.js +0 -1
- package/assets/esri/core/workers/chunks/3ee77b601fb0f3567e87.js +0 -1
- package/assets/esri/core/workers/chunks/43a3b1b78d214aadaaad.js +0 -1
- package/assets/esri/core/workers/chunks/49d03bdaa9c4476b69d6.js +0 -1
- package/assets/esri/core/workers/chunks/4c765464288b6d096d08.js +0 -1
- package/assets/esri/core/workers/chunks/4cbd5303f5a5a5fff391.js +0 -1
- package/assets/esri/core/workers/chunks/55cc40d1b1853f779d82.js +0 -1
- package/assets/esri/core/workers/chunks/56e9dfd62102c32b9770.js +0 -1
- package/assets/esri/core/workers/chunks/576bed289aa7be03f319.js +0 -1
- package/assets/esri/core/workers/chunks/5ef6acd36629eae225da.js +0 -1
- package/assets/esri/core/workers/chunks/63ce66da1a52d6d07ccb.js +0 -1
- package/assets/esri/core/workers/chunks/6447d373a43ef6cd46cd.js +0 -1
- package/assets/esri/core/workers/chunks/64824ee75c643cee2aa9.js +0 -1
- package/assets/esri/core/workers/chunks/6a067a6ce0968d893142.js +0 -1
- package/assets/esri/core/workers/chunks/6a70b858e24d98845041.js +0 -1
- package/assets/esri/core/workers/chunks/6ecf2924f9f6aac61101.js +0 -1
- package/assets/esri/core/workers/chunks/77334c3fed1e3a06d307.js +0 -1
- package/assets/esri/core/workers/chunks/877f665c7edb26c147ea.js +0 -1
- package/assets/esri/core/workers/chunks/8c5619fdf125a459281d.js +0 -1
- package/assets/esri/core/workers/chunks/8e64687ee76e70deeb29.js +0 -1
- package/assets/esri/core/workers/chunks/8fe36b06a7eceeb874e9.js +0 -1
- package/assets/esri/core/workers/chunks/9fddd759c308d3d5801a.js +0 -1
- package/assets/esri/core/workers/chunks/a29e99328d75b6ceb74d.js +0 -1
- package/assets/esri/core/workers/chunks/a426152e7eb550b8f15f.js +0 -1
- package/assets/esri/core/workers/chunks/ae7c1e34ed1288773ec2.js +0 -1
- package/assets/esri/core/workers/chunks/ae9ebc0c0553e57e85ba.js +0 -1
- package/assets/esri/core/workers/chunks/b199508eef1eeee72854.js +0 -1
- package/assets/esri/core/workers/chunks/b715fa857391931c04b9.js +0 -1
- package/assets/esri/core/workers/chunks/c144e00dfe6d63eaa2b1.js +0 -1
- package/assets/esri/core/workers/chunks/c150cd2a82260495e9de.js +0 -1
- package/assets/esri/core/workers/chunks/c4425d5227f7e2379b0f.js +0 -1
- package/assets/esri/core/workers/chunks/c837379b36cf716d6215.js +0 -1
- package/assets/esri/core/workers/chunks/c849e3e151d78a061bf0.js +0 -1
- package/assets/esri/core/workers/chunks/cb83fcfff8731c88c108.js +0 -1
- package/assets/esri/core/workers/chunks/cc366e4df91cf516d1b9.js +0 -1
- package/assets/esri/core/workers/chunks/ccd3f9b52006cd7dd11e.js +0 -1
- package/assets/esri/core/workers/chunks/d72d44df7e117e26e717.js +0 -1
- package/assets/esri/core/workers/chunks/e22cdfce2a0583f3cc50.js +0 -1
- package/assets/esri/core/workers/chunks/f086993f8744209d761f.js +0 -1
- package/assets/esri/core/workers/chunks/fde544c090cc04581536.js +0 -1
- package/assets/esri/core/workers/chunks/fe2c48de24b25c45b3e7.js +0 -1
- package/assets/esri/libs/parquet/pkg/arcgis_parquet_bg.wasm +0 -0
package/widgets/Popup.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{_ as e}from"../chunks/tslib.es6.js";import t from"../core/Logger.js";import{ignoreAbortErrors as i,after as o}from"../core/promiseUtils.js";import{watch as s,initial as n,on as r,whenOnce as l}from"../core/reactiveUtils.js";import{waitAnimationFrame as a}from"../core/scheduling.js";import{stripHTML as d}from"../core/string.js";import{property as c}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as h}from"../core/accessorSupport/decorators/subclass.js";import u from"../support/actions/ActionButton.js";import p from"./Features.js";import g from"./Widget.js";import v from"./Features/FeaturesViewModel.js";import{css as m}from"./Popup/css.js";import f from"./Popup/PopupViewModel.js";import w from"./Popup/PopupVisibleElements.js";import{globalCss as b}from"./support/globalCss.js";import{isRTL as _}from"./support/widgetUtils.js";import{messageBundle as M}from"./support/decorators/messageBundle.js";import{vmEvent as k}from"./support/decorators/vmEvent.js";import{tsx as y}from"./support/jsxFactory.js";const E=200,C={buttonEnabled:!0,position:"auto",breakpoint:{width:544}};let D=class extends g{constructor(e,t){super(e,t),this._dockAction=new u({id:"popup-dock-action"}),this._featuresWidget=new p({responsiveActionsEnabled:!0}),this._containerNode=null,this._mainContainerNode=null,this._pointerOffsetInPx=16,this._focusAbortController=null,this.alignment="auto",this.dockEnabled=!1,this.headingLevel=2,this.messages=null,this.viewModel=new f,this.visibleElements=new w}initialize(){this.addHandles([s((()=>[this.viewModel?.view?.widthBreakpoint,this.dockEnabled]),(()=>this._handleDockIcon()),n),s((()=>[this.dockEnabled,this.messages?.undock,this.messages?.dock]),(()=>this._handleDockEnabled()),n),s((()=>this.dockOptions),(e=>{const{_dockAction:t}=this,i=this._featuresWidget.headerActions;i.remove(t),e.buttonEnabled&&i.add(t)}),n),s((()=>this.viewModel?.screenLocation),(()=>this._positionContainer())),s((()=>[this.viewModel?.active,this.dockEnabled]),(()=>this._toggleScreenLocationEnabled())),s((()=>[this.viewModel?.screenLocation,this.viewModel?.view?.padding,this.viewModel?.view?.size,this.viewModel?.active,this.viewModel?.location,this.alignment]),(()=>this.reposition())),s((()=>this.viewModel?.view?.size),((e,t)=>this._updateDockEnabledForViewSize(e,t))),s((()=>this.viewModel?.view),((e,t)=>this._viewChange(e,t))),s((()=>this.viewModel?.view?.ready),((e,t)=>this._viewReadyChange(e??!1,t??!1))),s((()=>this.viewModel),(()=>this._featuresWidget.viewModel=this.viewModel),n),s((()=>this._featureNavigationTop),(e=>this._featuresWidget.featureNavigationTop=e),n),s((()=>this.headingLevel),(e=>this._featuresWidget.headingLevel=e),n),s((()=>this.visibleElements.actionBar),(e=>this._featuresWidget.visibleElements.actionBar=!!e),n),s((()=>this.visibleElements.closeButton),(e=>this._featuresWidget.visibleElements.closeButton=!!e),n),s((()=>this.visibleElements.collapseButton),(e=>this._featuresWidget.visibleElements.collapseButton=!!e),n),s((()=>this.visibleElements.heading),(e=>this._featuresWidget.visibleElements.heading=!!e),n),s((()=>this.visibleElements.spinner),(e=>this._featuresWidget.visibleElements.spinner=!!e),n),s((()=>this.visibleElements.featureNavigation),(e=>this._featuresWidget.visibleElements.featureNavigation=!!e),n),s((()=>this.visibleElements.featureMenuHeading),(e=>this._featuresWidget.visibleElements.featureMenuHeading=!!e),n),s((()=>this.visibleElements.featureListLayerTitle),(e=>this._featuresWidget.visibleElements.featureListLayerTitle=!!e),n),r((()=>this._featuresWidget),"trigger-header-action",(e=>{e.action===this._dockAction&&(this.dockEnabled=!this.dockEnabled)}))])}destroy(){this._dockAction.destroy(),this._featuresWidget&&(this._featuresWidget.viewModel=new v,this._featuresWidget.destroy()),this._focusAbortController?.abort()}get _featureNavigationTop(){const{currentAlignment:e,currentDockPosition:t}=this;return"bottom-left"===e||"bottom-center"===e||"bottom-right"===e||"top-left"===t||"top-center"===t||"top-right"===t}get actions(){return this.viewModel.actions}set actions(e){this.viewModel.actions=e}get active(){return this.viewModel.active}get autoCloseEnabled(){return this.viewModel.autoCloseEnabled}set autoCloseEnabled(e){this.viewModel.autoCloseEnabled=e}get defaultPopupTemplateEnabled(){return this.viewModel.defaultPopupTemplateEnabled}set defaultPopupTemplateEnabled(e){this.viewModel.defaultPopupTemplateEnabled=e}get content(){return this.viewModel.content}set content(e){this.viewModel.content=e}get collapsed(){return this._featuresWidget.collapsed}set collapsed(e){this._featuresWidget.collapsed=e}get currentAlignment(){return this._getCurrentAlignment()}get currentDockPosition(){return this._getCurrentDockPosition()}get dockOptions(){return this._get("dockOptions")||C}set dockOptions(e){const t={...C},i=this.viewModel?.view?.breakpoints,o={};i&&(o.width=i.xsmall,o.height=i.xsmall);const s={...t,...e},n={...t.breakpoint,...o},{breakpoint:r}=s;"object"==typeof r?s.breakpoint={...n,...r}:r&&(s.breakpoint=n),this._set("dockOptions",s),this._setCurrentDockPosition(),this.reposition()}get featureCount(){return this.viewModel.featureCount}get featureMenuOpen(){return this.viewModel.featureMenuOpen}set featureMenuOpen(e){this.viewModel.featureMenuOpen=e}get features(){return this.viewModel.features}set features(e){this.viewModel.features=e}get goToOverride(){return this.viewModel.goToOverride}set goToOverride(e){this.viewModel.goToOverride=e}get highlightEnabled(){return this.viewModel.highlightEnabled}set highlightEnabled(e){this.viewModel.highlightEnabled=e}get icon(){return"popup"}set icon(e){this._overrideIfSome("icon",e)}get initialDisplayMode(){return this.viewModel.initialDisplayMode}set initialDisplayMode(e){this.viewModel.initialDisplayMode=e}get location(){return this.viewModel.location}set location(e){this.viewModel.location=e}get label(){return this.messages?.widgetLabel??""}set label(e){this._overrideIfSome("label",e)}get promises(){return this.viewModel.promises}set promises(e){this.viewModel.promises=e}get selectedFeature(){return this.viewModel.selectedFeature}get selectedDrillInFeature(){return this._featuresWidget.selectedDrillInFeature??null}get selectedFeatureIndex(){return this.viewModel.selectedFeatureIndex}set selectedFeatureIndex(e){this.viewModel.selectedFeatureIndex=e}get selectedFeatureWidget(){return this._featuresWidget.selectedFeatureWidget}get title(){return this.viewModel.title}set title(e){this.viewModel.title=e}get updateLocationEnabled(){return this.viewModel.updateLocationEnabled}set updateLocationEnabled(e){this.viewModel.updateLocationEnabled=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}get visible(){return this.viewModel.visible}set visible(e){this.viewModel.visible=e}blur(){const{active:e}=this.viewModel;e||t.getLogger(this).warn("Popup can only be blurred when currently active."),this._featuresWidget.blur()}clear(){return this.viewModel.clear()}close(){this.visible=!1}fetchFeatures(e,t){return this.viewModel.fetchFeatures(e,t)}focus(){const{active:e}=this.viewModel;e||t.getLogger(this).warn("Popup can only be focused when currently active."),this._handleFocus()}next(){return this.viewModel.next()}open(e){const t=!!e&&!!e.featureMenuOpen,i={collapsed:!!e&&!!e.collapsed,featureMenuOpen:t};this.set(i),this.viewModel.open(e),e?.shouldFocus&&this._handleFocus(!0)}previous(){return this.viewModel.previous()}reposition(){this.renderNow(),this._positionContainer(),this._setCurrentAlignment()}triggerAction(e){return this.viewModel.triggerAction(e)}render(){const{dockEnabled:e,currentAlignment:t,currentDockPosition:i}=this,{active:o,screenLocation:s}=this.viewModel,n=o&&e,r=o&&!e,l=this.selectedFeature?.layer?.title,a=this.selectedFeature?.layer?.id,c={[m.alignTopCenter]:"top-center"===t,[m.alignBottomCenter]:"bottom-center"===t,[m.alignTopLeft]:"top-left"===t,[m.alignBottomLeft]:"bottom-left"===t,[m.alignTopRight]:"top-right"===t,[m.alignBottomRight]:"bottom-right"===t,[m.isDocked]:n,[m.shadow]:r,[m.isDockedTopLeft]:"top-left"===i,[m.isDockedTopCenter]:"top-center"===i,[m.isDockedTopRight]:"top-right"===i,[m.isDockedBottomLeft]:"bottom-left"===i,[m.isDockedBottomCenter]:"bottom-center"===i,[m.isDockedBottomRight]:"bottom-right"===i};return y("div",{afterCreate:this._positionContainer,afterUpdate:this._positionContainer,"aria-hidden":(!o).toString(),"aria-label":d(this.title??""),"aria-modal":"false",bind:this,class:this.classes(m.base,c,{[m.baseHidden]:!s&&!e}),"data-layer-id":a,"data-layer-title":l,role:"dialog"},o?[this._renderMainContainer(),this._renderPointer()]:null)}_renderPointer(){return this.dockEnabled?null:y("div",{class:m.pointer,key:"popup-pointer",role:"presentation"},y("div",{class:this.classes(m.pointerDirection,m.shadow)}))}_renderMainContainer(){const{dockEnabled:e}=this,t={[m.shadow]:e};return y("div",{afterCreate:this._setMainContainerNode,afterUpdate:this._setMainContainerNode,bind:this,class:this.classes(m.main,b.widget,t)},this._featuresWidget.render())}_getAnimationDurationMS(){const{_containerNode:e}=this;return e?1e3*parseFloat(window.getComputedStyle(e).animationDuration):E}async _handleFocus(e=!1){this._focusAbortController?.abort(),this._focusAbortController=new AbortController;const t=this._focusAbortController.signal;e&&await l((()=>!0===this.viewModel?.active),{signal:t}),await i(a(t)),await i(o(this._getAnimationDurationMS(),t)),this._featuresWidget.focus()}_isOutsideView(e){const{popupHeight:t,popupWidth:i,screenLocation:o,side:s,view:n}=e;if(isNaN(i)||isNaN(t)||!n||!o)return!1;const r=n.padding;return"right"===s&&o.x+i/2>n.width-r.right||("left"===s&&o.x-i/2<r.left||("top"===s&&o.y-t<r.top||"bottom"===s&&o.y+t>n.height-r.bottom))}_calculateAutoAlignment(e){if("auto"!==e)return e;const{_pointerOffsetInPx:t,_containerNode:i,_mainContainerNode:o,viewModel:s}=this,{screenLocation:n,view:r}=s;if(null==n||!r||!i)return"top-center";function l(e){return parseInt(e.replaceAll(/[^-\d.]/g,""),10)}const a=o?window.getComputedStyle(o,null):null,d=a?l(a.getPropertyValue("max-height")):0,c=a?l(a.getPropertyValue("height")):0,{height:h,width:u}=i.getBoundingClientRect(),p=u+t,g=Math.max(h,d,c)+t,v=this._isOutsideView({popupHeight:g,popupWidth:p,screenLocation:n,side:"right",view:r}),m=this._isOutsideView({popupHeight:g,popupWidth:p,screenLocation:n,side:"left",view:r}),f=this._isOutsideView({popupHeight:g,popupWidth:p,screenLocation:n,side:"top",view:r}),w=this._isOutsideView({popupHeight:g,popupWidth:p,screenLocation:n,side:"bottom",view:r});return m?f?"bottom-right":"top-right":v?f?"bottom-left":"top-left":f?w?"top-center":"bottom-center":"top-center"}_callCurrentAlignment(e){return"function"==typeof e?e.call(this):e}_getCurrentAlignment(){const{alignment:e,dockEnabled:t}=this;return t||!this.viewModel.active?null:this._calculatePositionResult(this._calculateAutoAlignment(this._callCurrentAlignment(e)))}_setCurrentAlignment(){this._set("currentAlignment",this._getCurrentAlignment())}_setCurrentDockPosition(){this._set("currentDockPosition",this._getCurrentDockPosition())}_calculatePositionResult(e){const t=["left","right"];return _(this.container)&&t.reverse(),e?.replace(/leading/gi,t[0]).replaceAll(/trailing/gi,t[1])}_callDockPosition(e){return"function"==typeof e?e.call(this):e}_getDockPosition(){return this._calculatePositionResult(this._calculateAutoDockPosition(this._callDockPosition(this.dockOptions?.position)))}_getCurrentDockPosition(){return this.dockEnabled&&this.viewModel.active?this._getDockPosition():null}_calculateAutoDockPosition(e){if("auto"!==e)return e;const t=this.viewModel?.view,i=_(this.container)?"top-left":"top-right";if(!t)return i;const o=t.padding||{left:0,right:0,top:0,bottom:0},s=t.width-o.left-o.right,{breakpoints:n}=t;return n&&s<=n.xsmall?"bottom-center":i}_getDockIcon(){const e=this._getDockPosition();if(this.dockEnabled)return"minimize";switch(e){case"top-left":case"bottom-left":return"dock-left";case"top-center":return"maximize";case"bottom-center":return"dock-bottom";default:return"dock-right"}}_handleDockIcon(){this._dockAction.icon=this._getDockIcon()}_handleDockEnabled(){this._dockAction.title=this.dockEnabled?this.messages?.undock:this.messages?.dock}_setMainContainerNode(e){this._mainContainerNode=e}_positionContainer(e=this._containerNode){if(e&&(this._containerNode=e),!this._containerNode)return;const{screenLocation:t}=this.viewModel,{width:i}=this._containerNode.getBoundingClientRect(),o=this._calculatePositionStyle(t,i);o&&Object.assign(this._containerNode.style,o)}_calculateFullWidth(e){const{currentAlignment:t,_pointerOffsetInPx:i}=this;return"top-left"===t||"bottom-left"===t||"top-right"===t||"bottom-right"===t?e+i:e}_calculateAlignmentPosition(e,t,i,o){const{currentAlignment:s,_pointerOffsetInPx:n}=this;if(!i)return;const{padding:r}=i,l=o/2,a=i.height-t,d=i.width-e;return"bottom-center"===s?{top:t+n-r.top,left:e-l-r.left}:"top-left"===s?{bottom:a+n-r.bottom,right:d+n-r.right}:"bottom-left"===s?{top:t+n-r.top,right:d+n-r.right}:"top-right"===s?{bottom:a+n-r.bottom,left:e+n-r.left}:"bottom-right"===s?{top:t+n-r.top,left:e+n-r.left}:"top-center"===s?{bottom:a+n-r.bottom,left:e-l-r.left}:void 0}_calculatePositionStyle(e,t){const{dockEnabled:i,view:o}=this;if(!o)return;if(i)return{left:"",top:"",right:"",bottom:""};if(null==e||!t)return;const s=this._calculateFullWidth(t),n=this._calculateAlignmentPosition(e.x,e.y,o,s);return n?{top:void 0!==n.top?`${n.top}px`:"auto",left:void 0!==n.left?`${n.left}px`:"auto",bottom:void 0!==n.bottom?`${n.bottom}px`:"auto",right:void 0!==n.right?`${n.right}px`:"auto"}:void 0}_viewChange(e,t){e&&t&&(this.close(),this.clear())}_viewReadyChange(e,t){e?this._wireUpView():t&&(this.close(),this.clear())}_wireUpView(){this._setDockEnabledForViewSize(this.dockOptions)}_dockingThresholdCrossed(e,t,i){const[o,s]=e,[n,r]=t,{width:l=0,height:a=0}=i??{};return o<=l&&n>l||o>l&&n<=l||s<=a&&r>a||s>a&&r<=a}_updateDockEnabledForViewSize(e,t){if(!e||!t)return;const i=this.viewModel?.view?.padding||{left:0,right:0,top:0,bottom:0},o=i.left+i.right,s=i.top+i.bottom,n=[],r=[];n[0]=e[0]-o,n[1]=e[1]-s,r[0]=t[0]-o,r[1]=t[1]-s;const{dockOptions:l}=this,a=l.breakpoint;this._dockingThresholdCrossed(n,r,a)&&this._setDockEnabledForViewSize(l),this._setCurrentDockPosition()}_toggleScreenLocationEnabled(){const{dockEnabled:e,viewModel:t}=this;if(!t)return;const i=t.active&&!e;t.screenLocationEnabled=i}_shouldDockAtCurrentViewSize(e){const t=e.breakpoint,i=this.viewModel?.view?.ui;if(!i)return!1;const{width:o,height:s}=i;if(isNaN(o)||isNaN(s))return!1;if(!t)return!1;const n=t.hasOwnProperty("width")&&o<=(t.width??0),r=t.hasOwnProperty("height")&&s<=(t.height??0);return n||r}_setDockEnabledForViewSize(e){e.breakpoint&&(this.dockEnabled=this._shouldDockAtCurrentViewSize(e))}};e([c({readOnly:!0})],D.prototype,"_featureNavigationTop",null),e([c()],D.prototype,"actions",null),e([c({readOnly:!0})],D.prototype,"active",null),e([c()],D.prototype,"alignment",void 0),e([c()],D.prototype,"autoCloseEnabled",null),e([c()],D.prototype,"defaultPopupTemplateEnabled",null),e([c()],D.prototype,"content",null),e([c()],D.prototype,"collapsed",null),e([c({readOnly:!0})],D.prototype,"currentAlignment",null),e([c({readOnly:!0})],D.prototype,"currentDockPosition",null),e([c()],D.prototype,"dockOptions",null),e([c()],D.prototype,"dockEnabled",void 0),e([c({readOnly:!0})],D.prototype,"featureCount",null),e([c()],D.prototype,"featureMenuOpen",null),e([c()],D.prototype,"features",null),e([c()],D.prototype,"goToOverride",null),e([c()],D.prototype,"headingLevel",void 0),e([c()],D.prototype,"highlightEnabled",null),e([c()],D.prototype,"icon",null),e([c()],D.prototype,"initialDisplayMode",null),e([c()],D.prototype,"location",null),e([c()],D.prototype,"label",null),e([c(),M("esri/widgets/Popup/t9n/Popup")],D.prototype,"messages",void 0),e([c()],D.prototype,"promises",null),e([c({readOnly:!0})],D.prototype,"selectedFeature",null),e([c({readOnly:!0})],D.prototype,"selectedDrillInFeature",null),e([c()],D.prototype,"selectedFeatureIndex",null),e([c({readOnly:!0})],D.prototype,"selectedFeatureWidget",null),e([c()],D.prototype,"title",null),e([c()],D.prototype,"updateLocationEnabled",null),e([c()],D.prototype,"view",null),e([c({type:f}),k(["triggerAction","trigger-action"])],D.prototype,"viewModel",void 0),e([c()],D.prototype,"visible",null),e([c({type:w,nonNullable:!0})],D.prototype,"visibleElements",void 0),D=e([h("esri.widgets.Popup")],D);const P=D;export{P as default};
|
|
5
|
+
import{_ as e}from"../chunks/tslib.es6.js";import t from"../core/Logger.js";import{ignoreAbortErrors as i,after as o}from"../core/promiseUtils.js";import{watch as n,initial as s,on as r,whenOnce as l}from"../core/reactiveUtils.js";import{waitAnimationFrame as a}from"../core/scheduling.js";import{stripHTML as d}from"../core/string.js";import{property as c}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as h}from"../core/accessorSupport/decorators/subclass.js";import u from"../support/actions/ActionButton.js";import p from"./Features.js";import g from"./Widget.js";import v from"./Features/FeaturesViewModel.js";import{css as m}from"./Popup/css.js";import f from"./Popup/PopupViewModel.js";import w from"./Popup/PopupVisibleElements.js";import{globalCss as b}from"./support/globalCss.js";import{isRTL as _}from"./support/widgetUtils.js";import{messageBundle as M}from"./support/decorators/messageBundle.js";import{vmEvent as k}from"./support/decorators/vmEvent.js";import{tsx as y}from"./support/jsxFactory.js";const E=200,C={buttonEnabled:!0,position:"auto",breakpoint:{width:544}};let D=class extends g{constructor(e,t){super(e,t),this._dockAction=new u({id:"popup-dock-action"}),this._featuresWidget=new p({responsiveActionsEnabled:!0}),this._containerNode=null,this._mainContainerNode=null,this._pointerOffsetInPx=16,this._focusAbortController=null,this.alignment="auto",this.dockEnabled=!1,this.headingLevel=2,this.messages=null,this.viewModel=new f,this.visibleElements=new w}initialize(){this.addHandles([n((()=>[this.viewModel?.view?.widthBreakpoint,this.dockEnabled]),(()=>this._handleDockIcon()),s),n((()=>[this.dockEnabled,this.messages?.undock,this.messages?.dock]),(()=>this._handleDockEnabled()),s),n((()=>this.dockOptions),(e=>{const{_dockAction:t}=this,i=this._featuresWidget.headerActions;i.remove(t),e.buttonEnabled&&i.add(t)}),s),n((()=>this.viewModel?.screenLocation),(()=>this._positionContainer())),n((()=>[this.viewModel?.active,this.dockEnabled]),(()=>this._toggleScreenLocationEnabled())),n((()=>[this.viewModel?.screenLocation,this.viewModel?.view?.padding,this.viewModel?.view?.size,this.viewModel?.active,this.viewModel?.location,this.alignment]),(()=>this.reposition())),n((()=>this.viewModel?.view?.size),((e,t)=>this._updateDockEnabledForViewSize(e,t))),n((()=>this.viewModel?.view),((e,t)=>this._viewChange(e,t))),n((()=>this.viewModel?.view?.ready),((e,t)=>this._viewReadyChange(e??!1,t??!1))),n((()=>this.viewModel),(()=>this._featuresWidget.viewModel=this.viewModel),s),n((()=>this._featureNavigationTop),(e=>this._featuresWidget.featureNavigationTop=e),s),n((()=>this.headingLevel),(e=>this._featuresWidget.headingLevel=e),s),n((()=>this.visibleElements.actionBar),(e=>this._featuresWidget.visibleElements.actionBar=!!e),s),n((()=>this.visibleElements.closeButton),(e=>this._featuresWidget.visibleElements.closeButton=!!e),s),n((()=>this.visibleElements.collapseButton),(e=>this._featuresWidget.visibleElements.collapseButton=!!e),s),n((()=>this.visibleElements.heading),(e=>this._featuresWidget.visibleElements.heading=!!e),s),n((()=>this.visibleElements.spinner),(e=>this._featuresWidget.visibleElements.spinner=!!e),s),n((()=>this.visibleElements.featureNavigation),(e=>this._featuresWidget.visibleElements.featureNavigation=!!e),s),n((()=>this.visibleElements.featureMenuHeading),(e=>this._featuresWidget.visibleElements.featureMenuHeading=!!e),s),n((()=>this.visibleElements.featureListLayerTitle),(e=>this._featuresWidget.visibleElements.featureListLayerTitle=!!e),s),r((()=>this._featuresWidget),"trigger-header-action",(e=>{e.action===this._dockAction&&(this.dockEnabled=!this.dockEnabled)}))])}destroy(){this._dockAction.destroy(),this._featuresWidget&&(this._featuresWidget.viewModel=new v,this._featuresWidget.destroy()),this._focusAbortController?.abort()}get _featureNavigationTop(){const{currentAlignment:e,currentDockPosition:t}=this;return"bottom-left"===e||"bottom-center"===e||"bottom-right"===e||"top-left"===t||"top-center"===t||"top-right"===t}get actions(){return this.viewModel.actions}set actions(e){this.viewModel.actions=e}get active(){return this.viewModel.active}get autoCloseEnabled(){return this.viewModel.autoCloseEnabled}set autoCloseEnabled(e){this.viewModel.autoCloseEnabled=e}get defaultPopupTemplateEnabled(){return this.viewModel.defaultPopupTemplateEnabled}set defaultPopupTemplateEnabled(e){this.viewModel.defaultPopupTemplateEnabled=e}get content(){return this.viewModel.content}set content(e){this.viewModel.content=e}get collapsed(){return this._featuresWidget.collapsed}set collapsed(e){this._featuresWidget.collapsed=e}get currentAlignment(){return this._getCurrentAlignment()}get currentDockPosition(){return this._getCurrentDockPosition()}get dockOptions(){return this._get("dockOptions")||C}set dockOptions(e){const t={...C},i=this.viewModel?.view?.breakpoints,o={};i&&(o.width=i.xsmall,o.height=i.xsmall);const n={...t,...e},s={...t.breakpoint,...o},{breakpoint:r}=n;"object"==typeof r?n.breakpoint={...s,...r}:r&&(n.breakpoint=s),this._set("dockOptions",n),this._setCurrentDockPosition(),this.reposition()}get featureCount(){return this.viewModel.featureCount}get featureMenuOpen(){return this.viewModel.featureMenuOpen}set featureMenuOpen(e){this.viewModel.featureMenuOpen=e}get features(){return this.viewModel.features}set features(e){this.viewModel.features=e}get goToOverride(){return this.viewModel.goToOverride}set goToOverride(e){this.viewModel.goToOverride=e}get highlightEnabled(){return this.viewModel.highlightEnabled}set highlightEnabled(e){this.viewModel.highlightEnabled=e}get icon(){return"popup"}set icon(e){this._overrideIfSome("icon",e)}get initialDisplayMode(){return this.viewModel.initialDisplayMode}set initialDisplayMode(e){this.viewModel.initialDisplayMode=e}get location(){return this.viewModel.location}set location(e){this.viewModel.location=e}get label(){return this.messages?.widgetLabel??""}set label(e){this._overrideIfSome("label",e)}get promises(){return this.viewModel.promises}set promises(e){this.viewModel.promises=e}get selectedFeature(){return this.viewModel.selectedFeature}get selectedDrillInFeature(){return this._featuresWidget.selectedDrillInFeature??null}get selectedFeatureIndex(){return this.viewModel.selectedFeatureIndex}set selectedFeatureIndex(e){this.viewModel.selectedFeatureIndex=e}get selectedFeatureWidget(){return this._featuresWidget.selectedFeatureWidget}get title(){return this.viewModel.title}set title(e){this.viewModel.title=e}get updateLocationEnabled(){return this.viewModel.updateLocationEnabled}set updateLocationEnabled(e){this.viewModel.updateLocationEnabled=e}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}get visible(){return this.viewModel.visible}set visible(e){this.viewModel.visible=e}blur(){const{active:e}=this.viewModel;e||t.getLogger(this).warn("Popup can only be blurred when currently active."),this._featuresWidget.blur()}clear(){return this.viewModel.clear()}close(){this.visible=!1}fetchFeatures(e,t){return this.viewModel.fetchFeatures(e,t)}focus(){const{active:e}=this.viewModel;e||t.getLogger(this).warn("Popup can only be focused when currently active."),this._handleFocus()}next(){return this.viewModel.next()}open(e){const t=!!e&&!!e.featureMenuOpen,i={collapsed:!!e&&!!e.collapsed,featureMenuOpen:t};this.set(i),this.viewModel.open(e),e?.shouldFocus&&this._handleFocus(!0)}previous(){return this.viewModel.previous()}reposition(){this.renderNow(),this._positionContainer(),this._setCurrentAlignment()}triggerAction(e){return this.viewModel.triggerAction(e)}render(){const{dockEnabled:e,currentAlignment:t,currentDockPosition:i}=this,{active:o,screenLocation:n}=this.viewModel,s=o&&e,r=o&&!e,l=this.selectedFeature?.layer?.title,a=this.selectedFeature?.layer?.id,c={[m.alignTopCenter]:"top-center"===t,[m.alignBottomCenter]:"bottom-center"===t,[m.alignTopLeft]:"top-left"===t,[m.alignBottomLeft]:"bottom-left"===t,[m.alignTopRight]:"top-right"===t,[m.alignBottomRight]:"bottom-right"===t,[m.isDocked]:s,[m.shadow]:r,[m.isDockedTopLeft]:"top-left"===i,[m.isDockedTopCenter]:"top-center"===i,[m.isDockedTopRight]:"top-right"===i,[m.isDockedBottomLeft]:"bottom-left"===i,[m.isDockedBottomCenter]:"bottom-center"===i,[m.isDockedBottomRight]:"bottom-right"===i};return y("div",{afterCreate:this._positionContainer,afterUpdate:this._positionContainer,"aria-hidden":(!o).toString(),"aria-label":d(this.title??""),"aria-modal":"false",bind:this,class:this.classes(m.base,c,{[m.baseHidden]:!n&&!e}),"data-layer-id":a,"data-layer-title":l,role:"dialog"},o?[this._renderMainContainer(),this._renderPointer()]:null)}_renderPointer(){return this.dockEnabled?null:y("div",{class:m.pointer,key:"popup-pointer",role:"presentation"},y("div",{class:this.classes(m.pointerDirection,m.shadow)}))}_renderMainContainer(){const{dockEnabled:e}=this,t={[m.shadow]:e};return y("div",{afterCreate:this._setMainContainerNode,afterUpdate:this._setMainContainerNode,bind:this,class:this.classes(m.main,b.widget,t)},this._featuresWidget.render())}_getAnimationDurationMS(){const{_containerNode:e}=this;return e?1e3*parseFloat(window.getComputedStyle(e).animationDuration):E}async _handleFocus(e=!1){this._focusAbortController?.abort(),this._focusAbortController=new AbortController;const t=this._focusAbortController.signal;e&&await l((()=>!0===this.viewModel?.active),{signal:t}),await i(a(t)),await i(o(this._getAnimationDurationMS(),t)),this._featuresWidget.focus()}_isOutsideView(e){const{popupHeight:t,popupWidth:i,screenLocation:o,side:n,view:s}=e;if(isNaN(i)||isNaN(t)||!s||!o)return!1;const r=s.padding;return"right"===n&&o.x+i/2>s.width-r.right||("left"===n&&o.x-i/2<r.left||("top"===n&&o.y-t<r.top||"bottom"===n&&o.y+t>s.height-r.bottom))}_calculateAutoAlignment(e){if("auto"!==e)return e;const{_pointerOffsetInPx:t,_containerNode:i,_mainContainerNode:o,viewModel:n}=this,{screenLocation:s,view:r}=n;if(null==s||!r||!i)return"top-center";function l(e){return parseInt(e.replaceAll(/[^-\d.]/g,""),10)}const a=o?window.getComputedStyle(o,null):null,d=a?l(a.getPropertyValue("max-height")):0,c=a?l(a.getPropertyValue("height")):0,{height:h,width:u}=i.getBoundingClientRect(),p=u+t,g=Math.max(h,d,c)+t,v=this._isOutsideView({popupHeight:g,popupWidth:p,screenLocation:s,side:"right",view:r}),m=this._isOutsideView({popupHeight:g,popupWidth:p,screenLocation:s,side:"left",view:r}),f=this._isOutsideView({popupHeight:g,popupWidth:p,screenLocation:s,side:"top",view:r}),w=this._isOutsideView({popupHeight:g,popupWidth:p,screenLocation:s,side:"bottom",view:r});return m?f?"bottom-right":"top-right":v?f?"bottom-left":"top-left":f?w?"top-center":"bottom-center":"top-center"}_callCurrentAlignment(e){return"function"==typeof e?e.call(this):e}_getCurrentAlignment(){const{alignment:e,dockEnabled:t,_containerNode:i}=this;return!t&&this.viewModel.active&&i?this._calculatePositionResult(this._calculateAutoAlignment(this._callCurrentAlignment(e))):null}_setCurrentAlignment(){this._set("currentAlignment",this._getCurrentAlignment())}_setCurrentDockPosition(){this._set("currentDockPosition",this._getCurrentDockPosition())}_calculatePositionResult(e){const t=["left","right"];return _(this.container)&&t.reverse(),e?.replace(/leading/gi,t[0]).replaceAll(/trailing/gi,t[1])}_callDockPosition(e){return"function"==typeof e?e.call(this):e}_getDockPosition(){return this._calculatePositionResult(this._calculateAutoDockPosition(this._callDockPosition(this.dockOptions?.position)))}_getCurrentDockPosition(){return this.dockEnabled&&this.viewModel.active?this._getDockPosition():null}_calculateAutoDockPosition(e){if("auto"!==e)return e;const t=this.viewModel?.view,i=_(this.container)?"top-left":"top-right";if(!t)return i;const o=t.padding||{left:0,right:0,top:0,bottom:0},n=t.width-o.left-o.right,{breakpoints:s}=t;return s&&n<=s.xsmall?"bottom-center":i}_getDockIcon(){const e=this._getDockPosition();if(this.dockEnabled)return"minimize";switch(e){case"top-left":case"bottom-left":return"dock-left";case"top-center":return"maximize";case"bottom-center":return"dock-bottom";default:return"dock-right"}}_handleDockIcon(){this._dockAction.icon=this._getDockIcon()}_handleDockEnabled(){this._dockAction.title=this.dockEnabled?this.messages?.undock:this.messages?.dock}_setMainContainerNode(e){this._mainContainerNode=e}_positionContainer(e=this._containerNode){if(e&&(this._containerNode=e),!this._containerNode)return;const{screenLocation:t}=this.viewModel,{width:i}=this._containerNode.getBoundingClientRect(),o=this._calculatePositionStyle(t,i);o&&Object.assign(this._containerNode.style,o)}_calculateFullWidth(e){const{currentAlignment:t,_pointerOffsetInPx:i}=this;return"top-left"===t||"bottom-left"===t||"top-right"===t||"bottom-right"===t?e+i:e}_calculateAlignmentPosition(e,t,i,o){const{currentAlignment:n,_pointerOffsetInPx:s}=this;if(!i)return;const{padding:r}=i,l=o/2,a=i.height-t,d=i.width-e;return"bottom-center"===n?{top:t+s-r.top,left:e-l-r.left}:"top-left"===n?{bottom:a+s-r.bottom,right:d+s-r.right}:"bottom-left"===n?{top:t+s-r.top,right:d+s-r.right}:"top-right"===n?{bottom:a+s-r.bottom,left:e+s-r.left}:"bottom-right"===n?{top:t+s-r.top,left:e+s-r.left}:"top-center"===n?{bottom:a+s-r.bottom,left:e-l-r.left}:void 0}_calculatePositionStyle(e,t){const{dockEnabled:i,view:o}=this;if(!o)return;if(i)return{left:"",top:"",right:"",bottom:""};if(null==e||!t)return;const n=this._calculateFullWidth(t),s=this._calculateAlignmentPosition(e.x,e.y,o,n);return s?{top:void 0!==s.top?`${s.top}px`:"auto",left:void 0!==s.left?`${s.left}px`:"auto",bottom:void 0!==s.bottom?`${s.bottom}px`:"auto",right:void 0!==s.right?`${s.right}px`:"auto"}:void 0}_viewChange(e,t){e&&t&&(this.close(),this.clear())}_viewReadyChange(e,t){e?this._wireUpView():t&&(this.close(),this.clear())}_wireUpView(){this._setDockEnabledForViewSize(this.dockOptions)}_dockingThresholdCrossed(e,t,i){const[o,n]=e,[s,r]=t,{width:l=0,height:a=0}=i??{};return o<=l&&s>l||o>l&&s<=l||n<=a&&r>a||n>a&&r<=a}_updateDockEnabledForViewSize(e,t){if(!e||!t)return;const i=this.viewModel?.view?.padding||{left:0,right:0,top:0,bottom:0},o=i.left+i.right,n=i.top+i.bottom,s=[],r=[];s[0]=e[0]-o,s[1]=e[1]-n,r[0]=t[0]-o,r[1]=t[1]-n;const{dockOptions:l}=this,a=l.breakpoint;this._dockingThresholdCrossed(s,r,a)&&this._setDockEnabledForViewSize(l),this._setCurrentDockPosition()}_toggleScreenLocationEnabled(){const{dockEnabled:e,viewModel:t}=this;if(!t)return;const i=t.active&&!e;t.screenLocationEnabled=i}_shouldDockAtCurrentViewSize(e){const t=e.breakpoint,i=this.viewModel?.view?.ui;if(!i)return!1;const{width:o,height:n}=i;if(isNaN(o)||isNaN(n))return!1;if(!t)return!1;const s=t.hasOwnProperty("width")&&o<=(t.width??0),r=t.hasOwnProperty("height")&&n<=(t.height??0);return s||r}_setDockEnabledForViewSize(e){e.breakpoint&&(this.dockEnabled=this._shouldDockAtCurrentViewSize(e))}};e([c()],D.prototype,"_containerNode",void 0),e([c({readOnly:!0})],D.prototype,"_featureNavigationTop",null),e([c()],D.prototype,"actions",null),e([c({readOnly:!0})],D.prototype,"active",null),e([c()],D.prototype,"alignment",void 0),e([c()],D.prototype,"autoCloseEnabled",null),e([c()],D.prototype,"defaultPopupTemplateEnabled",null),e([c()],D.prototype,"content",null),e([c()],D.prototype,"collapsed",null),e([c({readOnly:!0})],D.prototype,"currentAlignment",null),e([c({readOnly:!0})],D.prototype,"currentDockPosition",null),e([c()],D.prototype,"dockOptions",null),e([c()],D.prototype,"dockEnabled",void 0),e([c({readOnly:!0})],D.prototype,"featureCount",null),e([c()],D.prototype,"featureMenuOpen",null),e([c()],D.prototype,"features",null),e([c()],D.prototype,"goToOverride",null),e([c()],D.prototype,"headingLevel",void 0),e([c()],D.prototype,"highlightEnabled",null),e([c()],D.prototype,"icon",null),e([c()],D.prototype,"initialDisplayMode",null),e([c()],D.prototype,"location",null),e([c()],D.prototype,"label",null),e([c(),M("esri/widgets/Popup/t9n/Popup")],D.prototype,"messages",void 0),e([c()],D.prototype,"promises",null),e([c({readOnly:!0})],D.prototype,"selectedFeature",null),e([c({readOnly:!0})],D.prototype,"selectedDrillInFeature",null),e([c()],D.prototype,"selectedFeatureIndex",null),e([c({readOnly:!0})],D.prototype,"selectedFeatureWidget",null),e([c()],D.prototype,"title",null),e([c()],D.prototype,"updateLocationEnabled",null),e([c()],D.prototype,"view",null),e([c({type:f}),k(["triggerAction","trigger-action"])],D.prototype,"viewModel",void 0),e([c()],D.prototype,"visible",null),e([c({type:w,nonNullable:!0})],D.prototype,"visibleElements",void 0),D=e([h("esri.widgets.Popup")],D);const P=D;export{P as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[272],{18768:(e,t,i)=>{i.d(t,{b:()=>l});var r=i(90237),s=i(53966),n=i(10107),a=(i(44208),i(87811),i(40608)),o=i(60694);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,s.A.getLogger(this)))}};return(0,r._)([(0,n.MZ)()],t.prototype,"title",null),(0,r._)([(0,n.MZ)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,a.$)("esri.layers.mixins.ArcGISService")],t),t}},33446:(e,t,i)=>{i.d(t,{C:()=>a,m:()=>n});var r=i(49186),s=i(74887);async function n(e,t,i){let n;try{n=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(i),n}async function a(e,t,i,n,a){let o;try{o=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load tile ${t}/${i}/${n}`,{error:e,level:t,row:i,col:n})}return(0,s.Te)(a),o}},56551:(e,t,i)=>{i.d(t,{H:()=>d});var r=i(90237),s=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),a=i(69540),o=i(25482),l=i(56507),u=i(93223),p=i(94359);let c=class extends(a.A.ClonableMixin(o.A)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,r._)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"name",void 0),(0,r._)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],c.prototype,"method",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"value",void 0),(0,r._)([(0,s.MZ)({type:[l.jz],json:{write:{isRequired:!0}}})],c.prototype,"bandIds",void 0),(0,r._)([(0,s.MZ)({types:p.uy,json:{write:!0,origins:{"web-scene":{types:p.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type&&"flow"!==e.type})}}}}})],c.prototype,"renderer",void 0),c=(0,r._)([(0,n.$)("esri.renderers.support.RasterPresetRenderer")],c);const m=c,d=e=>{let t=class extends e{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,r._)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],t.prototype,"activePresetRendererName",void 0),(0,r._)([(0,s.MZ)({type:[m],json:{name:"layerDefinition.presetRenderers",write:!0}})],t.prototype,"presetRenderers",void 0),t=(0,r._)([(0,n.$)("esri.layers.mixins.RasterPresetRendererMixin")],t),t}},58434:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Ci});var r=i(90237),n=i(13874),a=i(69540),o=i(49186),l=i(92071),u=i(74887),p=i(10107),c=(i(44208),i(53966)),m=(i(87811),i(40608)),d=i(43937),y=i(4146),h=i(52106),f=i(78888),g=i(51447),w=i(4718),v=i(36708),R=i(84952),_=i(56507),b=i(36005),S=i(5443),M=i(39829),A=i(16930),x=i(21325),I=i(10873),F=i(45617),D=i(25482),T=i(22796),P=i(16019);const j={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"},NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var N=i(67369),Z=i(70274),C=i(48940);const O=new Set(["u1","u2","u4","u8","s8","u16","s16"]),V={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},q=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function E(e){return q.has(e.type)}function J(e,t){if(!e||!t)return(0,w.o8)(e||t);const i=(0,w.o8)(e);if(i.functionDefinition&&t.rasterFunctionDefinition){const e=t.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=void 0),G(i.functionDefinition.arguments,t),i.rasterFunctionDefinition=i.functionDefinition.toJSON()}else"none"!==t.functionName?.toLowerCase()&&($(i.functionArguments).Raster=t);return i}function G(e,t){for(const i in e)"raster"===i.toLowerCase()&&("RasterFunctionVariable"===e[i].type?(e[i]=t.rasterFunctionDefinition,e[i].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===e[i].type&&G(e[i].arguments,t))}function L(e){const t=(0,w.o8)(j[e.functionName+"Function"]),i=e.functionArguments;for(const e in i)"raster"===e.toLowerCase()?(t.arguments[e]=L(i[e]),t.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(t.arguments[e].value=Q(i[e]),t.arguments.ColorSchemeType.value=0):t.arguments[e].value=i[e];return t}function $(e){const t=e?.Raster??e?.raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?$(t.functionArguments):e}const z={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function U(e,t){const i=O.has(t)?(0,P.hP)(t):null;return i&&e.push([Math.floor(i[0]-1),0,0,0],[Math.ceil(i[1]+1),0,0,0]),e}function B(e){if(null==e)return;const{fields:t}=e,i=t?.find((e=>e?.name&&"value"===e.name.toLowerCase()));return i?.name}function k(e){return"polygon-3d"===e.symbol?.type?e.symbol.symbolLayers?.find((e=>"fill"===e.type))?.material?.color:e.symbol?.color}function Q(e){const t=[],i=[];return e.forEach((e=>{t.push(e[0]),i.push((0,N.vL)([...e.slice(1),255]))})),{type:"RasterColormap",values:t,colors:i}}var H=i(85675),K=i(13868);let W=class extends D.A{constructor(){super(...arguments),this.layer=null,this.requestRawData=!1,this.compression=void 0,this.lercVersion=2}get adjustAspectRatio(){return this.layer.adjustAspectRatio}writeAdjustAspectRatio(e,t,i){this.layer.version<10.3||(t[i]=e)}get bandIds(){return this.layer.bandIds}get compressionQuality(){return this.layer.compressionQuality}writeCompressionQuality(e,t,i){this.format&&this.format.toLowerCase().includes("jpg")&&null!=e&&(t[i]=e)}get compressionTolerance(){return this.layer.compressionTolerance}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}get format(){return this.requestRawData||"vector-field"===this.layer.renderer?.type?"lerc":this.layer.format}get interpolation(){return this.layer.interpolation}get noData(){return this.layer.noData}get noDataInterpretation(){return this.layer.noDataInterpretation}get pixelType(){const{layer:e}=this;return e.pixelType!==e.serviceRasterInfo.pixelType?e.pixelType:void 0}writeLercVersion(e,t,i){"lerc"===this.format&&this.layer.version>=10.5&&(t[i]=e)}get version(){const e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("rasterFunction"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("pixelType"),e.commitProperty("definitionExpression"),e.commitProperty("multidimensionalSubset"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){const e=this.layer;let t=e.mosaicRule;const i=e.definitionExpression;return t?i&&i!==t.where&&(t=t.clone(),t.where=i):i&&(t=new H.A({where:i})),t}get rasterFunction(){const e=this.layer;let{rasterFunction:t}=e;const i=e.pixelFilter,r=!e.format||e.format.includes("jpg")||e.format.includes("png");this.requestRawData||(t=this._addResampleRasterFunction(t));const s=e.multidimensionalSubset?.areaOfInterest;return s&&(t=function(e,t){return J(new T.A({functionName:"Clip",functionArguments:{ClippingGeometry:t.toJSON(),ClippingType:1}}),e)}(t,s)),this.requestRawData||!r||i||"vector-field"===e.renderer?.type||(t=this.combineRendererWithRenderingRule(t)),t}combineRendererWithRenderingRule(e){const t=this.layer,{rasterInfo:i,renderer:r}=t;return e=e||t.rasterFunction,r&&E(r)?J(function(e,t){switch(t=t||{},e.type){case"raster-stretch":return function(e,t){const i=t.convertToRFT,r=new T.A;r.functionName="Stretch";const s=z[Z.u.toJSON(e.stretchType)],n="u8",a=e.customStatistics?.map((e=>[e.min,e.max,e.avg??0,e.stddev??1])),o={StretchType:s,Statistics:a,DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(o.Min=e.outputMin),null!=e.outputMax&&(o.Max=e.outputMax),s===z.standardDeviation?(o.NumberOfStandardDeviations=e.numberOfStandardDeviations,r.outputPixelType=n):s===z.percentClip?(o.MinPercent=e.minPercent,o.MaxPercent=e.maxPercent,r.outputPixelType=n):s===z.minMax?r.outputPixelType=n:s===z.sigmoid&&(o.SigmoidStrengthLevel=e.sigmoidStrengthLevel),r.functionArguments=o,r.variableName="Raster",e.colorRamp){const s=e.colorRamp,n=new T.A;if(i)n.functionArguments={ColorRamp:(0,N.hf)(s)};else{const i=(0,N.hs)(s,!0);if(i)n.functionArguments={colorRampName:i};else if(!t.convertColorRampToColormap||"algorithmic"!==s.type&&"multipart"!==s.type){const t=e.colorRamp.toJSON();"algorithmic"===t.type?t.algorithm=t.algorithm||"esriCIELabAlgorithm":"multipart"===t.type&&t.colorRamps?.length&&t.colorRamps.forEach((e=>e.algorithm=e.algorithm||"esriCIELabAlgorithm")),n.functionArguments={colorRamp:t}}else n.functionArguments={Colormap:(0,N.R8)(s)}}return n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=r,i?new T.A({rasterFunctionDefinition:L(n)}):n}return i?new T.A({rasterFunctionDefinition:L(r)}):r}(e,t);case"class-breaks":return function(e,t){const i=[],r=[],s=[],n=[],a=1e-4,{pixelType:o,rasterAttributeTable:l}=t,u=null==l?null:l.features,p=B(l);if(p&&u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach(((t,i)=>{const r=t.symbol?.color;let s;r?.a&&null!=t.minValue&&null!=t.maxValue&&u.forEach((a=>{null!=t.minValue&&null!=t.maxValue&&(s=a.attributes[e.field],(s>=t.minValue&&s<t.maxValue||i===e.classBreakInfos.length-1&&s>=t.minValue)&&n.push([a.attributes[p],r.r,r.g,r.b]))}))}));const i=o?U(n,o):n,r=new T.A;return r.functionName="Colormap",r.functionArguments={},r.functionArguments.Colormap=i,r.variableName="Raster",t.convertToRFT?new T.A({rasterFunctionDefinition:L(r)}):r}e.classBreakInfos.forEach(((e,t)=>{if(null==e.minValue||null==e.maxValue)return;const o=e.symbol&&e.symbol.color;o?.a?(0===t?i.push(e.minValue,e.maxValue+a):i.push(e.minValue+a,e.maxValue+a),r.push(t),n.push([t,o.r,o.g,o.b])):s.push(e.minValue,e.maxValue)}));const c=o?U(n,o):n,m=new T.A;m.functionName="Remap",m.functionArguments={InputRanges:i,OutputValues:r,NoDataRanges:s},m.variableName="Raster";const d=new T.A;return d.functionName="Colormap",d.functionArguments={Colormap:c,Raster:m},t.convertToRFT?new T.A({rasterFunctionDefinition:L(d)}):d}(e,t);case"unique-value":return function(e,t){const i=[],{pixelType:r,rasterAttributeTable:s}=t,n=null==s?null:s.features,a=B(s),o=e.defaultSymbol?.color?.toRgb(),l=e.uniqueValueInfos;if(l)if(n){if(a){const t=new Map;l.forEach((e=>{const i=e.value,r=k(e);null!=i&&r?.a&&t.set(String(i),r.toRgb())}));const r=e.field;r&&n.forEach((({attributes:e})=>{const s=String(e[r]),n=e[a],l=t.get(s);l?i.push([n,...l]):o&&i.push([n,...o])}))}}else for(let e=0;e<l.length;e++){const t=l[e],r=k(t),s=+t.value;if(r?.a){if(isNaN(s))return null;i.push([s,r.r,r.g,r.b])}}const u=r?U(i,r):i,p=new T.A;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=u,p.variableName="Raster",t.convertToRFT?new T.A({rasterFunctionDefinition:L(p)}):p}(e,t);case"raster-colormap":return function(e,t){const i=e.extractColormap();if(!i||0===i.length)return null;const{pixelType:r}=t,s=r?U(i,r):i,n=new T.A;return n.functionName="Colormap",n.functionArguments={},n.functionArguments.Colormap=s,t.convertToRFT?new T.A({rasterFunctionDefinition:L(n)}):n}(e,t);case"vector-field":return function(e,t){const i=new T.A;i.functionName="VectorFieldRenderer";const{dataType:r,bandNames:s}=t,n="vector-uv"===r;let a,o;if(s&&2===s.length){const e=s.map((e=>e.toLowerCase()));a=e.indexOf("magnitude"),o=e.indexOf("direction")}-1!==a&&null!==a||(a=0,o=1);const l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,p=e.visualVariables?e.visualVariables.find((e=>"Magnitude"===e.field)):new C.A,c={magnitudeBandID:a,directionBandID:o,isUVComponents:n,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:V[e.style.toLowerCase().replace("-","_")],minimumMagnitude:p.minDataValue,maximumMagnitude:p.maxDataValue,minimumSymbolSize:p.minSize,maximumSymbolSize:p.maxSize};i.functionArguments=c;const m=L(i);return t.convertToRFT?T.A.fromJSON({rasterFunctionDefinition:m}):i}(e,t);case"raster-shaded-relief":return function(e,t){const i=t.convertToRFT;if("elevation"!==t.dataType&&("generic"!==t.dataType||1!==t.bandCount||"s16"!==t.pixelType&&"s32"!==t.pixelType&&"f32"!==t.pixelType&&"f64"!==t.pixelType))return new T.A;const r=new T.A;r.functionName="Hillshade";const s="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,a={HillshadeType:s,SlopeType:n,ZFactor:e.zFactor};return 0===s&&(a.Azimuth=e.azimuth,a.Altitude=e.altitude),3===n&&(a.PSPower=e.pixelSizePower,a.PSZFactor=e.pixelSizeFactor),r.functionArguments=a,r.variableName="Raster",e.colorRamp&&(r.functionName="ShadedRelief",i?a.ColorRamp=(0,N.hf)(e.colorRamp):a.Colormap=(0,N.R8)(e.colorRamp)),i?new T.A({rasterFunctionDefinition:L(r)}):r}(e,t);case"flow":throw new Error("Unsupported rendering rule.")}}(r,{rasterAttributeTable:i.attributeTable,pixelType:i.pixelType,dataType:i.dataType,bandNames:i.bandInfos.map((({name:e})=>e)),convertColorRampToColormap:t.version<10.6,convertToRFT:!!e?.rasterFunctionDefinition,bandCount:i.bandCount}),e):e}_addResampleRasterFunction(e){if("vector-field"!==this.layer.renderer?.type||"Resample"===e?.functionName)return e;const t="esriImageServiceDataTypeVector-UV"===this.layer.serviceDataType?7:10,i=this.layer.serviceRasterInfo.pixelSize;let r=new T.A({functionName:"Resample",functionArguments:{ResamplingType:t,InputCellSize:i}});return r=e?.rasterFunctionDefinition?new T.A({rasterFunctionDefinition:L(r)}):r,J(r,e)}};(0,r._)([(0,p.MZ)()],W.prototype,"layer",void 0),(0,r._)([(0,p.MZ)()],W.prototype,"requestRawData",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],W.prototype,"adjustAspectRatio",null),(0,r._)([(0,d.K)("adjustAspectRatio")],W.prototype,"writeAdjustAspectRatio",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],W.prototype,"bandIds",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],W.prototype,"compression",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],W.prototype,"compressionQuality",null),(0,r._)([(0,d.K)("compressionQuality")],W.prototype,"writeCompressionQuality",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],W.prototype,"compressionTolerance",null),(0,r._)([(0,d.K)("compressionTolerance")],W.prototype,"writeCompressionTolerance",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],W.prototype,"format",null),(0,r._)([(0,p.MZ)({type:String,json:{read:{reader:K.SZ.read},write:{writer:K.SZ.write}}})],W.prototype,"interpolation",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],W.prototype,"noData",null),(0,r._)([(0,p.MZ)({type:String,json:{read:{reader:K.hm.read},write:{writer:K.hm.write}}})],W.prototype,"noDataInterpretation",null),(0,r._)([(0,p.MZ)({type:K.e8.apiValues,json:{read:K.e8.read,write:K.e8.write}})],W.prototype,"pixelType",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],W.prototype,"lercVersion",void 0),(0,r._)([(0,d.K)("lercVersion")],W.prototype,"writeLercVersion",null),(0,r._)([(0,p.MZ)({type:Number})],W.prototype,"version",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],W.prototype,"mosaicRule",null),(0,r._)([(0,p.MZ)({json:{write:!0,name:"renderingRule"}})],W.prototype,"rasterFunction",null),W=(0,r._)([(0,m.$)("esri.layers.support.ExportImageServiceParameters")],W);var X=i(20437),Y=i(95466),ee=i(33446),te=i(43577),ie=i(14140),re=i(74797),se=i(87186),ne=i(77301),ae=i(51244),oe=i(14636),le=i(12711),ue=i(85676),pe=i(94359),ce=i(65864),me=i(17136),de=i(2272),ye=i(86738);let he=class extends(a.A.ClonableMixin(D.A)){constructor(){super(...arguments),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};(0,r._)([(0,p.MZ)({type:ye.A,json:{read:!0}})],he.prototype,"fromGeometry",void 0),(0,r._)([(0,p.MZ)({type:ye.A,json:{read:!0,write:!0}})],he.prototype,"toGeometry",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],he.prototype,"objectIds",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],he.prototype,"where",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],he.prototype,"maxCount",void 0),he=(0,r._)([(0,m.$)("esri.rest.support.FindImagesParameters")],he);const fe=he,ge=e=>{let t=class extends e{constructor(){super(...arguments),this.make=null,this.model=null,this.focalLength=null,this.pixelSize=null,this.rows=null,this.cols=null}};return(0,r._)([(0,p.MZ)({json:{write:!0}})],t.prototype,"make",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],t.prototype,"model",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],t.prototype,"focalLength",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],t.prototype,"pixelSize",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],t.prototype,"rows",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],t.prototype,"cols",void 0),t=(0,r._)([(0,m.$)("esri.rest.support.CameraInfoMixin")],t),t};let we=class extends(ge(D.A)){constructor(){super(...arguments),this.id=null,this.referenceUri=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.perspectiveCenter=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,r._)([(0,p.MZ)({json:{write:!0}})],we.prototype,"id",void 0),(0,r._)([(0,p.MZ)({json:{name:"uri",write:!0}})],we.prototype,"referenceUri",void 0),(0,r._)([(0,p.MZ)({type:Date,json:{write:!0}})],we.prototype,"acquisitionDate",void 0),(0,r._)([(0,d.K)("acquisitionDate")],we.prototype,"writeAcquisitionDate",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],we.prototype,"cameraID",void 0),(0,r._)([(0,p.MZ)({type:ye.A,json:{write:!0}})],we.prototype,"center",void 0),(0,r._)([(0,p.MZ)({type:ye.A,json:{write:!0}})],we.prototype,"perspectiveCenter",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],we.prototype,"orientation",void 0),we=(0,r._)([(0,m.$)("esri.rest.support.ImageInspectionInfo")],we);const ve=we;let Re=class extends D.A{constructor(){super(...arguments),this.images=null}};(0,r._)([(0,p.MZ)({type:[ve],json:{write:!0}})],Re.prototype,"images",void 0),Re=(0,r._)([(0,m.$)("esri.rest.support.FindImagesResult")],Re);const _e=Re;var be;let Se=be=class extends D.A{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new be((0,w.o8)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,r._)([(0,p.MZ)({type:[String],json:{name:"angleName",write:!0}})],Se.prototype,"angleNames",void 0),(0,r._)([(0,p.MZ)({type:ye.A,json:{write:!0}})],Se.prototype,"point",void 0),(0,r._)([(0,p.MZ)({type:A.A,json:{write:!0}})],Se.prototype,"spatialReference",void 0),(0,r._)([(0,p.MZ)({type:_.jz,json:{write:!0}})],Se.prototype,"rasterId",void 0),Se=be=(0,r._)([(0,m.$)("esri.rest.support.ImageAngleParameters")],Se);const Me=Se;let Ae=class extends D.A{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],Ae.prototype,"north",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],Ae.prototype,"up",void 0),(0,r._)([(0,p.MZ)({type:A.A,json:{write:!0}})],Ae.prototype,"spatialReference",void 0),Ae=(0,r._)([(0,m.$)("esri.rest.support.ImageAngleResult")],Ae);const xe=Ae;var Ie=i(83047),Fe=i(50498),De=i(66552);const Te=new De.J({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D",esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"});let Pe=class extends D.A{constructor(){super(...arguments),this.value=null,this.displayValue=null,this.uncertainty=null}};(0,r._)([(0,p.MZ)({type:Number,json:{read:!0,write:!0}})],Pe.prototype,"value",void 0),(0,r._)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Pe.prototype,"displayValue",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{read:!0,write:!0}})],Pe.prototype,"uncertainty",void 0),Pe=(0,r._)([(0,m.$)("esri.rest.support.imageMeasureUtils.BaseImageMeasureResultValue")],Pe);let je=class extends Pe{constructor(){super(...arguments),this.unit=null}};(0,r._)([(0,p.MZ)({type:String,json:{read:Ie.Sk.read,write:Ie.Sk.write}})],je.prototype,"unit",void 0),je=(0,r._)([(0,m.$)("esri.rest.support.imageMeasureUtils.ImageMeasureResultLengthValue")],je);let Ne=class extends Pe{constructor(){super(...arguments),this.unit=null}};(0,r._)([(0,p.MZ)({type:String,json:{read:Ie.dk.read,write:Ie.dk.write}})],Ne.prototype,"unit",void 0),Ne=(0,r._)([(0,m.$)("esri.rest.support.imageMeasureUtils.ImageMeasureResultAreaValue")],Ne);let Ze=class extends Pe{constructor(){super(...arguments),this.unit=null}};(0,r._)([(0,p.MZ)({type:String,json:{read:Ie.b$.read,write:Ie.b$.write}})],Ze.prototype,"unit",void 0),Ze=(0,r._)([(0,m.$)("esri.rest.support.imageMeasureUtils.ImageMeasureResultAngleValue")],Ze);let Ce=class extends D.A{constructor(e){super(e),this.type=null,this.measureOperation=null,this.mosaicRule=null,this.pixelSize=null,this.raster=void 0}};(0,r._)([(0,p.MZ)()],Ce.prototype,"type",void 0),(0,r._)([(0,p.MZ)({type:Te.apiValues,json:{read:Te.read,write:Te.write}})],Ce.prototype,"measureOperation",void 0),(0,r._)([(0,p.MZ)({type:H.A,json:{write:!0}})],Ce.prototype,"mosaicRule",void 0),(0,r._)([(0,p.MZ)({type:ye.A,json:{write:!0}})],Ce.prototype,"pixelSize",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],Ce.prototype,"raster",void 0),Ce=(0,r._)([(0,m.$)("esri.rest.support.BaseImageMeasureParameters")],Ce);const Oe=Ce;var Ve;let qe=Ve=class extends Oe{constructor(){super(...arguments),this.type="area-perimeter",this.geometry=null,this.is3D=!1,this.linearUnit="meters",this.areaUnit="square-meters"}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new Ve((0,w.o8)({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,r._)([(0,p.MZ)({types:Fe.yR,json:{name:"fromGeometry",read:!0,write:!0}})],qe.prototype,"geometry",void 0),(0,r._)([(0,d.K)("geometry")],qe.prototype,"writeGeometry",null),(0,r._)([(0,p.MZ)({type:Te.apiValues,json:{write:Te.write}})],qe.prototype,"measureOperation",null),(0,r._)([(0,p.MZ)({json:{read:!0}})],qe.prototype,"is3D",void 0),(0,r._)([(0,p.MZ)({type:String,json:{read:Ie.Sk.read,write:Ie.Sk.write}})],qe.prototype,"linearUnit",void 0),(0,r._)([(0,p.MZ)({type:String,json:{read:Ie.dk.read,write:Ie.dk.write}})],qe.prototype,"areaUnit",void 0),qe=Ve=(0,r._)([(0,m.$)("esri.rest.support.ImageAreaParameters")],qe);const Ee=qe;let Je=class extends D.A{constructor(e){super(e),this.name=null,this.sensorName=null}};(0,r._)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Je.prototype,"name",void 0),(0,r._)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],Je.prototype,"sensorName",void 0),Je=(0,r._)([(0,m.$)("esri.rest.support.BaseImageMeasureResult")],Je);const Ge=Je;let Le=class extends Ge{constructor(){super(...arguments),this.area=null,this.perimeter=null}};(0,r._)([(0,p.MZ)({type:Ne,json:{read:!0,write:!0}})],Le.prototype,"area",void 0),(0,r._)([(0,p.MZ)({type:je,json:{read:!0,write:!0}})],Le.prototype,"perimeter",void 0),Le=(0,r._)([(0,m.$)("esri.rest.support.ImageAreaResult")],Le);const $e=Le;let ze=class extends(a.A.ClonableMixin(D.A)){constructor(){super(...arguments),this.outSpatialReference=null}};(0,r._)([(0,p.MZ)({type:A.A,json:{name:"outSR",write:!0}})],ze.prototype,"outSpatialReference",void 0),ze=(0,r._)([(0,m.$)("esri.rest.support.ImageBoundaryParameters")],ze);const Ue=ze;let Be=class extends D.A{constructor(){super(...arguments),this.area=null,this.geometry=null}readGeometry(e,t){return null==e?null:e.rings?M.A.fromJSON(e):S.A.fromJSON(e)}};(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],Be.prototype,"area",void 0),(0,r._)([(0,p.MZ)({types:Fe.yR,json:{name:"shape",write:!0}})],Be.prototype,"geometry",void 0),(0,r._)([(0,b.w)("geometry")],Be.prototype,"readGeometry",null),Be=(0,r._)([(0,m.$)("esri.rest.support.ImageBoundaryResult")],Be);const ke=Be;var Qe;let He=Qe=class extends Oe{constructor(){super(...arguments),this.type="distance-angle",this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit="meters",this.angularUnit="degrees"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new Qe((0,w.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,r._)([(0,p.MZ)({type:ye.A,json:{read:!0,write:!0}})],He.prototype,"fromGeometry",void 0),(0,r._)([(0,d.K)("fromGeometry")],He.prototype,"writeFromGeometry",null),(0,r._)([(0,p.MZ)({type:ye.A,json:{read:!0,write:!0}})],He.prototype,"toGeometry",void 0),(0,r._)([(0,p.MZ)({type:Te.apiValues,json:{write:Te.write}})],He.prototype,"measureOperation",null),(0,r._)([(0,p.MZ)({json:{read:!0}})],He.prototype,"is3D",void 0),(0,r._)([(0,p.MZ)({type:String,json:{read:Ie.Sk.read,write:Ie.Sk.write}})],He.prototype,"linearUnit",void 0),(0,r._)([(0,p.MZ)({type:String,json:{read:Ie.b$.read,write:Ie.b$.write}})],He.prototype,"angularUnit",void 0),He=Qe=(0,r._)([(0,m.$)("esri.rest.support.ImageDistanceParameters")],He);const Ke=He;let We=class extends Ge{constructor(){super(...arguments),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};(0,r._)([(0,p.MZ)({type:je,json:{read:!0,write:!0}})],We.prototype,"distance",void 0),(0,r._)([(0,p.MZ)({type:Ze,json:{read:!0,write:!0}})],We.prototype,"azimuthAngle",void 0),(0,r._)([(0,p.MZ)({type:Ze,json:{read:!0,write:!0}})],We.prototype,"elevationAngle",void 0),We=(0,r._)([(0,m.$)("esri.rest.support.ImageDistanceResult")],We);const Xe=We;var Ye=i(93223),et=i(58174),tt=i(79677);let it=class extends(a.A.ClonableMixin(D.A)){constructor(){super(...arguments),this.geometry=null,this.objectIds=null,this.spatialRelationship="intersects",this.timeExtent=null,this.where=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=JSON.stringify(e.toJSON()))}};(0,r._)([(0,p.MZ)({types:Fe.yR,json:{read:ce.rS,write:!0}})],it.prototype,"geometry",void 0),(0,r._)([(0,d.K)("geometry")],it.prototype,"writeGeometry",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],it.prototype,"objectIds",void 0),(0,r._)([(0,Ye.e)(et.x,{ignoreUnknown:!1,name:"spatialRel"})],it.prototype,"spatialRelationship",void 0),(0,r._)([(0,p.MZ)({type:tt.A,json:{name:"time",write:!0}})],it.prototype,"timeExtent",void 0),(0,r._)([(0,p.MZ)({type:String,json:{write:!0}})],it.prototype,"where",void 0),it=(0,r._)([(0,m.$)("esri.rest.support.ImageGPSInfoParameters")],it);const rt=it;let st=class extends(ge(D.A)){constructor(){super(...arguments),this.id=null}};(0,r._)([(0,p.MZ)({json:{write:!0}})],st.prototype,"id",void 0),st=(0,r._)([(0,m.$)("esri.rest.support.CameraInfo")],st);const nt=st;let at=class extends D.A{constructor(){super(...arguments),this.id=null,this.name=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.gps=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,r._)([(0,p.MZ)({json:{write:!0}})],at.prototype,"id",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],at.prototype,"name",void 0),(0,r._)([(0,p.MZ)({type:Date,json:{write:!0}})],at.prototype,"acquisitionDate",void 0),(0,r._)([(0,d.K)("acquisitionDate")],at.prototype,"writeAcquisitionDate",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],at.prototype,"cameraID",void 0),(0,r._)([(0,p.MZ)({type:ye.A,json:{write:!0}})],at.prototype,"center",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],at.prototype,"gps",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],at.prototype,"orientation",void 0),at=(0,r._)([(0,m.$)("esri.rest.support.ImageGPSInfo")],at);const ot=at;let lt=class extends D.A{constructor(){super(...arguments),this.images=null,this.cameras=null}};(0,r._)([(0,p.MZ)({type:[ot],json:{write:!0}})],lt.prototype,"images",void 0),(0,r._)([(0,p.MZ)({type:[nt],json:{write:!0}})],lt.prototype,"cameras",void 0),lt=(0,r._)([(0,m.$)("esri.rest.support.ImageGPSInfoResult")],lt);const ut=lt;var pt;let ct=pt=class extends Oe{constructor(){super(...arguments),this.type="height",this.fromGeometry=null,this.toGeometry=null,this.operationType="base-and-top",this.linearUnit="meters"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new pt((0,w.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,r._)([(0,p.MZ)({type:ye.A,json:{read:!0}})],ct.prototype,"fromGeometry",void 0),(0,r._)([(0,d.K)("fromGeometry")],ct.prototype,"writeFromGeometry",null),(0,r._)([(0,p.MZ)({type:ye.A,json:{read:!0,write:!0}})],ct.prototype,"toGeometry",void 0),(0,r._)([(0,p.MZ)({type:Te.apiValues,json:{write:Te.write}})],ct.prototype,"measureOperation",null),(0,r._)([(0,p.MZ)({json:{read:!0}})],ct.prototype,"operationType",void 0),(0,r._)([(0,p.MZ)({type:String,json:{read:Ie.Sk.read,write:Ie.Sk.write}})],ct.prototype,"linearUnit",void 0),ct=pt=(0,r._)([(0,m.$)("esri.rest.support.ImageHeightParameters")],ct);const mt=ct;let dt=class extends Ge{constructor(){super(...arguments),this.height=null}};(0,r._)([(0,p.MZ)({type:je,json:{read:!0,write:!0}})],dt.prototype,"height",void 0),dt=(0,r._)([(0,m.$)("esri.rest.support.ImageHeightResult")],dt);const yt=dt;var ht,ft=i(22048);let gt=ht=class extends D.A{constructor(){super(...arguments),this.geometry=null,this.rasterFunctions=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=H.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=T.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}writeRasterFunction(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[i]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,i){null!=e&&(t[i]=JSON.stringify(e.map((e=>e.rasterFunctionDefinition||e.toJSON()))))}writePixelSize(e,t,i){null!=e&&(t[i]=JSON.stringify(e))}writeTimeExtent(e,t,i){if(null!=e){const r=null!=e.start?e.start.getTime():null,s=null!=e.end?e.end.getTime():null;t[i]=null!=r?null!=s?`${r},${s}`:`${r}`:null}}clone(){return new ht((0,w.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,r._)([(0,p.MZ)({types:Fe.yR,json:{write:!0}})],gt.prototype,"geometry",void 0),(0,r._)([(0,d.K)("geometry")],gt.prototype,"writeGeometry",null),(0,r._)([(0,p.MZ)({type:H.A,json:{write:!0}})],gt.prototype,"mosaicRule",null),(0,r._)([(0,d.K)("mosaicRule")],gt.prototype,"writeMosaicRule",null),(0,r._)([(0,p.MZ)({type:T.A,json:{write:!0,name:"renderingRule"}})],gt.prototype,"rasterFunction",null),(0,r._)([(0,d.K)("rasterFunction")],gt.prototype,"writeRasterFunction",null),(0,r._)([(0,p.MZ)({type:[T.A],json:{write:!0,name:"renderingRules"}})],gt.prototype,"rasterFunctions",void 0),(0,r._)([(0,d.K)("rasterFunctions")],gt.prototype,"writeRasterFunctions",null),(0,r._)([(0,p.MZ)({type:ye.A,json:{write:!0}})],gt.prototype,"pixelSize",void 0),(0,r._)([(0,d.K)("pixelSize")],gt.prototype,"writePixelSize",null),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],gt.prototype,"returnGeometry",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],gt.prototype,"returnCatalogItems",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],gt.prototype,"returnPixelValues",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],gt.prototype,"maxItemCount",void 0),(0,r._)([(0,p.MZ)({type:tt.A,json:{write:{target:"time"}}})],gt.prototype,"timeExtent",void 0),(0,r._)([(0,d.K)("timeExtent")],gt.prototype,"writeTimeExtent",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],gt.prototype,"raster",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],gt.prototype,"viewId",void 0),(0,r._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],gt.prototype,"processAsMultidimensional",void 0),gt=ht=(0,r._)([(0,m.$)("esri.rest.support.ImageIdentifyParameters")],gt);const wt=gt;var vt=i(22671);let Rt=class extends D.A{constructor(){super(...arguments),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};(0,r._)([(0,p.MZ)({json:{write:!0}})],Rt.prototype,"catalogItemVisibilities",void 0),(0,r._)([(0,p.MZ)({type:vt.A,json:{write:!0}})],Rt.prototype,"catalogItems",void 0),(0,r._)([(0,p.MZ)({type:ye.A,json:{write:!0}})],Rt.prototype,"location",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],Rt.prototype,"name",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],Rt.prototype,"objectId",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],Rt.prototype,"processedValues",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],Rt.prototype,"properties",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],Rt.prototype,"value",void 0),Rt=(0,r._)([(0,m.$)("esri.rest.support.ImageIdentifyResult")],Rt);const _t=Rt;var bt;let St=bt=class extends D.A{constructor(){super(...arguments),this.geometries=null,this.rasterId=null}writeGeometry(e,t,i){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map((e=>e.toJSON()))}}clone(){return new bt({geometries:this.geometries?.map((e=>e.clone()))??[],rasterId:this.rasterId})}};(0,r._)([(0,p.MZ)({type:[ye.A],json:{write:!0}})],St.prototype,"geometries",void 0),(0,r._)([(0,d.K)("geometries")],St.prototype,"writeGeometry",null),(0,r._)([(0,p.MZ)({type:_.jz,json:{write:!0}})],St.prototype,"rasterId",void 0),St=bt=(0,r._)([(0,m.$)("esri.rest.support.ImagePixelLocationParameters")],St);const Mt=St;let At=class extends D.A{constructor(){super(...arguments),this.geometries=null}};(0,r._)([(0,p.MZ)({json:{write:!0}})],At.prototype,"geometries",void 0),At=(0,r._)([(0,m.$)("esri.rest.support.ImagePixelLocationResult")],At);const xt=At;var It;let Ft=It=class extends Oe{constructor(){super(...arguments),this.type="point",this.geometry=null,this.is3D=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=e.toJSON())}get measureOperation(){const{is3D:e,geometry:t}=this;return"point"===t.type?e?"point-3D":"point":e?"centroid-3D":"centroid"}clone(){return new It((0,w.o8)({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,r._)([(0,p.MZ)({types:Fe.yR,json:{name:"fromGeometry",read:ce.rS}})],Ft.prototype,"geometry",void 0),(0,r._)([(0,d.K)("geometry")],Ft.prototype,"writeGeometry",null),(0,r._)([(0,p.MZ)({type:Te.apiValues,json:{read:Te.read,write:Te.write}})],Ft.prototype,"measureOperation",null),(0,r._)([(0,p.MZ)({json:{read:!0}})],Ft.prototype,"is3D",void 0),Ft=It=(0,r._)([(0,m.$)("esri.rest.support.ImagePointParameters")],Ft);const Dt=Ft;let Tt=class extends Ge{constructor(){super(...arguments),this.point=null}};(0,r._)([(0,p.MZ)({type:ye.A,json:{name:"point.value",read:!0,write:!0}})],Tt.prototype,"point",void 0),Tt=(0,r._)([(0,m.$)("esri.rest.support.ImagePointResult")],Tt);const Pt=Tt;var jt=i(34606),Nt=i(51508);let Zt=class extends(a.A.ClonableMixin(D.A)){constructor(){super(...arguments),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,i){t.geometries=e?.length?{geometryType:(0,ce.$B)(e[0]),geometries:e.map((e=>({...e.toJSON(),spatialReference:void 0})))}:null}};(0,r._)([(0,p.MZ)({types:[Fe.yR]})],Zt.prototype,"geometries",void 0),(0,r._)([(0,d.K)("geometries")],Zt.prototype,"writeGeometries",null),(0,r._)([(0,p.MZ)({type:[_.jz],json:{write:!0}})],Zt.prototype,"rasterIds",void 0),(0,r._)([(0,p.MZ)({type:A.A,json:{name:"outSR",write:!0}})],Zt.prototype,"outSpatialReference",void 0),Zt=(0,r._)([(0,m.$)("esri.rest.support.ImageToMapMultirayParameters")],Zt);const Ct=Zt;let Ot=class extends(a.A.ClonableMixin(D.A)){constructor(){super(...arguments),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}};(0,r._)([(0,p.MZ)({types:Fe.yR,json:{read:ce.rS,write:!0}})],Ot.prototype,"geometry",void 0),(0,r._)([(0,d.K)("geometry")],Ot.prototype,"writeGeometry",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],Ot.prototype,"rasterId",void 0),(0,r._)([(0,p.MZ)({type:A.A,json:{name:"outSR",write:!0}})],Ot.prototype,"outSpatialReference",void 0),(0,r._)([(0,p.MZ)({json:{name:"options.DOff",write:!0}})],Ot.prototype,"depthOffset",void 0),(0,r._)([(0,p.MZ)({json:{name:"options.Adjust",write:!0}})],Ot.prototype,"adjust",void 0),Ot=(0,r._)([(0,m.$)("esri.rest.support.ImageToMapParameters")],Ot);const Vt=Ot;let qt=class extends(a.A.ClonableMixin(D.A)){constructor(){super(...arguments),this.referenceUri=null,this.rasterId=null}};(0,r._)([(0,p.MZ)({type:String,json:{name:"uri",write:!0}})],qt.prototype,"referenceUri",void 0),(0,r._)([(0,p.MZ)({type:Number,json:{write:!0}})],qt.prototype,"rasterId",void 0),qt=(0,r._)([(0,m.$)("esri.rest.support.ImageUrlParameters")],qt);const Et=qt;let Jt=class extends D.A{constructor(){super(...arguments),this.url=null}};(0,r._)([(0,p.MZ)({json:{name:"imageURL",write:!0}})],Jt.prototype,"url",void 0),Jt=(0,r._)([(0,m.$)("esri.rest.support.ImageUrlResult")],Jt);const Gt=Jt,Lt=new De.J({0:"constant",1:"plane",2:"minimum",3:"maximum",4:"average"},{useNumericKeys:!0});let $t=class extends(a.A.ClonableMixin(D.A)){constructor(){super(...arguments),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType="plane"}writeGeometries(e,t,i){e?.length&&(t.geometryType=(0,ce.$B)(e[0]),t.geometries=e.map((e=>e.toJSON())))}};(0,r._)([(0,p.MZ)({types:[Fe.yR]})],$t.prototype,"geometries",void 0),(0,r._)([(0,d.K)("geometries")],$t.prototype,"writeGeometries",null),(0,r._)([(0,p.MZ)({type:H.A,json:{write:!0}})],$t.prototype,"mosaicRule",void 0),(0,r._)([(0,p.MZ)({type:ye.A,json:{write:!0}})],$t.prototype,"pixelSize",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],$t.prototype,"constantZ",void 0),(0,r._)([(0,p.MZ)({type:Lt.apiValues,json:{read:Lt.read,write:Lt.write}})],$t.prototype,"baseType",void 0),$t=(0,r._)([(0,m.$)("esri.rest.support.ImageVolumeParameters")],$t);const zt=$t;let Ut=class extends D.A{constructor(){super(...arguments),this.area=null,this.cut=null,this.fill=null,this.maxZ=null,this.minZ=null,this.meanZ=null,this.cutCellCount=null,this.fillCellCount=null}};(0,r._)([(0,p.MZ)({json:{write:!0}})],Ut.prototype,"area",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],Ut.prototype,"cut",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],Ut.prototype,"fill",void 0),(0,r._)([(0,p.MZ)({json:{name:"maxz",write:!0}})],Ut.prototype,"maxZ",void 0),(0,r._)([(0,p.MZ)({json:{name:"minz",write:!0}})],Ut.prototype,"minZ",void 0),(0,r._)([(0,p.MZ)({json:{name:"meanz",write:!0}})],Ut.prototype,"meanZ",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],Ut.prototype,"cutCellCount",void 0),(0,r._)([(0,p.MZ)({json:{write:!0}})],Ut.prototype,"fillCellCount",void 0),Ut=(0,r._)([(0,m.$)("esri.rest.support.ImageVolume")],Ut);const Bt=Ut;let kt=class extends D.A{constructor(){super(...arguments),this.volumes=[]}};(0,r._)([(0,p.MZ)({type:[Bt],json:{write:!0}})],kt.prototype,"volumes",void 0),kt=(0,r._)([(0,m.$)("esri.rest.support.ImageVolumeResult")],kt);const Qt=kt;let Ht=class extends(a.A.ClonableMixin(D.A)){constructor(){super(...arguments),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=JSON.stringify(e))}};(0,r._)([(0,p.MZ)({types:Fe.yR,json:{read:ce.rS,write:!0}})],Ht.prototype,"geometry",void 0),(0,r._)([(0,d.K)("geometry")],Ht.prototype,"writeGeometry",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],Ht.prototype,"rasterId",void 0),(0,r._)([(0,p.MZ)({json:{name:"options.VisibleOnly",write:!0}})],Ht.prototype,"visibleOnly",void 0),Ht=(0,r._)([(0,m.$)("esri.rest.support.MapToImageParameters")],Ht);const Kt=Ht;let Wt=class extends D.A{constructor(){super(...arguments),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),ye.A.fromJSON(e)}};(0,r._)([(0,p.MZ)({types:Fe.yR,json:{name:"Shape",read:ce.rS,write:!0}})],Wt.prototype,"geometry",void 0),(0,r._)([(0,p.MZ)({json:{name:"Length",write:!0}})],Wt.prototype,"length",void 0),(0,r._)([(0,p.MZ)({json:{name:"Area",write:!0}})],Wt.prototype,"area",void 0),(0,r._)([(0,p.MZ)({type:ye.A,json:{name:"Center",write:!0}})],Wt.prototype,"center",void 0),(0,r._)([(0,b.w)("center")],Wt.prototype,"readCenter",null),Wt=(0,r._)([(0,m.$)("esri.rest.support.MeasureAreaFromImageResult")],Wt);const Xt=Wt;var Yt;let ei=Yt=class extends D.A{constructor(){super(...arguments),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}clone(){const e=(0,w.o8)({geometry:this.geometry,rasterId:this.rasterId});return new Yt(e)}};(0,r._)([(0,p.MZ)({types:Fe.yR,json:{name:"fromGeometry",read:ce.rS,write:!0}})],ei.prototype,"geometry",void 0),(0,r._)([(0,d.K)("geometry")],ei.prototype,"writeGeometry",null),(0,r._)([(0,p.MZ)({json:{write:!0}})],ei.prototype,"rasterId",void 0),ei=Yt=(0,r._)([(0,m.$)("esri.rest.support.MeasureFromImageParameters")],ei);const ti=ei;let ii=class extends D.A{constructor(){super(...arguments),this.geometry=null,this.length=null}};(0,r._)([(0,p.MZ)({types:Fe.yR,json:{name:"Shape",read:ce.rS,write:!0}})],ii.prototype,"geometry",void 0),(0,r._)([(0,p.MZ)({json:{name:"Length",write:!0}})],ii.prototype,"length",void 0),ii=(0,r._)([(0,m.$)("esri.rest.support.MeasureLengthFromImageResult")],ii);const ri=ii;function si(e){const t=e?.time;if(t&&(null!=t.start||null!=t.end)){const i=[];null!=t.start&&i.push(t.start),null==t.end||i.includes(t.end)||i.push(t.end),e.time=i.join(",")}}async function ni(e,t,i){t=(0,_.PZ)(ft.A,t);const r=(0,de.Dl)(e),s=t.geometry?[t.geometry]:[],n=await(0,me.el)(s),a=t.toJSON();si(a);const o=n?.[0];null!=o&&(a.geometry=ui(o));const l=(0,de.lF)({...r.query,f:"json",...a});return(0,de.jV)(l,i)}async function ai(e,t,i){t=(0,_.PZ)(wt,t);const r=(0,de.Dl)(e),s=t.geometry?[t.geometry]:[];return(0,me.el)(s).then((e=>{const s=t.toJSON(),n=e?.[0];null!=n&&(s.geometry=JSON.stringify(ui(n)));const a=(0,de.lF)({...r.query,f:"json",...s}),o=(0,de.jV)(a,i);return(0,f.A)(r.path+"/identify",o)})).then((e=>_t.fromJSON(e.data)))}async function oi(e,t,i,r){const s=(0,de.Dl)(e),n=await(0,me.el)(i),a=t.toJSON();null!=n[0]&&(a.fromGeometry=JSON.stringify(ui(n[0]))),null!=n[1]&&(a.toGeometry=JSON.stringify(ui(n[1])));const o=(0,de.lF)({...s.query,f:"json",...a}),l=(0,de.jV)(o,r),{data:u}=await(0,f.A)(s.path+"/measure",l);return u}async function li(e,t,i){t=(0,_.PZ)(ti,t);const r=(0,de.Dl)(e),s=t.toJSON(),n=(0,de.lF)({...r.query,f:"json",...s}),a=(0,de.jV)(n,i),{data:o}=await(0,f.A)(r.path+"/measureFromImage",a);return o}function ui(e){const t=e.toJSON();return e.spatialReference?.imageCoordinateSystem&&(t.spatialReference=pi(e.spatialReference)),t}function pi(e){const{imageCoordinateSystem:t}=e;if(t){const{id:e,referenceServiceName:i}=t;return null!=e?i?{icsid:e,icsns:i}:{icsid:e}:{ics:t}}return e.toJSON()}function ci(e,t){if(!e.imageCoordinateSystem)return(0,x.YX)(e);const i=pi(e),{icsid:r,icsns:s}=i;return null==r||null!=s&&!t?.toLowerCase().includes("/"+s.toLowerCase()+"/")?JSON.stringify(i):`0:${r}`}var mi=i(82371),di=i(20223),yi=i(20615),hi=i(78286),fi=i(99199),gi=i(61956);const wi=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),vi=(0,_.Qp)(_.GB,{min:0,max:255}),Ri=e=>{let t=class extends e{constructor(){super(...arguments),this._functionRasterInfos={},this._serviceSupportsMosaicRule=null,this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.defaultMosaicRule=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalInfo=null,this.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.sourceType=null,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new W({layer:this}))}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){const e=new Map;return!this.rasterFunctionInfos||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.length<1||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.forEach((t=>{e.set(t.name.toLowerCase().replaceAll(/ /gi,"_"),t.name)})),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every((e=>"number"==typeof e)))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,i){null!=e&&"lerc"!==this.format&&(t[i]=e)}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}readDefaultMosaicRule(e,t){return this._serviceSupportsMosaicRule?H.A.fromJSON(t):null}get fieldsIndex(){return this.fields?new Y.A(this.fields):null}set format(e){e&&wi.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter?"lerc":"jpgpng"}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=H.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){const i=e||t.mosaicRule;return i?H.A.fromJSON(i):this._isMosaicRuleSupported(t)?H.A.fromJSON(t):null}writeMosaicRule(e,t,i){const{mosaicRule:r}=this;this._isValidCustomizedMosaicRule(r)&&(t[i]=r.toJSON())}writeNoData(e,t,i){null!=e&&"number"==typeof e&&(t[i]=vi(e))}readObjectIdField(e,t){if(!e){const i=t.fields.find((e=>"esriFieldTypeOID"===e.type||"oid"===e.type));e=i?.name}return e}get parsedUrl(){return(0,R.An)(this.url)}readSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}get renderer(){const{activePresetRendererName:e,presetRenderers:t}=this;if(e){const i=t?.find((({name:t})=>t===e));return i?.renderer.clone()}return this.internalRenderer}set renderer(e){this.activePresetRendererName=null,this.internalRenderer=e}set internalRenderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("internalRenderer",e)}readRenderer(e,t,i){const r=t?.layerDefinition?.drawingInfo?.renderer,s=(0,pe.LF)(r,i);return null==s?null:("vector-field"===s.type&&t.symbolTileSize&&!r.symbolTileSize&&(s.symbolTileSize=t.symbolTileSize),E(s)||c.A.getLogger(this).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),s)}writeRenderer(e,t,i){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON(),"vector-field"===e.type&&(t.symbolTileSize=e.symbolTileSize)}get rasterFields(){const e=this.fields?.map((e=>e.clone()))??[];e.push((0,re.rZ)()),"mosaic-dataset"===this.sourceType&&this.fields?.length&&e.push((0,re.Nd)()),this.version>=10.4&&null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.some((({name:e})=>"none"===e.toLowerCase()))&&e.push((0,re.dy)()),null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.filter((({name:e})=>"none"!==e.toLowerCase())).forEach((({name:t})=>e.push((0,re.nq)(t))));const{rasterInfo:t}=this;if(this._isVectorDataSet()){const i=t?.multidimensionalInfo?.variables[0].unit?.trim(),r=(0,re.DV)(i),s=(0,re.y6)();e.push(r,s)}if(t?.multidimensionalInfo&&"raster-dataset"===this.sourceType){const i=(0,re.AL)(t.multidimensionalInfo);e.push(...i)}const i=t?.attributeTable;if(null!=i){const t=(0,re.jC)(i);e.push(...t)}return e}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=T.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}readRasterFunction(e,t){const i=t.rasterFunctionInfos;return t.renderingRule||i?.length&&"None"!==i[0].name?this._isRFTJson(t.renderingRule)?T.A.fromJSON({rasterFunctionDefinition:t.renderingRule}):T.A.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}readSpatialReference(e,t){const i=e||t.extent.spatialReference;return i?A.A.fromJSON(i):null}writePixelType(e,t,i){null!=this.serviceRasterInfo&&this.pixelType===this.serviceRasterInfo.pixelType||(t[i]=K.e8.toJSON(e))}readVersion(e,t){let i=t.currentVersion;return i||(i=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),i}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let i=e;const{renderer:r,symbolizer:s,pixelFilter:n}=this;if(!this._isPicture()&&r&&s&&!n){await this._updateSymbolizer(s,r);const{bandIds:n}=this;i=await this._symbolize({pixelData:e,bandIds:n,symbolizer:s},t)}return i}destroy(){this._shutdownJobHandler()}async calculateVolume(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsCalculateVolume)throw new o.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,w.o8)(e),this.mosaicRule&&null==e.mosaicRule&&(e.mosaicRule=this.mosaicRule),async function(e,t,i){const r=(t=(0,_.PZ)(zt,t)).toJSON();r.geometries=JSON.stringify(r.geometries);const s=(0,de.Dl)(e),n=(0,de.lF)({...s.query,f:"json",...r}),a=(0,de.jV)(n,i),{data:o}=await(0,f.A)(`${s.path}/calculateVolume`,a);return Qt.fromJSON({volumes:o.results})}(this.url,e,this._getRequestOptions(t))}async computeAngles(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeAngles)throw new o.A("imagery-layer:compute-angles","this operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,_.PZ)(Me,t)).toJSON();null!=r.angleName&&(r.angleName=r.angleName.join(",")),t?.point?.spatialReference?.imageCoordinateSystem&&(r.point.spatialReference=pi(t.point.spatialReference)),t?.spatialReference?.imageCoordinateSystem&&(r.spatialReference=ci(t.spatialReference));const s=(0,de.Dl)(e),n=(0,de.lF)({...s.query,f:"json",...r}),a=(0,de.jV)(n,i),{data:o}=await(0,f.A)(`${s.path}/computeAngles`,a);return o.spatialReference=o.spatialReference?null!=o.spatialReference.geodataXform?new A.A({wkid:0,imageCoordinateSystem:o.spatialReference}):A.A.fromJSON(o.spatialReference):null,"NaN"===o.north&&(o.north=null),"NaN"===o.up&&(o.up=null),new xe(o)}(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputePixelLocation)throw new o.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,_.PZ)(Mt,t)).toJSON(),{geometries:s}=t;if(s)for(let e=0;e<s.length;e++)s[e].spatialReference?.imageCoordinateSystem&&(r.geometries.geometries[e].spatialReference=pi(s[e].spatialReference));const n=(0,de.Dl)(e),a=(0,de.lF)({...n.query,f:"json",...r}),o=(0,de.jV)(a,i),{data:l}=await(0,f.A)(`${n.path}/computePixelLocation`,o);return xt.fromJSON(l)}(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeHistograms)throw new o.A("imagery-layer:compute-histograms","this operation is not supported on the input image service");return e=(0,w.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){const r=await ni(e,t,i),s=(0,de.Dl)(e),{data:n}=await(0,f.A)(`${s.path}/computeHistograms`,r);return{histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeStatisticsHistograms)throw new o.A("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");return e=(0,w.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){const r=await ni(e,t,i),s=(0,de.Dl)(e),{data:n}=await(0,f.A)(`${s.path}/computeStatisticsHistograms`,r),{statistics:a}=n;return a?.length&&a.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation})),{statistics:a,histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async measureHeight(e,t){const i=await this._fetchCapabilities(t?.signal);if(!("base-and-top"===e.operationType?i.mensuration.supportsHeightFromBaseAndTop:"base-and-top-shadow"===e.operationType?i.mensuration.supportsHeightFromBaseAndTopShadow:i.mensuration.supportsHeightFromTopAndTopShadow))throw new o.A("imagery-layer:measure-height","this operation is not supported on the input image service");return e=(0,w.o8)(e),this._applyMosaicRule(e),async function(e,t,i){t=(0,_.PZ)(mt,t);const r=await oi(e,t,[t.fromGeometry,t.toGeometry],i);return yt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureAreaAndPerimeter(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsAreaAndPerimeter||e.is3D&&!i.mensuration.supports3D)throw new o.A("imagery-layer:measure-area-and-perimeter","this operation is not supported on the input image service");return e=(0,w.o8)(e),this._applyMosaicRule(e),async function(e,t,i){t=(0,_.PZ)(Ee,t);const r=await oi(e,t,[t.geometry],i);return $e.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureDistanceAndAngle(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsDistanceAndAngle||e.is3D&&!i.mensuration.supports3D)throw new o.A("imagery-layer:measure-distance-and-angle","this operation is not supported on the input image service");return e=(0,w.o8)(e),this._applyMosaicRule(e),async function(e,t,i){t=(0,_.PZ)(Ke,t);const r=await oi(e,t,[t.fromGeometry,t.toGeometry],i);return Xe.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measurePointOrCentroid(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsPointOrCentroid||e.is3D&&!i.mensuration.supports3D)throw new o.A("imagery-layer:measure-point-or-centroid","this operation is not supported on the input image service");return e=(0,w.o8)(e),this._applyMosaicRule(e),async function(e,t,i){t=(0,_.PZ)(Dt,t);const r=await oi(e,t,[t.geometry],i);return Pt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureLengthFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new o.A("imagery-layer:measure-length-from-image","this operation is not supported on the input image service");if("polyline"!==e.geometry.type)throw new o.A("imagery-layer:measure-length-from-image","this input geometry must be a polyline");return async function(e,t,i){const r=await li(e,t,i);return ri.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureAreaFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new o.A("imagery-layer:measure-area-from-image","this operation is not supported on the input image service");if("polygon"!==e.geometry.type)throw new o.A("imagery-layer:measure-area-from-image","this input geometry must be a polygon");return async function(e,t,i){const r=await li(e,t,i);return Xt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}getField(e){const{fieldsIndex:t}=this;return null!=t?t.get(e):void 0}getFieldDomain(e,t){const i=this.getField(e);return i?i.domain:null}fetchImage(e,t,i,r={}){if((0,g.eO)(c.A.getLogger(this),"`ImageryLayer.fetchImage` is deprecated in favor of 'ImageryLayer.fetchPixels'.",{replacement:"ImageryLayer.fetchPixels",version:"4.33",warnOnce:!0}),null==e||null==t||null==i)throw new o.A("imagery-layer:fetch-image","Insufficient parameters for requesting an image. A valid extent, width and height values are required.");return this.internalFetchImage(e,t,i,r)}async internalFetchImage(e,t,r,s={}){this._updateCurrentRasterInfo();const n=this.getExportImageServiceParameters(e,t,r,s.timeExtent);if(null==n){if(s.requestAsImageElement&&this._canRequestImageElement(this.format)){const e=document.createElement("canvas");return e.width=t,e.height=r,s.returnImageBitmap?{imageBitmap:await(0,ee.m)(e,`${i(this.parsedUrl)}/exportImage`,s.signal)}:{imageOrCanvasElement:e}}const{bandIds:n,rasterInfo:a}=this,o=(n?.length||a.bandCount)??0,l=t*r,u=a.pixelType,p=[];for(let e=0;e<o;e++)p.push(ie.A.createEmptyBand(u,l));return{pixelData:{pixelBlock:new ie.A({width:t,height:r,pixels:p,mask:new Uint8Array(l),pixelType:u}),extent:e}}}const a=!!s.requestAsImageElement&&!this.pixelFilter,o=a&&!!s.returnImageBitmap,l={imageServiceParameters:n,imageProps:{extent:e,width:t,height:r,format:this.format},requestAsImageElement:a,returnImageBitmap:o,signal:s.signal};return this._requestArrayBuffer(l)}async fetchPixels(e,t,i,r={}){await this._initJobHandler(),r.applyRendering&&this._updateCurrentRasterInfo();const s=r.applyRendering?void 0:new W({layer:this,requestRawData:!0,interpolation:r.interpolation??"nearest",bandIds:r.bandIds??[]}),n=this.getExportImageServiceParameters(e,t,i,r.timeExtent,s);if(null==n)return{extent:e,pixelBlock:null};delete n.pixelType,delete n.bandIds,delete n.compressionQuality;const a={imageServiceParameters:n,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:!1,returnImageBitmap:!1,signal:r.signal},{pixelData:o}=await this._requestArrayBuffer(a);return o??{extent:e,pixelBlock:null}}fetchKeyProperties(e){return(0,f.A)(i(this.parsedUrl)+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then((e=>e.data))}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new o.A("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,f.A)(i(this.parsedUrl)+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then((e=>vt.A.fromJSON(e.data)))}getCatalogItemRasterInfo(e,t){const r={...t,query:this._getQueryParams()};return async function(e,t,i){const r=(0,de.Dl)(e),s=(0,de.lF)({...r?.query,f:"json"}),n=(0,de.jV)(s,i),a=`${r?.path}/${t}/info`,o=(0,f.A)(`${a}`,n),l=(0,f.A)(`${a}/keyProperties`,n),u=await Promise.allSettled([o,l]),p="fulfilled"===u[0].status?u[0].value.data:null,c="fulfilled"===u[1].status?u[1].value.data:null;let m=null;p.statistics?.length&&(m=p.statistics.map((e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]}))));const d=S.A.fromJSON(p.extent),y=Math.ceil(d.width/p.pixelSizeX-.1),h=Math.ceil(d.height/p.pixelSizeY-.1),g=d.spatialReference,w=new ye.A({x:p.pixelSizeX,y:p.pixelSizeY,spatialReference:g}),v=p.histograms?.length?p.histograms:null,R=new di.A({origin:p.origin,blockWidth:p.blockWidth,blockHeight:p.blockHeight,firstPyramidLevel:p.firstPyramidLevel,maximumPyramidLevel:p.maxPyramidLevel});return new se.A({width:y,height:h,bandCount:p.bandCount,extent:d,spatialReference:g,pixelSize:w,pixelType:p.pixelType.toLowerCase(),statistics:m,histograms:v,keyProperties:c,storageInfo:R})}(i(this.parsedUrl),e,r)}async getCatalogItemICSInfo(e,t){const{data:r}=await(0,f.A)(i(this.parsedUrl)+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),s=r?.ics;if(!s)return;let n=null;try{n=(await(0,f.A)(i(this.parsedUrl)+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!n?.spatialReference)return{ics:s,icsToPixelTransform:null,icsExtent:null,northDirection:null};const a=this.version>=10.7?(0,f.A)(i(this.parsedUrl)+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then((e=>e.data)).catch((()=>({}))):{},o=n.spatialReference,l={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),inSR:(0,x.YX)(o),outSR:"0:"+e},u=(0,f.A)(i(this.parsedUrl)+"/project",{query:this._getQueryParams(l),...t}).then((e=>e.data)).catch((()=>({}))),p=(n.xmin+n.xmax)/2,c=(n.ymax-n.ymin)/6,m=n.ymin+c,d=[];for(let e=0;e<5;e++)d.push({x:p,y:m+c*e});const y={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:(0,x.YX)(o),outSR:"0:"+e},h=(0,f.A)(i(this.parsedUrl)+"/project",{query:this._getQueryParams(y),...t}).then((e=>e.data)).catch((()=>({}))),g=await Promise.all([a,u,h]);let w=g[0].ipxf;if(null==w){const e=s.geodataXform?.xf_0;"topup"===e?.name?.toLowerCase()&&6===e?.coefficients?.length&&(w={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}const v=S.A.fromJSON(g[1]?.geometries?.[0]);v&&(v.spatialReference=new A.A({wkid:0,imageCoordinateSystem:s}));const R=g[2].geometries?g[2].geometries.filter((e=>null!=e?.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y)):[],_=R.length;if(_<3)return{ics:s,icsToPixelTransform:w,icsExtent:v,northDirection:null};let b=0,M=0,I=0,F=0;for(let e=0;e<_;e++)b+=R[e].x,M+=R[e].y,I+=R[e].x*R[e].x,F+=R[e].x*R[e].y;const D=(_*F-b*M)/(_*I-b*b);let T=0;const P=R[4].x>R[0].x,j=R[4].y>R[0].y;return D===1/0?T=j?90:270:0===D?T=P?0:180:D>0?T=P?180*Math.atan(D)/Math.PI:180*Math.atan(D)/Math.PI+180:D<0&&(T=j?180+180*Math.atan(D)/Math.PI:360+180*Math.atan(D)/Math.PI),{ics:s,icsToPixelTransform:w,icsExtent:v,northDirection:T}}async generateRasterInfo(e,t){e=(0,_.PZ)(T.A,e);const r={...t,query:this._getQueryParams()};if(!e||"none"===e.functionName?.toLowerCase()||this._isVectorFieldResampleFunction(e))return this.serviceRasterInfo??(0,mi.Tw)(i(this.parsedUrl),this.sourceJSON,r);const s=function(e){const t=JSON.stringify(e),i=t.includes('"rasterFunctionDefinition":{'),r=i?t.match(/"type":"(.*?FunctionArguments")/gi):t.match(/"rasterFunction":"(.*?")/gi),s=r?.map((e=>i?e.slice(8,-18):e.slice(18,-1)));return s?s.join("/"):null}(e);if(!s)throw new o.A("imagery-layer:generate-raster-info","the rendering rule is not supported");if(this._functionRasterInfos[s])return this._functionRasterInfos[s];const n=(0,mi.X6)(i(this.parsedUrl),e,r);this._functionRasterInfos[s]=n;try{return await n}catch(e){throw this._functionRasterInfos[s]=null,e}}getExportImageServiceParameters(e,t,r,s,n){const a=ci((e=e.clone().shiftCentralMeridian()).spatialReference,i(this.parsedUrl));n??=this.exportImageServiceParameters;const o=n.toJSON(),{bandIds:l,noData:u}=o;let{renderingRule:p}=o;const c=this.rasterFunction?.rasterFunctionDefinition,m=this.renderer?.type,d=!m||"raster-stretch"===m||"raster-colormap"===m||"unique-value"===m||"class-breaks"===m||"raster-shaded-relief"===m;if(l?.length&&this._hasRasterFunction(this.rasterFunction)&&!c&&d){const e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:l}};if("Stretch"===p.rasterFunction)e.rasterFunctionArguments.Raster=p.rasterFunctionArguments.Raster,p.rasterFunctionArguments.Raster=e;else if("Colormap"===p.rasterFunction){const t=p.rasterFunctionArguments.Raster;"Stretch"===t?.rasterFunction?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,p.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=p,p=e;o.bandIds=void 0}else o.bandIds=l?.join(",");Array.isArray(u)&&u.length>0&&(o.noData=u.join(","));const y=this._processMultidimensionalIntersection(null,s,n.mosaicRule);if(y.isOutSide)return null;o.mosaicRule=null!=y.mosaicRule?JSON.stringify(y.mosaicRule):null,s=y.timeExtent,o.renderingRule=this._getRenderingRuleString(T.A.fromJSON(p));const h={};if(null!=s){const{start:e,end:t}=s.toJSON();e&&t&&e===t?h.time=""+e:null==e&&null==t||(h.time=`${e??"null"},${t??"null"}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:a,imageSR:a,size:t+","+r,...o,...h}}async getSamples(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i?.operations.supportsGetSamples)throw new o.A("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,w.o8)(e);const{raster:r}=this;return r&&null==e.raster&&(e.raster=r),async function(e,t,i){const r=(t=(0,_.PZ)(jt.A,t)).toJSON();si(r),r.outFields?.length&&(r.outFields=r.outFields.join(","));const s=await(0,me.el)(t.geometry),n=s?.[0];null!=n&&(r.geometry=ui(n));const a=(0,de.Dl)(e),o=(0,de.lF)({...a.query,f:"json",...r}),l=(0,de.jV)(o,i),{data:u}=await(0,f.A)(`${a.path}/getSamples`,l),p=u.samples.map((e=>{const t="NaN"===e.value||""===e.value?null:e.value.split(" ").map((e=>Number(e)));return{...e,pixelValue:t}}));return Nt.A.fromJSON({samples:p})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsIdentify)throw new o.A("imagery-layer:identify","identify operation is not supported on the input image service");e=(0,w.o8)(e),this.version<10.91&&"extent"===e.geometry?.type&&(e.geometry=M.A.fromExtent(e.geometry));const i=this._processMultidimensionalIntersection(e.geometry,e.timeExtent,e.mosaicRule||this.mosaicRule);if(i.isOutSide)throw new o.A("imagery-layer:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");e.timeExtent=i.timeExtent,e.mosaicRule=i.mosaicRule;const{raster:r,rasterFunction:s}=this;return s&&null==e.rasterFunction&&(e.rasterFunction=s),r&&null==e.raster&&(e.raster=r),ai(this.url,e,this._getRequestOptions(t))}async imageToMap(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMap)throw new o.A("imagery-layer:image-to-map","imageToMap operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,_.PZ)(Vt,t)).toJSON();t.geometry.spatialReference.imageCoordinateSystem&&(r.geometry=ui(t.geometry)),t.depthOffset&&t.adjust||delete r.options;const s=(0,de.Dl)(e),n=(0,de.lF)({...s.query,f:"json",...r}),a=(0,de.jV)(n,i),{data:o}=await(0,f.A)(`${s.path}/imageToMap`,a);return(0,ce.rS)(o)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async imageToMapMultiray(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMapMultiray)throw new o.A("imagery-layer:image-to-map-multiray","imageToMapMultiray operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,_.PZ)(Ct,t)).toJSON();t.rasterIds?.length&&(r.rasterIds=t.rasterIds.join(","));const s=(0,de.Dl)(e),n=(0,de.lF)({...s.query,f:"json",...r}),a=(0,de.jV)(n,i),{data:o}=await(0,f.A)(`${s.path}/imageToMapMultiray`,a);return(0,ce.rS)(o)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async mapToImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMapToImage)throw new o.A("imagery-layer:map-to-image","mapToImage operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,_.PZ)(Kt,t)).toJSON(),s=await(0,me.el)(t.geometry),n=s?.[0];null!=n&&(r.geometry=ui(n)),t.visibleOnly||delete r.options;const a=n?.spatialReference??t.geometry?.spatialReference;a&&(r.inSR=ci(a));const o=(0,de.Dl)(e),l=(0,de.lF)({...o.query,f:"json",...r}),u=(0,de.jV)(l,i),{data:p}=await(0,f.A)(`${o.path}/mapToImage`,u);return(0,ce.rS)(p)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async findImages(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsFindImages)throw new o.A("imagery-layer:find-images","findImages operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,_.PZ)(fe,t)).toJSON(),s=await(0,me.el)([t.fromGeometry,t.toGeometry]);null!=s[0]&&(r.fromGeometry=ui(s[0]),s[0].spatialReference&&(r.inSR=ci(s[0].spatialReference))),null!=s[1]&&(r.toGeometry=ui(s[1])),t.objectIds?.length&&(r.objectIds=r.objectIds.join(","));const n=(0,de.Dl)(e),a=(0,de.lF)({...n.query,f:"json",...r}),o=(0,de.jV)(a,i),{data:l}=await(0,f.A)(`${n.path}/find`,o);return _e.fromJSON(l)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async getImageUrl(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsGetImageUrl)throw new o.A("imagery-layer:get-image-url","getImageUrl operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,_.PZ)(Et,t)).toJSON(),s=(0,de.Dl)(e),n=(0,de.lF)({...s.query,f:"json",...r}),a=(0,de.jV)(n,i),{data:o}=await(0,f.A)(`${s.path}/getImageUrl`,a);return Gt.fromJSON(o)}(i(this.parsedUrl),e,this._getRequestOptions(t))}createQuery(){return new gi.A({outFields:["*"],returnGeometry:!0,where:this.definitionExpression||"1=1"})}async queryBoundary(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryBoundary)throw new o.A("imagery-layer:query-boundary","queryBoundary operation is not supported on the input image service");return e=e??{outSpatialReference:this.spatialReference},async function(e,t,i){t=(0,_.PZ)(Ue,t);const r=(0,de.Dl)(e),s=t.toJSON();t.outSpatialReference&&(s.outSR=ci(t.outSpatialReference));const n=(0,de.lF)({...r.query,f:"json",...s}),a=(0,de.jV)(n,i),{data:o}=await(0,f.A)(r.path+"/queryBoundary",a);return ke.fromJSON(o)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasters(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,fi.s)(this.url,e,t)}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,hi.V)(this.url,e,t)}async queryGPSInfo(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryGPSInfo)throw new o.A("imagery-layer:query-gps-info","queryGPSInfo operation is not supported on the input image service");return e=e??{where:"1=1"},async function(e,t,i){const r=(t=(0,_.PZ)(rt,t)).toJSON();si(r),r.objectIds?.length&&(r.objectIds=r.objectIds.join(",")),r.geometry||r.objectIds||r.time||r.where||(r.where="1=1");const s=await(0,me.el)(t.geometry),n=s?.[0];null!=n&&(r.geometry=ui(n));const a=n?.spatialReference??t.geometry?.spatialReference;a&&(r.inSR=ci(a));const o=(0,de.Dl)(e),l=(0,de.lF)({...o.query,f:"json",...r}),u=(0,de.jV)(l,i),{data:p}=await(0,f.A)(`${o.path}/queryGPSInfo`,u);return ut.fromJSON(p)}(i(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,yi.I)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new o.A("imagery-layer: query-visible-rasters","missing query parameter");await this.load();const{pixelSize:i,returnDomainValues:r,returnTopmostRaster:n,showNoDataRecords:a}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1};let l=!1,u=null,p=null;const c=re.F_.servicePixelValue.toLowerCase(),m=this._rasterFunctionNamesIndex;if(null!=e.outFields&&(l=e.outFields.some((e=>!e.toLowerCase().startsWith(c))),this.version>=10.4)){const t=e.outFields.filter((e=>e.toLowerCase().startsWith(c)&&e.length>c.length)).map((e=>{const t=e.slice(c.length+1);return[this._updateRenderingRulesFunctionName(t,m),t]}));u=t.map((e=>new T.A({functionName:e[0]}))),p=t.map((e=>e[1]));const{rasterFunction:i}=this;0===u.length?i?.functionName?(u.push(i),p.push(i.functionName)):u=null:i?.functionName&&!u.some((e=>e.functionName===i.functionName))&&(u.push(i),p.push(i.functionName))}const d=null==e.outSpatialReference||e.outSpatialReference.equals(this.spatialReference),{multidimensionalSubset:y}=this;let h=e.timeExtent||this.timeExtent;if(y){const{isOutside:t,intersection:i}=(0,ne.Rp)(y,{geometry:e.geometry,timeExtent:e.timeExtent,multidimensionalDefinition:this.exportImageServiceParameters.mosaicRule?.multidimensionalDefinition});if(t)throw new o.A("imagery-layer:query-visible-rasters","the request cannot be fulfilled when falling outside of the multidimensional subset");null!=i?.timeExtent&&(h=i.timeExtent)}const f=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,h);let g=e.geometry;this.version<10.91&&"extent"===g?.type&&(g=M.A.fromExtent(g));const w=this._getQueryParams({geometry:g,timeExtent:h,mosaicRule:f,rasterFunction:this.version<10.4?this.rasterFunction:null,rasterFunctions:u,pixelSize:i,returnCatalogItems:l,returnGeometry:d,raster:this.raster,maxItemCount:n?1:null});delete w.f;const v=new wt(w);try{await this._generateRasterInfo(this.rasterFunction);const i=await ai(this.url,v,{signal:t?.signal,query:{...this.customParameters}}),s=e.outFields,n=null!=i.value&&i.value.toLowerCase().includes("nodata"),o=l&&!d&&i?.catalogItems?.features.length&&(a||!n),u=this.multidimensionalInfo&&"raster-dataset"===this.sourceType?(0,ne.XU)({rasterInfo:this.rasterInfo,multidimensionalDefinition:f?.multidimensionalDefinition,timeExtent:h,multidimensionalSubset:this.multidimensionalSubset}):null;if(!o)return this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:p,showNoDataRecords:a,templateFields:s,effectiveMultidimensionalDefinition:u});const c=this.objectIdField||"ObjectId",m=i.catalogItems?.features??[],y=m.map((e=>e.attributes?.[c])),g=new gi.A({objectIds:y,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[c]}),w=await this.queryRasters(g);return w?.features?.length&&w.features.forEach((t=>{m.forEach((i=>{i.attributes[c]===t.attributes[c]&&t.geometry&&(i.geometry=t.geometry.clone(),null!=e.outSpatialReference&&(i.geometry.spatialReference=e.outSpatialReference))}))})),this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:p,showNoDataRecords:a,templateFields:s,effectiveMultidimensionalDefinition:u})}catch{throw new s("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){const r=(0,f.A)(i(this.parsedUrl)+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then((e=>e.data?.statistics)),s=(0,f.A)(i(this.parsedUrl)+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then((e=>e.data?.histograms)),n=await Promise.all([r,s]);return n[0]&&n[0].forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation})),{statistics:n[0]||null,histograms:n[1]||null}}getMultidimensionalSubsetVariables(e){const t=e??this.serviceRasterInfo.multidimensionalInfo;return(0,ne.z2)(this.multidimensionalSubset,t)}async _fetchService(e){await this._fetchServiceInfo(e),this.rasterInfo||(this.rasterInfo=this.serviceRasterInfo);const t=this.sourceJSON,r=null!=this.serviceRasterInfo?Promise.resolve(this.serviceRasterInfo):(0,mi.Tw)(i(this.parsedUrl),t,{signal:e,query:this._getQueryParams()}).then((e=>(this._set("serviceRasterInfo",e),this._set("multidimensionalInfo",e.multidimensionalInfo),(0,mi.E9)(e,t),e))),s=this._hasRasterFunction(this.rasterFunction)?this._generateRasterInfo(this.rasterFunction,{signal:e}):null,n=this._getRasterFunctionInfos();return Promise.all([r,s,n]).then((e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&this._set("rasterFunctionInfos",e[2]),this.internalRenderer&&!this._isSupportedRenderer(this.internalRenderer)&&(this._set("internalRenderer",null),c.A.getLogger(this).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._set("internalRenderer",this._configRenderer(this.renderer)),this.addHandles([(0,v.wB)((()=>this.rasterFunction),(e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this._generateRasterInfo(e).then((e=>{e&&(this.rasterInfo=e)}))}))]);const{serviceRasterInfo:t}=this;null!=t.multidimensionalInfo&&this._updateMultidimensionalDefinition(t)}))}_combineMosaicRuleWithTimeExtent(e,t){const i=this.timeInfo,{multidimensionalInfo:r}=this.serviceRasterInfo;if(null==e||null==r||null==t||null==i?.startField)return e;const{startField:s}=i,n=r.variables.some((e=>e.dimensions.some((e=>e.name===s))))?s:"StdTime";if(e=e.clone(),"mosaic-dataset"===this.sourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter((e=>e.dimensionName!==n)),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];const a=e.multidimensionalDefinition.filter((e=>e.dimensionName===n)),o=null!=t.start?t.start.getTime():null,l=null!=t.end?t.end.getTime():null,u=null==o||null==l||o===l,p=u?[o||l]:[[o,l]],c=this.version>=10.8;if(a.length)a.forEach((e=>{e.dimensionName===n&&(c?(e.dimensionName=null,e.isSlice=!1,e.values=[]):(e.isSlice=u,e.values=p))}));else if(!c){const t=e.multidimensionalDefinition.filter((e=>null!=e.variableName&&null==e.dimensionName));t.length?t.forEach((e=>{e.dimensionName=n,e.isSlice=u,e.values=p})):e.multidimensionalDefinition.push(new F.A({variableName:"",dimensionName:n,isSlice:u,values:p}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return null==e?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter((e=>!(!e.variableName&&!e.dimensionName))),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this.sourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQuery)throw new o.A("imagery-layer:query-rasters","query operation is not supported on the input image service");return e=null!=e?(0,_.PZ)(gi.A,e):this.createQuery(),t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:e,requestOptions:t}}_isSupportedRenderer(e){const{rasterInfo:t,rasterFunction:i}=this;return"unique-value"===e.type&&this._hasRasterFunction(i)&&1===t?.bandCount&&["u8","s8"].includes(t.pixelType)||null!=t&&null!=e&&(0,le.fp)(t).includes(e.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){let t=this.sourceJSON;if(!t){const{data:r,ssl:s}=await(0,f.A)(i(this.parsedUrl),{query:this._getQueryParams(),signal:e});t=r,this.sourceJSON=t,s&&(this.url=this.url.replace(/^http:/i,"https:"))}if(t.capabilities?.toLowerCase().split(",").map((e=>e.trim())).indexOf("tilesonly")>-1)throw new o.A("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(t,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){if(!e)return!1;const t=this._isMosaicDataset(e),i=e.currentVersion>=10.71&&e.hasMultidimensions&&!(e.fields?.length>1);return t||i}_isVectorFieldResampleFunction(e){if(null==e)return!1;const{functionName:t,functionArguments:i}=e,r="resample"===t?.toLowerCase(),s=i?.ResampleType||i?.resampleType;return r&&(7===s||10===s)}_isPicture(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}_configRenderer(e){const t=this._isPicture(),{rasterInfo:i}=this;if(!t&&!this.pixelFilter||this._isVectorDataSet()){const t=this.mosaicRule?.multidimensionalDefinition?.[0].variableName,r=(0,le.I8)({variableName:t,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&i.bandCount>=3){const e=r?.bandIds??(0,le.ci)(i);!e||3===i.bandCount&&0===e[0]&&1===e[1]&&2===e[2]||(this.bandIds=e)}e||(e=r?.renderer??(0,le.PD)(i,{bandIds:this.bandIds,variableName:this.rasterFunction?null:t}));const s=(0,le.$P)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=s,this.symbolizer.rasterInfo=i):this.symbolizer=new ue.A({rendererJSON:s,rasterInfo:i}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:null!=e.pixelBlock?e.pixelBlock.clone():null}}_getQueryParams(e){null!=e?.renderingRule&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));const{raster:t,viewId:i}=this;return{raster:t,viewId:i,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,i){return this._rasterJobHandler?this._rasterJobHandler.decode({data:e,options:t}):(0,ae.D)(e,t,i)}async _getRasterFunctionInfos(e){const t=this.sourceJSON.rasterFunctionInfos;if(this.loaded)return t;if(t&&this.version>=10.3){if(1===t.length&&"none"===t[0].name.toLowerCase())return t;const r=await(0,f.A)(i(this.parsedUrl)+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e});return r.data?.rasterFunctionInfos}return null}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}async _requestArrayBuffer(e){const{imageProps:t,requestAsImageElement:r,returnImageBitmap:s,signal:n}=e;if(r&&this._canRequestImageElement(t.format)){const r=`${i(this.parsedUrl)}/exportImage`,{data:a}=await(0,f.A)(r,{responseType:s?"blob":"image",query:this._getQueryParams({f:"image",...this.refreshParameters,...e.imageServiceParameters}),signal:n});return a instanceof Blob?{imageBitmap:await(0,ee.m)(a,r,n),params:t}:{imageOrCanvasElement:a,params:t}}const a=this._initJobHandler(),l=(0,f.A)(i(this.parsedUrl)+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:n}),u=(await Promise.all([l,a]))[0].data,p=t.format||"jpgpng";let c=p;if("bsq"!==c&&"bip"!==c&&(c=(0,ae.g)(u)),!c)throw new o.A("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(u)));const m={signal:n},d="gif"===p||"bmp"===p||p.includes("png")&&("png"===c||"jpg"===c)?(0,ae.D)(u,{useCanvas:!0,...t},m):this._decodePixelBlock(u,{width:t.width,height:t.height,planes:null,pixelType:null,noDataValue:null,format:p},m);return{pixelData:{pixelBlock:await d,extent:t.extent},params:t}}_generateRasterInfo(e,t){return this.generateRasterInfo(e,t).catch((()=>null))}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this.defaultMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;let t=(0,ne.fy)(e,{multidimensionalSubset:this.multidimensionalSubset});if(null!=t&&t.length>0){this.mosaicRule=this.mosaicRule||new H.A;const e=this.mosaicRule.multidimensionalDefinition;!this.sourceJSON.defaultVariableName&&this.rasterFunction&&"none"!==this.rasterFunction.functionName?.toLowerCase()&&t.forEach((e=>e.variableName="")),t=t.filter((({variableName:e,dimensionName:t})=>e&&"*"!==e||t)),!e?.length&&t.length&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t=t||{};const i=e.value,{templateRRFunctionNames:r,showNoDataRecords:s,returnDomainValues:n,templateFields:a}=t,o=e.processedValues;let l=e.catalogItems?.features,u=e.properties?.Values?.map((e=>e.replaceAll(/ /gi,", ")))||[];const p=this.objectIdField||"ObjectId",c="string"==typeof i&&i.toLowerCase().includes("nodata"),m=[];if(i&&!l&&(!c||s)){const e={};e[p]=0,u=[i],l=[new h.A({geometry:this.fullExtent,attributes:e})],this.multidimensionalInfo&&"raster-dataset"===this.sourceType&&(0,re.eS)(this.rasterFields,e,t.effectiveMultidimensionalDefinition)}if(!l)return[];this._updateResponseFieldNames(l,a),c&&!s&&(l=[]);const{itemPixelValue:d,servicePixelValue:y}=re.F_,f=this.rasterFields.some((e=>e.name===d));for(let e=0;e<l.length;e++){const t=l[e];if(null!=i){const n=u[e],a=this.rasterFunction&&o&&o.length>0&&r&&r.length>0&&r.includes(this.rasterFunction.functionName)?o[r.indexOf(this.rasterFunction.functionName)]:i;if("nodata"===n.toLowerCase()&&!s)continue;f&&(t.attributes[d]=n),t.attributes[y]=a,this._updateFeatureWithMagDirValues(t,n);const l=this.fields&&this.fields.length>0;let p=this.rasterFunction&&null!=this.serviceRasterInfo.attributeTable?l?n:i:a;this.rasterFunction||(p=l?n:i),this._updateFeatureWithRasterAttributeTableValues(t,p)}if(t.sourceLayer=t.layer=this,n&&this._updateFeatureWithDomainValues(t),r&&o&&r.length===o.length)for(let e=0;e<r.length;e++){const i=`${re.F_.servicePixelValue}.${r[e]}`;t.attributes[i]=o[e]}m.push(l[e])}return m}_processMultidimensionalIntersection(e,t,i){const{multidimensionalSubset:r}=this;if(!r)return{isOutSide:!1,timeExtent:t,mosaicRule:i=this._combineMosaicRuleWithTimeExtent(i,t)};if(r){const{isOutside:i,intersection:s}=(0,ne.Rp)(r,{geometry:e,timeExtent:t});if(i)return{isOutSide:!0,timeExtent:null,mosaicRule:null};null!=s?.timeExtent&&(t=s.timeExtent)}if(i=this._combineMosaicRuleWithTimeExtent(i,t),i?.multidimensionalDefinition){const{isOutside:e}=(0,ne.Rp)(r,{multidimensionalDefinition:i.multidimensionalDefinition});if(e)return{isOutSide:!0,timeExtent:null,mosaicRule:null}}return{isOutSide:!1,timeExtent:t,mosaicRule:i}}_updateFeatureWithRasterAttributeTableValues(e,t){const i=this.rasterInfo.attributeTable||this.serviceRasterInfo.attributeTable;if(null==i)return;const{features:r,fields:s}=i,n=s.map((e=>e.name)).find((e=>"value"===e.toLowerCase()));if(!n)return;const a=r.filter((e=>e.attributes[n]===(null!=t?parseInt(t,10):null)));a&&a[0]&&s.forEach((t=>{const i=re.ER+t.name;e.attributes[i]=a[0].attributes[t.name]}))}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;const i=t.split(/,\s*/).map((e=>parseFloat(e))),r=i.map((e=>[e])),s=i.map((e=>({minValue:e,maxValue:e,noDataValue:null}))),n=new ie.A({height:1,width:1,pixelType:"f32",pixels:r,statistics:s});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:n,extent:new S.A(0,0,0,0,this.spatialReference)});const a="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[n.pixels[0][0],n.pixels[1][0]]:(0,oe.Lu)([n.pixels[0][0],n.pixels[1][0]]);e.attributes[re.F_.magnitude]=a[0],e.attributes[re.F_.direction]=a[1]}_updateFeatureWithDomainValues(e){const t=this.fields&&this.fields.filter((e=>e.domain&&"coded-value"===e.domain.type));null!=t&&t.forEach((t=>{const i=e.attributes[t.name];if(null!=i){const r=t.domain.codedValues.find((e=>e.code===i));r&&(e.attributes[t.name]=r.name)}}))}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;const i=this.fieldsIndex;null!=i&&e.forEach((e=>{if(e?.attributes)for(const r of t){const t=i.get(r)?.name;t&&t!==r&&(e.attributes[r]=e.attributes[t],delete e.attributes[t])}}))}_getRenderingRuleString(e){if(e){let t=e.toJSON();return t=t.rasterFunctionDefinition??t,(t.thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRasterFunction(e){return null!=e?.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");const i=e.toLowerCase().replaceAll(/ /gi,"_");return t.has(i)?t.get(i):e}_isRFTJson(e){return e?.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_applyMosaicAndRenderingRules(e){const{raster:t,mosaicRule:i,rasterFunction:r}=this;r&&null==e.rasterFunction&&(e.rasterFunction=r),i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}async _updateCurrentRasterInfo(e){if(this.renderer||this.symbolizer){const t=await this._generateRasterInfo(this.rasterFunction,{signal:e});t&&(this.rasterInfo=t)}}_applyMosaicRule(e){const{raster:t,mosaicRule:i}=this;i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}_readCapabilities(e){const t=e.capabilities?e.capabilities.toLowerCase().split(",").map((e=>e.trim())):["image","catalog"],{currentVersion:i,advancedQueryCapabilities:r,maxRecordCount:s}=e,n=t.includes("image"),a="esriImageServiceDataTypeElevation"===e.serviceDataType,o=!(!e.spatialReference&&!e.extent?.spatialReference),l=t.includes("edit"),u=t.includes("mensuration")&&o,p=null==e.mensurationCapabilities?[]:e.mensurationCapabilities.toLowerCase().split(",").map((e=>e.trim())),c=u&&p.includes("basic"),m=this._isMosaicDataset(e)&&t.includes("catalog"),d=t.includes("download"),y=i>=10.7&&a||i>=11.4&&(a||u&&p.includes("3d"));return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:n,supportsExportImage:n,supportsIdentify:n,supportsImageToMap:i>=11.2&&m,supportsImageToMapMultiray:i>=11.2&&m,supportsMapToImage:i>=11.2&&m,supportsFindImages:i>=11.2&&m,supportsGetImageUrl:i>=11.3&&d,supportsMeasure:u,supportsMeasureFromImage:i>=11.2,supportsDownload:d,supportsQuery:m&&e.fields&&e.fields.length>0,supportsGetSamples:i>=10.2&&n,supportsProject:i>=10.3&&n,supportsComputeStatisticsHistograms:i>=10.4&&n,supportsQueryBoundary:i>=10.6&&n,supportsCalculateVolume:y,supportsComputePixelLocation:i>=10.7&&m,supportsComputeAngles:i>=10.91,supportsQueryGPSInfo:i>=11.2&&m,supportsAdd:l,supportsDelete:l,supportsEditing:l,supportsUpdate:l,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:s,maxRecordCountFactor:void 0,supportsStatistics:!!r?.supportsStatistics,supportsOrderBy:!!r?.supportsOrderBy,supportsDistinct:!!r?.supportsDistinct,supportsPagination:!!r?.supportsPagination,supportsStandardizedQueriesOnly:!!r?.useStandardizedQueries,supportsPercentileStatistics:!!r?.supportsPercentileStatistics,supportsCentroid:!!r?.supportsReturningGeometryCentroid,supportsCurrentUser:!1,supportsDistance:!!r?.supportsQueryWithDistance,supportsExtent:!!r?.supportsReturningQueryExtent,supportsGeometryProperties:!!r?.supportsReturningGeometryProperties,supportsHavingClause:!!r?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:!1,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!r?.supportsDefaultSR,supportsFullTextSearch:!1,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},mensuration:{supportsDistanceAndAngle:c,supportsAreaAndPerimeter:c,supportsPointOrCentroid:c,supportsHeightFromBaseAndTop:u&&p.includes("base-top height"),supportsHeightFromBaseAndTopShadow:u&&p.includes("base-top shadow height"),supportsHeightFromTopAndTopShadow:u&&p.includes("top-top shadow height"),supports3D:u&&p.includes("3d")}}}};function i(e){return e?.path??""}return(0,r._)([(0,p.MZ)({clonable:!1})],t.prototype,"_functionRasterInfos",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],t.prototype,"_serviceSupportsMosaicRule",void 0),(0,r._)([(0,b.w)("_serviceSupportsMosaicRule",["currentVersion","fields"])],t.prototype,"readServiceSupportsMosaicRule",null),(0,r._)([(0,p.MZ)({readOnly:!0})],t.prototype,"_rasterFunctionNamesIndex",null),(0,r._)([(0,p.MZ)()],t.prototype,"adjustAspectRatio",void 0),(0,r._)([(0,p.MZ)({type:[_.jz],json:{write:!0}})],t.prototype,"bandIds",void 0),(0,r._)([(0,b.w)("bandIds")],t.prototype,"readBandIds",null),(0,r._)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],t.prototype,"capabilities",void 0),(0,r._)([(0,b.w)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],t.prototype,"readCapabilities",null),(0,r._)([(0,p.MZ)({type:Number})],t.prototype,"compressionQuality",void 0),(0,r._)([(0,d.K)("compressionQuality")],t.prototype,"writeCompressionQuality",null),(0,r._)([(0,p.MZ)({type:Number})],t.prototype,"compressionTolerance",void 0),(0,r._)([(0,d.K)("compressionTolerance")],t.prototype,"writeCompressionTolerance",null),(0,r._)([(0,p.MZ)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,r._)([(0,p.MZ)({readOnly:!0,dependsOn:["_serviceSupportsMosaicRule"]})],t.prototype,"defaultMosaicRule",void 0),(0,r._)([(0,b.w)("defaultMosaicRule",["defaultMosaicMethod"])],t.prototype,"readDefaultMosaicRule",null),(0,r._)([(0,p.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],t.prototype,"definitionExpression",void 0),(0,r._)([(0,p.MZ)({readOnly:!0,constructOnly:!0})],t.prototype,"exportImageServiceParameters",void 0),(0,r._)([(0,p.MZ)()],t.prototype,"rasterInfo",void 0),(0,r._)([(0,p.MZ)({readOnly:!0,type:[X.A]})],t.prototype,"fields",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],t.prototype,"fieldsIndex",null),(0,r._)([(0,p.MZ)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff","bip","bsq"],json:{write:!0}})],t.prototype,"format",null),(0,r._)([(0,b.w)("service","format",["serviceDataType"])],t.prototype,"readFormat",null),(0,r._)([(0,p.MZ)({type:S.A})],t.prototype,"fullExtent",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],t.prototype,"hasMultidimensions",void 0),(0,r._)([(0,p.MZ)({json:{read:{source:"maxImageHeight"}}})],t.prototype,"imageMaxHeight",void 0),(0,r._)([(0,p.MZ)({json:{read:{source:"maxImageWidth"}}})],t.prototype,"imageMaxWidth",void 0),(0,r._)([(0,p.MZ)({type:String,json:{type:K.SZ.jsonValues,read:K.SZ.read,write:K.SZ.write}})],t.prototype,"interpolation",void 0),(0,r._)([(0,p.MZ)()],t.prototype,"minScale",void 0),(0,r._)([(0,b.w)("service","minScale")],t.prototype,"readMinScale",null),(0,r._)([(0,p.MZ)()],t.prototype,"maxScale",void 0),(0,r._)([(0,b.w)("service","maxScale")],t.prototype,"readMaxScale",null),(0,r._)([(0,p.MZ)({type:H.A})],t.prototype,"mosaicRule",null),(0,r._)([(0,b.w)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],t.prototype,"readMosaicRule",null),(0,r._)([(0,d.K)("mosaicRule")],t.prototype,"writeMosaicRule",null),(0,r._)([(0,p.MZ)()],t.prototype,"multidimensionalInfo",void 0),(0,r._)([(0,p.MZ)({type:te.A,json:{write:!0}})],t.prototype,"multidimensionalSubset",void 0),(0,r._)([(0,p.MZ)({json:{type:_.jz}})],t.prototype,"noData",void 0),(0,r._)([(0,d.K)("noData")],t.prototype,"writeNoData",null),(0,r._)([(0,p.MZ)({type:String,json:{type:K.hm.jsonValues,read:K.hm.read,write:K.hm.write}})],t.prototype,"noDataInterpretation",void 0),(0,r._)([(0,p.MZ)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],t.prototype,"objectIdField",void 0),(0,r._)([(0,b.w)("objectIdField")],t.prototype,"readObjectIdField",null),(0,r._)([(0,p.MZ)({readOnly:!0})],t.prototype,"geometryType",void 0),(0,r._)([(0,p.MZ)({})],t.prototype,"typeIdField",void 0),(0,r._)([(0,p.MZ)({})],t.prototype,"types",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],t.prototype,"parsedUrl",null),(0,r._)([(0,p.MZ)({type:Function})],t.prototype,"pixelFilter",void 0),(0,r._)([(0,p.MZ)()],t.prototype,"raster",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],t.prototype,"sourceType",void 0),(0,r._)([(0,b.w)("sourceType",["serviceSourceType","fields"])],t.prototype,"readSourceType",null),(0,r._)([(0,p.MZ)()],t.prototype,"viewId",void 0),(0,r._)([(0,p.MZ)()],t.prototype,"renderer",null),(0,r._)([(0,p.MZ)({types:pe.uy,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:pe.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type&&"flow"!==e.type})}}}}})],t.prototype,"internalRenderer",null),(0,r._)([(0,b.w)("internalRenderer")],t.prototype,"readRenderer",null),(0,r._)([(0,d.K)("internalRenderer")],t.prototype,"writeRenderer",null),(0,r._)([(0,p.MZ)({clonable:!1})],t.prototype,"symbolizer",void 0),(0,r._)([(0,p.MZ)(I.ke)],t.prototype,"opacity",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],t.prototype,"rasterFields",null),(0,r._)([(0,p.MZ)({constructOnly:!0})],t.prototype,"rasterFunctionInfos",void 0),(0,r._)([(0,p.MZ)({type:T.A,json:{name:"renderingRule"}})],t.prototype,"rasterFunction",null),(0,r._)([(0,b.w)("rasterFunction",["renderingRule","rasterFunctionInfos"])],t.prototype,"readRasterFunction",null),(0,r._)([(0,p.MZ)({readOnly:!0})],t.prototype,"serviceDataType",void 0),(0,r._)([(0,p.MZ)({readOnly:!0,type:A.A})],t.prototype,"spatialReference",void 0),(0,r._)([(0,b.w)("spatialReference",["spatialReference","extent"])],t.prototype,"readSpatialReference",null),(0,r._)([(0,p.MZ)({type:K.e8.apiValues,json:{read:K.e8.read,type:K.e8.jsonValues}})],t.prototype,"pixelType",void 0),(0,r._)([(0,d.K)("pixelType")],t.prototype,"writePixelType",null),(0,r._)([(0,p.MZ)({constructOnly:!0,type:se.A})],t.prototype,"serviceRasterInfo",void 0),(0,r._)([(0,p.MZ)()],t.prototype,"sourceJSON",void 0),(0,r._)([(0,p.MZ)(I.OZ)],t.prototype,"url",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],t.prototype,"version",void 0),(0,r._)([(0,b.w)("version",["currentVersion","fields","timeInfo"])],t.prototype,"readVersion",null),t=(0,r._)([(0,m.$)("esri.layers.mixins.ArcGISImageService")],t),t};var _i=i(18768),bi=i(63074),Si=i(69208),Mi=i(16131),Ai=i(8303),xi=i(63660),Ii=i(56551),Fi=i(54310),Di=i(25036),Ti=i(82935),Pi=i(91908),ji=i(30291),Ni=i(92935);let Zi=class extends((0,bi.dM)((0,Ti.e)((0,Di.j)((0,Mi.q)((0,Ai.A)((0,Ii.H)(Ri((0,xi.G)((0,Fi.J)((0,Si.d)((0,_i.b)((0,l.P)(a.A.ClonableMixin(y.A)))))))))))))){constructor(...e){super(...e),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.type="imagery",this._debouncedSaveOperations=(0,u.sg)((async(e,t,r)=>{const{save:s,saveAs:n}=await i.e(9838).then(i.bind(i,59838));switch(e){case Ni.X.SAVE:return s(this,t);case Ni.X.SAVE_AS:return n(this,r,t)}}))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(u.QP).then((()=>this._fetchService(t)))),Promise.resolve(this)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}writeOperationalLayerType(e,t,i){const r="vector-field"===this.renderer?.type;t[i]=r?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){const{rasterFields:t}=this,i=new Set,r=re.F_.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,n=re.Oo.toLowerCase(),a=`${re.F_.servicePixelValue.toLowerCase()}.`;for(const e of t){const t=e.name.toLowerCase();t===r||t.startsWith(a)||s&&t.startsWith(n)||i.add(e.name)}const o=(0,ji.tn)({fields:t,title:this.title},{...e,visibleFieldNames:i}),{rasterInfo:l}=this;return o?.fieldInfos&&l&&(0,re.h4)(o.fieldInfos,l),o}queryFeatures(e,t){return this.queryRasters(e,t).then((e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(Ni.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(Ni.X.SAVE_AS,t,e)}serviceSupportsSpatialReference(e){return(0,Pi.D)(this,e)}write(e,t){if(!this._isPreviewLayer)return super.write(e,t);if(t?.messages){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t.messages.push(new o.A("layer:unsupported",`Imagery preview layer (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}};(0,r._)([(0,p.MZ)(I.fV)],Zi.prototype,"legendEnabled",null),(0,r._)([(0,p.MZ)({type:["show","hide"]})],Zi.prototype,"listMode",null),(0,r._)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Zi.prototype,"isReference",void 0),(0,r._)([(0,p.MZ)({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],Zi.prototype,"operationalLayerType",void 0),(0,r._)([(0,d.K)("web-map","operationalLayerType")],Zi.prototype,"writeOperationalLayerType",null),(0,r._)([(0,p.MZ)(I.M6)],Zi.prototype,"popupEnabled",void 0),(0,r._)([(0,p.MZ)({type:n.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],Zi.prototype,"popupTemplate",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],Zi.prototype,"defaultPopupTemplate",null),(0,r._)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],Zi.prototype,"type",void 0),(0,r._)([(0,p.MZ)({readOnly:!0})],Zi.prototype,"_isPreviewLayer",null),Zi=(0,r._)([(0,m.$)("esri.layers.ImageryLayer")],Zi);const Ci=Zi},58501:(e,t,i)=>{i.d(t,{q:()=>s});var r=i(62815);function s(e,t,i){if(!i?.features||!i.hasZ)return;const s=(0,r.N)(i.geometryType,t,e.outSpatialReference);if(null!=s)for(const e of i.features)s(e.geometry)}},82371:(e,t,i)=>{i.d(t,{E9:()=>y,Tw:()=>m,X6:()=>d});var r=i(78888),s=i(5443),n=i(86738),a=i(16930),o=i(87186),l=i(20223),u=i(2272),p=i(22671);async function c(e,t,i){const c=(0,u.Dl)(e),{rasterFunction:m,sourceJSON:d}=t||{},y=m?JSON.stringify(m.rasterFunctionDefinition||m):null,h=(0,u.lF)({...c.query,renderingRule:y,f:"json"}),f=(0,u.jV)(h,i);e=c.path;const g=d||await(0,r.A)(e,f).then((e=>e.data)),w=g.hasRasterAttributeTable?(0,r.A)(`${e}/rasterAttributeTable`,f):null,v=g.hasColormap?(0,r.A)(`${e}/colormap`,f):null,R=g.hasHistograms?(0,r.A)(`${e}/histograms`,f):null,_=g.currentVersion>=10.3?(0,r.A)(`${e}/keyProperties`,f):null,b=g.hasMultidimensions?(0,r.A)(`${e}/multidimensionalInfo`,f):null,S=await Promise.allSettled([w,v,R,_,b]);let M=null;if(g.minValues&&g.minValues.length===g.bandCount){M=[];for(let e=0;e<g.minValues.length;e++)M.push({min:g.minValues[e],max:g.maxValues[e],avg:g.meanValues[e],stddev:g.stdvValues[e]})}const A=s.A.fromJSON(g.extent),x=Math.ceil(A.width/g.pixelSizeX-.1),I=Math.ceil(A.height/g.pixelSizeY-.1),F=a.A.fromJSON(g.spatialReference||g.extent.spatialReference),D="fulfilled"===S[0].status?S[0].value?.data:null,T=D?.features?.length?p.A.fromJSON(D):null,P="fulfilled"===S[1].status?S[1].value?.data.colormap:null,j=P?.length?P:null,N="fulfilled"===S[2].status?S[2].value?.data.histograms:null,Z=N?.[0]?.counts?.length?N:null,C="fulfilled"===S[3].status?S[3].value?.data??{}:{},O="fulfilled"===S[4].status?S[4].value?.data.multidimensionalInfo:null,V=O?.variables?.length?O:null;V&&V.variables.forEach((e=>{e.statistics?.length&&e.statistics.forEach((e=>{e.avg=e.mean,e.stddev=e.standardDeviation})),e.dimensions?.forEach((e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")}))}));const{defaultVariable:q,serviceDataType:E}=g;q&&q!==C.DefaultVariable&&(C.DefaultVariable=q),E?.includes("esriImageServiceDataTypeVector")&&!E.includes(C.DataType)&&(C.DataType=E.replace("esriImageServiceDataType",""));let J=g.noDataValue;g.noDataValues?.length&&g.noDataValues.some((e=>e!==J))&&(J=g.noDataValues);const G=g.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:g.extent.xmin,y:g.extent.ymax,spatialReference:F}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(x,I))/Math.LN2-8)),transposeInfo:g.transposeInfo}):void 0;return new o.A({width:x,height:I,bandCount:g.bandCount,extent:s.A.fromJSON(g.extent),spatialReference:F,pixelSize:new n.A({x:g.pixelSizeX,y:g.pixelSizeY,spatialReference:F}),pixelType:g.pixelType.toLowerCase(),statistics:M,attributeTable:T,colormap:j,histograms:Z,keyProperties:C,noDataValue:J,multidimensionalInfo:V,storageInfo:G})}function m(e,t,i){return c(e,{sourceJSON:t},i)}function d(e,t,i){return c(e,{rasterFunction:t},i)}function y(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},91908:(e,t,i)=>{i.d(t,{D:()=>n});var r=i(60694);const s=[];function n(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3813,8256],{4146:(e,i,n)=>{n.d(i,{A:()=>A});var s=n(90237),o=n(78888),l=n(49186),a=n(65529),u=n(4902),p=n(92474),c=n(53966),h=n(74887),d=n(84952),y=n(10107),m=(n(44208),n(87811),n(40608)),g=n(5443),f=n(16930);n(92602);var b=n(79677);let _=0,v=class extends(a.A.EventedMixin(u.A.IdentifiableMixin(p.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new g.A(-180,-90,180,90,f.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+_++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(7982).then(n.bind(n,27982))).fromUrl(e)}static fromPortalItem(e){return async function(e){const i="portalItem"in e?e:{portalItem:e},{fromItem:s}=await n.e(5613).then(n.bind(n,45613));try{return await s(i)}catch(e){const n=i?.portalItem,s=n?.id||"unset",o=n?.portal?.url||r.portalUrl;throw t.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+s+"')",e),e}}(e)}initialize(){this.when().catch((t=>{(0,h.zf)(t)||c.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(t,e){return Promise.reject(new l.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,o.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new l.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,s._)([(0,y.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,s._)([(0,y.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,s._)([(0,y.MZ)({type:g.A})],v.prototype,"fullExtent",void 0),(0,s._)([(0,y.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,s._)([(0,y.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,s._)([(0,y.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,s._)([(0,y.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,s._)([(0,y.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,s._)([(0,y.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,s._)([(0,y.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,s._)([(0,y.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,s._)([(0,y.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,s._)([(0,y.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,s._)([(0,y.MZ)({type:f.A})],v.prototype,"spatialReference",void 0),(0,s._)([(0,y.MZ)({type:String})],v.prototype,"title",void 0),(0,s._)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,s._)([(0,y.MZ)()],v.prototype,"url",void 0),(0,s._)([(0,y.MZ)({type:b.A})],v.prototype,"visibilityTimeExtent",void 0),(0,s._)([(0,y.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,s._)([(0,m.$)("esri.layers.Layer")],v);const A=v},4902:(t,e,i)=>{i.d(e,{A:()=>u});var r=i(90237),n=i(40608);let s=0;const o=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return e=(0,r._)([(0,n.$)("esri.core.Identifiable")],e),e};let l=class extends(o(class{})){};var a;l=(0,r._)([(0,n.$)("esri.core.Identifiable")],l),(a=l||(l={})).IdentifiableMixin=o,a.NumericIdentifiableMixin=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return e=(0,r._)([(0,n.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};const u=l},36708:(t,e,i)=>{i.d(e,{C_:()=>h,OH:()=>m,Vh:()=>g,on:()=>c,pc:()=>f,wB:()=>a,z7:()=>u});var r=i(37955),n=i(36563),s=i(97768),o=i(74887),l=i(14012);function a(t,e,i={}){return p(t,e,i,d)}function u(t,e,i={}){return p(t,e,i,y)}function p(t,e,i={},r){let n=null;const o=i.once?(t,i)=>{r(t)&&((0,s.xt)(n),e(t,i))}:(t,i)=>{r(t)&&e(t,i)};if(n=(0,l.Cn)(t,o,i.sync,i.equals),i.initial){const e=t();o(e,e)}return n}function c(t,e,i,o={}){let l=null,u=null,p=null;function c(){l&&u&&(u.remove(),o.onListenerRemove?.(l),l=null,u=null)}function h(t){o.once&&o.once&&(0,s.xt)(p),i(t)}const d=a(t,((t,i)=>{c(),(0,r.wb)(t)&&(l=t,u=(0,r.on)(t,e,h),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return p=(0,n.hA)((()=>{d.remove(),c()})),p}function h(t,e){return function(t,e,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const r=t();if(e?.(r))return Promise.resolve(r);let l=null;function a(){l=(0,s.xt)(l)}return new Promise(((r,s)=>{l=(0,n.vE)([(0,o.u7)(i,(()=>{a(),s((0,o.NK)())})),p(t,(t=>{a(),r(t)}),{sync:!1,once:!0},e??d)])}))}(t,y,e)}function d(t){return!0}function y(t){return!!t}i(80559);const m={sync:!0},g={initial:!0},f={sync:!0,initial:!0}},45475:(t,e,i)=>{i.d(e,{A:()=>d});var r=i(90237),n=i(69622),s=i(4576),o=i(69540),l=i(4902),a=i(25482),u=i(10107),p=(i(44208),i(53966),i(40608));let c=0,h=class extends(a.A.JSONSupportMixin(o.A.ClonableMixin(l.A.IdentifiableMixin(n.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${c++}`,this.title=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}get isEditable(){return this.requiredPropertiesForEditing.every(s.Ru)}};(0,r._)([(0,u.MZ)({type:String,constructOnly:!0,clonable:!1})],h.prototype,"id",void 0),(0,r._)([(0,u.MZ)({type:String})],h.prototype,"title",void 0),(0,r._)([(0,u.MZ)({clonable:!1,value:null})],h.prototype,"parent",null),(0,r._)([(0,u.MZ)({readOnly:!0})],h.prototype,"isEditable",null),h=(0,r._)([(0,p.$)("esri.analysis.Analysis")],h);const d=h},62885:(t,e,i)=>{i.d(e,{H:()=>s,V:()=>n});var r=i(5503);function n(t,e,i=r.A){return e||(e=new i),e===t||(e.removeAll(),function(t){return t&&(Array.isArray(t)||"items"in t&&Array.isArray(t.items))}(t)?e.addMany(t):t&&e.add(t)),e}function s(t){return t}},68197:(t,e,i)=>{i.d(e,{A:()=>a});var r=i(40876),n=i(34727),s=i(56507);function o(t){return(0,n.qE)((0,s.Vr)(t),0,255)}function l(t,e){const i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}class a{static blendColors(t,e,i,r=new a){return r.r=Math.round(t.r+(e.r-t.r)*i),r.g=Math.round(t.g+(e.g-t.g)*i),r.b=Math.round(t.b+(e.b-t.b)*i),r.a=t.a+(e.a-t.a)*i,r._sanitize()}static fromRgb(t,e){const i=(0,r.lT)(t);return i?a.fromArray(i,e):null}static fromHex(t,e=new a){const i=(0,r.oW)(t);return i?a.fromArray(i,e):null}static fromArray(t,e=new a){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const i=(0,r.Eq)(t);return i?a.fromArray(i,e):null}static fromJSON(t){return null!=t?new a([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?a.fromString(t,this):Array.isArray(t)?a.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof a||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,i=t?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${n?l(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=a.AlphaMode.ALWAYS){const e=o(this.r),i=o(this.g),r=o(this.b);return t===a.AlphaMode.ALWAYS||1!==this.a?[e,i,r,o(255*this.a)]:[e,i,r]}clone(){return new a(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,i,r){this.r=t,this.g=e,this.b=i,this.a=r}}a.prototype.declaredClass="esri.Color",function(t){var e;(e=t.AlphaMode||(t.AlphaMode={}))[e.ALWAYS=0]="ALWAYS",e[e.UNLESS_OPAQUE=1]="UNLESS_OPAQUE"}(a)},69052:(t,e,i)=>{i.d(e,{ie:()=>l});var r=i(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,i=!1){return s(this.range,this.min,this.max,t,e,i)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,i){return t<e?e:e+o(this.range,t-e,i)}minimalMonotonic(t,e,i){return s(this.range,t,t+this.range,e,i)}center(t,e,i){return e=this.monotonic(t,e,i),this.normalize((t+e)/2,i)}diff(t,e,i){return this.monotonic(t,e,i)-t}shortestSignedDiff(t,e){t=this.normalize(t);const i=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(i)<Math.abs(r)?i:r}contains(t,e,i){return e=this.minimalMonotonic(t,e),(i=this.minimalMonotonic(t,i))>t&&i<e}}function s(t,e,i,r,n=0,s=!1){return(r-=n)<e?r+=o(t,e-r):r>i&&(r-=o(t,r-i)),s&&r===i&&(r=e),r+n}function o(t,e,i=0){return Math.ceil((e-i)/t)*t+i}new n(0,2*Math.PI),new n(-Math.PI,Math.PI);const l=new n(0,360)},69540:(t,e,i)=>{i.d(e,{A:()=>h});var r=i(90237),n=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),l=i(35666),a=i(88620),u=i(40608);const p=t=>{let e=class extends t{clone(){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const e=t.metadata,i=t.store,r={},n=new Map;for(const t in e){const o=e[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const p=this[t];let c=null;c="function"==typeof u?u(p):"reference"===u?p:(0,s.TU)(p),null!=p&&null==c||(a===l.Gr.DEFAULTS?n.set(t,c):r[t]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(n.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,i]of n)t.set(e,i,l.Gr.DEFAULTS)}return u}};return e=(0,r._)([(0,u.$)("esri.core.Clonable")],e),e};let c=class extends(p(n.A)){};c=(0,r._)([(0,u.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=p;const h=c},71493:(t,e,i)=>{i.r(e),i.d(e,{default:()=>L});var r=i(90237),n=i(45475),s=i(68197),o=i(69540),l=i(25482),a=i(90629),u=i(10107),p=i(56507),c=(i(44208),i(87811),i(40608));let h=class extends(l.A.JSONSupportMixin(o.A)){constructor(t){super(t),this.type="simple",this.color=new s.A("black"),this.lineSize=2,this.fontSize=10,this.textColor=new s.A("black"),this.textBackgroundColor=new s.A([255,255,255,.6])}};(0,r._)([(0,u.MZ)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],h.prototype,"color",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,range:{min:(0,a.PN)(1)},json:{write:{isRequired:!0}}})],h.prototype,"lineSize",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,json:{write:{isRequired:!0}}})],h.prototype,"fontSize",void 0),(0,r._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],h.prototype,"textColor",void 0),(0,r._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],h.prototype,"textBackgroundColor",void 0),h=(0,r._)([(0,c.$)("esri.analysis.DimensionSimpleStyle")],h);const d=h;var y;!function(t){t.Horizontal="horizontal",t.Vertical="vertical",t.Direct="direct"}(y||(y={}));const m=[y.Horizontal,y.Vertical,y.Direct];var g=i(69052),f=i(79901),b=i(86738);let _=class extends(l.A.JSONSupportMixin(o.A)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType=y.Direct,this.offset=0,this.orientation=0}};(0,r._)([(0,u.MZ)({type:["length"],json:{write:{isRequired:!0}}})],_.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:b.A,json:{write:{isRequired:!0}}})],_.prototype,"startPoint",void 0),(0,r._)([(0,u.MZ)({type:b.A,json:{write:{isRequired:!0}}})],_.prototype,"endPoint",void 0),(0,r._)([(0,u.MZ)({type:m,nonNullable:!0,json:{write:{isRequired:!0}}})],_.prototype,"measureType",void 0),(0,r._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],_.prototype,"offset",void 0),(0,r._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,f.w)((t=>g.ie.normalize((0,p.GB)(t),0,!0)))],_.prototype,"orientation",void 0),_=(0,r._)([(0,c.$)("esri.analysis.LengthDimension")],_);const v=_;var A=i(5503),M=i(62885),w=i(36708),S=(i(53966),i(5443)),O=i(80586);const E=A.A.ofType(v);let x=class extends n.A{constructor(t){super(t),this.type="dimension",this.style=new d,this.extent=null}initialize(){this.addHandles((0,w.wB)((()=>this._computeExtent()),(t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)}),w.pc))}get dimensions(){return this._get("dimensions")||new E}set dimensions(t){this._set("dimensions",(0,M.V)(t,this.dimensions,E))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get requiredPropertiesForEditing(){return this.dimensions.reduce(((t,e)=>(t.push(e.startPoint,e.endPoint),t)),[])}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const e=[];for(const t of this.dimensions)null!=t.startPoint&&e.push(t.startPoint),null!=t.endPoint&&e.push(t.endPoint);const i=(0,O.projectOrLoadMany)(e,t);if(null!=i.pending)return{pending:i.pending,extent:null};let r=null;return null!=i.geometries&&(r=i.geometries.reduce(((t,e)=>null==t?null!=e?S.A.fromPoint(e):null:null!=e?t.union(S.A.fromPoint(e)):t),null)),{pending:null,extent:r}}clear(){this.dimensions.removeAll()}};(0,r._)([(0,u.MZ)({type:["dimension"]})],x.prototype,"type",void 0),(0,r._)([(0,u.MZ)({cast:M.H,type:E,nonNullable:!0})],x.prototype,"dimensions",null),(0,r._)([(0,u.MZ)({readOnly:!0})],x.prototype,"spatialReference",null),(0,r._)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:d}},nonNullable:!0})],x.prototype,"style",void 0),(0,r._)([(0,u.MZ)({value:null,readOnly:!0})],x.prototype,"extent",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],x.prototype,"requiredPropertiesForEditing",null),x=(0,r._)([(0,c.$)("esri.analysis.DimensionAnalysis")],x);const N=x;var Z=i(92071),T=i(43937),P=i(4146),D=i(16131);let R=class extends((0,D.q)((0,Z.P)(P.A))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new N,this.opacity=1,t){const{source:e,style:i}=t;e&&i&&(e.style=i)}}initialize(){this.addHandles([(0,w.wB)((()=>this.source),((t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)}),w.pc)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new N)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,e,i,r){e.dimensions=t.filter((({startPoint:t,endPoint:e})=>null!=t&&null!=e)).map((t=>t.toJSON(r))).toJSON()}};(0,r._)([(0,u.MZ)({json:{read:!1},readOnly:!0})],R.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:["ArcGISDimensionLayer"]})],R.prototype,"operationalLayerType",void 0),(0,r._)([(0,u.MZ)({nonNullable:!0})],R.prototype,"source",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],R.prototype,"spatialReference",null),(0,r._)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:d}},json:{write:{ignoreOrigin:!0}}})],R.prototype,"style",null),(0,r._)([(0,u.MZ)({readOnly:!0})],R.prototype,"fullExtent",null),(0,r._)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],R.prototype,"opacity",void 0),(0,r._)([(0,u.MZ)({type:["show","hide"]})],R.prototype,"listMode",void 0),(0,r._)([(0,u.MZ)({type:A.A.ofType(v),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],R.prototype,"dimensions",null),(0,r._)([(0,T.K)("web-scene","dimensions")],R.prototype,"writeDimensions",null),R=(0,r._)([(0,c.$)("esri.layers.DimensionLayer")],R);const L=R},78553:(t,e,i)=>{i.d(e,{D:()=>s,p:()=>n});var r=i(56507);function n(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79677:(t,e,i)=>{i.d(e,{A:()=>d});var r,n=i(90237),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),u=i(40608),p=i(43937),c=i(98623);let h=class extends s.A{static{r=this}static get allTime(){return y}static get empty(){return m}static fromArray(t){return new r({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,n=t.end?.getTime()??t.end;return e===r&&i===n}expandTo(t,e=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,o.lL)(i,t,e));let n=this.end;if(n){const i=(0,o.lL)(n,t,e);n=n.getTime()===i.getTime()?i:(0,o.S1)(i,1,t,e)}return new r({start:i,end:n})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,n=t.start?.getTime()??-1/0,s=t.end?.getTime()??1/0;let o,l;return n>=e&&n<=i?o=n:e>=n&&e<=s&&(o=e),i>=n&&i<=s?l=i:s>=e&&s<=i&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?r.empty:new r({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(t,e,i=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.S1)(s,t,e,i)),null!=l&&(n.end=(0,o.S1)(l,t,e,i)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return y.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,i=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:i})}};(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,n._)([(0,a.w)("end")],h.prototype,"readEnd",null),(0,n._)([(0,p.K)("end")],h.prototype,"writeEnd",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,n._)([(0,a.w)("start")],h.prototype,"readStart",null),(0,n._)([(0,p.K)("start")],h.prototype,"writeStart",null),h=r=(0,n._)([(0,u.$)("esri.time.TimeExtent")],h);const d=h,y=new h,m=new h({start:void 0,end:void 0})},92071:(t,e,i)=>{i.d(e,{P:()=>_,L:()=>v});var r=i(90237),n=i(69622),s=i(76953),o=i(4718),l=i(35666);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new a,i=this._originStores[l.Gr.DEFAULTS];i&&i.forEach(((t,i)=>{e.set(i,(0,o.o8)(t),l.Gr.DEFAULTS)}));for(let i=l.Gr.SERVICE;i<l.AU;i++){const r=this._originStores[i];r&&r.forEach(((r,n)=>{t&&t.has(n)||e.set(n,(0,o.o8)(r),i)}))}return e}get(t,e){const i=void 0===e?this._values:this._originStores[e];return i?i.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,i=l.Gr.USER){let r=this._originStores[i];if(r||(r=new Map,this._originStores[i]=r),r.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=i){const r=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,i),r!==e}return!1}delete(t,e=l.Gr.USER){const i=this._originStores[e];if(!i)return;const r=i.get(t);if(i.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let i=e-1;i>=0;i--){const e=this._originStores[i];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,i);break}}}return r}has(t,e){const i=void 0===e?this._values:this._originStores[e];return!!i&&i.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const i=this._originStores[e],r=i?.get(t),n=this._values.get(t);return this._values.set(t,r),this._propertyOriginMap.set(t,e),n!==r}originOf(t){return this._propertyOriginMap.get(t)||l.Gr.DEFAULTS}isAtOrigin(t,e){return this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(t)}}var u=i(45917),p=i(88620),c=i(40608);const h=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,p.oY)(this),i=e.store,r=new a;e.store=r,(0,s.k)(e,i,r)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const i=d(this),r=(0,l.aB)(e);if("string"==typeof t)return i.get(t,r);const n={};return t.forEach((t=>{n[t]=i.get(t,r)})),n}originOf(t){return(0,l.OL)(this.originIdOf(t))}originIdOf(t){return d(this).originOf(t)}revert(t,e){const i=d(this),r=(0,l.aB)(e),n=(0,p.oY)(this);let s;s="string"==typeof t?"*"===t?i.keys(r):[t]:t,s.forEach((t=>{n.invalidate(t),i.revert(t,r),n.commit(t)}))}};return e=(0,r._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function d(t){return(0,p.oY)(t).store}let y=class extends(h(n.A)){};y=(0,r._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var m=i(16649),g=i(49422);const f=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){(0,p.oY)(this).clearOrigin(t,(0,l.aB)(e))}write(t,e){return(0,g.M)(this,t=t||{},e),t}setAtOrigin(t,e,i){(0,p.oY)(this).setAtOrigin(t,e,(0,l.aB)(i))}removeOrigin(t){const e=b(this),i=(0,l.aB)(t),r=e.keys(i);for(const t of r)e.originOf(t)===i&&e.set(t,e.get(t,i),l.Gr.USER)}updateOrigin(t,e){const i=b(this),r=(0,l.aB)(e),n=(0,m.Jt)(this,t);for(let e=r+1;e<l.AU;++e)i.delete(t,e);i.set(t,n,r)}toJSON(t){return this.write({},t)}};return e=(0,r._)([(0,c.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function b(t){return(0,p.oY)(t).store}const _=t=>{let e=class extends(f(h(t))){constructor(...t){super(...t)}};return e=(0,r._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],e),e};let v=class extends(_(n.A)){};v=(0,r._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],v)}}]);
|