@arcgis/core 5.2.0-next.128 → 5.2.0-next.129
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/applications/Components/imageryUtils.js +1 -1
- package/arcade/batchExec.js +1 -1
- package/arcade/geometry/adapters/dehydrated.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/06da350b4ea25732f52b.js +1 -0
- package/assets/esri/core/workers/chunks/{67dcf9b873cb037b2647.js → 081c9ccaa5884c730a91.js} +1 -1
- package/assets/esri/core/workers/chunks/094102031cc77b20db74.js +1 -0
- package/assets/esri/core/workers/chunks/0b85c844af97b2fb0ba8.js +1 -0
- package/assets/esri/core/workers/chunks/{86d7a3ae672a51b75fcc.js → 0d44f793d3b0d33153ac.js} +1 -1
- package/assets/esri/core/workers/chunks/0de140199161fcd15a0c.js +1 -0
- package/assets/esri/core/workers/chunks/0deceece4b465f653f58.js +1 -0
- package/assets/esri/core/workers/chunks/111dc5653daa7f3e1001.js +1 -0
- package/assets/esri/core/workers/chunks/139e3da8ea081e21539e.js +1 -0
- package/assets/esri/core/workers/chunks/142bedebd37d747f84ba.js +1 -0
- package/assets/esri/core/workers/chunks/15dc28b4fa5b5110472b.js +1 -0
- package/assets/esri/core/workers/chunks/{dd02cc18ebebb90778c6.js → 17e2bfc7468c23e43bef.js} +1 -1
- package/assets/esri/core/workers/chunks/196d33f4d8e3a256ad94.js +1 -0
- package/assets/esri/core/workers/chunks/1a02c68de65a67ab6a67.js +1 -0
- package/assets/esri/core/workers/chunks/{4165eb86471ea3bbf364.js → 1aecf7106a21320e054e.js} +1 -1
- package/assets/esri/core/workers/chunks/1bc03b8065cbbbb06c87.js +1 -0
- package/assets/esri/core/workers/chunks/1beb32170d659bc43977.js +1 -0
- package/assets/esri/core/workers/chunks/20ee32fee219afbcfee3.js +1 -0
- package/assets/esri/core/workers/chunks/{9467744cb7d094a5067a.js → 21d2f5324db0b199060c.js} +1 -1
- package/assets/esri/core/workers/chunks/22abb9a74f6594f9db2a.js +1 -0
- package/assets/esri/core/workers/chunks/237795866c075880531b.js +1 -0
- package/assets/esri/core/workers/chunks/25e4da9c6837ab0fa585.js +1 -0
- package/assets/esri/core/workers/chunks/2a5fde737dc99627142e.js +1 -0
- package/assets/esri/core/workers/chunks/3412050ae63ff7dcaf36.js +1 -0
- package/assets/esri/core/workers/chunks/35316724c8d3cc39cf80.js +1 -0
- package/assets/esri/core/workers/chunks/354cc6cd2a56937f1747.js +1 -0
- package/assets/esri/core/workers/chunks/365ae479765ca9e47de4.js +1 -0
- package/assets/esri/core/workers/chunks/{8190fcb1dd10ad20feed.js → 36ef86701883a20dd6f6.js} +1 -1
- package/assets/esri/core/workers/chunks/3759e272a1d43534a190.js +1 -0
- package/assets/esri/core/workers/chunks/397ddcf0b8e858a17b70.js +1 -0
- package/assets/esri/core/workers/chunks/3a7a558e30b5cb81c801.js +1 -0
- package/assets/esri/core/workers/chunks/3c9405d310a1b08c901e.js +1 -0
- package/assets/esri/core/workers/chunks/{e10fe4c77b8dc4492092.js → 3ce53562926b05e71af5.js} +1 -1
- package/assets/esri/core/workers/chunks/3d174a84b785fc633a5a.js +1 -0
- package/assets/esri/core/workers/chunks/3d67fed3e53993c38b58.js +1 -0
- package/assets/esri/core/workers/chunks/42bdeeff55fb1a3f735f.js +1 -0
- package/assets/esri/core/workers/chunks/48f1532520b76fa7f0c2.js +1 -0
- package/assets/esri/core/workers/chunks/{00d9e41deecf5828975c.js → 4adc3822ed9f498f5653.js} +1 -1
- package/assets/esri/core/workers/chunks/{d5f0fed415b5b155d57c.js → 51741ef8225d470716fe.js} +1 -1
- package/assets/esri/core/workers/chunks/5191e481d0e19a7f3888.js +1 -0
- package/assets/esri/core/workers/chunks/{7fcee3a1b900ddc9a5e3.js → 540acf6abdee9dbd453e.js} +1 -1
- package/assets/esri/core/workers/chunks/{d9b63cf111035b05cd2e.js → 5484b89adc53430226d5.js} +1 -1
- package/assets/esri/core/workers/chunks/55361b50ecfc98db2ffb.js +1 -0
- package/assets/esri/core/workers/chunks/58da7c41c1bcef2f4141.js +1 -0
- package/assets/esri/core/workers/chunks/5979bbefb09d132c008f.js +1 -0
- package/assets/esri/core/workers/chunks/{84db05e872dbf35c80a2.js → 5982c6a8459c1237b298.js} +1 -1
- package/assets/esri/core/workers/chunks/{0a20f84b5f004a77a9f9.js → 5abfc4f447b01d6bf287.js} +1 -1
- package/assets/esri/core/workers/chunks/{4c0dba437de0969a5b63.js → 5b9f88194433410bad5b.js} +1 -1
- package/assets/esri/core/workers/chunks/5f794f4e0113d5dd50ba.js +1 -0
- package/assets/esri/core/workers/chunks/62a30692e2a7612bafc1.js +1 -0
- package/assets/esri/core/workers/chunks/62aa7daad4ca7332854e.js +1 -0
- package/assets/esri/core/workers/chunks/66926c3686d5ef2d4692.js +29 -0
- package/assets/esri/core/workers/chunks/6994ba168465b77a36af.js +1 -0
- package/assets/esri/core/workers/chunks/6d0c6fda9100fe89f3cb.js +1 -0
- package/assets/esri/core/workers/chunks/72a898894438f177cd62.js +1 -0
- package/assets/esri/core/workers/chunks/78d4455237120103f639.js +1 -0
- package/assets/esri/core/workers/chunks/7fccf53aa751cd9dae57.js +1 -0
- package/assets/esri/core/workers/chunks/{6267a1fe1603daa399b4.js → 81327e10200065a0ccef.js} +1 -1
- package/assets/esri/core/workers/chunks/84a3fbe5d85a357f4e82.js +1 -0
- package/assets/esri/core/workers/chunks/862479729f2d036f606b.js +1 -0
- package/assets/esri/core/workers/chunks/8a9aa6db11d0f643961c.js +1 -0
- package/assets/esri/core/workers/chunks/8dfea65341991e13ab71.js +1 -0
- package/assets/esri/core/workers/chunks/8e92925043dc49ed1018.js +1 -0
- package/assets/esri/core/workers/chunks/8f0b2b0ca239b01f44d0.js +1 -0
- package/assets/esri/core/workers/chunks/93a89168c18db88f60e7.js +1 -0
- package/assets/esri/core/workers/chunks/991c854a4459c82d4d93.js +1 -0
- package/assets/esri/core/workers/chunks/{f90cad9f007a11154c0d.js → 9b080d07699b56f06c5f.js} +1 -1
- package/assets/esri/core/workers/chunks/9cd69aa3880838a834f8.js +1 -0
- package/assets/esri/core/workers/chunks/{2ca49fb4590cc34a02bd.js → 9d87f38b16dda1ff7978.js} +1 -1
- package/assets/esri/core/workers/chunks/9fd1e5a2c0a261ed2a33.js +1 -0
- package/assets/esri/core/workers/chunks/a189e520da39919cdcca.js +1 -0
- package/assets/esri/core/workers/chunks/a3a5cb664bdb1db190dd.js +1 -0
- package/assets/esri/core/workers/chunks/a63c456ecf018ec06778.js +1 -0
- package/assets/esri/core/workers/chunks/{842f993fa60b410cb613.js → a8322a978e33c7349fdf.js} +1 -1
- package/assets/esri/core/workers/chunks/{f479b4a4cee4bb2e046c.js → aa96eea0899757ab38c7.js} +1 -1
- package/assets/esri/core/workers/chunks/ab0b2a76247dfd56b92d.js +1 -0
- package/assets/esri/core/workers/chunks/ab7337b076d152a8eb9e.js +1 -0
- package/assets/esri/core/workers/chunks/ac0de274853a42d518a1.js +1 -0
- package/assets/esri/core/workers/chunks/ad372e399e20d5a3262d.js +1 -0
- package/assets/esri/core/workers/chunks/ae75b3e5320d03dff64c.js +1 -0
- package/assets/esri/core/workers/chunks/ae98530d5816306216b3.js +1 -0
- package/assets/esri/core/workers/chunks/afc94c4b9bc007fe310f.js +1 -0
- package/assets/esri/core/workers/chunks/afe54923339e957b71b9.js +1 -0
- package/assets/esri/core/workers/chunks/bbcac00362fef5e3956d.js +1 -0
- package/assets/esri/core/workers/chunks/{1302bf9718747cd9fdd9.js → bcee161dd1c4781d1998.js} +1 -1
- package/assets/esri/core/workers/chunks/{d1f54b0079fb71a15612.js → bd231bc0624eb889ac14.js} +1 -1
- package/assets/esri/core/workers/chunks/c0075715fbe7bec10fc3.js +1 -0
- package/assets/esri/core/workers/chunks/c4e1e864fb8c119b2520.js +1 -0
- package/assets/esri/core/workers/chunks/c93cedf9e53da5aaa35b.js +1 -0
- package/assets/esri/core/workers/chunks/{2d592c935571de80a2e2.js → c9690810b198a97bc16d.js} +1 -1
- package/assets/esri/core/workers/chunks/cada517cc25fa37f778c.js +1 -0
- package/assets/esri/core/workers/chunks/cd1821bf601949674e02.js +1 -0
- package/assets/esri/core/workers/chunks/{1b42d163ef22e3565bb7.js → cf7b7e54cd87422ca62a.js} +1 -1
- package/assets/esri/core/workers/chunks/d195c57fc6de3560653d.js +1 -0
- package/assets/esri/core/workers/chunks/d7f830a06ded11f2fc80.js +1 -0
- package/assets/esri/core/workers/chunks/d877783815afd21dbe98.js +1 -0
- package/assets/esri/core/workers/chunks/db5181fcea96cc2ede3e.js +1 -0
- package/assets/esri/core/workers/chunks/{6e8187a77846239ed112.js → de28a86775235bd5d3c4.js} +2 -2
- package/assets/esri/core/workers/chunks/df6992416cba9539f1ed.js +1 -0
- package/assets/esri/core/workers/chunks/e4005d95a396e1af9ac2.js +1 -0
- package/assets/esri/core/workers/chunks/{668ec0bdfb2095e90c9e.js → e495697860f7207da4c7.js} +1 -1
- package/assets/esri/core/workers/chunks/f163502c513205c892e7.js +1 -0
- package/assets/esri/core/workers/chunks/f287ec0fcb611f82ebb0.js +1 -0
- package/assets/esri/core/workers/chunks/{37ae52c71bf9c70fbb92.js → f2d45d15d0ba2537a4eb.js} +1 -1
- package/assets/esri/core/workers/chunks/{d507d7d7a7282fc38e8d.js → f652d1db26fbdea1a79b.js} +1 -1
- package/assets/esri/core/workers/chunks/f6b38ed75baae198c19b.js +1 -0
- package/assets/esri/core/workers/chunks/{168b45c5d8233f23793e.js → f6cfc901267a229de7a1.js} +2 -2
- package/assets/esri/core/workers/chunks/f6d04d14323b926f1025.js +1 -0
- package/assets/esri/core/workers/chunks/f7ab606be37373312ebe.js +1 -0
- package/assets/esri/core/workers/chunks/{3b7dff15a0058ea29886.js → f92178ac6dc9abff304f.js} +1 -1
- package/assets/esri/core/workers/chunks/fc39593febef74a036f1.js +1 -0
- package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
- package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +7 -0
- 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/views/interactive/tooltip/t9n/messages.ar.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.bg.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.bs.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.ca.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.cs.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.da.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.de.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.el.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.es.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.et.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.fi.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.fr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.he.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.hr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.hu.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.id.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.it.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.ja.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.ko.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.lt.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.lv.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.nl.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.no.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.pl.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.ro.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.ru.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.sk.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.sl.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.sr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.sv.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.th.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.tr.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.uk.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.vi.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/views/interactive/tooltip/t9n/messages.zh-TW.json +1 -1
- package/chunks/batchExec.js +2 -0
- package/config.js +1 -1
- package/geometry/support/intersects.js +1 -1
- package/geometry/support/intersectsBase.js +1 -1
- package/kernel.js +1 -1
- package/layers/GeospatialPDFLayer.js +1 -1
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/graphics/hydrateGeometryJSON.js +2 -0
- package/layers/graphics/hydratedFeatures.js +1 -1
- package/layers/graphics/hydratedSpatialReference.js +2 -0
- package/layers/raster/datasets/DBFParser.js +1 -1
- package/layers/raster/datasets/ImageAuxRaster.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/formats/JpgPlus.js +1 -1
- package/layers/raster/formats/RasterCodec.js +1 -1
- package/layers/raster/formats/Raw.js +1 -1
- package/layers/support/arcadeUtils.js +1 -1
- package/package.json +3 -3
- package/popup/FeatureContent.js +1 -1
- package/popup/FeatureContentCollection.d.ts +2 -0
- package/popup/FeatureContentCollection.js +1 -1
- package/popup/support/featureUtils.js +1 -1
- package/rest/imageService.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/loadArcade.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/2d/engine/vectorTiles/GeometryUtils.js +1 -1
- package/views/2d/engine/vectorTiles/TileManager.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/util.js +1 -1
- package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/features/schema/processor/MatcherSchema.js +1 -1
- package/views/2d/layers/graphics/GraphicStore.js +1 -1
- package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/2d/support/hitTestUtils.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/layers/GeospatialPDFLayerView3D.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/DOMContainer.d.ts +18 -8
- package/views/VideoView.d.ts +38 -0
- package/views/VideoView.js +1 -1
- package/views/View.d.ts +20 -2
- package/views/View.js +1 -1
- package/views/input/types.d.ts +19 -6
- package/views/interactive/dragEventPipeline.js +1 -1
- package/views/layers/ImageryTileLayerView.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search/support/layerSearchUtils.js +1 -1
- package/assets/esri/core/workers/chunks/025da54eef112d7e8f66.js +0 -1
- package/assets/esri/core/workers/chunks/02f94f9d704f03ddb5c6.js +0 -1
- package/assets/esri/core/workers/chunks/038d2b80d96237c25b6f.js +0 -1
- package/assets/esri/core/workers/chunks/04d4cd66485b622403d0.js +0 -1
- package/assets/esri/core/workers/chunks/05afa8c2b5929ce0545a.js +0 -1
- package/assets/esri/core/workers/chunks/09676cfa99b90fe0cc63.js +0 -1
- package/assets/esri/core/workers/chunks/0aadee0437fa061e4ff5.js +0 -1
- package/assets/esri/core/workers/chunks/0ccd4200c5a2a5de6e16.js +0 -1
- package/assets/esri/core/workers/chunks/1262918b2161d79851c0.js +0 -1
- package/assets/esri/core/workers/chunks/1406a884241809b62bff.js +0 -1
- package/assets/esri/core/workers/chunks/1c33aa349beea9a3792f.js +0 -1
- package/assets/esri/core/workers/chunks/1f135269aea3931e11b2.js +0 -1
- package/assets/esri/core/workers/chunks/24014f3701c31ee74bc2.js +0 -1
- package/assets/esri/core/workers/chunks/25a2e02677a74834c8b5.js +0 -1
- package/assets/esri/core/workers/chunks/2afce71e8b6ae86e0792.js +0 -1
- package/assets/esri/core/workers/chunks/2c7bb5c9751524687002.js +0 -1
- package/assets/esri/core/workers/chunks/2ebad7e588b26e74cefe.js +0 -1
- package/assets/esri/core/workers/chunks/319434415d2c0561bc59.js +0 -1
- package/assets/esri/core/workers/chunks/39d71e83261bff46f6bf.js +0 -1
- package/assets/esri/core/workers/chunks/3aceedec9abfb2fdfa18.js +0 -1
- package/assets/esri/core/workers/chunks/3c6ee445e49da0076ac1.js +0 -1
- package/assets/esri/core/workers/chunks/3f045f09ac95e7f22a97.js +0 -1
- package/assets/esri/core/workers/chunks/4327d2c39a660bd89da7.js +0 -1
- package/assets/esri/core/workers/chunks/462fd57af8ed7921d6ba.js +0 -1
- package/assets/esri/core/workers/chunks/474d9541d387b31ad275.js +0 -1
- package/assets/esri/core/workers/chunks/48a2f68e06a2e90b77d0.js +0 -1
- package/assets/esri/core/workers/chunks/4a73f73f1698fad2df20.js +0 -1
- package/assets/esri/core/workers/chunks/4f464047c6f6c9486efd.js +0 -1
- package/assets/esri/core/workers/chunks/500f6d6f0ffa235cae85.js +0 -1
- package/assets/esri/core/workers/chunks/526cc64ae46dec3fbeda.js +0 -1
- package/assets/esri/core/workers/chunks/550d4df0732352fa48b5.js +0 -1
- package/assets/esri/core/workers/chunks/581285e4d7bbe1b7c27a.js +0 -1
- package/assets/esri/core/workers/chunks/58fb92775d668cfd295c.js +0 -1
- package/assets/esri/core/workers/chunks/5adf2792416b22cd602f.js +0 -1
- package/assets/esri/core/workers/chunks/5aee7739afb5160d4ace.js +0 -1
- package/assets/esri/core/workers/chunks/6006bd8a5ed945fa2776.js +0 -1
- package/assets/esri/core/workers/chunks/606cca69eaea84bfcdc6.js +0 -1
- package/assets/esri/core/workers/chunks/64ee22134fda2f09c094.js +0 -1
- package/assets/esri/core/workers/chunks/66ef6c034455abd61f39.js +0 -1
- package/assets/esri/core/workers/chunks/67678054342178b601cf.js +0 -1
- package/assets/esri/core/workers/chunks/67fd2cdb2e6834bfa710.js +0 -1
- package/assets/esri/core/workers/chunks/6c82cbcd504c711a7450.js +0 -1
- package/assets/esri/core/workers/chunks/75294f515c7f8393181c.js +0 -1
- package/assets/esri/core/workers/chunks/75879ae88fd87b089a87.js +0 -1
- package/assets/esri/core/workers/chunks/761ea719ec1b4d562db2.js +0 -1
- package/assets/esri/core/workers/chunks/78085f804969c9282700.js +0 -1
- package/assets/esri/core/workers/chunks/7d6da4e89aa951e6523f.js +0 -1
- package/assets/esri/core/workers/chunks/80f16f5f15518013f7d0.js +0 -1
- package/assets/esri/core/workers/chunks/8465e2c7221125fd3cc4.js +0 -1
- package/assets/esri/core/workers/chunks/87aaed3dfa903bdf853c.js +0 -1
- package/assets/esri/core/workers/chunks/892dc038d569cffd26dc.js +0 -1
- package/assets/esri/core/workers/chunks/8a842cde240aef12e417.js +0 -1
- package/assets/esri/core/workers/chunks/8f1c5f5e70d4b33d021d.js +0 -1
- package/assets/esri/core/workers/chunks/9020bd7a0e488d55ef14.js +0 -1
- package/assets/esri/core/workers/chunks/92509dd25996c6390a31.js +0 -1
- package/assets/esri/core/workers/chunks/9ccc2c8f7416943cc373.js +0 -29
- package/assets/esri/core/workers/chunks/9d6a96e4c7ccedcb0c13.js +0 -1
- package/assets/esri/core/workers/chunks/9ec04faad97be55309b8.js +0 -1
- package/assets/esri/core/workers/chunks/a08385ebf1715414c1a6.js +0 -1
- package/assets/esri/core/workers/chunks/a3a33ffa34f4d645ddfe.js +0 -1
- package/assets/esri/core/workers/chunks/b396c4b4bb144200acc7.js +0 -1
- package/assets/esri/core/workers/chunks/b9c834e3c0701e9b14a2.js +0 -1
- package/assets/esri/core/workers/chunks/bbfb80a6983574007ce5.js +0 -1
- package/assets/esri/core/workers/chunks/bcf2e5cf6b9c6d0442bb.js +0 -1
- package/assets/esri/core/workers/chunks/c35e9dee87937f483a3d.js +0 -1
- package/assets/esri/core/workers/chunks/c5b733c3a5b2680042a2.js +0 -1
- package/assets/esri/core/workers/chunks/cbeba973ef5593ffbba3.js +0 -1
- package/assets/esri/core/workers/chunks/ccaeabc3be07f3c96f50.js +0 -1
- package/assets/esri/core/workers/chunks/d25fb32a233d2128afbe.js +0 -1
- package/assets/esri/core/workers/chunks/d5ef269ab0ee3744b05d.js +0 -1
- package/assets/esri/core/workers/chunks/d94a2b3b2ef49af9c2e3.js +0 -1
- package/assets/esri/core/workers/chunks/dc92710a8fdfb9135e55.js +0 -1
- package/assets/esri/core/workers/chunks/dd4ecf81250cc001d040.js +0 -1
- package/assets/esri/core/workers/chunks/e0894a308c84d5c158b0.js +0 -1
- package/assets/esri/core/workers/chunks/e4016ae9cb8f16e3efc3.js +0 -1
- package/assets/esri/core/workers/chunks/e6a4cef0af9be30ffe3d.js +0 -1
- package/assets/esri/core/workers/chunks/eaa7cb3ffa8c11706a09.js +0 -1
- package/assets/esri/core/workers/chunks/ed31ec586b754241474d.js +0 -1
- package/assets/esri/core/workers/chunks/ef6e52f9b656751eebaf.js +0 -1
- package/assets/esri/core/workers/chunks/f2fca9a3a40170996ea2.js +0 -1
- package/assets/esri/core/workers/chunks/f5d06cd6d30a5f742f73.js +0 -1
- package/assets/esri/core/workers/chunks/f71ec8a260405ed07958.js +0 -1
- package/assets/esri/core/workers/chunks/f91cab9904020cf25d50.js +0 -1
- package/assets/esri/core/workers/chunks/fb11ff3f2eae5f072560.js +0 -1
- package/assets/esri/core/workers/chunks/ff0e9f8d323eb1729650.js +0 -1
- /package/assets/esri/core/workers/chunks/{6e8187a77846239ed112.js.LICENSE.txt → de28a86775235bd5d3c4.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{168b45c5d8233f23793e.js.LICENSE.txt → f6cfc901267a229de7a1.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6310],{66131(e,t,n){n.d(t,{lY:()=>d,mT:()=>m});var i=n(59534),s=n(799),r=n(3330),o=n(84741),a=n(34747);const l={TimeZoneNotRecognized:"Timezone identifier has not been recognized."};class u extends Error{constructor(e,t){super((0,s.HC)(l[e],t)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,u)}}function c(e,t,n){return e<t?e-t:e>n?e-n:0}function h(e,t,n){return e<t?t:e>n?n:e}class d{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,t=1,n=1,i=0,s=0,r=0,o=0,l){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(s)||isNaN(r)||isNaN(o))return null;const u=a.c9.local(e,t).daysInMonth;let f=a.c9.fromObject({day:h(n,1,u),year:e,month:h(t,1,12),hour:h(i,0,23),minute:h(s,0,59),second:h(r,0,59),millisecond:h(o,0,999)},{zone:m(l)});return f=f.plus({months:c(t,1,12),days:c(n,1,u),hours:c(i,0,23),minutes:c(s,0,59),seconds:c(r,0,59),milliseconds:c(o,0,999)}),new d(f)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,t){const n=m(t);return e.isUnknownTimeZone||n===r.GB.instance?d.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,n):new d(e._date.setZone(n))}static dateJSToArcadeDate(e){return new d(a.c9.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,t="system"){const n=m(t);return new d(a.c9.fromJSDate(e,{zone:n}))}static unknownEpochToArcadeDate(e){return new d(a.c9.fromMillis(e,{zone:r.GB.instance}))}static unknownDateJSToArcadeDate(e){return new d(a.c9.fromMillis(e.getTime(),{zone:r.GB.instance}))}static epochToArcadeDate(e,t="system"){const n=m(t);return new d(a.c9.fromMillis(e,{zone:n}))}static dateTimeToArcadeDate(e){return new d(e)}clone(){return new d(this._date)}changeTimeZone(e){const t=m(e);return d.dateTimeToArcadeDate(this._date.setZone(t))}static dateTimeAndZoneToArcadeDate(e,t){const n=m(t);return e.zone===r.GB.instance||n===r.GB.instance?d.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,n):new d(e.setZone(n))}static nowToArcadeDate(e){const t=m(e);return new d(a.c9.fromJSDate(new Date,{zone:t}))}static nowUTCToArcadeDate(){return new d(a.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===r.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const e=this.zone;return"fixed"===e.type?0===e.fixed?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new d(this._date.plus(e))}diff(e,t){return this._date.diff(e._date,t)[t]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,t){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:t&&!this.isUnknownTimeZone})}toFormat(e,t){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,t)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;const t=a.c9.fromISO(e,{setZone:!0});return new d(t)}}function m(e,t=!0){if(e instanceof a.bo)return e;switch((0,i.B)(e)){case"system":return"system";case"utc":return"UTC";case"unknown":return r.GB.instance}if(/^[+-]?[0-9]{1,2}(:[0-9]{2})?$/.test(e)){const t=a.mQ.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(t)return t}const n=(0,o.p)(e);if(!n.isValid){if(t)throw new u("TimeZoneNotRecognized");return null}return n}},59534(e,t,n){n.d(t,{B:()=>s,b:()=>r});var i=n(85935);function s(e){return e.toLowerCase().replaceAll(/[\s-]+/g,"")}class r{constructor(e,t){const n=new Map;for(const t of e){const e=s(t);if(n.has(e))throw new Error(`${t} already added as ${n.get(e)}`);n.set(e,t)}if(null!=t)for(const[e,i]of t){const t=s(e);if(n.has(t))throw new Error(`${e} already associated with ${n.get(t)}`);n.set(t,i)}this._enumMap=n}lookup(e){return this._enumMap.get(s(e))}get(e){const t=this.lookup(e);if(null==t)throw new i.D$("InvalidParameter",null);return t}}},85935(e,t,n){n.d(t,{D$:()=>a,O$:()=>c,i2:()=>h,mT:()=>u,ps:()=>m});var i=n(799);const s={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function r(e){return"object"==typeof e&&"line"in e&&"column"in e&&"number"==typeof e.line&&"number"==typeof e.column}class o extends Error{constructor(e,t){super(l(t)+("object"==typeof e&&null!=e&&"message"in e?e.message:""),{cause:e}),this.loc=t?.loc??null}}class a extends Error{constructor(e,t,n){super("Execution error - "+l(t)+(0,i.HC)(s[e],n)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=t?.loc??null}}function l(e){return null==e?.loc?"":`Line ${e.loc.start.line}:${e.loc.start.column}: `}class u extends Error{constructor(e,t,n){super("Compilation error - "+l(t)+(0,i.HC)(s[e],n)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=t?.loc??null}}class c extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function h(e,t){return!function(e){if(e instanceof Error&&"loc"in e){const t=e.loc;return null==t||"object"==typeof t&&"start"in t&&null!=t.start&&r(t.start)&&(!("end"in t)||null==t.end||r(t.end))}return!1}(e)||null==e.loc&&null!=t?.loc?new o(e,t):e}const d={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class m extends Error{constructor(e,t){super((0,i.HC)(d[e],t)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},69540(e,t,n){var i=n(32198),s=n(69622),r=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const n=e;let s=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,i=t.store,s={},l=new Map;for(const t in n){const o=n[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let h=null;if("function"==typeof u)h=u(c,e);else if("reference"===u)h=c;else if(h=(0,r.TU)(c,e),null!=c&&null==h)continue;0===a?l.set(t,h):s[t]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(s);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return u}};return s=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],s),s},h=c(s.A);n.d(t,["OU",0,c,"Pw",0,h])},66344(e,t,n){n.d(t,{q:()=>a});const i=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const n=this._db.get(e.id+t);return n?.size??0}put(e,t,n,s,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==n&&this._notifyRemove(t,a.entry,a.size,0)),s>this._maxSize)return void this._notifyRemove(t,n,s,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return i||console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,n,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new r(n,s,l)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t){t=e.id+t;const n=this._db.get(t);if(!n)return;this._size-=n.size,e.size-=n.size;let i=n.entry.usedMemory;for(;i>this._maxSize;){const e=this._notifyRemove(t,n.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}n.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;const n=this._db.get(t);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(t),++this._hit,n.entry;++this._miss}get(e,t){t=e.id+t;const n=this._db.get(t);if(void 0!==n)return this._db.delete(t),n.lives=n.lifetime,this._db.set(t,n),++this._hit,n.entry;++this._miss}peek(e,t){const n=this._db.get(e.id+t);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},n=new Array;this._db.forEach((e,i)=>{const s=e.lifetime;n[s]=(n[s]||0)+e.size,this._clients.forEach(n=>{const{id:s,name:r}=n;if(i.startsWith(s)){const n=t[r]||0;t[r]=n+e.size}})});const i={};this._clients.forEach(e=>{const n=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[n]||0;t[n]=s,i[n]=Math.round(100*e.hitRate)+"%"}else i[n]="0%"});const s=Object.keys(t);s.sort((e,n)=>t[n]-t[e]),s.forEach(n=>e[n]=Math.round(t[n]/2**20)+"MB / "+i[n]);for(let t=n.length-1;t>=0;--t){const i=n[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,n]of this._db)t.startsWith(e.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,n,i){const s=this._clients.get(e.split(o)[0])?.removeFunc,r=s?.(t,i,n);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const n=t??this;if(n.size<=e)return;const i=t?.id;let s=!0;for(;s;){s=!1;for(const[r,a]of this._db)if(0===a.lifetime&&(!i||r.startsWith(i))){const i=t??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,a,i),n.size<=.9*e)return;s||=this._db.has(r)}}for(const[s,r]of this._db)if(!i||s.startsWith(i)){const i=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,r,i),n.size<=.9*e)return}}_purgeItem(e,t,n){if(this._db.delete(e),t.lives<=1){this._size-=t.size,n&&(n.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,n&&(n.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new s(0);class r{constructor(e,t,n){this.entry=e,this.size=t,this.lifetime=n,this.lives=n}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new s(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,n=1){this._storage.put(this,e,t,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,n){n.d(t,{DZ:()=>f,Ke:()=>m,QA:()=>p,Tj:()=>c,UT:()=>y,aD:()=>_,jJ:()=>u});var i=n(32198),s=n(69622),r=n(97768),o=n(17676),a=n(10107),l=n(64108);function u(e,t,n){return(0,o.Lx)(e.map((e,i)=>t.apply(n,[e,i])))}async function c(e,t,n){return(await(0,o.Lx)(e.map((e,i)=>t.apply(n,[e,i])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function m(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function f(e){try{return h(await e)}catch(e){return(0,o.QP)(e),d(e)}}function p(e){if(!0===e.ok)return e.value;throw e.error}function y(e,t){return new g(e,t)}let g=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,i.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,i.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,i.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,i.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class _{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},67482(e,t,n){function i(e){return null!==s(e)}function s(e){return function(e){const t=r.exec(e);if(!t?.groups)return null;const n=t.groups,i=+n.year,s=+n.month-1,o=+n.day,a=+(n.hours??"0"),l=+(n.minutes??"0"),u=+(n.seconds??"0");if(a>23)return null;if(l>59)return null;if(u>59)return null;const c=n.ms??"0",h=c?+c.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(i,s,o,a,l,u,h);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,s,o,a,l,u,h)}return Number.isNaN(d)?null:d}(e)??function(e){const t=new Date(e),n=t.getTime();return Number.isNaN(n)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?n:null}(e)??function(e){if(!o.test(e))return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}n.d(t,{C:()=>i,_:()=>s});const r=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,o=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(e,t,n){function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(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]]}n.d(t,{o8:()=>s,vt:()=>i});const r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:s,create:i,fromValues:function(e,t,n,i,s,r,o,a,l,u,c,h,d,m,f,p){return[e,t,n,i,s,r,o,a,l,u,c,h,d,m,f,p]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["zK",0,r])},35522(e,t,n){n.d(t,{$A:()=>v,Bw:()=>r,C:()=>o,Cc:()=>I,DI:()=>w,Io:()=>_,Ln:()=>g,Om:()=>x,Qr:()=>h,Re:()=>u,S8:()=>M,T9:()=>p,WQ:()=>l,Z0:()=>F,_S:()=>m,aI:()=>B,ei:()=>C,fw:()=>A,gL:()=>D,hG:()=>S,hZ:()=>a,hs:()=>y,jk:()=>f,lw:()=>c,m3:()=>T,oW:()=>E,t2:()=>O,tn:()=>d,ze:()=>b});var i=n(51850),s=n(34304);function r(e){const t=e[0],n=e[1],i=e[2];return Math.sqrt(t*t+n*n+i*i)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,i){return e[0]=t,e[1]=n,e[2]=i,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function h(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function m(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function p(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function y(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function g(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e}function _(e,t){const n=t[0]-e[0],i=t[1]-e[1],s=t[2]-e[2];return Math.sqrt(n*n+i*i+s*s)}function S(e,t){const n=t[0]-e[0],i=t[1]-e[1],s=t[2]-e[2];return n*n+i*i+s*s}function T(e){const t=e[0],n=e[1],i=e[2];return t*t+n*n+i*i}function b(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function w(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function M(e,t=e){const n=t[0],i=t[1],s=t[2];let r=n*n+i*i+s*s;return r>0&&(r=1/Math.sqrt(r),e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r),e}function x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function v(e,t,n){const i=t[0],s=t[1],r=t[2],o=n[0],a=n[1],l=n[2];return e[0]=s*l-r*a,e[1]=r*o-i*l,e[2]=i*a-s*o,e}function I(e,t,n,i){const s=t[0],r=t[1],o=t[2];return e[0]=s+i*(n[0]-s),e[1]=r+i*(n[1]-r),e[2]=o+i*(n[2]-o),e}function F(e,t,n){const i=t[0],s=t[1],r=t[2];return e[0]=n[0]*i+n[4]*s+n[8]*r+n[12],e[1]=n[1]*i+n[5]*s+n[9]*r+n[13],e[2]=n[2]*i+n[6]*s+n[10]*r+n[14],e}function C(e,t,n){const i=t[0],s=t[1],r=t[2];return e[0]=i*n[0]+s*n[3]+r*n[6],e[1]=i*n[1]+s*n[4]+r*n[7],e[2]=i*n[2]+s*n[5]+r*n[8],e}function D(e,t,n){return A(e,t,n[0],n[1],n[2],n[3])}function A(e,t,n,i,s,r){const o=t[0],a=t[1],l=t[2],u=i*l-s*a,c=s*o-n*l,h=n*a-i*o,d=i*h-s*c,m=s*u-n*h,f=n*c-i*u,p=2*r;return e[0]=o+u*p+2*d,e[1]=a+c*p+2*m,e[2]=l+h*p+2*f,e}const N=(0,i.vt)(),z=(0,i.vt)();function O(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function B(e,t){if(e===t)return!0;const n=e[0],i=e[1],r=e[2],o=t[0],a=t[1],l=t[2],u=(0,s.FD)();return Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(r-l)<=u*Math.max(1,Math.abs(r),Math.abs(l))}function E(e,t,n){const i=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];let o=i*i+s*s+r*r;return o>0?(o=1/Math.sqrt(o),e[0]=i*o,e[1]=s*o,e[2]=r*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const L=u,k=c,R=h,Z=_,U=S,Y=r,P=T;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){M(N,e),M(z,t);const n=x(N,z);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(e,t,n,i,s,r){const o=1-r,a=o*o,l=r*r,u=a*o,c=3*r*a,h=3*l*o,d=l*r;return e[0]=t[0]*u+n[0]*c+i[0]*h+s[0]*d,e[1]=t[1]*u+n[1]*c+i[1]*h+s[1]*d,e[2]=t[2]*u+n[2]*c+i[2]*h+s[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:o,cross:v,crossAndNormalize:function(e,t,n){const i=t[0],s=t[1],r=t[2],o=n[0],a=n[1],l=n[2],u=s*l-r*a,c=r*o-i*l,h=i*a-s*o,d=Math.sqrt(u*u+c*c+h*h);return e[0]=u/d,e[1]=c/d,e[2]=h/d,e},direction:E,dist:Z,distance:_,div:R,divide:h,dot:x,equals:B,exactEquals:O,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,i,s,r){const o=r*r,a=o*(2*r-3)+1,l=o*(r-2)+r,u=o*(r-1),c=o*(3-2*r);return e[0]=t[0]*a+n[0]*l+i[0]*u+s[0]*c,e[1]=t[1]*a+n[1]*l+i[1]*u+s[1]*c,e[2]=t[2]*a+n[2]*l+i[2]*u+s[2]*c,e},inverse:w,len:Y,length:r,lerp:I,max:p,min:f,mul:k,multiply:c,negate:b,normalize:M,random:function(e,t=1){const n=s.Ov,i=2*n()*Math.PI,r=2*n()-1,o=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(i)*o,e[1]=Math.sin(i)*o,e[2]=r*t,e},rotateX:function(e,t,n,i){const s=[],r=[];return s[0]=t[0]-n[0],s[1]=t[1]-n[1],s[2]=t[2]-n[2],r[0]=s[0],r[1]=s[1]*Math.cos(i)-s[2]*Math.sin(i),r[2]=s[1]*Math.sin(i)+s[2]*Math.cos(i),e[0]=r[0]+n[0],e[1]=r[1]+n[1],e[2]=r[2]+n[2],e},rotateY:function(e,t,n,i){const s=[],r=[];return s[0]=t[0]-n[0],s[1]=t[1]-n[1],s[2]=t[2]-n[2],r[0]=s[2]*Math.sin(i)+s[0]*Math.cos(i),r[1]=s[1],r[2]=s[2]*Math.cos(i)-s[0]*Math.sin(i),e[0]=r[0]+n[0],e[1]=r[1]+n[1],e[2]=r[2]+n[2],e},rotateZ:function(e,t,n,i){const s=[],r=[];return s[0]=t[0]-n[0],s[1]=t[1]-n[1],s[2]=t[2]-n[2],r[0]=s[0]*Math.cos(i)-s[1]*Math.sin(i),r[1]=s[0]*Math.sin(i)+s[1]*Math.cos(i),r[2]=s[2],e[0]=r[0]+n[0],e[1]=r[1]+n[1],e[2]=r[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:y,scaleAndAdd:g,scaleTo:function(e,t){return y(e,e,t/Y(e))},set:a,sign:m,sqrDist:U,sqrLen:P,squaredDistance:S,squaredLength:T,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:L,subtract:u,transformMat3:C,transformMat4:F,transformMat4Z:function(e,t){return t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]},transformQuat:D,transformQuatValues:A},Symbol.toStringTag,{value:"Module"})),n.d(t,["Il",0,Y,"jb",0,L,"lo",0,U,"uE",0,P])},75503(e,t,n){n.d(t,{wq:()=>a});var i=n(4576),s=n(21818),r=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=m,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),b.prune(),w.prune(),M.prune(),x.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const i=this._toBBox;if(S(e,n))for(b.clear();n;){for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],o=n.leaf?i(r):r;S(e,o)&&(n.leaf?t(r):_(e,o)?l(r,t):b.push(r))}n=b.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!S(e,t))return!1;for(b.clear();t;){for(let i=0,s=t.children.length;i<s;i++){const s=t.children[i],r=t.leaf?n(s):s;if(S(e,r)){if(t.leaf||_(e,r))return!0;b.push(s)}}t=b.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new F([]),this}remove(e){if(!e)return this;let t,n=this._data,r=null,o=0,a=!1;const l=this._toBBox(e);for(M.clear(),x.clear();n||M.length>0;){if(n||(n=M.pop(),r=M.data[M.length-1],o=x.pop()??0,a=!0),n.leaf&&(t=(0,i.qh)(n.children,(0,s.z)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),M.push(n),this._condense(M),this;a||n.leaf||!_(n,l)?r?(o++,n=r.children[o],a=!1):n=null:(M.push(n),x.push(o),o=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,i){const s=n-t+1;let r=this._maxEntries;if(s<=r){const i=new F(e.slice(t,n+1));return u(i,this._toBBox),i}i||(i=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(i-1)));const o=new C([]);o.height=i;const a=Math.ceil(s/r),l=a*Math.ceil(Math.sqrt(r));T(e,t,n,l,this._compareMinX);for(let s=t;s<=n;s+=l){const t=Math.min(s+l-1,n);T(e,s,t,a,this._compareMinY);for(let n=s;n<=t;n+=a){const s=Math.min(n+a-1,t);o.children.push(this._build(e,n,s,i-1))}}return u(o,this._toBBox),o}_insert(e,t,n){const i=this._toBBox,s=n?e:i(e);M.clear();const r=function(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,s=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=f(o),l=y(e,o)-a;l<s?(s=l,i=a<i?a:i,n=o):l===s&&a<i&&(i=a,n=o)}t=n||t.children[0]}return t}(s,this._data,t,M);for(r.children.push(e),h(r,s);t>=0&&M.data[t].children.length>this._maxEntries;)this._split(M,t),t--;!function(e,t,n){for(let i=n;i>=0;i--)h(t.data[i],e)}(s,M,t)}_split(e,t){const n=e.data[t],i=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,i);const r=this._chooseSplitIndex(n,s,i);if(!r)return;const o=n.children.splice(r,n.children.length-r),a=n.leaf?new F(o):new C(o);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new C([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,s,r;i=s=1/0;for(let o=t;o<=n-t;o++){const t=c(e,0,o,this._toBBox),a=c(e,o,n,this._toBBox),l=g(t,a),u=f(t)+f(a);l<i?(i=l,r=o,s=u<s?u:s):l===i&&u<s&&(s=u,r=o)}return r}_chooseSplitAxis(e,t,n){const i=e.leaf?this._compareMinX:d,s=e.leaf?this._compareMinY:m;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,s)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const s=this._toBBox,r=c(e,0,t,s),o=c(e,n-t,n,s);let a=p(r)+p(o);for(let i=t;i<n-t;i++){const t=e.children[i];h(r,e.leaf?s(t):t),a+=p(r)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];h(o,e.leaf?s(t):t),a+=p(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const s=e.data[t-1],r=s.children;r.splice((0,i.qh)(r,n,r.length,s.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(w.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,s.z)(e));else w.pushArray(n.children);n=w.pop()??null}}function u(e,t){c(e,0,e.children.length,t,e)}function c(e,t,n,i,s){s||(s=new F([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,o=t;o<n;o++)r=e.children[o],h(s,e.leaf?i(r):r);return s}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function f(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,s-n)*Math.max(0,r-i)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function S(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function T(e,t,n,i,s){const r=[t,n];for(;r.length;){const t=r.pop(),n=r.pop();if(t-n<=i)continue;const a=n+Math.ceil((t-n)/i/2)*i;(0,o.q)(e,a,n,t,s),r.push(n,a,a,t)}}const b=new r.A,w=new r.A,M=new r.A,x=new r.A({deallocator:void 0});class v{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class I extends v{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class F extends I{constructor(e){super(),this.children=e,this.leaf=!0}}class C extends I{constructor(e){super(),this.children=e,this.leaf=!1}}},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>r,lM:()=>s});var i=n(34275);function s(e){if(!e)return 0;let t=u;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n],!1));return t}function r(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let n=c;for(let i=0;i<t;i++)n+=o(e[i]);return n}(e);let t=u;for(const n in e)e.hasOwnProperty(n)&&(t+=o(e[n]));return t}function o(e,t=!0){switch(typeof e){case"object":return t?r(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,i.iu)(t)?t.byteLength+h:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return c+e.length*t}const u=32,c=16,h=145},14607(e,t,n){n.d(t,{B:()=>u,GP:()=>a,qg:()=>c});var i=n(799),s=n(73444);const r={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,s.JK)()){let t=(e=e.toLowerCase())in r;if(!t){const n=e.split("-");n.length>1&&n[0]in r&&(e=n[0],t=!0),t||(e="en")}const[n,i,o="#,##0.###"]=r[e];return{decimal:n,group:i,pattern:o}}function a(e,t){const n=o((t={...t}).locale);t.customs=n;const i=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,n){const i=(n=n||{}).customs.group,s=n.customs.decimal,r=t.split(";"),o=r[0];if((t=r[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(a,function(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const i=t.split("."),s="string"==typeof n.places&&n.places.indexOf(",");let r=n.places;s?r=n.places.slice(s+1):+r>=0||(r=(i[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(r))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(i[1]||n.places){s&&(n.places=n.places.slice(0,Math.max(0,s)));const e=void 0!==n.places?n.places:i[1]&&i[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+r<a.length&&(o[1]=a.slice(0,Math.max(0,Number(r))))}else o[1]&&o.pop();const l=i[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let c,h,d=i[0].lastIndexOf(",");if(-1!==d){c=i[0].length-d-1;const e=i[0].slice(0,d);d=e.lastIndexOf(","),-1!==d&&(h=e.length-d-1)}const m=[];for(let e=o[0];e;){const t=e.length-c;m.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",h&&(c=h,h=void 0)}return o[0]=m.reverse().join(n.group||","),o.join(n.decimal||".")}(e,u[0],{decimal:s,group:i,places:n.places,round:n.round}))}(e,i,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),n=e.pattern||t.pattern,s=t.group,r=t.decimal;let a=1;if(n.includes("%"))a/=100;else if(n.includes("‰"))a/=1e3;else if(n.includes("¤"))throw new Error("currency notation not supported");const u=n.split(";");1===u.length&&u.push("-"+u[0]);const c=d(u,t=>(t="(?:"+(0,i.Cj)(t,".")+")").replace(l,t=>{const n={signed:!1,separator:e.strict?s:[s,""],fractional:e.fractional,decimal:r,exponent:!1},i=t.split(".");let o=e.places;1===i.length&&1!==a&&(i[1]="###"),1===i.length||0===o?n.fractional=!1:(void 0===o&&(o=e.pattern?i[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(n.fractional=!0),!e.places&&+o<i[1].length&&(o+=","+i[1].length),n.places=o);const l=i[0].split(",");return l.length>1&&(n.groupSize=l.pop().length,l.length>1&&(n.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=h(e),n=d(e.fractional,t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n},!0);let i=t+n;return n&&(i="(?:(?:"+i+")|(?:"+n+"))"),i+d(e.exponent,t=>t?"([eE]"+h({signed:e.eSigned})+")":"")}(n)+")"}),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:s,decimal:r,factor:a}}function c(e,t){const n=u(t),i=new RegExp("^"+n.regexp+"$").exec(e);if(!i)return NaN;let s=i[1];if(!i[1]){if(!i[2])return NaN;s=i[2],n.factor*=-1}return s=s.replaceAll(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(s)*n.factor}function h(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",d(e.signed,e=>e?"[-+]":"",!0)+d(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,i.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const n=e.groupSize,s=e.groupSize2;if(s){const e="(?:0|[1-9]\\d{0,"+(s-1)+"}(?:["+t+"]\\d{"+s+"})*["+t+"]\\d{"+n+"})";return n-s>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*)"},!0)}const d=(e,t,n)=>{if(!Array.isArray(e))return t(e);const i=[];for(let n=0;n<e.length;n++)i.push(t(e[n]));return m(i.join("|"),Boolean(n))},m=(e,t)=>"("+(t?"?:":"")+e+")"},36708(e,t,n){n.d(t,{C_:()=>d,on:()=>h,wB:()=>l,z7:()=>u});var i=n(37955),s=n(36563),r=n(97768),o=n(17676),a=n(14012);function l(e,t,n={}){return c(e,t,n,m)}function u(e,t,n={}){return c(e,t,n,f)}function c(e,t,n={},i){let s=null;const o=n.once?(e,n)=>{i(e)&&((0,r.xt)(s),t(e,n))}:(e,n)=>{i(e)&&t(e,n)};if(s=(0,a.Cn)(e,o,n.sync,n.equals),n.initial){const t=e();o(t,t)}return s}function h(e,t,n,o={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,r.xt)(c),n(e)}const m=l(e,(e,n)=>{h(),(0,i.wb)(e)&&(a=e,u=(0,i.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return c=(0,s.hA)(()=>{m.remove(),h()}),c}function d(e,t){return function(e,t,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,r.xt)(a)}return new Promise((i,r)=>{a=(0,s.vE)([(0,o.u7)(n,()=>{l(),r((0,o.NK)())}),c(e,e=>{l(),i(e)},{sync:!1,once:!0},t??m)])})}(e,f,t)}function m(e){return!0}function f(e){return!!e}n(80559),n.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,n){n.d(t,{v:()=>a});var i=n(4718),s=n(62788),r=n(95488);class o{constructor(e,t){this._observable=new r.I,this._value=e,this._equalityFunction=t}get value(){return(0,s.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=i.gh){return new o(e,t)}},44729(e,t,n){n.d(t,{n:()=>l});var i=n(66131),s=n(73444),r=n(34747);function o(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="";const n=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const i of e.match(n)||[])switch(i){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?t+=`'${i.slice(1,-1)}'`:t+=`'${i}'`}return t}const a="esri.core.sql.dateonly";class l{constructor(e,t,n){this._year=e,this._month=t,this._day=n,this.declaredRootClass=a}static isDateOnly(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return l.isDateOnly(e)&&e.day===this.day&&e.month===this.month&&e.year===this.year}compare(e){return this.year===e.year?this.month===e.month?this.day-e.day:this.month-e.month:this.year-e.year}clone(){return new l(this._year,this._month,this._day)}toDateTime(e){return r.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,i.mT)(e)})}toDateTimeLuxon(e){return r.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,i.mT)(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,t=!0){if(null===e||""===e)return this.toString();if(t&&(e=o(e)),!e)return"";const n=this.toDateTime("unknown");return i.lY.dateTimeToArcadeDate(n).toFormat(e,{locale:(0,s.JK)(),numberingSystem:"latn"})}toArcadeDate(){const e=this.toDateTime("unknown");return i.lY.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,t){return l.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}toUTCDateTime(){return r.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){const t=r.c9.fromMillis(e,{zone:r.mQ.utcInstance});return t.isValid?l.fromParts(t.year,t.month,t.day):null}static fromSeconds(e){const t=r.c9.fromSeconds(e,{zone:r.mQ.utcInstance});return t.isValid?l.fromParts(t.year,t.month,t.day):null}static fromReader(e){if(!e)return null;const t=e.indexOf("-");if(t<0)return null;const n=e.indexOf("-",t+1);return n<0?null:new l(parseInt(e.slice(0,t),10),parseInt(e.slice(t+1,n),10),parseInt(e.slice(n+1),10))}static fromParts(e,t,n){const i=new l(e,t,n);return!1===i.isValid?null:i}static fromDateJS(e){return l.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return l.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const n=[];if(t)(t=o(t))&&n.push(t);else if(null===t||""===t){const t=r.c9.fromISO(e,{setZone:!0});return t.isValid?l.fromParts(t.year,t.month,t.day):null}for(const i of n){const n=r.c9.fromFormat(e,t??i);if(n.isValid)return new l(n.year,n.month,n.day)}return null}static fromNow(e="system"){const t=r.c9.fromJSDate(new Date).setZone((0,i.mT)(e));return new l(t.year,t.month,t.day)}}},15032(e,t,n){n.d(t,{k:()=>l});var i=n(73444),s=n(54218),r=n(34747);function o(e){if(!e)return"";const t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let n="";for(const i of e.match(t)||[])switch(i){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":n+=i;break;case"A":case"a":n+="a";break;default:n+=`'${i}'`}return n}const a="esri.core.sql.timeonly";class l{constructor(e,t,n,i){this._hour=e,this._minute=t,this._second=n,this._millisecond=i,this.declaredRootClass=a}static isTimeOnly(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(e){return l.isTimeOnly(e)&&e.hour===this.hour&&e.minute===this.minute&&e.second===this.second&&e.millisecond===this.millisecond}clone(){return new l(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,s.Fq)(this.hour)&&(0,s.Fq)(this.minute)&&(0,s.Fq)(this.second)&&(0,s.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(e=null){return null===e||""===e?this.toString():(e=o(e))?r.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(e,t,n,i){const s=new l(e,t,n,i);return s.isValid()?s:null}static fromReader(e){if(!e)return null;const t=e.indexOf(":");if(t<0)return null;const n=e.indexOf(":",t+1);return n<0?null:new l(parseInt(e.slice(0,t),10),parseInt(e.slice(t+1,n),10),parseInt(e.slice(n+1),10),0)}static fromMilliseconds(e){if(e>864e5||e<0)return null;const t=Math.floor(e/1e3%60),n=Math.floor(e/6e4%60),i=Math.floor(e/36e5%24),s=Math.floor(e%1e3);return new l(i,n,t,s)}static fromDateJS(e){return new l(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}static fromDateTime(e){return new l(e.hour,e.minute,e.second,e.millisecond)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const n=[];t?(t=o(t))&&n.push(t):null!==t&&""!==t||(n.push("HH:mm:ss"),n.push("HH:mm:ss.SSS"),n.push("hh:mm:ss a"),n.push("hh:mm:ss.SSS a"),n.push("HH:mm"),n.push("hh:mm a"),n.push("H:mm"),n.push("h:mm a"),n.push("H:mm:ss"),n.push("h:mm:ss a"),n.push("H:mm:ss.SSS"),n.push("h:mm:ss.SSS a"));for(const t of n){const n=r.c9.fromFormat(e,t);if(n.isValid)return new l(n.hour,n.minute,n.second,n.millisecond)}return null}plus(e,t){switch(e){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return l.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}return null}toUTCDateTime(){return r.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}}},88930(e,t,n){n.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>c,t:()=>h});var i=n(97770),s=(n(98623),n(34747));const r=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,n,r="system"){if("unknown"===n)return e;const o=new s.oh((0,i.wj)(r)),a=s.c9.fromJSDate(e,{zone:o}),l="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,n="milliseconds"){const i=e.getTime(),s=h(t,n,"milliseconds");return new Date(i+s)}function u(e,t,n="system"){const{unit:r}=t,o=Math.max(1,Math.trunc(t.value)),a=new s.oh((0,i.wj)(n)),l=s.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(r){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===r?10:"centuries"===r?100:1)*o,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function c(e){const t=r.exec(e);if(!t)return null;const{hh:n,mm:i,ss:s,ms:a}=t.groups;return Number(n)*o.hours+Number(i)*o.minutes+Number(s||0)*o.seconds+Number(a||0)}function h(e,t,n){return 0===e?0:e*o[t]/o[n]}},48526(e,t,n){n.d(t,{A:()=>y});var i,s=n(32198),r=n(4576),o=n(4718),a=n(91429),l=n(5443),u=n(91075),c=n(86738),h=n(16930),d=n(90634),m=n(47610),f=n(56993),p=n(43937);let y=i=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:i,spatialReference:s}=e;switch(t??=[],t?.at(0)?.length){case 4:i??=!0,n??=!0;break;case 3:i??=!0!==n,n??=!i;break;default:i??=!1,n??=!1}return s??=h.A.WGS84,{...e,hasM:n,hasZ:i,points:t,spatialReference:s}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,d.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:n,hasZ:s}=this;return new i({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:s})}equals(e){if(this===e)return!0;if(null==e)return!1;const t=this.spatialReference,n=e.spatialReference;return null!=t==(null!=n)&&!(null!=t&&null!=n&&!t.equals(n))&&(0,r.aI)(this.points,e.points,m.v6)}addPoint(e){return(0,f.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference};let i=2;return this.hasZ&&(n.z=t[2],i=3),this.hasM&&(n.m=t[i]),new c.A(n)}removePoint(e){if(!this._validateInputs(e))return null;const t=new c.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,f.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,s.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,s.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=i=(0,s.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,n){n.d(t,{A:()=>f});var i,s=n(32198),r=n(4718),o=n(91429),a=n(5443),l=n(91075),u=n(86738),c=n(16930),h=n(90634),d=n(56993),m=n(43937);let f=i=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:i,spatialReference:s}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:i??=!0,n??=!0;break;case 3:i??=!0!==n,n??=!i;break;default:i??=!1,n??=!1}return s??=c.A.WGS84,{...e,hasM:n,hasZ:i,paths:t,spatialReference:s}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,r.o8)(e)}get extent(){const e=(0,h.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,r.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const i=[];for(let t=0,n=e.length;t<n;t++)i[t]=e[t].toArray();t[n]=i}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new i;return e.spatialReference=this.spatialReference,e.paths=(0,r.o8)(this.paths),e.curvePaths=(0,r.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.paths[e][t],i=this.hasZ,s=this.hasM;return i&&!s?new u.A(n[0],n[1],n[2],void 0,this.spatialReference):s&&!i?new u.A(n[0],n[1],void 0,n[2],this.spatialReference):i&&s?new u.A(n[0],n[1],n[2],n[3],this.spatialReference):new u.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,d.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],n=this.spatialReference,i=t.map(e=>new u.A(e,n));return this.notifyChange("paths"),i}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,d.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const i=this.paths[e];if(n&&(t<0||t>i.length))return!1;if(!n&&(t<0||t>=i.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,s.Cg)([(0,m.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,s.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,s.Cg)([(0,m.K)("paths")],f.prototype,"writePaths",null),f=i=(0,s.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},4197(e,t,n){n.d(t,{Vj:()=>c,cj:()=>u,jh:()=>r,l5:()=>a,yH:()=>l});var i=n(34275),s=n(9093);function r(e){return e<=1024?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=1024?Array.from(e):new Float64Array(e)}function a(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function l(e,t){if(0===t.length)return o(e);if(0===e.length)return o(t);const n=r(e.length+t.length);for(let t=0;t<e.length;++t)n[t]=e[t];for(let i=0;i<t.length;++i)n[e.length+i]=t[i];return n}function u(e){return[...e]}function c(e){const t=(0,s.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>F,C:()=>o,DC:()=>d,Ej:()=>S,Ie:()=>v,Jt:()=>I,Lu:()=>b,Ne:()=>w,RF:()=>h,TF:()=>g,VL:()=>f,aI:()=>D,fA:()=>a,gE:()=>u,gX:()=>_,hZ:()=>x,iT:()=>m,is:()=>C,pg:()=>T,uJ:()=>y,vI:()=>M,vY:()=>l,vt:()=>r,w1:()=>c,yr:()=>p}),n(35522);var i=n(5443),s=(n(19419),n(4197));function r(e=N){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t){for(let n=0;n<6;n++)e[n]=t[n];return e}function a(e,t,n,i,s,o,a=r()){return a[0]=e,a[1]=t,a[2]=n,a[3]=i,a[4]=s,a[5]=o,a}function l(e,t=r()){return function(e,t,n,i=r()){return x(i,A),function(e,t,n=0,i=t.length/3){let s=e[0],r=e[1],o=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)s=Math.min(s,t[n+3*e]),r=Math.min(r,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),l=Math.max(l,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=s,e[1]=r,e[2]=o,e[3]=a,e[4]=l,e[5]=u}(i,e,t,n),i}(e,0,e.length/3,t)}function u(e,t=(0,s.jh)(24)){const[n,i,r,o,a,l]=e;return t[0]=n,t[1]=i,t[2]=r,t[3]=n,t[4]=i,t[5]=l,t[6]=n,t[7]=a,t[8]=r,t[9]=n,t[10]=a,t[11]=l,t[12]=o,t[13]=i,t[14]=r,t[15]=o,t[16]=i,t[17]=l,t[18]=o,t[19]=a,t[20]=r,t[21]=o,t[22]=a,t[23]=l,t}function c(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new i.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function h(e,t,n=e){n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n[2]=Math.min(e[2],t[2]),n[3]=Math.max(e[3],t[3]),n[4]=Math.max(e[4],t[4]),n[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,[t,n,i]){!function(e,t,n,i){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.min(e[2],i),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],n),e[5]=Math.max(e[5],i)}(e,t,n,i)}function f(e){return e[0]>=e[3]?0:e[3]-e[0]}function p(e){return e[1]>=e[4]?0:e[4]-e[1]}function y(e){return e[2]>=e[5]?0:e[5]-e[2]}function g(e){const t=f(e),n=y(e),i=p(e);return t*t+n*n+i*i}function _(e,t=[0,0,0]){return t[0]=e[0]+f(e)/2,t[1]=e[1]+p(e)/2,t[2]=e[2]+y(e)/2,t}function S(e,t=[0,0,0]){return t[0]=f(e),t[1]=p(e),t[2]=y(e),t}function T(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function b(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function w(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function M(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function x(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}function v(e){return e?x(e,A):r(A)}function I(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function F(e,t,n,i,s){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function C(e){return 6===e.length}function D(e,t,n){if(null==e||null==t)return e===t;if(!C(e)||!C(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const A=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];r(),n.d(t,["qv",0,A,"v_",0,N])},60408(e,t,n){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function r(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?r(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>c,Rg:()=>o,U9:()=>s,W0:()=>h,ZC:()=>i,fT:()=>r,uW:()=>l})},65864(e,t,n){n.d(t,{rS:()=>c,xD:()=>d});var i=n(5443),s=n(91075),r=n(48526),o=n(86738),a=n(39829),l=n(82799),u=n(60408);function c(e){return null==e?null:e instanceof s.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?r.A.fromJSON(e):(0,u.ZC)(e)?i.A.fromJSON(e):null}const h={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:r.A,esriGeometryMultiPatch:a.A};function d(e){return e&&h[e]||null}},97770(e,t,n){n.d(t,{Ey:()=>z,F8:()=>N,J2:()=>F,Yq:()=>D,_m:()=>C,iS:()=>A,wj:()=>O});var i=n(66552),s=n(73444),r=n(98623),o=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},p={...f,second:"numeric"},y={hourCycle:"h23"},g={...f,...y},_={...p,...y},S={"short-date":c,"short-date-short-time":{...c,...f},"short-date-short-time-24":{...c,...g},"short-date-long-time":{...c,...p},"short-date-long-time-24":{...c,..._},"short-date-le":c,"short-date-le-short-time":{...c,...f},"short-date-le-short-time-24":{...c,...g},"short-date-le-long-time":{...c,...p},"short-date-le-long-time-24":{...c,..._},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...f},"long-month-day-year-short-time-24":{...h,...g},"long-month-day-year-long-time":{...h,...p},"long-month-day-year-long-time-24":{...h,..._},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...f},"day-short-month-year-short-time-24":{...d,...g},"day-short-month-year-long-time":{...d,...p},"day-short-month-year-long-time-24":{...d,..._},"long-date":m,"long-date-short-time":{...m,...f},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":p},T=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),b={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},w=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),M=w.find(({type:e})=>"month"===e)?.value.toLowerCase();function x(){const e=(0,s.lR)();return(e&&b[e])??(0,s.QC)()}"mart"!==M&&(b.bs="sr-Latn-CS");let v=new WeakMap;const I=S["short-date-short-time"];function F(e){return S[e]}function C(e){const{dateStyle:t,timeStyle:n,hour12:i,year:s,month:r}=e,o={};return t?o.dateStyle=t:s&&(o.year=s,o.month=r||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===i?void 0:"always"===i),o}function D(e,t=I){return function(e){let t=v.get(e);if(!t){const n=x(),i=O(e.timeZone??"system"),s={...e,timeZone:i};t=new Intl.DateTimeFormat(n,s),v.set(e,t)}return t}(t).format(e)}function A(e,t=I){return D(new Date(e),{...t,...u,...l})}function N(e,t=I){return D(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function z(e,t=I){const n=o.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return D(n.toJSDate(),t);const i=0===n.offset?"UTC":t.timeZone,s={...t,timeZone:i};return n.toLocaleString(s,{locale:x()})}function O(e){switch(e){case"system":return r.N;case r.L:return"UTC";default:return e}}(0,s.Ml)(()=>{v=new WeakMap}),n.d(t,["_v",0,T])},73444(e,t,n){n.d(t,{JK:()=>l,Ml:()=>y,QC:()=>h,lR:()=>c,oQ:()=>f});var i=n(36563);let s;n(44208);const r=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return r??e??t??"en"}function l(){return void 0===s&&(s=a()),s}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(e=l()){return d(e)?.language}function h(e=l()){const t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return u.exec(e)?.groups}const m=[];function f(e){return m.push(e),(0,i.hA)(()=>{m.splice(m.indexOf(e),1)})}new Map;const p=[];function y(e){return p.push(e),(0,i.hA)(()=>p.splice(p.indexOf(e),1))}function g(){const e=a();s!==e&&([...p].forEach(t=>t(e)),s=e,[...m].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},6518(e,t,n){n.d(t,{F:()=>a});var i=n(44208),s=n(75503),r=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s.wq(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,i)=>{e[t++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(e,t,n){n.d(t,{A:()=>f});var i=n(4576),s=n(49186),r=n(65529),o=n(53966),a=n(70328),l=n(19419),u=n(90708),c=n(6518),h=n(51441),d=n(37730);const m=(0,a.vt)();class f{constructor(e){this.geometryInfo=e,this._boundsStore=new c.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,i,s]=this.fullBounds;return{xmin:t,ymin:n,xmax:i,ymax:s,spatialReference:(0,h.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(m,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let i;if(n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);i=(0,u.jQ)(null!=i?i:(0,l.vt)(),e.geometry),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:i,attributes:r}=e;for(const e in r)n.attributes[e]=r[e];return i&&(n.geometry=i,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},37730(e,t,n){var i=n(43334);const s={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t,n)=>new i.Om(t,e.attributes,null,e.objectId,e.displayId,e.distance,e.vertexCount),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)};n.d(t,["T",0,s])},25209(e,t,n){n.r(t),n.d(t,{default:()=>J});var i=n(56507),s=n(60999),r=n(67482),o=n(49186),a=n(53966),l=n(17676),u=n(84952),c=n(99917),h=n(16930),d=n(21325),m=n(28735),f=n(43334),p=n(92722),y=n(83221),g=n(31464),_=n(75752),S=n(14607),T=n(30524),b=n(54625);const w=/^\s*"([\S\s]*)"\s*$/,M=/""/g,x=[",",";","|","\t"];function*v(e,t,n){let i=0;for(;i<=e.length;){const s=e.indexOf(t,i),r=e.slice(i,s>-1?s:void 0);i+=r.length+t.length,n&&!r.trim()||(yield r)}}function I(e){const t=e.includes("\r\n")?"\r\n":"\n";return v(e,t,!0)}function F(e,t){return v(e,t,!1)}function C(e,t,n){e=e.trim(),t=t?.trim();const i=[],s=Array.from(new Set([n?.delimiter,...x])).filter(e=>null!=e);for(const n of s){const s=N(e,n).length,r=N(t,n).length??s;s>1&&i.push({weight:Math.min(s,r),delimiter:n})}const r=i.sort(({weight:e},{weight:t})=>t-e).map(({delimiter:e})=>e);for(const t of r){const i=A(e,t).names,s=(0,b.i_)(i,n?.longitudeField,n?.latitudeField);if(s.longitudeFieldName&&s.latitudeFieldName)return{delimiter:t,locationInfo:s}}return{delimiter:r[0],locationInfo:null}}function*D(e,t,n,i=()=>Object.create(null)){const s=I(e);s.next();let r="",o="",a=0,l=i(),u=0;e:for(const e of s){const s=F(e,n);for(const e of s)if(r+=o+e,o="",a+=z(e),a%2==0){if(a>0){const e=w.exec(r);if(!e){l=i(),u=0,r="",a=0;continue e}l[t[u]]=e[1].replaceAll(M,'"'),u++}else l[t[u]]=r,u++;r="",a=0}else o=n;0===a?(yield l,l=i(),u=0):o="\n"}}function A(e,t){const n=N(e,t).filter(e=>null!=e),i=n.map(e=>(0,T.rS)(e));for(let e=i.length-1;e>=0;e--)i[e]||(i.splice(e,1),n.splice(e,1));return{names:i,aliases:n}}function N(e,t){if(!e?.length)return[];const n=[];let i="",s="",r=0;const o=F(e,t);for(const e of o)if(i+=s+e,s="",r+=z(e),r%2==0){if(r>0){const e=w.exec(i);e&&n.push(e[1].replaceAll(M,'"'))}else n.push(i);i="",r=0}else s=t;return n}function z(e){let t=0,n=0;for(n=e.indexOf('"',n);n>=0;)t++,n=e.indexOf('"',n+1);return t}function O(e,t,n,i,s){const r=[],o=D(e,n,t),a=[];for(const e of o){if(10===a.length)break;a.push(e)}for(let e=0;e<n.length;e++){const t=n[e],o=i[e];if(t===s.longitudeFieldName||t===s.latitudeFieldName)r.push({name:t,type:"esriFieldTypeDouble",alias:o});else{let e;switch(B(a.map(e=>e[t]))){case"integer":e="esriFieldTypeInteger";break;case"double":e="esriFieldTypeDouble";break;case"date":e="esriFieldTypeDate";break;default:e="esriFieldTypeString"}r.push({name:t,type:e,alias:o,length:(0,T._b)(e)})}}return r}function B(e){if(!e.length)return"string";const t=/[^+\-.,0-9]/;return e.map(e=>{if(""!==e){if(!t.test(e)){let t=E(e);if(!isNaN(t))return/[.,]/.test(e)||!Number.isInteger(t)||t>214783647||t<-214783648?"double":"integer";if(e.includes("E")){if(t=Number(e),!Number.isNaN(t))return"double";if(e.includes(",")&&(e=e.replace(",","."),t=Number(e),!Number.isNaN(t)))return"double"}}return(0,r.C)(e)?"date":"string"}}).reduce((e,t)=>void 0===e?t:void 0===t?e:e===t?t:"string"===e||"string"===t?"string":"double"===e||"double"===t?"double":void 0)}const E=function(){const e=(0,S.B)(),t=new RegExp("^"+e.regexp+"$"),n=new RegExp("["+e.group+"\\s\\xa0]","g"),i=e.factor;return s=>{const r=t.exec(s);if(e.factor=i,!r)return NaN;let o=r[1];if(!r[1]){if(!r[2])return NaN;o=r[2],e.factor*=-1}return o=o.replace(n,"").replace(e.decimal,"."),+o*e.factor}}();function L(e){return JSON.parse(JSON.stringify(e))}var k=n(64714),R=n(60694),Z=n(95466),U=n(54218);n(98623);const Y=(0,k.F0)("esriGeometryPoint"),P=["csv"],q=[0,0];class j{constructor(e,t){this.x=e,this.y=t}}class J{constructor(){this._queryEngine=null,this._featureIdInfo=null,this._snapshotFeatures=async e=>{const t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){this._loadOptions=e;const[n]=await Promise.all([this._fetch(t.signal),this._checkProjection(e?.parsingOptions?.spatialReference)]),i=function(e,t){const n=t.parsingOptions||{},i={delimiter:n.delimiter,layerDefinition:null,locationInfo:{latitudeFieldName:n.latitudeField,longitudeFieldName:n.longitudeField}},s=i.layerDefinition={name:(0,R.cr)((0,u.e7)(t.url,P)||"csv"),dateFieldsTimeReference:{timeZoneIANA:"UTC"},drawingInfo:Y,geometryType:"esriGeometryPoint",objectIdField:null,fields:[],timeInfo:n.timeInfo,extent:{xmin:Number.POSITIVE_INFINITY,ymin:Number.POSITIVE_INFINITY,xmax:Number.NEGATIVE_INFINITY,ymax:Number.NEGATIVE_INFINITY,spatialReference:n.spatialReference||{wkid:4326}}},r=I(e),a=r.next().value?.trim(),l=r.next().value?.trim();if(!a)throw new o.A("csv-layer:empty-csv","CSV is empty",{csv:e});const{delimiter:c,locationInfo:h}=C(a,l,n);if(!c)throw new o.A("csv-layer:invalid-delimiter","Unable to detect the delimiter from CSV",{firstLine:a,secondLine:l,parsingOptions:n});if(!h)throw new o.A("csv-layer:location-fields-not-found","Unable to identify latitude and longitude fields from the CSV file",{firstLine:a,secondLine:l,parsingOptions:n});i.locationInfo=h,i.delimiter=c;const{names:d,aliases:m}=A(a,c),f=O(e,i.delimiter,d,m,i.locationInfo);if(n.fields?.length){const e=new Z.A(n.fields);for(const t of f){const n=e.get(t.name);n&&Object.assign(t,n)}}if(!f.some(e=>"esriFieldTypeOID"===e.type&&(s.objectIdField=e.name,!0))){const e={name:"__OBJECTID",alias:"__OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1};s.objectIdField=e.name,f.unshift(e)}s.fields=f;const p=new Z.A(s.fields);if(i.locationInfo&&(i.locationInfo.latitudeFieldName=p.get(i.locationInfo.latitudeFieldName).name,i.locationInfo.longitudeFieldName=p.get(i.locationInfo.longitudeFieldName).name),s.timeInfo){const e=s.timeInfo;if(e.startTimeField){const t=p.get(e.startTimeField);t?(e.startTimeField=t.name,t.type="esriFieldTypeDate"):e.startTimeField=null}if(e.endTimeField){const t=p.get(e.endTimeField);t?(e.endTimeField=t.name,t.type="esriFieldTypeDate"):e.endTimeField=null}if(e.trackIdField){const t=p.get(e.trackIdField);e.trackIdField=t?t.name:null}e.startTimeField||e.endTimeField||(s.timeInfo=null)}return i}(n,e);this._locationInfo=i.locationInfo,this._delimiter=i.delimiter;const{objectIdField:s,fields:r,extent:{spatialReference:a},timeInfo:l}=i.layerDefinition,c=new y.A({geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1});this._featureIdInfo={type:"object-id",fieldName:s},this._queryEngine=new _.do({fieldsIndex:Z.A.fromLayerJSON({fields:r,dateFieldsTimeReference:{timeZoneIANA:"UTC"}}),geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1,timeInfo:l,featureIdInfo:this._featureIdInfo,spatialReference:a||{wkid:4326},featureStore:c});const h=this._createFeatures(n);this._queryEngine.featureStore.addMany(h);const{fullExtent:d,timeExtent:m}=await this._queryEngine.fetchRecomputedExtents();if(i.layerDefinition.extent=d,m){const{start:e,end:t}=m;i.layerDefinition.timeInfo.timeExtent=[e,t]}return i}async applyEdits(){throw new o.A("csv-layer:editing-not-supported","applyEdits() is not supported on CSVLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),(await this._queryEngine.executeQueryForIds(e,t.signal)).filter(U.Et)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,s.UT)(this._snapshotFeatures),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),e&&this._queryEngine.featureStore.addMany(e)},e=>{this._queryEngine.featureStore.clear(),(0,l.zf)(e)||a.A.getLogger("esri.layers.CSVLayer").error(new o.A("csv-layer:refresh","An error occurred during refresh",{error:e}))}),await this._waitSnapshotComplete();const{fullExtent:t,timeExtent:n}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:n}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){const{url:t,customParameters:n}=this._loadOptions;if(!t)throw new o.A("csv-layer:invalid-source","url not defined");const s=(0,u.An)(t);return(await(0,i.A)(s.path,{query:{...s.query,...n},responseType:"text",signal:e})).data}_createFeatures(e){const{latitudeFieldName:t,longitudeFieldName:n}=this._locationInfo,{fieldsIndex:i,spatialReference:s}=this._queryEngine,o=this._featureIdInfo.fieldName;let a=[];const l=[],u=i.fields.filter(e=>e.name!==o).map(e=>e.name);let y=0;const g={};for(const e of i.fields)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,T.lD)(e);void 0!==t&&(g[e.name]=t)}const _=D(e,u,this._delimiter,(0,k.Vx)(g,o));for(const e of _){const s=this._parseCoordinateValue(e[t]),u=this._parseCoordinateValue(e[n]);if(null!=u&&null!=s&&!isNaN(s)&&!isNaN(u)){e[t]=s,e[n]=u;for(const s in e)if(s!==t&&s!==n)if(i.isDateField(s))e[s]=(0,r._)(e[s]);else if(i.isNumericField(s)){const t=E(e[s]);isNaN(t)?e[s]=null:e[s]=t}else null!=e[s]&&(e[s]=L(e[s]));e[o]=y,y++,a.push(new j(u,s)),l.push(e)}}if(!(0,d.aI)({wkid:4326},s))if((0,d.K8)(s))for(const e of a)[e.x,e.y]=(0,m.je)(e.x,e.y,q);else a=(0,c.projectMany)(a,h.A.WGS84,s);const S=[];for(let e=0;e<a.length;e++){const{x:t,y:n}=a[e],i=l[e];i[o]=e+1,S.push(new f.Om(new p.A([],[t,n]),i,null,i[o]))}return S}_parseCoordinateValue(e){if(null==e||""===e)return null;let t=E(e);return(isNaN(t)||Math.abs(t)>181)&&(t=parseFloat(e)),t}async _checkProjection(e){try{await(0,g.Nk)(d.KK,e)}catch{throw new o.A("csv-layer:projection-not-supported","Projection not supported")}}}},64714(e,t,n){n.d(t,{F0:()=>a,Vx:()=>c,e2:()=>d,f:()=>m});var i=n(44208),s=n(4718),r=n(99352),o=n(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function c(e,t){if((0,i.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let n="";t&&(n+=`this${h(t)} = null;`);for(const t in e)n+=`this${h(t)} = ${JSON.stringify(e[t])};`;const i=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new i}catch(n){return()=>t?{[t]:null,...e}:{...e}}}function h(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,s.o8)(e)}}]}function m(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},95466(e,t,n){n.d(t,{A:()=>u});var i=n(49186),s=n(53966),r=n(12195),o=n(30524),a=n(98623),l=n(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],h(e))}static fromLayerJSON(e){return new u(e.fields??[],h(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,i=(0,o.GZ)(t);if(t&&i){const s=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(i,e),n.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,o.te)(e)||(0,o.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):c.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,r.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const c=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function h(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:s}=e,r=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",h=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,d=s?function(e){return"timeZone"in e}(s)?s.timeZone??h:s.dateFieldsTimeReference?(0,l.ZS)(s.dateFieldsTimeReference):h??"UTC":null,m=i?function(e){return"timeZone"in e}(i)?i.timeZone??h:i.timeReference?(0,l.ZS)(i.timeReference):h:null,f=new Map([[(0,o.NF)(s?.creationDateField??""),d],[(0,o.NF)(s?.editDateField??""),d],[(0,o.NF)(r),m],[(0,o.NF)(u),m]]);for(const{name:i,type:s}of e.fields)if(c.has(s))t.set(i,a.L);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(i,null);else if(n)t.set(i,a.L);else{const e=f.get((0,o.NF)(i??""))??h;t.set(i,e)}return t}},98453(e,t,n){const i=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});n.d(t,["m",0,i])},54625(e,t,n){n.d(t,{i_:()=>s});var i=n(30524);function s(e,t,n){t=(0,i.rS)(t)?.toLowerCase(),n=(0,i.rS)(n)?.toLowerCase();const s=e.map(e=>e.toLowerCase()),a=t?e[s.indexOf(t)]:null,l=n?e[s.indexOf(n)]:null;return{longitudeFieldName:a||e[s.indexOf(o.find(e=>s.includes(e)))],latitudeFieldName:l||e[s.indexOf(r.find(e=>s.includes(e)))]}}const r=["lat","lat83","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],o=["lon","lng","lng83","long","long83","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"];n.d(t,["A0",0,o,"bD",0,r])},93470(e,t,n){const i=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};n.d(t,["Cb",0,s,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,r])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9944],{61294(t,e,n){n.d(e,{J:()=>r});var o=function(){function t(t){this.message="JPEG error: "+t}return t.prototype=new Error,t.prototype.name="JpegError",t.constructor=t,t}(),r=function(){if(!self||!self.Uint8ClampedArray)return null;var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e=4017,n=799,r=3406,i=2276,l=1567,a=3784,s=5793,u=2896;function c(){this.decodeTransform=null,this.colorTransform=-1}function h(t,e){for(var n,o,r=0,i=[],l=16;l>0&&!t[l-1];)l--;i.push({children:[],index:0});var a,s=i[0];for(n=0;n<l;n++){for(o=0;o<t[n];o++){for((s=i.pop()).children[s.index]=e[r];s.index>0;)s=i.pop();for(s.index++,i.push(s);i.length<=n;)i.push(a={children:[],index:0}),s.children[s.index]=a.children,s=a;r++}n+1<l&&(i.push(a={children:[],index:0}),s.children[s.index]=a.children,s=a)}return i[0].children}function f(t,e,n){return 64*((t.blocksPerLine+1)*e+n)}function p(e,n,r,i,l,a,s,u,c){var h=r.mcusPerLine,p=r.progressive,d=n,g=0,y=0;function w(){if(y>0)return y--,g>>y&1;if(255===(g=e[n++])){var t=e[n++];if(t)throw new o("unexpected marker "+(g<<8|t).toString(16))}return y=7,g>>>7}function C(t){for(var e=t;;){if("number"==typeof(e=e[w()]))return e;if("object"!=typeof e)throw new o("invalid huffman sequence")}}function A(t){for(var e=0;t>0;)e=e<<1|w(),t--;return e}function x(t){if(1===t)return 1===w()?1:-1;var e=A(t);return e>=1<<t-1?e:e+(-1<<t)+1}var b,v=0,M=0;function T(t,e,n,o,r){var i=n%h;e(t,f(t,(n/h|0)*t.v+o,i*t.h+r))}function k(t,e,n){e(t,f(t,n/t.blocksPerLine|0,n%t.blocksPerLine))}var I,S,E,P,R,L,D=i.length;L=p?0===a?0===u?function(t,e){var n=C(t.huffmanTableDC),o=0===n?0:x(n)<<c;t.blockData[e]=t.pred+=o}:function(t,e){t.blockData[e]|=w()<<c}:0===u?function(e,n){if(v>0)v--;else for(var o=a,r=s;o<=r;){var i=C(e.huffmanTableAC),l=15&i,u=i>>4;if(0!==l){var h=t[o+=u];e.blockData[n+h]=x(l)*(1<<c),o++}else{if(u<15){v=A(u)+(1<<u)-1;break}o+=16}}}:function(e,n){for(var r,i,l=a,u=s,h=0;l<=u;){var f=t[l];switch(M){case 0:if(h=(i=C(e.huffmanTableAC))>>4,0==(r=15&i))h<15?(v=A(h)+(1<<h),M=4):(h=16,M=1);else{if(1!==r)throw new o("invalid ACn encoding");b=x(r),M=h?2:3}continue;case 1:case 2:e.blockData[n+f]?e.blockData[n+f]+=w()<<c:0===--h&&(M=2===M?3:0);break;case 3:e.blockData[n+f]?e.blockData[n+f]+=w()<<c:(e.blockData[n+f]=b<<c,M=0);break;case 4:e.blockData[n+f]&&(e.blockData[n+f]+=w()<<c)}l++}4===M&&0===--v&&(M=0)}:function(e,n){var o=C(e.huffmanTableDC),r=0===o?0:x(o);e.blockData[n]=e.pred+=r;for(var i=1;i<64;){var l=C(e.huffmanTableAC),a=15&l,s=l>>4;if(0!==a){var u=t[i+=s];e.blockData[n+u]=x(a),i++}else{if(s<15)break;i+=16}}};var U,G,N,O,B=0;for(G=1===D?i[0].blocksPerLine*i[0].blocksPerColumn:h*r.mcusPerColumn;B<G;){var F=l?Math.min(G-B,l):G;for(S=0;S<D;S++)i[S].pred=0;if(v=0,1===D)for(I=i[0],R=0;R<F;R++)k(I,L,B),B++;else for(R=0;R<F;R++){for(S=0;S<D;S++)for(N=(I=i[S]).h,O=I.v,E=0;E<O;E++)for(P=0;P<N;P++)T(I,L,B,E,P);B++}y=0,(U=m(e,n))&&U.invalid&&(console.log("decodeScan - unexpected MCU data, next marker is: "+U.invalid),n=U.offset);var V=U&&U.marker;if(!V||V<=65280)throw new o("marker was not found");if(!(V>=65488&&V<=65495))break;n+=2}return(U=m(e,n))&&U.invalid&&(console.log("decodeScan - unexpected Scan data, next marker is: "+U.invalid),n=U.offset),n-d}function d(t,c,h){var f,p,d,g,m,y,w,C,A,x,b,v,M,T,k,I,S,E=t.quantizationTable,P=t.blockData;if(!E)throw new o("missing required Quantization Table.");for(var R=0;R<64;R+=8)A=P[c+R],x=P[c+R+1],b=P[c+R+2],v=P[c+R+3],M=P[c+R+4],T=P[c+R+5],k=P[c+R+6],I=P[c+R+7],A*=E[R],0!==(x|b|v|M|T|k|I)?(x*=E[R+1],b*=E[R+2],v*=E[R+3],M*=E[R+4],T*=E[R+5],k*=E[R+6],I*=E[R+7],p=(f=(f=s*A+128>>8)+(p=s*M+128>>8)+1>>1)-p,S=(d=b)*a+(g=k)*l+128>>8,d=d*l-g*a+128>>8,w=(m=(m=u*(x-I)+128>>8)+(w=T<<4)+1>>1)-w,y=(C=(C=u*(x+I)+128>>8)+(y=v<<4)+1>>1)-y,g=(f=f+(g=S)+1>>1)-g,d=(p=p+d+1>>1)-d,S=m*i+C*r+2048>>12,m=m*r-C*i+2048>>12,C=S,S=y*n+w*e+2048>>12,y=y*e-w*n+2048>>12,w=S,h[R]=f+C,h[R+7]=f-C,h[R+1]=p+w,h[R+6]=p-w,h[R+2]=d+y,h[R+5]=d-y,h[R+3]=g+m,h[R+4]=g-m):(S=s*A+512>>10,h[R]=S,h[R+1]=S,h[R+2]=S,h[R+3]=S,h[R+4]=S,h[R+5]=S,h[R+6]=S,h[R+7]=S);for(var L=0;L<8;++L)A=h[L],0!==((x=h[L+8])|(b=h[L+16])|(v=h[L+24])|(M=h[L+32])|(T=h[L+40])|(k=h[L+48])|(I=h[L+56]))?(p=(f=4112+((f=s*A+2048>>12)+(p=s*M+2048>>12)+1>>1))-p,S=(d=b)*a+(g=k)*l+2048>>12,d=d*l-g*a+2048>>12,g=S,w=(m=(m=u*(x-I)+2048>>12)+(w=T)+1>>1)-w,y=(C=(C=u*(x+I)+2048>>12)+(y=v)+1>>1)-y,S=m*i+C*r+2048>>12,m=m*r-C*i+2048>>12,C=S,S=y*n+w*e+2048>>12,y=y*e-w*n+2048>>12,A=(A=(f=f+g+1>>1)+C)<16?0:A>=4080?255:A>>4,x=(x=(p=p+d+1>>1)+(w=S))<16?0:x>=4080?255:x>>4,b=(b=(d=p-d)+y)<16?0:b>=4080?255:b>>4,v=(v=(g=f-g)+m)<16?0:v>=4080?255:v>>4,M=(M=g-m)<16?0:M>=4080?255:M>>4,T=(T=d-y)<16?0:T>=4080?255:T>>4,k=(k=p-w)<16?0:k>=4080?255:k>>4,I=(I=f-C)<16?0:I>=4080?255:I>>4,P[c+L]=A,P[c+L+8]=x,P[c+L+16]=b,P[c+L+24]=v,P[c+L+32]=M,P[c+L+40]=T,P[c+L+48]=k,P[c+L+56]=I):(S=(S=s*A+8192>>14)<-2040?0:S>=2024?255:S+2056>>4,P[c+L]=S,P[c+L+8]=S,P[c+L+16]=S,P[c+L+24]=S,P[c+L+32]=S,P[c+L+40]=S,P[c+L+48]=S,P[c+L+56]=S)}function g(t,e){for(var n=e.blocksPerLine,o=e.blocksPerColumn,r=new Int16Array(64),i=0;i<o;i++)for(var l=0;l<n;l++)d(e,f(e,i,l),r);return e.blockData}function m(t,e,n){function o(e){return t[e]<<8|t[e+1]}var r=t.length-1,i=n<e?n:e;if(e>=r)return null;var l=o(e);if(l>=65472&&l<=65534)return{invalid:null,marker:l,offset:e};for(var a=o(i);!(a>=65472&&a<=65534);){if(++i>=r)return null;a=o(i)}return{invalid:l.toString(16),marker:a,offset:i}}return c.prototype={parse:function(e){function n(){var t=e[s]<<8|e[s+1];return s+=2,t}function r(){var t=n(),o=s+t-2,r=m(e,o,s);r&&r.invalid&&(console.log("readDataBlock - incorrect length, next marker is: "+r.invalid),o=r.offset);var i=e.subarray(s,o);return s+=i.length,i}function i(t){for(var e=Math.ceil(t.samplesPerLine/8/t.maxH),n=Math.ceil(t.scanLines/8/t.maxV),o=0;o<t.components.length;o++){B=t.components[o];var r=Math.ceil(Math.ceil(t.samplesPerLine/8)*B.h/t.maxH),i=Math.ceil(Math.ceil(t.scanLines/8)*B.v/t.maxV),l=e*B.h,a=n*B.v*64*(l+1);B.blockData=new Int16Array(a),B.blocksPerLine=r,B.blocksPerColumn=i}t.mcusPerLine=e,t.mcusPerColumn=n}var l,a,s=0,u=null,c=null,f=[],d=[],y=[],w=n();if(65496!==w)throw new o("SOI not found");for(w=n();65497!==w;){var C,A,x;switch(w){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var b=r();65504===w&&74===b[0]&&70===b[1]&&73===b[2]&&70===b[3]&&0===b[4]&&(u={version:{major:b[5],minor:b[6]},densityUnits:b[7],xDensity:b[8]<<8|b[9],yDensity:b[10]<<8|b[11],thumbWidth:b[12],thumbHeight:b[13],thumbData:b.subarray(14,14+3*b[12]*b[13])}),65518===w&&65===b[0]&&100===b[1]&&111===b[2]&&98===b[3]&&101===b[4]&&(c={version:b[5]<<8|b[6],flags0:b[7]<<8|b[8],flags1:b[9]<<8|b[10],transformCode:b[11]});break;case 65499:for(var v=n()+s-2;s<v;){var M=e[s++],T=new Uint16Array(64);if(M>>4){if(M>>4!=1)throw new o("DQT - invalid table spec");for(A=0;A<64;A++)T[t[A]]=n()}else for(A=0;A<64;A++)T[t[A]]=e[s++];f[15&M]=T}break;case 65472:case 65473:case 65474:if(l)throw new o("Only single frame JPEGs supported");n(),(l={}).extended=65473===w,l.progressive=65474===w,l.precision=e[s++],l.scanLines=n(),l.samplesPerLine=n(),l.components=[],l.componentIds={};var k,I=e[s++],S=0,E=0;for(C=0;C<I;C++){k=e[s];var P=e[s+1]>>4,R=15&e[s+1];S<P&&(S=P),E<R&&(E=R);var L=e[s+2];x=l.components.push({h:P,v:R,quantizationId:L,quantizationTable:null}),l.componentIds[k]=x-1,s+=3}l.maxH=S,l.maxV=E,i(l);break;case 65476:var D=n();for(C=2;C<D;){var U=e[s++],G=new Uint8Array(16),N=0;for(A=0;A<16;A++,s++)N+=G[A]=e[s];var O=new Uint8Array(N);for(A=0;A<N;A++,s++)O[A]=e[s];C+=17+N,(U>>4?d:y)[15&U]=h(G,O)}break;case 65501:n(),a=n();break;case 65498:n();var B,F=e[s++],V=[];for(C=0;C<F;C++){var j=l.componentIds[e[s++]];B=l.components[j];var Z=e[s++];B.huffmanTableDC=y[Z>>4],B.huffmanTableAC=d[15&Z],V.push(B)}var W=e[s++],_=e[s++],z=e[s++],H=p(e,s,l,V,a,W,_,z>>4,15&z);s+=H;break;case 65535:255!==e[s]&&s--;break;default:if(255===e[s-3]&&e[s-2]>=192&&e[s-2]<=254){s-=3;break}throw new o("unknown marker "+w.toString(16))}w=n()}for(this.width=l.samplesPerLine,this.height=l.scanLines,this.jfif=u,this.eof=s,this.adobe=c,this.components=[],C=0;C<l.components.length;C++){var K=f[(B=l.components[C]).quantizationId];K&&(B.quantizationTable=K),this.components.push({output:g(0,B),scaleX:B.h/l.maxH,scaleY:B.v/l.maxV,blocksPerLine:B.blocksPerLine,blocksPerColumn:B.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(t,e){var n,o,r,i,l,a,s,u,c,h,f,p=this.width/t,d=this.height/e,g=0,m=this.components.length,y=t*e*m,w=new Uint8ClampedArray(y),C=new Uint32Array(t),A=4294967288;for(s=0;s<m;s++){for(o=(n=this.components[s]).scaleX*p,r=n.scaleY*d,g=s,f=n.output,i=n.blocksPerLine+1<<3,l=0;l<t;l++)u=0|l*o,C[l]=(u&A)<<3|7&u;for(a=0;a<e;a++)for(h=i*((u=0|a*r)&A)|(7&u)<<3,l=0;l<t;l++)w[g]=f[h+C[l]],g+=m}var x=this.decodeTransform;if(x)for(s=0;s<y;)for(u=0,c=0;u<m;u++,s++,c+=2)w[s]=(w[s]*x[c]>>8)+x[c+1];return w},_isColorConversionNeeded:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this.colorTransform:1===this.colorTransform},_convertYccToRgb:function(t){for(var e,n,o,r=0,i=t.length;r<i;r+=3)e=t[r],n=t[r+1],o=t[r+2],t[r]=e-179.456+1.402*o,t[r+1]=e+135.459-.344*n-.714*o,t[r+2]=e-226.816+1.772*n;return t},_convertYcckToRgb:function(t){for(var e,n,o,r,i=0,l=0,a=t.length;l<a;l+=4)e=t[l],n=t[l+1],o=t[l+2],r=t[l+3],t[i++]=n*(-660635669420364e-19*n+.000437130475926232*o-54080610064599e-18*e+.00048449797120281*r-.154362151871126)-122.67195406894+o*(-.000957964378445773*o+.000817076911346625*e-.00477271405408747*r+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*r+.48357088451265)+r*(-.000336197177618394*r+.484791561490776),t[i++]=107.268039397724+n*(219927104525741e-19*n-.000640992018297945*o+.000659397001245577*e+.000426105652938837*r-.176491792462875)+o*(-.000778269941513683*o+.00130872261408275*e+.000770482631801132*r-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*r+.25802910206845)+r*(-.000318913117588328*r-.213742400323665),t[i++]=n*(-.000570115196973677*n-263409051004589e-19*o+.0020741088115012*e-.00288260236853442*r+.814272968359295)-20.810012546947+o*(-153496057440975e-19*o-.000132689043961446*e+.000560833691242812*r-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*r+.116935020465145)+r*(-.000343531996510555*r+.24165260232407);return t},_convertYcckToCmyk:function(t){for(var e,n,o,r=0,i=t.length;r<i;r+=4)e=t[r],n=t[r+1],o=t[r+2],t[r]=434.456-e-1.402*o,t[r+1]=119.541-e+.344*n+.714*o,t[r+2]=481.816-e-1.772*n;return t},_convertCmykToRgb:function(t){for(var e,n,o,r,i=0,l=1/255,a=0,s=t.length;a<s;a+=4)e=t[a]*l,n=t[a+1]*l,o=t[a+2]*l,r=t[a+3]*l,t[i++]=255+e*(-4.387332384609988*e+54.48615194189176*n+18.82290502165302*o+212.25662451639585*r-285.2331026137004)+n*(1.7149763477362134*n-5.6096736904047315*o-17.873870861415444*r-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*r+17.5119270841813)-r*(21.86122147463605*r+189.48180835922747),t[i++]=255+e*(8.841041422036149*e+60.118027045597366*n+6.871425592049007*o+31.159100130055922*r-79.2970844816548)+n*(-15.310361306967817*n+17.575251261109482*o+131.35250912493976*r-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*r-24.86741582555878)-r*(20.737325471181034*r+187.80453709719578),t[i++]=255+e*(.8842522430003296*e+8.078677503112928*n+30.89978309703729*o-.23883238689178934*r-14.183576799673286)+n*(10.49593273432072*n+63.02378494754052*o+50.606957656360734*r-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*r-193.58209356861505)-r*(22.33816807309886*r+180.12613974708367);return t},getData:function(t,e,n){if(this.numComponents>4)throw new o("Unsupported color mode");var r=this._getLinearizedBlockData(t,e);if(1===this.numComponents&&n){for(var i=r.length,l=new Uint8ClampedArray(3*i),a=0,s=0;s<i;s++){var u=r[s];l[a++]=u,l[a++]=u,l[a++]=u}return l}if(3===this.numComponents&&this._isColorConversionNeeded())return this._convertYccToRgb(r);if(4===this.numComponents){if(this._isColorConversionNeeded())return n?this._convertYcckToRgb(r):this._convertYcckToCmyk(r);if(n)return this._convertCmykToRgb(r)}return r}},c}()},85334(t,e,n){n.d(e,{$:()=>w,IB:()=>a,Iy:()=>M,KV:()=>b,N2:()=>C,RH:()=>x,ZD:()=>A,sn:()=>v});var o=n(68197),r=n(4576),i=n(4718),l=n(34727);function a(t){return"r"in t&&"g"in t&&"b"in t}function s(t){return"h"in t&&"s"in t&&"v"in t}function u(t){return"l"in t&&"a"in t&&"b"in t}function c(t){return"l"in t&&"c"in t&&"h"in t}n(78955),n(91829);const h=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],f=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function p(t,e){const n=[];let o,r;if(t[0].length!==e.length)throw new Error("dimensions do not match");const i=t.length,l=t[0].length;let a=0;for(o=0;o<i;o++){for(a=0,r=0;r<l;r++)a+=t[o][r]*e[r];n.push(a)}return n}function d(t){const e=[t.r/255,t.g/255,t.b/255].map(t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4),n=p(h,e);return{x:100*n[0],y:100*n[1],z:100*n[2]}}function g(t){const e=p(f,[t.x/100,t.y/100,t.z/100]).map(t=>{const e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))});return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function m(t){const e=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function y(t){const e=t.l,n=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*n[0],y:100*n[1],z:108.883*n[2]}}function w(t){return a(t)?t:c(t)?function(t){return g(y(function(t){const e=t.l,n=t.c,o=t.h;return{l:e,a:n*Math.cos(o),b:n*Math.sin(o)}}(t)))}(t):u(t)?function(t){return g(y(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?g(t):s(t)?function(t){const e=(t.h+360)%360/60,n=t.s/100,o=t.v/100*255,r=o*n,i=r*(1-Math.abs(e%2-1));let l;switch(Math.floor(e)){case 0:l={r,g:i,b:0};break;case 1:l={r:i,g:r,b:0};break;case 2:l={r:0,g:r,b:i};break;case 3:l={r:0,g:i,b:r};break;case 4:l={r:i,g:0,b:r};break;case 5:case 6:l={r,g:0,b:i};break;default:l={r:0,g:0,b:0}}return l.r=Math.round(l.r+o-r),l.g=Math.round(l.g+o-r),l.b=Math.round(l.b+o-r),l}(t):t}function C(t){return s(t)?t:function(t){const{r:e,g:n,b:o}=t,r=Math.max(e,n,o),i=r-Math.min(e,n,o);let l=r,a=0===i?0:r===e?(n-o)/i%6:r===n?(o-e)/i+2:(e-n)/i+4,s=0===i?0:i/l;return a<0&&(a+=6),a*=60,s*=100,l*=100/255,{h:a,s,v:l}}(w(t))}function A(t){return u(t)?t:function(t){return m(d(t))}(w(t))}function x(t){return c(t)?t:function(t){return function(t){const e=t.l,n=t.a,o=t.b,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i=i>0?i:i+2*Math.PI,{l:e,c:r,h:i}}(m(d(t)))}(w(t))}function b(t){return t[0]??=0,t[1]??=0,t[2]??=0,t}function v(t){return t.length=4,b(t),t[3]??=1,(0,l.qE)(t[3],0,1),t}function M(t,e,n={}){if(0===t.length||e<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new o.A(t):t)).length||1===e){const n=[],o=t[0];for(let t=0;t<e;t++)n.push(o.clone());return n}if(n.shuffle&&(t=(0,r.k4)((0,i.o8)(t),n.seed)),t.length>=e){const n=[],o=(t.length-1)/(e-1);for(let r=0;r<e;r++){const e=Math.round(r*o);n.push(t[e].clone())}return n}return function(t,e,n={}){const o=[],i=t.length-1,l=Math.ceil((e-t.length)/i);t:for(let r=0;r<i;r++){const i=t[r],a=t[r+1];for(let r=1;r<=l;r++){const s=r/(l+1);if(o.push(k(i,a,s,n)),o.length+t.length===e)break t}}return[...t.map(t=>t.clone()),...(0,r.k4)(o,n.seed??1)]}(t,e,n)}const T=(t,e)=>{const n=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+n))};function k(t,e,n,i={}){const l=t.r,a=t.g,s=t.b,u=e.r,c=e.g,h=e.b,f=Math.round(l+(u-l)*n),p=Math.round(a+(c-a)*n),d=Math.round(s+(h-s)*n);if(!i.offset)return new o.A([f,p,d]);const g=(0,r.Mo)(i.seed);return new o.A([T(f,g),T(p,g),T(d,g)])}},91829(t,e,n){function o(){return[0,0,0,0]}function r(t,e,n,o){return[t,e,n,o]}function i(){return r(1,1,1,1)}function l(){return r(1,0,0,0)}function a(){return r(0,1,0,0)}function s(){return r(0,0,1,0)}function u(){return r(0,0,0,1)}n.d(e,{_Y:()=>u,fA:()=>r,vt:()=>o});const c=[0,0,0,0],h=i(),f=l(),p=a(),d=s(),g=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:g,UNIT_X:f,UNIT_Y:p,UNIT_Z:d,ZEROS:c,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:o,freeze:function(t,e,n,o){return[t,e,n,o]},fromArray:function(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let o=0;o<n;++o)e[o]=t[o];return e},fromValues:r,ones:i,unitW:u,unitX:l,unitY:a,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,h,"uY",0,c,"v7",0,g])},78955(t,e,n){n.d(e,{Bw:()=>m,C:()=>r,Cc:()=>A,LI:()=>f,Om:()=>C,S8:()=>w,T9:()=>h,WQ:()=>l,Z0:()=>x,aI:()=>v,hG:()=>g,hZ:()=>i,hs:()=>p,jk:()=>c,m3:()=>y,t2:()=>b});var o=n(34304);function r(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,n,o,r){return t[0]=e,t[1]=n,t[2]=o,t[3]=r,t}function l(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}function a(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}function s(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}function u(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}function c(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function h(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function f(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function p(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}function d(t,e){const n=e[0]-t[0],o=e[1]-t[1],r=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(n*n+o*o+r*r+i*i)}function g(t,e){const n=e[0]-t[0],o=e[1]-t[1],r=e[2]-t[2],i=e[3]-t[3];return n*n+o*o+r*r+i*i}function m(t){const e=t[0],n=t[1],o=t[2],r=t[3];return Math.sqrt(e*e+n*n+o*o+r*r)}function y(t){const e=t[0],n=t[1],o=t[2],r=t[3];return e*e+n*n+o*o+r*r}function w(t,e){const n=e[0],o=e[1],r=e[2],i=e[3];let l=n*n+o*o+r*r+i*i;return l>0&&(l=1/Math.sqrt(l),t[0]=n*l,t[1]=o*l,t[2]=r*l,t[3]=i*l),t}function C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function A(t,e,n,o){const r=e[0],i=e[1],l=e[2],a=e[3];return t[0]=r+o*(n[0]-r),t[1]=i+o*(n[1]-i),t[2]=l+o*(n[2]-l),t[3]=a+o*(n[3]-a),t}function x(t,e,n){const o=e[0],r=e[1],i=e[2],l=e[3];return t[0]=n[0]*o+n[4]*r+n[8]*i+n[12]*l,t[1]=n[1]*o+n[5]*r+n[9]*i+n[13]*l,t[2]=n[2]*o+n[6]*r+n[10]*i+n[14]*l,t[3]=n[3]*o+n[7]*r+n[11]*i+n[15]*l,t}function b(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function v(t,e){const n=t[0],r=t[1],i=t[2],l=t[3],a=e[0],s=e[1],u=e[2],c=e[3],h=(0,o.FD)();return Math.abs(n-a)<=h*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=h*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-u)<=h*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(l-c)<=h*Math.max(1,Math.abs(l),Math.abs(c))}const M=a,T=s,k=u,I=d,S=g,E=m,P=y;Object.freeze(Object.defineProperty({__proto__:null,add:l,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:r,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:I,distance:d,div:k,divide:u,dot:C,equals:v,exactEquals:b,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:E,length:m,lerp:A,max:h,min:c,mul:T,multiply:s,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:w,random:function(t,e=1){const n=o.Ov;let r,i,l,a,s,u;do{r=2*n()-1,i=2*n()-1,s=r*r+i*i}while(s>=1);do{l=2*n()-1,a=2*n()-1,u=l*l+a*a}while(u>=1);const c=Math.sqrt((1-s)/u);return t[0]=e*r,t[1]=e*i,t[2]=e*l*c,t[3]=e*a*c,t},round:f,scale:p,scaleAndAdd:function(t,e,n,o){return t[0]=e[0]+n[0]*o,t[1]=e[1]+n[1]*o,t[2]=e[2]+n[2]*o,t[3]=e[3]+n[3]*o,t},set:i,sqrDist:S,sqrLen:P,squaredDistance:g,squaredLength:y,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:M,subtract:a,transformMat4:x,transformQuat:function(t,e,n){const o=e[0],r=e[1],i=e[2],l=n[0],a=n[1],s=n[2],u=n[3],c=u*o+a*i-s*r,h=u*r+s*o-l*i,f=u*i+l*r-a*o,p=-l*o-a*r-s*i;return t[0]=c*u+p*-l+h*-s-f*-a,t[1]=h*u+p*-a+f*-l-c*-s,t[2]=f*u+p*-s+c*-a-h*-l,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},9334(t,e,n){function o(t,e){let n=0,o="",r=0,i=0;const l=t.length;for(;n<l;)i=t[n++],r=i>>4,r<8?r=1:15===r?(r=4,i=(7&i)<<18|(63&t[n++])<<12|(63&t[n++])<<6|63&t[n++]):14===r?(r=3,i=(15&i)<<12|(63&t[n++])<<6|63&t[n++]):(r=2,i=(31&i)<<6|63&t[n++]),(0!==i||e)&&(o+=String.fromCharCode(i));return o}n.d(e,{w:()=>o})},53593(t,e,n){n.d(e,{D:()=>l,E:()=>p});var o=n(49186),r=n(17676),i=n(8003);async function l(t,e,n){if(!t||t.byteLength<10)throw new o.A("imagecanvasdecoder: decode","required a valid encoded data as input.");const{width:i,height:l,format:c}=e,{applyJpegMask:p}=e;if(p&&(!i||!l))throw new o.A("imagecanvasdecoder: decode","image width and height are needed to apply jpeg mask directly to canvas");let d=null;"jpg"===c&&p&&i&&l&&(d=await f(t,{width:i,height:l}));try{const o=new Blob([new Uint8Array(t)],{type:h(c)}),i=await createImageBitmap(o);(0,r.Te)(n);const{useTiledDecoding:l,tileIndex:f,tileSize:p}=e;if(l&&null==f)return s(i,d,p);if(null!=f&&null!=p)return u(i,f,p);try{return a(i,d)}catch(t){if((0,r.QP)(t),i.width>4096||i.height>4096)return s(i,d);throw t}}catch(t){throw(0,r.QP)(t),new o.A("imagecanvasdecoder: decode","cannot load image")}}function a(t,e){const{width:n,height:r}=t,i=new OffscreenCanvas(n,r),l=i.getContext("2d");if(!l)throw new o.A("imagecanvasdecoder: decode","cannot create canvas context");l.drawImage(t,0,0,n,r);const a=c(l.getImageData(0,0,n,r),n,r,e);return i.width=0,i.height=0,a}function s(t,e,n=[2048,2048]){const[r,i]=n,l=new OffscreenCanvas(r,i),a=l.getContext("2d",{willReadFrequently:!0});if(!a)throw new o.A("imagecanvasdecoder: decode","cannot create canvas context");const{width:s,height:u}=t,c=s*u,h=new Uint8Array(c),f=new Uint8Array(c),p=new Uint8Array(c),d=null==e;e||(e=new Uint8Array(c));for(let n=0;n<u;n+=i){const o=Math.min(i,u-n);for(let i=0;i<s;i+=r){const l=Math.min(r,s-i);a.clearRect(0,0,l,o),a.drawImage(t,i,n,l,o,0,0,l,o);const{data:u}=a.getImageData(0,0,l,o);for(let t=0;t<o;t++){let o=t*l*4,r=(n+t)*s+i;for(let t=0;t<l;t++,o+=4,r++)h[r]=u[o],f[r]=u[o+1],p[r]=u[o+2],d&&(e[r]=u[o+3])}}}const g={width:s,height:u,pixels:[h,f,p],mask:e,pixelType:"u8"};return l.width=0,l.height=0,console.log(`decodeFullImageTiled: ${s}x${u} using tile ${r}x${i}`,g),g}function u(t,e,n){const[r,i,l]=e,[a,s]=n,u=Math.ceil(t.width/2**r),h=Math.ceil(t.height/2**r),f=Math.ceil(h/s),p=Math.ceil(u/a);if(i>=f||l>=p)return null;const d=new OffscreenCanvas(u,h),g=d.getContext("2d");if(!g)throw new o.A("imagecanvasdecoder: decode","cannot create canvas context");g.drawImage(t,0,0,u,h);const m=l*a,y=i*s,w=Math.min(a,u-m),C=Math.min(s,h-y),A=c(g.getImageData(m,y,w,C),a,s);return d.width=0,d.height=0,A}function c(t,e,n,o){const r=e*n,i=new Uint8Array(r),l=new Uint8Array(r),a=new Uint8Array(r),s=null==o;o||(o=new Uint8Array(r));const u={width:e,height:n,pixels:[i,l,a],mask:o,pixelType:"u8"},{width:c,height:h,data:f}=t;if(c===e&&h===n){for(let t=0,e=0;t<r;t++,e+=4)i[t]=f[e],l[t]=f[e+1],a[t]=f[e+2],s&&(o[t]=f[e+3]);return u}for(let t=0;t<h;t++){const n=t*c*4;for(let r=0;r<c;r++){const u=t*e+r;i[u]=f[n+4*r],l[u]=f[n+4*r+1],a[u]=f[n+4*r+2],s&&(o[u]=f[n+4*r+3])}}return u}function h(t){return`image/${"jpg"===t?"jpeg":t}`}async function f(t,e){try{const n=new Uint8Array(t);let o=Math.ceil(n.length/2);const r=n.length-2;for(;o<r&&(255!==n[o]||217!==n[o+1]);o++);o+=2;let i=null;return o<n.length-1&&(i=await p(n.subarray(o,-4),e.width*e.height)),i}catch{return null}}async function p(t,e){try{const n=await(0,i.U)(t),o=new Uint8Array(e);for(let t=0,e=0;t<n.length;t++)for(let r=7;r>=0;r--)o[e++]=n[t]>>r&1;return o}catch(t){return null}}},85951(t,e,n){n.d(e,{D:()=>l,R:()=>i});var o=n(53593),r=n(61294);function i(t){const e=new Uint8Array(t),n=e.length;if(255!==e[0]||216!==e[1])return null;let o=2;for(;o<n&&255===e[o++];){for(;255===e[o];)o++;if(o>=n)break;const t=e[o++];if(217===t||218===t)break;if(t>=208&&t<=215||1===t)continue;const r=e[o]<<8|e[o+1];if(t>=192&&t<=207&&196!==t&&200!==t&&204!==t&&r>=8){const t=o+2,n=e[t+1]<<8|e[t+2];return{width:e[t+3]<<8|e[t+4],height:n,planes:e[t+5]}}o+=r}return null}async function l(t,e={}){const n=new Uint8Array(t),i=new r.J;i.parse(n);const{width:l,height:a,numComponents:s,eof:u}=i,c=e.decodeJpegAsRgb??1!==s,h=i.getData(l,a,c),f=l*a;let p=null;const{applyJpegMask:d=!1}=e;let g;d&&u<n.length-1&&(p=await(0,o.E)(n.subarray(u,-4),f));const m=c?3:s;if(1===m&&h.length===l*a){const t=new Uint8Array(h.buffer);g=[t,t,t]}else{g=[];for(let t=0;t<m;t++)g.push(new Uint8Array(f));for(let t=0,e=0;t<f;t++)for(let n=0;n<m;n++)g[n][t]=h[e++]}return{width:l,height:a,pixels:g,mask:p}}},96381(t,e,n){n.d(e,{D:()=>X,g:()=>Y});var o=n(49186),r=n(97768),i=n(17676),l=n(53593),a=n(85951),s=n(2741);const u=[{pixelType:"S8",size:1,ctor:Int8Array,range:[-128,127]},{pixelType:"U8",size:1,ctor:Uint8Array,range:[0,255]},{pixelType:"S16",size:2,ctor:Int16Array,range:[-32768,32767]},{pixelType:"U16",size:2,ctor:Uint16Array,range:[0,65536]},{pixelType:"S32",size:4,ctor:Int32Array,range:[-2147483648,2147483647]},{pixelType:"U32",size:4,ctor:Uint32Array,range:[0,4294967296]},{pixelType:"F32",size:4,ctor:Float32Array,range:[-34028234663852886e22,34028234663852886e22]},{pixelType:"F64",size:8,ctor:Float64Array,range:[-17976931348623157e292,17976931348623157e292]}];let c=null;function h(){return c||(c=n.e(382).then(()=>n(30382)).then(({default:t})=>t({locateFile:t=>(0,s.s)(`esri/layers/raster/formats/${t}`)})).then(t=>{!function(t){const{_malloc:e,_free:n,memory:o,_lerc_getBlobInfo:r,_lerc_getDataRanges:i,_lerc_decode_4D:l}=t;let a;const s=t=>{const n=t.map(t=>function(t){return 16+(t>>3<<3)}(t)),r=n.reduce((t,e)=>t+e),i=e(r);a=new Uint8Array(o.buffer);let l=n[0];n[0]=i;for(let t=1;t<n.length;t++){const e=n[t];n[t]=n[t-1]+l,l=e}return n};f.getBlobInfo=t=>{const e=new Uint8Array(48),l=new Uint8Array(24),[u,c,h]=s([t.length,e.length,l.length]);a.set(t,u),a.set(e,c),a.set(l,h);let f=r(u,t.length,c,h,12,3);if(f)throw n(u),new Error(`lerc-getBlobInfo: error code is ${f}`);a=new Uint8Array(o.buffer),p(a,c,e),p(a,h,l);const d=new Uint32Array(e.buffer),g=new Float64Array(l.buffer),[m,y,,w,C,A,x,b,v,M,T]=d,k=0===x,I={version:m,depthCount:M,width:w,height:C,validPixelCount:x,bandCount:A,blobSize:b,maskCount:v,dataType:y,minValue:g[0],maxValue:g[1],maxZerror:g[2],statistics:[],bandCountWithNoData:T};if(T&&M>1)return n(u),I;if(1===M&&1===A){n(u);const t=k?0:g[0],e=k?0:g[1];return I.statistics.push({minValue:t,maxValue:e}),I}const S=M*A*8,E=new Uint8Array(S),P=new Uint8Array(S);let R=u,L=0,D=0,U=!1;if(a.byteLength<u+2*S?(n(u),U=!0,[R,L,D]=s([t.length,S,S]),a.set(t,R)):[L,D]=s([S,S]),a.set(E,L),a.set(P,D),f=i(R,t.length,M,A,L,D),f)throw n(R),U||n(L),new Error(`lerc-getDataRanges: error code is ${f}`);a=new Uint8Array(o.buffer),p(a,L,E),p(a,D,P);const G=new Float64Array(E.buffer),N=new Float64Array(P.buffer),O=I.statistics;for(let t=0;t<A;t++)if(M>1){const e=G.slice(t*M,(t+1)*M),n=N.slice(t*M,(t+1)*M),o=k?0:Math.min.apply(null,e),r=k?0:Math.max.apply(null,n);O.push({minValue:o,maxValue:r,depthStats:{minValues:e,maxValues:n}})}else O.push({minValue:k?0:G[t],maxValue:k?0:N[t]});return n(R),U||n(L),I},f.decode=(t,e)=>{const{maskCount:r,depthCount:i,bandCount:c,width:h,height:f,dataType:d,bandCountWithNoData:g,validPixelCount:m}=e,y=u[d],w=h*f,C=new Uint8Array(w*c),A=w*i*c*y.size,x=new Uint8Array(A),b=new Uint8Array(c),v=new Uint8Array(8*c);if(0===m)return{data:x,maskData:C,noDataValues:null};const[M,T,k,I,S]=s([t.length,C.length,x.length,b.length,v.length]);a.set(t,M),a.set(C,T),a.set(x,k),a.set(b,I),a.set(v,S);const E=l(M,t.length,r,T,i,h,f,c,d,k,I,S);if(E)throw n(M),new Error(`lerc-decode: error code is ${E}`);a=new Uint8Array(o.buffer),p(a,k,x),p(a,T,C);let P=null;if(g){p(a,I,b),p(a,S,v),P=[];const t=new Float64Array(v.buffer);for(let e=0;e<b.length;e++)P.push(b[e]?t[e]:null)}return n(M),{data:x,maskData:C,noDataValues:P}}}(t)}),c)}const f={getBlobInfo:null,decode:null};function p(t,e,n){n.set(t.slice(e,e+n.length))}function d(t,e,n,o,r){if(n<2)return t;const i=new o(e*n);for(let o=0,r=0;o<e;o++)for(let l=0,a=o;l<n;l++,a+=e)i[a]=t[r++];return i}function g(t,e={}){const n=e.inputOffset??0,o=t instanceof Uint8Array?t.subarray(n):new Uint8Array(t,n),r=f.getBlobInfo(o),{data:i,maskData:l,noDataValues:a}=f.decode(o,r),{width:s,height:c,bandCount:h,depthCount:p,dataType:g,maskCount:m,statistics:y}=r,w=u[g],C=new w.ctor(i.buffer),A=[],x=[],b=s*c,v=b*p,M=u.find(t=>t.pixelType===e.outputPixelType)??w,T=M.pixelType!==w.pixelType;for(let t=0;t<h;t++){const n=t*v,o=n+v,r=C.subarray(n,o),i=T?new M.ctor(r):r;if(e.returnInterleaved)A.push(i);else{const t=d(i,b,p,M.ctor);A.push(t)}x.push(l.subarray(n,o))}const k=0===m?null:1===m?x[0]:new Uint8Array(b);if(m>1){k.set(x[0]);for(let t=1;t<x.length;t++){const e=x[t];for(let t=0;t<b;t++)k[t]=k[t]&e[t]}}const{noDataValue:I}=e,S=null!=I&&M.range[0]<=I&&M.range[1]>=I,{validPixelCount:E}=r;if(m>0&&S)for(let t=0;t<h;t++){const e=A[t];if(0===E)e.fill(I);else{const n=x[t]||k;for(let t=0;t<b;t++)0===n[t]&&(e[t]=I)}}const P=m===h&&h>1?x:null;return{width:s,height:c,bandCount:h,pixelType:M.pixelType,depthCount:p,statistics:y,pixels:A,mask:k,validPixelCount:E,bandMasks:P,noDataValues:a}}function m(){const t=[];for(let e=0;e<=257;e++)t[e]=[e];return t}function y(t,e){for(let n=0;n<e.length;n++)t.push(e[n])}const w=new Set;function C(t,e,n,o=!0){const r=function(t,e,n,o=!0){if(e%4!=0||n%4!=0){const r=new ArrayBuffer(4*Math.ceil(n/4)),i=new Uint8Array(r),l=new Uint8Array(t,e,n);if(o)for(let t=0;t<i.length;t+=4)i[t]=l[t+3],i[t+1]=l[t+2],i[t+2]=l[t+1],i[t+3]=l[t];else i.set(l);return new Uint32Array(i.buffer)}if(o){const o=new Uint8Array(t,e,n),r=new Uint8Array(o.length);for(let t=0;t<r.length;t+=4)r[t]=o[t+3],r[t+1]=o[t+2],r[t+2]=o[t+1],r[t+3]=o[t];return new Uint32Array(r.buffer)}return new Uint32Array(t,e,n/4)}(t,e,n,o);let i=9,l=m(),a=32,s=l.length,u=[],c=1,h=r[0],f=0;const p=r.length,d=8*(4*p-n),g=[];for(;null!=h;){if(a>=i)a-=i,f=h>>>32-i,h<<=i;else{f=h>>>32-a,h=r[c++];const t=i-a;a=32-t,f=(f<<t)+(h>>>a),h<<=t}if(257===f)break;if(256===f){i=9,l=m(),s=l.length,u=[];continue}const t=l[f];if(null==t){if(f>l.length)throw new Error("data integrity issue: code does not exist on code page");u.push(u[0]),l[s++]=u.slice(),y(g,u)}else y(g,t),u.push(t[0]),u.length>1&&(l[s++]=u.slice()),u=t.slice();if(w.has(s)&&i++,0===a&&(h=r[c++],a=32),c>p||c===p&&a<=d)break}return new Uint8Array(g)}w.add(511),w.add(1023),w.add(2047),w.add(4095),w.add(8191);var A=n(94778);const x=new Set(["uint8","int8","uint16","int16","uint32","int32","int64","uint64"]),b=new Map([["uint8",{byteCount:1,pixelType:"u8",ctor:Uint8Array}],["int8",{byteCount:1,pixelType:"s8",ctor:Int8Array}],["uint16",{byteCount:2,pixelType:"u16",ctor:Uint16Array}],["int16",{byteCount:2,pixelType:"s16",ctor:Int16Array}],["uint32",{byteCount:4,pixelType:"u32",ctor:Uint32Array}],["int32",{byteCount:4,pixelType:"s32",ctor:Int32Array}],["uint64",{byteCount:8,pixelType:"f64",ctor:BigUint64Array}],["int64",{byteCount:8,pixelType:"f64",ctor:BigInt64Array}]]);let v;const M={getBlobInfo:null,decode:null};function T(t){if(!b.has(t))throw new Error("Unsupported data type: "+t);return b.get(t)}const k=(t,e)=>{const n=e.width*e.height,o=e.pixelType;return Math.floor(t.byteLength/(n*I(o)))},I=t=>{let e=1;switch(t){case Uint8Array:case Int8Array:e=1;break;case Uint16Array:case Int16Array:e=2;break;case Uint32Array:case Int32Array:case Float32Array:e=4;break;case Float64Array:e=8}return e};n(44208);var S=n(61294),E=n(44094),P=n(10713),R=n(8003);function L(t,e){let n="unknown";return 3===t?n=64===e?"f64":"f32":1===t?1===e?n="u1":2===e?n="u2":4===e?n="u4":e<=8?n="u8":e<=16?n="u16":e<=32&&(n="u32"):2===t&&(e<=8?n="s8":e<=16?n="s16":e<=32&&(n="s32")),n}function D(t){let e=null;switch(t?t.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":e=Uint8Array;break;case"u16":e=Uint16Array;break;case"u32":e=Uint32Array;break;case"s8":e=Int8Array;break;case"s16":e=Int16Array;break;case"s32":e=Int32Array;break;case"f64":e=Float64Array;break;default:e=Float32Array}return e}function U(t,e){if(e%8==0)return t;const n=e>16?32:e>8?16:8;n>8&&(t=N(t,32===n?4:2));const o=32===n?Uint32Array:16===n?Uint16Array:Uint8Array,r=new o(t),i=Math.floor(8*t.byteLength/e+1e-6),l=new o(i),a=(1<<e)-1;let s=0,u=0,c=0;for(let t=0;t<i;t++)if(0===u&&(c=r[s++],u=n),u>=e)l[t]=c>>>u-e&a,u-=e;else{const o=e-u;let i=(c&a)<<o&a;c=r[s++],u=n-o,i+=c>>>u,l[t]=i}return l.buffer}function G(t,e,n){const o=new S.J;o.parse(t),o.colorTransform=6===n?-1:0;const r=o.getData(o.width,o.height,1!==e&&4!==e);return new Uint8Array(r.buffer)}function N(t,e){const n=new Uint8Array(t),o=new Uint8Array(n.length);if(2===e)for(let t=0;t<n.length;t+=2)o[t]=n[t+1],o[t+1]=n[t];else if(4===e)for(let t=0;t<n.length;t+=4)o[t]=n[t+3],o[t+1]=n[t+2],o[t+2]=n[t+1],o[t+3]=n[t];else for(let t=0;t<n.length;t+=8)o[t]=n[t+7],o[t+1]=n[t+6],o[t+2]=n[t+5],o[t+3]=n[t+4],o[t+4]=n[t+3],o[t+5]=n[t+2],o[t+6]=n[t+1],o[t+7]=n[t];return o.buffer}async function O(t,e,n,r,i){const l=P.Z===e,a=(0,E.LZ)(n,"BITSPERSAMPLE"),s=(0,E.LZ)(n,"SAMPLESPERPIXEL")??1,u=(0,E.LZ)(n,"PHOTOMETRICINTERPRETATION"),c=(0,E.LZ)(n,"SAMPLEFORMAT")??1,f=L(c,a),p=(0,E.ni)(n);if(34887===p)return await async function(t,e){return await h(),g(t,{inputOffset:e}).pixels[0]}(t,r);const d=D(f);let m,y,w;switch(p){case 1:m=t.slice(r,r+i),y=new Uint8Array(m);break;case 8:case 32946:y=await(0,R.U)(new Uint8Array(t,r,i)),m=y.buffer;break;case 6:y=G(new Uint8Array(t,r,i),s,u),m=y.buffer;break;case 7:{const e=n.get("JPEGTABLES").values,o=e.length-2,l=new Uint8Array(o+i-2);for(let t=0;t<o;t++)l[t]=e[t];const a=new Uint8Array(t,r+2,i-2);for(let t=0;t<a.length;t++)l[o+t]=a[t];y=G(l,s,u),m=y.buffer}break;case 5:y=C(t,r,i,e),m=y.buffer;break;default:throw new o.A("tiff-reader:decode-data","unsupported compression "+p)}if(m=U(m,a),l||a<=8)w=new d(m);else{const t=a>32?8:a>16?4:2;w=new d(N(y.buffer,t))}const A=(0,E.LZ)(n,"PREDICTOR")??1,x=(0,E.LZ)(n,"TILEWIDTH"),b=(0,E.LZ)(n,"TILELENGTH");if(A>1&&(5===p||8===p||32946===p)&&x&&b){const t=(0,E.XO)(n),e=new d(w.length);e.set(w),w=function(t,e,n,o,r){const i=o?4:1,l=n*i*r;o&&(t=new Uint8Array(t.buffer));for(let n=0;n<e;n++){const e=n*l;for(let n=r;n<l;n++)t[e+n]+=t[e+n-r]}if(!o)return t;const a=new Uint8Array(t.length),s=n*r;for(let n=0;n<e;n++){const e=n*l;for(let n=0;n<s;n++)for(let o=0;o<i;o++)a[e+n*i+o]=t[e+n+(i-o-1)*s]}return new Float32Array(a.buffer)}(e,b,x,3===c&&3===A,t?1:s)}return w}var B=n(14140),F=n(4151);async function V(t,e){if(!P.Z)throw new o.A("rasterCoded:decode","lerc decoder is not supported on big endian platform");await h();const{width:n,height:r,pixelType:i,statistics:l,depthCount:a,noDataValues:s,bandMasks:u,pixels:c,mask:f,validPixelCount:p}=g(t,{inputOffset:e.offset,returnInterleaved:e.returnInterleaved});return new B.A({width:n,height:r,pixelType:i.toLowerCase(),pixels:c,mask:f,validPixelCount:p,statistics:l.map(({minValue:t,maxValue:e})=>new F.A(t,e)),bandMasks:u,depthCount:a,noDataValues:s})}async function j(t,e){await(v??=n.e(6154).then(()=>n(56154)).then(({default:t})=>t({locateFile:t=>(0,s.s)(`esri/layers/raster/formats/${t}`)})).then(t=>{!function(t){const{_GetInfo:e,_decode:n,_malloc:o,_free:r,writeArrayToMemory:i,UTF8ToString:l}=t;M.getBlobInfo=t=>{t.length>1e3&&(t=t.slice(0,1e3));const n=o(t.length);i(t,n);const a=e(n,t.length);if(r(n),!a)return null;const s=l(a);r(a);try{const t=JSON.parse(s);return{width:t.xsize,height:t.ysize,bandCount:t.nbands,dataType:t.dtype,mode:t.mode,bandMap:t.bandmap}}catch{return null}},M.decode=(e,o)=>{const{dataType:r,width:i,height:l,bandCount:a}=o;if(!x.has(r))throw new Error("Unsupported data type: "+r);const{_malloc:s,_free:u}=t,c=s(e.length);t.writeArrayToMemory(e,c);const{ctor:h,byteCount:f}=T(r),p=i*l*a*f,d=s(p),g=s(1024);if(0===n(c,e.length,d,g))throw u(c),u(d),u(g),new Error("Decoding failed: "+t.UTF8ToString(g));const m=new h(t.HEAPU8.slice(d,d+p).buffer);if(u(c),u(d),u(g),m instanceof BigInt64Array||m instanceof BigUint64Array){const t=new Float64Array(m.length);for(let e=0;e<m.length;e++)t[e]=Number(m[e]);return t}return m}}(t)}),v);const r=function(t){const e=new Uint8Array(t),n=M.getBlobInfo(e);if(!n)return null;const o=M.decode(e,n);if(!o)return null;const{width:r,height:i,bandCount:l,dataType:a}=n,{ctor:s,pixelType:u}=T(a),c=s===BigInt64Array||s===BigUint64Array?Float64Array:s,h=Array.from({length:l},()=>new c(r*i));for(let t=0,e=0;t<r*i;t++)for(let n=0;n<l;n++)h[n][t]=o[e++];return{width:r,height:i,pixelType:u,pixels:h}}(t);if(!r)throw new o.A("rasterCodec:decode","failed to decode the input data.");const{width:i,height:l,pixels:a,pixelType:u}=r;return new B.A({width:i,height:l,pixelType:u,pixels:a})}async function Z(t,e){const n=await async function(t,e={}){const n=e.pyramidLevel||0,r=e.headerInfo||(0,E.RW)(t),{ifds:i,noData:l}=r;if(0===i.length)throw new o.A("tiff-reader:decode","no valid image file directory");const a=(0,E._J)(r);if(a)throw new o.A("tiff-reader:decode",a);const s=-1===n?i[i.length-1]:i[n],u=l??e.noDataValue,c=r.tileWidth?await async function(t,e,n){const o=(0,E.wc)(n,"TILEOFFSETS"),r=(0,E.wc)(n,"TILEBYTECOUNTS");if(null==o||null==r)return null;const{width:i,height:l,pixelType:a,tileWidth:s,tileHeight:u}=(0,E.uc)([n]),c=(0,E.XO)(n,e),h=(0,E.LZ)(n,"SAMPLESPERPIXEL")||e.planes,f=i*l,p=(0,E.LZ)(n,"BITSPERSAMPLE"),d=34887===(0,E.ni)(n),g=D(a),m=[];for(let t=0;t<h;t++)m.push(new g(f));const y=Math.ceil(i/s),w=new Uint8Array(f).fill(255);let C=null,A=!1;if(p%8==0)if(d&&c&&h>1){const a=Math.round(o.length/h);for(let c=0;c<a;c++){const a=Math.floor(c/y)*u,f=c%y*s,p=a*i+f;for(let d=0;d<h;d++){const g=c*h+d;0===r[g]?(C=null,A=!0):C=await O(t,e.littleEndian,n,o[g],r[g]);const y=Math.min(s,i-f),x=Math.min(u,l-a),b=m[d];for(let t=0;t<x;t++){let e=p+t*i,n=t*s;for(let t=0;t<y;t++,e++,n++)C?b[e]=C[n]:w[e]=0}}}}else for(let a=0;a<o.length;a++){const f=Math.floor(a/y)*u,p=a%y*s,g=f*i+p;0===r[a]?(C=null,A=!0):C=await O(t,e.littleEndian,n,o[a],r[a]);const x=Math.min(s,i-p),b=Math.min(u,l-f);for(let t=0;t<h;t++){const e=m[t];if(c||d)for(let n=0;n<b;n++){let o=g+n*i,r=s*u*t+n*s;for(let t=0;t<x;t++,o++,r++)C?e[o]=C[r]:w[o]=0}else for(let n=0;n<b;n++){let o=g+n*i,r=n*s*h+t;for(let t=0;t<x;t++,o++,r+=h)C?e[o]=C[r]:w[o]=0}}}return{width:i,height:l,pixelType:a,pixels:m,mask:A?w:void 0}}(t,r,s):await async function(t,e,n){const o=P.Z===e.littleEndian,r=(0,E.wc)(n,"STRIPOFFSETS"),i=(0,E.wc)(n,"STRIPBYTECOUNTS");if(null==r||null==i)return null;const{width:l,height:a,pixelType:s}=(0,E.uc)([n]),u=(0,E.LZ)(n,"SAMPLESPERPIXEL")||e.planes,c=(0,E.LZ)(n,"PHOTOMETRICINTERPRETATION"),h=l*a,f=(0,E.LZ)(n,"BITSPERSAMPLE"),p=D(s),d=new p(h*u),g=(0,E.LZ)(n,"ROWSPERSTRIP"),m=(0,E.ni)(n);let y,w,A,x;if(f%8==0)for(let n=0;n<r.length;n++){const a=n*(g*l)*u;if("u8"===s||"s8"===s||o)8===m||32946===m?(A=new Uint8Array(t,r[n],i[n]),A=await(0,R.U)(A),w=A.buffer):6===m?(A=new Uint8Array(t,r[n],i[n]),A=G(A,u,c),w=A.buffer):5===m?(A=C(t,r[n],i[n],e.littleEndian),w=A.buffer):w=t.slice(r[n],r[n]+i[n]),w=U(w,f),y=new p(w);else{switch(6===m||8===m||32946===m?(A=new Uint8Array(t,r[n],i[n]),x=await(0,R.U)(A),w=x.buffer):(w=new ArrayBuffer(i[n]),A=new Uint8Array(t,r[n],i[n]),x=new Uint8Array(w)),s){case"u16":case"s16":for(let t=0;t<A.length;t+=2)x[t]=A[t+1],x[t+1]=A[t];break;case"u32":case"s32":case"f32":for(let t=0;t<A.length;t+=4)x[t]=A[t+3],x[t+1]=A[t+2],x[t+2]=A[t+1],x[t+3]=A[t]}w=U(w,f),y=new p(w)}d.set(y,a)}const b=[];if(1===u)b.push(d);else for(let t=0;t<u;t++){const e=new p(h);for(let n=0;n<h;n++)e[n]=d[n*u+t];b.push(e)}return{width:l,height:a,pixelType:s,pixels:b}}(t,r,s);return c?(null!=u&&(0,A.Sp)(c,u,{matchAllNoData:null==l&&e?.matchAllNoData}),c):c}(t,{...e,noDataValue:e.tiffNoDataValue,matchAllNoData:e.matchAllNoData});return(0,r.Lw)(n),new B.A({width:n.width,height:n.height,pixels:n.pixels,pixelType:n.pixelType.toLowerCase(),mask:n.mask,bandMasks:n.bandMasks})}function W(t,e){const n=e.pixelType||"u8",o=B.A.getPixelArrayConstructor(n),r="u8"===n?t:new o(t.buffer),i=[],l=e.planes||1;if(1===l)i.push(r);else for(let n=0;n<l;n++){const a=(e.width||1)*(e.height||t.length),s=new o(a);for(let t=0;t<a;t++)s[t]=r[t*l+n];i.push(s)}return new B.A({width:e.width||1,height:e.height||t.length,pixels:i,pixelType:n})}async function _(t,e){return W(await(0,R.U)(new Uint8Array(t)),e)}function z(t,e){return W(C(t,e.offset,e.eof,!e.isInputBigEndian),e)}function H(t,e){const n=e.format,{pixelTypeCtor:o}=function(t){let e=null,n=null;switch(t?t.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":n=255,e=Uint8Array;break;case"u16":n=n||65535,e=Uint16Array;break;case"u32":n=n||2**32-1,e=Uint32Array;break;case"s8":n=n||-128,e=Int8Array;break;case"s16":n=n||-32768,e=Int16Array;break;case"s32":n=n||0-2**31,e=Int32Array;break;default:e=Float32Array}return{pixelTypeCtor:e,noDataValue:n}}(e.pixelType),r=function(t,e){const n=e.pixelType,o=[],r=e.width*e.height,i=k(t,e),{bandIds:l,format:a}=e,s=l?.length||k(t,e),u=t.byteLength-t.byteLength%(r*I(n)),c=new n(t,0,r*i);if("bip"===a)for(let t=0;t<s;t++){const e=new n(r),a=l?l[t]:t;for(let t=0;t<r;t++)e[t]=c[t*i+a];o.push(e)}else if("bsq"===a)for(let t=0;t<s;t++){const e=l?l[t]:t;o.push(c.subarray(e*r,(e+1)*r))}let h=null;return u<t.byteLength-1&&(h=((t,e)=>{if(8*t.byteLength<e)return null;const n=new Uint8Array(t,0,Math.ceil(e/8)),o=new Uint8Array(e);let r=0,i=0;for(let t=0;t<n.length-1;t++){i=n[t];for(let t=7;t>=0;t--)o[r++]=i>>t&1}let l=7;for(;r<e-1;)i=n[n.length-1],o[r++]=i>>l&1,l--;return o})(t.slice(u),r)),{pixels:o,mask:h}}(t,{width:e.width,height:e.height,pixelType:o,format:n});return new B.A({width:e.width,height:e.height,pixels:r.pixels,pixelType:e.pixelType,mask:r.mask})}async function K(t,e,n){const o=await(0,l.D)(t,e,n);return new B.A(o)}async function q(t,e,n){const r=e.format||Y(t),l={...e,format:r},{canvasUsage:s}=e;if("no-canvas"!==s||"png"===r)try{return await K(t,l,n)}catch(t){if((0,i.zf)(t))throw t;if("canvas-only"===s)throw new o.A("rasterCodec:decode",`failed to decode the input data with canvas for format ${r}`)}return await async function(t,e){const n=await(0,a.D)(t,e);return new B.A({width:n.width,height:n.height,pixels:n.pixels,pixelType:"u8",mask:n.mask})}(t,l)}function Y(t){if(!t)return;const e=new Uint8Array(t,0,10);let n;return 255===e[0]&&216===e[1]?n="jpg":137===e[0]&&80===e[1]&&78===e[2]&&71===e[3]?n="png":67===e[0]&&110===e[1]&&116===e[2]&&90===e[3]&&73===e[4]&&109===e[5]&&97===e[6]&&103===e[7]&&101===e[8]&&32===e[9]||76===e[0]&&101===e[1]&&114===e[2]&&99===e[3]&&50===e[4]&&32===e[5]?n="lerc":73===e[0]&&73===e[1]&&42===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&42===e[3]||73===e[0]&&73===e[1]&&43===e[2]&&0===e[3]||77===e[0]&&77===e[1]&&0===e[2]&&43===e[3]?n="tiff":71===e[0]&&73===e[1]&&70===e[2]?n="gif":66===e[0]&&77===e[1]?n="bmp":81===e[0]&&66===e[1]&&51===e[2]&&(n="qb3"),n}async function X(t,e={},n){if(null==t)throw new o.A("rasterCodec:decode","missing encodeddata parameter.");let r=e.format?.toLowerCase();if(!("bsq"!==r&&"bip"!==r||null!=e.width&&null!=e.height))throw new o.A("rasterCodec:decode","requires width and height in options parameter.");if("tiff"===r&&e.customOptions)return async function(t,e){const n=await async function(t,e){const{headerInfo:n,ifd:o,offsets:r,sizes:i}=e,l=[];for(let e=0;e<r.length;e++){i[e];const a=await O(t,n.littleEndian,o,r[e],i[e]||t.byteLength);l.push(a)}const a=(0,E.XO)(o,n),s=(0,E.LZ)(o,"BITSPERSAMPLE"),u=L((0,E.LZ)(o,"SAMPLEFORMAT")??1,s),c=(0,E.LZ)(o,"SAMPLESPERPIXEL")||n.planes,h=D(u),f=(0,E.LZ)(o,"TILEWIDTH"),p=(0,E.LZ)(o,"TILELENGTH"),d=34887===(0,E.ni)(o),g=f*p;let m;const y=[];let w=l[0];for(let t=0;t<c;t++){if(m=new h(g),l.length===c)w=l[t],w.length===g&&(m=w);else if(w.length)if(a||d)m=w.length===g?w:w.slice(g*t,g*(t+1));else for(let e=0;e<g;e++)m[e]=w[e*c+t];y.push(m)}const C=n.noData?n.noData[0]:e.noDataValue,x=n.metadata?n.metadata.statistics:null,b=x?x.map(t=>t.min):null,v=x?x.map(t=>t.max):null,M={pixelType:u,width:f,height:p,pixels:y,noDataValue:C};return null!=C?(0,A.Sp)(M,C,{matchAllNoData:e?.matchAllNoData}):b&&v&&e.applyMinMaxConstraint&&(M.mask=function(t,e,n){if(!(t&&t.length>0&&e&&n))return null;let o,r,i;const l=t[0].length,a=t.length,s=new Uint8Array(l);for(let u=0;u<a;u++)if(o=t[u],r=e[u],i=n[u],0===u)for(let t=0;t<l;t++)s[t]=o[t]<r||o[t]>i?0:1;else for(let t=0;t<l;t++)s[t]&&(s[t]=o[t]<r||o[t]>i?0:1);return s}(y,b,v)),M}(t,e.customOptions),o=new B.A({width:n.width,height:n.height,pixels:n.pixels,pixelType:n.pixelType.toLowerCase(),mask:n.mask});return e.skipStatistics||o.updateStatistics(),o}(t,e);if(!r||"bsq"!==r&&"bip"!==r&&"deflate"!==r&&"lzw"!==r){if(r=Y(t),!r)throw String.fromCharCode.apply(null,[...new Uint8Array(t,0,10)]).toLowerCase().includes("error")?new o.A("rasterCodec:decode","input data contains error"):new o.A("rasterCodec:decode","unsupported raster format");e={...e,format:r}}const i=function(t){let e=null;switch(t){case"lerc":e=V;break;case"jpg":case"png":e=q;break;case"bmp":case"gif":e=K;break;case"bsq":case"bip":e=H;break;case"tiff":e=Z;break;case"deflate":e=_;break;case"lzw":e=z;break;case"qb3":e=j;break;default:e=()=>{throw new o.A("rasterCodec:decode",`unsupported raster format ${t}`)}}return e}(r);let l;e.isPoint&&(null!=(e={...e}).width&&e.width++,null!=e.height&&e.height++);const{offsets:a}=e;if(a&&a.length>1){const o=a.map((o,r)=>i(t.slice(o,a[r+1]),e,n)),r=await Promise.all(o);l=r[0],l.pixels=r.map(t=>t.pixels[0]);const s=r.map(t=>t.mask);s.some(t=>null!=t)&&(s.forEach((t,e)=>{s[e]??=new Uint8Array(l.width*l.height).fill(255)}),l.bandMasks=s,l.mask=B.A.combineBandMasks(s))}else l=await i(t,{...e,offset:a?.[0]??e.offset},n);return"jpg"!==r&&null!=e.noDataValue&&1===l.depthCount&&(0,A.Sp)(l,e.noDataValue,{customFloatTolerance:e.tolerance}),e.isPoint&&function(t,e="bilinear"){if(!t)return;const{pixels:n,width:o,height:r,mask:i}=t;if(!n||0===n.length)return;const l=o-1,a=r-1,s=[];let u=null;const c=B.A.getPixelArrayConstructor(t.pixelType);if("nearest"===e){for(const t of n){const e=new c(l*a);for(let n=0;n<a;n++){const r=n*o;for(let o=0;o<l;o++)e[n*l+o]=t[r+o]}s.push(e)}if(null!=i){u=new Uint8Array(l*a);for(let t=0;t<a;t++){const e=t*o;for(let n=0;n<l;n++)u[t*l+n]=i[e+n]}}}else{for(const t of n){const e=new c(l*a);for(let n=0;n<a;n++){const r=n*o;for(let i=0;i<l;i++)e[n*l+i]=(t[r+i]+t[r+i+1]+t[r+o+i]+t[r+o+i+1])/4}s.push(e)}if(i){u=new Uint8Array(l*a);for(let t=0;t<a;t++){const e=t*o;for(let n=0;n<l;n++)u[t*l+n]=Math.min.apply(null,[i[e+n],i[e+n+1],i[e+o+n],i[e+o+n+1]])}}}t.width=l,t.height=a,t.mask=u,t.pixels=s}(l),l.statistics?.length||e.skipStatistics||l.updateStatistics(),l}},8003(t,e,n){async function o(t,e){e??=function(t){return(e=t).length>=2&&31===e[0]&&139===e[1]?"gzip":function(t){if(t.length<2)return!1;const[e,n]=t.subarray(0,2);return!(8!=(15&e)||e>>4>7)&&(65535&(e<<8|n))%31==0}(t)?"deflate":null;var e}(t)??"deflate-raw";const n=new Response(t).body.pipeThrough(new DecompressionStream(e)),o=await new Response(n).arrayBuffer();return new Uint8Array(o)}n.d(e,{U:()=>o})},94778(t,e,n){n.d(e,{$p:()=>s,Sp:()=>u,X1:()=>i,hP:()=>r,yM:()=>a,zw:()=>l});const o={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],f32:[-34028234663852886e22,34028234663852886e22],f64:[-Number.MAX_VALUE,Number.MAX_VALUE],unknown:void 0,c64:void 0,c128:void 0};function r(t){return o[t]??[-34028234663852886e22,34028234663852886e22]}function i(t,e){return null==t||null==e?"s32":t<0?t>=-128&&e<128?"s8":t>=-32768&&e<32768?"s16":"s32":e<256?"u8":e<65536?"u16":"u32"}function l(t){return(t?.startsWith("s")||t?.startsWith("u"))??!1}function a(t,e,n,o){let[i,a]=r(n);const s=l(n);return s&&(i-=1e-5,a+=1e-5),s?n.startsWith("u")?function(t,e,n,o){const[r,i]=o;for(let o=0;o<e.length;o++)if(e[o]){const l=t[o];l<r||l>i?e[o]=0:n[o]=l+.5|0}}(t,e,o,[i,a]):function(t,e,n,o){const[r,i]=o;for(let o=0;o<e.length;o++)if(e[o]){const l=t[o];l<r||l>i?e[o]=0:n[o]=l+(l>0?.5:-.5)|0}}(t,e,o,[i,a]):function(t,e,n,o){const[r,i]=o;for(let o=0;o<e.length;o++)if(e[o]){const l=t[o];l<r||l>i?e[o]=0:n[o]=l}}(t,e,o,[i,a])}function s(t,e){for(let n=0;n<e.length;n++)e[n]&&isNaN(t[n])&&(e[n]=0,t[n]=0)}function u(t,e,n){if(t.depthCount&&t.depthCount>1)return;const{pixels:o,statistics:i,pixelType:l}=t,a=o[0].length,s=t.bandMasks??[],u=t.mask??new Uint8Array(a).fill(255),c="f32"===l||"f64"===l,h=r(l);let f=!1;for(let t=0;t<o.length;t++){const r="number"==typeof e?e:e[t];if(null==r)continue;const a=i?.[t]?.minValue??h[0],p=i?.[t]?.maxValue??h[1];if(a>r+Number.EPSILON||p<r-Number.EPSILON)continue;const d=s[t]||u.slice(),g=o[t],m=n?.customFloatTolerance;if(c&&0!==m){let t=m;t||(t=Math.abs(r)>=9999999e31?2e-7*Math.abs(r):"f32"===l?2**-23:Number.EPSILON);for(let e=0;e<g.length;e++)d[e]&&Math.abs(g[e]-r)<t&&(g[e]=0,d[e]=0,u[e]=0,f=!0)}else for(let t=0;t<g.length;t++)d[t]&&g[t]===r&&(g[t]=0,d[t]=0,u[t]=0,f=!0);s[t]=d}if(f){const e=t.bandMasks||t.pixels.length>1?s:null;n?.matchAllNoData?t.mask=e&&e.length>1?function(t){if(t.length<2)return t[0];const e=t[0].length,n=new Uint8Array(e).fill(0);for(let o=0;o<t.length;o++){const r=t[o];for(let t=0;t<e;t++)r[t]&&(n[t]=255)}return n}(e):u:(t.bandMasks=e,t.mask=u)}f&&"updateStatistics"in t&&t.updateStatistics()}},44094(t,e,n){n.d(e,{Cr:()=>w,JM:()=>S,LZ:()=>p,RW:()=>P,XO:()=>b,_J:()=>x,ni:()=>v,r9:()=>I,uT:()=>E,uc:()=>T,wc:()=>h,zS:()=>k});var o=n(49186),r=n(9334),i=n(94213);const l=[0,1,1,2,4,8,1,1,2,4,8,4,8,-1,-1,-1,8,8,8],a=4294967296,s=new Map([[1,(t,e)=>t.getUint8(e)],[2,(t,e)=>t.getUint8(e)],[3,(t,e,n)=>t.getUint16(e,n)],[4,(t,e,n)=>t.getUint32(e,n)],[5,(t,e,n)=>t.getUint32(e,n)/t.getUint32(e+4,n)],[6,(t,e)=>t.getInt8(e)],[7,(t,e)=>t.getUint8(e)],[8,(t,e,n)=>t.getInt16(e,n)],[9,(t,e,n)=>t.getInt32(e,n)],[10,(t,e,n)=>t.getInt32(e,n)/t.getInt32(e+4,n)],[11,(t,e,n)=>t.getFloat32(e,n)],[12,(t,e,n)=>t.getFloat64(e,n)],[13,(t,e,n)=>t.getUint32(e,n)],[16,(t,e,n)=>u(t,e,n)],[17,(t,e,n)=>function(t,e,n){let o=n?t.getInt32(e,n):t.getUint32(e,n),r=n?t.getUint32(e+4,n):t.getInt32(e+4,n);const i=(n?o:r)>=0?1:-1;return n?o*=i:r*=i,i*(n?r*a+o:o*a+r)}(t,e,n)],[18,(t,e,n)=>u(t,e,n)]]);function u(t,e,n){const o=t.getUint32(e,n),r=t.getUint32(e+4,n);return n?r*a+o:o*a+r}function c(t,e){return{x:e[0]*t.x+e[1]*t.y+e[2],y:e[3]*t.x+e[4]*t.y+e[5]}}function h(t,e){return t.get(e)?.values}function f(t,e){return t.get(e)?.values?.[0]}function p(t,e){return t.get(e)?.values?.[0]}function d(t,e,n,o){return o?u(t,e,n):t.getUint32(e,n)}function g(t,e,n,o=0,r=i.NB,l=4){const a=8===l,s=a?u(new DataView(t,n,8),0,e):new DataView(t,n,2).getUint16(0,e),c=4+2*l,h=a?8:2,f=h+s*c;if(n+f>t.byteLength)return{success:!1,ifd:null,nextIFD:null,requiredBufferSize:f};const p=8===l?8:4,g=n+f+p<=t.byteLength?d(new DataView(t,n+f,p),0,e,8===l):null,m=n+h,y=new Map;for(let n=0;n<s;n++){const a=new DataView(t,m+c*n,c),s=a.getUint16(0,e),u=a.getUint16(2,e),h=(0,i.kq)(s,r),f=[];let p=0,g=0;2===l?(p=a.getUint16(4,e),g=a.getUint16(6,e)):4===l?(p=a.getUint32(4,e),g=a.getUint32(8,e)):8===l&&(p=d(a,4,e,!0),g=d(a,12,e,!0),f.push(a.getUint32(12,e)),f.push(a.getUint32(16,e)));const C={id:s,type:u,valueCount:p,valueOffset:g,valueOffsets:f,values:null};w(t,e,C,o,!1,l),y.set(h,C)}return{success:!0,ifd:y,nextIFD:g,requiredBufferSize:f}}function m(t,e,n,o){const{type:r,valueCount:i}=e,a=l[r];if(null==a||a<=0)return[];const u=i*a,c=u/a,h=new DataView(t,n,u),f=[],p=s.get(r);if(!p)return[];for(let t=0,e=0;t<c;t++,e+=a)f.push(p(h,e,o));return f}function y(t,e,n=4){const{type:o,valueCount:r,valueOffsets:i}=t,s=8*l[o],u=r*l[o]*8;let{valueOffset:c}=t;const h=8===n?64:32;if(!e)if(h<=32)c>>>=32-u;else{const t=i?.length?i[0]:c>>>0,e=i?.length?i[1]:Math.round((c-t)/a);u<=32?(c=t>>>32-u,i[0]=c):(c=t*2**(32-u)+(e>>>32-u),i[0]=t,i[1]=e>>>32-u)}if(1===r&&s===h)return[c];const f=[];if(64===h){const t=i?.length?i[0]:c>>>0,e=i?.length?i[1]:Math.round((c-t)/a);let n=t,o=32;for(let t=1;t<=r;t++){const r=32-s*t%32;if(o<s){const t=n<<r>>>32-o,i=e<<32-o>>>32-o;n=e,f.push(t+i*2**(s-o)),o-=32-(s-o)}else f.push(n<<r>>>32-s),o-=s;0===o&&(o=32,n=e)}return f}for(let t=1;t<=r;t++){const e=32-s*t;f.push(c<<e>>>32-s)}return f}function w(t,e,n,o=0,i=!1,a=4){if(n.values)return!0;const{type:s,valueCount:u}=n;let c=n.valueOffset;const h=u*l[s],f=u*l[s]*8,p=8===a?64:32;if(f>p&&h>(i?t.byteLength:t?t.byteLength-c+o:0))return n.offlineOffsetSize=[c,h],n.values=null,!1;let d=[];if(f<=p?d=y(n,e,a):(c-=o,i&&(c=0),d=m(t,n,c,e)),2===s){const t=d.length?(0,r.w)(d instanceof Uint8Array?d:new Uint8Array(d)):"";n.values=[t]}else n.values=d;return!0}function C(t){const e=p(t,"PHOTOMETRICINTERPRETATION"),n=h(t,"COLORMAP");if(null!=e&&e<=3&&n?.length&&n.length%3==0){const t=[],e=n.length/3;for(let o=0;o<e;o++)t.push([o,n[o]>>>8,n[o+e]>>>8,n[o+2*e]>>>8]);return t}}function A(t){const e=h(t,"GEOTIEPOINTS"),n=h(t,"GEOPIXELSCALE"),o=h(t,"GEOTRANSMATRIX"),r=t.get("GEOKEYDIRECTORY")?.data,i=!!r&&2===p(r,"GTRasterTypeGeoKey"),{spatialReference:l,isPseudoGeographic:a}=function(t){const e=f(t,"GEOASCIIPARAMS");let n=null;if(e){const t=e.split("|").find(t=>t.includes("ESRI PE String = ")),o=t?t.replace("ESRI PE String = ",""):"";n=o.startsWith("COMPD_CS")||o.startsWith("PROJCS")||o.startsWith("GEOGCS")?{wkid:null,wkt:o}:null}let o=!1;const r=t.get("GEOKEYDIRECTORY")?.data;if(r){const t=p(r,"GTModelTypeGeoKey");if(2===t){const t=p(r,"GeographicTypeGeoKey");t>=1024&&t<=32766&&(n={wkid:t}),n||32767!==t||(o=!0,n={wkid:4326})}else if(1===t){const t=p(r,"ProjectedCSTypeGeoKey");t>=1024&&t<=32766&&(n={wkid:t})}}return{spatialReference:n,isPseudoGeographic:o}}(t);let s,u;n&&e&&e.length>=6?(s=[n[0],0,e[3]-e[0]*n[0],0,-Math.abs(n[1]),e[4]-e[1]*n[1]],i&&(s[2]-=.5*s[0]+.5*s[1],s[5]-=.5*s[3]+.5*s[4])):16===o?.length&&(s=i?[o[0],o[1],o[3]-.5*o[0],o[4],o[5],o[7]-.5*o[5]]:[o[0],o[1],o[3],o[4],o[5],o[7]]);const d=p(t,"IMAGEWIDTH"),g=p(t,"IMAGELENGTH");if(s){const t=[{x:0,y:g},{x:0,y:0},{x:d,y:g},{x:d,y:0}];let e,n=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY,i=Number.NEGATIVE_INFINITY;for(let l=0;l<t.length;l++)e=c(t[l],s),n=e.x>n?n:e.x,r=e.x<r?r:e.x,o=e.y>o?o:e.y,i=e.y<i?i:e.y;u={xmin:n,xmax:r,ymin:o,ymax:i,spatialReference:l}}else u={xmin:-.5,ymin:.5-g,xmax:d-.5,ymax:.5,spatialReference:l};return a&&(u.xmax-u.xmin>400||Math.max(Math.abs(u.xmin),Math.abs(u.xmax))>361)&&(u.spatialReference=null),{extent:u,isPseudoGeographic:a,affine:n?void 0:s}}function x(t){const{width:e,height:n,tileHeight:o,tileWidth:r}=t,i=t.planes,l=r?r*o:e*n,a=p(t.ifds[0],"BITSPERSAMPLE");let s="";return l*i>2**30/(a>8?a/8:1)&&(s=r?"tiled tiff exceeding 1 gigabits per tile is not supported":"scanline tiff exceeding 1 gigabits is not supported"),s}function b(t,e){const n=p(t,"PLANARCONFIGURATION");return null!=n?2===n:!!e&&e.isBSQ}function v(t){return p(t,"COMPRESSION")??1}function M(t){const e=v(t);let n,o=!1;switch(e){case 1:n="NONE",o=!0;break;case 2:case 3:case 4:case 32771:n="CCITT";break;case 5:n="LZW",o=!0;break;case 6:case 7:n="JPEG",o=!0;break;case 32773:n="PACKBITS";break;case 8:case 32946:n="DEFLATE",o=!0;break;case 34712:n="JPEG2000";break;case 34887:n="LERC",o=!0;break;default:n=String(e)}return{compression:n,supported:o}}function T(t){const e=t[0],n=p(e,"TILEWIDTH"),o=p(e,"TILELENGTH"),r=p(e,"IMAGEWIDTH"),i=p(e,"IMAGELENGTH"),l=p(e,"BITSPERSAMPLE"),a=p(e,"SAMPLESPERPIXEL"),s=p(e,"SAMPLEFORMAT")??1,u=function(t,e){let n="unknown";return 3===t?n=64===e?"f64":"f32":1===t?1===e?n="u1":2===e?n="u2":4===e?n="u4":e<=8?n="u8":e<=16?n="u16":e<=32&&(n="u32"):2===t&&(e<=8?n="s8":e<=16?n="s16":e<=32&&(n="s32")),n}(s,l),c=b(e),h=function(t){return t.get("GDAL_NODATA")?.values}(e);let d=null;h?.length&&(d=h.map(t=>parseFloat(t)),d.some(t=>isNaN(t))&&(d=null));let g=!0,m="";const{compression:y,supported:w}=M(e);w||(g=!1,m+="unsupported tag compression "+y),s>3&&(g=!1,m+="unsupported tag sampleFormat "+s),l>32&&64!==l&&(g=!1,m+="unsupported tag bitsPerSample "+l);const{extent:v,isPseudoGeographic:T,affine:S}=A(e),E=k(t);let P,R,L,D,U;if(E.length>0){L=Math.round(Math.log(r/p(E[0],"IMAGEWIDTH"))/Math.LN2);const t=E[E.length-1];D=E.length,P=p(t,"TILEWIDTH"),R=p(t,"TILELENGTH")}P=null!=D&&D>0?P||n:null,R=null!=D&&D>0?R||o:null,n&&(U=[{maxCol:Math.ceil(r/n)-1,maxRow:Math.ceil(i/o)-1,minRow:0,minCol:0}],E.forEach(t=>{U.push({maxCol:Math.ceil(p(t,"IMAGEWIDTH")/p(t,"TILEWIDTH"))-1,maxRow:Math.ceil(p(t,"IMAGELENGTH")/p(t,"TILELENGTH"))-1,minRow:0,minCol:0})}));const G=function(t){if(!t)return null;const e=t.match(/<Item(.*?)Item>/gi);if(!e||0===e.length)return null;const n=new Map;for(let t=0;t<e.length;t++){const o=e[t];let r=o.indexOf("sample=");const i=r>-1?o.slice(r+8,o.indexOf('"',r+8)):null;r=o.indexOf("name=");const l=r>-1?o.slice(r+6,o.indexOf('"',r+6)):o.slice(6,o.indexOf(">"));if(l){const t=o.slice(o.indexOf(">")+1,o.indexOf("</Item>")).trim();null!=i?n.has(l)?n.get(l)[i]=t:n.set(l,[t]):n.set(l,t)}}const o=n.get("STATISTICS_MINIMUM"),r=n.get("STATISTICS_MAXIMUM"),i=n.get("STATISTICS_MEAN"),l=n.get("STATISTICS_STDDEV");let a=null;if(o&&r){a=[];for(let t=0;t<o.length;t++)a.push({min:parseFloat(o[t]),max:parseFloat(r[t]),avg:i&&parseFloat(i[t]),stddev:l&&parseFloat(l[t])})}const s=n.get("BandName"),u=n.get("WavelengthMin"),c=n.get("WavelengthMax");let h=null;if(s){h=[];for(let t=0;t<s.length;t++)h.push({BandName:s[t],WavelengthMin:u&&parseFloat(u[t]),WavelengthMax:c&&parseFloat(c[t])})}return{statistics:a,bandProperties:h,dataType:n.get("DataType"),rawMetadata:n}}(f(t[0],"GDAL_METADATA"));m+=" "+x({width:r,height:i,tileWidth:n,tileHeight:o,planes:a,ifds:t});const N=I(t).length===E.length+1,O=E?.length?E.map(t=>({x:r/p(t,"IMAGEWIDTH"),y:i/p(t,"IMAGELENGTH")})):void 0,B=C(e);return{width:r,height:i,tileWidth:n,tileHeight:o,planes:a,isBSQ:c,pixelType:u,compression:y,noData:d,hasMaskBand:N,isSupported:g,pyramidResolutions:O,message:m,extent:v,isPseudoGeographic:T,affine:S,firstPyramidLevel:L,maximumPyramidLevel:D,pyramidBlockWidth:P,pyramidBlockHeight:R,tileBoundary:U,metadata:G,colormap:B}}function k(t){return t.filter(t=>1===p(t,"NEWSUBFILETYPE"))}function I(t){return t.filter(t=>{const e=!(4&~(p(t,"NEWSUBFILETYPE")??0)),n=4===p(t,"PHOTOMETRICINTERPRETATION");return e&&n})}function S(t,e,n,o=0,l=i.NB,a=4){const s=g(t,e,n,o,l,a);let u;const c=s.ifd;if(c){if(i.RR.forEach((n,r)=>{c.has(r)&&(u=c.get(r),u.data=g(t,e,u.valueOffset-o,o,n).ifd)}),c.has("GEOKEYDIRECTORY")){u=c.get("GEOKEYDIRECTORY");const n=u.values;if(n&&n.length>4){const r=n[0]+"."+n[1]+"."+n[2];u.data=g(t,e,u.valueOffset+6-o,o,i.YC,2).ifd,u.data&&u.data.set("GEOTIFFVersion",{id:0,type:2,valueCount:1,valueOffset:null,values:[r]})}}if(c.has("XMP")){u=c.get("XMP");const t=u.values;"number"==typeof t[0]&&7===u.type&&(u.values=[(0,r.w)(new Uint8Array(t))])}}return s}function E(t){const e=new DataView(t,0,16),n=e.getUint16(0,!1);let r=null;if(18761===n)r=!0;else{if(19789!==n)throw new o.A("tiff-reader:parse-signature","unexpected endianness byte");r=!1}const i=e.getUint16(2,r);if(42!==i&&43!==i)throw new o.A("tiff-reader:parse-signature","unexpected tiff identifier");let l=4;const a=43===i;if(a){const t=e.getUint16(l,r);if(l+=2,8!==t||0!==e.getUint16(l,r))throw new o.A("tiff-reader:parse-signature","unsupported bigtiff version");l+=2}return{littleEndian:r,isBigTiff:a,firstIFDPos:d(e,l,r,a)}}function P(t){const{littleEndian:e,isBigTiff:n,firstIFDPos:o}=E(t);let r=o;const l=[];do{const o=S(t,e,r,0,i.NB,n?8:4);if(!o.success)break;l.push(o.ifd),r=o.nextIFD}while(r>0);return{...T(l),littleEndian:e,isBigTiff:n,ifds:l,pyramidIFDs:k(l),maskIFDs:I(l)}}},94213(t,e,n){const o=(()=>{const t=[];return t[254]="NEWSUBFILETYPE",t[255]="SUBFILETYPE",t[256]="IMAGEWIDTH",t[257]="IMAGELENGTH",t[258]="BITSPERSAMPLE",t[259]="COMPRESSION",t[262]="PHOTOMETRICINTERPRETATION",t[263]="THRESHHOLDING",t[264]="CELLWIDTH",t[265]="CELLLENGTH",t[266]="FILLORDER",t[269]="DOCUMENTNAME",t[270]="IMAGEDESCRIPTION",t[271]="MAKE",t[272]="MODEL",t[273]="STRIPOFFSETS",t[274]="ORIENTATION",t[277]="SAMPLESPERPIXEL",t[278]="ROWSPERSTRIP",t[279]="STRIPBYTECOUNTS",t[280]="MINSAMPLEVALUE",t[281]="MAXSAMPLEVALUE",t[282]="XRESOLUTION",t[283]="YRESOLUTION",t[284]="PLANARCONFIGURATION",t[285]="PAGENAME",t[286]="XPOSITION",t[287]="YPOSITION",t[288]="FREEOFFSETS",t[289]="FREEBYTECOUNTS",t[290]="GRAYRESPONSEUNIT",t[291]="GRAYRESPONSECURVE",t[292]="T4OPTIONS",t[293]="T6OPTIONS",t[296]="RESOLUTIONUNIT",t[297]="PAGENUMBER",t[300]="COLORRESPONSEUNIT",t[301]="TRANSFERFUNCTION",t[305]="SOFTWARE",t[306]="DATETIME",t[315]="ARTIST",t[316]="HOSTCOMPUTER",t[317]="PREDICTOR",t[318]="WHITEPOINT",t[319]="PRIMARYCHROMATICITIES",t[320]="COLORMAP",t[321]="HALFTONEHINTS",t[322]="TILEWIDTH",t[323]="TILELENGTH",t[324]="TILEOFFSETS",t[325]="TILEBYTECOUNTS",t[326]="BADFAXLINES",t[327]="CLEANFAXDATA",t[328]="CONSECUTIVEBADFAXLINES",t[330]="SUBIFD",t[332]="INKSET",t[333]="INKNAMES",t[334]="NUMBEROFINKS",t[336]="DOTRANGE",t[337]="TARGETPRINTER",t[338]="EXTRASAMPLES",t[339]="SAMPLEFORMAT",t[340]="SMINSAMPLEVALUE",t[341]="SMAXSAMPLEVALUE",t[342]="TRANSFERRANGE",t[347]="JPEGTABLES",t[512]="JPEGPROC",t[513]="JPEGIFOFFSET",t[514]="JPEGIFBYTECOUNT",t[515]="JPEGRESTARTINTERVAL",t[517]="JPEGLOSSLESSPREDICTORS",t[518]="JPEGPOINTTRANSFORM",t[519]="JPEGQTABLES",t[520]="JPEGDCTABLES",t[521]="JPEGACTABLES",t[529]="YCBCRCOEFFICIENTS",t[530]="YCBCRSUBSAMPLING",t[531]="YCBCRPOSITIONING",t[532]="REFERENCEBLACKWHITE",t[700]="XMP",t[33550]="GEOPIXELSCALE",t[33922]="GEOTIEPOINTS",t[33432]="COPYRIGHT",t[42112]="GDAL_METADATA",t[42113]="GDAL_NODATA",t[50844]="RPCCOEFFICIENT",t[34264]="GEOTRANSMATRIX",t[34735]="GEOKEYDIRECTORY",t[34736]="GEODOUBLEPARAMS",t[34737]="GEOASCIIPARAMS",t[34665]="EXIFIFD",t[34853]="GPSIFD",t[40965]="INTEROPERABILITYIFD",t})(),r=(()=>{const t=o.slice();return t[36864]="ExifVersion",t[40960]="FlashpixVersion",t[40961]="ColorSpace",t[42240]="Gamma",t[37121]="ComponentsConfiguration",t[37122]="CompressedBitsPerPixel",t[40962]="PixelXDimension",t[40963]="PixelYDimension",t[37500]="MakerNote",t[37510]="UserComment",t[40964]="RelatedSoundFile",t[36867]="DateTimeOriginal",t[36868]="DateTimeDigitized",t[36880]="OffsetTime",t[36881]="OffsetTimeOriginal",t[36882]="OffsetTimeDigitized",t[37520]="SubSecTime",t[37521]="SubSecTimeOriginal",t[37522]="SubSecTimeDigitized",t[37888]="Temperature",t[37889]="Humidity",t[37890]="Pressure",t[37891]="WaterDepth",t[37892]="Acceleration",t[37893]="CameraElevationAngle",t[42016]="ImageUniqueID",t[42032]="CameraOwnerName",t[42033]="BodySerialNumber",t[42034]="LensSpecification",t[42035]="LensMake",t[42036]="LensModel",t[42037]="LensSerialNumber",t[33434]="ExposureTime",t[33437]="FNumber",t[34850]="ExposureProgram",t[34852]="SpectralSensitivity",t[34855]="PhotographicSensitivity",t[34856]="OECF",t[34864]="SensitivityType",t[34865]="StandardOutputSensitivity",t[34866]="RecommendedExposureIndex",t[34867]="ISOSpeed",t[34868]="ISOSpeedLatitudeyyy",t[34869]="ISOSpeedLatitudezzz",t[37377]="ShutterSpeedValue",t[37378]="ApertureValue",t[37379]="BrightnessValue",t[37380]="ExposureBiasValue",t[37381]="MaxApertureValue",t[37382]="SubjectDistance",t[37383]="MeteringMode",t[37384]="LightSource",t[37385]="Flash",t[37386]="FocalLength",t[37396]="SubjectArea",t[41483]="FlashEnergy",t[41484]="SpatialFrequencyResponse",t[41486]="FocalPlaneXResolution",t[41487]="FocalPlaneYResolution",t[41488]="FocalPlaneResolutionUnit",t[41492]="SubjectLocation",t[41493]="ExposureIndex",t[41495]="SensingMethod",t[41728]="FileSource",t[41729]="SceneType",t[41730]="CFAPattern",t[41985]="CustomRendered",t[41986]="ExposureMode",t[41987]="WhiteBalance",t[41988]="DigitalZoomRatio",t[41989]="FocalLengthIn35mmFilm",t[41990]="SceneCaptureType",t[41991]="GainControl",t[41992]="Contrast",t[41993]="Saturation",t[41994]="Sharpness",t[41995]="DeviceSettingDescription",t[41996]="SubjectDistanceRange",t})(),i=(()=>{const t=[];return t[1024]="GTModelTypeGeoKey",t[1025]="GTRasterTypeGeoKey",t[1026]="GTCitationGeoKey",t[2048]="GeographicTypeGeoKey",t[2049]="GeogCitationGeoKey",t[2050]="GeogGeodeticDatumGeoKey",t[2051]="GeogPrimeMeridianGeoKey",t[2052]="GeogLinearUnitsGeoKey",t[2053]="GeogLinearUnitSizeGeoKey",t[2054]="GeogAngularUnitsGeoKey",t[2055]="GeogAngularUnitSizeGeoKey",t[2056]="GeogEllipsoidGeoKey",t[2057]="GeogSemiMajorAxisGeoKey",t[2058]="GeogSemiMinorAxisGeoKey",t[2059]="GeogInvFlatteningGeoKey",t[2061]="GeogPrimeMeridianLongGeoKey",t[2060]="GeogAzimuthUnitsGeoKey",t[3072]="ProjectedCSTypeGeoKey",t[3073]="PCSCitationGeoKey",t[3074]="ProjectionGeoKey",t[3075]="ProjCoordTransGeoKey",t[3076]="ProjLinearUnitsGeoKey",t[3077]="ProjLinearUnitSizeGeoKey",t[3078]="ProjStdParallel1GeoKey",t[3079]="ProjStdParallel2GeoKey",t[3080]="ProjNatOriginLongGeoKey",t[3081]="ProjNatOriginLatGeoKey",t[3082]="ProjFalseEastingGeoKey",t[3083]="ProjFalseNorthingGeoKey",t[3084]="ProjFalseOriginLongGeoKey",t[3085]="ProjFalseOriginLatGeoKey",t[3086]="ProjFalseOriginEastingGeoKey",t[3087]="ProjFalseOriginNorthingGeoKey",t[3088]="ProjCenterLongGeoKey",t[3090]="ProjCenterEastingGeoKey",t[3091]="ProjCenterNorthingGeoKey",t[3092]="ProjScaleAtNatOriginGeoKey",t[3093]="ProjScaleAtCenterGeoKey",t[3094]="ProjAzimuthAngleGeoKey",t[3095]="ProjStraightVertPoleLongGeoKey",t[4096]="VerticalCSTypeGeoKey",t[4097]="VerticalCitationGeoKey",t[4098]="VerticalDatumGeoKey",t[4099]="VerticalUnitsGeoKey",t})(),l=new Map([["EXIFIFD",r],["GPSIFD",["GPSVersionID","GPSLatitudeRef","GPSLatitude","GPSLongitudeRef","GPSLongitude","GPSAltitudeRef","GPSAltitude","GPSTimeStamp","GPSSatellites","GPSStatus","GPSMeasureMode","GPSDOP","GPSSpeedRef","GPSSpeed","GPSTrackRef","GPSTrack","GPSImgDirectionRef","GPSImgDirection","GPSMapDatum","GPSDestLatitudeRef","GPSDestLatitude","GPSDestLongitudeRef","GPSDestLongitude","GPSDestBearingRef","GPSDestBearing","GPSDestDistanceRef","GPSDestDistance","GPSProcessingMethod","GPSAreaInformation","GPSDateStamp","GPSDifferential","GPSHPositioningError"]]]);n.d(e,["NB",0,o,"RR",0,l,"YC",0,i,"kq",0,(t,e)=>{let n=(e||o)[t];return void 0===n&&(n="unknown"+String(t)),n}])},10713(t,e,n){const o=(()=>{const t=new ArrayBuffer(4),e=new Uint8Array(t);return new Uint32Array(t)[0]=1,1===e[0]})();n.d(e,["Z",0,o])},47520(t,e,n){n.d(e,{$Q:()=>D,$i:()=>F,AB:()=>a,Ew:()=>w,Hx:()=>m,J$:()=>N,L:()=>V,LY:()=>T,QF:()=>B,UK:()=>f,Wt:()=>M,Wy:()=>s,XU:()=>v,YD:()=>x,_F:()=>g,bL:()=>y,dK:()=>b,eH:()=>h,lD:()=>G,qL:()=>c,z$:()=>S,z7:()=>I,zg:()=>u});var o=n(34727),r=n(94778),i=n(14140);const l="PixelID";function a(t){return null!=t&&t.pixels?.length>0}function s(t){if(!t?.length||t.some(t=>!a(t)))return null;if(1===t.length)return t[0]?.clone()??null;const e=t,{width:n,height:o,pixelType:r}=e[0];if(e.some(t=>t.width!==n||t.height!==o))return null;const l=e.map(({mask:t})=>t).filter(t=>null!=t);let s=null;l.length&&(s=new Uint8Array(n*o),s.set(l[0]),l.length>1&&x(l.slice(1),s));const u=[];e.forEach(({pixels:t})=>u.push(...t));const c=null!=s&&u.length===e.length?e.map(({width:t,height:e,mask:n})=>n??new Uint8Array(t*e).fill(255)):null,h=e.map(({statistics:t})=>t).filter(t=>t?.length),f=[];return h.forEach(t=>f.push(...t)),new i.A({pixelType:r,width:n,height:o,mask:s,bandMasks:c,pixels:u,statistics:f.length?f:null})}function u(t){if(!t)return;const e=t.colormap;if(!e||0===e.length)return;const n=e.sort((t,e)=>t[0]-e[0]),o=n[0][0]<0?n[0][0]:0,r=Math.max(256,n[n.length-1][0]-o+1),i=new Uint8Array(4*r),l=[],a=5===n[0].length;if(r>65536)return n.forEach(t=>{l[t[0]-o]=a?t.slice(1):t.slice(1).concat([255])}),{indexed2DColormap:l,offset:o,alphaSpecified:a};if(t.fillUnspecified){let t=n[0];for(let e=t[0]-o,l=0;e<r;e++)i[4*e]=t[1],i[4*e+1]=t[2],i[4*e+2]=t[3],i[4*e+3]=a?t[4]:255,e===t[0]-o&&(t=l===n.length-1?t:n[++l])}else for(let t=0;t<n.length;t++){const e=n[t],r=4*(e[0]-o);i[r]=e[1],i[r+1]=e[2],i[r+2]=e[3],i[r+3]=a?e[4]:255}return{indexedColormap:i,offset:o,alphaSpecified:a}}function c(t,e){if(!a(t))return t;if(!e||!e.indexedColormap&&!e.indexed2DColormap)return t;const n=t.clone(),o=n.pixels;let r=n.mask;const i=n.width*n.height;if(1!==o.length)return t;const{indexedColormap:l,indexed2DColormap:s,offset:u,alphaSpecified:c}=e,h=o[0],f=new Uint8Array(h.length),p=new Uint8Array(h.length),d=new Uint8Array(h.length);let g,m=0;if(l){const t=l.length-1;if(null!=r)for(let e=0;e<i;e++)r[e]&&(m=4*(h[e]-u),m<u||m>t?r[e]=0:(f[e]=l[m],p[e]=l[m+1],d[e]=l[m+2],r[e]=l[m+3]));else{r=new Uint8Array(i);for(let e=0;e<i;e++)m=4*(h[e]-u),m<u||m>t?r[e]=0:(f[e]=l[m],p[e]=l[m+1],d[e]=l[m+2],r[e]=l[m+3]);n.mask=r}}else if(s)if(null!=r)for(let t=0;t<i;t++)r[t]&&(g=s[h[t]],f[t]=g[0],p[t]=g[1],d[t]=g[2],r[t]=g[3]);else{r=new Uint8Array(i);for(let t=0;t<i;t++)g=s[h[t]],f[t]=g[0],p[t]=g[1],d[t]=g[2],r[t]=g[3];n.mask=r}return n.pixels=[f,p,d],n.statistics=null,n.pixelType="u8",n.maskIsAlpha=c,n}function h(t,e){if(!a(t))return null;const{pixels:n,mask:o}=t,r=n.length;let l=e.lut;const{offset:s}=e;l&&1===l[0].length&&(l=n.map(()=>l));const u=[],c=e.outputPixelType||"u8";for(let t=0;t<r;t++){const e=f(n[t],o,l[t],s||0,c);u.push(e)}const h=new i.A({width:t.width,height:t.height,pixels:u,mask:o,pixelType:c});return h.updateStatistics(),h}function f(t,e,n,o,r){const l=t.length,a=i.A.createEmptyBand(r,l);if(e)for(let r=0;r<l;r++)e[r]&&(a[r]=n[t[r]-o]);else for(let e=0;e<l;e++)a[e]=n[t[e]-o];return a}function p(t,e,n,o){const{width:r,height:i,pixels:l,mask:a}=t,s=r*i,{bandId:u,ranges:c}=n,h=l[u];if(!h)return;const f=1===c.length,[p,d]=c[0];for(let t=0;t<s;t++)if(!a||a[t]){const n=h[t];if(f)n>=p&&n<=d&&(e[t]=o);else for(let r=0;r<c.length;r++){const[i,l]=c[r];if(n>=i&&n<=l){e[t]=o;break}}}}function d(t,e,n,o){const{width:r,height:i,xyMask:l,xBandId:a,yBandId:s,xBandRange:u,yBandRange:c}=n,{pixels:h,mask:f}=t,p=h[a],d=h[s],[g,m]=u,[y,w]=c,C=(m-g)/r,A=(w-y)/i;for(let t=0;t<p.length;t++)if(!f||f[t]){let n=p[t],a=d[t];if(n<g||n>m||a<y||a>w)continue;l?(n=(n-g)*C,n=n>r-1?r-1:n<0?0:255&n,a=(w-a)*A,a=a>i-1?i-1:a<0?0:255&a,l[a*r+n]&&(e[t]=o)):e[t]=o}}function g(t){const{pixelBlock:e,renderedPixelBlock:n,highlightOptions:o}=t;if(!a(e))return;const{width:r,height:i}=e,l=r*i,s=new Uint8Array(l);for(let t=1;t<=o.length;t++){const n=o[t-1];"bandId"in n?p(e,s,n,t):d(e,s,n,t)}const{pixels:u}=n;1===u.length&&(u[1]=u[0].slice(),u[2]=u[0].slice());const c=o.map(t=>t.color),[h,f,g]=u;if(n.mask){const t=n.mask;for(let e=0;e<l;e++)if(t[e]){t[e]=255;const n=s[e];if(n){const o=c[n-1];h[e]=o[0],f[e]=o[1],g[e]=o[2],t[e]=o[3]}}}else{const t=new Uint8Array(l).fill(255);for(let e=0;e<l;e++){const n=s[e];if(n){const o=c[n-1];h[e]=o[0],f[e]=o[1],g[e]=o[2],t[e]=o[3]}}n.mask=t}n.maskIsAlpha=!0}function m(t,e){if(!a(t))return null;const n=t.clone(),{pixels:o}=n,r=n.width*n.height,i=e.length,l=Math.floor(i/2),s=e[Math.floor(l)],u=o[0],c=new Uint8Array(r),h=new Uint8Array(r),f=new Uint8Array(r);let p=n.mask;const d=4===e[0].mappedColor.length;p||(p=new Uint8Array(r),p.fill(d?255:1),n.mask=p);for(let t=0;t<r;t++)if(p[t]){const n=u[t];let o=!1,r=l,a=s,d=0,g=i-1;for(;g-d>1;){if(n===a.value){o=!0;break}n>a.value?d=r:g=r,r=Math.floor((d+g)/2),a=e[Math.floor(r)]}o||(n===e[d].value?(a=e[d],o=!0):n===e[g].value?(a=e[g],o=!0):n<e[d].value?o=!1:n>e[d].value&&(n<e[g].value?(a=e[d],o=!0):g===i-1?o=!1:(a=e[g],o=!0))),o?(c[t]=a.mappedColor[0],h[t]=a.mappedColor[1],f[t]=a.mappedColor[2],p[t]=a.mappedColor[3]):c[t]=h[t]=f[t]=p[t]=0}return n.pixels=[c,h,f],n.mask=p,n.pixelType="u8",n.maskIsAlpha=d,n}function y(t,e,n=!1){const r=1e-5,i=new Float32Array(27),l=e.length;for(let a=0;a<9;a++)i[3*a]=t[2*a]??o.pq-1,i[3*a+1]=t[2*a+1]??o.pq,i[3*a+2]=e[a]??0,a<l&&(a>0&&(i[3*a]-=r),t[2*a+1]!==t[2*a]&&(a<l-1||!n)&&(i[3*a+1]-=r));return i}function w(t,e){if(!a(t))return null;const{width:n,height:o}=t,{inputRanges:l,outputValues:s,outputPixelType:u,noDataRanges:c,allowUnmatched:h,replacementValue:f,isLastInputRangeInclusive:p}=e,d=t.pixels[0],g=i.A.createEmptyBand(u,d.length),m=t.mask,y=new Uint8Array(n*o);m?y.set(m):y.fill(255);const w=t.pixelType.startsWith("f")?1e-6:0,C=l.map(t=>t-w);C[0]=l[0],C[C.length-1]=l[l.length-1]+(p?1e-6:0);const A=l.length/2,[x,b]=(0,r.hP)(u);for(let t=0;t<o;t++)for(let e=0;e<n;e++){const o=t*n+e;if(y[o]){const t=d[o];let e=!1;for(let n=A-1;n>=0;n--)if(t===l[2*n]||t>C[2*n]&&t<C[2*n+1]){g[o]=s[n],e=!0;break}e||(h?g[o]=t>b?b:t<x?x:f??t:y[o]=0)}}const v=c?.length;if(v)for(let t=0;t<o;t++)for(let e=0;e<n;e++){const o=t*n+e;if(!m||m[o]){const t=d[o];for(let e=0;e<v;e+=2)if(t>=c[e]&&t<=c[e+1]){g[o]=0,y[o]=0;break}}}return new i.A({width:n,height:o,pixelType:u,pixels:[g],mask:y})}function C(t,e,n,o){const r=null!=n&&n.length>=2?new Set(n):null,i=1===n?.length?n[0]:null,l=!!e?.length;for(let n=0;n<t.length;n++)if(o[n]){const a=t[n];if(l){let t=!1;for(let n=0;n<e.length;n+=2)if(a>=e[n]&&a<=e[n+1]){t=!0;break}t||(o[n]=0)}o[n]&&(a===i||r?.has(a))&&(o[n]=0)}}function A(t,e){const n=t[0].length;e??=new Uint8Array(n).fill(255);for(let o=0;o<n;o++)if(e[o]){let n=!1;for(let e=0;e<t.length;e++)if(t[e][o]){n=!0;break}n||(e[o]=0)}return e}function x(t,e){const n=t[0].length;e??=new Uint8Array(n).fill(255);for(let o=0;o<n;o++)if(e[o]){let n=!1;for(let e=0;e<t.length;e++)if(0===t[e][o]){n=!0;break}n&&(e[o]=0)}return e}function b(t,e){if(!a(t))return null;const{width:n,height:o,pixels:r}=t,l=n*o,s=new Uint8Array(l);t.mask?s.set(t.mask):s.fill(255);const u=r.length,{includedRanges:c,noDataValues:h,outputPixelType:p,matchAll:d,lookups:g}=e;if(g){const t=[];for(let e=0;e<u;e++){const n=g[e],o=f(r[e],s,n.lut,n.offset||0,"u8");t.push(o)}1===t.length?s.set(t[0]):d?A(t,s):x(t,s)}else if(d){const t=[];for(let e=0;e<u;e++){const n=new Uint8Array(l);n.set(s),C(r[e],c?.slice(2*e,2*e+2),h?.[e],n),t.push(n)}1===t.length?s.set(t[0]):A(t,s)}else for(let t=0;t<u;t++)C(r[t],c?.slice(2*t,2*t+2),h?.[t],s);return new i.A({width:n,height:o,pixelType:p,pixels:r,mask:s})}function v(t){const{srcPixelType:e,inputRanges:n,outputValues:o,allowUnmatched:l,noDataRanges:a,isLastInputRangeInclusive:s,outputPixelType:u}=t;if("u8"!==e&&"s8"!==e&&"u16"!==e&&"s16"!==e)return null;const c=e.includes("16")?65536:256,h=e.includes("s")?-c/2:0,f=i.A.createEmptyBand(u,c),p=new Uint8Array(c);l&&p.fill(255);const[d,g]=(0,r.hP)(u);if(n?.length&&o?.length){const t=1e-6,e=n.map(e=>e-t);e[0]=n[0],s&&(e[e.length-1]=n[n.length-1]);for(let t=0;t<e.length;t++){const r=o[t]>g?g:o[t]<d?d:o[t],i=Math.ceil(e[2*t]-h),l=n[2*t+1]===n[2*t]?i:Math.floor(e[2*t+1]-h);for(let t=i;t<=l;t++)f[t]=r,p[t]=255}}if(a?.length)for(let t=0;t<a.length;t++){const e=Math.ceil(a[2*t]-h),n=Math.floor(a[2*t+1]-h);for(let t=e;t<=n;t++)p[t]=0}return{lut:f,offset:h,mask:p}}function M(t,e,n){if("u8"!==t&&"s8"!==t&&"u16"!==t&&"s16"!==t)return null;const o=t.includes("16")?65536:256,r=t.includes("s")?-o/2:0,i=new Uint8Array(o);if(e)for(let t=0;t<e.length;t++){const n=Math.ceil(e[2*t]-r),o=Math.floor(e[2*t+1]-r);for(let t=n;t<=o;t++)i[t]=255}else i.fill(255);if(n)for(let t=0;t<n.length;t++)i[n[t]-r]=0;return{lut:i,offset:r}}function T(t,e){if(!t||0===t.length)return null;const n=t.find(t=>t.pixelBlock);if(null==n?.pixelBlock)return null;const o=(n.extent.xmax-n.extent.xmin)/n.pixelBlock.width,r=(n.extent.ymax-n.extent.ymin)/n.pixelBlock.height,i=.01*Math.min(o,r),l=t.sort((t,e)=>Math.abs(t.extent.ymax-e.extent.ymax)>i?e.extent.ymax-t.extent.ymax:Math.abs(t.extent.xmin-e.extent.xmin)>i?t.extent.xmin-e.extent.xmin:0),a=Math.min.apply(null,l.map(t=>t.extent.xmin)),s=Math.min.apply(null,l.map(t=>t.extent.ymin)),u=Math.max.apply(null,l.map(t=>t.extent.xmax)),c=Math.max.apply(null,l.map(t=>t.extent.ymax)),h={x:Math.round((e.xmin-a)/o),y:Math.round((c-e.ymax)/r)},f={width:Math.round((u-a)/o),height:Math.round((c-s)/r)},p={width:Math.round((e.xmax-e.xmin)/o),height:Math.round((e.ymax-e.ymin)/r)};return Math.round(f.width/n.pixelBlock.width)*Math.round(f.height/n.pixelBlock.height)!==l.length||h.x<0||h.y<0||f.width<p.width||f.height<p.height?null:{extent:e,pixelBlock:I(l.map(t=>t.pixelBlock),f,{clipOffset:h,clipSize:p})}}function k(t,e,n,o,r,i){const{width:l,height:a}=n.block,{x:s,y:u}=n.offset,{width:c,height:h}=n.mosaic,f=function(t,e,n,o,r,i,l,a){return{xmin:r<=n*t?0:r<n*t+t?r-n*t:t,ymin:i<=o*e?0:i<o*e+e?i-o*e:e,xmax:r+l<=n*t?0:r+l<n*t+t?r+l-n*t:t,ymax:i+a<=o*e?0:i+a<o*e+e?i+a-o*e:e}}(l,a,o,r,s,u,c,h);let p=0,d=0;if(i){const t=i.hasGCSSShiftTransform?360:i.halfWorldWidth??0,e=l*i.resolutionX,n=i.startX+o*e;n<t&&n+e>t?d=i.rightPadding:n>=t&&(p=i.leftMargin-i.rightPadding,d=0)}if(f.xmax-=d,"number"!=typeof e)for(let n=f.ymin;n<f.ymax;n++){const i=(r*a+n-u)*c+(o*l-s)+p,h=n*l;for(let n=f.xmin;n<f.xmax;n++)t[i+n]=e[h+n]}else for(let n=f.ymin;n<f.ymax;n++){const i=(r*a+n-u)*c+(o*l-s)+p;for(let n=f.xmin;n<f.xmax;n++)t[i+n]=e}}function I(t,e,n={}){const{clipOffset:o,clipSize:r,alignmentInfo:l,blockWidths:s}=n;if(s)return function(t,e,n){const o=t.find(t=>null!=t);if(null==o)return null;const r=t.some(t=>null==t||!!t.mask),{width:l,height:s}=e,u=r?new Uint8Array(l*s):null,{blockWidths:c}=n,h=[],f=o.getPlaneCount(),p=i.A.getPixelArrayConstructor(o.pixelType);if(r)for(let e=0,n=0;e<t.length;n+=c[e],e++){const o=t[e];if(!a(o))continue;const r=o.mask;for(let t=0;t<s;t++)for(let i=0;i<c[e];i++)u[t*l+i+n]=null==r?255:r[t*o.width+i]}const d=t.some(t=>t?.bandMasks&&t.bandMasks.length>1),g=d?[]:void 0,m=l*s;for(let e=0;e<f;e++){const n=new p(m),o=d?new Uint8Array(m):void 0;for(let r=0,i=0;r<t.length;i+=c[r],r++){const u=t[r];if(!a(u))continue;const h=u.pixels[e];if(null!=h){for(let t=0;t<s;t++)for(let e=0;e<c[r];e++)n[t*l+e+i]=h[t*u.width+e];if(o){const t=u.bandMasks?.[e]??u.mask;for(let e=0;e<s;e++)for(let n=0;n<c[r];n++)o[e*l+n+i]=t?t[e*u.width+n]:255}}}h.push(n),g&&o&&g.push(o)}const y=new i.A({width:l,height:s,mask:u,bandMasks:g,pixels:h,pixelType:o.pixelType});return y.updateStatistics(),y}(t,e,{blockWidths:s});const u=t.find(t=>a(t));if(null==u)return null;const c=r?r.width:e.width,h=r?r.height:e.height,f=u.width,p=u.height,d=e.width/f,g=e.height/p,m={offset:o||{x:0,y:0},mosaic:r||e,block:{width:f,height:p}},y=u.pixelType,w=i.A.getPixelArrayConstructor(y),C=u.pixels.length,A=[];let x,b;for(let e=0;e<C;e++){b=new w(c*h);for(let n=0;n<g;n++)for(let o=0;o<d;o++){const r=t[n*d+o];a(r)&&(x=r.pixels[e],k(b,x,m,o,n,l))}A.push(b)}const v=t.some(t=>null==t||null!=t.mask&&t.mask.length>0),M=t.some(t=>t?.bandMasks&&t.bandMasks.length>1),T=v?new Uint8Array(c*h):void 0,I=M?[]:void 0;if(T){for(let e=0;e<g;e++)for(let n=0;n<d;n++){const o=t[e*d+n],r=null!=o?o.mask:null;k(T,null!=r?r:o?255:0,m,n,e,l)}if(I)for(let e=0;e<C;e++){const n=new Uint8Array(c*h);for(let o=0;o<g;o++)for(let r=0;r<d;r++){const i=t[o*d+r],a=i?.bandMasks?.[e]??i?.mask;k(n,null!=a?a:i?255:0,m,r,o,l)}I.push(n)}}const S=new i.A({width:c,height:h,pixels:A,pixelType:y,bandMasks:I,mask:T});return S.updateStatistics(),S}function S(t,e,n){if(!a(t))return null;const{width:o,height:r}=t,i=e.x,l=e.y,s=n.width+i,u=n.height+l;if(i<0||l<0||s>o||u>r)return t;if(0===i&&0===l&&s===o&&u===r)return t;t.mask||(t.mask=new Uint8Array(o*r));const c=t.mask;for(let t=0;t<r;t++){const e=t*o;for(let n=0;n<o;n++)c[e+n]=t<l||t>=u||n<i||n>=s?0:1}return t.updateStatistics(),t}function E(t){if(!a(t))return null;const e=t.clone(),{width:n,height:o,pixels:r}=t,i=r[0],l=e.pixels[0],s=t.mask;for(let t=2;t<o-1;t++){const e=new Map;for(let o=t-2;o<t+2;o++)for(let t=0;t<4;t++){const r=o*n+t;L(e,i[r],s?s[r]:1)}l[t*n]=P(e),l[t*n+1]=l[t*n+2]=l[t*n];let o=3;for(;o<n-1;o++){let r=(t-2)*n+o+1;L(e,i[r],s?s[r]:1),r=(t-1)*n+o+1,L(e,i[r],s?s[r]:1),r=t*n+o+1,L(e,i[r],s?s[r]:1),r=(t+1)*n+o+1,L(e,i[r],s?s[r]:1),r=(t-2)*n+o-3,R(e,i[r],s?s[r]:1),r=(t-1)*n+o-3,R(e,i[r],s?s[r]:1),r=t*n+o-3,R(e,i[r],s?s[r]:1),r=(t+1)*n+o-3,R(e,i[r],s?s[r]:1),l[t*n+o]=P(e)}l[t*n+o+1]=l[t*n+o]}for(let t=0;t<n;t++)l[t]=l[n+t]=l[2*n+t],l[(o-1)*n+t]=l[(o-2)*n+t];return e.updateStatistics(),e}function P(t){if(0===t.size)return 0;let e=0,n=-1,o=0;const r=t.keys();let i=r.next();for(;!i.done;)o=t.get(i.value),o>e&&(n=i.value,e=o),i=r.next();return n}function R(t,e,n){if(0===n)return;const o=t.get(e);1===o?t.delete(e):t.set(e,o-1)}function L(t,e,n){0!==n&&t.set(e,t.has(e)?t.get(e)+1:1)}function D(t,e,n){let{x:o,y:r}=e;const{width:l,height:s}=n;if(0===o&&0===r&&s===t.height&&l===t.width)return t;const{width:u,height:c}=t,h=Math.max(0,r),f=Math.max(0,o),p=Math.min(o+l,u),d=Math.min(r+s,c);if(p<0||d<0||!a(t))return null;o=Math.max(0,-o),r=Math.max(0,-r);const{pixels:g}=t,m=l*s,y=g.length,w=[];for(let e=0;e<y;e++){const n=g[e],a=i.A.createEmptyBand(t.pixelType,m);for(let t=h;t<d;t++){const e=t*u;let i=(t+r-h)*l+o;for(let t=f;t<p;t++)a[i++]=n[e+t]}w.push(a)}const C=new Uint8Array(m),A=t.mask;for(let t=h;t<d;t++){const e=t*u;let n=(t+r-h)*l+o;for(let t=f;t<p;t++)C[n++]=A?A[e+t]:1}const x=new i.A({width:n.width,height:n.height,pixelType:t.pixelType,pixels:w,mask:C});return x.updateStatistics(),x}function U(t,e=!0){if(!a(t))return null;const{pixels:n,width:o,height:r,mask:l,pixelType:s}=t,u=[],c=Math.round(o/2),h=Math.round(r/2),f=r-1,p=o-1;for(let t=0;t<n.length;t++){const l=n[t],a=i.A.createEmptyBand(s,c*h);let d=0;for(let t=0;t<r;t+=2)for(let n=0;n<o;n+=2){const r=l[t*o+n];if(e){const e=n===p?r:l[t*o+n+1],i=t===f?r:l[t*o+n+o],s=n===p?i:t===f?e:l[t*o+n+o+1];a[d++]=(r+e+i+s)/4}else a[d++]=r}u.push(a)}let d=null;if(null!=l){d=new Uint8Array(c*h);let t=0;for(let n=0;n<r;n+=2)for(let r=0;r<o;r+=2){const i=l[n*o+r];if(e){const e=r===p?i:l[n*o+r+1],a=n===f?i:l[n*o+r+o],s=r===p?a:n===f?e:l[n*o+r+o+1];d[t++]=i*e*a*s?1:0}else d[t++]=i}}return new i.A({width:c,height:h,pixelType:s,pixels:u,mask:d})}function G(t,e,n=0,o=!0){if(!a(t))return null;const{width:r,height:i}=e;let{width:l,height:s}=t;const u=new Map,c={x:0,y:0},h=1+n;let f=t;for(let t=0;t<h;t++){const n=Math.ceil(l/r),a=Math.ceil(s/i);for(let o=0;o<a;o++){c.y=o*i;for(let i=0;i<n;i++){c.x=i*r;const n=D(f,c,e);u.set(`${t}/${o}/${i}`,n)}}t<h-1&&(f=U(f,o)),l=Math.round(l/2),s=Math.round(s/2)}return u}function N(t){const{pixelBlock:e,tileSize:n,level:o,row:r,col:i,useBilinear:l}=t;if(!a(e))return null;const{width:s,height:u}=n,c=2**o,h=c*s,f=c*u;let p=D(e,{y:r*f,x:i*h},{width:h,height:f});if(!p)return null;for(let t=o;t>0;t--)p=U(p,l);return p}function O(t,e,n,o,r=0){const{width:i,height:l}=t,{width:a,height:s}=e,u=o.cols,c=o.rows,h=Math.ceil(a/u-.1/u),f=Math.ceil(s/c-.1/c);let p,d,g,m,y,w,C;const A=h*u,x=A*f*c,b=new Float32Array(x),v=new Float32Array(x),M=new Uint32Array(x),T=new Uint32Array(x);let k,I,S=0;for(let t=0;t<f;t++)for(let e=0;e<h;e++){p=12*(t*h+e),d=n[p],g=n[p+1],m=n[p+2],y=n[p+3],w=n[p+4],C=n[p+5];for(let n=0;n<c;n++){S=(t*c+n)*A+e*u,I=(n+.5)/c;for(let t=0;t<n;t++)k=(t+.5)/u,b[S+t]=(d*k+g*I+m)*i+r,v[S+t]=(y*k+w*I+C)*l+r,M[S+t]=Math.floor(b[S+t]),T[S+t]=Math.floor(v[S+t])}p+=6,d=n[p],g=n[p+1],m=n[p+2],y=n[p+3],w=n[p+4],C=n[p+5];for(let n=0;n<c;n++){S=(t*c+n)*A+e*u,I=(n+.5)/c;for(let t=n;t<u;t++)k=(t+.5)/u,b[S+t]=(d*k+g*I+m)*i+r,v[S+t]=(y*k+w*I+C)*l+r,M[S+t]=Math.floor(b[S+t]),T[S+t]=Math.floor(v[S+t])}}return{offsets_x:b,offsets_y:v,offsets_xi:M,offsets_yi:T,gridWidth:A}}function B(t,e){const{coefficients:n,spacing:o}=e,{offsets_x:r,offsets_y:i,gridWidth:l}=O(t,t,n,{rows:o[0],cols:o[1]}),{width:a,height:s}=t,u=new Float32Array(a*s),c=180/Math.PI;for(let t=0;t<s;t++)for(let e=0;e<a;e++){const n=t*l+e,o=0===t?n:n-l,h=t===s-1?n:n+l,f=r[o]-r[h],p=i[h]-i[o];if(isNaN(f)||isNaN(p))u[t*a+e]=90;else{let n=Math.atan2(p,f)*c;n=(360+n)%360,u[t*a+e]=n}}return u}function F(t,e,n,o,r="nearest"){if(!a(t))return null;"majority"===r&&(t=E(t));const{pixels:l,mask:s,bandMasks:u,pixelType:c}=t,h=t.width,f=t.height,p=i.A.getPixelArrayConstructor(c),d=l.length,{width:g,height:m}=e;let y=!1;for(let t=0;t<n.length;t+=3)-1===n[t]&&-1===n[t+1]&&-1===n[t+2]&&(y=!0);const{offsets_x:w,offsets_y:C,offsets_xi:A,offsets_yi:x,gridWidth:b}=O({width:h,height:f},e,n,o,"majority"===r?.5:0);let v;const M=(t,e,n,o)=>{const r=t instanceof Float32Array||t instanceof Float64Array?0:.5;for(let i=0;i<m;i++){v=i*b;for(let l=0;l<g;l++){if(w[v]<0||C[v]<0)t[i*g+l]=0;else if(o)t[i*g+l]=e[A[v]+x[v]*h];else{const o=Math.floor(w[v]),a=Math.floor(C[v]),s=Math.ceil(w[v]),u=Math.ceil(C[v]),c=w[v]-o,f=C[v]-a;if(!n||n[o+a*h]&&n[s+a*h]&&n[o+u*h]&&n[s+u*h]){const n=(1-c)*e[o+a*h]+c*e[s+a*h],p=(1-c)*e[o+u*h]+c*e[s+u*h];t[i*g+l]=(1-f)*n+f*p+r}else t[i*g+l]=e[A[v]+x[v]*h]}v++}}},T=[];let k;const I=u?.length===d,S=[];for(let t=0;t<d;t++){if(I){const e=new Uint8Array(g*m);M(e,u[t],u[t],!0),S.push(e)}k=new p(g*m),M(k,l[t],I?u[t]:s,"nearest"===r||"majority"===r),T.push(k)}const P=new i.A({width:g,height:m,pixelType:c,pixels:T,bandMasks:I?S:void 0});if(null!=s)P.mask=new Uint8Array(g*m),M(P.mask,s,s,!0);else if(y){P.mask=new Uint8Array(g*m);for(let t=0;t<g*m;t++)P.mask[t]=w[t]<0||C[t]<0?0:1}return P.updateStatistics(),P}function V(t){const{pixelBlock:e,extent:n,fieldNames:o,skipFactor:r,skipSpatialReference:i=!1,pixelIdOffset:a=0}=t,s=[],{width:u,height:c,pixels:h,mask:f}=e,p=t.imageRowSize??u,d=n.width/u,g=n.height/c,m=h.length,y=Math.floor(r/2),{xmin:w,ymax:C}=n,A=i?void 0:n.spatialReference.toJSON();for(let t=y;t<c;t+=r)for(let e=y;e<u;e+=r){const n=t*u+e;if(!f||f[n]){const r={x:w+(e+.5)*d,y:C-(t+.5)*g,spatialReference:A},i={[l]:a+t*p+e};for(let t=0;t<m;t++)i[o[t+1]]=h[t][n];s.push({geometry:r,attributes:i})}}return s}},34251(t,e,n){n.d(e,{FI:()=>d,KL:()=>u,Lu:()=>h,Rn:()=>g,Wu:()=>y,Y2:()=>p});var o=n(66552),r=n(47520),i=n(14140);const l=new Map;l.set("meter-per-second",1),l.set("kilometer-per-hour",.277778),l.set("knots",.514444),l.set("feet-per-second",.3048),l.set("mile-per-hour",.44704);const a=180/Math.PI,s=new o.J({esriMetersPerSecond:"meter-per-second",esriKilometersPerHour:"kilometer-per-hour",esriKnots:"knots",esriFeetPerSecond:"feet-per-second",esriMilesPerHour:"mile-per-hour"});function u(t,e){return l.get(t)/l.get(e)||1}function c(t){return(450-t)%360}function h(t,e="geographic"){const[n,o]=t,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n)*a;return i=(360+i)%360,"geographic"===e&&(i=c(i)),[r,i]}function f(t,e="geographic"){let n=t[1];"geographic"===e&&(n=c(n)),n%=360;const o=t[0];return[o*Math.cos(n/a),o*Math.sin(n/a)]}function p(t,e,n,o="geographic"){if(!(0,r.AB)(t)||null==n)return t;const i="vector-magdir"===e?t.clone():d(t,e),l=i.pixels[1];for(let t=0;t<l.length;t++)l[t]="geographic"===o?(l[t]+n[t]+270)%360:(l[t]+360-n[t])%360;return"vector-magdir"===e?i:d(i,"vector-magdir")}function d(t,e,n="geographic",o=1){if(!(0,r.AB)(t))return t;const{pixels:l,width:a,height:s}=t,u=a*s,c=l[0],p=l[1],d=t.pixelType.startsWith("f")?t.pixelType:"f32",g=i.A.createEmptyBand(d,u),m=i.A.createEmptyBand(d,u);let y=0;for(let t=0;t<s;t++)for(let t=0;t<a;t++)"vector-uv"===e?([g[y],m[y]]=h([c[y],p[y]],n),g[y]*=o):([g[y],m[y]]=f([c[y],p[y]],n),g[y]*=o,m[y]*=o),y++;const w=new i.A({pixelType:d,width:t.width,height:t.height,mask:t.mask,validPixelCount:t.validPixelCount,maskIsAlpha:t.maskIsAlpha,pixels:[g,m]});return w.updateStatistics(),w}function g(t,e,n=1){if(1===n||!(0,r.AB)(t))return t;const o=t.clone(),{pixels:i,width:l,height:a}=o,s=i[0],u=i[1];let c=0;for(let t=0;t<a;t++)for(let t=0;t<l;t++)"vector-uv"===e?(s[c]*=n,u[c]*=n):s[c]*=n,c++;return o.updateStatistics(),o}function m(t,e,n,o=1){const r=Math.sqrt(t*t+e*e)/o,i=(2*Math.PI+Math.atan2(e,t))%(2*Math.PI);return[r,(2*Math.PI+i-n)%(2*Math.PI)]}function y(t,e,n,o=[0,0],r=.5){const{width:l,height:a,mask:s}=t,[u,c]=t.pixels,[p,d]=o,g=Math.round((l-p)/n),m=Math.round((a-d)/n),y=g*m,w=new Float32Array(y),C=new Float32Array(y),A=new Uint8Array(y),x="vector-uv"===e;for(let t=0;t<m;t++)for(let e=0;e<g;e++){let o=0;const i=t*g+e,m=Math.max(0,t*n+d),y=Math.max(0,e*n+p),b=Math.min(a,m+n),v=Math.min(l,y+n);for(let t=m;t<b;t++)for(let e=y;e<v;e++){const n=t*l+e;if(!s||s[n]){o++;const t=x?[u[n],c[n]]:[u[n],(360+c[n])%360],[e,r]=x?t:f(t);w[i]+=e,C[i]+=r}}if(o>=(b-m)*(v-y)*(1-r)){A[i]=1;const[t,e]=h([w[i]/o,C[i]/o]);w[i]=t,C[i]=e}else A[i]=0,w[i]=0,C[i]=0}const b=new i.A({width:g,height:m,pixels:[w,C],mask:A});return b.updateStatistics(),b}!function(t=0,e=0,n=Math.PI,o=!0){o&&(n=(2*Math.PI-n)%(2*Math.PI));const r=o?-1:1,i=13*r,l=-7*r,a=-2*r,s=-16*r,u=21.75,[c,h]=m(0,e+i,n,u),[f,p]=m(t-5.5,e+l,n,u),[d,g]=m(t+5.5,e+l,n,u),[y,w]=m(t-1.5,e+a,n,u),[C,A]=m(t+1.5,e+a,n,u),[x,b]=m(t-1.5,e+s,n,u),[v,M]=m(t+1.5,e+s,n,u)}(0,0,0),n.d(e,["MD",0,s])},14140(t,e,n){n.d(e,{A:()=>f});var o,r=n(32198),i=n(49186),l=n(25482),a=n(4718),s=n(53966),u=n(91429),c=n(94778),h=n(4151);let f=class extends l.o{static{o=this}static createEmptyBand(t,e){return new(o.getPixelArrayConstructor(t))(e)}static combineBandMasks(t){if(t.length<2)return t[0];const e=t[0].length,n=new Uint8Array(e).fill(255);for(let o=0;o<t.length;o++){const r=t[o];for(let t=0;t<e;t++)r[t]||(n[t]=0)}return n}static getPixelArrayConstructor(t){let e;switch(t){case"u1":case"u2":case"u4":case"u8":e=Uint8Array;break;case"u16":e=Uint16Array;break;case"u32":e=Uint32Array;break;case"s8":e=Int8Array;break;case"s16":e=Int16Array;break;case"s32":e=Int32Array;break;case"f32":case"c64":case"c128":case"unknown":e=Float32Array;break;case"f64":e=Float64Array}return e}constructor(t){super(t),this.width=null,this.height=null,this.pixelType="f32",this.validPixelCount=null,this.mask=null,this.maskIsAlpha=!1,this.premultiplyAlpha=!1,this.statistics=null,this.depthCount=1}castPixelType(t){if(!t)return"f32";let e=t.toLowerCase();return["u1","u2","u4"].includes(e)?e="u8":["unknown","u8","s8","u16","s16","u32","s32","f32","f64"].includes(e)||(e="f32"),e}getPlaneCount(){return this.pixels?.length}addData(t){if(!t.pixels||t.pixels.length!==this.width*this.height)throw new i.A("pixelblock:invalid-or-missing-pixels","add data requires valid pixels array that has same length defined by pixel block width * height");this.pixels||(this.pixels=[]),this.statistics||(this.statistics=[]),this.pixels.push(t.pixels),this.statistics.push(t.statistics??new h.A)}getAsRGBA(){const t=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case"s8":case"s16":case"u16":case"s32":case"u32":case"f32":case"f64":this._fillFromNon8Bit(t);break;default:this._fillFrom8Bit(t)}return new Uint8ClampedArray(t)}getAsRGBAFloat(){const t=new Float32Array(this.width*this.height*4);return this._fillFrom32Bit(t),t}updateStatistics(){if(!this.pixels)return;this.statistics=this.pixels.map(t=>function(t,e){let n=1/0,o=-1/0;const r=t.length;let i,l=0;if(null!=e)for(i=0;i<r;i++)e[i]&&(l=t[i],n=l<n?l:n,o=l>o?l:o);else for(i=0;i<r;i++)l=t[i],n=l<n?l:n,o=l>o?l:o;return new h.A(n,o)}(t,this.mask));const t=this.mask;let e=0;if(null!=t)for(let n=0;n<t.length;n++)t[n]&&e++;else e=this.width*this.height;this.validPixelCount=e}clamp(t){if(!t||"f64"===t||"f32"===t||!this.pixels)return;const[e,n]=(0,c.hP)(t),r=this.pixels,i=this.width*this.height,l=r.length;let a,s,u;const h=[];for(let c=0;c<l;c++){u=o.createEmptyBand(t,i),a=r[c];for(let t=0;t<i;t++)s=a[t],u[t]=s>n?n:s<e?e:s;h.push(u)}this.pixels=h,this.pixelType=t}extractBands(t){const{pixels:e,statistics:n}=this;if(null==t||0===t.length||!e||0===e.length)return this;const r=e.length,i=t.some(t=>t>=e.length),l=r===t.length&&!t.some((t,e)=>t!==e);if(i||l)return this;const a=this.bandMasks?.length===r?t.map(t=>this.bandMasks[t]):void 0;let{mask:s,validPixelCount:u}=this;const{width:c,height:h}=this;return a?.length&&(s=o.combineBandMasks(a),u=s.filter(t=>!!t).length),new o({pixelType:this.pixelType,width:c,height:h,mask:s,bandMasks:a,validPixelCount:u,maskIsAlpha:this.maskIsAlpha,pixels:t.map(t=>e[t]),statistics:n&&t.map(t=>n[t])})}clone(){const t=new o({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount,premultiplyAlpha:this.premultiplyAlpha,depthCount:this.depthCount});let e;null!=this.mask&&(t.mask=new Uint8Array(this.mask)),this.noDataValues&&(t.noDataValues=[...this.noDataValues]),this.bandMasks&&(t.bandMasks=this.bandMasks.map(t=>new Uint8Array(t)));const n=o.getPixelArrayConstructor(this.pixelType);if(this.pixels&&this.pixels.length>0){t.pixels=[];const o=!!this.pixels[0].slice;for(e=0;e<this.pixels.length;e++)t.pixels[e]=o?this.pixels[e].slice():new n(this.pixels[e])}if(this.statistics)for(t.statistics=[],e=0;e<this.statistics.length;e++)t.statistics[e]=(0,a.o8)(this.statistics[e]);return t}getTransferableObject(){const{pixels:t,bandMasks:e,mask:n}=this;this.pixels=[],this.bandMasks=void 0,this.mask=void 0;const o=this.toJSON();this.pixels=t,this.bandMasks=e,this.mask=n,o.pixels=t?[...t]:t,o.bandMasks=e?[...e]:e,o.mask=n;const r=[];return[...t??[],n,...e??[]].filter(t=>null!=t&&ArrayBuffer.isView(t)).forEach(t=>{t&&!r.includes(t.buffer)&&r.push(t.buffer)}),{pixelBlock:o,transferList:r}}_fillFrom8Bit(t){const{mask:e,maskIsAlpha:n,premultiplyAlpha:o,pixels:r}=this;if(!t||!r?.length)return void s.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");let i,l,a,u;i=l=a=r[0],r.length>=3?(l=r[1],a=r[2]):2===r.length&&(l=r[1]);const c=new Uint32Array(t),h=this.width*this.height;if(i.length===h)if(null!=e&&e.length===h)if(n)for(u=0;u<h;u++){const t=e[u];if(t){const e=t/255;c[u]=o?t<<24|a[u]*e<<16|l[u]*e<<8|i[u]*e:t<<24|a[u]<<16|l[u]<<8|i[u]}}else for(u=0;u<h;u++)e[u]&&(c[u]=255<<24|a[u]<<16|l[u]<<8|i[u]);else for(u=0;u<h;u++)c[u]=255<<24|a[u]<<16|l[u]<<8|i[u];else s.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.")}_fillFromNon8Bit(t){const{pixels:e,mask:n,statistics:o}=this;if(!t||!e?.length)return void s.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.");const r=this.pixelType;let i=1,l=0,a=1;if(o&&o.length>0){for(const t of o)if(null!=t.minValue&&(l=Math.min(l,t.minValue)),null!=t.maxValue&&null!=t.minValue){const e=t.maxValue-t.minValue;a=Math.max(a,e)}i=255/a}else{let t=255;"s8"===r?(l=-128,t=127):"u16"===r?t=65535:"s16"===r?(l=-32768,t=32767):"u32"===r?t=4294967295:"s32"===r?(l=-2147483648,t=2147483647):"f32"===r?(l=-34e38,t=34e38):"f64"===r&&(l=-Number.MAX_VALUE,t=Number.MAX_VALUE),i=255/(t-l)}const u=new Uint32Array(t),c=this.width*this.height;let h,f,p,d,g;if(h=f=p=e[0],h.length!==c)return s.A.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(e.length>=2)if(f=e[1],e.length>=3&&(p=e[2]),null!=n&&n.length===c)for(d=0;d<c;d++)n[d]&&(u[d]=255<<24|(p[d]-l)*i<<16|(f[d]-l)*i<<8|(h[d]-l)*i);else for(d=0;d<c;d++)u[d]=255<<24|(p[d]-l)*i<<16|(f[d]-l)*i<<8|(h[d]-l)*i;else if(null!=n&&n.length===c)for(d=0;d<c;d++)g=(h[d]-l)*i,n[d]&&(u[d]=255<<24|g<<16|g<<8|g);else for(d=0;d<c;d++)g=(h[d]-l)*i,u[d]=255<<24|g<<16|g<<8|g}_fillFrom32Bit(t){const{pixels:e,mask:n}=this;if(!t||!e?.length)return s.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The input pixel block is empty.");let o,r,i,l;o=r=i=e[0],e.length>=3?(r=e[1],i=e[2]):2===e.length&&(r=e[1]);const a=this.width*this.height;if(o.length!==a)return s.A.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let u=0;if(null!=n&&n.length===a)for(l=0;l<a;l++)t[u++]=o[l],t[u++]=r[l],t[u++]=i[l],t[u++]=1&n[l];else for(l=0;l<a;l++)t[u++]=o[l],t[u++]=r[l],t[u++]=i[l],t[u++]=1}};(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"width",void 0),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"height",void 0),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"pixelType",void 0),(0,r.Cg)([(0,u.wg)("pixelType")],f.prototype,"castPixelType",null),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"validPixelCount",void 0),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"mask",void 0),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"maskIsAlpha",void 0),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"pixels",void 0),(0,r.Cg)([(0,u.MZ)()],f.prototype,"premultiplyAlpha",void 0),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"statistics",void 0),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"depthCount",void 0),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"noDataValues",void 0),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],f.prototype,"bandMasks",void 0),f=o=(0,r.Cg)([(0,u.$K)("esri.layers.support.PixelBlock")],f)},87186(t,e,n){n.d(e,{A:()=>A});var o,r=n(32198),i=n(25482),l=n(4718),a=n(91429),s=n(5443),u=n(16930);function c(t){return t=Number(t),isNaN(t)?void 0:t}let h=class extends i.o{static{o=this}constructor(t){super(t),this.name=null,this.minWavelength=void 0,this.maxWavelength=void 0,this.radianceBias=void 0,this.radianceGain=void 0,this.reflectanceBias=void 0,this.reflectanceGain=void 0,this.solarIrradiance=void 0}clone(){return new o({name:this.name,minWavelength:this.minWavelength,maxWavelength:this.maxWavelength,radianceBias:this.radianceBias,radianceGain:this.radianceGain,reflectanceBias:this.reflectanceBias,reflectanceGain:this.reflectanceGain,solarIrradiance:this.solarIrradiance})}};(0,r.Cg)([(0,a.MZ)({json:{name:"BandName",write:!0}})],h.prototype,"name",void 0),(0,r.Cg)([(0,a.MZ)({json:{read:{source:["WavelengthMin","Wavelength","WAVELENGTH"],reader:(t,e)=>c(e.WavelengthMin??e.Wavelength??e.WAVELENGTH)},write:{target:"WavelengthMin"}}})],h.prototype,"minWavelength",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"WavelengthMax",read:{reader:c},write:!0}})],h.prototype,"maxWavelength",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"RadianceBias",read:{reader:c},write:!0}})],h.prototype,"radianceBias",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"RadianceGain",read:{reader:c},write:!0}})],h.prototype,"radianceGain",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"ReflectanceBias",read:{reader:c},write:!0}})],h.prototype,"reflectanceBias",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"ReflectanceGain",read:{reader:c},write:!0}})],h.prototype,"reflectanceGain",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"SolarIrradiance",read:{reader:c},write:!0}})],h.prototype,"solarIrradiance",void 0),h=o=(0,r.Cg)([(0,a.$K)("esri.layers.support.RasterBandInfo")],h);var f,p=n(13868),d=n(36005),g=n(43937);function m(t){return t=Number(t),isNaN(t)?void 0:t}let y=class extends i.o{static{f=this}constructor(t){super(t),this.acquisitionDate=void 0,this.cloudCover=void 0,this.productName=void 0,this.sensorName=null,this.sensorAzimuth=void 0,this.sensorElevation=void 0,this.sunAzimuth=void 0,this.sunElevation=void 0}readAcquisitionDate(t){return new Date(t)}writeAcquisitionDate(t,e){e.AcquisitionDate=t.getTime()}clone(){return new f({acquisitionDate:this.acquisitionDate,cloudCover:this.cloudCover,productName:this.productName,sensorName:this.sensorName,sensorAzimuth:this.sensorAzimuth,sensorElevation:this.sensorElevation,sunAzimuth:this.sunAzimuth,sunElevation:this.sunElevation})}};(0,r.Cg)([(0,a.MZ)({type:Date,json:{name:"AcquisitionDate",write:!0}})],y.prototype,"acquisitionDate",void 0),(0,r.Cg)([(0,d.w)("acquisitionDate")],y.prototype,"readAcquisitionDate",null),(0,r.Cg)([(0,g.K)("acquisitionDate")],y.prototype,"writeAcquisitionDate",null),(0,r.Cg)([(0,a.MZ)({json:{name:"CloudCover",read:{reader:m},write:!0}})],y.prototype,"cloudCover",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"ProductName",write:!0}})],y.prototype,"productName",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"SensorName",write:!0}})],y.prototype,"sensorName",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"SensorAzimuth",read:{reader:m},write:!0}})],y.prototype,"sensorAzimuth",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"SensorElevation",read:{reader:m},write:!0}})],y.prototype,"sensorElevation",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"SunAzimuth",read:{reader:m},write:!0}})],y.prototype,"sunAzimuth",void 0),(0,r.Cg)([(0,a.MZ)({json:{name:"SunElevation",read:{reader:m},write:!0}})],y.prototype,"sunElevation",void 0),y=f=(0,r.Cg)([(0,a.$K)("esri.layers.support.RasterSensorInfo")],y);var w,C=n(20223);let A=class extends i.o{static{w=this}constructor(t){super(t),this.attributeTable=null,this.bandCount=null,this.colormap=null,this.extent=null,this.format=void 0,this.height=null,this.width=null,this.histograms=null,this.keyProperties={},this.multidimensionalInfo=null,this.noDataValue=null,this.pixelSize=null,this.pixelType=null,this.isPseudoSpatialReference=!1,this.spatialReference=null,this.statistics=null,this.storageInfo=null,this.transform=null}get bandInfos(){const t=this.keyProperties.BandProperties,{bandCount:e}=this;if(!t?.length||t.length<e){const t=[];for(let n=1;n<=e;n++)t.push(new h({name:"band_"+n}));return t}const n=t.map(t=>h.fromJSON(t));for(let t=0;t<n.length;t++)n[t].name=n[t].name||"band_"+(t+1);return n}get dataType(){const t=this.keyProperties?.DataType?.toLowerCase()??"generic";return"stdtime"===t?"standard-time":t}get nativeExtent(){return this._get("nativeExtent")||this.extent}set nativeExtent(t){t&&this._set("nativeExtent",t)}get nativePixelSize(){if(null==this.transform||!this.transform.affectsPixelSize)return this.pixelSize;const t=this.nativeExtent;return{x:t.width/this.width,y:t.height/this.height}}get hasMultidimensionalTranspose(){return!!this.storageInfo?.transposeInfo}get sensorInfo(){if(this.keyProperties?.SensorName)return y.fromJSON(this.keyProperties)}clone(){return new w({attributeTable:(0,l.o8)(this.attributeTable),bandCount:this.bandCount,colormap:(0,l.o8)(this.colormap),extent:(0,l.o8)(this.extent),format:this.format,height:this.height,width:this.width,histograms:(0,l.o8)(this.histograms),keyProperties:(0,l.o8)(this.keyProperties),multidimensionalInfo:(0,l.o8)(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:(0,l.o8)(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:(0,l.o8)(this.spatialReference),statistics:(0,l.o8)(this.statistics),storageInfo:(0,l.o8)(this.storageInfo),transform:(0,l.o8)(this.transform)})}};(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"attributeTable",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"bandCount",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],A.prototype,"bandInfos",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"colormap",void 0),(0,r.Cg)([(0,a.MZ)({type:String,readOnly:!0})],A.prototype,"dataType",null),(0,r.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],A.prototype,"extent",void 0),(0,r.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],A.prototype,"nativeExtent",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"nativePixelSize",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"format",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"height",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"width",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"hasMultidimensionalTranspose",null),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"histograms",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"keyProperties",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"multidimensionalInfo",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"noDataValue",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"pixelSize",void 0),(0,r.Cg)([(0,a.MZ)({type:p.e8.apiValues,json:{write:!0}})],A.prototype,"pixelType",void 0),(0,r.Cg)([(0,a.MZ)()],A.prototype,"isPseudoSpatialReference",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],A.prototype,"sensorInfo",null),(0,r.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],A.prototype,"spatialReference",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"statistics",void 0),(0,r.Cg)([(0,a.MZ)({type:C.A,json:{write:!0}})],A.prototype,"storageInfo",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],A.prototype,"transform",void 0),A=w=(0,r.Cg)([(0,a.$K)("esri.layers.support.RasterInfo")],A)},20223(t,e,n){n.d(e,{A:()=>u});var o,r=n(32198),i=n(25482),l=n(4718),a=n(91429),s=n(86738);let u=class extends i.o{constructor(){super(...arguments),this.blockWidth=void 0,this.blockHeight=void 0,this.compression=null,this.origin=null,this.firstPyramidLevel=null,this.maximumPyramidLevel=null,this.pyramidScalingFactor=2,this.pyramidBlockWidth=null,this.pyramidBlockHeight=null,this.isBsqTile=!1,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}static{o=this}clone(){return new o({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:(0,l.o8)(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:(0,l.o8)(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isBsqTile:this.isBsqTile,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:(0,l.o8)(this.tileInfo),transposeInfo:(0,l.o8)(this.transposeInfo),blockBoundary:(0,l.o8)(this.blockBoundary)})}};(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"blockWidth",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"blockHeight",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"compression",void 0),(0,r.Cg)([(0,a.MZ)({type:s.A,json:{write:!0}})],u.prototype,"origin",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"firstPyramidLevel",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"maximumPyramidLevel",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"pyramidResolutions",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidScalingFactor",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidBlockWidth",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],u.prototype,"pyramidBlockHeight",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"isBsqTile",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],u.prototype,"isVirtualTileInfo",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"tileInfo",void 0),(0,r.Cg)([(0,a.MZ)()],u.prototype,"transposeInfo",void 0),(0,r.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"blockBoundary",void 0),u=o=(0,r.Cg)([(0,a.$K)("esri.layers.support.RasterStorageInfo")],u)},4151(t,e,n){n.d(e,{A:()=>o});class o{constructor(t=null,e=null,n=null){this.minValue=t,this.maxValue=e,this.noDataValue=n}}},13868(t,e,n){var o=n(66552);const r=(0,o.O)()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),i=(0,o.O)()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"}),l=(0,o.O)()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"});n.d(e,["SZ",0,r,"e8",0,l,"hm",0,i])},67369(t,e,n){n.d(e,{M5:()=>f,R8:()=>m,S2:()=>y,hf:()=>A,hs:()=>h,iv:()=>g,vL:()=>x});var o=n(85334),r=n(66552),i=n(12195);const l=[{id:"aspect",type:"multipart",colorRamps:[{fromColor:[190,190,190],toColor:[255,45,8]},{fromColor:[255,45,8],toColor:[255,181,61]},{fromColor:[255,181,61],toColor:[255,254,52]},{fromColor:[255,254,52],toColor:[0,251,50]},{fromColor:[0,251,50],toColor:[255,254,52]},{fromColor:[0,253,255],toColor:[0,181,255]},{fromColor:[0,181,255],toColor:[26,35,253]},{fromColor:[26,35,253],toColor:[255,57,251]},{fromColor:[255,57,251],toColor:[255,45,8]}]},{id:"black-to-white",fromColor:[0,0,0],toColor:[255,255,255]},{id:"blue-bright",fromColor:[204,204,255],toColor:[0,0,224]},{id:"blue-light-to-dark",fromColor:[211,229,232],toColor:[46,100,140]},{id:"blue-green-bright",fromColor:[203,245,234],toColor:[48,207,146]},{id:"blue-green-light-to-dark",fromColor:[216,242,237],toColor:[21,79,74]},{id:"brown-light-to-dark",fromColor:[240,236,170],toColor:[102,72,48]},{id:"brown-to-blue-green-diverging-right",type:"multipart",colorRamps:[{fromColor:[156,85,31],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[33,130,145]}]},{id:"brown-to-blue-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[110,70,45],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[48,100,102]}]},{id:"coefficient-bias",fromColor:[214,214,255],toColor:[0,57,148]},{id:"cold-to-hot-diverging",type:"multipart",colorRamps:[{fromColor:[69,117,181],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[214,47,39]}]},{id:"condition-number",type:"multipart",colorRamps:[{fromColor:[0,97,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,34,0]}]},{id:"cyan-to-purple",type:"multipart",colorRamps:[{fromColor:[0,245,245],toColor:[0,0,245]},{fromColor:[0,0,245],toColor:[245,0,245]}]},{id:"cyan-light-to-blue-dark",type:"multipart",colorRamps:[{fromColor:[182,237,240],toColor:[31,131,224]},{fromColor:[31,131,224],toColor:[9,9,145]}]},{id:"distance",fromColor:[255,200,0],toColor:[0,0,255]},{id:"elevation1",type:"multipart",colorRamps:[{fromColor:[175,240,233],toColor:[255,255,179]},{fromColor:[255,255,179],toColor:[0,128,64]},{fromColor:[0,128,64],toColor:[252,186,3]},{fromColor:[252,186,3],toColor:[128,0,0]},{fromColor:[120,0,0],toColor:[105,48,13]},{fromColor:[105,48,13],toColor:[171,171,171]},{fromColor:[171,171,171],toColor:[255,252,255]}]},{id:"elevation2",type:"multipart",colorRamps:[{fromColor:[118,219,211],toColor:[255,255,199]},{fromColor:[255,255,199],toColor:[255,255,128]},{fromColor:[255,255,128],toColor:[217,194,121]},{fromColor:[217,194,121],toColor:[135,96,38]},{fromColor:[135,96,38],toColor:[150,150,181]},{fromColor:[150,150,181],toColor:[181,150,181]},{fromColor:[181,150,181],toColor:[255,252,255]}]},{id:"errors",fromColor:[255,235,214],toColor:[196,10,10]},{id:"gray-light-to-dark",fromColor:[219,219,219],toColor:[69,69,69]},{id:"green-bright",fromColor:[204,255,204],toColor:[14,204,14]},{id:"green-light-to-dark",fromColor:[220,245,233],toColor:[34,102,51]},{id:"green-to-blue",type:"multipart",colorRamps:[{fromColor:[32,204,16],toColor:[0,242,242]},{fromColor:[0,242,242],toColor:[2,33,227]}]},{id:"orange-bright",fromColor:[255,235,204],toColor:[240,118,5]},{id:"orange-light-to-dark",fromColor:[250,233,212],toColor:[171,65,36]},{id:"partial-spectrum",type:"multipart",colorRamps:[{fromColor:[242,241,162],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]},{fromColor:[252,3,69],toColor:[176,7,237]},{fromColor:[176,7,237],toColor:[2,29,173]}]},{id:"partial-spectrum-1-diverging",type:"multipart",colorRamps:[{fromColor:[135,38,38],toColor:[240,149,12]},{fromColor:[240,149,12],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[74,80,181]},{fromColor:[74,80,181],toColor:[39,32,122]}]},{id:"partial-spectrum-2-diverging",type:"multipart",colorRamps:[{fromColor:[115,77,42],toColor:[201,137,52]},{fromColor:[201,137,52],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[91,63,176]},{fromColor:[91,63,176],toColor:[81,13,97]}]},{id:"pink-to-yellow-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[158,30,113],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[99,110,45]}]},{id:"pink-to-yellow-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,47,73],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[22,59,15]}]},{id:"precipitation",type:"multipart",colorRamps:[{fromColor:[194,82,60],toColor:[237,161,19]},{fromColor:[237,161,19],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,219,0]},{fromColor:[0,219,0],toColor:[32,153,143]},{fromColor:[32,153,143],toColor:[11,44,122]}]},{id:"prediction",type:"multipart",colorRamps:[{fromColor:[40,146,199],toColor:[250,250,100]},{fromColor:[250,250,100],toColor:[232,16,20]}]},{id:"purple-bright",fromColor:[255,204,255],toColor:[199,0,199]},{id:"purple-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[77,32,150],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[20,122,11]}]},{id:"purple-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[67,14,89],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[24,79,15]}]},{id:"purple-blue-bright",fromColor:[223,184,230],toColor:[112,12,242]},{id:"purple-blue-light-to-dark",fromColor:[229,213,242],toColor:[93,44,112]},{id:"purple-red-bright",fromColor:[255,204,225],toColor:[199,0,99]},{id:"purple-red-light-to-dark",fromColor:[250,215,246],toColor:[143,17,57]},{id:"red-bright",fromColor:[255,204,204],toColor:[219,0,0]},{id:"red-light-to-dark",fromColor:[255,224,224],toColor:[143,10,10]},{id:"red-to-blue-diverging-bright",type:"multipart",colorRamps:[{fromColor:[196,69,57],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[48,95,207]}]},{id:"red-to-blue-diverging-dark",type:"multipart",colorRamps:[{fromColor:[107,13,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[13,53,97]}]},{id:"red-to-green",type:"multipart",colorRamps:[{fromColor:[245,0,0],toColor:[245,245,0]},{fromColor:[245,245,0],toColor:[0,245,0]}]},{id:"red-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[186,20,20],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[54,145,33]}]},{id:"red-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,21,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[16,69,16]}]},{id:"slope",type:"multipart",colorRamps:[{fromColor:[56,168,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]},{id:"spectrum-full-bright",type:"multipart",colorRamps:[{fromColor:[255,0,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,0,255]}]},{id:"spectrum-full-dark",type:"multipart",colorRamps:[{fromColor:[153,0,0],toColor:[153,153,0]},{fromColor:[153,153,0],toColor:[0,153,153]},{fromColor:[0,153,153],toColor:[0,0,153]}]},{id:"spectrum-full-light",type:"multipart",colorRamps:[{fromColor:[255,153,153],toColor:[255,255,153]},{fromColor:[255,255,153],toColor:[153,255,255]},{fromColor:[153,255,255],toColor:[153,153,255]}]},{id:"surface",type:"multipart",colorRamps:[{fromColor:[112,153,89],toColor:[242,238,162]},{fromColor:[242,238,162],toColor:[242,206,133]},{fromColor:[242,206,133],toColor:[194,140,124]},{fromColor:[194,140,124],toColor:[255,242,255]}]},{id:"temperature",type:"multipart",colorRamps:[{fromColor:[255,252,255],toColor:[255,0,255]},{fromColor:[255,0,255],toColor:[0,0,255]},{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,255,0]},{fromColor:[0,255,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,128,0]},{fromColor:[255,128,0],toColor:[128,0,0]}]},{id:"white-to-black",fromColor:[255,255,255],toColor:[0,0,0]},{id:"yellow-to-dark-red",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[242,167,46]},{fromColor:[242,167,46],toColor:[107,0,0]}]},{id:"yellow-to-green-to-dark-blue",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[56,224,9]},{fromColor:[56,224,9],toColor:[26,147,171]},{fromColor:[26,147,171],toColor:[12,16,120]}]},{id:"yellow-to-red",fromColor:[245,245,0],toColor:[255,0,0]},{id:"yellow-green-bright",fromColor:[236,252,204],toColor:[157,204,16]},{id:"yellow-green-light-to-dark",fromColor:[215,240,175],toColor:[96,107,45]}],a=new r.J({Aspect:"aspect","Black to White":"black-to-white","Blue Bright":"blue-bright","Blue Light to Dark":"blue-light-to-dark","Blue-Green Bright":"blue-green-bright","Blue-Green Light to Dark":"blue-green-light-to-dark","Brown Light to Dark":"brown-light-to-dark","Brown to Blue Green Diverging, Bright":"brown-to-blue-green-diverging-right","Brown to Blue Green Diverging, Dark":"brown-to-blue-green-diverging-dark","Coefficient Bias":"coefficient-bias","Cold to Hot Diverging":"cold-to-hot-diverging","Condition Number":"condition-number","Cyan to Purple":"cyan-to-purple","Cyan-Light to Blue-Dark":"cyan-light-to-blue-dark",Distance:"distance","Elevation #1":"elevation1","Elevation #2":"elevation2",Errors:"errors","Gray Light to Dark":"gray-light-to-dark","Green Bright":"green-bright","Green Light to Dark":"green-light-to-dark","Green to Blue":"green-to-blue","Orange Bright":"orange-bright","Orange Light to Dark":"orange-light-to-dark","Partial Spectrum":"partial-spectrum","Partial Spectrum 1 Diverging":"partial-spectrum-1-diverging","Partial Spectrum 2 Diverging":"partial-spectrum-2-diverging","Pink to YellowGreen Diverging, Bright":"pink-to-yellow-green-diverging-bright","Pink to YellowGreen Diverging, Dark":"pink-to-yellow-green-diverging-dark",Precipitation:"precipitation",Prediction:"prediction","Purple Bright":"purple-bright","Purple to Green Diverging, Bright":"purple-to-green-diverging-bright","Purple to Green Diverging, Dark":"purple-to-green-diverging-dark","Purple-Blue Bright":"purple-blue-bright","Purple-Blue Light to Dark":"purple-blue-light-to-dark","Purple-Red Bright":"purple-red-bright","Purple-Red Light to Dark":"purple-red-light-to-dark","Red Bright":"red-bright","Red Light to Dark":"red-light-to-dark","Red to Blue Diverging, Bright":"red-to-blue-diverging-bright","Red to Blue Diverging, Dark":"red-to-blue-diverging-dark","Red to Green":"red-to-green","Red to Green Diverging, Bright":"red-to-green-diverging-bright","Red to Green Diverging, Dark":"red-to-green-diverging-dark",Slope:"slope","Spectrum-Full Bright":"spectrum-full-bright","Spectrum-Full Dark":"spectrum-full-dark","Spectrum-Full Light":"spectrum-full-light",Surface:"surface",Temperature:"temperature","White to Black":"white-to-black","Yellow to Dark Red":"yellow-to-dark-red","Yellow to Green to Dark Blue":"yellow-to-green-to-dark-blue","Yellow to Red":"yellow-to-red","Yellow-Green Bright":"yellow-green-bright","Yellow-Green Light to Dark":"yellow-green-light-to-dark"});function s(t,e){if(!t||!e||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]>e[n]+2||t[n]<e[n]-2)return!1;return!0}function u(t){const e=t.clone();return e.fromColor=t.toColor,e.toColor=t.fromColor,e}function c(t,e){const n=e??l;if("algorithmic"===t.type){const e=t.fromColor.toRgb(),o=t.toColor.toRgb();return n.find(t=>s(e,t.fromColor)&&s(o,t.toColor))?.id}if(t.weights?.length)return;const o=t.colorRamps?.map(t=>({fromColor:t.fromColor.toRgb(),toColor:t.toColor.toRgb()}));return n.find(t=>{const e=t.colorRamps;return!(!o||o.length!==e?.length)&&e.every((t,e)=>s(o[e].fromColor,t.fromColor)&&s(o[e].toColor,t.toColor))})?.id}function h(t,e=!1){const n="string"==typeof t?t:function(t,e,n=!1){if(!t)return;let o=!1,r=c(t,e);return null!=r||n||(o=!0,r=c(t=function(t){if("multipart"===t.type){const e=t.clone();return e.colorRamps?.length?(e.colorRamps=e.colorRamps.reverse().map(t=>u(t)),e):e}return u(t)}(t),e)),r?{id:r,inverted:o}:void 0}(t,void 0,e)?.id;return n?a.toJSON(n):null}function f(t,e="esriCIELabAlgorithm"){const n=l.find(({id:e})=>e===t);return n?n.colorRamps?{type:"multipart",colorRamps:n.colorRamps.map(t=>({type:"algorithmic",algorithm:e,fromColor:[...t.fromColor],toColor:[...t.toColor]}))}:{type:"algorithmic",algorithm:e,fromColor:[...n.fromColor],toColor:[...n.toColor]}:null}function p(t){t??={};const e=t.numColors||256,n=t.distanceOffset||0,o=null!=t.isCustomInterval?t.isCustomInterval:null!==t.distanceInterval&&t.distanceInterval!==1/(e-1),r=t.distanceInterval||1/(e-1);return{...t,numColors:e,distanceOffset:n,interpolateAlpha:!!t.interpolateAlpha,distanceInterval:r,isCustomInterval:o,weights:t.weights}}function d(t,e){const{fromColor:n,toColor:r}=t,i=3===n.length?[...n,255]:[...n],l=3===r.length?[...r,255]:[...r],a=t.algorithm||"esriCIELabAlgorithm",s=p(e),{numColors:u,distanceOffset:c,isCustomInterval:h,interpolateAlpha:f}=s;if(1===u&&0===c)return[i];if(2===u&&0===c&&!h)return[i,l];const d={r:i[0],g:i[1],b:i[2]},g={r:l[0],g:l[1],b:l[2]},m="esriCIELabAlgorithm"===a?function(t,e,n){const{numColors:o,distanceOffset:r,distanceInterval:i,isCustomInterval:l}=n;let{l:a,a:s,b:u}=t;const c=(e.l-a)*i,h=(e.a-s)*i,f=(e.b-u)*i,p=[];if(r){const t=r/i;a+=t*c,s+=t*h,u+=t*f}for(let t=0;t<o-1;t++)p.push({l:a,a:s,b:u}),a+=c,s+=h,u+=f;return p.push(l?{l:a,a:s,b:u}:e),p}((0,o.ZD)(d),(0,o.ZD)(g),s):"esriHSVAlgorithm"===a?function(t,e,n){const{numColors:o,distanceOffset:r,distanceInterval:i,isCustomInterval:l}=n,a=0===t.s,s=0===e.s;let u=t.h,c=e.h;a&&!s?u=c:s&&!a&&(e={...e,h:u},c=u);let h=Math.abs(c-u),f=0;const p=360;h<180?f=(c-u)*i:(h=p-h,f=u>c?h*i:-h*i);const d=(e.s-t.s)*i,g=(e.v-t.v)*i;let{s:m,v:y}=t,w=u;if(r){const t=r/i;w=(w+t*f+p)%p,m+=t*d,y+=t*g}const C=[];for(let t=0;t<o-1;t++)C.push({h:w,s:m,v:y}),w=(w+f+p)%p,m+=d,y+=g;return C.push(l?{h:w,s:m,v:y}:e),C}((0,o.N2)(d),(0,o.N2)(g),s):function(t,e,n){const{numColors:o,distanceOffset:r,distanceInterval:i,isCustomInterval:l}=n,a=t.h,s=e.h,u=2*Math.PI;let c=0;if(a<=s){const t=s-a,e=s-a-u;c=Math.abs(e)<Math.abs(t)?e:t}else{const t=s+u-a,e=s-a;c=Math.abs(e)<Math.abs(t)?e:t}const h=c*i,f=(e.l-t.l)*i,p=(e.c-t.c)*i;let{l:d,c:g,h:m}=t;if(r){const t=r/i;d+=t*f,g+=t*p,m=(m+t*h+u)%u}const y=[];for(let t=0;t<o-1;t++)y.push({l:d,c:g,h:m}),d+=f,g+=p,m=(m+h+u)%u;return y.push(l?{l:d,c:g,h:m}:e),y}((0,o.RH)(d),(0,o.RH)(g),s),y=[],w=i[3]??255,C=((l[3]??255)-w)/(u-1);for(let t=0;t<u;t++){const{r:e,g:n,b:r}=(0,o.$)(m[t]),i=f?Math.round(w+C*t):255;y.push([e,n,r,i])}return y}function g(t,e){const n=(0,i.W)(t)?t.toJSON():t;return"multipart"===n.type?function(t,e){const{numColors:n,interpolateAlpha:o}=p(e),r=function(t,e){const{colorRamps:n}=t;if(e??=n.map(({start:t,stop:e})=>null==t||null==e?-1:e-t),e.length!==n.length||e.some(t=>t<0))return Array.from({length:n.length},()=>1/n.length);const o=e.reduce((t,e)=>t+e);return e.map(t=>t/o)}(t,e?.weights),{colorRamps:i}=t,l=[],a=1/(n-1);let s=0,u=!1;for(let t=0;t<i.length;t++){const e=l.length,c=u?0:e*a-s;s+=r[t];let h=t===i.length-1?n-1-e:(r[t]-c)/a;if(u=Math.ceil(h)===h,h=Math.ceil(h),0===h)continue;const f=d(i[t],{numColors:h,interpolateAlpha:o,distanceOffset:c/r[t],distanceInterval:a/r[t]});l.push(...f)}const c=[...i[i.length-1].toColor];return 3===c.length&&c.push(255),l.push(c),l}(n,e):d(n,e)}function m(t,e){const n=g(t,e),o=e?.interpolateAlpha;return n.forEach((t,e)=>{t.unshift(e),o||t.pop()}),n}function y(t){const e=[];for(let n=0;n<t.length;n+=4){const r=(0,o.N2)({r:t[n],g:t[n+1],b:t[n+2]});e.push([r.h/60,r.s/100,255*r.v/100])}return e}function w(t){const e=(0,o.N2)(t);return{type:"HsvColor",Hue:e.h,Saturation:e.s,Value:e.v,AlphaValue:255}}function C(t){const e=t.toJSON();return{Algorithm:e?.Algorithm||"esriHSVAlgorithm",type:"AlgorithmicColorRamp",FromColor:w(t.fromColor),ToColor:w(t.toColor)}}function A(t){const e=h(t);if(!e)return null;if("algorithmic"===t.type)return{...C(t),Name:e};if(t.colorRamps){const n=t.colorRamps.map(C);return{type:"MultiPartColorRamp",NumColorRamps:n.length,ArrayOfColorRamp:n,Name:e}}return null}function x(t){const e=[...t].reverse().map(t=>{const e=t.toString(16);return e.length<2?"0"+e:e});return 4294967295&Number.parseInt(e.join(""),16)}n.d(e,["L7",0,["random","ndvi","ndvi2","ndvi3","elevation","gray","hillshade"],"kH",0,a,"vj",0,l])},88178(t,e,n){function o(t,e){const{attributeTable:n,bandCount:o}=t;return!((null!=n||(r=t,!["u8","s8"].includes(r.pixelType)||null==r.statistics?.[0]?.min||null==r.statistics[0]?.max||1!==r.bandCount))&&(null==n||o>1||e&&null==n.fields.find(t=>t.name.toLowerCase()===e.toLowerCase())));var r}function r(t){const{bandCount:e,dataType:n,pixelType:o}=t;return"elevation"===n||"generic"===n&&1===e&&("s16"===o||"s32"===o||"f32"===o||"f64"===o)}function i(t,e=!1){const{bandCount:n,colormap:o,pixelType:r}=t;return 1===n&&(!!o?.length||!e&&"u8"===r)}function l(t,e=!1){const{attributeTable:n,bandCount:o}=t;return 1===o&&(!e||null!=n||null!=t.histograms)}function a(t){const{dataType:e}=t;return"vector-uv"===e||"vector-magdir"===e}function s(t){const{dataType:e}=t;return"vector-uv"===e||"vector-magdir"===e}function u(t){return!!t?.length&&t.length<=16384}n.d(e,{FA:()=>i,QJ:()=>s,WN:()=>u,hu:()=>o,iL:()=>r,rd:()=>a,xX:()=>l})},70274(t,e,n){const o=new(n(66552).J)({none:"none",standardDeviation:"standard-deviation",histogramEqualization:"histogram-equalization",minMax:"min-max",percentClip:"percent-clip",sigmoid:"sigmoid"});n.d(e,["u",0,o,"x",0,{0:"none",3:"standardDeviation",4:"histogramEqualization",5:"minMax",6:"percentClip",9:"sigmoid"}])},491(t,e,n){n.d(e,{CW:()=>f});var o=n(44208),r=n(53966),i=n(17676);function l(t){const e=new Float32Array(a(t));return a(t,e),e}function a(t,e){let n=0;e&&(e[n]=t.length),n++;for(const o of t){e&&(e[n]=o.stage),n++,e&&(e[n]=o.vertices.length),n++;for(const t of o.vertices)e&&(e[n]=t.x,e[n+1]=t.y,e[n+2]=t.time,e[n+3]=t.speed),n+=4}return n}const s=[1,2],u=[1,2,3,4];var c=n(97441);const h=()=>r.A.getLogger("esri.views.2d.engine.flow.dataUtils");async function f(t,e,n,r,l){const a=performance.now();(0,c.dF)(n);const s=function(t,e){const{perturb:n}=e;if(n){const{rotation:e}=n;null!=e&&(t=function(t,e){const n=Math.cos(e),o=Math.sin(e);return(e,r)=>{const[i,l]=t(e,r);return[n*i+o*l,-o*i+n*l]}}(t,e));const{scale:o}=n;null!=o&&(t=function(t,e){return(n,o)=>{const[r,i]=t(n,o);return[r*e,i*e]}}(t,o))}return t}((0,c.DE)(e,n),e),u=performance.now(),f=(0,c.S1)(e,s,n.width,n.height,r),g=performance.now(),m=function(t){const e=t.reduce((t,e)=>t+e.vertices.length,0),n=new Float32Array(4*e),o=new Array(t.length);let r=0,i=0;for(const{vertices:e}of t){const t=r;for(const t of e)n[4*r]=t.x,n[4*r+1]=t.y,n[4*r+2]=t.time,n[4*r+3]=t.speed,r++;o[i++]={startVertex:t,numberOfVertices:e.length,firstTime:e[0].time,lastTime:e[e.length-1].time}}return{lineVertices:n,lineDescriptors:o}}(f),y=performance.now(),w="Streamlines"===t?p(m,10,f):d(m,f),C=performance.now();return(0,o.A)("esri-2d-profiler")&&(h().info("I.1","_createFlowFieldFromData (ms)",Math.round(u-a)),h().info("I.2","_getStreamlines (ms)",Math.round(g-u)),h().info("I.3","createAnimatedLinesData (ms)",Math.round(y-g)),h().info("I.4","create{Streamlines|Particles}Mesh (ms)",Math.round(C-y)),h().info("I.5","createFlowMesh (ms)",Math.round(C-a)),h().info("I.6","Mesh size (bytes)",w.vertexData.buffer.byteLength+w.indexData.buffer.byteLength)),await Promise.resolve(),(0,i.Te)(l),w}function p(t,e,n){const{lineVertices:o,lineDescriptors:r}=t;let i=0,a=0;for(const t of r)i+=2*t.numberOfVertices,a+=6*(t.numberOfVertices-1);const s=new Float32Array(9*i),u=new Uint32Array(a);let c=0,h=0;function f(){u[h++]=c-2,u[h++]=c,u[h++]=c-1,u[h++]=c,u[h++]=c+1,u[h++]=c-1}function p(t,e,n,o,r,i,l,a){const u=9*c;let h=0;s[u+h++]=t,s[u+h++]=e,s[u+h++]=1,s[u+h++]=n,s[u+h++]=i,s[u+h++]=l,s[u+h++]=o/2,s[u+h++]=r/2,s[u+h++]=a,c++,s[u+h++]=t,s[u+h++]=e,s[u+h++]=-1,s[u+h++]=n,s[u+h++]=i,s[u+h++]=l,s[u+h++]=-o/2,s[u+h++]=-r/2,s[u+h++]=a,c++}for(const t of r){const{firstTime:n,lastTime:r}=t;let i=null,l=null,a=null,s=null,u=null,c=null;for(let h=0;h<t.numberOfVertices;h++){const d=o[4*(t.startVertex+h)],g=o[4*(t.startVertex+h)+1],m=o[4*(t.startVertex+h)+2],y=o[4*(t.startVertex+h)+3];let w=null,C=null,A=null,x=null;if(h>0){w=d-i,C=g-l;const t=Math.sqrt(w*w+C*C);if(w/=t,C/=t,h>1){let t=w+u,n=C+c;const o=Math.sqrt(t*t+n*n);t/=o,n/=o;const r=Math.min(1/(t*w+n*C),e);t*=r,n*=r,A=-n,x=t}else A=-C,x=w;null!==A&&null!==x&&(p(i,l,a,A,x,n,r,y),f())}i=d,l=g,a=m,u=w,c=C,s=y}p(i,l,a,-c,u,n,r,s)}const d=l(n);return{vertexData:s,indexData:u,pathData:d}}function d(t,e){const{lineVertices:n,lineDescriptors:o}=t;let r=0,i=0;for(const t of o){const e=t.numberOfVertices-1;r+=4*e*2,i+=6*e*2}const a=new Float32Array(16*r),c=new Uint32Array(i);let h,f,p,d,g,m,y,w,C,A,x,b,v,M,T=0,k=0;function I(t,e){let n=C+x,o=A+b;const r=Math.sqrt(n*n+o*o);n/=r,o/=r;const i=C*n+A*o;n/=i,o/=i;let l=x+v,I=b+M;const S=Math.sqrt(l*l+I*I);l/=S,I/=S;const E=x*l+b*I;l/=E,I/=E,function(t,e,n,o,r,i,l,c,h,f,p,d,g,m){const y=16*T;let w=0;for(const C of s)for(const s of u)a[y+w++]=t,a[y+w++]=e,a[y+w++]=n,a[y+w++]=o,a[y+w++]=l,a[y+w++]=c,a[y+w++]=h,a[y+w++]=f,a[y+w++]=C,a[y+w++]=s,a[y+w++]=g,a[y+w++]=m,a[y+w++]=r/2,a[y+w++]=i/2,a[y+w++]=p/2,a[y+w++]=d/2,T++}(h,f,p,d,-o,n,g,m,y,w,-I,l,t,e),c[k++]=T-8,c[k++]=T-7,c[k++]=T-6,c[k++]=T-7,c[k++]=T-5,c[k++]=T-6,c[k++]=T-4,c[k++]=T-3,c[k++]=T-2,c[k++]=T-3,c[k++]=T-1,c[k++]=T-2}function S(t,e,n,o,r,i){if(C=x,A=b,x=v,b=M,null==C&&null==A&&(C=x,A=b),null!=g&&null!=m){v=t-g,M=e-m;const n=Math.sqrt(v*v+M*M);v/=n,M/=n}null!=C&&null!=A&&I(r,i),h=g,f=m,p=y,d=w,g=t,m=e,y=n,w=o}function E(t,e){C=x,A=b,x=v,b=M,null==C&&null==A&&(C=x,A=b),null!=C&&null!=A&&I(t,e)}for(const t of o){h=null,f=null,p=null,d=null,g=null,m=null,y=null,w=null,C=null,A=null,x=null,b=null,v=null,M=null;const{firstTime:e,lastTime:o}=t;for(let r=0;r<t.numberOfVertices;r++)S(n[4*(t.startVertex+r)],n[4*(t.startVertex+r)+1],n[4*(t.startVertex+r)+2],n[4*(t.startVertex+r)+3],e,o);E(e,o)}const P=l(e);return{vertexData:a,indexData:c,pathData:P}}},97441(t,e,n){n.d(e,{DE:()=>s,S1:()=>l,dF:()=>a}),n(44208),n(53966);var o=n(34727),r=n(87811),i=n(78659);function l(t,e,n,o,i){if(t.density<=0)return[];const{positions:l}=i,a=[],s=new r.A,h=1/Math.max(t.lineCollisionWidth,1),f=Math.round(n*h),p=Math.round(o*h),d=new Int32Array(f*p);for(let t=0;t<d.length;t++)d[t]=-1;const g={raster:d,width:f,height:p,resolutionFactor:h},m={},y=t.lineSpacing/Math.sqrt(t.density),w=Math.floor(o/y),C=Math.floor(n/y);for(let t=0;t<w;t++){const e=t*y;for(let n=0;n<C;n++){const o=n*y;m[`${n}-${t}`]={x:o,y:e,positions:[]}}}for(const{x:t,y:e}of l){const n=m[`${Math.floor(t/y)}-${Math.floor(e/y)}`];n&&n.positions.push([t,e])}const A=[];for(const t in m){const e=m[t];if(0===e.positions.length)A.push({x:e.x+y/2,y:e.y+y/2,sort:.66+.33*s.getFloat(),stage:0});else{const[t]=e.positions.splice(0,1);A.push({x:t[0],y:t[1],sort:.33*s.getFloat(),stage:1});for(const[t,n]of e.positions)A.push({x:t,y:n,sort:.33+.33*s.getFloat(),stage:2})}}A.sort((t,e)=>t.sort-e.sort);for(const{x:r,y:i,stage:l}of A){if(a.length>=t.maxNumberOfStreamlines)break;const h=t.onlyForwardTracing?u(1,t,e,r,i,[n,o],a.length,g):c(t,e,r,i,[n,o],a.length,s,g);h.length<2||a.push({stage:l,vertices:h})}return a}function a(t){for(let e=0;e<t.mask.length;e++)0===t.mask[e]&&(t.data[2*e]=0,t.data[2*e+1]=0)}function s(t,e){const n=function(t,e,n,o){if(0===o)return t;const r=Math.round(3*o),i=new Array(2*r+1);let l=0;for(let t=-r;t<=r;t++){const e=Math.exp(-t*t/(o*o));i[t+r]=e,l+=e}for(let t=-r;t<=r;t++)i[t+r]/=l;const a=new Float32Array(t.length);for(let o=0;o<n;o++)for(let n=0;n<e;n++){let l=0,s=0;for(let a=-r;a<=r;a++){if(n+a<0||n+a>=e)continue;const u=i[a+r];l+=u*t[2*(o*e+(n+a))],s+=u*t[2*(o*e+(n+a))+1]}a[2*(o*e+n)]=l,a[2*(o*e+n)+1]=s}const s=new Float32Array(t.length);for(let t=0;t<e;t++)for(let o=0;o<n;o++){let l=0,u=0;for(let s=-r;s<=r;s++){if(o+s<0||o+s>=n)continue;const c=i[s+r];l+=c*a[2*((o+s)*e+t)],u+=c*a[2*((o+s)*e+t)+1]}s[2*(o*e+t)]=l,s[2*(o*e+t)+1]=u}return s}(e.data,e.width,e.height,t.smoothing);return t.interpolate?(t,o)=>{const r=Math.floor(t),i=Math.floor(o);if(r<0||r>=e.width)return[0,0];if(i<0||i>=e.height)return[0,0];const l=t-r,a=o-i,s=r,u=i,c=r<e.width-1?r+1:r,h=i<e.height-1?i+1:i,f=n[2*(u*e.width+s)],p=n[2*(u*e.width+c)],d=n[2*(h*e.width+s)],g=n[2*(h*e.width+c)],m=n[2*(u*e.width+s)+1],y=n[2*(u*e.width+c)+1];return[(f*(1-a)+d*a)*(1-l)+(p*(1-a)+g*a)*l,(m*(1-a)+n[2*(h*e.width+s)+1]*a)*(1-l)+(y*(1-a)+n[2*(h*e.width+c)+1]*a)*l]}:(t,o)=>{const r=Math.round(t),i=Math.round(o);return r<0||r>=e.width||i<0||i>=e.height?[0,0]:[n[2*(i*e.width+r)],n[2*(i*e.width+r)+1]]}}function u(t,e,n,r,l,a,s,u){const c=[],{raster:h,width:f,height:p,resolutionFactor:d}=u;let g=r,m=l,y=(0,i.Kp)(0),[w,C]=n(g,m);w*=e.velocityScale,C*=e.velocityScale;const A=Math.sqrt(w*w+C*C);let x,b;c.push({x:g,y:m,time:y,speed:A});for(let r=0;r<e.verticesPerLine;r++){let[r,l]=n(g,m);r*=e.velocityScale,l*=e.velocityScale;const u=Math.sqrt(r*r+l*l);if(u<e.minSpeedThreshold)return c;const w=t*r/u,C=t*l/u;g+=w*e.segmentLength,m+=C*e.segmentLength,e.wrapAround&&(g=(0,o.OS)(g,a[0]));const A=t*e.segmentLength/u;if(y=(0,i.Kp)(y+A),Math.acos(w*x+C*b)>e.maxTurnAngle)return c;if(e.collisions){let t=Math.round(g*d);const n=Math.round(m*d);if(e.wrapAround&&(t=(0,o.OS)(t,f)),t<0||t>f-1||n<0||n>p-1)return c;const r=h[n*f+t];if(-1!==r&&r!==s)return c;h[n*f+t]=s}c.push({x:g,y:m,time:y,speed:u}),x=w,b=C}return c}function c(t,e,n,o,r,i,l,a){const s=Math.round((.2+.6*l.getFloat())*t.verticesPerLine),c=t.verticesPerLine-s,h=u(-1,{...t,verticesPerLine:c},e,n,o,r,i,a),f=u(1,{...t,verticesPerLine:s},e,n,o,r,i,a),p=h.reverse();return p.splice(-1,1),p.concat(f)}n(5443),n(21325)}}]);
|