@arcgis/core 4.28.0-next.20230821 → 4.28.0-next.20230823
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/Basemap.js +1 -1
- package/WebScene.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/portalUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0746319459dbcd3ab6f7.js +1 -0
- package/assets/esri/core/workers/chunks/{587437526ea77f764986.js → 0759d4ab9695096d2bbd.js} +1 -1
- package/assets/esri/core/workers/chunks/{d0c4367a197b193e95d4.js → 10c014a6d8767ae8a666.js} +1 -1
- package/assets/esri/core/workers/chunks/{5ffabd1a90c5b08109aa.js → 196937631ac20795e0ae.js} +1 -1
- package/assets/esri/core/workers/chunks/{e05b54a0b834b4e4268e.js → 1c2b69dfcd0db58150e2.js} +1 -1
- package/assets/esri/core/workers/chunks/1c2f7c95825fdac790be.js +1 -0
- package/assets/esri/core/workers/chunks/1f9c80815f90fd0886d7.js +1 -0
- package/assets/esri/core/workers/chunks/217910f88fe2c03e6bdd.js +1 -0
- package/assets/esri/core/workers/chunks/238966b2fc6cc3dfcc05.js +1 -0
- package/assets/esri/core/workers/chunks/2c9f709d64954b3c1650.js +1 -0
- package/assets/esri/core/workers/chunks/35faede04d4539aab6e8.js +1 -0
- package/assets/esri/core/workers/chunks/3e3edcbacf8eaf275b97.js +1 -0
- package/assets/esri/core/workers/chunks/{b78dc6cbe14e5817b4d9.js → 4968018bc693c053fdd2.js} +1 -1
- package/assets/esri/core/workers/chunks/{c35b850fbfcb28133235.js → 49a1ba3e7ea204adeddb.js} +1 -1
- package/assets/esri/core/workers/chunks/{12b8fe0374fa9ab4ca09.js → 49cf3ae224f56f45f65b.js} +1 -1
- package/assets/esri/core/workers/chunks/5330040eeacc9c03fbdb.js +1 -0
- package/assets/esri/core/workers/chunks/54aaa21144431b29b6ed.js +1 -0
- package/assets/esri/core/workers/chunks/{6c40f16e6d10321295d8.js → 5b13d28cf5efc312a21c.js} +1 -1
- package/assets/esri/core/workers/chunks/{d6c96a20e9640b433719.js → 67c6618339d323460d45.js} +57 -57
- package/assets/esri/core/workers/chunks/{dd86f43505b636eb41c0.js → 7714c16f9c8860efd461.js} +1 -1
- package/assets/esri/core/workers/chunks/{752d389c7bdcbe7004dc.js → 83e0af5522a672c2c73b.js} +1 -1
- package/assets/esri/core/workers/chunks/{873111ddf4813cdd4903.js → 872d0d4bf364be43a92e.js} +1 -1
- package/assets/esri/core/workers/chunks/8a784ddd5607f1ddbb5b.js +1 -0
- package/assets/esri/core/workers/chunks/{0cad2b991d0d0fd07846.js → 8c9c4162617f31e3f5f2.js} +1 -1
- package/assets/esri/core/workers/chunks/8db3ee2931be5cca3f5e.js +1 -0
- package/assets/esri/core/workers/chunks/{fd3920159ab9748402a2.js → 92350664e2719a9e860e.js} +1 -1
- package/assets/esri/core/workers/chunks/{ff755962fd1c771f5be5.js → a3b461174984a1cb92b3.js} +1 -1
- package/assets/esri/core/workers/chunks/{dd4c6d000222798a0317.js → a47aff9c97c5ce52d0dc.js} +1 -1
- package/assets/esri/core/workers/chunks/{028534e3d4e13c9ea687.js → a645f08a7678f2ca037c.js} +1 -1
- package/assets/esri/core/workers/chunks/{d9fe6cfbc9ad2920ca9c.js → aca45e54ec925002df9a.js} +1 -1
- package/assets/esri/core/workers/chunks/{40ff0e7c948615b8bfc0.js → b07d32a60307d04391fc.js} +1 -1
- package/assets/esri/core/workers/chunks/{fdc703330bf194a48e0e.js → b086e798f43dacb0175f.js} +1 -1
- package/assets/esri/core/workers/chunks/bd0b9647880cbbec95e2.js +1 -0
- package/assets/esri/core/workers/chunks/{ab420bacdd63ee8fbd8b.js → bf9b5e2803a5444bd944.js} +1 -1
- package/assets/esri/core/workers/chunks/{c58ca2685eb7e559f428.js → c0a2a737a3085690afc5.js} +1 -1
- package/assets/esri/core/workers/chunks/{e04e8af4224fff8c3ec3.js → c34615c0b7ad83d1ad24.js} +1 -1
- package/assets/esri/core/workers/chunks/{05ab09713d599687afa3.js → d105ee2e394e2c48303c.js} +1 -1
- package/assets/esri/core/workers/chunks/{ef03b78659c72de93076.js → d183144fa504064d23d3.js} +1 -1
- package/assets/esri/core/workers/chunks/{4f5207abb034375927c7.js → d8495c6dcd4d9bec8dd6.js} +1 -1
- package/assets/esri/core/workers/chunks/{1a485d63330f5e7fe4e3.js → dba61fa8cbb57dde54b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a306e3aa210861b8c17.js → deb0bd575c63d9dbcde5.js} +1 -1
- package/assets/esri/core/workers/chunks/{d0a2f9ca338b60f2ba2a.js → e302fe771d92ccf945a3.js} +1 -1
- package/assets/esri/core/workers/chunks/{cb0a5bc6deaa98026bb5.js → ed0dea88b2865fc6e06b.js} +1 -1
- package/assets/esri/core/workers/chunks/ed733eea5d065131b159.js +1 -0
- package/assets/esri/core/workers/chunks/{1c51c52fb2233153d7ae.js → f3ec53ee9567bb7e4d2f.js} +1 -1
- package/assets/esri/core/workers/chunks/{4922a0fed7cbc6895882.js → f701a5afa1b730c51a49.js} +1 -1
- package/assets/esri/t9n/common.json +1 -1
- package/assets/esri/t9n/common_ar.json +1 -1
- package/assets/esri/t9n/common_bg.json +1 -1
- package/assets/esri/t9n/common_ca.json +1 -1
- package/assets/esri/t9n/common_cs.json +1 -1
- package/assets/esri/t9n/common_da.json +1 -1
- package/assets/esri/t9n/common_de.json +1 -1
- package/assets/esri/t9n/common_el.json +1 -1
- package/assets/esri/t9n/common_en.json +1 -1
- package/assets/esri/t9n/common_es.json +1 -1
- package/assets/esri/t9n/common_et.json +1 -1
- package/assets/esri/t9n/common_fi.json +1 -1
- package/assets/esri/t9n/common_fr.json +1 -1
- package/assets/esri/t9n/common_he.json +1 -1
- package/assets/esri/t9n/common_hr.json +1 -1
- package/assets/esri/t9n/common_hu.json +1 -1
- package/assets/esri/t9n/common_id.json +1 -1
- package/assets/esri/t9n/common_it.json +1 -1
- package/assets/esri/t9n/common_ja.json +1 -1
- package/assets/esri/t9n/common_ko.json +1 -1
- package/assets/esri/t9n/common_lt.json +1 -1
- package/assets/esri/t9n/common_lv.json +1 -1
- package/assets/esri/t9n/common_nb.json +1 -1
- package/assets/esri/t9n/common_nl.json +1 -1
- package/assets/esri/t9n/common_pl.json +1 -1
- package/assets/esri/t9n/common_pt-BR.json +1 -1
- package/assets/esri/t9n/common_pt-PT.json +1 -1
- package/assets/esri/t9n/common_ro.json +1 -1
- package/assets/esri/t9n/common_ru.json +1 -1
- package/assets/esri/t9n/common_sk.json +1 -1
- package/assets/esri/t9n/common_sl.json +1 -1
- package/assets/esri/t9n/common_sr.json +1 -1
- package/assets/esri/t9n/common_sv.json +1 -1
- package/assets/esri/t9n/common_th.json +1 -1
- package/assets/esri/t9n/common_tr.json +1 -1
- package/assets/esri/t9n/common_uk.json +1 -1
- package/assets/esri/t9n/common_vi.json +1 -1
- package/assets/esri/t9n/common_zh-CN.json +1 -1
- package/assets/esri/t9n/common_zh-TW.json +1 -1
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +10 -17
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ar.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_bg.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_bs.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ca.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_cs.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_da.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_de.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_el.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_es.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_et.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_fi.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_fr.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_he.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_hr.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_hu.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_id.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_it.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ja.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ko.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_lt.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_lv.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_nb.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_nl.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_pl.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_pt-BR.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_pt-PT.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ro.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_ru.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sk.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sl.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sr.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_sv.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_th.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_tr.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_uk.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_vi.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_zh-CN.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_zh-HK.json +1 -0
- package/assets/esri/widgets/DirectionalPad/t9n/DirectionalPad_zh-TW.json +1 -0
- package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nb.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ar.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bg.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ca.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_cs.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_da.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_de.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_el.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_es.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_et.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_he.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hu.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_id.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_it.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ja.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ko.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lt.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nb.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-BR.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-PT.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ro.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ru.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sl.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sv.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_th.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_tr.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_uk.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_vi.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-CN.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-HK.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-TW.json +1 -1
- package/chunks/ChapmanAtmosphere.glsl.js +1 -1
- package/chunks/Clouds.glsl.js +1 -1
- package/chunks/CloudsComposition.glsl.js +2 -2
- package/chunks/ComponentShader.glsl.js +36 -36
- package/chunks/Fog.glsl.js +1 -1
- package/chunks/LaserlinePath.glsl.js +1 -1
- package/chunks/Laserlines.glsl.js +1 -1
- package/chunks/LineSeries.js +1 -1
- package/chunks/NativeLine.glsl.js +8 -20
- package/chunks/PointRenderer.glsl.js +1 -1
- package/chunks/Precipitation.glsl.js +2 -2
- package/chunks/SSAOBlur.glsl.js +1 -1
- package/chunks/ShadowCastAccumulate.glsl.js +1 -1
- package/chunks/ShadowCastVisualize.glsl.js +2 -2
- package/chunks/ShadowHighlight.glsl.js +1 -1
- package/chunks/Stars.glsl.js +1 -1
- package/chunks/Terrain.glsl.js +35 -35
- package/chunks/TextureOnly.glsl.js +1 -1
- package/chunks/Theme.js +1 -1
- package/chunks/boundedPlane.js +1 -1
- package/chunks/cameraUtilsPlanar.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/chunks/chartUtilsAm5.js +1 -1
- package/chunks/mat3.js +1 -1
- package/chunks/mat3f64.js +1 -1
- package/chunks/mat4.js +1 -1
- package/chunks/mat4f64.js +1 -1
- package/chunks/quat.js +1 -1
- package/chunks/quat2.js +1 -1
- package/chunks/quatf64.js +1 -1
- package/chunks/sphere.js +1 -1
- package/chunks/terrainUtilsPlanar.js +1 -1
- package/chunks/vec3.js +1 -1
- package/chunks/vec3f64.js +1 -1
- package/chunks/vec4.js +1 -1
- package/chunks/vec4f64.js +1 -1
- package/core/VectorStack.js +1 -1
- package/core/accessorSupport/decorators/persistable.js +1 -1
- package/core/accessorSupport/testSupport.js +1 -1
- package/core/colorUtils.js +1 -1
- package/core/libs/gl-matrix-2/factories/mat3f64.js +1 -1
- package/core/libs/gl-matrix-2/factories/mat4f64.js +1 -1
- package/core/libs/gl-matrix-2/factories/quatf64.js +1 -1
- package/core/libs/gl-matrix-2/factories/vec3f64.js +1 -1
- package/core/libs/gl-matrix-2/factories/vec4f64.js +1 -1
- package/core/libs/gl-matrix-2/math/mat3.js +1 -1
- package/core/libs/gl-matrix-2/math/mat4.js +1 -1
- package/core/libs/gl-matrix-2/math/vec3.js +1 -1
- package/core/libs/gl-matrix-2/math/vec4.js +1 -1
- package/core/mathUtils.js +1 -1
- package/core/perspectiveUtils.js +1 -1
- package/form/elements/inputs/DatePickerInput.d.ts +4 -0
- package/form/elements/inputs/DatePickerInput.js +5 -0
- package/form/elements/inputs/DateTimeOffsetPickerInput.d.ts +4 -0
- package/form/elements/inputs/DateTimeOffsetPickerInput.js +5 -0
- package/form/elements/inputs/TimePickerInput.d.ts +4 -0
- package/form/elements/inputs/TimePickerInput.js +5 -0
- package/form/elements/support/inputs.js +1 -1
- package/geometry/projection/computeTranslationToOriginAndRotation.js +1 -1
- package/geometry/projection/projectDirection.js +1 -1
- package/geometry/support/MeshTransform.js +1 -1
- package/geometry/support/axisAngle.js +1 -1
- package/geometry/support/axisAngleDegrees.js +1 -1
- package/geometry/support/clipRay.js +1 -1
- package/geometry/support/coordinateSystem.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/geometry/support/lineSegment.js +1 -1
- package/geometry/support/meshUtils/centerAt.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/geometry.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/node.js +1 -1
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/meshUtils/offset.js +1 -1
- package/geometry/support/meshUtils/primitives.js +1 -1
- package/geometry/support/meshUtils/projection.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/geometry/support/meshVertexSpaceUtils.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/geometry/support/ray.js +1 -1
- package/geometry/support/triangle.js +1 -1
- package/geometry/support/vector.js +1 -1
- package/interfaces.d.ts +405 -7
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/mixins/SceneService.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/support/ControlPointsGeoreference.js +1 -1
- package/layers/support/ImageElement.js +1 -1
- package/layers/support/SceneFilter.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/layers/video/VideoCameraSensorModel.js +1 -1
- package/layers/voxel/VoxelVolume.js +1 -1
- package/layers/voxel/voxelPlaneUtils.js +1 -1
- package/package.json +1 -1
- package/portal/support/resourceExtension.js +1 -1
- package/portal/support/resourceUtils.js +1 -1
- package/portal/support/utils.js +5 -0
- package/smartMapping/popup/support/utils.js +1 -1
- package/smartMapping/raster/renderers/classBreaks.js +1 -1
- package/smartMapping/raster/support/adapters/ImageryLayerAdapter.js +1 -1
- package/smartMapping/raster/support/adapters/ImageryTileLayerAdapter.js +1 -1
- package/smartMapping/raster/support/adapters/RasterLayerAdapter.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMImageColorSubstitutionHelper.js +1 -1
- package/symbols/support/previewSymbol3D.js +1 -1
- package/views/2d/ViewState.js +1 -1
- package/views/2d/engine/flow/FlowDisplayObject.js +1 -1
- package/views/2d/engine/imagery/RasterVFTile.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +1 -1
- package/views/2d/engine/webgl/OverlayContainer.js +1 -1
- package/views/2d/engine/webgl/TiledDisplayObject.js +1 -1
- package/views/2d/engine/webgl/WGLTile.js +1 -1
- package/views/2d/engine/webgl/WorldExtentClipRenderer.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLBrushVTLSymbol.js +1 -1
- package/views/2d/interactive/editingTools/TransformTool.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/RotateManipulation.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
- package/views/2d/layers/graphics/GraphicBoundsRenderer.js +1 -1
- package/views/2d/layers/support/DebugOverlay.js +1 -1
- package/views/2d/navigation/actions/Pan.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/Dimension/DimensionTool.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
- package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
- package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightVisualization.js +1 -1
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/analysis/images/Factory.js +5 -0
- package/views/3d/analysis/support/measurementUtils.js +1 -1
- package/views/3d/analysis/support/viewUtils.js +1 -1
- package/views/3d/animation/pointToPoint/Animation.js +1 -1
- package/views/3d/animation/pointToPoint/Camera.js +1 -1
- package/views/3d/camera/constraintUtils/altitude.js +1 -1
- package/views/3d/camera/constraintUtils/common.js +1 -1
- package/views/3d/camera/constraintUtils/distance.js +1 -1
- package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
- package/views/3d/camera/constraintUtils/tilt.js +1 -1
- package/views/3d/camera/intersectionUtils.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/CloudsParameters.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Fog.js +1 -1
- package/views/3d/environment/LocalAtmosphere.js +1 -1
- package/views/3d/environment/MarsAtmosphere.js +1 -1
- package/views/3d/environment/SceneViewEnvironment.js +1 -1
- package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
- package/views/3d/environment/Stars.js +1 -1
- package/views/3d/environment/StarsTechnique.js +1 -1
- package/views/3d/externalRenderers.js +1 -1
- package/views/3d/glTF/internal/Resource.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
- package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
- package/views/3d/interactive/editingTools/lineGraphicVisualElementUtils.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
- package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/edgeOffsetUtils.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/undoRecords.js +1 -1
- package/views/3d/interactive/manipulatorUtils.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LabelVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LaserlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MarkerVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/Object3DVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/SlicePlaneVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/VisualElementResources.js +1 -1
- package/views/3d/interactive/visualElements/support/Segment.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudWorker.js +1 -1
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/ElevationAligners.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
- package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/LabelParameters.js +1 -1
- package/views/3d/layers/graphics/elevationAlignmentUtils.js +1 -1
- package/views/3d/layers/graphics/graphicUtils.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/layers/graphics/wosrLoader.js +1 -1
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SElevationProvider.js +1 -1
- package/views/3d/layers/i3s/I3SGeometryUtil.js +1 -1
- package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
- package/views/3d/layers/i3s/I3SProjectionUtil.js +1 -1
- package/views/3d/layers/i3s/I3SUtil.js +1 -1
- package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
- package/views/3d/layers/i3s/LoDUtil.js +1 -1
- package/views/3d/layers/i3s/PointRenderer.js +1 -1
- package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
- package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/layers/support/I3STreeDebugger.js +1 -1
- package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
- package/views/3d/layers/support/edgeUtils.js +1 -1
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/layers/support/uvUtils.js +1 -1
- package/views/3d/state/Frustum.js +1 -1
- package/views/3d/state/NearFarHeuristic.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
- package/views/3d/state/controllers/global/ZoomController.js +1 -1
- package/views/3d/state/controllers/global/ZoomStepController.js +1 -1
- package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
- package/views/3d/state/controllers/local/ZoomController.js +1 -1
- package/views/3d/state/controllers/local/ZoomStepController.js +1 -1
- package/views/3d/state/controllers/momentum/PanPlanarMomentumController.js +1 -1
- package/views/3d/state/controllers/momentum/PanSphericalMomentumController.js +1 -1
- package/views/3d/state/controllers/momentum/RotationMomentumController.js +1 -1
- package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
- package/views/3d/state/controllers/momentum/ZoomSphericalMomentumController.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/state/utils/viewUtils.js +1 -1
- package/views/3d/support/FrustumExtentIntersection.js +1 -1
- package/views/3d/support/LaserLineRenderer.js +1 -1
- package/views/3d/support/LaserlinePathData.js +1 -1
- package/views/3d/support/RenderCoordsHelper.js +1 -1
- package/views/3d/support/StreamTextureCollection.js +1 -1
- package/views/3d/support/TextureCollection.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/cameraUtilsInternal.js +1 -1
- package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
- package/views/3d/support/geometryUtils/ray.js +1 -1
- package/views/3d/support/intersectionUtils.js +1 -1
- package/views/3d/support/mathUtils.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/support/viewpointUtils.js +1 -1
- package/views/3d/terrain/Overlay.js +1 -1
- package/views/3d/terrain/OverlayContent.js +5 -0
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/OverlayRenderTarget.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchGeometry.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TextureReference.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/terrain/TileOverlayData.js +1 -1
- package/views/3d/terrain/TileRenderInfo.js +1 -1
- package/views/3d/terrain/interfaces.js +1 -1
- package/views/3d/terrain/support/MultiSizeFramebuffer.js +1 -1
- package/views/3d/webgl-engine/Stage.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +32 -53
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +9 -9
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/core/util/TwoVectorPosition.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightPassParameters.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlightTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/CascadeCamera.js +1 -1
- package/views/3d/webgl-engine/lib/ContentObject.js +1 -1
- package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
- package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
- package/views/3d/webgl-engine/lib/ITexture.js +5 -0
- package/views/3d/webgl-engine/lib/Intersector.js +1 -1
- package/views/3d/webgl-engine/lib/IntersectorTarget.js +1 -1
- package/views/3d/webgl-engine/lib/LocalOriginManager.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/3d/webgl-engine/lib/Path.js +1 -1
- package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
- package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
- package/views/3d/webgl-engine/lib/Texture.js +1 -1
- package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderParameters.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/edgeBufferWriters.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
- package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
- package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/octreeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
- package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
- package/views/3d/webgl-engine/lighting/SceneLighting.js +1 -1
- package/views/3d/webgl-engine/lighting/SphericalHarmonics.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineDrawParameters.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
- package/views/3d/webgl-engine/materials/pbrUtils.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/parts/Model.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
- package/views/GroundView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/draw/DrawManipulator.js +1 -1
- package/views/draw/support/createUtils.js +1 -1
- package/views/draw/support/surfaceCoordinateSystems.js +1 -1
- package/views/interactive/GraphicManipulator.js +1 -1
- package/views/interactive/ManipulatorCollection.js +1 -1
- package/views/interactive/ToolViewManagerManipulatorState.js +1 -1
- package/views/interactive/coordinateHelper.js +1 -1
- package/views/interactive/dragEventPipeline.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/sketch/normalizedPoint.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/RightAngleSnapper.js +1 -1
- package/views/interactive/snapping/candidates/ParallelLineSnappingCandidate.js +1 -1
- package/views/interactive/snapping/candidates/RightAngleTriangleSnappingCandidate.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
- package/views/interactive/snapping/hints/IntersectionSnappingHint.js +1 -1
- package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
- package/views/interactive/snapping/hints/ParallelSnappingHint.js +1 -1
- package/views/interactive/snapping/hints/PointSnappingHint.js +1 -1
- package/views/interactive/snapping/hints/RightAngleSnappingHint.js +1 -1
- package/views/interactive/support/viewUtils.js +1 -1
- package/views/interactive/tooltip/constraintUtils.js +1 -1
- package/views/navigation/PanPlanarMomentumEstimator.js +1 -1
- package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
- package/views/navigation/gamepadAndKeyboardUtils.js +1 -1
- package/views/support/euclideanAreaMeasurementUtils.js +1 -1
- package/views/support/euclideanLengthMeasurementUtils.js +1 -1
- package/views/support/geometry3dUtils.js +1 -1
- package/views/support/layerViewUtils.js +1 -1
- package/webdoc/support/saveUtils.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/support/ProfileLines3D.js +1 -1
- package/widgets/ElevationProfile/support/constants.js +1 -1
- package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/smartMapping/BinaryColorSizeSlider/BinaryColorSizeSliderViewModel.d.ts +4 -0
- package/widgets/smartMapping/BinaryColorSizeSlider.d.ts +4 -0
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
- package/widgets/support/Selector2D/selectorUtils.js +1 -1
- package/widgets/support/templateUtils.js +5 -0
- package/assets/esri/core/workers/chunks/19857e5420cdf23c5f2e.js +0 -1
- package/assets/esri/core/workers/chunks/26289742b9280f0b5247.js +0 -1
- package/assets/esri/core/workers/chunks/46f6b77e586d78aeb75c.js +0 -1
- package/assets/esri/core/workers/chunks/4e39252f40bc57be9d12.js +0 -1
- package/assets/esri/core/workers/chunks/54513578f735d274a20e.js +0 -1
- package/assets/esri/core/workers/chunks/8dab0acdbbd5c282645a.js +0 -1
- package/assets/esri/core/workers/chunks/8e4b01a0cb8c8926f2b6.js +0 -1
- package/assets/esri/core/workers/chunks/a3a1d4f32e518e97d071.js +0 -1
- package/assets/esri/core/workers/chunks/b2d4a56197dcabdbae35.js +0 -1
- package/assets/esri/core/workers/chunks/be0565d923afba7ca300.js +0 -1
- package/assets/esri/core/workers/chunks/c99fa4189a114370b004.js +0 -1
- package/assets/esri/core/workers/chunks/daa79c14150c12d8bc3d.js +0 -1
- package/assets/esri/core/workers/chunks/ebd006fcd568a7731115.js +0 -1
- package/assets/esri/core/workers/chunks/f67388c4b7103fda6633.js +0 -1
- package/views/3d/analysis/Slice/images/Factory.js +0 -5
- /package/assets/esri/views/3d/analysis/{Slice/images → images}/heading-rotate.ts.svg +0 -0
- /package/assets/esri/views/3d/analysis/{Slice/images → images}/tilt-rotate.ts.svg +0 -0
- /package/views/3d/analysis/{Slice/images → images}/generateTextures.js +0 -0
- /package/views/3d/analysis/{Slice/images → images}/heading-rotate-svg.js +0 -0
- /package/views/3d/analysis/{Slice/images → images}/tilt-rotate-svg.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3248],{46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,i,s,a,c){return[t,e,n,r,o,i,s,a,c]}function i(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>i,c:()=>r,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:i,fromValues:o},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{A:()=>m,a:()=>c,d:()=>_,e:()=>l,f:()=>f,g:()=>g,h:()=>p,i:()=>s,j:()=>O,k:()=>d,m:()=>h,s:()=>i,t:()=>a,w:()=>u,y:()=>R,z:()=>E});var r=n(65617),o=n(46851);function i(t,e,n,r,o,i,s,a,c,h,u,d,l,f,_,m,M){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=s,t[6]=a,t[7]=c,t[8]=h,t[9]=u,t[10]=d,t[11]=l,t[12]=f,t[13]=_,t[14]=m,t[15]=M,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function a(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],i=e[6],s=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=i,t[11]=e[14],t[12]=o,t[13]=s,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],c=e[6],h=e[7],u=e[8],d=e[9],l=e[10],f=e[11],_=e[12],m=e[13],M=e[14],b=e[15],g=n*a-r*s,T=n*c-o*s,p=n*h-i*s,O=r*c-o*a,E=r*h-i*a,R=o*h-i*c,S=u*m-d*_,N=u*M-l*_,A=u*b-f*_,x=d*M-l*m,F=d*b-f*m,I=l*b-f*M;let P=g*I-T*F+p*x+O*A-E*N+R*S;return P?(P=1/P,t[0]=(a*I-c*F+h*x)*P,t[1]=(o*F-r*I-i*x)*P,t[2]=(m*R-M*E+b*O)*P,t[3]=(l*E-d*R-f*O)*P,t[4]=(c*A-s*I-h*N)*P,t[5]=(n*I-o*A+i*N)*P,t[6]=(M*p-_*R-b*T)*P,t[7]=(u*R-l*p+f*T)*P,t[8]=(s*F-a*A+h*S)*P,t[9]=(r*A-n*F-i*S)*P,t[10]=(_*E-m*p+b*g)*P,t[11]=(d*p-u*E-f*g)*P,t[12]=(a*N-s*x-c*S)*P,t[13]=(n*x-r*N+o*S)*P,t[14]=(m*T-_*O-M*g)*P,t[15]=(u*O-d*T+l*g)*P,t):null}function h(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],c=e[5],h=e[6],u=e[7],d=e[8],l=e[9],f=e[10],_=e[11],m=e[12],M=e[13],b=e[14],g=e[15];let T=n[0],p=n[1],O=n[2],E=n[3];return t[0]=T*r+p*a+O*d+E*m,t[1]=T*o+p*c+O*l+E*M,t[2]=T*i+p*h+O*f+E*b,t[3]=T*s+p*u+O*_+E*g,T=n[4],p=n[5],O=n[6],E=n[7],t[4]=T*r+p*a+O*d+E*m,t[5]=T*o+p*c+O*l+E*M,t[6]=T*i+p*h+O*f+E*b,t[7]=T*s+p*u+O*_+E*g,T=n[8],p=n[9],O=n[10],E=n[11],t[8]=T*r+p*a+O*d+E*m,t[9]=T*o+p*c+O*l+E*M,t[10]=T*i+p*h+O*f+E*b,t[11]=T*s+p*u+O*_+E*g,T=n[12],p=n[13],O=n[14],E=n[15],t[12]=T*r+p*a+O*d+E*m,t[13]=T*o+p*c+O*l+E*M,t[14]=T*i+p*h+O*f+E*b,t[15]=T*s+p*u+O*_+E*g,t}function u(t,e,n){const r=n[0],o=n[1],i=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*i+e[12],t[13]=e[1]*r+e[5]*o+e[9]*i+e[13],t[14]=e[2]*r+e[6]*o+e[10]*i+e[14],t[15]=e[3]*r+e[7]*o+e[11]*i+e[15];else{const n=e[0],s=e[1],a=e[2],c=e[3],h=e[4],u=e[5],d=e[6],l=e[7],f=e[8],_=e[9],m=e[10],M=e[11];t[0]=n,t[1]=s,t[2]=a,t[3]=c,t[4]=h,t[5]=u,t[6]=d,t[7]=l,t[8]=f,t[9]=_,t[10]=m,t[11]=M,t[12]=n*r+h*o+f*i+e[12],t[13]=s*r+u*o+_*i+e[13],t[14]=a*r+d*o+m*i+e[14],t[15]=c*r+l*o+M*i+e[15]}return t}function d(t,e,n){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function l(t,e,n,r){let i,s,a,c,h,u,d,l,f,_,m,M,b,g,T,p,O,E,R,S,N,A,x,F,I=r[0],P=r[1],j=r[2],B=Math.sqrt(I*I+P*P+j*j);return B<(0,o.g)()?null:(B=1/B,I*=B,P*=B,j*=B,i=Math.sin(n),s=Math.cos(n),a=1-s,c=e[0],h=e[1],u=e[2],d=e[3],l=e[4],f=e[5],_=e[6],m=e[7],M=e[8],b=e[9],g=e[10],T=e[11],p=I*I*a+s,O=P*I*a+j*i,E=j*I*a-P*i,R=I*P*a-j*i,S=P*P*a+s,N=j*P*a+I*i,A=I*j*a+P*i,x=P*j*a-I*i,F=j*j*a+s,t[0]=c*p+l*O+M*E,t[1]=h*p+f*O+b*E,t[2]=u*p+_*O+g*E,t[3]=d*p+m*O+T*E,t[4]=c*R+l*S+M*N,t[5]=h*R+f*S+b*N,t[6]=u*R+_*S+g*N,t[7]=d*R+m*S+T*N,t[8]=c*A+l*x+M*F,t[9]=h*A+f*x+b*F,t[10]=u*A+_*x+g*F,t[11]=d*A+m*x+T*F,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function f(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function _(t,e,n){if(0===e)return s(t);let r,i,a,c=n[0],h=n[1],u=n[2],d=Math.sqrt(c*c+h*h+u*u);return d<(0,o.g)()?null:(d=1/d,c*=d,h*=d,u*=d,r=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=c*c*a+i,t[1]=h*c*a+u*r,t[2]=u*c*a-h*r,t[3]=0,t[4]=c*h*a-u*r,t[5]=h*h*a+i,t[6]=u*h*a+c*r,t[7]=0,t[8]=c*u*a+h*r,t[9]=h*u*a-c*r,t[10]=u*u*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function m(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=r+r,c=o+o,h=i+i,u=r*a,d=r*c,l=r*h,f=o*c,_=o*h,m=i*h,M=s*a,b=s*c,g=s*h;return t[0]=1-(f+m),t[1]=d+g,t[2]=l-b,t[3]=0,t[4]=d-g,t[5]=1-(u+m),t[6]=_+M,t[7]=0,t[8]=l+b,t[9]=_-M,t[10]=1-(u+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const b=(0,r.c)();function g(t,e,n,r){const o=e[0],i=e[1],s=e[2],a=e[3],c=o+o,h=i+i,u=s+s,d=o*c,l=o*h,f=o*u,_=i*h,m=i*u,M=s*u,b=a*c,g=a*h,T=a*u,p=r[0],O=r[1],E=r[2];return t[0]=(1-(_+M))*p,t[1]=(l+T)*p,t[2]=(f-g)*p,t[3]=0,t[4]=(l-T)*O,t[5]=(1-(d+M))*O,t[6]=(m+b)*O,t[7]=0,t[8]=(f+g)*E,t[9]=(m-b)*E,t[10]=(1-(d+_))*E,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function T(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function p(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function O(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],s=t[3],a=t[4],c=t[5],h=t[6],u=t[7],d=t[8],l=t[9],f=t[10],_=t[11],m=t[12],M=t[13],b=t[14],g=t[15],T=e[0],p=e[1],O=e[2],E=e[3],R=e[4],S=e[5],N=e[6],A=e[7],x=e[8],F=e[9],I=e[10],P=e[11],j=e[12],B=e[13],y=e[14],v=e[15],w=(0,o.g)();return Math.abs(n-T)<=w*Math.max(1,Math.abs(n),Math.abs(T))&&Math.abs(r-p)<=w*Math.max(1,Math.abs(r),Math.abs(p))&&Math.abs(i-O)<=w*Math.max(1,Math.abs(i),Math.abs(O))&&Math.abs(s-E)<=w*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(a-R)<=w*Math.max(1,Math.abs(a),Math.abs(R))&&Math.abs(c-S)<=w*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(h-N)<=w*Math.max(1,Math.abs(h),Math.abs(N))&&Math.abs(u-A)<=w*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(d-x)<=w*Math.max(1,Math.abs(d),Math.abs(x))&&Math.abs(l-F)<=w*Math.max(1,Math.abs(l),Math.abs(F))&&Math.abs(f-I)<=w*Math.max(1,Math.abs(f),Math.abs(I))&&Math.abs(_-P)<=w*Math.max(1,Math.abs(_),Math.abs(P))&&Math.abs(m-j)<=w*Math.max(1,Math.abs(m),Math.abs(j))&&Math.abs(M-B)<=w*Math.max(1,Math.abs(M),Math.abs(B))&&Math.abs(b-y)<=w*Math.max(1,Math.abs(b),Math.abs(y))&&Math.abs(g-v)<=w*Math.max(1,Math.abs(g),Math.abs(v))}function E(t){const e=(0,o.g)(),n=t[0],r=t[1],i=t[2],s=t[4],a=t[5],c=t[6],h=t[8],u=t[9],d=t[10];return Math.abs(1-(n*n+s*s+h*h))<=e&&Math.abs(1-(r*r+a*a+u*u))<=e&&Math.abs(1-(i*i+c*c+d*d))<=e}function R(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const S=h,N=T;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],c=e[6],h=e[7],u=e[8],d=e[9],l=e[10],f=e[11],_=e[12],m=e[13],M=e[14],b=e[15];return t[0]=a*(l*b-f*M)-d*(c*b-h*M)+m*(c*f-h*l),t[1]=-(r*(l*b-f*M)-d*(o*b-i*M)+m*(o*f-i*l)),t[2]=r*(c*b-h*M)-a*(o*b-i*M)+m*(o*h-i*c),t[3]=-(r*(c*f-h*l)-a*(o*f-i*l)+d*(o*h-i*c)),t[4]=-(s*(l*b-f*M)-u*(c*b-h*M)+_*(c*f-h*l)),t[5]=n*(l*b-f*M)-u*(o*b-i*M)+_*(o*f-i*l),t[6]=-(n*(c*b-h*M)-s*(o*b-i*M)+_*(o*h-i*c)),t[7]=n*(c*f-h*l)-s*(o*f-i*l)+u*(o*h-i*c),t[8]=s*(d*b-f*m)-u*(a*b-h*m)+_*(a*f-h*d),t[9]=-(n*(d*b-f*m)-u*(r*b-i*m)+_*(r*f-i*d)),t[10]=n*(a*b-h*m)-s*(r*b-i*m)+_*(r*h-i*a),t[11]=-(n*(a*f-h*d)-s*(r*f-i*d)+u*(r*h-i*a)),t[12]=-(s*(d*M-l*m)-u*(a*M-c*m)+_*(a*l-c*d)),t[13]=n*(d*M-l*m)-u*(r*M-o*m)+_*(r*l-o*d),t[14]=-(n*(a*M-c*m)-s*(r*M-o*m)+_*(r*c-o*a)),t[15]=n*(a*l-c*d)-s*(r*l-o*d)+u*(r*c-o*a),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],s=t[5],a=t[6],c=t[7],h=t[8],u=t[9],d=t[10],l=t[11],f=t[12],_=t[13],m=t[14],M=t[15];return(e*s-n*i)*(d*M-l*m)-(e*a-r*i)*(u*M-l*_)+(e*c-o*i)*(u*m-d*_)+(n*a-r*s)*(h*M-l*f)-(n*c-o*s)*(h*m-d*f)+(r*c-o*a)*(h*_-u*f)},equals:O,exactEquals:p,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=n+n,a=r+r,c=o+o,h=n*s,u=r*s,d=r*a,l=o*s,f=o*a,_=o*c,m=i*s,M=i*a,b=i*c;return t[0]=1-d-_,t[1]=u+b,t[2]=l-M,t[3]=0,t[4]=u-b,t[5]=1-h-_,t[6]=f+m,t[7]=0,t[8]=l+M,t[9]=f-m,t[10]=1-h-d,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=b,r=-e[0],o=-e[1],i=-e[2],s=e[3],a=e[4],c=e[5],h=e[6],u=e[7],d=r*r+o*o+i*i+s*s;return d>0?(n[0]=2*(a*s+u*r+c*i-h*o)/d,n[1]=2*(c*s+u*o+h*r-a*i)/d,n[2]=2*(h*s+u*i+a*o-c*r)/d):(n[0]=2*(a*s+u*r+c*i-h*o),n[1]=2*(c*s+u*o+h*r-a*i),n[2]=2*(h*s+u*i+a*o-c*r)),M(t,e,n),t},fromRotation:_,fromRotationTranslation:M,fromRotationTranslationScale:g,fromRotationTranslationScaleOrigin:function(t,e,n,r,o){const i=e[0],s=e[1],a=e[2],c=e[3],h=i+i,u=s+s,d=a+a,l=i*h,f=i*u,_=i*d,m=s*u,M=s*d,b=a*d,g=c*h,T=c*u,p=c*d,O=r[0],E=r[1],R=r[2],S=o[0],N=o[1],A=o[2],x=(1-(m+b))*O,F=(f+p)*O,I=(_-T)*O,P=(f-p)*E,j=(1-(l+b))*E,B=(M+g)*E,y=(_+T)*R,v=(M-g)*R,w=(1-(l+m))*R;return t[0]=x,t[1]=F,t[2]=I,t[3]=0,t[4]=P,t[5]=j,t[6]=B,t[7]=0,t[8]=y,t[9]=v,t[10]=w,t[11]=0,t[12]=n[0]+S-(x*S+P*N+y*A),t[13]=n[1]+N-(F*S+j*N+v*A),t[14]=n[2]+A-(I*S+B*N+w*A),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:f,fromXRotation:m,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,r,o,i,s){const a=1/(n-e),c=1/(o-r),h=1/(i-s);return t[0]=2*i*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*c,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(o+r)*c,t[10]=(s+i)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*i*2*h,t[15]=0,t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},getScaling:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[4],s=e[5],a=e[6],c=e[8],h=e[9],u=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(i*i+s*s+a*a),t[2]=Math.sqrt(c*c+h*h+u*u),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:R,identity:s,invert:c,invertOrIdentity:function(t,e){return c(t,e)||s(t),t},isOrthoNormal:E,lookAt:function(t,e,n,r){const i=e[0],a=e[1],c=e[2];let h=i-n[0],u=a-n[1],d=c-n[2];const l=(0,o.g)();if(Math.abs(h)<l&&Math.abs(u)<l&&Math.abs(d)<l)return void s(t);let f=1/Math.sqrt(h*h+u*u+d*d);h*=f,u*=f,d*=f;const _=r[0],m=r[1],M=r[2];let b=m*d-M*u,g=M*h-_*d,T=_*u-m*h;f=Math.sqrt(b*b+g*g+T*T),f?(f=1/f,b*=f,g*=f,T*=f):(b=0,g=0,T=0);let p=u*T-d*g,O=d*b-h*T,E=h*g-u*b;f=Math.sqrt(p*p+O*O+E*E),f?(f=1/f,p*=f,O*=f,E*=f):(p=0,O=0,E=0),t[0]=b,t[1]=p,t[2]=h,t[3]=0,t[4]=g,t[5]=O,t[6]=u,t[7]=0,t[8]=T,t[9]=E,t[10]=d,t[11]=0,t[12]=-(b*i+g*a+T*c),t[13]=-(p*i+O*a+E*c),t[14]=-(h*i+u*a+d*c),t[15]=1},mul:S,multiply:h,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,i,s){const a=1/(e-n),c=1/(r-o),h=1/(i-s);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*a,t[13]=(o+r)*c,t[14]=(s+i)*h,t[15]=1,t},perspective:function(t,e,n,r,o){const i=1/Math.tan(e/2);let s;return t[0]=i/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(s=1/(r-o),t[10]=(o+r)*s,t[14]=2*o*r*s):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),c=2/(s+a),h=2/(o+i);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(s-a)*c*.5,t[9]=(o-i)*h*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:l,rotateX:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),i=e[4],s=e[5],a=e[6],c=e[7],h=e[8],u=e[9],d=e[10],l=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*o+h*r,t[5]=s*o+u*r,t[6]=a*o+d*r,t[7]=c*o+l*r,t[8]=h*o-i*r,t[9]=u*o-s*r,t[10]=d*o-a*r,t[11]=l*o-c*r,t},rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),i=e[0],s=e[1],a=e[2],c=e[3],h=e[8],u=e[9],d=e[10],l=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*o-h*r,t[1]=s*o-u*r,t[2]=a*o-d*r,t[3]=c*o-l*r,t[8]=i*r+h*o,t[9]=s*r+u*o,t[10]=a*r+d*o,t[11]=c*r+l*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),i=e[0],s=e[1],a=e[2],c=e[3],h=e[4],u=e[5],d=e[6],l=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*o+h*r,t[1]=s*o+u*r,t[2]=a*o+d*r,t[3]=c*o+l*r,t[4]=h*o-i*r,t[5]=u*o-s*r,t[6]=d*o-a*r,t[7]=l*o-c*r,t},scale:d,set:i,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:N,subtract:T,targetTo:function(t,e,n,r){const o=e[0],i=e[1],s=e[2],a=r[0],c=r[1],h=r[2];let u=o-n[0],d=i-n[1],l=s-n[2],f=u*u+d*d+l*l;f>0&&(f=1/Math.sqrt(f),u*=f,d*=f,l*=f);let _=c*l-h*d,m=h*u-a*l,M=a*d-c*u;return f=_*_+m*m+M*M,f>0&&(f=1/Math.sqrt(f),_*=f,m*=f,M*=f),t[0]=_,t[1]=m,t[2]=M,t[3]=0,t[4]=d*M-l*m,t[5]=l*_-u*M,t[6]=u*m-d*_,t[7]=0,t[8]=u,t[9]=d,t[10]=l,t[11]=0,t[12]=o,t[13]=i,t[14]=s,t[15]=1,t},translate:u,transpose:a},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}function i(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>s,a:()=>i,b:()=>o,c:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,createView:i,fromValues:function(t,e,n,r,o,i,s,a,c,h,u,d,l,f,_,m){return[t,e,n,r,o,i,s,a,c,h,u,d,l,f,_,m]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}function i(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>s,a:()=>o,b:()=>r,c:()=>i});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,createView:i,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},8310:(t,e,n)=>{n.d(e,{a:()=>b,c:()=>m,g:()=>g,h:()=>M,j:()=>O,l:()=>F}),n(80442);var r=n(92604),o=n(22021),i=n(52138),s=n(17896),a=n(65617),c=n(98766),h=n(88669),u=n(62155),d=n(78341),l=n(61277),f=n(12981);const _=m();function m(){return(0,h.c)()}function M(t,e=m()){return(0,c.c)(e,t)}function b(t){return t[3]}function g(t){return t}function T(t,e,n){if(null==e)return!1;const{origin:r,direction:o}=e,i=p;i[0]=r[0]-t[0],i[1]=r[1]-t[1],i[2]=r[2]-t[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===s)return!1;const a=2*(o[0]*i[0]+o[1]*i[1]+o[2]*i[2]),c=a*a-4*s*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-t[3]*t[3]);if(c<0)return!1;const h=Math.sqrt(c);let u=(-a-h)/(2*s);const d=(-a+h)/(2*s);return(u<0||d<u&&d>0)&&(u=d),!(u<0||(n&&(n[0]=r[0]+o[0]*u,n[1]=r[1]+o[1]*u,n[2]=r[2]+o[2]*u),0))}const p=(0,a.c)();function O(t,e){return T(t,e,null)}function E(t,e,n){const r=f.WM.get(),o=f.MP.get();(0,s.c)(r,e.origin,e.direction);const a=b(t);(0,s.c)(n,r,e.origin),(0,s.b)(n,n,1/(0,s.l)(n)*a);const c=S(t,e.origin),h=(0,l.EU)(e.origin,n);return(0,i.d)(o,h+c,r),(0,s.m)(n,n,o),n}function R(t,e,n){const r=(0,s.g)(f.WM.get(),e,t),o=(0,s.b)(f.WM.get(),r,t[3]/(0,s.l)(r));return(0,s.e)(n,o,t)}function S(t,e){const n=(0,s.g)(f.WM.get(),e,t),r=(0,s.l)(n),i=b(t),a=i+Math.abs(i-r);return(0,o.ZF)(i/a)}const N=(0,a.c)();function A(t,e,n,r){const i=(0,s.g)(N,e,t);switch(n){case u.R.X:{const t=(0,o.jE)(i,N)[2];return(0,s.s)(r,-Math.sin(t),Math.cos(t),0)}case u.R.Y:{const t=(0,o.jE)(i,N),e=t[1],n=t[2],a=Math.sin(e);return(0,s.s)(r,-a*Math.cos(n),-a*Math.sin(n),Math.cos(e))}case u.R.Z:return(0,s.n)(r,i);default:return}}function x(t,e){const n=(0,s.g)(I,e,t);return(0,s.l)(n)-t[3]}function F(t,e){const n=(0,s.a)(t,e),r=b(t);return n<=r*r}const I=(0,a.c)(),P=m();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:_,altitudeAt:x,angleToSilhouette:S,axisAt:A,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return T(t,e,n)?n:((0,d.JI)(e,t,n),R(t,n,n))},closestPointOnSilhouette:E,containsPoint:F,copy:M,create:m,distanceToSilhouette:function(t,e){const n=(0,s.g)(f.WM.get(),e,t),r=(0,s.p)(n),o=t[3]*t[3];return Math.sqrt(Math.abs(r-o))},elevate:function(t,e,n){return t!==n&&(0,s.i)(n,t),n[3]=t[3]+e,n},fromCenterAndRadius:function(t,e){return(0,h.f)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:function(t,e,n,r){return(0,h.f)(t,e,n,r)},getCenter:g,getRadius:b,intersectRay:T,intersectRayClosestSilhouette:function(t,e,n){if(T(t,e,n))return n;const r=E(t,e,f.WM.get());return(0,s.e)(n,e.origin,(0,s.b)(f.WM.get(),e.direction,(0,s.h)(e.origin,r)/(0,s.l)(e.direction))),n},intersectsRay:O,projectPoint:R,setAltitudeAt:function(t,e,n,r){const o=x(t,e),i=A(t,e,u.R.Z,I),a=(0,s.b)(I,i,n-o);return(0,s.e)(r,e,a)},setExtent:function(t,e,n){return r.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:M(t,n)},tmpSphere:P,union:function(t,e,n=m()){const r=(0,s.h)(t,e),o=t[3],i=e[3];return r+i<o?((0,c.c)(n,t),n):r+o<i?((0,c.c)(n,e),n):((0,s.f)(n,t,e,(r+i-o)/(2*r)),n[3]=(r+o+i)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},91303:(t,e,n)=>{var r;n.d(e,{Y:()=>r}),function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(r||(r={}))},22807:(t,e,n)=>{n.d(e,{x:()=>o});var r=n(41213);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},62155:(t,e,n)=>{var r;n.d(e,{R:()=>r}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(r||(r={}))},16996:(t,e,n)=>{n.d(e,{Ue:()=>c,nF:()=>u,zk:()=>h});var r=n(22021),o=n(22807),i=n(17896),s=n(65617),a=n(12981);function c(t){return t?{origin:(0,s.a)(t.origin),vector:(0,s.a)(t.vector)}:{origin:(0,s.c)(),vector:(0,s.c)()}}function h(t,e,n=c()){return(0,i.i)(n.origin,t),(0,i.g)(n.vector,e,t),n}function u(t,e,n){return function(t,e,n,o,s){const{vector:c,origin:h}=t,u=(0,i.g)(a.WM.get(),e,h),d=(0,i.d)(c,u)/(0,i.p)(c);return(0,i.b)(s,c,(0,r.uZ)(d,0,1)),(0,i.e)(s,s,t.origin)}(t,e,0,0,n)}(0,s.c)(),(0,s.c)(),new o.x((()=>c()))},62073:(t,e,n)=>{n.d(e,{Ue:()=>i,zu:()=>s,mJ:()=>f}),n(22021);var r=n(17896),o=n(65617);function i(t=_){return[t[0],t[1],t[2],t[3]]}function s(t,e,n,o=0,f=Math.floor(n*(1/3)),_=Math.floor(n*(2/3))){if(n<3)return!1;e(c,o);let m=f,M=!1;for(;m<n-1&&!M;)e(h,m),m++,M=!(0,r.k)(c,h);if(!M)return!1;for(m=Math.max(m,_),M=!1;m<n&&!M;)e(u,m),m++,(0,r.g)(d,c,h),(0,r.n)(d,d),(0,r.g)(l,h,u),(0,r.n)(l,l),M=!(0,r.k)(c,u)&&!(0,r.k)(h,u)&&Math.abs((0,r.d)(d,l))<a;return M?(function(t,e,n,r=i()){const o=n[0]-e[0],s=n[1]-e[1],a=n[2]-e[2],c=t[0]-e[0],h=t[1]-e[1],u=t[2]-e[2],d=s*u-a*h,l=a*c-o*u,f=o*h-s*c,_=d*d+l*l+f*f,m=Math.abs(_-1)>1e-5&&_>1e-12?1/Math.sqrt(_):1;r[0]=d*m,r[1]=l*m,r[2]=f*m,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2])}(c,h,u,t),!0):(0!==o||1!==f||2!==_)&&s(t,e,n,0,1,2)}n(8310),n(61277),n(12981),(0,o.c)(),(0,o.c)(),(0,o.c)(),(0,o.c)(),(0,o.c)();const a=.99619469809,c=(0,o.c)(),h=(0,o.c)(),u=(0,o.c)(),d=(0,o.c)(),l=(0,o.c)();function f(t){return t}const _=[0,0,1,0];var m,M;(M=m||(m={}))[M.NONE=0]="NONE",M[M.CLAMP=1]="CLAMP",M[M.INFINITE_MIN=4]="INFINITE_MIN",M[M.INFINITE_MAX=8]="INFINITE_MAX",m.INFINITE_MIN,m.INFINITE_MAX,m.INFINITE_MAX},78341:(t,e,n)=>{n.d(e,{JI:()=>h,Ue:()=>s,re:()=>c}),n(67676);var r=n(22807),o=n(17896),i=n(65617);function s(t){return t?a((0,i.a)(t.origin),(0,i.a)(t.direction)):a((0,i.c)(),(0,i.c)())}function a(t,e){return{origin:t,direction:e}}function c(t,e){const n=u.get();return n.origin=t,n.direction=e,n}function h(t,e,n){const r=(0,o.d)(t.direction,(0,o.g)(n,e,t.origin));return(0,o.e)(n,t.origin,(0,o.b)(n,t.direction,r)),n}n(12981);const u=new r.x((()=>s()))},61277:(t,e,n)=>{n.d(e,{EU:()=>s});var r=n(22021),o=n(17896),i=n(65617);function s(t,e){const n=(0,o.d)(t,e)/((0,o.l)(t)*(0,o.l)(e));return-(0,r.ZF)(n)}(0,i.c)(),(0,i.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>_,WM:()=>f});var r=n(91303),o=n(41213),i=n(46521),s=n(13598),a=n(94961),c=n(97323),h=n(65617),u=n(88669);class d{constructor(t,e,n){this._itemByteSize=t,this._itemCreate=e,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(n/this._itemByteSize)}get(){0===this._itemsPtr&&(0,o.Y)((()=>this._reset()));const t=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=t;){const t=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let e=0;e<this._itemsPerBuffer;++e)this._items.push(this._itemCreate(t,e*this._itemByteSize));this._buffers.push(t)}return this._items[this._itemsPtr++]}_reset(){const t=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>t;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(t=l){return new d(16,c.c,t)}static createVec3f64(t=l){return new d(24,h.b,t)}static createVec4f64(t=l){return new d(32,u.a,t)}static createMat3f64(t=l){return new d(72,i.a,t)}static createMat4f64(t=l){return new d(128,s.a,t)}static createQuatf64(t=l){return new d(32,a.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const l=4*r.Y.KILOBYTES,f=(d.createVec2f64(),d.createVec3f64()),_=(d.createVec4f64(),d.createMat3f64(),d.createMat4f64());d.createQuatf64()},73248:(t,e,n)=>{n.r(e),n.d(e,{default:()=>Q});var r,o,i=n(43697),s=n(95330),a=(n(92604),n(75215),n(67676),n(80442),n(20102),n(52011)),c=n(17896),h=n(65617),u=n(16996),d=n(8310),l=n(71143),f=n(44553),_=n(22807),m=(n(52138),n(98766),n(88669)),M=n(78341);function b(t){return t?{ray:(0,M.Ue)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,M.Ue)(),c0:0,c1:Number.MAX_VALUE}}function g(t,e){for(let n=0;n<T;n++){const r=t[n];if(r[0]*e[0]+r[1]*e[1]+r[2]*e[2]+r[3]>=e[3])return!1}return!0}new _.x((()=>b())),n(62073),n(12981),function(t){t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t[t.BOTTOM=2]="BOTTOM",t[t.TOP=3]="TOP",t[t.NEAR=4]="NEAR",t[t.FAR=5]="FAR"}(r||(r={})),function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(o||(o={})),o.FAR_BOTTOM_RIGHT,o.NEAR_BOTTOM_RIGHT,o.NEAR_BOTTOM_LEFT,o.FAR_BOTTOM_LEFT,o.NEAR_BOTTOM_LEFT,o.NEAR_BOTTOM_RIGHT,o.NEAR_TOP_RIGHT,o.NEAR_TOP_LEFT,o.FAR_BOTTOM_RIGHT,o.FAR_BOTTOM_LEFT,o.FAR_TOP_LEFT,o.FAR_TOP_RIGHT,o.NEAR_BOTTOM_RIGHT,o.FAR_BOTTOM_RIGHT,o.FAR_TOP_RIGHT,o.NEAR_TOP_RIGHT,o.FAR_BOTTOM_LEFT,o.NEAR_BOTTOM_LEFT,o.NEAR_TOP_LEFT,o.FAR_TOP_LEFT,o.FAR_TOP_LEFT,o.NEAR_TOP_LEFT,o.NEAR_TOP_RIGHT,o.FAR_TOP_RIGHT;const T=6;(0,m.f)(-1,-1,-1,1),(0,m.f)(1,-1,-1,1),(0,m.f)(1,1,-1,1),(0,m.f)(-1,1,-1,1),(0,m.f)(-1,-1,1,1),(0,m.f)(1,-1,1,1),(0,m.f)(1,1,1,1),(0,m.f)(-1,1,1,1),new _.x(b),(0,h.c)(),(0,h.c)(),(0,h.c)(),(0,h.c)(),(0,h.c)(),(0,h.c)(),(0,h.c)(),(0,h.c)();var p,O,E=n(11726);class R{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new S,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),S.clearPool(),w[0]=null,D.prune(),W.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=S.acquire();for(let r=0;r<e;r++){const e=t[r];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}S.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=S.acquire();for(const r of t){const t=null!=e?e:(0,d.h)(this.objectToBoundingSphere(r),G);j(t[3])?(n.init(this._root),this._remove(r,t,n)):this._degenerateObjects.delete(r)}S.release(n),this._shrink()}update(t,e){if(!j(e[3])&&this._isDegenerate(t))return;const n=function(t){return w[0]=t,w}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const r=(0,M.re)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNode(r,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(r,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(r,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,r){const o=(0,M.re)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNodeWithOffset(o,t,r))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(o,t,r)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(o,t,r)&&n(t)})),!0}))}forEach(t){this._forEachNode(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,r=(()=>!0),o=1/0){let i=1/0,s=1/0,a=null;const h=I(t,e),u=c=>{if(--o,!r(c))return;const h=this.objectToBoundingSphere(c);if(!g(n,h))return;const u=P(t,e,(0,d.g)(h)),l=u-h[3],f=u+h[3];l<i&&(i=l,s=f,a=c)};return this._forEachNodeDepthOrdered(this._root,(r=>{if(o<=0||!g(n,r.bounds))return!1;if((0,c.b)(L,h,r.halfSize),(0,c.e)(L,L,r.bounds),P(t,e,L)>s)return!1;const i=r.node;return i.terminals.forAll((t=>u(t))),null!==i.residents&&i.residents.forAll((t=>u(t))),!0}),t,e),a}forEachInDepthRange(t,e,n,r,o,i,s){let a=-1/0,h=1/0;const u={setRange:t=>{n===R.DepthOrder.FRONT_TO_BACK?(a=Math.max(a,t.near),h=Math.min(h,t.far)):(a=Math.max(a,-t.far),h=Math.min(h,-t.near))}};u.setRange(r);const l=P(e,n,t),f=I(e,n),_=I(e,-n),m=t=>{if(!s(t))return;const r=this.objectToBoundingSphere(t),c=(0,d.g)(r),f=P(e,n,c)-l,_=f-r[3],m=f+r[3];_>h||m<a||!g(i,r)||o(t,u)};this._forEachNodeDepthOrdered(this._root,(t=>{if(!g(i,t.bounds))return!1;if((0,c.b)(L,f,t.halfSize),(0,c.e)(L,L,t.bounds),P(e,n,L)-l>h)return!1;if((0,c.b)(L,_,t.halfSize),(0,c.e)(L,L,t.bounds),P(e,n,L)-l<a)return!1;const r=t.node;return r.terminals.forAll((t=>m(t))),null!==r.residents&&r.residents.forAll((t=>m(t))),!0}),e,n)}forEachNode(t){this._forEachNode(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,d.a)(e),r=(0,d.g)(e),o=e=>{const o=this.objectToBoundingSphere(e),i=(0,d.a)(o),s=n+i;return!((0,c.a)((0,d.g)(o),r)-s*s<=0)||t(e)};let i=!0;const s=t=>{i&&(i=o(t))};this._forEachNode(this._root,(t=>{const e=(0,d.a)(t.bounds),o=n+e;if((0,c.a)((0,d.g)(t.bounds),r)-o*o>0)return!1;const a=t.node;return a.terminals.forAll(s),i&&null!==a.residents&&a.residents.forAll(s),i})),i&&this.forEachDegenerateObject(s)}_intersectsNode(t,e){return x(e.bounds,2*-e.halfSize,C),x(e.bounds,2*e.halfSize,q),(0,E.yK)(t.origin,t.direction,C,q)}_intersectsNodeWithOffset(t,e,n){return x(e.bounds,2*-e.halfSize,C),x(e.bounds,2*e.halfSize,q),n.applyToMinMax(C,q),(0,E.yK)(t.origin,t.direction,C,q)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,d.j)(n,t)}_intersectsObjectWithOffset(t,e,n){const r=this.objectToBoundingSphere(e);return!(r[3]>0)||(0,d.j)(n.applyToBoundingSphere(r),t)}_forEachNode(t,e){let n=S.acquire().init(t);const r=[n];for(;0!==r.length;){if(n=r.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&r.push(S.acquire().init(n).advance(t));S.release(n)}}_forEachNodeDepthOrdered(t,e,n,r=R.DepthOrder.FRONT_TO_BACK){let o=S.acquire().init(t);const i=[o];for(function(t,e,n){if(!W.length)for(let t=0;t<8;++t)W.push({index:0,distance:0});for(let n=0;n<8;++n){const r=B[n];W.data[n].index=n,W.data[n].distance=P(t,e,r)}W.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=W.data[t].index}(n,r,Z);0!==i.length;){if(o=i.pop(),e(o)&&!o.isLeaf())for(let t=7;t>=0;--t){const e=Z[t];o.node.children[e]&&i.push(S.acquire().init(o).advance(e))}S.release(o)}}_remove(t,e,n){D.clear();const r=n.advanceTo(e,((t,e)=>{D.push(t.node),D.push(e)}))?n.node.terminals:n.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=D.length-2;t>=0;t-=2){const e=D.data[t],n=D.data[t+1];if(!this._purge(e,n))break}}_nodeIsEmpty(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}_purge(t,e){return e>=0&&(t.children[e]=null),!!this._nodeIsEmpty(t)&&(null===t.residents&&(t.residents=new f.Z({shrink:!0})),!0)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const r=S.acquire().init(t);this._add(e.at(n),r),S.release(r)}}_grow(t,e){if(0!==e&&(F(t,e,(t=>this.objectToBoundingSphere(t)),H),j(H[3])&&!this._fitsInsideTree(H)))if(this._nodeIsEmpty(this._root.node))(0,d.h)(H,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(H);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(H,t):this._growRootAsSubNode(t),S.release(t)}}_rebuildTree(t,e){(0,c.i)(V,e.bounds),V[3]=e.halfSize,F([t,V],2,(t=>t),k);const n=S.acquire().init(this._root);this._root.initFrom(null,k,k[3]),this._root.increaseHalfSize(1.25),this._forEachNode(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),S.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return this._forEachNode(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let r=-1/0;const o=this._root.bounds,i=this._root.halfSize;for(let t=0;t<3;t++){const s=o[t]-i-(n[t]-e),a=n[t]+e-(o[t]+i),c=Math.max(0,Math.ceil(s/(2*i))),h=Math.max(0,Math.ceil(a/(2*i)))+1,u=2**Math.ceil(Math.log(c+h)*Math.LOG2E);r=Math.max(r,u),Y[t].min=c,Y[t].max=h}for(let t=0;t<3;t++){let e=Y[t].min,n=Y[t].max;const s=(r-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const a=o[t]-i-e*i*2;z[t]=a+(n+e)*i}const s=r*i;return z[3]=s*v,S.acquire().initFrom(null,z,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,c.i)(H,this._root.bounds),H[3]=this._root.halfSize,this._root.init(t),t.advanceTo(H,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,r=0;for(;r<e.length&&null==t;)n=r++,t=e[n];for(;r<e.length;)if(e[r++])return-1;return n}_isDegenerate(t){return!j(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,r=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:r}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),r=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:r}}static fromJSON(t){const e=new R((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class S{constructor(){this.bounds=(0,d.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,r=this.depth){return this.node=null!=t?t:S.createEmptyNode(),null!=e&&(0,d.h)(e,this.bounds),this.halfSize=n,this.depth=r,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*v}advance(t){let e=this.node.children[t];e||(e=S.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=B[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const r=this._childIndex(t);e&&e(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new f.Z({shrink:!0}),residents:new f.Z({shrink:!0})}}static acquire(){return S._pool.acquire()}static release(t){S._pool.release(t)}static clearPool(){S._pool.prune()}}function N(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function A(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function x(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function F(t,e,n,r){if(1===e){const e=n(t[0]);(0,d.h)(e,r)}else{C[0]=1/0,C[1]=1/0,C[2]=1/0,q[0]=-1/0,q[1]=-1/0,q[2]=-1/0;for(let r=0;r<e;r++){const e=n(t[r]);j(e[3])&&(N(C,e),A(q,e))}(0,c.f)(r,C,q,.5),r[3]=Math.max(q[0]-C[0],q[1]-C[1],q[2]-C[2])/2}}function I(t,e){let n,r=1/0;for(let o=0;o<8;++o){const i=P(t,e,y[o]);i<r&&(r=i,n=y[o])}return n}function P(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function j(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}S._pool=new l.Z(S),p=R||(R={}),(O=p.DepthOrder||(p.DepthOrder={}))[O.FRONT_TO_BACK=1]="FRONT_TO_BACK",O[O.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const B=[(0,h.f)(-1,-1,-1),(0,h.f)(1,-1,-1),(0,h.f)(-1,1,-1),(0,h.f)(1,1,-1),(0,h.f)(-1,-1,1),(0,h.f)(1,-1,1),(0,h.f)(-1,1,1),(0,h.f)(1,1,1)],y=[(0,h.f)(-1,-1,-1),(0,h.f)(-1,-1,1),(0,h.f)(-1,1,-1),(0,h.f)(-1,1,1),(0,h.f)(1,-1,-1),(0,h.f)(1,-1,1),(0,h.f)(1,1,-1),(0,h.f)(1,1,1)],v=Math.sqrt(3),w=[null],z=(0,d.c)(),L=(0,h.c)(),C=(0,h.c)(),q=(0,h.c)(),D=new f.Z,G=(0,d.c)(),H=(0,d.c)(),V=(0,d.c)(),k=(0,d.c)(),Y=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],W=new f.Z,Z=[0,0,0,0,0,0,0,0],K=R;var U=n(212);function X(t,e,n){const r=(0,d.c)(),o=(0,d.g)(r);return(0,c.q)(o,o,t,.5),(0,c.q)(o,o,e,.5),r[3]=(0,c.h)(o,t),(0,c.e)(o,o,n),r}let J=class{constructor(){this._idToComponent=new Map,this._components=new K((t=>t.bounds)),this._edges=new K((t=>t.bounds)),this._tmpLineSegment=(0,u.Ue)(),this._tmpP1=(0,h.c)(),this._tmpP2=(0,h.c)(),this._tmpP3=(0,h.c)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,s.k_)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:r}=t;n.push({id:e,uid:r})}return!0}),t.bounds),!n.length)return;const r={components:n},o=await this.remoteClient.invoke("fetchAllEdgeLocations",r,e??{});for(const t of o.components)this._setFetchEdgeLocations(t)}async add(t){const e=new $(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=U.n_.createView(t.locations),r=new Array(n.count),o=(0,h.c)(),i=(0,h.c)();for(let s=0;s<n.count;s++){n.position0.getVec(s,o),n.position1.getVec(s,i);const a=X(o,i,t.origin),c=new tt(e,s,a);r[s]=c}this._edges.add(r);const{objectIds:s,origin:a}=t;e.info={locations:n,objectIds:s,origin:a}}_addCandidates(t,e,n){const{info:r}=e.component,{origin:o,objectIds:i}=r,s=r.locations,a=s.position0.getVec(e.index,this._tmpP1),h=s.position1.getVec(e.index,this._tmpP2);(0,c.e)(a,a,o),(0,c.e)(h,h,o);const u=i[s.componentIndex.get(e.index)];this._addEdgeCandidate(t,u,a,h,n),this._addVertexCandidate(t,u,a,n),this._addVertexCandidate(t,u,h,n)}_addEdgeCandidate(t,e,n,r,o){if(!t.returnEdge)return;const i=(0,d.g)(t.bounds),s=(0,u.zk)(n,r,this._tmpLineSegment),a=(0,u.nF)(s,i,this._tmpP3);(0,d.l)(t.bounds,a)&&o.push({type:"edge",objectId:e,target:(0,h.a)(a),distance:(0,c.h)(i,a),start:(0,h.a)(n),end:(0,h.a)(r)})}_addVertexCandidate(t,e,n,r){if(!t.returnVertex)return;const o=(0,d.g)(t.bounds);(0,d.l)(t.bounds,n)&&r.push({type:"vertex",objectId:e,target:(0,h.a)(n),distance:(0,c.h)(o,n)})}};J=(0,i._)([(0,a.j)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],J);const Q=J;class ${constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++$.uid}}$.uid=0;class tt{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3248],{46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,i,s,a,c){return[t,e,n,r,o,i,s,a,c]}function i(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>i,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:i,fromValues:o},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{A:()=>m,a:()=>O,b:()=>d,c:()=>_,d:()=>f,e:()=>p,f:()=>b,g:()=>s,i:()=>c,k:()=>l,m:()=>h,s:()=>i,t:()=>a,w:()=>u,y:()=>R,z:()=>E});var r=n(65617),o=n(46851);function i(t,e,n,r,o,i,s,a,c,h,u,d,l,f,_,m,M){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=s,t[6]=a,t[7]=c,t[8]=h,t[9]=u,t[10]=d,t[11]=l,t[12]=f,t[13]=_,t[14]=m,t[15]=M,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function a(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],i=e[6],s=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=i,t[11]=e[14],t[12]=o,t[13]=s,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],c=e[6],h=e[7],u=e[8],d=e[9],l=e[10],f=e[11],_=e[12],m=e[13],M=e[14],g=e[15],b=n*a-r*s,T=n*c-o*s,p=n*h-i*s,O=r*c-o*a,E=r*h-i*a,R=o*h-i*c,S=u*m-d*_,N=u*M-l*_,A=u*g-f*_,x=d*M-l*m,F=d*g-f*m,I=l*g-f*M;let P=b*I-T*F+p*x+O*A-E*N+R*S;return P?(P=1/P,t[0]=(a*I-c*F+h*x)*P,t[1]=(o*F-r*I-i*x)*P,t[2]=(m*R-M*E+g*O)*P,t[3]=(l*E-d*R-f*O)*P,t[4]=(c*A-s*I-h*N)*P,t[5]=(n*I-o*A+i*N)*P,t[6]=(M*p-_*R-g*T)*P,t[7]=(u*R-l*p+f*T)*P,t[8]=(s*F-a*A+h*S)*P,t[9]=(r*A-n*F-i*S)*P,t[10]=(_*E-m*p+g*b)*P,t[11]=(d*p-u*E-f*b)*P,t[12]=(a*N-s*x-c*S)*P,t[13]=(n*x-r*N+o*S)*P,t[14]=(m*T-_*O-M*b)*P,t[15]=(u*O-d*T+l*b)*P,t):null}function h(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],c=e[5],h=e[6],u=e[7],d=e[8],l=e[9],f=e[10],_=e[11],m=e[12],M=e[13],g=e[14],b=e[15];let T=n[0],p=n[1],O=n[2],E=n[3];return t[0]=T*r+p*a+O*d+E*m,t[1]=T*o+p*c+O*l+E*M,t[2]=T*i+p*h+O*f+E*g,t[3]=T*s+p*u+O*_+E*b,T=n[4],p=n[5],O=n[6],E=n[7],t[4]=T*r+p*a+O*d+E*m,t[5]=T*o+p*c+O*l+E*M,t[6]=T*i+p*h+O*f+E*g,t[7]=T*s+p*u+O*_+E*b,T=n[8],p=n[9],O=n[10],E=n[11],t[8]=T*r+p*a+O*d+E*m,t[9]=T*o+p*c+O*l+E*M,t[10]=T*i+p*h+O*f+E*g,t[11]=T*s+p*u+O*_+E*b,T=n[12],p=n[13],O=n[14],E=n[15],t[12]=T*r+p*a+O*d+E*m,t[13]=T*o+p*c+O*l+E*M,t[14]=T*i+p*h+O*f+E*g,t[15]=T*s+p*u+O*_+E*b,t}function u(t,e,n){const r=n[0],o=n[1],i=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*i+e[12],t[13]=e[1]*r+e[5]*o+e[9]*i+e[13],t[14]=e[2]*r+e[6]*o+e[10]*i+e[14],t[15]=e[3]*r+e[7]*o+e[11]*i+e[15];else{const n=e[0],s=e[1],a=e[2],c=e[3],h=e[4],u=e[5],d=e[6],l=e[7],f=e[8],_=e[9],m=e[10],M=e[11];t[0]=n,t[1]=s,t[2]=a,t[3]=c,t[4]=h,t[5]=u,t[6]=d,t[7]=l,t[8]=f,t[9]=_,t[10]=m,t[11]=M,t[12]=n*r+h*o+f*i+e[12],t[13]=s*r+u*o+_*i+e[13],t[14]=a*r+d*o+m*i+e[14],t[15]=c*r+l*o+M*i+e[15]}return t}function d(t,e,n){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function l(t,e,n,r){let i,s,a,c,h,u,d,l,f,_,m,M,g,b,T,p,O,E,R,S,N,A,x,F,I=r[0],P=r[1],j=r[2],B=Math.sqrt(I*I+P*P+j*j);return B<(0,o.g)()?null:(B=1/B,I*=B,P*=B,j*=B,i=Math.sin(n),s=Math.cos(n),a=1-s,c=e[0],h=e[1],u=e[2],d=e[3],l=e[4],f=e[5],_=e[6],m=e[7],M=e[8],g=e[9],b=e[10],T=e[11],p=I*I*a+s,O=P*I*a+j*i,E=j*I*a-P*i,R=I*P*a-j*i,S=P*P*a+s,N=j*P*a+I*i,A=I*j*a+P*i,x=P*j*a-I*i,F=j*j*a+s,t[0]=c*p+l*O+M*E,t[1]=h*p+f*O+g*E,t[2]=u*p+_*O+b*E,t[3]=d*p+m*O+T*E,t[4]=c*R+l*S+M*N,t[5]=h*R+f*S+g*N,t[6]=u*R+_*S+b*N,t[7]=d*R+m*S+T*N,t[8]=c*A+l*x+M*F,t[9]=h*A+f*x+g*F,t[10]=u*A+_*x+b*F,t[11]=d*A+m*x+T*F,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function f(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function _(t,e,n){if(0===e)return s(t);let r,i,a,c=n[0],h=n[1],u=n[2],d=Math.sqrt(c*c+h*h+u*u);return d<(0,o.g)()?null:(d=1/d,c*=d,h*=d,u*=d,r=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=c*c*a+i,t[1]=h*c*a+u*r,t[2]=u*c*a-h*r,t[3]=0,t[4]=c*h*a-u*r,t[5]=h*h*a+i,t[6]=u*h*a+c*r,t[7]=0,t[8]=c*u*a+h*r,t[9]=h*u*a-c*r,t[10]=u*u*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function m(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=r+r,c=o+o,h=i+i,u=r*a,d=r*c,l=r*h,f=o*c,_=o*h,m=i*h,M=s*a,g=s*c,b=s*h;return t[0]=1-(f+m),t[1]=d+b,t[2]=l-g,t[3]=0,t[4]=d-b,t[5]=1-(u+m),t[6]=_+M,t[7]=0,t[8]=l+g,t[9]=_-M,t[10]=1-(u+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const g=(0,r.c)();function b(t,e,n,r){const o=e[0],i=e[1],s=e[2],a=e[3],c=o+o,h=i+i,u=s+s,d=o*c,l=o*h,f=o*u,_=i*h,m=i*u,M=s*u,g=a*c,b=a*h,T=a*u,p=r[0],O=r[1],E=r[2];return t[0]=(1-(_+M))*p,t[1]=(l+T)*p,t[2]=(f-b)*p,t[3]=0,t[4]=(l-T)*O,t[5]=(1-(d+M))*O,t[6]=(m+g)*O,t[7]=0,t[8]=(f+b)*E,t[9]=(m-g)*E,t[10]=(1-(d+_))*E,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function T(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function p(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function O(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],s=t[3],a=t[4],c=t[5],h=t[6],u=t[7],d=t[8],l=t[9],f=t[10],_=t[11],m=t[12],M=t[13],g=t[14],b=t[15],T=e[0],p=e[1],O=e[2],E=e[3],R=e[4],S=e[5],N=e[6],A=e[7],x=e[8],F=e[9],I=e[10],P=e[11],j=e[12],B=e[13],y=e[14],v=e[15],w=(0,o.g)();return Math.abs(n-T)<=w*Math.max(1,Math.abs(n),Math.abs(T))&&Math.abs(r-p)<=w*Math.max(1,Math.abs(r),Math.abs(p))&&Math.abs(i-O)<=w*Math.max(1,Math.abs(i),Math.abs(O))&&Math.abs(s-E)<=w*Math.max(1,Math.abs(s),Math.abs(E))&&Math.abs(a-R)<=w*Math.max(1,Math.abs(a),Math.abs(R))&&Math.abs(c-S)<=w*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(h-N)<=w*Math.max(1,Math.abs(h),Math.abs(N))&&Math.abs(u-A)<=w*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(d-x)<=w*Math.max(1,Math.abs(d),Math.abs(x))&&Math.abs(l-F)<=w*Math.max(1,Math.abs(l),Math.abs(F))&&Math.abs(f-I)<=w*Math.max(1,Math.abs(f),Math.abs(I))&&Math.abs(_-P)<=w*Math.max(1,Math.abs(_),Math.abs(P))&&Math.abs(m-j)<=w*Math.max(1,Math.abs(m),Math.abs(j))&&Math.abs(M-B)<=w*Math.max(1,Math.abs(M),Math.abs(B))&&Math.abs(g-y)<=w*Math.max(1,Math.abs(g),Math.abs(y))&&Math.abs(b-v)<=w*Math.max(1,Math.abs(b),Math.abs(v))}function E(t){const e=(0,o.g)(),n=t[0],r=t[1],i=t[2],s=t[4],a=t[5],c=t[6],h=t[8],u=t[9],d=t[10];return Math.abs(1-(n*n+s*s+h*h))<=e&&Math.abs(1-(r*r+a*a+u*u))<=e&&Math.abs(1-(i*i+c*c+d*d))<=e}function R(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const S=h,N=T;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],c=e[6],h=e[7],u=e[8],d=e[9],l=e[10],f=e[11],_=e[12],m=e[13],M=e[14],g=e[15];return t[0]=a*(l*g-f*M)-d*(c*g-h*M)+m*(c*f-h*l),t[1]=-(r*(l*g-f*M)-d*(o*g-i*M)+m*(o*f-i*l)),t[2]=r*(c*g-h*M)-a*(o*g-i*M)+m*(o*h-i*c),t[3]=-(r*(c*f-h*l)-a*(o*f-i*l)+d*(o*h-i*c)),t[4]=-(s*(l*g-f*M)-u*(c*g-h*M)+_*(c*f-h*l)),t[5]=n*(l*g-f*M)-u*(o*g-i*M)+_*(o*f-i*l),t[6]=-(n*(c*g-h*M)-s*(o*g-i*M)+_*(o*h-i*c)),t[7]=n*(c*f-h*l)-s*(o*f-i*l)+u*(o*h-i*c),t[8]=s*(d*g-f*m)-u*(a*g-h*m)+_*(a*f-h*d),t[9]=-(n*(d*g-f*m)-u*(r*g-i*m)+_*(r*f-i*d)),t[10]=n*(a*g-h*m)-s*(r*g-i*m)+_*(r*h-i*a),t[11]=-(n*(a*f-h*d)-s*(r*f-i*d)+u*(r*h-i*a)),t[12]=-(s*(d*M-l*m)-u*(a*M-c*m)+_*(a*l-c*d)),t[13]=n*(d*M-l*m)-u*(r*M-o*m)+_*(r*l-o*d),t[14]=-(n*(a*M-c*m)-s*(r*M-o*m)+_*(r*c-o*a)),t[15]=n*(a*l-c*d)-s*(r*l-o*d)+u*(r*c-o*a),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],s=t[5],a=t[6],c=t[7],h=t[8],u=t[9],d=t[10],l=t[11],f=t[12],_=t[13],m=t[14],M=t[15];return(e*s-n*i)*(d*M-l*m)-(e*a-r*i)*(u*M-l*_)+(e*c-o*i)*(u*m-d*_)+(n*a-r*s)*(h*M-l*f)-(n*c-o*s)*(h*m-d*f)+(r*c-o*a)*(h*_-u*f)},equals:O,exactEquals:p,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=n+n,a=r+r,c=o+o,h=n*s,u=r*s,d=r*a,l=o*s,f=o*a,_=o*c,m=i*s,M=i*a,g=i*c;return t[0]=1-d-_,t[1]=u+g,t[2]=l-M,t[3]=0,t[4]=u-g,t[5]=1-h-_,t[6]=f+m,t[7]=0,t[8]=l+M,t[9]=f-m,t[10]=1-h-d,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=g,r=-e[0],o=-e[1],i=-e[2],s=e[3],a=e[4],c=e[5],h=e[6],u=e[7],d=r*r+o*o+i*i+s*s;return d>0?(n[0]=2*(a*s+u*r+c*i-h*o)/d,n[1]=2*(c*s+u*o+h*r-a*i)/d,n[2]=2*(h*s+u*i+a*o-c*r)/d):(n[0]=2*(a*s+u*r+c*i-h*o),n[1]=2*(c*s+u*o+h*r-a*i),n[2]=2*(h*s+u*i+a*o-c*r)),M(t,e,n),t},fromRotation:_,fromRotationTranslation:M,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(t,e,n,r,o){const i=e[0],s=e[1],a=e[2],c=e[3],h=i+i,u=s+s,d=a+a,l=i*h,f=i*u,_=i*d,m=s*u,M=s*d,g=a*d,b=c*h,T=c*u,p=c*d,O=r[0],E=r[1],R=r[2],S=o[0],N=o[1],A=o[2],x=(1-(m+g))*O,F=(f+p)*O,I=(_-T)*O,P=(f-p)*E,j=(1-(l+g))*E,B=(M+b)*E,y=(_+T)*R,v=(M-b)*R,w=(1-(l+m))*R;return t[0]=x,t[1]=F,t[2]=I,t[3]=0,t[4]=P,t[5]=j,t[6]=B,t[7]=0,t[8]=y,t[9]=v,t[10]=w,t[11]=0,t[12]=n[0]+S-(x*S+P*N+y*A),t[13]=n[1]+N-(F*S+j*N+v*A),t[14]=n[2]+A-(I*S+B*N+w*A),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:f,fromXRotation:m,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,r,o,i,s){const a=1/(n-e),c=1/(o-r),h=1/(i-s);return t[0]=2*i*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*c,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(o+r)*c,t[10]=(s+i)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*i*2*h,t[15]=0,t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},getScaling:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[4],s=e[5],a=e[6],c=e[8],h=e[9],u=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(i*i+s*s+a*a),t[2]=Math.sqrt(c*c+h*h+u*u),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:R,identity:s,invert:c,invertOrIdentity:function(t,e){return c(t,e)||s(t),t},isOrthoNormal:E,lookAt:function(t,e,n,r){const i=e[0],a=e[1],c=e[2];let h=i-n[0],u=a-n[1],d=c-n[2];const l=(0,o.g)();if(Math.abs(h)<l&&Math.abs(u)<l&&Math.abs(d)<l)return void s(t);let f=1/Math.sqrt(h*h+u*u+d*d);h*=f,u*=f,d*=f;const _=r[0],m=r[1],M=r[2];let g=m*d-M*u,b=M*h-_*d,T=_*u-m*h;f=Math.sqrt(g*g+b*b+T*T),f?(f=1/f,g*=f,b*=f,T*=f):(g=0,b=0,T=0);let p=u*T-d*b,O=d*g-h*T,E=h*b-u*g;f=Math.sqrt(p*p+O*O+E*E),f?(f=1/f,p*=f,O*=f,E*=f):(p=0,O=0,E=0),t[0]=g,t[1]=p,t[2]=h,t[3]=0,t[4]=b,t[5]=O,t[6]=u,t[7]=0,t[8]=T,t[9]=E,t[10]=d,t[11]=0,t[12]=-(g*i+b*a+T*c),t[13]=-(p*i+O*a+E*c),t[14]=-(h*i+u*a+d*c),t[15]=1},mul:S,multiply:h,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,i,s){const a=1/(e-n),c=1/(r-o),h=1/(i-s);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*a,t[13]=(o+r)*c,t[14]=(s+i)*h,t[15]=1,t},perspective:function(t,e,n,r,o){const i=1/Math.tan(e/2);let s;return t[0]=i/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(s=1/(r-o),t[10]=(o+r)*s,t[14]=2*o*r*s):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),c=2/(s+a),h=2/(o+i);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(s-a)*c*.5,t[9]=(o-i)*h*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:l,rotateX:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),i=e[4],s=e[5],a=e[6],c=e[7],h=e[8],u=e[9],d=e[10],l=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*o+h*r,t[5]=s*o+u*r,t[6]=a*o+d*r,t[7]=c*o+l*r,t[8]=h*o-i*r,t[9]=u*o-s*r,t[10]=d*o-a*r,t[11]=l*o-c*r,t},rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),i=e[0],s=e[1],a=e[2],c=e[3],h=e[8],u=e[9],d=e[10],l=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*o-h*r,t[1]=s*o-u*r,t[2]=a*o-d*r,t[3]=c*o-l*r,t[8]=i*r+h*o,t[9]=s*r+u*o,t[10]=a*r+d*o,t[11]=c*r+l*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),i=e[0],s=e[1],a=e[2],c=e[3],h=e[4],u=e[5],d=e[6],l=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*o+h*r,t[1]=s*o+u*r,t[2]=a*o+d*r,t[3]=c*o+l*r,t[4]=h*o-i*r,t[5]=u*o-s*r,t[6]=d*o-a*r,t[7]=l*o-c*r,t},scale:d,set:i,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:N,subtract:T,targetTo:function(t,e,n,r){const o=e[0],i=e[1],s=e[2],a=r[0],c=r[1],h=r[2];let u=o-n[0],d=i-n[1],l=s-n[2],f=u*u+d*d+l*l;f>0&&(f=1/Math.sqrt(f),u*=f,d*=f,l*=f);let _=c*l-h*d,m=h*u-a*l,M=a*d-c*u;return f=_*_+m*m+M*M,f>0&&(f=1/Math.sqrt(f),_*=f,m*=f,M*=f),t[0]=_,t[1]=m,t[2]=M,t[3]=0,t[4]=d*M-l*m,t[5]=l*_-u*M,t[6]=u*m-d*_,t[7]=0,t[8]=u,t[9]=d,t[10]=l,t[11]=0,t[12]=o,t[13]=i,t[14]=s,t[15]=1,t},translate:u,transpose:a},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}function i(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>s,a:()=>r,b:()=>o,c:()=>i});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,createView:i,fromValues:function(t,e,n,r,o,i,s,a,c,h,u,d,l,f,_,m){return[t,e,n,r,o,i,s,a,c,h,u,d,l,f,_,m]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}function i(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>s,a:()=>r,b:()=>o,c:()=>i});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,createView:i,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},8310:(t,e,n)=>{n.d(e,{a:()=>g,c:()=>m,g:()=>b,h:()=>M,j:()=>O,l:()=>F}),n(80442);var r=n(92604),o=n(22021),i=n(52138),s=n(17896),a=n(65617),c=n(98766),h=n(88669),u=n(62155),d=n(78341),l=n(61277),f=n(12981);const _=m();function m(){return(0,h.c)()}function M(t,e=m()){return(0,c.c)(e,t)}function g(t){return t[3]}function b(t){return t}function T(t,e,n){if(null==e)return!1;const{origin:r,direction:o}=e,i=p;i[0]=r[0]-t[0],i[1]=r[1]-t[1],i[2]=r[2]-t[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===s)return!1;const a=2*(o[0]*i[0]+o[1]*i[1]+o[2]*i[2]),c=a*a-4*s*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-t[3]*t[3]);if(c<0)return!1;const h=Math.sqrt(c);let u=(-a-h)/(2*s);const d=(-a+h)/(2*s);return(u<0||d<u&&d>0)&&(u=d),!(u<0||(n&&(n[0]=r[0]+o[0]*u,n[1]=r[1]+o[1]*u,n[2]=r[2]+o[2]*u),0))}const p=(0,a.c)();function O(t,e){return T(t,e,null)}function E(t,e,n){const r=f.WM.get(),o=f.MP.get();(0,s.b)(r,e.origin,e.direction);const a=g(t);(0,s.b)(n,r,e.origin),(0,s.i)(n,n,1/(0,s.l)(n)*a);const c=S(t,e.origin),h=(0,l.EU)(e.origin,n);return(0,i.c)(o,h+c,r),(0,s.e)(n,n,o),n}function R(t,e,n){const r=(0,s.f)(f.WM.get(),e,t),o=(0,s.i)(f.WM.get(),r,t[3]/(0,s.l)(r));return(0,s.g)(n,o,t)}function S(t,e){const n=(0,s.f)(f.WM.get(),e,t),r=(0,s.l)(n),i=g(t),a=i+Math.abs(i-r);return(0,o.ZF)(i/a)}const N=(0,a.c)();function A(t,e,n,r){const i=(0,s.f)(N,e,t);switch(n){case u.R.X:{const t=(0,o.jE)(i,N)[2];return(0,s.s)(r,-Math.sin(t),Math.cos(t),0)}case u.R.Y:{const t=(0,o.jE)(i,N),e=t[1],n=t[2],a=Math.sin(e);return(0,s.s)(r,-a*Math.cos(n),-a*Math.sin(n),Math.cos(e))}case u.R.Z:return(0,s.n)(r,i);default:return}}function x(t,e){const n=(0,s.f)(I,e,t);return(0,s.l)(n)-t[3]}function F(t,e){const n=(0,s.a)(t,e),r=g(t);return n<=r*r}const I=(0,a.c)(),P=m();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:_,altitudeAt:x,angleToSilhouette:S,axisAt:A,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return T(t,e,n)?n:((0,d.JI)(e,t,n),R(t,n,n))},closestPointOnSilhouette:E,containsPoint:F,copy:M,create:m,distanceToSilhouette:function(t,e){const n=(0,s.f)(f.WM.get(),e,t),r=(0,s.o)(n),o=t[3]*t[3];return Math.sqrt(Math.abs(r-o))},elevate:function(t,e,n){return t!==n&&(0,s.c)(n,t),n[3]=t[3]+e,n},fromCenterAndRadius:function(t,e){return(0,h.a)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:function(t,e,n,r){return(0,h.a)(t,e,n,r)},getCenter:b,getRadius:g,intersectRay:T,intersectRayClosestSilhouette:function(t,e,n){if(T(t,e,n))return n;const r=E(t,e,f.WM.get());return(0,s.g)(n,e.origin,(0,s.i)(f.WM.get(),e.direction,(0,s.m)(e.origin,r)/(0,s.l)(e.direction))),n},intersectsRay:O,projectPoint:R,setAltitudeAt:function(t,e,n,r){const o=x(t,e),i=A(t,e,u.R.Z,I),a=(0,s.i)(I,i,n-o);return(0,s.g)(r,e,a)},setExtent:function(t,e,n){return r.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:M(t,n)},tmpSphere:P,union:function(t,e,n=m()){const r=(0,s.m)(t,e),o=t[3],i=e[3];return r+i<o?((0,c.c)(n,t),n):r+o<i?((0,c.c)(n,e),n):((0,s.p)(n,t,e,(r+i-o)/(2*r)),n[3]=(r+o+i)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},91303:(t,e,n)=>{var r;n.d(e,{Y:()=>r}),function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(r||(r={}))},22807:(t,e,n)=>{n.d(e,{x:()=>o});var r=n(41213);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},62155:(t,e,n)=>{var r;n.d(e,{R:()=>r}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(r||(r={}))},16996:(t,e,n)=>{n.d(e,{Ue:()=>c,nF:()=>u,zk:()=>h});var r=n(22021),o=n(22807),i=n(17896),s=n(65617),a=n(12981);function c(t){return t?{origin:(0,s.g)(t.origin),vector:(0,s.g)(t.vector)}:{origin:(0,s.c)(),vector:(0,s.c)()}}function h(t,e,n=c()){return(0,i.c)(n.origin,t),(0,i.f)(n.vector,e,t),n}function u(t,e,n){return function(t,e,n,o,s){const{vector:c,origin:h}=t,u=(0,i.f)(a.WM.get(),e,h),d=(0,i.j)(c,u)/(0,i.o)(c);return(0,i.i)(s,c,(0,r.uZ)(d,0,1)),(0,i.g)(s,s,t.origin)}(t,e,0,0,n)}(0,s.c)(),(0,s.c)(),new o.x((()=>c()))},62073:(t,e,n)=>{n.d(e,{Ue:()=>i,zu:()=>s,mJ:()=>f}),n(22021);var r=n(17896),o=n(65617);function i(t=_){return[t[0],t[1],t[2],t[3]]}function s(t,e,n,o=0,f=Math.floor(n*(1/3)),_=Math.floor(n*(2/3))){if(n<3)return!1;e(c,o);let m=f,M=!1;for(;m<n-1&&!M;)e(h,m),m++,M=!(0,r.h)(c,h);if(!M)return!1;for(m=Math.max(m,_),M=!1;m<n&&!M;)e(u,m),m++,(0,r.f)(d,c,h),(0,r.n)(d,d),(0,r.f)(l,h,u),(0,r.n)(l,l),M=!(0,r.h)(c,u)&&!(0,r.h)(h,u)&&Math.abs((0,r.j)(d,l))<a;return M?(function(t,e,n,r=i()){const o=n[0]-e[0],s=n[1]-e[1],a=n[2]-e[2],c=t[0]-e[0],h=t[1]-e[1],u=t[2]-e[2],d=s*u-a*h,l=a*c-o*u,f=o*h-s*c,_=d*d+l*l+f*f,m=Math.abs(_-1)>1e-5&&_>1e-12?1/Math.sqrt(_):1;r[0]=d*m,r[1]=l*m,r[2]=f*m,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2])}(c,h,u,t),!0):(0!==o||1!==f||2!==_)&&s(t,e,n,0,1,2)}n(8310),n(61277),n(12981),(0,o.c)(),(0,o.c)(),(0,o.c)(),(0,o.c)(),(0,o.c)();const a=.99619469809,c=(0,o.c)(),h=(0,o.c)(),u=(0,o.c)(),d=(0,o.c)(),l=(0,o.c)();function f(t){return t}const _=[0,0,1,0];var m,M;(M=m||(m={}))[M.NONE=0]="NONE",M[M.CLAMP=1]="CLAMP",M[M.INFINITE_MIN=4]="INFINITE_MIN",M[M.INFINITE_MAX=8]="INFINITE_MAX",m.INFINITE_MIN,m.INFINITE_MAX,m.INFINITE_MAX},78341:(t,e,n)=>{n.d(e,{JI:()=>h,Ue:()=>s,re:()=>c}),n(67676);var r=n(22807),o=n(17896),i=n(65617);function s(t){return t?a((0,i.g)(t.origin),(0,i.g)(t.direction)):a((0,i.c)(),(0,i.c)())}function a(t,e){return{origin:t,direction:e}}function c(t,e){const n=u.get();return n.origin=t,n.direction=e,n}function h(t,e,n){const r=(0,o.j)(t.direction,(0,o.f)(n,e,t.origin));return(0,o.g)(n,t.origin,(0,o.i)(n,t.direction,r)),n}n(12981);const u=new r.x((()=>s()))},61277:(t,e,n)=>{n.d(e,{EU:()=>s});var r=n(22021),o=n(17896),i=n(65617);function s(t,e){const n=(0,o.j)(t,e)/((0,o.l)(t)*(0,o.l)(e));return-(0,r.ZF)(n)}(0,i.c)(),(0,i.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>_,WM:()=>f});var r=n(91303),o=n(41213),i=n(46521),s=n(13598),a=n(94961),c=n(97323),h=n(65617),u=n(88669);class d{constructor(t,e,n){this._itemByteSize=t,this._itemCreate=e,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(n/this._itemByteSize)}get(){0===this._itemsPtr&&(0,o.Y)((()=>this._reset()));const t=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=t;){const t=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let e=0;e<this._itemsPerBuffer;++e)this._items.push(this._itemCreate(t,e*this._itemByteSize));this._buffers.push(t)}return this._items[this._itemsPtr++]}_reset(){const t=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>t;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(t=l){return new d(16,c.c,t)}static createVec3f64(t=l){return new d(24,h.a,t)}static createVec4f64(t=l){return new d(32,u.b,t)}static createMat3f64(t=l){return new d(72,i.c,t)}static createMat4f64(t=l){return new d(128,s.c,t)}static createQuatf64(t=l){return new d(32,a.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const l=4*r.Y.KILOBYTES,f=(d.createVec2f64(),d.createVec3f64()),_=(d.createVec4f64(),d.createMat3f64(),d.createMat4f64());d.createQuatf64()},73248:(t,e,n)=>{n.r(e),n.d(e,{default:()=>Q});var r,o,i=n(43697),s=n(95330),a=(n(92604),n(75215),n(67676),n(80442),n(20102),n(52011)),c=n(17896),h=n(65617),u=n(16996),d=n(8310),l=n(71143),f=n(44553),_=n(22807),m=(n(52138),n(98766),n(88669)),M=n(78341);function g(t){return t?{ray:(0,M.Ue)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,M.Ue)(),c0:0,c1:Number.MAX_VALUE}}function b(t,e){for(let n=0;n<T;n++){const r=t[n];if(r[0]*e[0]+r[1]*e[1]+r[2]*e[2]+r[3]>=e[3])return!1}return!0}new _.x((()=>g())),n(62073),n(12981),function(t){t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t[t.BOTTOM=2]="BOTTOM",t[t.TOP=3]="TOP",t[t.NEAR=4]="NEAR",t[t.FAR=5]="FAR"}(r||(r={})),function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(o||(o={})),o.FAR_BOTTOM_RIGHT,o.NEAR_BOTTOM_RIGHT,o.NEAR_BOTTOM_LEFT,o.FAR_BOTTOM_LEFT,o.NEAR_BOTTOM_LEFT,o.NEAR_BOTTOM_RIGHT,o.NEAR_TOP_RIGHT,o.NEAR_TOP_LEFT,o.FAR_BOTTOM_RIGHT,o.FAR_BOTTOM_LEFT,o.FAR_TOP_LEFT,o.FAR_TOP_RIGHT,o.NEAR_BOTTOM_RIGHT,o.FAR_BOTTOM_RIGHT,o.FAR_TOP_RIGHT,o.NEAR_TOP_RIGHT,o.FAR_BOTTOM_LEFT,o.NEAR_BOTTOM_LEFT,o.NEAR_TOP_LEFT,o.FAR_TOP_LEFT,o.FAR_TOP_LEFT,o.NEAR_TOP_LEFT,o.NEAR_TOP_RIGHT,o.FAR_TOP_RIGHT;const T=6;(0,m.a)(-1,-1,-1,1),(0,m.a)(1,-1,-1,1),(0,m.a)(1,1,-1,1),(0,m.a)(-1,1,-1,1),(0,m.a)(-1,-1,1,1),(0,m.a)(1,-1,1,1),(0,m.a)(1,1,1,1),(0,m.a)(-1,1,1,1),new _.x(g),(0,h.c)(),(0,h.c)(),(0,h.c)(),(0,h.c)(),(0,h.c)(),(0,h.c)(),(0,h.c)(),(0,h.c)();var p,O,E=n(11726);class R{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new S,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),S.clearPool(),w[0]=null,q.prune(),W.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=S.acquire();for(let r=0;r<e;r++){const e=t[r];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}S.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=S.acquire();for(const r of t){const t=null!=e?e:(0,d.h)(this.objectToBoundingSphere(r),G);j(t[3])?(n.init(this._root),this._remove(r,t,n)):this._degenerateObjects.delete(r)}S.release(n),this._shrink()}update(t,e){if(!j(e[3])&&this._isDegenerate(t))return;const n=function(t){return w[0]=t,w}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const r=(0,M.re)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNode(r,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(r,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(r,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,r){const o=(0,M.re)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNodeWithOffset(o,t,r))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(o,t,r)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(o,t,r)&&n(t)})),!0}))}forEach(t){this._forEachNode(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,r=(()=>!0),o=1/0){let i=1/0,s=1/0,a=null;const h=I(t,e),u=c=>{if(--o,!r(c))return;const h=this.objectToBoundingSphere(c);if(!b(n,h))return;const u=P(t,e,(0,d.g)(h)),l=u-h[3],f=u+h[3];l<i&&(i=l,s=f,a=c)};return this._forEachNodeDepthOrdered(this._root,(r=>{if(o<=0||!b(n,r.bounds))return!1;if((0,c.i)(L,h,r.halfSize),(0,c.g)(L,L,r.bounds),P(t,e,L)>s)return!1;const i=r.node;return i.terminals.forAll((t=>u(t))),null!==i.residents&&i.residents.forAll((t=>u(t))),!0}),t,e),a}forEachInDepthRange(t,e,n,r,o,i,s){let a=-1/0,h=1/0;const u={setRange:t=>{n===R.DepthOrder.FRONT_TO_BACK?(a=Math.max(a,t.near),h=Math.min(h,t.far)):(a=Math.max(a,-t.far),h=Math.min(h,-t.near))}};u.setRange(r);const l=P(e,n,t),f=I(e,n),_=I(e,-n),m=t=>{if(!s(t))return;const r=this.objectToBoundingSphere(t),c=(0,d.g)(r),f=P(e,n,c)-l,_=f-r[3],m=f+r[3];_>h||m<a||!b(i,r)||o(t,u)};this._forEachNodeDepthOrdered(this._root,(t=>{if(!b(i,t.bounds))return!1;if((0,c.i)(L,f,t.halfSize),(0,c.g)(L,L,t.bounds),P(e,n,L)-l>h)return!1;if((0,c.i)(L,_,t.halfSize),(0,c.g)(L,L,t.bounds),P(e,n,L)-l<a)return!1;const r=t.node;return r.terminals.forAll((t=>m(t))),null!==r.residents&&r.residents.forAll((t=>m(t))),!0}),e,n)}forEachNode(t){this._forEachNode(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,d.a)(e),r=(0,d.g)(e),o=e=>{const o=this.objectToBoundingSphere(e),i=(0,d.a)(o),s=n+i;return!((0,c.a)((0,d.g)(o),r)-s*s<=0)||t(e)};let i=!0;const s=t=>{i&&(i=o(t))};this._forEachNode(this._root,(t=>{const e=(0,d.a)(t.bounds),o=n+e;if((0,c.a)((0,d.g)(t.bounds),r)-o*o>0)return!1;const a=t.node;return a.terminals.forAll(s),i&&null!==a.residents&&a.residents.forAll(s),i})),i&&this.forEachDegenerateObject(s)}_intersectsNode(t,e){return x(e.bounds,2*-e.halfSize,C),x(e.bounds,2*e.halfSize,D),(0,E.yK)(t.origin,t.direction,C,D)}_intersectsNodeWithOffset(t,e,n){return x(e.bounds,2*-e.halfSize,C),x(e.bounds,2*e.halfSize,D),n.applyToMinMax(C,D),(0,E.yK)(t.origin,t.direction,C,D)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,d.j)(n,t)}_intersectsObjectWithOffset(t,e,n){const r=this.objectToBoundingSphere(e);return!(r[3]>0)||(0,d.j)(n.applyToBoundingSphere(r),t)}_forEachNode(t,e){let n=S.acquire().init(t);const r=[n];for(;0!==r.length;){if(n=r.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&r.push(S.acquire().init(n).advance(t));S.release(n)}}_forEachNodeDepthOrdered(t,e,n,r=R.DepthOrder.FRONT_TO_BACK){let o=S.acquire().init(t);const i=[o];for(function(t,e,n){if(!W.length)for(let t=0;t<8;++t)W.push({index:0,distance:0});for(let n=0;n<8;++n){const r=B[n];W.data[n].index=n,W.data[n].distance=P(t,e,r)}W.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=W.data[t].index}(n,r,Z);0!==i.length;){if(o=i.pop(),e(o)&&!o.isLeaf())for(let t=7;t>=0;--t){const e=Z[t];o.node.children[e]&&i.push(S.acquire().init(o).advance(e))}S.release(o)}}_remove(t,e,n){q.clear();const r=n.advanceTo(e,((t,e)=>{q.push(t.node),q.push(e)}))?n.node.terminals:n.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=q.length-2;t>=0;t-=2){const e=q.data[t],n=q.data[t+1];if(!this._purge(e,n))break}}_nodeIsEmpty(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}_purge(t,e){return e>=0&&(t.children[e]=null),!!this._nodeIsEmpty(t)&&(null===t.residents&&(t.residents=new f.Z({shrink:!0})),!0)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const r=S.acquire().init(t);this._add(e.at(n),r),S.release(r)}}_grow(t,e){if(0!==e&&(F(t,e,(t=>this.objectToBoundingSphere(t)),H),j(H[3])&&!this._fitsInsideTree(H)))if(this._nodeIsEmpty(this._root.node))(0,d.h)(H,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(H);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(H,t):this._growRootAsSubNode(t),S.release(t)}}_rebuildTree(t,e){(0,c.c)(V,e.bounds),V[3]=e.halfSize,F([t,V],2,(t=>t),k);const n=S.acquire().init(this._root);this._root.initFrom(null,k,k[3]),this._root.increaseHalfSize(1.25),this._forEachNode(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),S.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return this._forEachNode(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let r=-1/0;const o=this._root.bounds,i=this._root.halfSize;for(let t=0;t<3;t++){const s=o[t]-i-(n[t]-e),a=n[t]+e-(o[t]+i),c=Math.max(0,Math.ceil(s/(2*i))),h=Math.max(0,Math.ceil(a/(2*i)))+1,u=2**Math.ceil(Math.log(c+h)*Math.LOG2E);r=Math.max(r,u),Y[t].min=c,Y[t].max=h}for(let t=0;t<3;t++){let e=Y[t].min,n=Y[t].max;const s=(r-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const a=o[t]-i-e*i*2;z[t]=a+(n+e)*i}const s=r*i;return z[3]=s*v,S.acquire().initFrom(null,z,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,c.c)(H,this._root.bounds),H[3]=this._root.halfSize,this._root.init(t),t.advanceTo(H,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,r=0;for(;r<e.length&&null==t;)n=r++,t=e[n];for(;r<e.length;)if(e[r++])return-1;return n}_isDegenerate(t){return!j(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,r=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:r}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),r=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:r}}static fromJSON(t){const e=new R((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class S{constructor(){this.bounds=(0,d.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,r=this.depth){return this.node=null!=t?t:S.createEmptyNode(),null!=e&&(0,d.h)(e,this.bounds),this.halfSize=n,this.depth=r,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*v}advance(t){let e=this.node.children[t];e||(e=S.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=B[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const r=this._childIndex(t);e&&e(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new f.Z({shrink:!0}),residents:new f.Z({shrink:!0})}}static acquire(){return S._pool.acquire()}static release(t){S._pool.release(t)}static clearPool(){S._pool.prune()}}function N(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function A(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function x(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function F(t,e,n,r){if(1===e){const e=n(t[0]);(0,d.h)(e,r)}else{C[0]=1/0,C[1]=1/0,C[2]=1/0,D[0]=-1/0,D[1]=-1/0,D[2]=-1/0;for(let r=0;r<e;r++){const e=n(t[r]);j(e[3])&&(N(C,e),A(D,e))}(0,c.p)(r,C,D,.5),r[3]=Math.max(D[0]-C[0],D[1]-C[1],D[2]-C[2])/2}}function I(t,e){let n,r=1/0;for(let o=0;o<8;++o){const i=P(t,e,y[o]);i<r&&(r=i,n=y[o])}return n}function P(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function j(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}S._pool=new l.Z(S),p=R||(R={}),(O=p.DepthOrder||(p.DepthOrder={}))[O.FRONT_TO_BACK=1]="FRONT_TO_BACK",O[O.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const B=[(0,h.f)(-1,-1,-1),(0,h.f)(1,-1,-1),(0,h.f)(-1,1,-1),(0,h.f)(1,1,-1),(0,h.f)(-1,-1,1),(0,h.f)(1,-1,1),(0,h.f)(-1,1,1),(0,h.f)(1,1,1)],y=[(0,h.f)(-1,-1,-1),(0,h.f)(-1,-1,1),(0,h.f)(-1,1,-1),(0,h.f)(-1,1,1),(0,h.f)(1,-1,-1),(0,h.f)(1,-1,1),(0,h.f)(1,1,-1),(0,h.f)(1,1,1)],v=Math.sqrt(3),w=[null],z=(0,d.c)(),L=(0,h.c)(),C=(0,h.c)(),D=(0,h.c)(),q=new f.Z,G=(0,d.c)(),H=(0,d.c)(),V=(0,d.c)(),k=(0,d.c)(),Y=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],W=new f.Z,Z=[0,0,0,0,0,0,0,0],K=R;var U=n(212);function X(t,e,n){const r=(0,d.c)(),o=(0,d.g)(r);return(0,c.y)(o,o,t,.5),(0,c.y)(o,o,e,.5),r[3]=(0,c.m)(o,t),(0,c.g)(o,o,n),r}let J=class{constructor(){this._idToComponent=new Map,this._components=new K((t=>t.bounds)),this._edges=new K((t=>t.bounds)),this._tmpLineSegment=(0,u.Ue)(),this._tmpP1=(0,h.c)(),this._tmpP2=(0,h.c)(),this._tmpP3=(0,h.c)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,s.k_)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:r}=t;n.push({id:e,uid:r})}return!0}),t.bounds),!n.length)return;const r={components:n},o=await this.remoteClient.invoke("fetchAllEdgeLocations",r,e??{});for(const t of o.components)this._setFetchEdgeLocations(t)}async add(t){const e=new $(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=U.n_.createView(t.locations),r=new Array(n.count),o=(0,h.c)(),i=(0,h.c)();for(let s=0;s<n.count;s++){n.position0.getVec(s,o),n.position1.getVec(s,i);const a=X(o,i,t.origin),c=new tt(e,s,a);r[s]=c}this._edges.add(r);const{objectIds:s,origin:a}=t;e.info={locations:n,objectIds:s,origin:a}}_addCandidates(t,e,n){const{info:r}=e.component,{origin:o,objectIds:i}=r,s=r.locations,a=s.position0.getVec(e.index,this._tmpP1),h=s.position1.getVec(e.index,this._tmpP2);(0,c.g)(a,a,o),(0,c.g)(h,h,o);const u=i[s.componentIndex.get(e.index)];this._addEdgeCandidate(t,u,a,h,n),this._addVertexCandidate(t,u,a,n),this._addVertexCandidate(t,u,h,n)}_addEdgeCandidate(t,e,n,r,o){if(!t.returnEdge)return;const i=(0,d.g)(t.bounds),s=(0,u.zk)(n,r,this._tmpLineSegment),a=(0,u.nF)(s,i,this._tmpP3);(0,d.l)(t.bounds,a)&&o.push({type:"edge",objectId:e,target:(0,h.g)(a),distance:(0,c.m)(i,a),start:(0,h.g)(n),end:(0,h.g)(r)})}_addVertexCandidate(t,e,n,r){if(!t.returnVertex)return;const o=(0,d.g)(t.bounds);(0,d.l)(t.bounds,n)&&r.push({type:"vertex",objectId:e,target:(0,h.g)(n),distance:(0,c.m)(o,n)})}};J=(0,i._)([(0,a.j)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],J);const Q=J;class ${constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++$.uid}}$.uid=0;class tt{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1412,9880],{99880:(e,t,r)=>{r.d(t,{V:()=>c});var n=r(68773),o=(r(3172),r(20102)),s=r(92604),i=r(17452);const a=s.Z.getLogger("esri.assets");function c(e){if(!n.default.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(n.default.assetsPath,e)}},46521:(e,t,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function o(e,t,r,n,o,s,i,a,c){return[e,t,r,n,o,s,i,a,c]}function s(e,t){return new Float64Array(e,t,9)}r.d(t,{a:()=>s,c:()=>n,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:n,createView:s,fromValues:o},Symbol.toStringTag,{value:"Module"}))},52138:(e,t,r)=>{r.d(t,{A:()=>m,a:()=>c,d:()=>p,e:()=>h,f:()=>d,g:()=>b,h:()=>w,i:()=>i,j:()=>_,k:()=>f,m:()=>u,s:()=>s,t:()=>a,w:()=>l,y:()=>S,z:()=>v});var n=r(65617),o=r(46851);function s(e,t,r,n,o,s,i,a,c,u,l,f,h,d,p,m,y){return e[0]=t,e[1]=r,e[2]=n,e[3]=o,e[4]=s,e[5]=i,e[6]=a,e[7]=c,e[8]=u,e[9]=l,e[10]=f,e[11]=h,e[12]=d,e[13]=p,e[14]=m,e[15]=y,e}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function a(e,t){if(e===t){const r=t[1],n=t[2],o=t[3],s=t[6],i=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=s,e[11]=t[14],e[12]=o,e[13]=i,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function c(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=t[4],a=t[5],c=t[6],u=t[7],l=t[8],f=t[9],h=t[10],d=t[11],p=t[12],m=t[13],y=t[14],g=t[15],b=r*a-n*i,M=r*c-o*i,w=r*u-s*i,_=n*c-o*a,v=n*u-s*a,S=o*u-s*c,x=l*m-f*p,P=l*y-h*p,O=l*g-d*p,E=f*y-h*m,R=f*g-d*m,T=h*g-d*y;let C=b*T-M*R+w*E+_*O-v*P+S*x;return C?(C=1/C,e[0]=(a*T-c*R+u*E)*C,e[1]=(o*R-n*T-s*E)*C,e[2]=(m*S-y*v+g*_)*C,e[3]=(h*v-f*S-d*_)*C,e[4]=(c*O-i*T-u*P)*C,e[5]=(r*T-o*O+s*P)*C,e[6]=(y*w-p*S-g*M)*C,e[7]=(l*S-h*w+d*M)*C,e[8]=(i*R-a*O+u*x)*C,e[9]=(n*O-r*R-s*x)*C,e[10]=(p*v-m*w+g*b)*C,e[11]=(f*w-l*v-d*b)*C,e[12]=(a*P-i*E-c*x)*C,e[13]=(r*E-n*P+o*x)*C,e[14]=(m*M-p*_-y*b)*C,e[15]=(l*_-f*M+h*b)*C,e):null}function u(e,t,r){const n=t[0],o=t[1],s=t[2],i=t[3],a=t[4],c=t[5],u=t[6],l=t[7],f=t[8],h=t[9],d=t[10],p=t[11],m=t[12],y=t[13],g=t[14],b=t[15];let M=r[0],w=r[1],_=r[2],v=r[3];return e[0]=M*n+w*a+_*f+v*m,e[1]=M*o+w*c+_*h+v*y,e[2]=M*s+w*u+_*d+v*g,e[3]=M*i+w*l+_*p+v*b,M=r[4],w=r[5],_=r[6],v=r[7],e[4]=M*n+w*a+_*f+v*m,e[5]=M*o+w*c+_*h+v*y,e[6]=M*s+w*u+_*d+v*g,e[7]=M*i+w*l+_*p+v*b,M=r[8],w=r[9],_=r[10],v=r[11],e[8]=M*n+w*a+_*f+v*m,e[9]=M*o+w*c+_*h+v*y,e[10]=M*s+w*u+_*d+v*g,e[11]=M*i+w*l+_*p+v*b,M=r[12],w=r[13],_=r[14],v=r[15],e[12]=M*n+w*a+_*f+v*m,e[13]=M*o+w*c+_*h+v*y,e[14]=M*s+w*u+_*d+v*g,e[15]=M*i+w*l+_*p+v*b,e}function l(e,t,r){const n=r[0],o=r[1],s=r[2];if(t===e)e[12]=t[0]*n+t[4]*o+t[8]*s+t[12],e[13]=t[1]*n+t[5]*o+t[9]*s+t[13],e[14]=t[2]*n+t[6]*o+t[10]*s+t[14],e[15]=t[3]*n+t[7]*o+t[11]*s+t[15];else{const r=t[0],i=t[1],a=t[2],c=t[3],u=t[4],l=t[5],f=t[6],h=t[7],d=t[8],p=t[9],m=t[10],y=t[11];e[0]=r,e[1]=i,e[2]=a,e[3]=c,e[4]=u,e[5]=l,e[6]=f,e[7]=h,e[8]=d,e[9]=p,e[10]=m,e[11]=y,e[12]=r*n+u*o+d*s+t[12],e[13]=i*n+l*o+p*s+t[13],e[14]=a*n+f*o+m*s+t[14],e[15]=c*n+h*o+y*s+t[15]}return e}function f(e,t,r){const n=r[0],o=r[1],s=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*o,e[5]=t[5]*o,e[6]=t[6]*o,e[7]=t[7]*o,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function h(e,t,r,n){let s,i,a,c,u,l,f,h,d,p,m,y,g,b,M,w,_,v,S,x,P,O,E,R,T=n[0],C=n[1],A=n[2],q=Math.sqrt(T*T+C*C+A*A);return q<(0,o.g)()?null:(q=1/q,T*=q,C*=q,A*=q,s=Math.sin(r),i=Math.cos(r),a=1-i,c=t[0],u=t[1],l=t[2],f=t[3],h=t[4],d=t[5],p=t[6],m=t[7],y=t[8],g=t[9],b=t[10],M=t[11],w=T*T*a+i,_=C*T*a+A*s,v=A*T*a-C*s,S=T*C*a-A*s,x=C*C*a+i,P=A*C*a+T*s,O=T*A*a+C*s,E=C*A*a-T*s,R=A*A*a+i,e[0]=c*w+h*_+y*v,e[1]=u*w+d*_+g*v,e[2]=l*w+p*_+b*v,e[3]=f*w+m*_+M*v,e[4]=c*S+h*x+y*P,e[5]=u*S+d*x+g*P,e[6]=l*S+p*x+b*P,e[7]=f*S+m*x+M*P,e[8]=c*O+h*E+y*R,e[9]=u*O+d*E+g*R,e[10]=l*O+p*E+b*R,e[11]=f*O+m*E+M*R,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function d(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function p(e,t,r){if(0===t)return i(e);let n,s,a,c=r[0],u=r[1],l=r[2],f=Math.sqrt(c*c+u*u+l*l);return f<(0,o.g)()?null:(f=1/f,c*=f,u*=f,l*=f,n=Math.sin(t),s=Math.cos(t),a=1-s,e[0]=c*c*a+s,e[1]=u*c*a+l*n,e[2]=l*c*a-u*n,e[3]=0,e[4]=c*u*a-l*n,e[5]=u*u*a+s,e[6]=l*u*a+c*n,e[7]=0,e[8]=c*l*a+u*n,e[9]=u*l*a-c*n,e[10]=l*l*a+s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function m(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function y(e,t,r){const n=t[0],o=t[1],s=t[2],i=t[3],a=n+n,c=o+o,u=s+s,l=n*a,f=n*c,h=n*u,d=o*c,p=o*u,m=s*u,y=i*a,g=i*c,b=i*u;return e[0]=1-(d+m),e[1]=f+b,e[2]=h-g,e[3]=0,e[4]=f-b,e[5]=1-(l+m),e[6]=p+y,e[7]=0,e[8]=h+g,e[9]=p-y,e[10]=1-(l+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const g=(0,n.c)();function b(e,t,r,n){const o=t[0],s=t[1],i=t[2],a=t[3],c=o+o,u=s+s,l=i+i,f=o*c,h=o*u,d=o*l,p=s*u,m=s*l,y=i*l,g=a*c,b=a*u,M=a*l,w=n[0],_=n[1],v=n[2];return e[0]=(1-(p+y))*w,e[1]=(h+M)*w,e[2]=(d-b)*w,e[3]=0,e[4]=(h-M)*_,e[5]=(1-(f+y))*_,e[6]=(m+g)*_,e[7]=0,e[8]=(d+b)*v,e[9]=(m-g)*v,e[10]=(1-(f+p))*v,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function M(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function _(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],i=e[3],a=e[4],c=e[5],u=e[6],l=e[7],f=e[8],h=e[9],d=e[10],p=e[11],m=e[12],y=e[13],g=e[14],b=e[15],M=t[0],w=t[1],_=t[2],v=t[3],S=t[4],x=t[5],P=t[6],O=t[7],E=t[8],R=t[9],T=t[10],C=t[11],A=t[12],q=t[13],L=t[14],j=t[15],B=(0,o.g)();return Math.abs(r-M)<=B*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(n-w)<=B*Math.max(1,Math.abs(n),Math.abs(w))&&Math.abs(s-_)<=B*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(i-v)<=B*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(a-S)<=B*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(c-x)<=B*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(u-P)<=B*Math.max(1,Math.abs(u),Math.abs(P))&&Math.abs(l-O)<=B*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(f-E)<=B*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(h-R)<=B*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(d-T)<=B*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(p-C)<=B*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(m-A)<=B*Math.max(1,Math.abs(m),Math.abs(A))&&Math.abs(y-q)<=B*Math.max(1,Math.abs(y),Math.abs(q))&&Math.abs(g-L)<=B*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(b-j)<=B*Math.max(1,Math.abs(b),Math.abs(j))}function v(e){const t=(0,o.g)(),r=e[0],n=e[1],s=e[2],i=e[4],a=e[5],c=e[6],u=e[8],l=e[9],f=e[10];return Math.abs(1-(r*r+i*i+u*u))<=t&&Math.abs(1-(n*n+a*a+l*l))<=t&&Math.abs(1-(s*s+c*c+f*f))<=t}function S(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const x=u,P=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=t[4],a=t[5],c=t[6],u=t[7],l=t[8],f=t[9],h=t[10],d=t[11],p=t[12],m=t[13],y=t[14],g=t[15];return e[0]=a*(h*g-d*y)-f*(c*g-u*y)+m*(c*d-u*h),e[1]=-(n*(h*g-d*y)-f*(o*g-s*y)+m*(o*d-s*h)),e[2]=n*(c*g-u*y)-a*(o*g-s*y)+m*(o*u-s*c),e[3]=-(n*(c*d-u*h)-a*(o*d-s*h)+f*(o*u-s*c)),e[4]=-(i*(h*g-d*y)-l*(c*g-u*y)+p*(c*d-u*h)),e[5]=r*(h*g-d*y)-l*(o*g-s*y)+p*(o*d-s*h),e[6]=-(r*(c*g-u*y)-i*(o*g-s*y)+p*(o*u-s*c)),e[7]=r*(c*d-u*h)-i*(o*d-s*h)+l*(o*u-s*c),e[8]=i*(f*g-d*m)-l*(a*g-u*m)+p*(a*d-u*f),e[9]=-(r*(f*g-d*m)-l*(n*g-s*m)+p*(n*d-s*f)),e[10]=r*(a*g-u*m)-i*(n*g-s*m)+p*(n*u-s*a),e[11]=-(r*(a*d-u*f)-i*(n*d-s*f)+l*(n*u-s*a)),e[12]=-(i*(f*y-h*m)-l*(a*y-c*m)+p*(a*h-c*f)),e[13]=r*(f*y-h*m)-l*(n*y-o*m)+p*(n*h-o*f),e[14]=-(r*(a*y-c*m)-i*(n*y-o*m)+p*(n*c-o*a)),e[15]=r*(a*h-c*f)-i*(n*h-o*f)+l*(n*c-o*a),e},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},determinant:function(e){const t=e[0],r=e[1],n=e[2],o=e[3],s=e[4],i=e[5],a=e[6],c=e[7],u=e[8],l=e[9],f=e[10],h=e[11],d=e[12],p=e[13],m=e[14],y=e[15];return(t*i-r*s)*(f*y-h*m)-(t*a-n*s)*(l*y-h*p)+(t*c-o*s)*(l*m-f*p)+(r*a-n*i)*(u*y-h*d)-(r*c-o*i)*(u*m-f*d)+(n*c-o*a)*(u*p-l*d)},equals:_,exactEquals:w,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=r+r,a=n+n,c=o+o,u=r*i,l=n*i,f=n*a,h=o*i,d=o*a,p=o*c,m=s*i,y=s*a,g=s*c;return e[0]=1-f-p,e[1]=l+g,e[2]=h-y,e[3]=0,e[4]=l-g,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=h+y,e[9]=d-m,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=g,n=-t[0],o=-t[1],s=-t[2],i=t[3],a=t[4],c=t[5],u=t[6],l=t[7],f=n*n+o*o+s*s+i*i;return f>0?(r[0]=2*(a*i+l*n+c*s-u*o)/f,r[1]=2*(c*i+l*o+u*n-a*s)/f,r[2]=2*(u*i+l*s+a*o-c*n)/f):(r[0]=2*(a*i+l*n+c*s-u*o),r[1]=2*(c*i+l*o+u*n-a*s),r[2]=2*(u*i+l*s+a*o-c*n)),y(e,t,r),e},fromRotation:p,fromRotationTranslation:y,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(e,t,r,n,o){const s=t[0],i=t[1],a=t[2],c=t[3],u=s+s,l=i+i,f=a+a,h=s*u,d=s*l,p=s*f,m=i*l,y=i*f,g=a*f,b=c*u,M=c*l,w=c*f,_=n[0],v=n[1],S=n[2],x=o[0],P=o[1],O=o[2],E=(1-(m+g))*_,R=(d+w)*_,T=(p-M)*_,C=(d-w)*v,A=(1-(h+g))*v,q=(y+b)*v,L=(p+M)*S,j=(y-b)*S,B=(1-(h+m))*S;return e[0]=E,e[1]=R,e[2]=T,e[3]=0,e[4]=C,e[5]=A,e[6]=q,e[7]=0,e[8]=L,e[9]=j,e[10]=B,e[11]=0,e[12]=r[0]+x-(E*x+C*P+L*O),e[13]=r[1]+P-(R*x+A*P+j*O),e[14]=r[2]+O-(T*x+q*P+B*O),e[15]=1,e},fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:d,fromXRotation:m,fromYRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,r,n,o,s,i){const a=1/(r-t),c=1/(o-n),u=1/(s-i);return e[0]=2*s*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*c,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(o+n)*c,e[10]=(i+s)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*s*2*u,e[15]=0,e},getRotation:function(e,t){const r=t[0]+t[5]+t[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e},getScaling:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[4],i=t[5],a=t[6],c=t[8],u=t[9],l=t[10];return e[0]=Math.sqrt(r*r+n*n+o*o),e[1]=Math.sqrt(s*s+i*i+a*a),e[2]=Math.sqrt(c*c+u*u+l*l),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},hasIdentityRotation:S,identity:i,invert:c,invertOrIdentity:function(e,t){return c(e,t)||i(e),e},isOrthoNormal:v,lookAt:function(e,t,r,n){const s=t[0],a=t[1],c=t[2];let u=s-r[0],l=a-r[1],f=c-r[2];const h=(0,o.g)();if(Math.abs(u)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void i(e);let d=1/Math.sqrt(u*u+l*l+f*f);u*=d,l*=d,f*=d;const p=n[0],m=n[1],y=n[2];let g=m*f-y*l,b=y*u-p*f,M=p*l-m*u;d=Math.sqrt(g*g+b*b+M*M),d?(d=1/d,g*=d,b*=d,M*=d):(g=0,b=0,M=0);let w=l*M-f*b,_=f*g-u*M,v=u*b-l*g;d=Math.sqrt(w*w+_*_+v*v),d?(d=1/d,w*=d,_*=d,v*=d):(w=0,_=0,v=0),e[0]=g,e[1]=w,e[2]=u,e[3]=0,e[4]=b,e[5]=_,e[6]=l,e[7]=0,e[8]=M,e[9]=v,e[10]=f,e[11]=0,e[12]=-(g*s+b*a+M*c),e[13]=-(w*s+_*a+v*c),e[14]=-(u*s+l*a+f*c),e[15]=1},mul:x,multiply:u,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},ortho:function(e,t,r,n,o,s,i){const a=1/(t-r),c=1/(n-o),u=1/(s-i);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*c,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*a,e[13]=(o+n)*c,e[14]=(i+s)*u,e[15]=1,e},perspective:function(e,t,r,n,o){const s=1/Math.tan(t/2);let i;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=o&&o!==1/0?(i=1/(n-o),e[10]=(o+n)*i,e[14]=2*o*n*i):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){const o=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),i=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),c=2/(i+a),u=2/(o+s);return e[0]=c,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(i-a)*c*.5,e[9]=(o-s)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},rotate:h,rotateX:function(e,t,r){const n=Math.sin(r),o=Math.cos(r),s=t[4],i=t[5],a=t[6],c=t[7],u=t[8],l=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*o+u*n,e[5]=i*o+l*n,e[6]=a*o+f*n,e[7]=c*o+h*n,e[8]=u*o-s*n,e[9]=l*o-i*n,e[10]=f*o-a*n,e[11]=h*o-c*n,e},rotateY:function(e,t,r){const n=Math.sin(r),o=Math.cos(r),s=t[0],i=t[1],a=t[2],c=t[3],u=t[8],l=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*o-u*n,e[1]=i*o-l*n,e[2]=a*o-f*n,e[3]=c*o-h*n,e[8]=s*n+u*o,e[9]=i*n+l*o,e[10]=a*n+f*o,e[11]=c*n+h*o,e},rotateZ:function(e,t,r){const n=Math.sin(r),o=Math.cos(r),s=t[0],i=t[1],a=t[2],c=t[3],u=t[4],l=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*o+u*n,e[1]=i*o+l*n,e[2]=a*o+f*n,e[3]=c*o+h*n,e[4]=u*o-s*n,e[5]=l*o-i*n,e[6]=f*o-a*n,e[7]=h*o-c*n,e},scale:f,set:s,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:P,subtract:M,targetTo:function(e,t,r,n){const o=t[0],s=t[1],i=t[2],a=n[0],c=n[1],u=n[2];let l=o-r[0],f=s-r[1],h=i-r[2],d=l*l+f*f+h*h;d>0&&(d=1/Math.sqrt(d),l*=d,f*=d,h*=d);let p=c*h-u*f,m=u*l-a*h,y=a*f-c*l;return d=p*p+m*m+y*y,d>0&&(d=1/Math.sqrt(d),p*=d,m*=d,y*=d),e[0]=p,e[1]=m,e[2]=y,e[3]=0,e[4]=f*y-h*m,e[5]=h*p-l*y,e[6]=l*m-f*p,e[7]=0,e[8]=l,e[9]=f,e[10]=h,e[11]=0,e[12]=o,e[13]=s,e[14]=i,e[15]=1,e},translate:l,transpose:a},Symbol.toStringTag,{value:"Module"}))},13598:(e,t,r)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}function s(e,t){return new Float64Array(e,t,16)}r.d(t,{I:()=>i,a:()=>s,b:()=>o,c:()=>n});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:n,createView:s,fromValues:function(e,t,r,n,o,s,i,a,c,u,l,f,h,d,p,m){return[e,t,r,n,o,s,i,a,c,u,l,f,h,d,p,m]}},Symbol.toStringTag,{value:"Module"}))},94961:(e,t,r)=>{function n(){return[0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3]]}function s(e,t){return new Float64Array(e,t,4)}r.d(t,{I:()=>i,a:()=>o,b:()=>n,c:()=>s});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:n,createView:s,fromValues:function(e,t,r,n){return[e,t,r,n]}},Symbol.toStringTag,{value:"Module"}))},8310:(e,t,r)=>{r.d(t,{a:()=>g,c:()=>m,g:()=>b,h:()=>y,j:()=>_,l:()=>R}),r(80442);var n=r(92604),o=r(22021),s=r(52138),i=r(17896),a=r(65617),c=r(98766),u=r(88669),l=r(62155),f=r(78341),h=r(61277),d=r(12981);const p=m();function m(){return(0,u.c)()}function y(e,t=m()){return(0,c.c)(t,e)}function g(e){return e[3]}function b(e){return e}function M(e,t,r){if(null==t)return!1;const{origin:n,direction:o}=t,s=w;s[0]=n[0]-e[0],s[1]=n[1]-e[1],s[2]=n[2]-e[2];const i=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===i)return!1;const a=2*(o[0]*s[0]+o[1]*s[1]+o[2]*s[2]),c=a*a-4*i*(s[0]*s[0]+s[1]*s[1]+s[2]*s[2]-e[3]*e[3]);if(c<0)return!1;const u=Math.sqrt(c);let l=(-a-u)/(2*i);const f=(-a+u)/(2*i);return(l<0||f<l&&f>0)&&(l=f),!(l<0||(r&&(r[0]=n[0]+o[0]*l,r[1]=n[1]+o[1]*l,r[2]=n[2]+o[2]*l),0))}const w=(0,a.c)();function _(e,t){return M(e,t,null)}function v(e,t,r){const n=d.WM.get(),o=d.MP.get();(0,i.c)(n,t.origin,t.direction);const a=g(e);(0,i.c)(r,n,t.origin),(0,i.b)(r,r,1/(0,i.l)(r)*a);const c=x(e,t.origin),u=(0,h.EU)(t.origin,r);return(0,s.d)(o,u+c,n),(0,i.m)(r,r,o),r}function S(e,t,r){const n=(0,i.g)(d.WM.get(),t,e),o=(0,i.b)(d.WM.get(),n,e[3]/(0,i.l)(n));return(0,i.e)(r,o,e)}function x(e,t){const r=(0,i.g)(d.WM.get(),t,e),n=(0,i.l)(r),s=g(e),a=s+Math.abs(s-n);return(0,o.ZF)(s/a)}const P=(0,a.c)();function O(e,t,r,n){const s=(0,i.g)(P,t,e);switch(r){case l.R.X:{const e=(0,o.jE)(s,P)[2];return(0,i.s)(n,-Math.sin(e),Math.cos(e),0)}case l.R.Y:{const e=(0,o.jE)(s,P),t=e[1],r=e[2],a=Math.sin(t);return(0,i.s)(n,-a*Math.cos(r),-a*Math.sin(r),Math.cos(t))}case l.R.Z:return(0,i.n)(n,s);default:return}}function E(e,t){const r=(0,i.g)(T,t,e);return(0,i.l)(r)-e[3]}function R(e,t){const r=(0,i.a)(e,t),n=g(e);return r<=n*n}const T=(0,a.c)(),C=m();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:p,altitudeAt:E,angleToSilhouette:x,axisAt:O,clear:function(e){e[0]=e[1]=e[2]=e[3]=0},closestPoint:function(e,t,r){return M(e,t,r)?r:((0,f.JI)(t,e,r),S(e,r,r))},closestPointOnSilhouette:v,containsPoint:R,copy:y,create:m,distanceToSilhouette:function(e,t){const r=(0,i.g)(d.WM.get(),t,e),n=(0,i.p)(r),o=e[3]*e[3];return Math.sqrt(Math.abs(n-o))},elevate:function(e,t,r){return e!==r&&(0,i.i)(r,e),r[3]=e[3]+t,r},fromCenterAndRadius:function(e,t){return(0,u.f)(e[0],e[1],e[2],t)},fromRadius:function(e,t){return e[0]=e[1]=e[2]=0,e[3]=t,e},fromValues:function(e,t,r,n){return(0,u.f)(e,t,r,n)},getCenter:b,getRadius:g,intersectRay:M,intersectRayClosestSilhouette:function(e,t,r){if(M(e,t,r))return r;const n=v(e,t,d.WM.get());return(0,i.e)(r,t.origin,(0,i.b)(d.WM.get(),t.direction,(0,i.h)(t.origin,n)/(0,i.l)(t.direction))),r},intersectsRay:_,projectPoint:S,setAltitudeAt:function(e,t,r,n){const o=E(e,t),s=O(e,t,l.R.Z,T),a=(0,i.b)(T,s,r-o);return(0,i.e)(n,t,a)},setExtent:function(e,t,r){return n.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),e===r?r:y(e,r)},tmpSphere:C,union:function(e,t,r=m()){const n=(0,i.h)(e,t),o=e[3],s=t[3];return n+s<o?((0,c.c)(r,e),r):n+o<s?((0,c.c)(r,t),r):((0,i.f)(r,e,t,(n+s-o)/(2*n)),r[3]=(n+o+s)/2,r)},wrap:function(e){return e}},Symbol.toStringTag,{value:"Module"}))},97323:(e,t,r)=>{function n(){return[0,0]}function o(e,t){return[e,t]}function s(e,t){return new Float64Array(e,t,2)}function i(){return o(1,1)}function a(){return o(1,0)}function c(){return o(0,1)}r.d(t,{a:()=>n,c:()=>s,f:()=>o});const u=i(),l=a(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:l,UNIT_Y:f,ZEROS:[0,0],clone:function(e){return[e[0],e[1]]},create:n,createView:s,fromArray:function(e,t=[0,0]){const r=Math.min(2,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:o,ones:i,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},20773:(e,t,r)=>{r.d(t,{a:()=>a,b:()=>i,c:()=>o,d:()=>l,e:()=>c,n:()=>f,s:()=>u,t:()=>s});var n=r(72220);function o(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,o=3,s=o){if(e.length/o!==Math.ceil(t.length/s))return n.c.error("source and destination buffers need to have the same number of elements"),e;const i=e.length/o,a=r[0],c=r[1],u=r[2],l=r[4],f=r[5],h=r[6],d=r[8],p=r[9],m=r[10],y=r[12],g=r[13],b=r[14];let M=0,w=0;for(let r=0;r<i;r++){const r=t[M],n=t[M+1],i=t[M+2];e[w]=a*r+l*n+d*i+y,e[w+1]=c*r+f*n+p*i+g,e[w+2]=u*r+h*n+m*i+b,M+=s,w+=o}return e}function i(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,o=3,s=o){if(e.length/o!==Math.ceil(t.length/s))return void n.c.error("source and destination buffers need to have the same number of elements");const i=e.length/o,a=r[0],c=r[1],u=r[2],l=r[3],f=r[4],h=r[5],d=r[6],p=r[7],m=r[8];let y=0,g=0;for(let r=0;r<i;r++){const r=t[y],n=t[y+1],i=t[y+2];e[g]=a*r+l*n+d*i,e[g+1]=c*r+f*n+p*i,e[g+2]=u*r+h*n+m*i,y+=s,g+=o}}function c(e,t,r){u(e.typedBuffer,t,r,e.typedBufferStride)}function u(e,t,r,n=3){const o=Math.min(e.length/n,t.count),s=t.typedBuffer,i=t.typedBufferStride;let a=0,c=0;for(let t=0;t<o;t++)e[c]=r*s[a],e[c+1]=r*s[a+1],e[c+2]=r*s[a+2],a+=i,c+=n}function l(e,t){f(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function f(e,t,r=3,n=r){const o=Math.min(e.length/r,t.length/n);let s=0,i=0;for(let a=0;a<o;a++){const o=t[s],a=t[s+1],c=t[s+2],u=o*o+a*a+c*c;if(u>0){const t=1/Math.sqrt(u);e[i]=t*o,e[i+1]=t*a,e[i+2]=t*c}s+=n,i+=r}}Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:l,scale:u,scaleView:c,shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,s=e.typedBufferStride,i=t.typedBuffer,a=t.typedBufferStride;let c=0,u=0;for(let e=0;e<n;e++)o[u]=i[c]>>r,o[u+1]=i[c+1]>>r,o[u+2]=i[c+2]>>r,c+=a,u+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o},Symbol.toStringTag,{value:"Module"}))},88669:(e,t,r)=>{function n(){return[0,0,0,0]}function o(e,t,r,n){return[e,t,r,n]}function s(e,t){return new Float64Array(e,t,4)}function i(){return o(1,1,1,1)}function a(){return o(1,0,0,0)}function c(){return o(0,1,0,0)}function u(){return o(0,0,1,0)}function l(){return o(0,0,0,1)}r.d(t,{a:()=>s,c:()=>n,f:()=>o});const f=i(),h=a(),d=c(),p=u(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:m,UNIT_X:h,UNIT_Y:d,UNIT_Z:p,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,createView:s,fromArray:function(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:o,ones:i,unitW:l,unitX:a,unitY:c,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},91303:(e,t,r)=>{var n;r.d(t,{Y:()=>n}),function(e){e[e.KILOBYTES=1024]="KILOBYTES",e[e.MEGABYTES=1048576]="MEGABYTES",e[e.GIGABYTES=1073741824]="GIGABYTES"}(n||(n={}))},2368:(e,t,r)=>{r.d(t,{J:()=>l,j:()=>f});var n=r(43697),o=r(92036),s=(r(80442),r(22974)),i=(r(92604),r(70586)),a=r(31263),c=r(1153),u=r(52011);const l=e=>{let t=class extends e{clone(){const e=(0,c.vw)(this);(0,i.O3)(e,"unable to clone instance of non-accessor class");const t=e.metadatas,r=e.store,n={},o=new Map;for(const e in t){const i=t[e],c=r?.originOf(e),u=i.clonable;if(i.readOnly||!1===u||c!==a.s3.USER&&c!==a.s3.DEFAULTS&&c!==a.s3.WEB_MAP&&c!==a.s3.WEB_SCENE)continue;const l=this[e];let f=null;f="function"==typeof u?u(l):"reference"===u?l:(0,s.Vo)(l),null!=l&&null==f||(c===a.s3.DEFAULTS?o.set(e,f):n[e]=f)}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(o.size){const e=(0,c.vw)(u)?.store;if(e)for(const[t,r]of o)e.set(t,r,a.s3.DEFAULTS)}return u}};return t=(0,n._)([(0,u.j)("esri.core.Clonable")],t),t};let f=class extends(l(o.Z)){};f=(0,n._)([(0,u.j)("esri.core.Clonable")],f)},22807:(e,t,r)=>{r.d(t,{x:()=>o});var n=r(41213);class o{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,n.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,s));e++)this._items.push(this._allocator())}}const s=1024},90578:(e,t,r)=>{r.d(t,{p:()=>c});var n=r(75215),o=r(7628);const s=Object.prototype.toString;function i(e){const t="__accessorMetadata__"in e?(0,n.se)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,n){(0,o.Oe)(e,t).cast=n}function c(...e){if(3!==e.length||"string"!=typeof e[1])return 1===e.length&&"[object Function]"===s.call(e[0])?i(e[0]):1===e.length&&"string"==typeof e[0]?function(e){return(t,r)=>{(0,o.Oe)(t,e).cast=t[r]}}(e[0]):void 0}},71715:(e,t,r)=>{r.d(t,{r:()=>o});var n=r(5600);function o(e,t,r){let o,s;return void 0===t||Array.isArray(t)?(s=e,r=t,o=[void 0]):(s=t,o=Array.isArray(e)?e:[e]),(e,t)=>{const i=e.constructor.prototype;o.forEach((o=>{const a=(0,n.CJ)(e,o,s);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=i[t],r&&(a.read.source=(a.read.source||[]).concat(r))}))}}},9361:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(43697),o=r(96674),s=r(5600),i=(r(75215),r(67676),r(80442),r(71715)),a=r(52011),c=r(82971);let u=class extends o.wq{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=c.Z.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof c.Z)return e;if(null!=e){const r=new c.Z;return r.read(e,t),r}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,n._)([(0,s.Cb)()],u.prototype,"type",void 0),(0,n._)([(0,s.Cb)({readOnly:!0})],u.prototype,"cache",null),(0,n._)([(0,s.Cb)({readOnly:!0})],u.prototype,"extent",null),(0,n._)([(0,s.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasM",void 0),(0,n._)([(0,s.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasZ",void 0),(0,n._)([(0,s.Cb)({type:c.Z,json:{write:!0},value:c.Z.WGS84})],u.prototype,"spatialReference",void 0),(0,n._)([(0,i.r)("spatialReference")],u.prototype,"readSpatialReference",null),u=(0,n._)([(0,a.j)("esri.geometry.Geometry")],u);const l=u},94139:(e,t,r)=>{r.d(t,{Z:()=>M});var n,o=r(43697),s=r(92604),i=r(5600),a=r(90578),c=(r(67676),r(80442),r(71715)),u=r(52011),l=r(30556),f=r(75215),h=r(9361),d=r(82971),p=r(8744),m=r(40488);const y=[0,0];function g(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let b=n=class extends h.Z{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const r=e._get("spatialReference");t._set("spatialReference",Object.isFrozen(r)?r:r.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,r,n,o){let i;if(Array.isArray(e))i=e,o=t,e=i[0],t=i[1],r=i[2],n=i[3];else if(e&&"object"==typeof e){if(i=e,e=null!=i.x?i.x:i.longitude,t=null!=i.y?i.y:i.latitude,r=i.z,n=i.m,(o=i.spatialReference)&&"esri.geometry.SpatialReference"!==o.declaredClass&&(o=new d.Z(o)),null!=i.longitude||null!=i.latitude)if(null==i.longitude)s.Z.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==i.latitude)s.Z.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!i.declaredClass&&o&&o.isWebMercator){const r=(0,m.hG)(i.longitude,i.latitude,y);e=r[0],t=r[1]}}else g(r)?(o=r,r=null):g(n)&&(o=n,n=null);const a={x:e,y:t};return null==a.x&&null!=a.y?s.Z.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&s.Z.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=o&&(a.spatialReference=o),null!=r&&(a.z=r),null!=n&&(a.m=n),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){const{spatialReference:e,x:t,y:r}=this;if(e){if(e.isWebMercator)return(0,m.R6)(t,r,y)[1];if(e.isGeographic)return r}return null}set latitude(e){const{spatialReference:t,x:r}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,m.hG)(r,e,y)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){const{x:e,y:t,spatialReference:r}=this;if(r){if(r.isWebMercator)return(0,m.R6)(e,t,y)[0];if(r.isGeographic)return e}return null}set longitude(e){const{y:t,spatialReference:r}=this;null!=e&&r&&(r.isWebMercator?this._set("x",(0,m.hG)(e,t,y)[0]):r.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,r){t[r]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new n;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return n.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:r,z:n,m:o,spatialReference:s}=this,{z:i,m:a}=e;let{x:c,y:u,spatialReference:l}=e;if(!s.equals(l))if(s.isWebMercator&&l.isWGS84)[c,u]=(0,m.hG)(c,u),l=s;else{if(!s.isWGS84||!l.isWebMercator)return!1;[c,u]=(0,m.R6)(c,u),l=s}return t===c&&r===u&&n===i&&o===a&&s.wkid===l.wkid}offset(e,t,r){return this.x+=e,this.y+=t,null!=r&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;const e=(0,p.C5)(this.spatialReference);if(!e)return this;let t=this.x;const[r,n]=e.valid,o=2*n;let s;return t>n?(s=Math.ceil(Math.abs(t-n)/o),t-=s*o):t<r&&(s=Math.ceil(Math.abs(t-r)/o),t+=s*o),this._set("x",t),this}distance(e){return function(e,t){const r=e.x-t.x,n=e.y-t.y,o=e.hasZ&&t.hasZ?e.z-t.z:0;return Math.sqrt(r*r+n*n+o*o)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,o._)([(0,i.Cb)({readOnly:!0})],b.prototype,"cache",null),(0,o._)([(0,i.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasM",null),(0,o._)([(0,i.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasZ",null),(0,o._)([(0,i.Cb)({type:Number})],b.prototype,"latitude",null),(0,o._)([(0,i.Cb)({type:Number})],b.prototype,"longitude",null),(0,o._)([(0,i.Cb)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.p)((e=>isNaN(e)?e:(0,f.q9)(e)))],b.prototype,"x",void 0),(0,o._)([(0,l.c)("x")],b.prototype,"writeX",null),(0,o._)([(0,c.r)("x")],b.prototype,"readX",null),(0,o._)([(0,i.Cb)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],b.prototype,"z",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],b.prototype,"m",void 0),b=n=(0,o._)([(0,u.j)("esri.geometry.Point")],b),b.prototype.toJSON.isDefaultToJSON=!0;const M=b},62155:(e,t,r)=>{var n;r.d(t,{R:()=>n}),function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.Z=2]="Z"}(n||(n={}))},83025:(e,t,r)=>{r.d(t,{JK:()=>a,QZ:()=>s,Rq:()=>i,bg:()=>o,mB:()=>c});var n=r(1533);function o(e,t=!1){return e<=n.DB?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function s(e){return((0,n.kJ)(e)?e.length:e.byteLength/8)<=n.DB?Array.from(e):new Float64Array(e)}function i(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e,t){for(let r=0;r<t.length;++r)e[r]=t[r];return e}function c(e){return Array.isArray(e)?new Float64Array(e):e}},85872:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(43697),o=r(2368),s=r(96674),i=r(5600),a=(r(75215),r(67676),r(80442),r(36030)),c=r(52011),u=r(65617),l=r(94139);let f=class extends((0,o.J)(s.wq)){constructor(e){super(e),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,u.c)()}getOriginPoint(e){const[t,r,n]=this.origin;return new l.Z({x:t,y:r,z:n,spatialReference:e})}setOriginFromPoint({x:e,y:t,z:r}){this.origin=(0,u.f)(e,t,r??0)}};(0,n._)([(0,a.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],f.prototype,"type",void 0),(0,n._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],f.prototype,"origin",void 0),f=(0,n._)([(0,c.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],f);const h=f},50567:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(43697),o=r(2368),s=r(96674),i=(r(92604),r(75215),r(67676),r(80442),r(20102),r(36030)),a=r(52011);let c=class extends((0,o.J)(s.wq)){constructor(){super({}),this.type="georeferenced",this.isRelative=!1,this.isGeoreferenced=!0}};(0,n._)([(0,i.J)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,n._)([(0,a.j)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c);const u=c},84555:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(43697),o=r(2368),s=r(96674),i=r(5600),a=(r(75215),r(67676),r(80442),r(36030)),c=r(52011),u=r(65617),l=r(94139);let f=class extends((0,o.J)(s.wq)){constructor(e){super(e),this.type="local",this.isRelative=!0,this.isGeoreferenced=!1,this.origin=(0,u.c)()}getOriginPoint(e){const[t,r,n]=this.origin;return new l.Z({x:t,y:r,z:n,spatialReference:e})}setOriginFromPoint({x:e,y:t,z:r}){this.origin=(0,u.f)(e,t,r??0)}};(0,n._)([(0,a.J)({local:"local"},{readOnly:!0})],f.prototype,"type",void 0),(0,n._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],f.prototype,"origin",void 0),f=(0,n._)([(0,c.j)("esri.geometry.support.MeshLocalVertexSpace")],f);const h=f},72220:(e,t,r)=>{r.d(t,{c:()=>n});const n=r(92604).Z.getLogger("esri.views.3d.support.buffer.math")},78341:(e,t,r)=>{r.d(t,{JI:()=>u,Ue:()=>i,re:()=>c}),r(67676);var n=r(22807),o=r(17896),s=r(65617);function i(e){return e?a((0,s.a)(e.origin),(0,s.a)(e.direction)):a((0,s.c)(),(0,s.c)())}function a(e,t){return{origin:e,direction:t}}function c(e,t){const r=l.get();return r.origin=e,r.direction=t,r}function u(e,t,r){const n=(0,o.d)(e.direction,(0,o.g)(r,t,e.origin));return(0,o.e)(r,e.origin,(0,o.b)(r,e.direction,n)),r}r(12981);const l=new n.x((()=>i()))},61277:(e,t,r)=>{r.d(t,{EU:()=>i});var n=r(22021),o=r(17896),s=r(65617);function i(e,t){const r=(0,o.d)(e,t)/((0,o.l)(e)*(0,o.l)(t));return-(0,n.ZF)(r)}(0,s.c)(),(0,s.c)()},12981:(e,t,r)=>{r.d(t,{MP:()=>p,WM:()=>d});var n=r(91303),o=r(41213),s=r(46521),i=r(13598),a=r(94961),c=r(97323),u=r(65617),l=r(88669);class f{constructor(e,t,r){this._itemByteSize=e,this._itemCreate=t,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(r/this._itemByteSize)}get(){0===this._itemsPtr&&(0,o.Y)((()=>this._reset()));const e=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=e;){const e=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let t=0;t<this._itemsPerBuffer;++t)this._items.push(this._itemCreate(e,t*this._itemByteSize));this._buffers.push(e)}return this._items[this._itemsPtr++]}_reset(){const e=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>e;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(e=h){return new f(16,c.c,e)}static createVec3f64(e=h){return new f(24,u.b,e)}static createVec4f64(e=h){return new f(32,l.a,e)}static createMat3f64(e=h){return new f(72,s.a,e)}static createMat4f64(e=h){return new f(128,i.a,e)}static createQuatf64(e=h){return new f(32,a.c,e)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const h=4*n.Y.KILOBYTES,d=(f.createVec2f64(),f.createVec3f64()),p=(f.createVec4f64(),f.createMat3f64(),f.createMat4f64());f.createQuatf64()},40488:(e,t,r)=>{r.d(t,{$:()=>M,Q8:()=>m,R6:()=>b,Sx:()=>w,hG:()=>g,iV:()=>y,mZ:()=>f});var n=r(22974),o=r(82971),s=r(68441),i=r(8744);const a=57.29577951308232,c=.017453292519943;function u(e){return e*a}function l(e){return e*c}function f(e){return Math.PI/2-2*Math.atan(Math.exp(-e/s.sv.radius))}function h(e){return null!=e.wkid||null!=e.wkt}const d=[0,0];function p(e,t,r,n,o){const s=e,i=o;if(i.spatialReference=r,"x"in s&&"x"in i)[i.x,i.y]=t(s.x,s.y,d,n);else if("xmin"in s&&"xmin"in i)[i.xmin,i.ymin]=t(s.xmin,s.ymin,d,n),[i.xmax,i.ymax]=t(s.xmax,s.ymax,d,n);else if("paths"in s&&"paths"in i||"rings"in s&&"rings"in i){const e="paths"in s?s.paths:s.rings,r=[];let o;for(let s=0;s<e.length;s++){const i=e[s];o=[],r.push(o);for(let e=0;e<i.length;e++)o.push(t(i[e][0],i[e][1],[0,0],n)),i[e].length>2&&o[e].push(i[e][2]),i[e].length>3&&o[e].push(i[e][3])}"paths"in i?i.paths=r:i.rings=r}else if("points"in s&&"points"in i){const e=s.points,r=[];for(let o=0;o<e.length;o++)r[o]=t(e[o][0],e[o][1],[0,0],n),e[o].length>2&&r[o].push(e[o][2]),e[o].length>3&&r[o].push(e[o][3]);i.points=r}return o}function m(e,t){const r=e&&(h(e)?e:e.spatialReference),n=t&&(h(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!r||!n)&&(!!(0,i.fS)(n,r)||(0,i.sS)(n)&&(0,i.oR)(r)||(0,i.sS)(r)&&(0,i.oR)(n))}function y(e,t){if(null==e)return null;const r=e.spatialReference,s=t&&(h(t)?t:t.spatialReference);return m(r,s)?(0,i.fS)(r,s)?(0,n.d9)(e):(0,i.sS)(s)?p(e,g,o.Z.WebMercator,!1,(0,n.d9)(e)):(0,i.oR)(s)?p(e,b,o.Z.WGS84,!1,(0,n.d9)(e)):null:null}function g(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const n=l(t);return r[0]=l(e)*s.sv.radius,r[1]=s.sv.halfSemiMajorAxis*Math.log((1+Math.sin(n))/(1-Math.sin(n))),r}function b(e,t,r=[0,0],n=!1){const o=u(e/s.sv.radius);return r[0]=n?o:o-360*Math.floor((o+180)/360),r[1]=u(Math.PI/2-2*Math.atan(Math.exp(-t/s.sv.radius))),r}function M(e,t=!1,r=(0,n.d9)(e)){return p(e,g,o.Z.WebMercator,t,r)}function w(e,t=!1,r=(0,n.d9)(e)){return p(e,b,o.Z.WGS84,t,r)}},3172:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(68773),o=r(40330),s=r(20102),i=r(80442),a=r(22974),c=r(95330),u=r(17452),l=r(19745),f=r(71058),h=r(85958);async function d(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,u.u0)(t.query.toString().replaceAll("+"," ")));const a=(0,u.HK)(e),l=(0,u.jc)(e);l||a||(e=(0,u.Fv)(e));const g={url:e,requestOptions:{...t}};let b=(0,u.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=S("request:interceptor",e,t)}if((n instanceof Error||n instanceof s.Z)&&(r=S("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(b,g);if(null!=e)return{data:e,getHeader:w,httpStatus:200,requestOptions:g.requestOptions,url:g.url};b.after||b.error||(b=null)}if(e=g.url,"image"===(t=g.requestOptions).responseType&&((0,i.Z)("host-webworker")||(0,i.Z)("host-node")))throw S("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),g);if("head"===t.method){if(t.body)throw S("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),g);if(a||l)throw S("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),g)}if(await async function(){(0,i.Z)("host-webworker")?p||(p=await r.e(9884).then(r.bind(r,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),p)return p.execute(e,t);const M=new AbortController;(0,c.fu)(t,(()=>M.abort()));const _={controller:M,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:b,params:g,redoRequest:!1,useIdentity:m.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},v=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,i=r.body;let a=null,u=null;if(y&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(u=i),e.fetchOptions={cache:r.cacheBust&&!("polyfill"in d._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:m.priority,redirect:"follow",signal:s},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken&&n.default.apiKey&&(0,f.r)(t)&&(r.query||(r.query={}),r.query.token=n.default.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!P(t)&&!(0,c.Hc)(s)){let n;"immediate"===r.authMode?(await x(),n=await o.id.getCredential(t,{signal:s}),e.credential=n):"no-prompt"===r.authMode?(await x(),n=await o.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=n):o.id&&(n=o.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[t,r]=await O(e)}while(!await R(e,t,r))}catch(r){const n=S("request:server",r,e.params,t);throw n.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(n),n}const s=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,u.kl)(s)){const e=(0,u.P$)(s,!0);e&&m.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(r.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&o.id){const e=o.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,i.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getHeader:t?e=>t?.headers.get(e):w,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(_);return b?.after?.(v),v}let p;const m=n.default.request,y="FormData"in globalThis,g=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],M=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],w=()=>null,_=Symbol();function v(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.kl)(t)}function S(e,t,r,n){let o="Error";const i={url:r.url,requestOptions:r.requestOptions,getHeader:w,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=i,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n?.status,s=t.message;s&&(o=s),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=_ in t?t[_]:t}return(0,c.D_)(t)?(0,c.zE)():new s.Z(e,o,i)}async function x(){o.id||await Promise.all([r.e(7126),r.e(6261),r.e(450)]).then(r.bind(r,73660))}function P(e){return M.some((t=>t.test(e)))}async function O(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions??{},s=(0,u.jc)(t)||(0,u.HK)(t),a=r.responseType||"json",f=s?0:null!=r.timeout?r.timeout:m.timeout;let p=!1;if(!s){e.useSSL&&(t=(0,u.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let s={...r.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,u.B7)(s);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const c=t.length+1+a.length;let f;p="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||c>m.maxUrlLength;const d=r.useProxy||!!(0,u.ed)(t);if(d){const e=(0,u.b7)(t);f=e.path,!p&&f.length+1+c>m.maxUrlLength&&(p=!0),e.query&&(s={...e.query,...s})}if("HEAD"===n.method&&(p||d)){if(p){if(c>m.maxUrlLength)throw S("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw S("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw S("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,u.fl)(t,s):(n.body=(0,u.B7)(s),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,s),d&&(e.useProxy=!0,t=`${f}?${t}`),s.token&&y&&n.body instanceof FormData&&!(0,l.P)(t)&&n.body.set("token",s.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(o.id){const r=o.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include",(0,h.jH)(t)&&await(0,h.jz)(p?(0,u.fl)(t,s):t))}let g,b,M=0,w=!1;f>0&&(M=setTimeout((()=>{w=!0,e.controller.abort()}),f));try{if("native-request-init"===r.responseType)b=n,b.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||p||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!s&&!e.useProxy&&m.proxyUrl&&!v(t)){if(g=await d._abortableFetch(t,n),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)b=g;else if("HEAD"!==n.method)if(g.ok){switch(a){case"array-buffer":b=await g.arrayBuffer();break;case"blob":case"image":b=await g.blob();break;default:b=await g.text()}if(M&&(clearTimeout(M),M=0),"json"===a||"xml"===a||"document"===a)if(b)switch(a){case"json":b=JSON.parse(b);break;case"xml":b=E(b,"application/xml");break;case"document":b=E(b,"text/html")}else b=null;if(b){if("array-buffer"===a||"blob"===a){const e=g.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&b["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(b).json();e.error&&(b=e)}catch{}}"image"===a&&b instanceof Blob&&(b=await T(URL.createObjectURL(b),e,!0))}}else{b=await g.text();try{b=JSON.parse(b)}catch{}}}else b=await T(t,e)}catch(n){if("AbortError"===n.name){if(w)throw(0,h.Tf)();throw(0,c.zE)("Request canceled")}if(!(!g&&n instanceof TypeError&&m.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||v(t))throw n;e.redoRequest=!0,(0,u.tD)({proxyUrl:m.proxyUrl,urlPrefix:(0,u.P$)(t)??""})}finally{M&&clearTimeout(M)}return[g,b]}function E(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function R(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let s,i;if(r&&(r.error?s=r.error:"error"===r.status&&Array.isArray(r.messages)&&(s={...r},s[_]=r,s.details=r.messages)),!s&&!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[_]=r,s;let a,c=null;s&&(i=Number(s.code),c=s.hasOwnProperty("subcode")?Number(s.subcode):null,a=s.messageCode,a=a?.toUpperCase());const u=n.authMode;if(403===i&&(4===c||s.message?.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===i)&&void 0!==i&&g.includes(i)&&!P(e.params.url)&&(403!==i||a&&!b.includes(a)&&(null==c||2===c&&e.credentialToken))){await x();try{const t=await o.id.getCredential(e.params.url,{error:S("request:server",s,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;s=t}}if(s)throw s;return!0}function T(e,t,r=!1){const n=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=m.priority,o.src=e,(0,h.fY)(o,e,r,n)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>s});var n=r(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,n.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{Hu:()=>f,Tf:()=>l,fY:()=>a,jH:()=>h,jz:()=>d});var n=r(68773),o=r(80442),s=r(95330),i=r(17452);function a(e,t,r=!1,n){return new Promise(((i,a)=>{if((0,s.Hc)(n))return void a(c());let u=()=>{h(),a(new Error(`Unable to load ${t}`))},l=()=>{const t=e;h(),i(t)},f=()=>{if(!e)return;const t=e;h(),t.src="",a(c())};const h=()=>{(0,o.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",l)),u=null,l=null,e=null,null!=n&&n.removeEventListener("abort",f),f=null,r&&URL.revokeObjectURL(t)};null!=n&&n.addEventListener("abort",f),(0,o.Z)("esri-image-decode")?e.decode().then(l,u):(e.addEventListener("error",u),e.addEventListener("load",l))}))}function c(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const u="Timeout exceeded";function l(){return new Error(u)}function f(e){n.default.request.crossOriginNoCorsDomains||(n.default.request.crossOriginNoCorsDomains={});const t=n.default.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,i.P$)(r)??""]=0:(t[(0,i.P$)("http://"+r)??""]=0,t[(0,i.P$)("https://"+r)??""]=0)}function h(e){const t=n.default.request.crossOriginNoCorsDomains;if(t){let r=(0,i.P$)(e);if(r)return r=r.toLowerCase(),!(0,i.D6)(r,(0,i.TI)())&&t[r]<Date.now()-36e5}return!1}async function d(e){const t=n.default.request.crossOriginNoCorsDomains,r=(0,i.P$)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const o=(0,i.mN)(e);e=o.path,"json"===o.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}},31412:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>E,dracoDecompressPointCloudData:()=>_,filterObbsForModifications:()=>v,filterObbsForModificationsSync:()=>L,initialize:()=>N,interpretObbModificationResults:()=>q,process:()=>w,project:()=>P,setLegacySchema:()=>x,setModifications:()=>S,setModificationsSync:()=>C,test:()=>Z,transformNormals:()=>O});var n,o,s=r(82971),i=r(83025),a=r(85872),c=r(50567),u=r(84555),l=r(20773);!function(e){e[e.None=0]="None",e[e.Int16=1]="Int16",e[e.Int32=2]="Int32"}(n||(n={})),function(e){e[e.Replace=0]="Replace",e[e.Outside=1]="Outside",e[e.Inside=2]="Inside",e[e.Finished=3]="Finished"}(o||(o={}));var f=r(99880);function h(e){return(0,f.V)(`esri/libs/i3s/${e}`)}let d;var p,m,y,g,b,M;async function w(e){T=await I();const t=[e.geometryBuffer];return{result:A(T,e,t),transferList:t}}async function _(e){T=await I();const t=[e.geometryBuffer],{geometryBuffer:r}=e,n=r.byteLength,o=T._malloc(n),s=new Uint8Array(T.HEAPU8.buffer,o,n);s.set(new Uint8Array(r));const i=T.dracoDecompressPointCloudData(o,s.byteLength);if(T._free(o),i.error.length>0)throw new Error(`i3s.wasm: ${i.error}`);const a=i.featureIds?.length>0?i.featureIds.slice():null,c=i.positions.slice();return a&&t.push(a.buffer),t.push(c.buffer),{result:{positions:c,featureIds:a},transferList:t}}async function v(e){await I(),L(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function S(e){await I(),C(e)}async function x(e){T=await I(),T.setLegacySchema(e.context,e.jsonSchema)}async function P(e){const{localMatrix:t,origin:n,positions:o,vertexSpace:l,local:f}=e,h=s.Z.fromJSON(e.inSpatialReference),d=s.Z.fromJSON(e.outSpatialReference),p={georeferenced:c.Z,georeferencedRelative:a.Z,local:u.Z}[l.type].fromJSON(l);let m;if("georeferenced"===p.type){const[{projectBuffer:e},{initializeProjection:t}]=await Promise.all([r.e(7360).then(r.bind(r,87360)),Promise.all([r.e(3615),r.e(3215),r.e(661)]).then(r.bind(r,73615))]);await t(h,d),m=new Float64Array(o.length),e(o,h,0,m,d,0,m.length/3)}else{const{project:e}=await Promise.all([r.e(3615),r.e(3215),r.e(6481),r.e(6459),r.e(5234)]).then(r.bind(r,66459));m=(0,i.mB)(e({positions:o,transform:t?{localMatrix:t}:void 0,vertexSpace:p,inSpatialReference:h,outSpatialReference:d,local:f}))}const y=m.length,[g,b,M]=n;for(let e=0;e<y;e+=3)m[e]-=g,m[e+1]-=b,m[e+2]-=M;return{result:{projected:m,original:o},transferList:[m.buffer,o.buffer]}}async function O({normalMatrix:e,normals:t}){const r=new Float32Array(t.length);return(0,l.a)(r,t,e),(0,l.n)(r,r),{result:{transformed:r,original:t},transferList:[r.buffer,t.buffer]}}function E(e){j(e)}let R,T;function C(e){if(!T)return;const t=e.modifications,r=T._malloc(8*t.length),n=new Float64Array(T.HEAPU8.buffer,r,t.length);for(let e=0;e<t.length;++e)n[e]=t[e];T.setModifications(e.context,r,t.length,e.isGeodetic),T._free(r)}function A(e,t,r){const{context:o,localOrigin:s,globalTrafo:i,mbs:a,obb:c,elevationOffset:u,geometryBuffer:l,geometryDescriptor:f,indexToVertexProjector:h,vertexToRenderProjector:d}=t,p=e._malloc(l.byteLength),m=e._malloc(33*Float64Array.BYTES_PER_ELEMENT),y=new Uint8Array(e.HEAPU8.buffer,p,l.byteLength);y.set(new Uint8Array(l));const g=new Float64Array(e.HEAPU8.buffer,m,33);B(g,s);let b=g.byteOffset+3*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b);B(M,i),b+=16*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b),B(M,a),b+=4*g.BYTES_PER_ELEMENT,null!=c&&(M=new Float64Array(g.buffer,b),B(M,c.center),b+=3*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b),B(M,c.halfSize),b+=3*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b),B(M,c.quaternion));const w=f,_={isDraco:!1,isLegacy:!1,color:t.layouts.some((e=>e.some((e=>"color"===e.name)))),normal:t.needNormals&&t.layouts.some((e=>e.some((e=>"normalCompressed"===e.name)))),uv0:t.layouts.some((e=>e.some((e=>"uv0"===e.name)))),uvRegion:t.layouts.some((e=>e.some((e=>"uvRegion"===e.name)))),featureIndex:w.featureIndex},v=e.process(o,!!t.obb,p,y.byteLength,w,_,m,u,h,d,t.normalReferenceFrame);if(e._free(m),e._free(p),v.error.length>0)throw new Error(`i3s.wasm: ${v.error}`);if(v.discarded)return null;const S=v.componentOffsets.length>0?v.componentOffsets.slice():null,x=v.featureIds.length>0?v.featureIds.slice():null,P=v.anchorIds.length>0?Array.from(v.anchorIds):null,O=v.anchors.length>0?Array.from(v.anchors):null,E=v.interleavedVertedData.slice().buffer,R=v.indicesType===n.Int16?new Uint16Array(v.indices.buffer,v.indices.byteOffset,v.indices.byteLength/2).slice():new Uint32Array(v.indices.buffer,v.indices.byteOffset,v.indices.byteLength/4).slice(),T=v.positions.slice(),C=v.positionIndicesType===n.Int16?new Uint16Array(v.positionIndices.buffer,v.positionIndices.byteOffset,v.positionIndices.byteLength/2).slice():new Uint32Array(v.positionIndices.buffer,v.positionIndices.byteOffset,v.positionIndices.byteLength/4).slice(),A={layout:t.layouts[0],interleavedVertexData:E,indices:R,hasColors:v.hasColors,hasModifications:v.hasModifications,positionData:{data:T,indices:C}};return x&&r.push(x.buffer),S&&r.push(S.buffer),r.push(E),r.push(R.buffer),r.push(T.buffer),r.push(C.buffer),{componentOffsets:S,featureIds:x,anchorIds:P,anchors:O,transformedGeometry:A,obb:v.obb}}function q(e){return 0===e?m.Unmodified:1===e?m.PotentiallyModified:2===e?m.Culled:m.Unknown}function L(e){if(!T)return;const{context:t,buffer:r}=e,n=T._malloc(r.byteLength),o=r.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(T.HEAPU8.buffer,n,o),i=new Float64Array(r);s.set(i),T.filterOBBs(t,n,o),i.set(s),T._free(n)}function j(e){T&&0===T.destroy(e)&&(T=null)}function B(e,t){for(let r=0;r<t.length;++r)e[r]=t[r]}async function N(){T||await I()}function I(){return T?Promise.resolve(T):(R||(R=(d||(d=new Promise((e=>r.e(6710).then(r.bind(r,26710)).then((e=>e.i)).then((({default:t})=>{const r=t({locateFile:h,onRuntimeInitialized:()=>e(r)});delete r.then})))).catch((e=>{throw e}))),d).then((e=>(T=e,R=null,T)))),R)}r(8310),(M=p||(p={}))[M.Unmodified=0]="Unmodified",M[M.Culled=1]="Culled",M[M.NotChecked=2]="NotChecked",function(e){e[e.Unmodified=0]="Unmodified",e[e.PotentiallyModified=1]="PotentiallyModified",e[e.Culled=2]="Culled",e[e.Unknown=3]="Unknown",e[e.NotChecked=4]="NotChecked"}(m||(m={})),function(e){e[e.Unknown=0]="Unknown",e[e.Uncached=1]="Uncached",e[e.Cached=2]="Cached"}(y||(y={})),function(e){e[e.None=0]="None",e[e.MaxScreenThreshold=1]="MaxScreenThreshold",e[e.ScreenSpaceRelative=2]="ScreenSpaceRelative",e[e.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",e[e.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(g||(g={})),function(e){e[e.Hole=0]="Hole",e[e.Leaf=1]="Leaf"}(b||(b={}));const Z={transform:(e,t)=>T&&A(T,e,t),destroy:j}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1412,9880],{99880:(e,t,r)=>{r.d(t,{V:()=>c});var n=r(68773),o=(r(3172),r(20102)),s=r(92604),i=r(17452);const a=s.Z.getLogger("esri.assets");function c(e){if(!n.default.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(n.default.assetsPath,e)}},46521:(e,t,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function o(e,t,r,n,o,s,i,a,c){return[e,t,r,n,o,s,i,a,c]}function s(e,t){return new Float64Array(e,t,9)}r.d(t,{a:()=>n,c:()=>s,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:n,createView:s,fromValues:o},Symbol.toStringTag,{value:"Module"}))},52138:(e,t,r)=>{r.d(t,{A:()=>m,a:()=>_,b:()=>f,c:()=>p,d:()=>d,e:()=>w,f:()=>b,g:()=>i,i:()=>c,k:()=>h,m:()=>u,s:()=>s,t:()=>a,w:()=>l,y:()=>S,z:()=>v});var n=r(65617),o=r(46851);function s(e,t,r,n,o,s,i,a,c,u,l,f,h,d,p,m,y){return e[0]=t,e[1]=r,e[2]=n,e[3]=o,e[4]=s,e[5]=i,e[6]=a,e[7]=c,e[8]=u,e[9]=l,e[10]=f,e[11]=h,e[12]=d,e[13]=p,e[14]=m,e[15]=y,e}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function a(e,t){if(e===t){const r=t[1],n=t[2],o=t[3],s=t[6],i=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=s,e[11]=t[14],e[12]=o,e[13]=i,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function c(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=t[4],a=t[5],c=t[6],u=t[7],l=t[8],f=t[9],h=t[10],d=t[11],p=t[12],m=t[13],y=t[14],g=t[15],b=r*a-n*i,M=r*c-o*i,w=r*u-s*i,_=n*c-o*a,v=n*u-s*a,S=o*u-s*c,x=l*m-f*p,P=l*y-h*p,O=l*g-d*p,E=f*y-h*m,R=f*g-d*m,T=h*g-d*y;let C=b*T-M*R+w*E+_*O-v*P+S*x;return C?(C=1/C,e[0]=(a*T-c*R+u*E)*C,e[1]=(o*R-n*T-s*E)*C,e[2]=(m*S-y*v+g*_)*C,e[3]=(h*v-f*S-d*_)*C,e[4]=(c*O-i*T-u*P)*C,e[5]=(r*T-o*O+s*P)*C,e[6]=(y*w-p*S-g*M)*C,e[7]=(l*S-h*w+d*M)*C,e[8]=(i*R-a*O+u*x)*C,e[9]=(n*O-r*R-s*x)*C,e[10]=(p*v-m*w+g*b)*C,e[11]=(f*w-l*v-d*b)*C,e[12]=(a*P-i*E-c*x)*C,e[13]=(r*E-n*P+o*x)*C,e[14]=(m*M-p*_-y*b)*C,e[15]=(l*_-f*M+h*b)*C,e):null}function u(e,t,r){const n=t[0],o=t[1],s=t[2],i=t[3],a=t[4],c=t[5],u=t[6],l=t[7],f=t[8],h=t[9],d=t[10],p=t[11],m=t[12],y=t[13],g=t[14],b=t[15];let M=r[0],w=r[1],_=r[2],v=r[3];return e[0]=M*n+w*a+_*f+v*m,e[1]=M*o+w*c+_*h+v*y,e[2]=M*s+w*u+_*d+v*g,e[3]=M*i+w*l+_*p+v*b,M=r[4],w=r[5],_=r[6],v=r[7],e[4]=M*n+w*a+_*f+v*m,e[5]=M*o+w*c+_*h+v*y,e[6]=M*s+w*u+_*d+v*g,e[7]=M*i+w*l+_*p+v*b,M=r[8],w=r[9],_=r[10],v=r[11],e[8]=M*n+w*a+_*f+v*m,e[9]=M*o+w*c+_*h+v*y,e[10]=M*s+w*u+_*d+v*g,e[11]=M*i+w*l+_*p+v*b,M=r[12],w=r[13],_=r[14],v=r[15],e[12]=M*n+w*a+_*f+v*m,e[13]=M*o+w*c+_*h+v*y,e[14]=M*s+w*u+_*d+v*g,e[15]=M*i+w*l+_*p+v*b,e}function l(e,t,r){const n=r[0],o=r[1],s=r[2];if(t===e)e[12]=t[0]*n+t[4]*o+t[8]*s+t[12],e[13]=t[1]*n+t[5]*o+t[9]*s+t[13],e[14]=t[2]*n+t[6]*o+t[10]*s+t[14],e[15]=t[3]*n+t[7]*o+t[11]*s+t[15];else{const r=t[0],i=t[1],a=t[2],c=t[3],u=t[4],l=t[5],f=t[6],h=t[7],d=t[8],p=t[9],m=t[10],y=t[11];e[0]=r,e[1]=i,e[2]=a,e[3]=c,e[4]=u,e[5]=l,e[6]=f,e[7]=h,e[8]=d,e[9]=p,e[10]=m,e[11]=y,e[12]=r*n+u*o+d*s+t[12],e[13]=i*n+l*o+p*s+t[13],e[14]=a*n+f*o+m*s+t[14],e[15]=c*n+h*o+y*s+t[15]}return e}function f(e,t,r){const n=r[0],o=r[1],s=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*o,e[5]=t[5]*o,e[6]=t[6]*o,e[7]=t[7]*o,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function h(e,t,r,n){let s,i,a,c,u,l,f,h,d,p,m,y,g,b,M,w,_,v,S,x,P,O,E,R,T=n[0],C=n[1],A=n[2],q=Math.sqrt(T*T+C*C+A*A);return q<(0,o.g)()?null:(q=1/q,T*=q,C*=q,A*=q,s=Math.sin(r),i=Math.cos(r),a=1-i,c=t[0],u=t[1],l=t[2],f=t[3],h=t[4],d=t[5],p=t[6],m=t[7],y=t[8],g=t[9],b=t[10],M=t[11],w=T*T*a+i,_=C*T*a+A*s,v=A*T*a-C*s,S=T*C*a-A*s,x=C*C*a+i,P=A*C*a+T*s,O=T*A*a+C*s,E=C*A*a-T*s,R=A*A*a+i,e[0]=c*w+h*_+y*v,e[1]=u*w+d*_+g*v,e[2]=l*w+p*_+b*v,e[3]=f*w+m*_+M*v,e[4]=c*S+h*x+y*P,e[5]=u*S+d*x+g*P,e[6]=l*S+p*x+b*P,e[7]=f*S+m*x+M*P,e[8]=c*O+h*E+y*R,e[9]=u*O+d*E+g*R,e[10]=l*O+p*E+b*R,e[11]=f*O+m*E+M*R,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function d(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function p(e,t,r){if(0===t)return i(e);let n,s,a,c=r[0],u=r[1],l=r[2],f=Math.sqrt(c*c+u*u+l*l);return f<(0,o.g)()?null:(f=1/f,c*=f,u*=f,l*=f,n=Math.sin(t),s=Math.cos(t),a=1-s,e[0]=c*c*a+s,e[1]=u*c*a+l*n,e[2]=l*c*a-u*n,e[3]=0,e[4]=c*u*a-l*n,e[5]=u*u*a+s,e[6]=l*u*a+c*n,e[7]=0,e[8]=c*l*a+u*n,e[9]=u*l*a-c*n,e[10]=l*l*a+s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function m(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function y(e,t,r){const n=t[0],o=t[1],s=t[2],i=t[3],a=n+n,c=o+o,u=s+s,l=n*a,f=n*c,h=n*u,d=o*c,p=o*u,m=s*u,y=i*a,g=i*c,b=i*u;return e[0]=1-(d+m),e[1]=f+b,e[2]=h-g,e[3]=0,e[4]=f-b,e[5]=1-(l+m),e[6]=p+y,e[7]=0,e[8]=h+g,e[9]=p-y,e[10]=1-(l+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const g=(0,n.c)();function b(e,t,r,n){const o=t[0],s=t[1],i=t[2],a=t[3],c=o+o,u=s+s,l=i+i,f=o*c,h=o*u,d=o*l,p=s*u,m=s*l,y=i*l,g=a*c,b=a*u,M=a*l,w=n[0],_=n[1],v=n[2];return e[0]=(1-(p+y))*w,e[1]=(h+M)*w,e[2]=(d-b)*w,e[3]=0,e[4]=(h-M)*_,e[5]=(1-(f+y))*_,e[6]=(m+g)*_,e[7]=0,e[8]=(d+b)*v,e[9]=(m-g)*v,e[10]=(1-(f+p))*v,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function M(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function _(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],i=e[3],a=e[4],c=e[5],u=e[6],l=e[7],f=e[8],h=e[9],d=e[10],p=e[11],m=e[12],y=e[13],g=e[14],b=e[15],M=t[0],w=t[1],_=t[2],v=t[3],S=t[4],x=t[5],P=t[6],O=t[7],E=t[8],R=t[9],T=t[10],C=t[11],A=t[12],q=t[13],L=t[14],j=t[15],B=(0,o.g)();return Math.abs(r-M)<=B*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(n-w)<=B*Math.max(1,Math.abs(n),Math.abs(w))&&Math.abs(s-_)<=B*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(i-v)<=B*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(a-S)<=B*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(c-x)<=B*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(u-P)<=B*Math.max(1,Math.abs(u),Math.abs(P))&&Math.abs(l-O)<=B*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(f-E)<=B*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(h-R)<=B*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(d-T)<=B*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(p-C)<=B*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(m-A)<=B*Math.max(1,Math.abs(m),Math.abs(A))&&Math.abs(y-q)<=B*Math.max(1,Math.abs(y),Math.abs(q))&&Math.abs(g-L)<=B*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(b-j)<=B*Math.max(1,Math.abs(b),Math.abs(j))}function v(e){const t=(0,o.g)(),r=e[0],n=e[1],s=e[2],i=e[4],a=e[5],c=e[6],u=e[8],l=e[9],f=e[10];return Math.abs(1-(r*r+i*i+u*u))<=t&&Math.abs(1-(n*n+a*a+l*l))<=t&&Math.abs(1-(s*s+c*c+f*f))<=t}function S(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const x=u,P=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=t[4],a=t[5],c=t[6],u=t[7],l=t[8],f=t[9],h=t[10],d=t[11],p=t[12],m=t[13],y=t[14],g=t[15];return e[0]=a*(h*g-d*y)-f*(c*g-u*y)+m*(c*d-u*h),e[1]=-(n*(h*g-d*y)-f*(o*g-s*y)+m*(o*d-s*h)),e[2]=n*(c*g-u*y)-a*(o*g-s*y)+m*(o*u-s*c),e[3]=-(n*(c*d-u*h)-a*(o*d-s*h)+f*(o*u-s*c)),e[4]=-(i*(h*g-d*y)-l*(c*g-u*y)+p*(c*d-u*h)),e[5]=r*(h*g-d*y)-l*(o*g-s*y)+p*(o*d-s*h),e[6]=-(r*(c*g-u*y)-i*(o*g-s*y)+p*(o*u-s*c)),e[7]=r*(c*d-u*h)-i*(o*d-s*h)+l*(o*u-s*c),e[8]=i*(f*g-d*m)-l*(a*g-u*m)+p*(a*d-u*f),e[9]=-(r*(f*g-d*m)-l*(n*g-s*m)+p*(n*d-s*f)),e[10]=r*(a*g-u*m)-i*(n*g-s*m)+p*(n*u-s*a),e[11]=-(r*(a*d-u*f)-i*(n*d-s*f)+l*(n*u-s*a)),e[12]=-(i*(f*y-h*m)-l*(a*y-c*m)+p*(a*h-c*f)),e[13]=r*(f*y-h*m)-l*(n*y-o*m)+p*(n*h-o*f),e[14]=-(r*(a*y-c*m)-i*(n*y-o*m)+p*(n*c-o*a)),e[15]=r*(a*h-c*f)-i*(n*h-o*f)+l*(n*c-o*a),e},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},determinant:function(e){const t=e[0],r=e[1],n=e[2],o=e[3],s=e[4],i=e[5],a=e[6],c=e[7],u=e[8],l=e[9],f=e[10],h=e[11],d=e[12],p=e[13],m=e[14],y=e[15];return(t*i-r*s)*(f*y-h*m)-(t*a-n*s)*(l*y-h*p)+(t*c-o*s)*(l*m-f*p)+(r*a-n*i)*(u*y-h*d)-(r*c-o*i)*(u*m-f*d)+(n*c-o*a)*(u*p-l*d)},equals:_,exactEquals:w,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=r+r,a=n+n,c=o+o,u=r*i,l=n*i,f=n*a,h=o*i,d=o*a,p=o*c,m=s*i,y=s*a,g=s*c;return e[0]=1-f-p,e[1]=l+g,e[2]=h-y,e[3]=0,e[4]=l-g,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=h+y,e[9]=d-m,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=g,n=-t[0],o=-t[1],s=-t[2],i=t[3],a=t[4],c=t[5],u=t[6],l=t[7],f=n*n+o*o+s*s+i*i;return f>0?(r[0]=2*(a*i+l*n+c*s-u*o)/f,r[1]=2*(c*i+l*o+u*n-a*s)/f,r[2]=2*(u*i+l*s+a*o-c*n)/f):(r[0]=2*(a*i+l*n+c*s-u*o),r[1]=2*(c*i+l*o+u*n-a*s),r[2]=2*(u*i+l*s+a*o-c*n)),y(e,t,r),e},fromRotation:p,fromRotationTranslation:y,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(e,t,r,n,o){const s=t[0],i=t[1],a=t[2],c=t[3],u=s+s,l=i+i,f=a+a,h=s*u,d=s*l,p=s*f,m=i*l,y=i*f,g=a*f,b=c*u,M=c*l,w=c*f,_=n[0],v=n[1],S=n[2],x=o[0],P=o[1],O=o[2],E=(1-(m+g))*_,R=(d+w)*_,T=(p-M)*_,C=(d-w)*v,A=(1-(h+g))*v,q=(y+b)*v,L=(p+M)*S,j=(y-b)*S,B=(1-(h+m))*S;return e[0]=E,e[1]=R,e[2]=T,e[3]=0,e[4]=C,e[5]=A,e[6]=q,e[7]=0,e[8]=L,e[9]=j,e[10]=B,e[11]=0,e[12]=r[0]+x-(E*x+C*P+L*O),e[13]=r[1]+P-(R*x+A*P+j*O),e[14]=r[2]+O-(T*x+q*P+B*O),e[15]=1,e},fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:d,fromXRotation:m,fromYRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,r,n,o,s,i){const a=1/(r-t),c=1/(o-n),u=1/(s-i);return e[0]=2*s*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*c,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(o+n)*c,e[10]=(i+s)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*s*2*u,e[15]=0,e},getRotation:function(e,t){const r=t[0]+t[5]+t[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e},getScaling:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[4],i=t[5],a=t[6],c=t[8],u=t[9],l=t[10];return e[0]=Math.sqrt(r*r+n*n+o*o),e[1]=Math.sqrt(s*s+i*i+a*a),e[2]=Math.sqrt(c*c+u*u+l*l),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},hasIdentityRotation:S,identity:i,invert:c,invertOrIdentity:function(e,t){return c(e,t)||i(e),e},isOrthoNormal:v,lookAt:function(e,t,r,n){const s=t[0],a=t[1],c=t[2];let u=s-r[0],l=a-r[1],f=c-r[2];const h=(0,o.g)();if(Math.abs(u)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void i(e);let d=1/Math.sqrt(u*u+l*l+f*f);u*=d,l*=d,f*=d;const p=n[0],m=n[1],y=n[2];let g=m*f-y*l,b=y*u-p*f,M=p*l-m*u;d=Math.sqrt(g*g+b*b+M*M),d?(d=1/d,g*=d,b*=d,M*=d):(g=0,b=0,M=0);let w=l*M-f*b,_=f*g-u*M,v=u*b-l*g;d=Math.sqrt(w*w+_*_+v*v),d?(d=1/d,w*=d,_*=d,v*=d):(w=0,_=0,v=0),e[0]=g,e[1]=w,e[2]=u,e[3]=0,e[4]=b,e[5]=_,e[6]=l,e[7]=0,e[8]=M,e[9]=v,e[10]=f,e[11]=0,e[12]=-(g*s+b*a+M*c),e[13]=-(w*s+_*a+v*c),e[14]=-(u*s+l*a+f*c),e[15]=1},mul:x,multiply:u,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},ortho:function(e,t,r,n,o,s,i){const a=1/(t-r),c=1/(n-o),u=1/(s-i);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*c,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*a,e[13]=(o+n)*c,e[14]=(i+s)*u,e[15]=1,e},perspective:function(e,t,r,n,o){const s=1/Math.tan(t/2);let i;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=o&&o!==1/0?(i=1/(n-o),e[10]=(o+n)*i,e[14]=2*o*n*i):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){const o=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),i=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),c=2/(i+a),u=2/(o+s);return e[0]=c,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(i-a)*c*.5,e[9]=(o-s)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},rotate:h,rotateX:function(e,t,r){const n=Math.sin(r),o=Math.cos(r),s=t[4],i=t[5],a=t[6],c=t[7],u=t[8],l=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*o+u*n,e[5]=i*o+l*n,e[6]=a*o+f*n,e[7]=c*o+h*n,e[8]=u*o-s*n,e[9]=l*o-i*n,e[10]=f*o-a*n,e[11]=h*o-c*n,e},rotateY:function(e,t,r){const n=Math.sin(r),o=Math.cos(r),s=t[0],i=t[1],a=t[2],c=t[3],u=t[8],l=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*o-u*n,e[1]=i*o-l*n,e[2]=a*o-f*n,e[3]=c*o-h*n,e[8]=s*n+u*o,e[9]=i*n+l*o,e[10]=a*n+f*o,e[11]=c*n+h*o,e},rotateZ:function(e,t,r){const n=Math.sin(r),o=Math.cos(r),s=t[0],i=t[1],a=t[2],c=t[3],u=t[4],l=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*o+u*n,e[1]=i*o+l*n,e[2]=a*o+f*n,e[3]=c*o+h*n,e[4]=u*o-s*n,e[5]=l*o-i*n,e[6]=f*o-a*n,e[7]=h*o-c*n,e},scale:f,set:s,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:P,subtract:M,targetTo:function(e,t,r,n){const o=t[0],s=t[1],i=t[2],a=n[0],c=n[1],u=n[2];let l=o-r[0],f=s-r[1],h=i-r[2],d=l*l+f*f+h*h;d>0&&(d=1/Math.sqrt(d),l*=d,f*=d,h*=d);let p=c*h-u*f,m=u*l-a*h,y=a*f-c*l;return d=p*p+m*m+y*y,d>0&&(d=1/Math.sqrt(d),p*=d,m*=d,y*=d),e[0]=p,e[1]=m,e[2]=y,e[3]=0,e[4]=f*y-h*m,e[5]=h*p-l*y,e[6]=l*m-f*p,e[7]=0,e[8]=l,e[9]=f,e[10]=h,e[11]=0,e[12]=o,e[13]=s,e[14]=i,e[15]=1,e},translate:l,transpose:a},Symbol.toStringTag,{value:"Module"}))},13598:(e,t,r)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}function s(e,t){return new Float64Array(e,t,16)}r.d(t,{I:()=>i,a:()=>n,b:()=>o,c:()=>s});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:n,createView:s,fromValues:function(e,t,r,n,o,s,i,a,c,u,l,f,h,d,p,m){return[e,t,r,n,o,s,i,a,c,u,l,f,h,d,p,m]}},Symbol.toStringTag,{value:"Module"}))},94961:(e,t,r)=>{function n(){return[0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3]]}function s(e,t){return new Float64Array(e,t,4)}r.d(t,{I:()=>i,a:()=>n,b:()=>o,c:()=>s});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:n,createView:s,fromValues:function(e,t,r,n){return[e,t,r,n]}},Symbol.toStringTag,{value:"Module"}))},8310:(e,t,r)=>{r.d(t,{a:()=>g,c:()=>m,g:()=>b,h:()=>y,j:()=>_,l:()=>R}),r(80442);var n=r(92604),o=r(22021),s=r(52138),i=r(17896),a=r(65617),c=r(98766),u=r(88669),l=r(62155),f=r(78341),h=r(61277),d=r(12981);const p=m();function m(){return(0,u.c)()}function y(e,t=m()){return(0,c.c)(t,e)}function g(e){return e[3]}function b(e){return e}function M(e,t,r){if(null==t)return!1;const{origin:n,direction:o}=t,s=w;s[0]=n[0]-e[0],s[1]=n[1]-e[1],s[2]=n[2]-e[2];const i=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===i)return!1;const a=2*(o[0]*s[0]+o[1]*s[1]+o[2]*s[2]),c=a*a-4*i*(s[0]*s[0]+s[1]*s[1]+s[2]*s[2]-e[3]*e[3]);if(c<0)return!1;const u=Math.sqrt(c);let l=(-a-u)/(2*i);const f=(-a+u)/(2*i);return(l<0||f<l&&f>0)&&(l=f),!(l<0||(r&&(r[0]=n[0]+o[0]*l,r[1]=n[1]+o[1]*l,r[2]=n[2]+o[2]*l),0))}const w=(0,a.c)();function _(e,t){return M(e,t,null)}function v(e,t,r){const n=d.WM.get(),o=d.MP.get();(0,i.b)(n,t.origin,t.direction);const a=g(e);(0,i.b)(r,n,t.origin),(0,i.i)(r,r,1/(0,i.l)(r)*a);const c=x(e,t.origin),u=(0,h.EU)(t.origin,r);return(0,s.c)(o,u+c,n),(0,i.e)(r,r,o),r}function S(e,t,r){const n=(0,i.f)(d.WM.get(),t,e),o=(0,i.i)(d.WM.get(),n,e[3]/(0,i.l)(n));return(0,i.g)(r,o,e)}function x(e,t){const r=(0,i.f)(d.WM.get(),t,e),n=(0,i.l)(r),s=g(e),a=s+Math.abs(s-n);return(0,o.ZF)(s/a)}const P=(0,a.c)();function O(e,t,r,n){const s=(0,i.f)(P,t,e);switch(r){case l.R.X:{const e=(0,o.jE)(s,P)[2];return(0,i.s)(n,-Math.sin(e),Math.cos(e),0)}case l.R.Y:{const e=(0,o.jE)(s,P),t=e[1],r=e[2],a=Math.sin(t);return(0,i.s)(n,-a*Math.cos(r),-a*Math.sin(r),Math.cos(t))}case l.R.Z:return(0,i.n)(n,s);default:return}}function E(e,t){const r=(0,i.f)(T,t,e);return(0,i.l)(r)-e[3]}function R(e,t){const r=(0,i.a)(e,t),n=g(e);return r<=n*n}const T=(0,a.c)(),C=m();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:p,altitudeAt:E,angleToSilhouette:x,axisAt:O,clear:function(e){e[0]=e[1]=e[2]=e[3]=0},closestPoint:function(e,t,r){return M(e,t,r)?r:((0,f.JI)(t,e,r),S(e,r,r))},closestPointOnSilhouette:v,containsPoint:R,copy:y,create:m,distanceToSilhouette:function(e,t){const r=(0,i.f)(d.WM.get(),t,e),n=(0,i.o)(r),o=e[3]*e[3];return Math.sqrt(Math.abs(n-o))},elevate:function(e,t,r){return e!==r&&(0,i.c)(r,e),r[3]=e[3]+t,r},fromCenterAndRadius:function(e,t){return(0,u.a)(e[0],e[1],e[2],t)},fromRadius:function(e,t){return e[0]=e[1]=e[2]=0,e[3]=t,e},fromValues:function(e,t,r,n){return(0,u.a)(e,t,r,n)},getCenter:b,getRadius:g,intersectRay:M,intersectRayClosestSilhouette:function(e,t,r){if(M(e,t,r))return r;const n=v(e,t,d.WM.get());return(0,i.g)(r,t.origin,(0,i.i)(d.WM.get(),t.direction,(0,i.m)(t.origin,n)/(0,i.l)(t.direction))),r},intersectsRay:_,projectPoint:S,setAltitudeAt:function(e,t,r,n){const o=E(e,t),s=O(e,t,l.R.Z,T),a=(0,i.i)(T,s,r-o);return(0,i.g)(n,t,a)},setExtent:function(e,t,r){return n.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),e===r?r:y(e,r)},tmpSphere:C,union:function(e,t,r=m()){const n=(0,i.m)(e,t),o=e[3],s=t[3];return n+s<o?((0,c.c)(r,e),r):n+o<s?((0,c.c)(r,t),r):((0,i.p)(r,e,t,(n+s-o)/(2*n)),r[3]=(n+o+s)/2,r)},wrap:function(e){return e}},Symbol.toStringTag,{value:"Module"}))},97323:(e,t,r)=>{function n(){return[0,0]}function o(e,t){return[e,t]}function s(e,t){return new Float64Array(e,t,2)}function i(){return o(1,1)}function a(){return o(1,0)}function c(){return o(0,1)}r.d(t,{a:()=>n,c:()=>s,f:()=>o});const u=i(),l=a(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:l,UNIT_Y:f,ZEROS:[0,0],clone:function(e){return[e[0],e[1]]},create:n,createView:s,fromArray:function(e,t=[0,0]){const r=Math.min(2,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:o,ones:i,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},20773:(e,t,r)=>{r.d(t,{a:()=>a,b:()=>i,c:()=>o,d:()=>l,e:()=>c,n:()=>f,s:()=>u,t:()=>s});var n=r(72220);function o(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,o=3,s=o){if(e.length/o!==Math.ceil(t.length/s))return n.c.error("source and destination buffers need to have the same number of elements"),e;const i=e.length/o,a=r[0],c=r[1],u=r[2],l=r[4],f=r[5],h=r[6],d=r[8],p=r[9],m=r[10],y=r[12],g=r[13],b=r[14];let M=0,w=0;for(let r=0;r<i;r++){const r=t[M],n=t[M+1],i=t[M+2];e[w]=a*r+l*n+d*i+y,e[w+1]=c*r+f*n+p*i+g,e[w+2]=u*r+h*n+m*i+b,M+=s,w+=o}return e}function i(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,o=3,s=o){if(e.length/o!==Math.ceil(t.length/s))return void n.c.error("source and destination buffers need to have the same number of elements");const i=e.length/o,a=r[0],c=r[1],u=r[2],l=r[3],f=r[4],h=r[5],d=r[6],p=r[7],m=r[8];let y=0,g=0;for(let r=0;r<i;r++){const r=t[y],n=t[y+1],i=t[y+2];e[g]=a*r+l*n+d*i,e[g+1]=c*r+f*n+p*i,e[g+2]=u*r+h*n+m*i,y+=s,g+=o}}function c(e,t,r){u(e.typedBuffer,t,r,e.typedBufferStride)}function u(e,t,r,n=3){const o=Math.min(e.length/n,t.count),s=t.typedBuffer,i=t.typedBufferStride;let a=0,c=0;for(let t=0;t<o;t++)e[c]=r*s[a],e[c+1]=r*s[a+1],e[c+2]=r*s[a+2],a+=i,c+=n}function l(e,t){f(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function f(e,t,r=3,n=r){const o=Math.min(e.length/r,t.length/n);let s=0,i=0;for(let a=0;a<o;a++){const o=t[s],a=t[s+1],c=t[s+2],u=o*o+a*a+c*c;if(u>0){const t=1/Math.sqrt(u);e[i]=t*o,e[i+1]=t*a,e[i+2]=t*c}s+=n,i+=r}}Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:l,scale:u,scaleView:c,shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,s=e.typedBufferStride,i=t.typedBuffer,a=t.typedBufferStride;let c=0,u=0;for(let e=0;e<n;e++)o[u]=i[c]>>r,o[u+1]=i[c+1]>>r,o[u+2]=i[c+2]>>r,c+=a,u+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o},Symbol.toStringTag,{value:"Module"}))},88669:(e,t,r)=>{function n(){return[0,0,0,0]}function o(e,t,r,n){return[e,t,r,n]}function s(e,t){return new Float64Array(e,t,4)}function i(){return o(1,1,1,1)}function a(){return o(1,0,0,0)}function c(){return o(0,1,0,0)}function u(){return o(0,0,1,0)}function l(){return o(0,0,0,1)}r.d(t,{a:()=>o,b:()=>s,c:()=>n});const f=i(),h=a(),d=c(),p=u(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:m,UNIT_X:h,UNIT_Y:d,UNIT_Z:p,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,createView:s,fromArray:function(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:o,ones:i,unitW:l,unitX:a,unitY:c,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},91303:(e,t,r)=>{var n;r.d(t,{Y:()=>n}),function(e){e[e.KILOBYTES=1024]="KILOBYTES",e[e.MEGABYTES=1048576]="MEGABYTES",e[e.GIGABYTES=1073741824]="GIGABYTES"}(n||(n={}))},2368:(e,t,r)=>{r.d(t,{J:()=>l,j:()=>f});var n=r(43697),o=r(92036),s=(r(80442),r(22974)),i=(r(92604),r(70586)),a=r(31263),c=r(1153),u=r(52011);const l=e=>{let t=class extends e{clone(){const e=(0,c.vw)(this);(0,i.O3)(e,"unable to clone instance of non-accessor class");const t=e.metadatas,r=e.store,n={},o=new Map;for(const e in t){const i=t[e],c=r?.originOf(e),u=i.clonable;if(i.readOnly||!1===u||c!==a.s3.USER&&c!==a.s3.DEFAULTS&&c!==a.s3.WEB_MAP&&c!==a.s3.WEB_SCENE)continue;const l=this[e];let f=null;f="function"==typeof u?u(l):"reference"===u?l:(0,s.Vo)(l),null!=l&&null==f||(c===a.s3.DEFAULTS?o.set(e,f):n[e]=f)}const u=new(0,Object.getPrototypeOf(this).constructor)(n);if(o.size){const e=(0,c.vw)(u)?.store;if(e)for(const[t,r]of o)e.set(t,r,a.s3.DEFAULTS)}return u}};return t=(0,n._)([(0,u.j)("esri.core.Clonable")],t),t};let f=class extends(l(o.Z)){};f=(0,n._)([(0,u.j)("esri.core.Clonable")],f)},22807:(e,t,r)=>{r.d(t,{x:()=>o});var n=r(41213);class o{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,n.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,s));e++)this._items.push(this._allocator())}}const s=1024},90578:(e,t,r)=>{r.d(t,{p:()=>c});var n=r(75215),o=r(7628);const s=Object.prototype.toString;function i(e){const t="__accessorMetadata__"in e?(0,n.se)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,n){(0,o.Oe)(e,t).cast=n}function c(...e){if(3!==e.length||"string"!=typeof e[1])return 1===e.length&&"[object Function]"===s.call(e[0])?i(e[0]):1===e.length&&"string"==typeof e[0]?function(e){return(t,r)=>{(0,o.Oe)(t,e).cast=t[r]}}(e[0]):void 0}},71715:(e,t,r)=>{r.d(t,{r:()=>o});var n=r(5600);function o(e,t,r){let o,s;return void 0===t||Array.isArray(t)?(s=e,r=t,o=[void 0]):(s=t,o=Array.isArray(e)?e:[e]),(e,t)=>{const i=e.constructor.prototype;o.forEach((o=>{const a=(0,n.CJ)(e,o,s);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=i[t],r&&(a.read.source=(a.read.source||[]).concat(r))}))}}},9361:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(43697),o=r(96674),s=r(5600),i=(r(75215),r(67676),r(80442),r(71715)),a=r(52011),c=r(82971);let u=class extends o.wq{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=c.Z.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof c.Z)return e;if(null!=e){const r=new c.Z;return r.read(e,t),r}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,n._)([(0,s.Cb)()],u.prototype,"type",void 0),(0,n._)([(0,s.Cb)({readOnly:!0})],u.prototype,"cache",null),(0,n._)([(0,s.Cb)({readOnly:!0})],u.prototype,"extent",null),(0,n._)([(0,s.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasM",void 0),(0,n._)([(0,s.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasZ",void 0),(0,n._)([(0,s.Cb)({type:c.Z,json:{write:!0},value:c.Z.WGS84})],u.prototype,"spatialReference",void 0),(0,n._)([(0,i.r)("spatialReference")],u.prototype,"readSpatialReference",null),u=(0,n._)([(0,a.j)("esri.geometry.Geometry")],u);const l=u},94139:(e,t,r)=>{r.d(t,{Z:()=>M});var n,o=r(43697),s=r(92604),i=r(5600),a=r(90578),c=(r(67676),r(80442),r(71715)),u=r(52011),l=r(30556),f=r(75215),h=r(9361),d=r(82971),p=r(8744),m=r(40488);const y=[0,0];function g(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let b=n=class extends h.Z{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const r=e._get("spatialReference");t._set("spatialReference",Object.isFrozen(r)?r:r.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,r,n,o){let i;if(Array.isArray(e))i=e,o=t,e=i[0],t=i[1],r=i[2],n=i[3];else if(e&&"object"==typeof e){if(i=e,e=null!=i.x?i.x:i.longitude,t=null!=i.y?i.y:i.latitude,r=i.z,n=i.m,(o=i.spatialReference)&&"esri.geometry.SpatialReference"!==o.declaredClass&&(o=new d.Z(o)),null!=i.longitude||null!=i.latitude)if(null==i.longitude)s.Z.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==i.latitude)s.Z.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!i.declaredClass&&o&&o.isWebMercator){const r=(0,m.hG)(i.longitude,i.latitude,y);e=r[0],t=r[1]}}else g(r)?(o=r,r=null):g(n)&&(o=n,n=null);const a={x:e,y:t};return null==a.x&&null!=a.y?s.Z.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&s.Z.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=o&&(a.spatialReference=o),null!=r&&(a.z=r),null!=n&&(a.m=n),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){const{spatialReference:e,x:t,y:r}=this;if(e){if(e.isWebMercator)return(0,m.R6)(t,r,y)[1];if(e.isGeographic)return r}return null}set latitude(e){const{spatialReference:t,x:r}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,m.hG)(r,e,y)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){const{x:e,y:t,spatialReference:r}=this;if(r){if(r.isWebMercator)return(0,m.R6)(e,t,y)[0];if(r.isGeographic)return e}return null}set longitude(e){const{y:t,spatialReference:r}=this;null!=e&&r&&(r.isWebMercator?this._set("x",(0,m.hG)(e,t,y)[0]):r.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,r){t[r]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new n;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return n.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:r,z:n,m:o,spatialReference:s}=this,{z:i,m:a}=e;let{x:c,y:u,spatialReference:l}=e;if(!s.equals(l))if(s.isWebMercator&&l.isWGS84)[c,u]=(0,m.hG)(c,u),l=s;else{if(!s.isWGS84||!l.isWebMercator)return!1;[c,u]=(0,m.R6)(c,u),l=s}return t===c&&r===u&&n===i&&o===a&&s.wkid===l.wkid}offset(e,t,r){return this.x+=e,this.y+=t,null!=r&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;const e=(0,p.C5)(this.spatialReference);if(!e)return this;let t=this.x;const[r,n]=e.valid,o=2*n;let s;return t>n?(s=Math.ceil(Math.abs(t-n)/o),t-=s*o):t<r&&(s=Math.ceil(Math.abs(t-r)/o),t+=s*o),this._set("x",t),this}distance(e){return function(e,t){const r=e.x-t.x,n=e.y-t.y,o=e.hasZ&&t.hasZ?e.z-t.z:0;return Math.sqrt(r*r+n*n+o*o)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,o._)([(0,i.Cb)({readOnly:!0})],b.prototype,"cache",null),(0,o._)([(0,i.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasM",null),(0,o._)([(0,i.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasZ",null),(0,o._)([(0,i.Cb)({type:Number})],b.prototype,"latitude",null),(0,o._)([(0,i.Cb)({type:Number})],b.prototype,"longitude",null),(0,o._)([(0,i.Cb)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.p)((e=>isNaN(e)?e:(0,f.q9)(e)))],b.prototype,"x",void 0),(0,o._)([(0,l.c)("x")],b.prototype,"writeX",null),(0,o._)([(0,c.r)("x")],b.prototype,"readX",null),(0,o._)([(0,i.Cb)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],b.prototype,"z",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],b.prototype,"m",void 0),b=n=(0,o._)([(0,u.j)("esri.geometry.Point")],b),b.prototype.toJSON.isDefaultToJSON=!0;const M=b},62155:(e,t,r)=>{var n;r.d(t,{R:()=>n}),function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.Z=2]="Z"}(n||(n={}))},83025:(e,t,r)=>{r.d(t,{JK:()=>a,QZ:()=>s,Rq:()=>i,bg:()=>o,mB:()=>c});var n=r(1533);function o(e,t=!1){return e<=n.DB?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function s(e){return((0,n.kJ)(e)?e.length:e.byteLength/8)<=n.DB?Array.from(e):new Float64Array(e)}function i(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e,t){for(let r=0;r<t.length;++r)e[r]=t[r];return e}function c(e){return Array.isArray(e)?new Float64Array(e):e}},85872:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(43697),o=r(2368),s=r(96674),i=r(5600),a=(r(75215),r(67676),r(80442),r(36030)),c=r(52011),u=r(65617),l=r(94139);let f=class extends((0,o.J)(s.wq)){constructor(e){super(e),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,u.c)()}getOriginPoint(e){const[t,r,n]=this.origin;return new l.Z({x:t,y:r,z:n,spatialReference:e})}setOriginFromPoint({x:e,y:t,z:r}){this.origin=(0,u.f)(e,t,r??0)}};(0,n._)([(0,a.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],f.prototype,"type",void 0),(0,n._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],f.prototype,"origin",void 0),f=(0,n._)([(0,c.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],f);const h=f},50567:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(43697),o=r(2368),s=r(96674),i=(r(92604),r(75215),r(67676),r(80442),r(20102),r(36030)),a=r(52011);let c=class extends((0,o.J)(s.wq)){constructor(){super({}),this.type="georeferenced",this.isRelative=!1,this.isGeoreferenced=!0}};(0,n._)([(0,i.J)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,n._)([(0,a.j)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c);const u=c},84555:(e,t,r)=>{r.d(t,{Z:()=>h});var n=r(43697),o=r(2368),s=r(96674),i=r(5600),a=(r(75215),r(67676),r(80442),r(36030)),c=r(52011),u=r(65617),l=r(94139);let f=class extends((0,o.J)(s.wq)){constructor(e){super(e),this.type="local",this.isRelative=!0,this.isGeoreferenced=!1,this.origin=(0,u.c)()}getOriginPoint(e){const[t,r,n]=this.origin;return new l.Z({x:t,y:r,z:n,spatialReference:e})}setOriginFromPoint({x:e,y:t,z:r}){this.origin=(0,u.f)(e,t,r??0)}};(0,n._)([(0,a.J)({local:"local"},{readOnly:!0})],f.prototype,"type",void 0),(0,n._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],f.prototype,"origin",void 0),f=(0,n._)([(0,c.j)("esri.geometry.support.MeshLocalVertexSpace")],f);const h=f},72220:(e,t,r)=>{r.d(t,{c:()=>n});const n=r(92604).Z.getLogger("esri.views.3d.support.buffer.math")},78341:(e,t,r)=>{r.d(t,{JI:()=>u,Ue:()=>i,re:()=>c}),r(67676);var n=r(22807),o=r(17896),s=r(65617);function i(e){return e?a((0,s.g)(e.origin),(0,s.g)(e.direction)):a((0,s.c)(),(0,s.c)())}function a(e,t){return{origin:e,direction:t}}function c(e,t){const r=l.get();return r.origin=e,r.direction=t,r}function u(e,t,r){const n=(0,o.j)(e.direction,(0,o.f)(r,t,e.origin));return(0,o.g)(r,e.origin,(0,o.i)(r,e.direction,n)),r}r(12981);const l=new n.x((()=>i()))},61277:(e,t,r)=>{r.d(t,{EU:()=>i});var n=r(22021),o=r(17896),s=r(65617);function i(e,t){const r=(0,o.j)(e,t)/((0,o.l)(e)*(0,o.l)(t));return-(0,n.ZF)(r)}(0,s.c)(),(0,s.c)()},12981:(e,t,r)=>{r.d(t,{MP:()=>p,WM:()=>d});var n=r(91303),o=r(41213),s=r(46521),i=r(13598),a=r(94961),c=r(97323),u=r(65617),l=r(88669);class f{constructor(e,t,r){this._itemByteSize=e,this._itemCreate=t,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(r/this._itemByteSize)}get(){0===this._itemsPtr&&(0,o.Y)((()=>this._reset()));const e=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=e;){const e=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let t=0;t<this._itemsPerBuffer;++t)this._items.push(this._itemCreate(e,t*this._itemByteSize));this._buffers.push(e)}return this._items[this._itemsPtr++]}_reset(){const e=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>e;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(e=h){return new f(16,c.c,e)}static createVec3f64(e=h){return new f(24,u.a,e)}static createVec4f64(e=h){return new f(32,l.b,e)}static createMat3f64(e=h){return new f(72,s.c,e)}static createMat4f64(e=h){return new f(128,i.c,e)}static createQuatf64(e=h){return new f(32,a.c,e)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const h=4*n.Y.KILOBYTES,d=(f.createVec2f64(),f.createVec3f64()),p=(f.createVec4f64(),f.createMat3f64(),f.createMat4f64());f.createQuatf64()},40488:(e,t,r)=>{r.d(t,{$:()=>M,Q8:()=>m,R6:()=>b,Sx:()=>w,hG:()=>g,iV:()=>y,mZ:()=>f});var n=r(22974),o=r(82971),s=r(68441),i=r(8744);const a=57.29577951308232,c=.017453292519943;function u(e){return e*a}function l(e){return e*c}function f(e){return Math.PI/2-2*Math.atan(Math.exp(-e/s.sv.radius))}function h(e){return null!=e.wkid||null!=e.wkt}const d=[0,0];function p(e,t,r,n,o){const s=e,i=o;if(i.spatialReference=r,"x"in s&&"x"in i)[i.x,i.y]=t(s.x,s.y,d,n);else if("xmin"in s&&"xmin"in i)[i.xmin,i.ymin]=t(s.xmin,s.ymin,d,n),[i.xmax,i.ymax]=t(s.xmax,s.ymax,d,n);else if("paths"in s&&"paths"in i||"rings"in s&&"rings"in i){const e="paths"in s?s.paths:s.rings,r=[];let o;for(let s=0;s<e.length;s++){const i=e[s];o=[],r.push(o);for(let e=0;e<i.length;e++)o.push(t(i[e][0],i[e][1],[0,0],n)),i[e].length>2&&o[e].push(i[e][2]),i[e].length>3&&o[e].push(i[e][3])}"paths"in i?i.paths=r:i.rings=r}else if("points"in s&&"points"in i){const e=s.points,r=[];for(let o=0;o<e.length;o++)r[o]=t(e[o][0],e[o][1],[0,0],n),e[o].length>2&&r[o].push(e[o][2]),e[o].length>3&&r[o].push(e[o][3]);i.points=r}return o}function m(e,t){const r=e&&(h(e)?e:e.spatialReference),n=t&&(h(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!r||!n)&&(!!(0,i.fS)(n,r)||(0,i.sS)(n)&&(0,i.oR)(r)||(0,i.sS)(r)&&(0,i.oR)(n))}function y(e,t){if(null==e)return null;const r=e.spatialReference,s=t&&(h(t)?t:t.spatialReference);return m(r,s)?(0,i.fS)(r,s)?(0,n.d9)(e):(0,i.sS)(s)?p(e,g,o.Z.WebMercator,!1,(0,n.d9)(e)):(0,i.oR)(s)?p(e,b,o.Z.WGS84,!1,(0,n.d9)(e)):null:null}function g(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const n=l(t);return r[0]=l(e)*s.sv.radius,r[1]=s.sv.halfSemiMajorAxis*Math.log((1+Math.sin(n))/(1-Math.sin(n))),r}function b(e,t,r=[0,0],n=!1){const o=u(e/s.sv.radius);return r[0]=n?o:o-360*Math.floor((o+180)/360),r[1]=u(Math.PI/2-2*Math.atan(Math.exp(-t/s.sv.radius))),r}function M(e,t=!1,r=(0,n.d9)(e)){return p(e,g,o.Z.WebMercator,t,r)}function w(e,t=!1,r=(0,n.d9)(e)){return p(e,b,o.Z.WGS84,t,r)}},3172:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(68773),o=r(40330),s=r(20102),i=r(80442),a=r(22974),c=r(95330),u=r(17452),l=r(19745),f=r(71058),h=r(85958);async function d(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,u.u0)(t.query.toString().replaceAll("+"," ")));const a=(0,u.HK)(e),l=(0,u.jc)(e);l||a||(e=(0,u.Fv)(e));const g={url:e,requestOptions:{...t}};let b=(0,u.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=S("request:interceptor",e,t)}if((n instanceof Error||n instanceof s.Z)&&(r=S("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(b,g);if(null!=e)return{data:e,getHeader:w,httpStatus:200,requestOptions:g.requestOptions,url:g.url};b.after||b.error||(b=null)}if(e=g.url,"image"===(t=g.requestOptions).responseType&&((0,i.Z)("host-webworker")||(0,i.Z)("host-node")))throw S("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),g);if("head"===t.method){if(t.body)throw S("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),g);if(a||l)throw S("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),g)}if(await async function(){(0,i.Z)("host-webworker")?p||(p=await r.e(9884).then(r.bind(r,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),p)return p.execute(e,t);const M=new AbortController;(0,c.fu)(t,(()=>M.abort()));const _={controller:M,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:b,params:g,redoRequest:!1,useIdentity:m.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},v=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,i=r.body;let a=null,u=null;if(y&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(u=i),e.fetchOptions={cache:r.cacheBust&&!("polyfill"in d._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:m.priority,redirect:"follow",signal:s},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken&&n.default.apiKey&&(0,f.r)(t)&&(r.query||(r.query={}),r.query.token=n.default.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!P(t)&&!(0,c.Hc)(s)){let n;"immediate"===r.authMode?(await x(),n=await o.id.getCredential(t,{signal:s}),e.credential=n):"no-prompt"===r.authMode?(await x(),n=await o.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=n):o.id&&(n=o.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[t,r]=await O(e)}while(!await R(e,t,r))}catch(r){const n=S("request:server",r,e.params,t);throw n.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(n),n}const s=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,u.kl)(s)){const e=(0,u.P$)(s,!0);e&&m.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(r.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&o.id){const e=o.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,i.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getHeader:t?e=>t?.headers.get(e):w,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(_);return b?.after?.(v),v}let p;const m=n.default.request,y="FormData"in globalThis,g=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],M=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],w=()=>null,_=Symbol();function v(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.kl)(t)}function S(e,t,r,n){let o="Error";const i={url:r.url,requestOptions:r.requestOptions,getHeader:w,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=i,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n?.status,s=t.message;s&&(o=s),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=_ in t?t[_]:t}return(0,c.D_)(t)?(0,c.zE)():new s.Z(e,o,i)}async function x(){o.id||await Promise.all([r.e(7126),r.e(6261),r.e(450)]).then(r.bind(r,73660))}function P(e){return M.some((t=>t.test(e)))}async function O(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions??{},s=(0,u.jc)(t)||(0,u.HK)(t),a=r.responseType||"json",f=s?0:null!=r.timeout?r.timeout:m.timeout;let p=!1;if(!s){e.useSSL&&(t=(0,u.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let s={...r.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,u.B7)(s);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const c=t.length+1+a.length;let f;p="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||c>m.maxUrlLength;const d=r.useProxy||!!(0,u.ed)(t);if(d){const e=(0,u.b7)(t);f=e.path,!p&&f.length+1+c>m.maxUrlLength&&(p=!0),e.query&&(s={...e.query,...s})}if("HEAD"===n.method&&(p||d)){if(p){if(c>m.maxUrlLength)throw S("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw S("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw S("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,u.fl)(t,s):(n.body=(0,u.B7)(s),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,s),d&&(e.useProxy=!0,t=`${f}?${t}`),s.token&&y&&n.body instanceof FormData&&!(0,l.P)(t)&&n.body.set("token",s.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(o.id){const r=o.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include",(0,h.jH)(t)&&await(0,h.jz)(p?(0,u.fl)(t,s):t))}let g,b,M=0,w=!1;f>0&&(M=setTimeout((()=>{w=!0,e.controller.abort()}),f));try{if("native-request-init"===r.responseType)b=n,b.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||p||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!s&&!e.useProxy&&m.proxyUrl&&!v(t)){if(g=await d._abortableFetch(t,n),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)b=g;else if("HEAD"!==n.method)if(g.ok){switch(a){case"array-buffer":b=await g.arrayBuffer();break;case"blob":case"image":b=await g.blob();break;default:b=await g.text()}if(M&&(clearTimeout(M),M=0),"json"===a||"xml"===a||"document"===a)if(b)switch(a){case"json":b=JSON.parse(b);break;case"xml":b=E(b,"application/xml");break;case"document":b=E(b,"text/html")}else b=null;if(b){if("array-buffer"===a||"blob"===a){const e=g.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&b["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(b).json();e.error&&(b=e)}catch{}}"image"===a&&b instanceof Blob&&(b=await T(URL.createObjectURL(b),e,!0))}}else{b=await g.text();try{b=JSON.parse(b)}catch{}}}else b=await T(t,e)}catch(n){if("AbortError"===n.name){if(w)throw(0,h.Tf)();throw(0,c.zE)("Request canceled")}if(!(!g&&n instanceof TypeError&&m.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||v(t))throw n;e.redoRequest=!0,(0,u.tD)({proxyUrl:m.proxyUrl,urlPrefix:(0,u.P$)(t)??""})}finally{M&&clearTimeout(M)}return[g,b]}function E(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function R(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let s,i;if(r&&(r.error?s=r.error:"error"===r.status&&Array.isArray(r.messages)&&(s={...r},s[_]=r,s.details=r.messages)),!s&&!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[_]=r,s;let a,c=null;s&&(i=Number(s.code),c=s.hasOwnProperty("subcode")?Number(s.subcode):null,a=s.messageCode,a=a?.toUpperCase());const u=n.authMode;if(403===i&&(4===c||s.message?.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===i)&&void 0!==i&&g.includes(i)&&!P(e.params.url)&&(403!==i||a&&!b.includes(a)&&(null==c||2===c&&e.credentialToken))){await x();try{const t=await o.id.getCredential(e.params.url,{error:S("request:server",s,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;s=t}}if(s)throw s;return!0}function T(e,t,r=!1){const n=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=m.priority,o.src=e,(0,h.fY)(o,e,r,n)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>s});var n=r(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,n.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{Hu:()=>f,Tf:()=>l,fY:()=>a,jH:()=>h,jz:()=>d});var n=r(68773),o=r(80442),s=r(95330),i=r(17452);function a(e,t,r=!1,n){return new Promise(((i,a)=>{if((0,s.Hc)(n))return void a(c());let u=()=>{h(),a(new Error(`Unable to load ${t}`))},l=()=>{const t=e;h(),i(t)},f=()=>{if(!e)return;const t=e;h(),t.src="",a(c())};const h=()=>{(0,o.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",l)),u=null,l=null,e=null,null!=n&&n.removeEventListener("abort",f),f=null,r&&URL.revokeObjectURL(t)};null!=n&&n.addEventListener("abort",f),(0,o.Z)("esri-image-decode")?e.decode().then(l,u):(e.addEventListener("error",u),e.addEventListener("load",l))}))}function c(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const u="Timeout exceeded";function l(){return new Error(u)}function f(e){n.default.request.crossOriginNoCorsDomains||(n.default.request.crossOriginNoCorsDomains={});const t=n.default.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,i.P$)(r)??""]=0:(t[(0,i.P$)("http://"+r)??""]=0,t[(0,i.P$)("https://"+r)??""]=0)}function h(e){const t=n.default.request.crossOriginNoCorsDomains;if(t){let r=(0,i.P$)(e);if(r)return r=r.toLowerCase(),!(0,i.D6)(r,(0,i.TI)())&&t[r]<Date.now()-36e5}return!1}async function d(e){const t=n.default.request.crossOriginNoCorsDomains,r=(0,i.P$)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const o=(0,i.mN)(e);e=o.path,"json"===o.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}},31412:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>E,dracoDecompressPointCloudData:()=>_,filterObbsForModifications:()=>v,filterObbsForModificationsSync:()=>L,initialize:()=>N,interpretObbModificationResults:()=>q,process:()=>w,project:()=>P,setLegacySchema:()=>x,setModifications:()=>S,setModificationsSync:()=>C,test:()=>Z,transformNormals:()=>O});var n,o,s=r(82971),i=r(83025),a=r(85872),c=r(50567),u=r(84555),l=r(20773);!function(e){e[e.None=0]="None",e[e.Int16=1]="Int16",e[e.Int32=2]="Int32"}(n||(n={})),function(e){e[e.Replace=0]="Replace",e[e.Outside=1]="Outside",e[e.Inside=2]="Inside",e[e.Finished=3]="Finished"}(o||(o={}));var f=r(99880);function h(e){return(0,f.V)(`esri/libs/i3s/${e}`)}let d;var p,m,y,g,b,M;async function w(e){T=await I();const t=[e.geometryBuffer];return{result:A(T,e,t),transferList:t}}async function _(e){T=await I();const t=[e.geometryBuffer],{geometryBuffer:r}=e,n=r.byteLength,o=T._malloc(n),s=new Uint8Array(T.HEAPU8.buffer,o,n);s.set(new Uint8Array(r));const i=T.dracoDecompressPointCloudData(o,s.byteLength);if(T._free(o),i.error.length>0)throw new Error(`i3s.wasm: ${i.error}`);const a=i.featureIds?.length>0?i.featureIds.slice():null,c=i.positions.slice();return a&&t.push(a.buffer),t.push(c.buffer),{result:{positions:c,featureIds:a},transferList:t}}async function v(e){await I(),L(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function S(e){await I(),C(e)}async function x(e){T=await I(),T.setLegacySchema(e.context,e.jsonSchema)}async function P(e){const{localMatrix:t,origin:n,positions:o,vertexSpace:l,local:f}=e,h=s.Z.fromJSON(e.inSpatialReference),d=s.Z.fromJSON(e.outSpatialReference),p={georeferenced:c.Z,georeferencedRelative:a.Z,local:u.Z}[l.type].fromJSON(l);let m;if("georeferenced"===p.type){const[{projectBuffer:e},{initializeProjection:t}]=await Promise.all([r.e(7360).then(r.bind(r,87360)),Promise.all([r.e(3615),r.e(3215),r.e(661)]).then(r.bind(r,73615))]);await t(h,d),m=new Float64Array(o.length),e(o,h,0,m,d,0,m.length/3)}else{const{project:e}=await Promise.all([r.e(3615),r.e(3215),r.e(6481),r.e(6459),r.e(5234)]).then(r.bind(r,66459));m=(0,i.mB)(e({positions:o,transform:t?{localMatrix:t}:void 0,vertexSpace:p,inSpatialReference:h,outSpatialReference:d,local:f}))}const y=m.length,[g,b,M]=n;for(let e=0;e<y;e+=3)m[e]-=g,m[e+1]-=b,m[e+2]-=M;return{result:{projected:m,original:o},transferList:[m.buffer,o.buffer]}}async function O({normalMatrix:e,normals:t}){const r=new Float32Array(t.length);return(0,l.a)(r,t,e),(0,l.n)(r,r),{result:{transformed:r,original:t},transferList:[r.buffer,t.buffer]}}function E(e){j(e)}let R,T;function C(e){if(!T)return;const t=e.modifications,r=T._malloc(8*t.length),n=new Float64Array(T.HEAPU8.buffer,r,t.length);for(let e=0;e<t.length;++e)n[e]=t[e];T.setModifications(e.context,r,t.length,e.isGeodetic),T._free(r)}function A(e,t,r){const{context:o,localOrigin:s,globalTrafo:i,mbs:a,obb:c,elevationOffset:u,geometryBuffer:l,geometryDescriptor:f,indexToVertexProjector:h,vertexToRenderProjector:d}=t,p=e._malloc(l.byteLength),m=e._malloc(33*Float64Array.BYTES_PER_ELEMENT),y=new Uint8Array(e.HEAPU8.buffer,p,l.byteLength);y.set(new Uint8Array(l));const g=new Float64Array(e.HEAPU8.buffer,m,33);B(g,s);let b=g.byteOffset+3*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b);B(M,i),b+=16*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b),B(M,a),b+=4*g.BYTES_PER_ELEMENT,null!=c&&(M=new Float64Array(g.buffer,b),B(M,c.center),b+=3*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b),B(M,c.halfSize),b+=3*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b),B(M,c.quaternion));const w=f,_={isDraco:!1,isLegacy:!1,color:t.layouts.some((e=>e.some((e=>"color"===e.name)))),normal:t.needNormals&&t.layouts.some((e=>e.some((e=>"normalCompressed"===e.name)))),uv0:t.layouts.some((e=>e.some((e=>"uv0"===e.name)))),uvRegion:t.layouts.some((e=>e.some((e=>"uvRegion"===e.name)))),featureIndex:w.featureIndex},v=e.process(o,!!t.obb,p,y.byteLength,w,_,m,u,h,d,t.normalReferenceFrame);if(e._free(m),e._free(p),v.error.length>0)throw new Error(`i3s.wasm: ${v.error}`);if(v.discarded)return null;const S=v.componentOffsets.length>0?v.componentOffsets.slice():null,x=v.featureIds.length>0?v.featureIds.slice():null,P=v.anchorIds.length>0?Array.from(v.anchorIds):null,O=v.anchors.length>0?Array.from(v.anchors):null,E=v.interleavedVertedData.slice().buffer,R=v.indicesType===n.Int16?new Uint16Array(v.indices.buffer,v.indices.byteOffset,v.indices.byteLength/2).slice():new Uint32Array(v.indices.buffer,v.indices.byteOffset,v.indices.byteLength/4).slice(),T=v.positions.slice(),C=v.positionIndicesType===n.Int16?new Uint16Array(v.positionIndices.buffer,v.positionIndices.byteOffset,v.positionIndices.byteLength/2).slice():new Uint32Array(v.positionIndices.buffer,v.positionIndices.byteOffset,v.positionIndices.byteLength/4).slice(),A={layout:t.layouts[0],interleavedVertexData:E,indices:R,hasColors:v.hasColors,hasModifications:v.hasModifications,positionData:{data:T,indices:C}};return x&&r.push(x.buffer),S&&r.push(S.buffer),r.push(E),r.push(R.buffer),r.push(T.buffer),r.push(C.buffer),{componentOffsets:S,featureIds:x,anchorIds:P,anchors:O,transformedGeometry:A,obb:v.obb}}function q(e){return 0===e?m.Unmodified:1===e?m.PotentiallyModified:2===e?m.Culled:m.Unknown}function L(e){if(!T)return;const{context:t,buffer:r}=e,n=T._malloc(r.byteLength),o=r.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(T.HEAPU8.buffer,n,o),i=new Float64Array(r);s.set(i),T.filterOBBs(t,n,o),i.set(s),T._free(n)}function j(e){T&&0===T.destroy(e)&&(T=null)}function B(e,t){for(let r=0;r<t.length;++r)e[r]=t[r]}async function N(){T||await I()}function I(){return T?Promise.resolve(T):(R||(R=(d||(d=new Promise((e=>r.e(6710).then(r.bind(r,26710)).then((e=>e.i)).then((({default:t})=>{const r=t({locateFile:h,onRuntimeInitialized:()=>e(r)});delete r.then})))).catch((e=>{throw e}))),d).then((e=>(T=e,R=null,T)))),R)}r(8310),(M=p||(p={}))[M.Unmodified=0]="Unmodified",M[M.Culled=1]="Culled",M[M.NotChecked=2]="NotChecked",function(e){e[e.Unmodified=0]="Unmodified",e[e.PotentiallyModified=1]="PotentiallyModified",e[e.Culled=2]="Culled",e[e.Unknown=3]="Unknown",e[e.NotChecked=4]="NotChecked"}(m||(m={})),function(e){e[e.Unknown=0]="Unknown",e[e.Uncached=1]="Uncached",e[e.Cached=2]="Cached"}(y||(y={})),function(e){e[e.None=0]="None",e[e.MaxScreenThreshold=1]="MaxScreenThreshold",e[e.ScreenSpaceRelative=2]="ScreenSpaceRelative",e[e.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",e[e.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(g||(g={})),function(e){e[e.Hole=0]="Hole",e[e.Leaf=1]="Leaf"}(b||(b={}));const Z={transform:(e,t)=>T&&A(T,e,t),destroy:j}}}]);
|