@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([[5158],{32488(t,e,s){s.d(e,{A:()=>M});const n=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],i=["آ","أ","إ","ا"],r=["ﻵ","ﻷ","ﻹ","ﻻ"],o=["ﻶ","ﻸ","ﻺ","ﻼ"],a=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],h=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],l=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],c=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],u=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],d=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],g=["ء","ف"],y=["غ","ي"],p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],_=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],x=10,m=11,I=12,b=18,P=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],w=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],T=[[b,b,b,b,b,b,b,b,b,6,5,6,8,5,b,b,b,b,b,b,b,b,b,b,b,b,b,b,5,5,5,6,8,4,4,m,m,m,4,4,4,4,4,x,9,x,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,b,b,b,b,b,b,5,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,9,4,m,m,m,m,4,4,4,4,0,4,4,b,4,4,m,m,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,1,I,1,I,I,1,I,I,1,I,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,m,m,7,9,7,4,4,I,I,I,I,I,I,I,I,I,I,I,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,3,3,3,3,3,3,3,3,3,3,m,3,3,7,7,7,I,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,I,I,I,I,I,I,I,3,4,I,I,I,I,I,I,7,7,I,I,4,I,I,I,I,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,I,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,I,I,I,I,I,I,I,I,I,I,I,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,I,I,I,I,I,I,I,I,I,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,b,b,b,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,m,m,m,m,m,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,b,b,b,b,b,4,4,4,4,4,b,b,b,b,b,b,2,0,4,4,2,2,2,2,2,2,x,x,4,4,4,0,2,2,2,2,2,2,2,2,2,2,x,x,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,I,1,1,1,1,1,1,1,1,1,1,x,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,I,I,I,I,I,I,I,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,m,4,4,x,x,4,4,4,4,4,m,m,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,b],[4,4,4,m,m,m,4,4,4,4,4,x,9,x,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,m,m,4,4,4,m,m,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class M{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,s){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,s){j=[],J=[];for(let n=0;n<s;n++)t[n]=n,e[n]=n,j[n]=n}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,s))return t;e=this.inputFormat,s=this.outputFormat;let n=t;const a=H,c=Z(e.charAt(1)),f=Z(s.charAt(1)),g=(e.startsWith("I")?"L":e.charAt(0))+c,y=(s.startsWith("I")?"L":s.charAt(0))+f,p=e.charAt(2)+s.charAt(2);a.defInFormat=g,a.defOutFormat=y,a.defSwap=p;const _=A(t,g,y,p,a);let x=!1;return"R"===s.charAt(1)?x=!0:"C"!==s.charAt(1)&&"D"!==s.charAt(1)||(x="rtl"===this.checkContextual(_)),this.sourceToTarget=j,this.targetToSource=function(t){const e=new Array(t.length);for(let s=0;s<t.length;s++)e[t[s]]=s;return e}(this.sourceToTarget),K=this.targetToSource,n=e.charAt(3)===s.charAt(3)?_:"S"===s.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);const s=(e=String(e)).split("");let n=0,i=1,a=s.length;t||(n=s.length-1,i=-1,a=1);const c=function(t,e,s,n){let i=0;const a=[];let c=0;for(let f=e;f*s<n;f+=s)if(z(t[f])||G(t[f])){if("ل"===t[f]&&D(t,f+s,s,n)){t[f]=Y(t[f+s],0===i?r:o),f+=s,W(t,f,s,n),a[c]=f,c++,i=0;continue}const e=t[f];1===i?t[f]=V(t,f+s,s,n)?O(t[f]):E(t[f],l):!0===V(t,f+s,s,n)?t[f]=E(t[f],u):t[f]=E(t[f],h),G(e)||(i=1),!0===U(e)&&(i=0)}else i=0;return a}(s,n,i,a);let f="";for(let e=0;e<s.length;e++)N(c,c.length,e)>-1?(q(K,e,!t,-1),j.splice(e,1)):f+=s[e];return f}(x,_):function(t,e){if(0===t.length)return"";void 0===e&&(e=!0);let s="";const n=(t=String(t)).split("");for(let r=0;r<t.length;r++){let o=!1;if(n[r]>="ﹰ"&&n[r]<"\ufeff"){const a=t.charCodeAt(r);n[r]>="ﻵ"&&n[r]<="ﻼ"?(e?(r>0&&" "===n[r-1]?s=s.slice(0,-1)+"ل":(s+="ل",o=!0),s+=i[(a-65269)/2]):(s+=i[(a-65269)/2],s+="ل",r+1<t.length&&" "===n[r+1]?r++:o=!0),o&&(q(K,r,!0,1),j.splice(r,0,j[r]))):s+=d[a-65136]}else s+=n[r]}return s}(_,x),this.sourceToTarget=j,this.targetToSource=K,this.levels=J,n}_inputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=v(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return st.test(t)}}function A(t,e,s,n,i){const r=function(t,e,s){if(void 0===e.inFormat&&(e.inFormat=s.defInFormat),void 0===e.outFormat&&(e.outFormat=s.defOutFormat),void 0===e.swap&&(e.swap=s.defSwap),e.inFormat===e.outFormat)return e;const n=e.inFormat.slice(0,1),i=e.outFormat.slice(0,1);let r,o=e.inFormat.slice(1,4),a=e.outFormat.slice(1,4);return o.startsWith("C")&&(r=v(t),o="ltr"===r||"rtl"===r?r.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=n+o),a.startsWith("C")&&(r=v(t),"rtl"===r?a="RTL":"ltr"===r?(r=function(t){const e=t.split("");return e.reverse(),v(e.join(""))}(t),a=r.toUpperCase()):a="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=i+a),e}(t,{inFormat:e,outFormat:s,swap:n},i);if(r.inFormat===r.outFormat)return t;e=r.inFormat,s=r.outFormat,n=r.swap;const o=e.slice(0,1),a=e.slice(1,4),h=s.slice(0,1),l=s.slice(1,4);if(i.inFormat=e,i.outFormat=s,i.swap=n,"L"===o&&"VLTR"===s){if("LTR"===a)return i.dir=X,S(t,i);if("RTL"===a)return i.dir=tt,S(t,i)}if("V"===o&&"V"===h)return i.dir="RTL"===a?tt:X,B(t,i);if("L"===o&&"VRTL"===s)return"LTR"===a?(i.dir=X,t=S(t,i)):(i.dir=tt,t=S(t,i)),B(t);if("VLTR"===e&&"LLTR"===s)return i.dir=X,S(t,i);if("V"===o&&"L"===h&&a!==l)return t=B(t),"RTL"===a?A(t,"LLTR","VLTR",n,i):A(t,"LRTL","VRTL",n,i);if("VRTL"===e&&"LRTL"===s)return A(t,"LRTL","VRTL",n,i);if("L"===o&&"L"===h){const e=i.swap;return i.swap=e.slice(0,1)+"N","RTL"===a?(i.dir=tt,t=S(t,i),i.swap="N"+e.slice(1,3),i.dir=X,t=S(t,i)):(i.dir=X,t=S(t,i),i.swap="N"+e.slice(1,3),t=A(t,"VLTR","LRTL",i.swap,i)),t}return t}function v(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function S(t,e){const s=t.split(""),n=[];return L(s,n,e),function(t,e,s){if(0!==s.hiLevel&&s.swap[0]!==s.swap[1])for(let s=0;s<t.length;s++)1===e[s]&&(t[s]=F(t[s]))}(s,n,e),R(2,s,n,e),R(1,s,n,e),J=n,s.join("")}function L(t,e,s){const n=t.length,i=s.dir?_:p;let r=0,o=-1;const a=[],h=[];s.hiLevel=s.dir,s.lastArabic=!1,s.hasUbatAl=!1,s.hasUbatB=!1,s.hasUbatS=!1;for(let e=0;e<n;e++)a[e]=k(t[e]);for(let l=0;l<n;l++){const n=r,c=C(t,a,h,l,s);h[l]=c,r=i[n][c];const u=240&r;r&=15;const f=i[r][$];if(e[l]=f,u>0)if(16===u){for(let t=o;t<l;t++)e[t]=1;o=-1}else o=-1;if(i[r][Q])-1===o&&(o=l);else if(o>-1){for(let t=o;t<l;t++)e[t]=f;o=-1}5===a[l]&&(e[l]=0),s.hiLevel|=f}s.hasUbatS&&function(t,e,s,n){for(let i=0;i<s;i++)if(6===t[i]){e[i]=n.dir;for(let s=i-1;s>=0&&8===t[s];s--)e[s]=n.dir}}(a,e,n,s)}function k(t){const e=t.charCodeAt(0),s=w[e>>8];return s<100?s:T[s-100][255&e]}function B(t,e){const s=t.split("");if(e){const t=[];L(s,t,e),J=t}return s.reverse(),j.reverse(),s.join("")}function N(t,e,s){for(let n=0;n<e;n++)if(t[n]===s)return n;return-1}function z(t){for(let e=0;e<g.length;e++)if(t>=g[e]&&t<=y[e])return!0;return!1}function V(t,e,s,n){for(;e*s<n&&G(t[e]);)e+=s;return!!(e*s<n&&z(t[e]))}function D(t,e,s,n){for(;e*s<n&&G(t[e]);)e+=s;let r=" ";if(!(e*s<n))return!1;r=t[e];for(let t=0;t<i.length;t++)if(i[t]===r)return!0;return!1}function R(t,e,s,n){if(n.hiLevel<t)return;if(1===t&&n.dir===tt&&!n.hasUbatB)return e.reverse(),void j.reverse();const i=e.length;let r,o,a,h,l,c=0;for(;c<i;){if(s[c]>=t){for(r=c+1;r<i&&s[r]>=t;)r++;for(o=c,a=r-1;o<a;o++,a--)h=e[o],e[o]=e[a],e[a]=h,l=j[o],j[o]=j[a],j[a]=l;c=r}c++}}function C(t,e,s,n,i){const r=e[n];return{UBAT_L:()=>(i.lastArabic=!1,0),UBAT_R:()=>(i.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>i.lastArabic?3:2,UBAT_AL:()=>(i.lastArabic=!0,i.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,r;return n<1||n+1>=e.length||2!==(t=s[n-1])&&3!==t||2!==(r=e[n+1])&&3!==r?4:(i.lastArabic&&(r=3),r===t?r:4)},UBAT_ES:()=>2===(n>0?s[n-1]:5)&&n+1<e.length&&2===e[n+1]?2:4,UBAT_ET:()=>{if(n>0&&2===s[n-1])return 2;if(i.lastArabic)return 4;let t=n+1;const r=e.length;for(;t<r&&11===e[t];)t++;return t<r&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===i.inFormat){const s=e.length;let i=n+1;for(;i<s&&12===e[i];)i++;if(i<s){const s=t[n].charCodeAt(0),r=s>=1425&&s<=2303||64286===s,o=e[i];if(r&&(1===o||7===o))return 1}}return n<1||5===e[n-1]?4:s[n-1]},UBAT_B:()=>(i.lastArabic=!0,i.hasUbatB=!0,i.dir),UBAT_S:()=>(i.hasUbatS=!0,4),UBAT_LRE:()=>(i.lastArabic=!1,4),UBAT_RLE:()=>(i.lastArabic=!1,4),UBAT_LRO:()=>(i.lastArabic=!1,4),UBAT_RLO:()=>(i.lastArabic=!1,4),UBAT_PDF:()=>(i.lastArabic=!1,4),UBAT_BN:()=>4}[P[r]]()}function F(t){let e,s=0,i=n.length-1;for(;s<=i;)if(e=Math.floor((s+i)/2),t<n[e][0])i=e-1;else{if(!(t>n[e][0]))return n[e][1];s=e+1}return t}function U(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function O(t){for(let e=0;e<a.length;e++)if(t===a[e])return c[e];return t}function E(t,e){for(let s=0;s<a.length;s++)if(t===a[s])return e[s];return t}function G(t){return t>="ً"&&t<="ٕ"}function Z(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function W(t,e,s,n){for(;e*s<n&&G(t[e]);)e+=s;return e*s<n&&(t[e]=" ",!0)}function Y(t,e){for(let s=0;s<i.length;s++)if(t===i[s])return e[s];return t}function q(t,e,s,n){for(let i=0;i<t.length;i++)(t[i]>e||!s&&t[i]===e)&&(t[i]+=n)}let j=[],K=[],J=[];const H={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},$=5,Q=6,X=0,tt=1,et=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,st=/[\u0591-\u06ff\ufb1d-\ufefc]/},9775(t,e,s){s.d(e,{A:()=>r});var n=s(62788),i=s(95488);class r{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,n.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,n.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;const t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;const t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){const e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,n.gc)(this._observable),yield*this._items}}},95488(t,e,s){s.d(e,{I:()=>i});var n=s(11406);class i extends n.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},34304(t,e,s){s.d(e,{DF:()=>h,FD:()=>i,ct:()=>l});let n=1e-6;function i(){return n}const r=Math.random,o=Math.PI/180,a=180/Math.PI;function h(t){return t*o}function l(t){return t*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:r,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:i,setEpsilon:function(t){n=t},toDegree:l,toRadian:h},Symbol.toStringTag,{value:"Module"})),s.d(e,["Ov",0,r])},51624(t,e,s){s.d(e,{A:()=>l});var n=s(44208),i=s(69397),r=s(93687);const o=4294967296,a=new TextDecoder("utf-8"),h=(0,n.A)("safari")||(0,n.A)("ios")?6:(0,n.A)("ff")?12:32;class l{constructor(t,e,s=0,n=t?.byteLength??0){this._tag=0,this._dataType=99,this._init(t,e,s,n)}[Symbol.dispose](){this.release()}_init(t,e,s,n){this._data=t,this._dataView=e,this._pos=s,this._end=n}get usedMemory(){return 64+(0,i.Qf)(this._data)}asUnsafe(){return this}clone(){return new l(this._data,this._dataView,this._pos,this._end)}clonePooled(){return l.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(t,e,s=0,n=t?.byteLength??0){const i=l.pool.acquire();return i._init(t,e,s,n),i}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;const e=this._decodeVarint();if(this._tag=e>>3,this._dataType=7&e,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;if(t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return t;throw new Error("Varint overflow")}getPackedEnd(){const t=this.getUInt32();return this._pos+t}getUInt64(){return this._decodeVarint()}getSInt32(){const t=this.getUInt32();return t>>>1^-(1&t)}getSInt64(){return this._decodeSVarint()}getBool(){const t=0!==this._data[this._pos];return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){const t=this._dataView,e=this._pos,s=t.getUint32(e,!0)+t.getUint32(e+4,!0)*o;return this._skip(8),s}getSFixed64(){const t=this._dataView,e=this._pos,s=t.getUint32(e,!0)+t.getInt32(e+4,!0)*o;return this._skip(8),s}getDouble(){const t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){const t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){const t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){const t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){const t=this._getLength(),e=this._pos,s=this._toString(this._data,e,e+t);return this._skip(t),s}getBytes(){const t=this._getLength(),e=this._pos,s=this._toBytes(this._data,e,e+t);return this._skip(t),s}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,e,s,n){const i=this.getMessage(),r=t(i,e,s,n);return i.release(),r}processMessage(t){const e=this.getMessage(),s=t(e);return e.release(),s}getMessage(){const t=this._getLength(),e=l.pool.acquire();return e._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),e}release(){l.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){const t=this._data;let e=this._pos,s=0,n=0;if(this._end-e>=10)do{if(n=t[e++],s|=127&n,!(128&n))break;if(n=t[e++],s|=(127&n)<<7,!(128&n))break;if(n=t[e++],s|=(127&n)<<14,!(128&n))break;if(n=t[e++],s|=(127&n)<<21,!(128&n))break;if(n=t[e++],s+=268435456*(127&n),!(128&n))break;if(n=t[e++],s+=34359738368*(127&n),!(128&n))break;if(n=t[e++],s+=4398046511104*(127&n),!(128&n))break;if(n=t[e++],s+=562949953421312*(127&n),!(128&n))break;if(n=t[e++],s+=72057594037927940*(127&n),!(128&n))break;if(n=t[e++],s+=0x8000000000000000*(127&n),!(128&n))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;e!==this._end&&(n=t[e],128&n);)++e,s+=(127&n)*i,i*=128;if(e===this._end)throw new Error("Varint overrun!");++e,s+=n*i}return this._pos=e,s}_decodeSVarint(){const t=this._data;let e,s=0,n=0;const i=1&t[this._pos];if(n=t[this._pos++],s|=127&n,!(128&n))return i?-(s+1)/2:s/2;if(n=t[this._pos++],s|=(127&n)<<7,!(128&n))return i?-(s+1)/2:s/2;if(n=t[this._pos++],s|=(127&n)<<14,!(128&n))return i?-(s+1)/2:s/2;if(n=t[this._pos++],s|=(127&n)<<21,!(128&n))return i?-(s+1)/2:s/2;if(n=t[this._pos++],s+=268435456*(127&n),!(128&n))return i?-(s+1)/2:s/2;if(n=t[this._pos++],s+=34359738368*(127&n),!(128&n))return i?-(s+1)/2:s/2;if(n=t[this._pos++],s+=4398046511104*(127&n),!(128&n))return i?-(s+1)/2:s/2;if(e=BigInt(s),n=t[this._pos++],e+=0x2000000000000n*BigInt(127&n),!(128&n))return Number(i?-(e+1n)/2n:e/2n);if(n=t[this._pos++],e+=0x100000000000000n*BigInt(127&n),!(128&n))return Number(i?-(e+1n)/2n:e/2n);if(n=t[this._pos++],e+=0x8000000000000000n*BigInt(127&n),!(128&n))return Number(i?-(e+1n)/2n:e/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,e,s){if((s=Math.min(this._end,s))-e>h){const n=t.subarray(e,s);return a.decode(n)}let n="",i="";for(let r=e;r<s;++r){const e=t[r];128&e?i+="%"+e.toString(16):(n+=decodeURIComponent(i)+String.fromCharCode(e),i="")}return i.length&&(n+=decodeURIComponent(i)),n}_toBytes(t,e,s){return s=Math.min(this._end,s),new Uint8Array(t.buffer,e,s-e)}static{this.pool=new r.A(()=>new l(null,null),void 0,t=>{t._data=null,t._dataView=null})}}},36745(t,e,s){s.d(e,{z:()=>a});var n=s(4718),i=s(51118),r=s(60408),o=s(92722);class a{static fromOptimized(t,e,s=1){return(new h).initialize(t,e,s)}static fromJSON(t){const[e,s]=c(t),n=(0,r.Pv)(t),i=(0,r.W0)(t);return(new u).initialize(e,s,n,i,1)}static fromOptimizedCIM(t,e,s=1){return(new f).initialize(t,e,s)}static fromJSONCIM(t,e=1){const[s,n]=c(t),i=(0,r.Pv)(t),o=(0,r.W0)(t);return(new d).initialize(s,n,i,o,e)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimized(e,s):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimizedCIM(e,s):null}static createEmptyOptimized(t,e=!1,s=!1,n=1){return(new f).initialize(new o.A([],[],e,s),t,n)}static createEmptyJSON(t,e=!1,s=!1){return(new u).initialize([],t,e,s,1)}static createEmptyOptimizedCIM(t,e=!1,s=!1,n=1){return(new f).initialize(new o.A([],[],e,s),t,n)}static createEmptyJSONCIM(t,e=!1,s=!1,n=1){return(new d).initialize([],t,e,s,n)}asJSON(){const t=(0,i.x)(this),{hasZ:e,hasM:s}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:s}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:s?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:s}:{paths:t,hasZ:e,hasM:s}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,s=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const n=t,i=e;for(;this.nextPoint();)s+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return s+=(t-n)*(e+i),-.5*s}invertY(){this.yFactor*=-1}}class h extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,s){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,s=this._pathOffset;return(new h).initialize(new o.A([this.pathSize],e.slice(s,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,e=this._stride,s=this._geometry.coords;let n=0;for(let i=this._pathOffset+e;i<t;i+=e){const t=s[i-e],r=s[i-e+1],o=s[i]-t,a=s[i+1]-r;n+=Math.sqrt(o*o+a*a)}return n}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,s=this._end-this._stride;for(let n=0;n<this._stride;n++)if(t[e+n]!==t[s+n])return!1;return!0}clone(){return(new h).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function c(t){return(0,r.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,r.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,r.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,r.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,r.fT)(t)?[[[l(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class u extends a{initialize(t,e,s,n,i){return this._paths=t,this.geometryType=e,this.hasZ=s,this.hasM=n,this._pathIndex=this._pointIndex=-1,this.yFactor=i,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let s=0;for(let n=1;n<t;n++){const t=e[n-1],i=e[n],r=t[0],o=t[1],a=i[0]-r,h=i[1]-o;s+=Math.sqrt(a*a+h*h)}return s}startPath(){this._paths.push([])}getCurrentPath(){return(new u).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,i.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:e}=this,s=new o.A([],[],t,e),{coords:n,lengths:i}=s;if("esriGeometryPoint"===this.geometryType)n.push(...this._paths[0][0]),i.length=0;else for(const s of this._paths){for(const i of s)n.push(i[0]),n.push(i[1]*this.yFactor),t&&n.push(i[2]),e&&n.push(i[this._mIndex]);i.push(s.length)}return s}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}clone(){return(new u).initialize((0,n.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class f extends h{initialize(t,e,s){return super.initialize(t,e,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new f).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class d extends u{initialize(t,e,s,n,i){return super.initialize(t,e,s,n,i)}clone(){return(new d).initialize((0,n.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},51118(t,e,s){function n(t){const e=[];for(t.reset();t.nextPath();){const s=[];for(;t.nextPoint();){const e=[t.x,t.y];t.hasZ&&e.push(t.z),t.hasM&&e.push(t.m),s.push(e)}e.push(s)}return t.reset(),e}function i(t){const e=[];for(;t.nextPoint();)e.push([t.x,t.y]);return t.seekPathStart(),e}s.d(e,{A:()=>i,x:()=>n})},537(t,e,s){s.d(e,{B$:()=>p,LJ:()=>_,Pj:()=>I,Rg:()=>g,Yz:()=>x,z8:()=>y});var n=s(19419),i=s(79567),r=s(52006);function o(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function a(t){return void 0!==t.points}function h(t){return void 0!==t.x&&void 0!==t.y}function l(t){return void 0!==t.paths}function c(t){return void 0!==t.rings}function u(t){return function(e,s){return null==e?s:null==s?e:t(e,s)}}const f=u(Math.min),d=u(Math.max);function g(t,e){return l(e)?x(t,e.curvePaths??e.paths,!1,!1)??t:c(e)?x(t,e.curveRings??e.rings,!1,!1)??t:a(e)?I(t,e.points,!1,!1,!1,!1):o(e)?m(t,e):(h(e)&&(t[0]=e.x,t[1]=e.y,t[2]=e.x,t[3]=e.y),t)}function y(t){let e,s,i,r;for(t.reset(),e=i=1/0,s=r=-1/0;t.nextPath();){const n=p(t);e=Math.min(n[0],e),i=Math.min(n[1],i),s=Math.max(n[2],s),r=Math.max(n[3],r)}return(0,n.vt)([e,i,s,r])}function p(t){let e,s,i,r;for(e=i=1/0,s=r=-1/0;t.nextPoint();)e=Math.min(t.x,e),i=Math.min(t.y,i),s=Math.max(t.x,s),r=Math.max(t.y,r);return(0,n.vt)([e,i,s,r])}function _(t,e){return l(e)?x(t,e.curvePaths??e.paths,!0,!1)??t:c(e)?x(t,e.curveRings??e.rings,!0,!1)??t:a(e)?I(t,e.points,!0,!1,!0,!1):o(e)?m(t,e,0,0,!0,!1):(h(e)&&(t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.x,t[4]=e.y,t[5]=e.z),t)}function x(t,e,s,o){const a=s?3:2;if(!e.length||!e[0].length)return null;let h,l,c,u,[g,y]=(0,r.yP)(e[0][0]),p=g,_=y;for(let t=0;t<e.length;t++){const x=e[t];for(let t=0;t<x.length;t++){const e=(0,r.yP)(x[t]),[m,I]=e;if(g=f(g,m),y=f(y,I),p=d(p,m),_=d(_,I),s&&e.length>2){const t=e[2];h=f(h,t),l=d(l,t)}if(o&&e.length>a){const t=e[a];c=f(c,t),u=d(u,t)}const b=x[t];if((0,r.Xq)(b)||t<1)continue;const P=(0,r.yP)(x[t-1]),w=(0,n.fA)(g,y,p,_);[g,y,p,_]=(0,i.e)(w,P,b)}}return s?o?(t[0]=g,t[1]=y,t[2]=h,t[3]=c,t[4]=p,t[5]=_,t[6]=l,t[7]=u,t.length=8,t):(t[0]=g,t[1]=y,t[2]=h,t[3]=p,t[4]=_,t[5]=l,t.length=6,t):o?(t[0]=g,t[1]=y,t[2]=c,t[3]=p,t[4]=_,t[5]=u,t.length=6,t):(t[0]=g,t[1]=y,t[2]=p,t[3]=_,t.length=4,t)}function m(t,e,s,n,i,r){const o=e.xmin,a=e.xmax,h=e.ymin,l=e.ymax;let c=e.zmin,u=e.zmax,f=e.mmin,d=e.mmax;return i?(c=c||0,u=u||0,r?(f=f||0,d=d||0,t[0]=o,t[1]=h,t[2]=c,t[3]=f,t[4]=a,t[5]=l,t[6]=u,t[7]=d,t):(t[0]=o,t[1]=h,t[2]=c,t[3]=a,t[4]=l,t[5]=u,t)):r?(f=f||0,d=d||0,t[0]=o,t[1]=h,t[2]=f,t[3]=a,t[4]=l,t[5]=d,t):(t[0]=o,t[1]=h,t[2]=a,t[3]=l,t)}function I(t,e,s,n,i,r){const o=s?3:2,a=n&&r,h=s&&i;if(!e.length||!e[0].length)return null;let l,c,u,g,[y,p]=e[0],[_,x]=e[0];for(let t=0;t<e.length;t++){const s=e[t],[n,i]=s;if(y=f(y,n),p=f(p,i),_=d(_,n),x=d(x,i),h&&s.length>2){const t=s[2];l=f(l,t),c=d(c,t)}if(a&&s.length>o){const t=s[o];u=f(l,t),g=d(c,t)}}return i?(l=l||0,c=c||0,r?(u=u||0,g=g||0,t[0]=y,t[1]=p,t[2]=l,t[3]=u,t[4]=_,t[5]=x,t[6]=c,t[7]=g,t):(t[0]=y,t[1]=p,t[2]=l,t[3]=_,t[4]=x,t[5]=c,t)):r?(u=u||0,g=g||0,t[0]=y,t[1]=p,t[2]=u,t[3]=_,t[4]=x,t[5]=g,t):(t[0]=y,t[1]=p,t[2]=_,t[3]=x,t)}},12359(t,e,s){s.d(e,{IK:()=>c,TP:()=>u,Ve:()=>a,Z4:()=>r,l8:()=>o,w2:()=>l});var n=s(51118),i=s(95108);function r({xmin:t,xmax:e,ymin:s,ymax:n,zmin:i,zmax:r,hasZ:o}){const a=[(t+e)/2,(s+n)/2];return o&&a.push((i+r)/2),a}function o(t){return function(t,e){if(!t?.length)return null;const s=[],n=[],r=e?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let s=0,i=t.length;s<i;s++){const i=h(t[s],e,r);i&&n.push(i)}if(n.sort((t,s)=>{let n=t[2]-s[2];return 0===n&&e&&(n=t[4]-s[4]),n}),n.length&&(s[0]=n[0][0],s[1]=n[0][1],e&&(s[2]=n[0][3]),(s[0]<r[0]||s[0]>r[1]||s[1]<r[2]||s[1]>r[3]||e&&(s[2]<r[4]||s[2]>r[5]))&&(s.length=0)),!s.length){const n=t[0]&&t[0].length?function(t,e){const s=e?[0,0,0]:[0,0],n=e?[0,0,0]:[0,0];let r=0,o=0,a=0,h=0;for(let l=0,c=t.length;l<c-1;l++){const c=t[l],u=t[l+1];if(c&&u){s[0]=c[0],s[1]=c[1],n[0]=u[0],n[1]=u[1],e&&c.length>2&&u.length>2&&(s[2]=c[2],n[2]=u[2]);const t=(0,i.R3)(s,n);if(t){r+=t;const s=(0,i.t9)(c,u);o+=t*s[0],a+=t*s[1],e&&s.length>2&&(h+=t*s[2])}}}return r>0?e?[o/r,a/r,h/r]:[o/r,a/r]:t.length?t[0]:null}(t[0],e):null;if(!n)return null;s[0]=n[0],s[1]=n[1],e&&n.length>2&&(s[2]=n[2])}return s}(t.rings,t.hasZ??!1)}function a(t){const e=o(t);if(!e)return null;const{hasZ:s,spatialReference:n}=t,[i,r,a]=e;return isNaN(i)||isNaN(r)||s&&isNaN(a)?null:{x:i,y:r,z:s?a:void 0,spatialReference:n}}function h(t,e,s){let n=0,i=0,r=0,o=0,a=0;const h=t.length?t[0][0]:0,l=t.length?t[0][1]:0,c=t.length&&e?t[0][2]:0;for(let u=0;u<t.length;u++){const f=t[u],d=t[(u+1)%t.length],[g,y,p]=f,_=g-h,x=y-l,[m,I,b]=d,P=m-h,w=I-l,T=_*w-P*x;if(o+=T,n+=(_+P)*T,i+=(x+w)*T,e&&f.length>2&&d.length>2){const t=p-c,e=b-c,s=_*e-P*t;r+=(t+e)*s,a+=s}g<s[0]&&(s[0]=g),g>s[1]&&(s[1]=g),y<s[2]&&(s[2]=y),y>s[3]&&(s[3]=y),e&&(p<s[4]&&(s[4]=p),p>s[5]&&(s[5]=p))}if(o>0&&(o*=-1),a>0&&(a*=-1),!o)return null;o*=.5,a*=.5;const u=[n/(6*o)+h,i/(6*o)+l,o];return e&&(s[4]===s[5]||0===a?(u[3]=(s[4]+s[5])/2,u[4]=0):(u[3]=r/(6*a)+c,u[4]=a)),u}function l(t,e){let s=0,n=0,i=0;t.nextPoint();const r=t.pathSize?t.x:0,o=t.pathSize?t.y:0;for(let a=0;a<t.pathSize;a++){t.seekInPath(a);const h=[t.x,t.y];t.seekInPath((a+1)%t.pathSize);const l=[t.x,t.y],[c,u]=h,f=c-r,d=u-o,[g,y]=l,p=g-r,_=y-o,x=f*_-p*d;i+=x,s+=(f+p)*x,n+=(d+_)*x,c<e[0]&&(e[0]=c),c>e[1]&&(e[1]=c),u<e[2]&&(e[2]=u),u>e[3]&&(e[3]=u)}return i>0&&(i*=-1),i?(i*=.5,[s/(6*i)+r,n/(6*i)+o,i]):null}function c(t){const{hasZ:e,totalSize:s}=t;if(0===s)return null;const r=[],o=[],a=e?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const e=h((0,n.A)(t),t.hasZ,a);e&&o.push(e)}if(o.sort((t,s)=>{let n=t[2]-s[2];return 0===n&&e&&(n=t[4]-s[4]),n}),o.length&&(r[0]=o[0][0],r[1]=o[0][1],e&&(r[2]=o[0][3]),(r[0]<a[0]||r[0]>a[1]||r[1]<a[2]||r[1]>a[3]||e&&(r[2]<a[4]||r[2]>a[5]))&&(r.length=0)),!r.length){t.reset(),t.nextPath();const s=t.pathSize?function(t){const{hasZ:e}=t,s=e?[0,0,0]:[0,0],n=e?[0,0,0]:[0,0];let r=0,o=0,a=0,h=0;if(t.nextPoint()){let l=t.x,c=t.y,u=t.z;for(;t.nextPoint();){const f=t.x,d=t.y,g=t.z;s[0]=l,s[1]=c,n[0]=f,n[1]=d,e&&(s[2]=u,n[2]=g);const y=(0,i.R3)(s,n);if(y){r+=y;const t=(0,i.t9)(s,n);o+=y*t[0],a+=y*t[1],e&&t.length>2&&(h+=y*t[2])}l=f,c=d,u=g}}return r>0?e?[o/r,a/r,h/r]:[o/r,a/r]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!s)return null;r[0]=s[0],r[1]=s[1],e&&s.length>2&&(r[2]=s[2])}return r}function u(t){let e=0;for(t.reset();t.nextPath();)e+=t.getCurrentRingArea();if(e<1e-6){const e=c(t);return e?[e[0],e[1]]:null}const s=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const n=[t.x,t.y];for(t.reset();t.nextPath();)d(s,n,t);return s[0]*=1/e,s[1]*=1/e,s[0]+=n[0],s[1]+=n[1],s}const f=1/3;function d(t,e,s){if(!t||!s||s.pathSize<3)return null;s.nextPoint();const n=s.x,i=s.y;s.nextPoint();let r,o=s.x-n,a=s.y-i,h=0,l=0;for(;s.nextPoint();)h=s.x-n,l=s.y-i,r=.5*f*(h*a-l*o),t[0]+=r*(o+h),t[1]+=r*(a+l),o=h,a=l;const c=s.getCurrentRingArea(),u=[n,i];return u[0]-=e[0],u[1]-=e[1],u[0]*=c,u[1]*=c,t[0]+=u[0],t[1]+=u[1],t}},95108(t,e,s){s.d(e,{$3:()=>c,R3:()=>i,Xf:()=>o,Yl:()=>l,gR:()=>r,m3:()=>f,t9:()=>h});var n=s(4576);function i(t,e){const s=e[0]-t[0],n=e[1]-t[1];if(t.length>2&&e.length>2){const i=t[2]-e[2];return Math.sqrt(s*s+n*n+i*i)}return Math.sqrt(s*s+n*n)}function r(t,e,s,n){const[i,r]=e,[o,a]=s,[h,l]=n,c=h-o,u=l-a,f=c*c+u*u,d=(i-o)*c+(r-a)*u,g=Math.min(1,Math.max(0,d/f));return t[0]=o+c*g,t[1]=a+u*g,t}function o(t,e,s){let n,i,r,o,h=!1,l=1/0;for(s.reset();s.nextPath();)if(s.nextPoint())for(n=s.x,i=s.y;s.nextPoint();)r=s.x,o=s.y,i>e!=o>e&&t<(r-n)*(e-i)/(o-i)+n&&(h=!h),l=Math.min(l,a(t,e,n,i,r,o)),n=r,i=o;return 0===l?0:(h?1:-1)*Math.sqrt(l)}function a(t,e,s,n,i,r){let o=s,a=n,h=i-o,l=r-a;if(0!==h||0!==l){const s=((t-o)*h+(e-a)*l)/(h*h+l*l);s>1?(o=i,a=r):s>0&&(o+=h*s,a+=l*s)}return h=t-o,l=e-a,h*h+l*l}function h(t,e){return function(t,e,s){const n=t[0]+s*(e[0]-t[0]),i=t[1]+s*(e[1]-t[1]);return t.length>2&&e.length>2?[n,i,t[2]+s*(e[2]-t[2])]:[n,i]}(t,e,.5)}function l(t){const e=t.length;let s=0;for(let n=0;n<e-1;++n)s+=i(t[n],t[n+1]);return s}function c(t,e=0,s=1){let n=0;const i=t.length;let r=t[0];for(let o=1;o<i;o++){const i=t[o];n+=(i[e]-r[e])*(i[s]+r[s]),r=i}if(u(t)){const i=t[0];n+=(i[e]-r[e])*(i[s]+r[s])}return n>=0}function u(t){const e=t.length;return e>0&&!(0,n.aI)(t[0],t[e-1])}function f(t){if("rings"in t)for(const e of t.rings)u(e)&&e.push(e[0].slice())}s(52006)},52006(t,e,s){function n(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function i(t){return"curveRings"in t?t.curveRings:t.curvePaths}function r(t){return"b"in t}function o(t){return"c"in t}function a(t){return Array.isArray(t)}function h(t){return"a"in t}function l(t){return"a"in t&&4===t.a.length}function c(t){return"a"in t&&7===t.a.length}function u(t,e){return i(t).flat().some(t=>function(t,e){return!(a(t)||(r(t)?e.has("cubic-bezier"):o(t)?e.has("circular-arc"):!l(t)&&!c(t)||e.has("elliptic-arc")))}(t,e))}function f(t){return a(t)?t:r(t)?t.b[0]:o(t)?t.c[0]:t.a[0]}function d(t){if(r(t)){const[e,s,n]=t.b;return{b:[[...e],[...s],[...n]]}}if(o(t)){const[e,s]=t.c;return{c:[[...e],[...s]]}}if(a(t))return[...t];if(l(t)){const[e,s,n,i]=t.a;return{a:[[...e],[...s],n,i]}}if(c(t)){const[e,s,n,i,r,o,a]=t.a;return{a:[[...e],[...s],n,i,r,o,a]}}return t}s.d(e,{DA:()=>l,Ed:()=>n,FD:()=>i,FG:()=>h,V8:()=>u,Xq:()=>a,aO:()=>o,n1:()=>r,tk:()=>d,wY:()=>c,yP:()=>f}),s(4576)},60408(t,e,s){function n(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function r(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function h(t){return"object"==typeof t&&"vertexAttributes"in t}function l(t){return t?r(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":n(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function c(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function u(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}s.d(e,{$B:()=>l,Bi:()=>a,Pv:()=>c,Rg:()=>o,U9:()=>i,W0:()=>u,ZC:()=>n,fT:()=>r,uW:()=>h})},78957(t,e,s){s.d(e,{d:()=>c,R:()=>b});class n{constructor(t=i){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;const{_data:e,_compare:s}=this;e.push(t);let n=e.length-1>>>0;const i=e[n];for(;n>0;){const t=n-1>>1,r=e[t];if(!(s(r,i)<=0))break;e[t]=i,e[n]=r,n=t}}dequeue(){const{_data:t,_compare:e}=this,s=t[0],n=t.pop();if(0===t.length)return s;t[0]=n;let i=0;const r=t.length,o=t[0];let a,h,l=null;for(;;){const s=2*i+1,n=2*i+2;if(l=null,s<r&&(a=t[s],e(a,o)>0&&(l=s)),n<r&&(h=t[n],(null===l&&e(h,o)<=0||null!==l&&e(h,a)<=0)&&(l=n)),null===l)break;t[i]=t[l],t[l]=o,i=l}return s}}const i=(t,e)=>t<e?-1:t>e?1:0;var r=s(19419),o=s(537),a=s(12359),h=s(95108),l=s(12176);function c(t){if(0===t.totalSize)return null;const e=(0,o.z8)(t);if(!e)return null;const s=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19;let n=0,i=0;t.reset();for(let e=0;t.nextPath();e++){const s=t.getCurrentRingArea();s>i&&(i=s,n=e)}if(t.seekPath(n),0===t.pathSize)return null;t.seekPathStart();const h=(0,o.B$)(t);if(Math.abs(i)<=2*s*s)return[(h[0]+h[2])/2,(h[1]+h[3])/2];t.seekPathStart();const l=(0,a.w2)(t,(0,r.vt)());if(null===l)return null;if(t.totalPoints<4)return l;const c=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],g=[NaN,NaN,NaN,NaN],y=[NaN,NaN,NaN,NaN];let p=!1,I=f(l,t,!0);0===I.distance&&(p=!0,c[0][0]=l[0],c[0][1]=l[1],I=f(l,t,!1)),g[0]=I.distance,y[0]=0;const b=[NaN,NaN];let P=!1,w=.25,T=-1,M=NaN;do{if(M=NaN,c[1]=d(t,_(h[0],h[2],w),0,e),isNaN(c[1][0])||isNaN(c[1][1])||(I=f(c[1],t,!1),M=I.distance),!isNaN(M)&&M>s&&u(c[1],t))P=!0,g[1]=M,y[1]=x(c[1],l);else if(!isNaN(M)&&M>T&&(T=M,b[0]=c[1][0],b[1]=c[1][1]),w-=.01,w<.1){if(!(T>=0))break;P=!0,g[1]=T,c[1][0]=b[0],c[1][1]=b[1],y[1]=x(c[1],l)}}while(!P);P=!1,w=.5,T=-1;let A=.01,v=1;do{if(M=NaN,c[2]=d(t,_(h[0],h[2],w),0,e),isNaN(c[2][0])||isNaN(c[2][1])||(I=f(c[2],t,!1),M=I.distance),!isNaN(M)&&M>s&&u(c[2],t))P=!0,g[2]=M,y[2]=x(c[2],l);else if(!isNaN(M)&&M>T)T=M,b[0]=c[2][0],b[1]=c[2][1];else if(M>T&&(T=M,b[0]=c[2][0],b[1]=c[2][1]),w=.5+A*v,A+=.01,v*=-1,w<.3||w>.7){if(!(T>=0))break;P=!0,g[2]=T,c[2][0]=b[0],c[2][1]=b[1],y[2]=x(c[2],l)}}while(!P);P=!1,w=.75,T=-1;do{if(M=NaN,c[3]=d(t,_(h[0],h[2],w),0,e),isNaN(c[3][0])||isNaN(c[3][1])||(I=f(c[3],t,!1),M=I.distance),!isNaN(M)&&M>s&&u(c[3],t))P=!0,g[3]=M,y[3]=x(c[3],l);else if(M>T&&(T=M,b[0]=c[3][0],b[1]=c[3][1]),w+=.01,w>.9){if(!(T>=0))break;P=!0,g[3]=T,c[3][0]=b[0],c[3][1]=b[1],y[3]=x(c[3],l)}}while(!P);const S=[0,1,2,3],L=p?0:1;let k;for(let t=L;t<4;t++)for(let t=L;t<3;t++){const e=y[t],s=y[t+1];m(e,s)>0&&(k=S[t],S[t]=S[t+1],S[t+1]=k,y[t]=s,y[t+1]=e)}let B=L,N=0,z=0;for(let t=L;t<4;t++){switch(t){case 0:z=2*g[S[t]];break;case 1:z=1.66666666*g[S[t]];break;case 2:z=1.33333333*g[S[t]];break;case 3:z=g[S[t]]}z>N&&(N=z,B=S[t])}return c[B]}function u(t,e){let s,n,i,r,o=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(s=e.x,n=e.y;e.nextPoint();s=i,n=r)i=e.x,r=e.y,n>t[1]!=r>t[1]&&((i-s)*(t[1]-n)-(r-n)*(t[0]-s)>0?o++:o--);return 0!==o}function f(t,e,s){if(s&&u(t,e))return{coord:t,distance:0};let n=1/0,i=0,r=0,o=[0,0],a=[0,0];const l=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(o[0]=e.x,o[1]=e.y;e.nextPoint();o=a){a=[e.x,e.y],(0,h.gR)(l,t,o,a);const s=x(t,l);s<n&&(n=s,i=l[0],r=l[1])}return{coord:[i,r],distance:Math.sqrt(n)}}function d(t,e,s,n){const i=[e,0];let o=1/0,a=1/0,h=!1,c=!1;const u=[[e,n[1]-1],[e,n[3]+1]],f=[0,0],d=[0,0],p=[0,0],_=[[0,0],[0,0]],x=(0,r.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(_[0][0]=t.x,_[0][1]=t.y;t.nextPoint();_[0][0]=_[1][0],_[0][1]=_[1][1]){if(_[1][0]=t.x,_[1][1]=t.y,null===g(x,_))continue;if(d[0]=u[0][0],d[1]=u[0][1],p[0]=u[1][0],p[1]=u[1][1],0===y(x,d,p))continue;if(!(0,l.Ql)(u[0],u[1],_[0],_[1],f))continue;const e=f[1];o>a?e<o&&(o=e,h=!0):e<a&&(a=e,c=!0)}return h&&c?i[1]=(o+a)/2:i[0]=i[1]=NaN,i}function g(t,e){if(e.length<2)return null;t||(t=(0,r.vt)());const[s,n]=e[0],[i,o]=e[1];return t[0]=Math.min(s,i),t[1]=Math.min(n,o),t[2]=Math.max(s,i),t[3]=Math.max(n,o),t}function y(t,e,s){let n=p(e,t),i=p(s,t);const r=t[0],o=t[1],a=t[2],h=t[3];if(n&i)return 0;if(!(n|i))return 4;const l=(n?1:0)|(i?2:0);do{const l=s[0]-e[0],c=s[1]-e[1];if(l>c)3&n?(1&n?(e[1]+=c*(r-e[0])/l,e[0]=r):(e[1]+=c*(a-e[0])/l,e[0]=a),n=p(e,t)):3&i?(1&i?(s[1]+=c*(r-s[0])/l,s[0]=r):(s[1]+=c*(a-s[0])/l,s[0]=a),i=p(s,t)):n?(4&n?(e[0]+=l*(o-e[1])/c,e[1]=o):(e[0]+=l*(h-e[1])/c,e[1]=h),n=p(e,t)):(4&i?(s[0]+=l*(o-s[1])/c,s[1]=o):(s[0]+=l*(h-s[1])/c,s[1]=h),i=p(s,t));else if(12&n?(4&n?(e[0]+=l*(o-e[1])/c,e[1]=o):(e[0]+=l*(h-e[1])/c,e[1]=h),n=p(e,t)):12&i?(4&i?(s[0]+=l*(o-s[1])/c,s[1]=o):(s[0]+=l*(h-s[1])/c,s[1]=h),i=p(s,t)):n?(1&n?(e[1]+=c*(r-e[0])/l,e[0]=r):(e[1]+=c*(a-e[0])/l,e[0]=a),n=p(e,t)):(1&i?(s[1]+=c*(r-s[0])/l,s[0]=r):(s[1]+=c*(a-s[0])/l,s[0]=a),i=p(s,t)),n&i)return 0}while(n|i);return l}function p(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function _(t,e,s){return t+(e-t)*s}function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function m(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const s=isNaN(t),n=isNaN(e);return s<n?-1:s>n?1:0}class I{constructor(t,e,s,n){this.x=t,this.y=e,this.cellSize=s,this.distancefromCellCenter=(0,h.Xf)(t,e,n),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function b(t){if(!t.nextPath()||!t.pathSize)return null;const e=(0,o.B$)(t),s=e[2]-e[0],i=e[3]-e[1];if(0===s||0===i)return[e[0]+s/2,e[1]+i/2];const r=Math.max(Math.min(s,i)/100,1),h=new n((t,e)=>e.maxDistanceToPolygon-t.maxDistanceToPolygon),l=Math.min(s,i);let c=l/2,u=0,f=0;for(u=e[0];u<e[2];u+=l)for(f=e[1];f<e[3];f+=l)h.enqueue(new I(u+c,f+c,c,t));t.reset(),t.nextPath();const d=(0,a.IK)(t);if(null===d)return null;let g,y=new I(d[0],d[1],0,t);for(;h.size>0;)g=h.dequeue(),g.distancefromCellCenter>y.distancefromCellCenter&&(y=g),g.maxDistanceToPolygon-y.distancefromCellCenter<=r||(c=g.cellSize/2,h.enqueue(new I(g.x-c,g.y-c,c,t)),h.enqueue(new I(g.x+c,g.y-c,c,t)),h.enqueue(new I(g.x-c,g.y+c,c,t)),h.enqueue(new I(g.x+c,g.y+c,c,t)));return[y.x,y.y]}},97770(t,e,s){s.d(e,{Ey:()=>N,F8:()=>B,J2:()=>v,Yq:()=>L,_m:()=>S,iS:()=>k,wj:()=>z});var n=s(66552),i=s(73444),r=s(98623),o=s(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},h={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},l={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},u={year:"numeric",month:"long",day:"numeric"},f={year:"numeric",month:"short",day:"numeric"},d={year:"numeric",month:"long",weekday:"long",day:"numeric"},g={hour:"numeric",minute:"numeric"},y={...g,second:"numeric"},p={hourCycle:"h23"},_={...g,...p},x={...y,...p},m={"short-date":c,"short-date-short-time":{...c,...g},"short-date-short-time-24":{...c,..._},"short-date-long-time":{...c,...y},"short-date-long-time-24":{...c,...x},"short-date-le":c,"short-date-le-short-time":{...c,...g},"short-date-le-short-time-24":{...c,..._},"short-date-le-long-time":{...c,...y},"short-date-le-long-time-24":{...c,...x},"long-month-day-year":u,"long-month-day-year-short-time":{...u,...g},"long-month-day-year-short-time-24":{...u,..._},"long-month-day-year-long-time":{...u,...y},"long-month-day-year-long-time-24":{...u,...x},"day-short-month-year":f,"day-short-month-year-short-time":{...f,...g},"day-short-month-year-short-time-24":{...f,..._},"day-short-month-year-long-time":{...f,...y},"day-short-month-year-long-time-24":{...f,...x},"long-date":d,"long-date-short-time":{...d,...g},"long-date-short-time-24":{...d,..._},"long-date-long-time":{...d,...y},"long-date-long-time-24":{...d,...x},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":g,"long-time":y},I=(0,n.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"},P=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),w=P.find(({type:t})=>"month"===t)?.value.toLowerCase();function T(){const t=(0,i.lR)();return(t&&b[t])??(0,i.QC)()}"mart"!==w&&(b.bs="sr-Latn-CS");let M=new WeakMap;const A=m["short-date-short-time"];function v(t){return m[t]}function S(t){const{dateStyle:e,timeStyle:s,hour12:n,year:i,month:r}=t,o={};return e?o.dateStyle=e:i&&(o.year=i,o.month=r||void 0),s&&!o.year&&(o.timeStyle=s,o.hour12="auto"===n?void 0:"always"===n),o}function L(t,e=A){return function(t){let e=M.get(t);if(!e){const s=T(),n=z(t.timeZone??"system"),i={...t,timeZone:n};e=new Intl.DateTimeFormat(s,i),M.set(t,e)}return e}(e).format(t)}function k(t,e=A){return L(new Date(t),{...e,...l,...h})}function B(t,e=A){return L(new Date(`1970-01-01T${t}Z`),{...e,...l,...a})}function N(t,e=A){const s=o.c9.fromISO(t,{setZone:!0});if(!s.isValid)return t;if(e.timeZone)return L(s.toJSDate(),e);const n=0===s.offset?"UTC":e.timeZone,i={...e,timeZone:n};return s.toLocaleString(i,{locale:T()})}function z(t){switch(t){case"system":return r.N;case r.L:return"UTC";default:return t}}(0,i.Ml)(()=>{M=new WeakMap}),s.d(e,["_v",0,I])},73444(t,e,s){s.d(e,{JK:()=>h,Ml:()=>p,QC:()=>u,lR:()=>c,oQ:()=>g});var n=s(36563);let i;s(44208);const r=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const t=o?.getAttribute("lang"),e=globalThis.navigator?.language;return r??t??e??"en"}function h(){return void 0===i&&(i=a()),i}const l=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(t=h()){return f(t)?.language}function u(t=h()){const e=f(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function f(t=h()){return l.exec(t)?.groups}const d=[];function g(t){return d.push(t),(0,n.hA)(()=>{d.splice(d.indexOf(t),1)})}new Map;const y=[];function p(t){return y.push(t),(0,n.hA)(()=>y.splice(y.indexOf(t),1))}function _(){const t=a();i!==t&&([...y].forEach(e=>e(t)),i=t,[...d].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",_),o&&new MutationObserver(()=>{_()}).observe(o,{attributeFilter:["lang"]})},92722(t,e,s){s.d(e,{A:()=>i});var n=s(69397);class i{constructor(t=[],e=[],s=!1,n=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=s,this.hasM=n}static fromJSON({lengths:t,coords:e,hasZ:s,hasM:n}){return new i(t,e,s||!1,n||!1)}static fromRect([t,e,s,n]){const r=s-t,o=n-e;return new i([5],[t,e,r,0,0,o,-r,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const s of this.lengths){if(s<3)continue;const{stride:n}=this;let i=this.coords[n*e],r=this.coords[n*e+1];for(let o=1;o<s;o+=1){const s=n*(e+o),a=this.coords[s],h=this.coords[s+1];t+=-.5*(a-i)*(h+r),i=a,r=h}e+=s}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:s}=this;for(const n of this.lengths){for(let i=0;i<n;i++){const n=s*(e+i);t(this.coords[n],this.coords[n+1])}e+=n}}deltaDecode(){const t=this.clone(),{coords:e,lengths:s}=t;let n=0;const{stride:i}=this;for(const t of s){for(let s=1;s<t;s++){const t=i*(n+s);e[t]+=e[t-i],e[t+1]+=e[t+1-i]}n+=t}return t}clone(t){if(this.isPoint)return new i([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:s,size:n}=this,r=this.coords.slice(0,n*s);return t?(t.set(r),new i(e,t,this.hasZ,this.hasM)):new i(e,Array.from(r),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const s=new Array(e*t);for(let e=0,n=0;e<s.length;e+=t)s[n++]=this.coords[e],s[n++]=this.coords[e+1];return new i(this.lengths,s,!1,!1)}}},98623(t,e,s){const n=Intl.DateTimeFormat().resolvedOptions().timeZone;s.d(e,["L",0,"unknown","N",0,n])},36984(t,e,s){s.r(e),s.d(e,{default:()=>X});var n=s(17676),i=s(29953),r=s(6774),o=s(13195);function a(t){return 746===t||747===t||!(t<4352)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103&&!(t>=65097&&t<=65103)||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351&&!(t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=12592&&t<=12687||t>=43360&&t<=43391||t>=55216&&t<=55295||t>=4352&&t<=4607||t>=44032&&t<=55215||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12688&&t<=12703||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543&&12540!==t||t>=65280&&t<=65519&&!(65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||t>=65104&&t<=65135&&!(t>=65112&&t<=65118||t>=65123&&t<=65126)||t>=5120&&t<=5759||t>=6320&&t<=6399||t>=65040&&t<=65055||t>=19904&&t<=19967||t>=40960&&t<=42127||t>=42128&&t<=42191)}function h(t){return!(t<11904)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=65280&&t<=65519||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543||t>=65040&&t<=65055||t>=42128&&t<=42191||t>=40960&&t<=42127)}function l(t){switch(t){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1}function c(t){switch(t){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1}var u=s(18989);class f{constructor(t,e,s,n,i,r,o){this._glyphItems=t,this._maxWidth=e,this._lineHeight=s,this._letterSpacing=n,this._hAnchor=i,this._vAnchor=r,this._justify=o}getShaping(t,e,s){const n=this._letterSpacing,i=this._lineHeight,r=this._justify,o=this._maxWidth,u=[];let f=0,d=0;for(const e of t){const t=e.codePointAt(0);if(null==t)continue;const i=s&&a(t);let r;for(const e of this._glyphItems)if(r=e[t],r)break;u.push({codePoint:t,x:f,y:d,vertical:i,glyphItem:r}),r&&(f+=r.shaping.xAdvance+n)}let g=f;o>0&&(g=f/Math.max(1,Math.ceil(f/o)));const y=t.includes(""),p=[],_=u.length;for(let t=0;t<_-1;t++){const e=u[t].codePoint,s=h(e);if(l(e)||s){let n=0;if(10===e)n-=1e4;else if(s&&y)n+=150;else{40!==e&&65288!==e||(n+=50);const s=u[t+1].codePoint;41!==s&&65289!==s||(n+=50)}p.push(this._buildBreak(t+1,u[t].x,g,p,n,!1))}}const x=this._optimalBreaks(this._buildBreak(_,f,g,p,0,!0));let m=0;const I=e?-i:i;let b=0;for(let t=0;t<x.length;t++){const e=x[t];let s=b;for(;s<e&&c(u[s].codePoint);)u[s].glyphItem=null,++s;let n=e-1;for(;n>s&&c(u[n].codePoint);)u[n].glyphItem=null,--n;if(s<=n){const t=u[s].x;for(let e=s;e<=n;e++)u[e].x-=t,u[e].y=d;let e=u[n].x;u[n].glyphItem&&(e+=u[n].glyphItem.shaping.xAdvance),m=Math.max(e,m),r&&this._applyJustification(u,s,n)}b=e,d+=I}if(u.length>0){const t=x.length-1,s=(r-this._hAnchor)*m;let n=(-this._vAnchor*(t+1)+.5)*i;e&&t&&(n+=t*i);for(const t of u)t.x+=s,t.y+=n}return u.filter(t=>t.glyphItem)}static getTextBox(t,e){if(!t.length)return null;let s=1/0,n=1/0,i=0,r=0;for(const o of t){const t=o.glyphItem.shaping.xAdvance,a=o.x,h=o.y-17,l=a+t,c=h+e;s=Math.min(s,a),i=Math.max(i,l),n=Math.min(n,h),r=Math.max(r,c)}return{x:s,y:n,width:i-s,height:r-n}}static getBox(t){if(!t.length)return null;let e=1/0,s=1/0,n=0,i=0;for(const r of t){const{height:t,left:o,top:a,width:h}=r.glyphItem.rect,l=r.x,c=r.y-(t-Math.abs(a)),u=l+h+o,f=c+t;e=Math.min(e,l),n=Math.max(n,u),s=Math.min(s,c),i=Math.max(i,f)}return{x:e,y:s,width:n-e,height:i-s}}static addDecoration(t,e){const s=t.length;if(0===s)return;const n={rect:new u.A(4,0,4,8),sdf:!0,page:0};let i=t[0].x+t[0].glyphItem.rect.left,r=t[0].y;for(let o=1;o<s;o++){const s=t[o];if(s.y!==r){const a=t[o-1].x+t[o-1].glyphItem.rect.left+t[o-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:r+e-3,vertical:!1,glyphItem:{mosaicItem:n,rect:{width:a-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}}),r=s.y,i=s.x+s.glyphItem.rect.left}}const o=t[s-1].x+t[s-1].glyphItem.rect.left+t[s-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:r+e-3,vertical:!1,glyphItem:{mosaicItem:n,rect:{width:o-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}})}_breakScore(t,e,s,n){const i=(t-e)*(t-e);return n?t<e?i/2:2*i:i+Math.abs(s)*s}_buildBreak(t,e,s,n,i,r){let o=null,a=this._breakScore(e,s,i,r);for(const t of n){const n=e-t.x,h=this._breakScore(n,s,i,r)+t.score;h<=a&&(o=t,a=h)}return{index:t,x:e,score:a,previousBreak:o}}_optimalBreaks(t){return t?this._optimalBreaks(t.previousBreak).concat(t.index):[]}_applyJustification(t,e,s){const n=t[s],i=n.vertical?24:n.glyphItem?n.glyphItem.shaping.xAdvance:0,r=(n.x+i)*this._justify;for(let n=e;n<=s;n++)t[n].x-=r}}const d=.5;class g{constructor(t,e,s=0,n=-1,i=d){this.x=t,this.y=e,this.angle=s,this.segment=n,this.minzoom=i}}class y{constructor(t,e,s,n,i,r=d,a=o.MG){this.anchor=t,this.labelAngle=e,this.glyphAngle=s,this.page=n,this.alternateVerticalGlyph=i,this.minzoom=r,this.maxzoom=a}}class p{constructor(t,e,s,n,i,r,o,a,h,l,c,u){this.tl=t,this.tr=e,this.bl=s,this.br=n,this.mosaicRect=i,this.labelAngle=r,this.minAngle=o,this.maxAngle=a,this.anchor=h,this.minzoom=l,this.maxzoom=c,this.page=u}}class _{constructor(t){this.shapes=t}}class x{getIconPlacement(t,e,s){const n=new r.bR(t.x,t.y),i=0===s.rotationAlignment,a=s.keepUpright;let h=s.rotate*o.os;i&&(h+=t.angle);const l=new _([]);return l.iconColliders=[],this._addIconPlacement(l,n,e,s,h),i&&a&&this._addIconPlacement(l,n,e,s,h+o.Jo),l}_addIconPlacement(t,e,s,n,i){const a=s.rasterizationScale,h=s.width/a,l=s.height/a,c=n.offset;let u=c[0],f=c[1];switch(n.anchor){case 0:u-=h/2,f-=l/2;break;case 1:f-=l/2;break;case 2:u-=h,f-=l/2;break;case 3:u-=h/2;break;case 4:u-=h/2,f-=l;break;case 5:break;case 7:f-=l;break;case 6:u-=h;break;case 8:u-=h,f-=l}const g=s.rect,y=2/a,_=u-y,x=f-y,m=_+g.width/a,I=x+g.height/a,b=new r.bR(_,x),P=new r.bR(m,I),w=new r.bR(_,I),T=new r.bR(m,x);if(0!==i){const t=Math.cos(i),e=Math.sin(i);b.rotate(t,e),P.rotate(t,e),w.rotate(t,e),T.rotate(t,e)}const M=new p(b,T,w,P,g,i,0,256,e,d,o.MG,0);t.shapes.push(M);{const s=n.size,r=n.padding,a={xTile:e.x,yTile:e.y,dxPixels:u*s-r,dyPixels:f*s-r,hard:!n.optional,partIndex:0,width:h*s+2*r,height:l*s+2*r,angle:i,minLod:d,maxLod:o.MG};t.iconColliders.push(a)}}getTextPlacement(t,e,s,n){const i=new r.bR(t.x,t.y),{keepUpright:a,rotate:h,rotationAlignment:l,size:c}=n,u=h*o.os,g=0===l,x=a,m=n.padding;let I=d;const b=g?t.angle:0,P=t.segment>=0&&g,w=[],T=[],M=!P;let A=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY,S=A,L=v;const k=(P||g)&&x,B=c/24;let N=!1;for(const t of e)if(t.vertical){N=!0;break}let z,V=0,D=0;if(!P&&N){const t=f.getTextBox(e,24*n.lineHeight);switch(n.anchor){case 1:V=t.height/2,D=-t.width/2;break;case 2:V=-t.height/2,D=t.width/2;break;case 3:V=t.height/2,D=t.width/2;break;case 4:V=-t.height/2,D=-t.width/2;break;case 5:V=t.height;break;case 7:D=-t.width;break;case 6:D=t.width;break;case 8:V=-t.height}}V+=24*n.offset[0],D+=24*n.offset[1];for(const a of e){const e=a.glyphItem?.mosaicItem,h=a.glyphItem?.rect;if(!e||e.rect.isEmpty)continue;const l=e.rect,c=e.page;if(w&&M){if(void 0!==z&&z!==a.y){let e,s,i,r;N?(e=-L+V,s=A+D,i=L-S,r=v-A):(e=A+V,s=S+D,i=v-A,r=L-S);const a={xTile:t.x,yTile:t.y,dxPixels:e*B-m,dyPixels:s*B-m,hard:!n.optional,partIndex:1,width:i*B+2*m,height:r*B+2*m,angle:u,minLod:d,maxLod:o.MG};w.push(a),A=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY,S=A,L=v}z=a.y}const f=[];if(P){const e=.5*h.width,n=(a.x+h.left-3+e)*B*8;if(I=this._placeGlyph(t,I,n,s,t.segment,1,a.vertical,c,f),x&&(I=this._placeGlyph(t,I,n,s,t.segment,-1,a.vertical,c,f)),I>=2)break}else f.push(new y(i,b,b,c,!1)),g&&x&&f.push(new y(i,b+o.Jo,b+o.Jo,c,!1));const _=a.x+h.left,R=a.y-17-h.top,C=_+h.width,F=R+h.height;let U,O,E,G,Z,W,Y,q;if(!P&&N)if(a.vertical){const t=(_+C)/2-h.height/2,e=(R+F)/2+h.width/2;U=new r.bR(-e-3+V,t-3+D),O=new r.bR(U.x+l.width,U.y+l.height),E=new r.bR(U.x,O.y),G=new r.bR(O.x,U.y)}else U=new r.bR(3-R+V,_-3+D),O=new r.bR(U.x-l.height,U.y+l.width),E=new r.bR(O.x,U.y),G=new r.bR(U.x,O.y);else U=new r.bR(_-3+V,R-3+D),O=new r.bR(U.x+l.width,U.y+l.height),E=new r.bR(U.x,O.y),G=new r.bR(O.x,U.y);for(const e of f){let s,i,o,c;if(e.alternateVerticalGlyph){if(!Z){const t=(R+F)/2+D;Z=new r.bR((_+C)/2+V-h.height/2-3,t+h.width/2+3),W=new r.bR(Z.x+l.height,Z.y-l.width),Y=new r.bR(W.x,Z.y),q=new r.bR(Z.x,W.y)}s=Z,i=Y,o=q,c=W}else s=U,i=E,o=G,c=O;const f=R,d=F,g=e.glyphAngle+u;if(0!==g){const t=Math.cos(g),e=Math.sin(g);s=s.clone(),i=i?.clone(),o=o?.clone(),c=c?.clone(),s.rotate(t,e),c?.rotate(t,e),i?.rotate(t,e),o?.rotate(t,e)}let y=0,x=256;if(P&&N?a.vertical?e.alternateVerticalGlyph?(y=32,x=96):(y=224,x=32):(y=224,x=96):(y=192,x=64),T.push(new p(s,o,i,c,l,e.labelAngle,y,x,e.anchor,e.minzoom,e.maxzoom,e.page)),w&&(!k||this._legible(e.labelAngle)))if(M)_<A&&(A=_),f<S&&(S=f),C>v&&(v=C),d>L&&(L=d);else if(e.minzoom<2){const s={xTile:t.x,yTile:t.y,dxPixels:(_+V)*B-m,dyPixels:(f+V)*B-m,hard:!n.optional,partIndex:1,width:(C-_)*B+2*m,height:(d-f)*B+2*m,angle:g,minLod:e.minzoom,maxLod:e.maxzoom};w.push(s)}}}if(I>=2)return null;if(w&&M){let e,s,i,r;N?(e=-L+V,s=A+D,i=L-S,r=v-A):(e=A+V,s=S+D,i=v-A,r=L-S);const a={xTile:t.x,yTile:t.y,dxPixels:e*B-m,dyPixels:s*B-m,hard:!n.optional,partIndex:1,width:i*B+2*m,height:r*B+2*m,angle:u,minLod:d,maxLod:o.MG};w.push(a)}const R=new _(T);return w&&w.length>0&&(R.textColliders=w),R}_legible(t){const e=(0,o.z0)(t);return e<65||e>=193}_placeGlyph(t,e,s,n,i,a,h,l,c){let u=a;const f=u<0?(0,o.Wh)(t.angle+o.Jo,o.pJ):t.angle;let d=0;s<0&&(u*=-1,s*=-1,d=o.Jo),u>0&&++i;let g=new r.bR(t.x,t.y),p=n[i],_=o.MG;if(n.length<=i)return _;for(;;){const t=p.x-g.x,r=p.y-g.y,a=Math.sqrt(t*t+r*r),x=Math.max(s/a,e),m=t/a,I=r/a,b=(0,o.Wh)(Math.atan2(I,m)+d,o.pJ);if(c.push(new y(g,f,b,l,!1,x,_)),h&&c.push(new y(g,f,b,l,!0,x,_)),x<=e)return x;g=p.clone();do{if(i+=u,n.length<=i||i<0)return x;p=n[i]}while(g.isEqual(p));let P=p.x-g.x,w=p.y-g.y;const T=Math.sqrt(P*P+w*w);P*=a/T,w*=a/T,g.x-=P,g.y-=w,_=x}}}var m=s(51624),I=s(15585);class b{constructor(t,e,s=0){this.values={},this._geometry=void 0,this._pbfGeometry=null,this.featureIndex=s;const n=e.keys,i=e.values,r=t.asUnsafe();for(;r.next();)switch(r.tag()){case 1:this.id=r.getUInt64();break;case 2:{const t=r.getMessage().asUnsafe(),e=this.values;for(;!t.empty();){const s=t.getUInt32(),r=t.getUInt32();e[n[s]]=i[r]}t.release();break}case 3:this.type=r.getUInt32();break;case 4:this._pbfGeometry=r.getMessage();break;default:r.skip()}}getGeometry(t){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const e=this._pbfGeometry.asUnsafe();let s,n;this._pbfGeometry=null,t?t.reset(this.type):s=[];let i,o=1,a=0,h=0,l=0;for(;!e.empty();){if(0===a){const t=e.getUInt32();o=7&t,a=t>>3}switch(a--,o){case 1:h+=e.getSInt32(),l+=e.getSInt32(),t?t.moveTo(h,l):s&&(n&&s.push(n),n=[],n.push(new r.bR(h,l)));break;case 2:h+=e.getSInt32(),l+=e.getSInt32(),t?t.lineTo(h,l):n&&n.push(new r.bR(h,l));break;case 7:t?t.close():n&&!n[0].equals(h,l)&&n.push(n[0].clone());break;default:throw e.release(),new Error("Invalid path operation")}}return t?i=t.result():s&&(n&&s.push(n),i=s),e.release(),this._geometry=i,i}}s(44208);class P{constructor(t){this._array=[],this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}}class w extends P{constructor(){super(12)}add(t,e,s){const n=this.array;n.push(t),n.push(e),n.push(s)}}class T{constructor(t){this.extent=4096,this.keys=[],this.values=[],this._pbfLayer=t.clone();const e=t.asUnsafe();for(;e.next();)switch(e.tag()){case 1:this.name=e.getString();break;case 3:this.keys.push(e.getString());break;case 4:this.values.push(e.processMessage(T._parseValue));break;case 5:this.extent=e.getUInt32();break;default:e.skip()}}getData(){return this._pbfLayer}static _parseValue(t){for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getInt64();case 5:return t.getUInt64();case 6:return t.getSInt64();case 7:return t.getBool();default:t.skip()}return null}}var M=s(89518);class A extends P{constructor(t){super(t)}add(t,e,s,n,i,r,o,a,h,l,c,u){const f=this.array;let d=(0,M.M9)(t,e);f.push(d);const g=31;d=(0,M.Ss)(Math.round(g*s),Math.round(g*n),Math.round(g*i),Math.round(g*r)),f.push(d),d=(0,M.Ss)(Math.round(g*o),Math.round(g*a),Math.round(g*h),Math.round(g*l)),f.push(d),d=(0,M.M9)(c,0),f.push(d),u&&f.push(...u)}}class v extends P{constructor(t){super(t)}add(t,e,s){const n=this.array;n.push((0,M.M9)(t,e)),s&&n.push(...s)}}class S extends P{constructor(t){super(t)}add(t,e,s,n,i,r,o){const a=this.array,h=this.index;let l=(0,M.M9)(t,e);return a.push(l),l=(0,M.Ss)(Math.round(15*s),Math.round(15*n),i,r),a.push(l),o&&a.push(...o),h}}class L extends P{constructor(t){super(t)}add(t,e,s,n,i,r,a,h,l,c,u,f){const d=this.array;let g=(0,M.M9)(t,e);d.push(g),g=(0,M.M9)(Math.round(8*s),Math.round(8*n)),d.push(g),g=(0,M.M9)((0,M.ws)(i/4,r/4),(0,M.ws)(h,l)),d.push(g),g=(0,M.M9)((0,M.ws)(0,(0,o.z0)(a)),(0,M.ws)(10*c,Math.min(10*u,255))),d.push(g),f&&d.push(...f)}}class k extends P{constructor(t){super(t)}add(t,e,s,n,i){const r=this.array,o=(0,M.M9)(2*t+s,2*e+n);r.push(o),i&&r.push(...i)}}class B{constructor(t,e,s){this.layerExtent=4096,this._features=[],this.layer=t,this.zoom=e,this._spriteInfo=s,this._filter=t.getFeatureFilter()}pushFeature(t){this._filter&&!this._filter.filter(t,this.zoom)||this._features.push(t)}hasFeatures(){return this._features.length>0}getResources(t,e,s){}}class N extends B{constructor(t,e,s,n,i){super(t,e,s),this.type=4,this._circleVertexBuffer=n,this._circleIndexBuffer=i}get circleIndexStart(){return this._circleIndexStart}get circleIndexCount(){return this._circleIndexCount}processFeatures(t){const e=this._circleVertexBuffer,s=this._circleIndexBuffer;this._circleIndexStart=3*s.index,this._circleIndexCount=0;const n=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);for(const r of this._features){const o=r.getGeometry(t);if(!o)continue;const a=n.circleMaterial.encodeAttributes(r,i,n);for(const t of o)if(t)for(const n of t){const t=e.index;e.add(n.x,n.y,0,0,a),e.add(n.x,n.y,0,1,a),e.add(n.x,n.y,1,0,a),e.add(n.x,n.y,1,1,a),s.add(t,t+1,t+2),s.add(t+1,t+2,t+3),this._circleIndexCount+=6}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this._circleVertexBuffer.array.length,t+=this._circleIndexBuffer.array.length;const e=new Uint32Array(t),s=new Int32Array(e.buffer);let n=0;e[n++]=this.type,e[n++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[n++]=this.layerUIDs[t];e[n++]=this._circleIndexStart,e[n++]=this._circleIndexCount,e[n++]=this._circleVertexBuffer.array.length;for(let t=0;t<this._circleVertexBuffer.array.length;t++)s[n++]=this._circleVertexBuffer.array[t];e[n++]=this._circleIndexBuffer.array.length;for(let t=0;t<this._circleIndexBuffer.array.length;t++)e[n++]=this._circleIndexBuffer.array[t];return e.buffer}}var z=s(98291),V=s(83349);class D extends B{constructor(t,e,s,n,i,r,o){super(t,e,s),this.type=1,this._patternMap=new Map,this._fillVertexBuffer=n,this._fillIndexBuffer=i,this._outlineVertexBuffer=r,this._outlineIndexBuffer=o}get fillIndexStart(){return this._fillIndexStart}get fillIndexCount(){return this._fillIndexCount}get outlineIndexStart(){return this._outlineIndexStart}get outlineIndexCount(){return this._outlineIndexCount}getResources(t,e,s){const n=this.layer,i=this.zoom,r=n.getPaintProperty("fill-pattern");if(r)if(r.isDataDriven)for(const t of this._features)e(r.getValue(i,t),!0);else e(r.getValue(i),!0)}processFeatures(t){this._fillIndexStart=3*this._fillIndexBuffer.index,this._fillIndexCount=0,this._outlineIndexStart=3*this._outlineIndexBuffer.index,this._outlineIndexCount=0;const e=this.layer,s=this.zoom,{fillMaterial:n,outlineMaterial:i,hasDataDrivenFill:r,hasDataDrivenOutline:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("fill-pattern"),h=a?.isDataDriven;let l=!a&&e.getPaintValue("fill-antialias",s);if(e.outlineUsesFillColor){if(l&&!e.hasDataDrivenOpacity){const t=e.getPaintValue("fill-opacity",s),n=e.getPaintValue("fill-opacity",s+1);t<1&&n<1&&(l=!1)}if(l&&!e.hasDataDrivenColor){const t=e.getPaintValue("fill-color",s),n=e.getPaintValue("fill-color",s+1);t[3]<1&&n[3]<1&&(l=!1)}}const c=this._features,u=t?.validateTessellation;if(h){const r=[];for(const h of c){const c=a.getValue(s,h),u=this._spriteInfo[c];if(!u?.rect)continue;const f=n.encodeAttributes(h,s,e,u),d=l&&o?i.encodeAttributes(h,s,e):[],g=h.getGeometry(t);r.push({ddFillAttributes:f,ddOutlineAttributes:d,page:u.page,geometry:g}),r.sort((t,e)=>t.page-e.page)}for(const{ddFillAttributes:t,ddOutlineAttributes:s,page:n,geometry:i}of r)this._processFeature(i,l,e.outlineUsesFillColor,t,s,u,n)}else for(const a of c){const h=r?n.encodeAttributes(a,s,e):null,c=l&&o?i.encodeAttributes(a,s,e):null,f=a.getGeometry(t);this._processFeature(f,l,e.outlineUsesFillColor,h,c,u)}}serialize(){let t=10;t+=this.layerUIDs.length,t+=this._fillVertexBuffer.array.length,t+=this._fillIndexBuffer.array.length,t+=this._outlineVertexBuffer.array.length,t+=this._outlineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),s=new Int32Array(e.buffer);let n=0;e[n++]=this.type,e[n++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[n++]=this.layerUIDs[t];e[n++]=this._fillIndexStart,e[n++]=this._fillIndexCount,e[n++]=this._outlineIndexStart,e[n++]=this._outlineIndexCount;const i=this._patternMap,r=i.size;if(e[n++]=r,r>0)for(const[t,[s,r]]of i)e[n++]=t,e[n++]=s,e[n++]=r;e[n++]=this._fillVertexBuffer.array.length;for(let t=0;t<this._fillVertexBuffer.array.length;t++)s[n++]=this._fillVertexBuffer.array[t];e[n++]=this._fillIndexBuffer.array.length;for(let t=0;t<this._fillIndexBuffer.array.length;t++)e[n++]=this._fillIndexBuffer.array[t];e[n++]=this._outlineVertexBuffer.array.length;for(let t=0;t<this._outlineVertexBuffer.array.length;t++)s[n++]=this._outlineVertexBuffer.array[t];e[n++]=this._outlineIndexBuffer.array.length;for(let t=0;t<this._outlineIndexBuffer.array.length;t++)e[n++]=this._outlineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,s,n,i,r,o){if(!t)return;const a=t.length,h=!i||0===i.length;if(e&&(!s||h))for(let e=0;e<a;e++)this._processOutline(t[e],i);let l;for(let e=0;e<a;e++){const s=D._area(t[e]);s>32?(void 0!==l&&this._processFill(t,l,n,r,o),l=[e]):s<-32&&void 0!==l&&l.push(e)}void 0!==l&&this._processFill(t,l,n,r,o)}_processOutline(t,e){const s=this._outlineVertexBuffer,n=this._outlineIndexBuffer,i=n.index;let o,a,h;const l=new r.bR(0,0),c=new r.bR(0,0),u=new r.bR(0,0);let f=-1,d=-1,g=-1,y=-1,p=-1,_=!1,x=t.length;if(x<2)return;const m=t[0];let I=t[x-1];for(;x&&I.isEqual(m);)--x,I=t[x-1];if(!(x-0<2)){for(let i=0;i<x;++i){0===i?(o=t[x-1],a=t[0],h=t[1],l.assignSub(a,o),l.normalize(),l.rightPerpendicular()):(o=a,a=h,h=i!==x-1?t[i+1]:t[0],l.assign(c));const r=this._isClipEdge(o,a);-1===y&&(_=r),c.assignSub(h,a),c.normalize(),c.rightPerpendicular();const m=l.x*c.y-l.y*c.x;u.assignAdd(l,c),u.normalize();const I=-u.x*-l.x+-u.y*-l.y;let b=Math.abs(0!==I?1/I:1);b>8&&(b=8),m>=0?(g=s.add(a.x,a.y,l.x,l.y,0,1,e),-1===y&&(y=g),f>=0&&d>=0&&g>=0&&!r&&n.add(f,d,g),d=s.add(a.x,a.y,b*-u.x,b*-u.y,0,-1,e),-1===p&&(p=d),f>=0&&d>=0&&g>=0&&!r&&n.add(f,d,g),f=d,d=g,g=s.add(a.x,a.y,u.x,u.y,0,1,e),f>=0&&d>=0&&g>=0&&!r&&n.add(f,d,g),d=s.add(a.x,a.y,c.x,c.y,0,1,e),f>=0&&d>=0&&g>=0&&!r&&n.add(f,d,g)):(g=s.add(a.x,a.y,b*u.x,b*u.y,0,1,e),-1===y&&(y=g),f>=0&&d>=0&&g>=0&&!r&&n.add(f,d,g),d=s.add(a.x,a.y,-l.x,-l.y,0,-1,e),-1===p&&(p=d),f>=0&&d>=0&&g>=0&&!r&&n.add(f,d,g),f=d,d=g,g=s.add(a.x,a.y,-u.x,-u.y,0,-1,e),f>=0&&d>=0&&g>=0&&!r&&n.add(f,d,g),f=s.add(a.x,a.y,-c.x,-c.y,0,-1,e),f>=0&&d>=0&&g>=0&&!r&&n.add(f,d,g))}f>=0&&d>=0&&y>=0&&!_&&n.add(f,d,y),f>=0&&y>=0&&p>=0&&!_&&n.add(f,p,y),this._outlineIndexCount+=3*(n.index-i)}}_processFill(t,e,s,n,i){let r;e.length>1&&(r=[]);let o=0;for(const s of e)0!==o&&r.push(o),o+=t[s].length;const a=2*o,h=z.A.acquire();for(const s of e){const e=t[s],n=e.length;for(let t=0;t<n;++t)h.push(e[t].x,e[t].y)}const l=(0,V.e)(h,r,2);if(V.e.deviation(h,r,2,l)>0){const n=e.map(e=>t[e].length),{buffer:r,vertexCount:o}=(0,I.QT)(h,n);if(o>0){const t=this._fillVertexBuffer.index;for(let t=0;t<o;t++)this._fillVertexBuffer.add(r[2*t],r[2*t+1],s);for(let e=0;e<o;e+=3){const s=t+e;this._fillIndexBuffer.add(s,s+1,s+2)}if(void 0!==i){const t=this._patternMap,e=t.get(i);e?e[1]+=o:t.set(i,[this._fillIndexStart+this._fillIndexCount,o])}this._fillIndexCount+=o}}else{const t=l.length;if(t>0){const e=this._fillVertexBuffer.index;let n=0;for(;n<a;)this._fillVertexBuffer.add(h[n++],h[n++],s);let r=0;for(;r<t;)this._fillIndexBuffer.add(e+l[r++],e+l[r++],e+l[r++]);if(void 0!==i){const e=this._patternMap,s=e.get(i);s?s[1]+=t:e.set(i,[this._fillIndexStart+this._fillIndexCount,t])}this._fillIndexCount+=t}}z.A.release(h)}_isClipEdge(t,e){return t.x===e.x?t.x<=-64||t.x>=4160:t.y===e.y&&(t.y<=-64||t.y>=4160)}static _area(t){let e=0;const s=t.length-1;for(let n=0;n<s;n++)e+=(t[n].x-t[n+1].x)*(t[n].y+t[n+1].y);return e+=(t[s].x-t[0].x)*(t[s].y+t[0].y),.5*e}}var R=s(83773);class C extends B{constructor(t,e,s,n,i){super(t,e,s),this.type=2,this._tessellationOptions={pixelCoordRatio:8,halfWidth:0,offset:0},this._patternMap=new Map,this.tessellationProperties={_lineVertexBuffer:null,_lineIndexBuffer:null,_ddValues:null},this.tessellationProperties._lineVertexBuffer=n,this.tessellationProperties._lineIndexBuffer=i,this._lineTessellator=new R.i(F(this.tessellationProperties),U(this.tessellationProperties),t.canUseThinTessellation)}get lineIndexStart(){return this._lineIndexStart}get lineIndexCount(){return this._lineIndexCount}getResources(t,e,s){const n=this.layer,i=this.zoom,r=n.getPaintProperty("line-pattern"),o=n.getPaintProperty("line-dasharray"),a=n.getLayoutProperty("line-cap");if(!r&&!o)return;const h=a?.getValue(i)||0,l=a?.isDataDriven,c=r?.isDataDriven,u=o?.isDataDriven;if(c||u)for(const t of this._features)e(c?r.getValue(i,t):this._getDashArrayKey(t,i,n,o,l,a,h));else if(r)e(r.getValue(i));else if(o){const t=o.getValue(i);e(n.getDashKey(t,h))}}processFeatures(t){this._lineIndexStart=3*this.tessellationProperties._lineIndexBuffer.index,this._lineIndexCount=0;const e=this.layer,s=this.zoom,n=this._features,i=this._tessellationOptions,{hasDataDrivenLine:r,lineMaterial:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("line-pattern"),h=e.getPaintProperty("line-dasharray"),l=a?.isDataDriven,c=h?.isDataDriven;let u;u=e.getLayoutProperty("line-cap");const f=u?.isDataDriven?u:null,d=f?null:e.getLayoutValue("line-cap",s),g=d||0,y=!!f;u=e.getLayoutProperty("line-join");const p=u?.isDataDriven?u:null,_=p?null:e.getLayoutValue("line-join",s);u=e.getLayoutProperty("line-miter-limit");const x=u?.isDataDriven?u:null,m=x?null:e.getLayoutValue("line-miter-limit",s);u=e.getLayoutProperty("line-round-limit");const I=u?.isDataDriven?u:null,b=I?null:e.getLayoutValue("line-round-limit",s);u=e.getPaintProperty("line-width");const P=u?.isDataDriven?u:null,w=P?null:e.getPaintValue("line-width",s);u=e.getPaintProperty("line-offset");const T=u?.isDataDriven?u:null,M=T?null:e.getPaintValue("line-offset",s);if(l||c){const r=[];for(const i of n){const n=l?a.getValue(s,i):this._getDashArrayKey(i,s,e,h,y,f,g),c=this._spriteInfo[n];if(!c?.rect)continue;const u=o.encodeAttributes(i,s,e,c),A=i.getGeometry(t);r.push({ddAttributes:u,page:c.page,cap:f?f.getValue(s,i):d,join:p?p.getValue(s,i):_,miterLimit:x?x.getValue(s,i):m,roundLimit:I?I.getValue(s,i):b,halfWidth:.5*(P?P.getValue(s,i):w),offset:T?T.getValue(s,i):M,geometry:A})}r.sort((t,e)=>t.page-e.page),i.textured=!0;for(const{ddAttributes:t,page:e,cap:s,join:n,miterLimit:o,roundLimit:a,halfWidth:h,offset:l,geometry:c}of r)i.capType=s,i.joinType=n,i.miterLimit=o,i.roundLimit=a,i.halfWidth=h,i.offset=l,this._processFeature(c,t,e)}else{if(a){const t=a.getValue(s),e=this._spriteInfo[t];if(!e?.rect)return}i.textured=!(!a&&!h),i.capType=d,i.joinType=_,i.miterLimit=m,i.roundLimit=b,i.halfWidth=.5*w,i.offset=M;for(const a of n){const n=r?o.encodeAttributes(a,s,e):null;f&&(i.capType=f.getValue(s,a)),p&&(i.joinType=p.getValue(s,a)),x&&(i.miterLimit=x.getValue(s,a)),I&&(i.roundLimit=I.getValue(s,a)),P&&(i.halfWidth=.5*P.getValue(s,a)),T&&(i.offset=T.getValue(s,a));const h=a.getGeometry(t);this._processFeature(h,n)}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this.tessellationProperties._lineVertexBuffer.array.length,t+=this.tessellationProperties._lineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),s=new Int32Array(e.buffer);let n=0;e[n++]=this.type,e[n++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[n++]=this.layerUIDs[t];e[n++]=this._lineIndexStart,e[n++]=this._lineIndexCount;const i=this._patternMap,r=i.size;if(e[n++]=r,r>0)for(const[t,[s,r]]of i)e[n++]=t,e[n++]=s,e[n++]=r;e[n++]=this.tessellationProperties._lineVertexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineVertexBuffer.array.length;t++)s[n++]=this.tessellationProperties._lineVertexBuffer.array[t];e[n++]=this.tessellationProperties._lineIndexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineIndexBuffer.array.length;t++)e[n++]=this.tessellationProperties._lineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,s){if(!t)return;const n=t.length;for(let i=0;i<n;i++)this._processGeometry(t[i],e,s)}_processGeometry(t,e,s){if(t.length<2)return;let n,i,r=t[0],o=1;for(;o<t.length;)n=t[o].x-r.x,i=t[o].y-r.y,n*n+i*i<1e-6?t.splice(o,1):(r=t[o],++o);if(t.length<2)return;const a=this.tessellationProperties._lineIndexBuffer,h=3*a.index;this._tessellationOptions.initialDistance=0,this._tessellationOptions.wrapDistance=65535,this.tessellationProperties._ddValues=e,this._lineTessellator.tessellate(t,this._tessellationOptions);const l=3*a.index-h;if(void 0!==s){const t=this._patternMap,e=t.get(s);e?e[1]+=l:t.set(s,[h+this._lineIndexCount,l])}this._lineIndexCount+=l}_getDashArrayKey(t,e,s,n,i,r,o){const a=i?r.getValue(e,t):o,h=n.getValue(e,t);return s.getDashKey(h,a)}}const F=t=>(e,s,n,i,r,o,a,h,l,c,u)=>(t._lineVertexBuffer.add(e,s,a,h,n,i,r,o,l,c,u,t._ddValues),t._lineVertexBuffer.index-1),U=t=>(e,s,n)=>{t._lineIndexBuffer.add(e,s,n)};var O=s(32488),E=s(97768),G=s(799),Z=s(36745),W=s(78957),Y=s(92722);function q(t){let e=0;for(let s=0,n=t.length-1;s<t.length;n=s++)e+=(t[n].x-t[s].x)*(t[s].y+t[n].y);return.5*e}var j=s(4264);function K(t,e){return t.iconMosaicItem&&e.iconMosaicItem?t.iconMosaicItem.page===e.iconMosaicItem.page?0:t.iconMosaicItem.page-e.iconMosaicItem.page:t.iconMosaicItem&&!e.iconMosaicItem?1:!t.iconMosaicItem&&e.iconMosaicItem?-1:0}class J extends B{constructor(t,e,s,n,i,r,o,a,h){super(e,s,h.getSpriteItems()),this.type=3,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._sourceTileKey=t,this._iconVertexBuffer=n,this._iconIndexBuffer=i,this._textVertexBuffer=r,this._textIndexBuffer=o,this._placementEngine=a,this._workerTileHandler=h}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}static{this._bidiEngine=new O.A}getResources(t,e,s){const n=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);const r=n.getLayoutProperty("icon-image"),o=n.getLayoutProperty("text-field");let a=n.getLayoutProperty("text-transform"),h=n.getLayoutProperty("text-font");const l=[];let c,u,f,d;r&&!r.isDataDriven&&(c=r.getValue(i)),o&&!o.isDataDriven&&(u=o.getValue(i)),a&&a.isDataDriven||(f=n.getLayoutValue("text-transform",i),a=null),h&&h.isDataDriven||(d=n.getLayoutValue("text-font",i),h=null);for(const g of this._features){const y=g.getGeometry(t);if(!y||0===y.length)continue;let p,_;r&&(p=r.isDataDriven?r.getValue(i,g):this._replaceKeys(c,g.values),p&&e(p));let x=!1;if(o&&(_=o.isDataDriven?o.getValue(i,g):this._replaceKeys(u,g.values),_)){switch(_=_.replaceAll("\\n","\n"),a&&(f=a.getValue(i,g)),f){case 2:_=_.toLowerCase();break;case 1:_=_.toUpperCase()}if(J._bidiEngine.hasBidiChar(_)){let t;t="rtl"===J._bidiEngine.checkContextual(_)?"IDNNN":"ICNNN",_=J._bidiEngine.bidiTransform(_,t,"VLYSN"),x=!0}if(_.length>0){h&&(d=h.getValue(i,g));for(const t of d){let e=s[t];e||(e=s[t]=new Set);for(const t of _){const s=t.codePointAt(0);null!=s&&e.add(s)}}}}if(!p&&!_)continue;const m=n.getLayoutValue("symbol-sort-key",i,g),I={feature:g,sprite:p,label:_,rtl:x,geometry:y,hash:(_?(0,G.Wm)(_):0)^(p?(0,G.Wm)(p):0),priority:m,textFont:d};l.push(I)}this._symbolFeatures=l}processFeatures(t){t&&t.setExtent(this.layerExtent);const e=this.layer,s=this.zoom,n=e.getLayoutValue("symbol-placement",s),i=0!==n,r=8*e.getLayoutValue("symbol-spacing",s),a=e.getLayoutProperty("icon-image"),h=e.getLayoutProperty("text-field"),l=a?new j.aR(e,s,i):null,c=h?new j.uU(e,s,i):null,u=this._workerTileHandler;let d;a&&(d=u.getSpriteItems()),this._iconIndexStart=3*this._iconIndexBuffer.index,this._textIndexStart=3*this._textIndexBuffer.index,this._iconIndexCount=0,this._textIndexCount=0,this._markerMap.clear(),this._glyphMap.clear();const y=[];let p=1;c?.size&&(p=c.size/24);const _=c?c.maxAngle*o.os:0,x=c?8*c.size:0;for(const t of this._symbolFeatures){let o,a;l&&d&&t.sprite&&(o=d[t.sprite],o&&o.sdf&&(this._isIconSDF=!0)),o&&l.update(s,t.feature);let h=0;const m=t.label;if(m){(0,E.Lw)(c),c.update(s,t.feature);const e=i&&0===c.rotationAlignment?c.keepUpright:c.writingMode&&c.writingMode.includes(1);let n=.5;switch(c.anchor){case 5:case 1:case 7:n=0;break;case 6:case 2:case 8:n=1}let r=.5;switch(c.anchor){case 5:case 3:case 6:r=0;break;case 7:case 4:case 8:r=1}let o=.5;switch(c.justify){case 0:o=n;break;case 1:o=0;break;case 3:o=1}const l=24*c.letterSpacing,d=i?0:24*c.maxWidth,g=24*c.lineHeight,y=t.textFont.map(t=>u.getGlyphItems(t));if(a=new f(y,d,g,l,n,r,o).getShaping(m,t.rtl,e),a&&a.length>0){let t=1e30,e=-1e30;for(const s of a)t=Math.min(t,s.x),e=Math.max(e,s.x);h=(e-t+48)*p*8}}const I=J._getPlacementCandidates(e,n,t.feature,t.geometry);for(const e of I){let{vertices:s}=e;const u=[];if(1===n){if(a?.length&&c?.size){const t=8*c.size*(2+Math.min(2,4*Math.abs(c.offset[1])));s=J._smoothVertices(s,t)}J._pushAnchors(u,s,r,h)}else 2===n?J._pushCenterAnchor(u,s):3===t.feature.type?e.anchor?u.push(e.anchor):J._pushCentroid(u,s):u.push(new g(s[0].x,s[0].y));for(const e of u){if(e.x<0||e.x>4096||e.y<0||e.y>4096)continue;if(i&&h>0&&0===c?.rotationAlignment&&!J._honorsTextMaxAngle(s,e,h,_,x))continue;const n={shaping:a,line:s,iconMosaicItem:o,anchor:e,symbolFeature:t,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};y.push(n),this._processFeature(n,l,c)}}}y.sort(K),this._addPlacedGlyphs(),this._symbolInstances=y}serialize(){let t=14;t+=this.layerUIDs.length,t+=3*this.markerPageMap.size,t+=3*this.glyphsPageMap.size,t+=J._symbolsSerializationLength(this._symbolInstances),t+=this._iconVertexBuffer.array.length,t+=this._iconIndexBuffer.array.length,t+=this._textVertexBuffer.array.length,t+=this._textIndexBuffer.array.length;const e=new Uint32Array(t),s=new Int32Array(e.buffer),n=new Float32Array(e.buffer),[i,r,o]=this._sourceTileKey.split("/");let a=0;e[a++]=this.type,e[a++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[a++]=this.layerUIDs[t];e[a++]=this._isIconSDF?1:0,e[a++]=parseFloat(i),e[a++]=parseFloat(r),e[a++]=parseFloat(o),e[a++]=this.markerPageMap.size;for(const[t,[s,n]]of this.markerPageMap)e[a++]=t,e[a++]=s,e[a++]=n;e[a++]=this.glyphsPageMap.size;for(const[t,[s,n]]of this.glyphsPageMap)e[a++]=t,e[a++]=s,e[a++]=n;e[a++]=this._iconVertexBuffer.index/4,e[a++]=this._textVertexBuffer.index/4,a=J.serializeSymbols(e,s,n,a,this._symbolInstances),e[a++]=this._iconVertexBuffer.array.length;for(let t=0;t<this._iconVertexBuffer.array.length;t++)s[a++]=this._iconVertexBuffer.array[t];e[a++]=this._iconIndexBuffer.array.length;for(let t=0;t<this._iconIndexBuffer.array.length;t++)e[a++]=this._iconIndexBuffer.array[t];e[a++]=this._textVertexBuffer.array.length;for(let t=0;t<this._textVertexBuffer.array.length;t++)s[a++]=this._textVertexBuffer.array[t];e[a++]=this._textIndexBuffer.array.length;for(let t=0;t<this._textIndexBuffer.array.length;t++)e[a++]=this._textIndexBuffer.array[t];return e.buffer}static _symbolsSerializationLength(t){let e=0;e+=1;for(const s of t||[]){e+=5,e+=1;for(const t of s.textColliders)e+=10;for(const t of s.iconColliders)e+=10;e+=1,e+=2*s.textVertexRanges.length,e+=1,e+=2*s.iconVertexRanges.length}return e}static serializeSymbols(t,e,s,n,i){i=i||[],e[n++]=i.length;for(const t of i){e[n++]=t.anchor.x,e[n++]=t.anchor.y,e[n++]=t.symbolFeature.hash,e[n++]=t.symbolFeature.priority,e[n++]=t.symbolFeature.feature.featureIndex,e[n++]=t.textColliders.length+t.iconColliders.length;for(const i of t.textColliders)e[n++]=i.xTile,e[n++]=i.yTile,e[n++]=i.dxPixels,e[n++]=i.dyPixels,e[n++]=i.hard?1:0,e[n++]=i.partIndex,s[n++]=i.minLod,s[n++]=i.maxLod,e[n++]=i.width,e[n++]=i.height;for(const i of t.iconColliders)e[n++]=i.xTile,e[n++]=i.yTile,e[n++]=i.dxPixels,e[n++]=i.dyPixels,e[n++]=i.hard?1:0,e[n++]=i.partIndex,s[n++]=i.minLod,s[n++]=i.maxLod,e[n++]=i.width,e[n++]=i.height;e[n++]=t.textVertexRanges.length;for(const[s,i]of t.textVertexRanges)e[n++]=s,e[n++]=i;e[n++]=t.iconVertexRanges.length;for(const[s,i]of t.iconVertexRanges)e[n++]=s,e[n++]=i}return n}_replaceKeys(t,e){return t.replaceAll(/{([^{}]+)}/g,(t,s)=>s in e?e[s]:"")}_processFeature(t,e,s){const{line:n,iconMosaicItem:i,shaping:r,anchor:a}=t,h=this.zoom,l=this.layer,c=!!i;let u=!0;c&&(u=e?.optional||!i);const f=r&&r.length>0,d=!f||s?.optional;let g,y;if(c&&(g=this._placementEngine.getIconPlacement(a,i,e)),(g||u)&&(f&&(y=this._placementEngine.getTextPlacement(a,r,n,s)),y||d)){if(g&&y||(d||u?d||y?u||g||(y=null):g=null:(g=null,y=null)),y){const e=l.hasDataDrivenText?l.textMaterial.encodeAttributes(t.symbolFeature.feature,h,l):null;if(this._storePlacedGlyphs(t,y.shapes,h,s.rotationAlignment,e),y.textColliders){t.textColliders=y.textColliders;for(const t of y.textColliders){t.minLod=Math.max(h+(0,o.p6)(t.minLod),0),t.maxLod=Math.min(h+(0,o.p6)(t.maxLod),25);const e=t.angle;if(e){const s=Math.cos(e),n=Math.sin(e),i=t.dxPixels*s-t.dyPixels*n,r=t.dxPixels*n+t.dyPixels*s,o=(t.dxPixels+t.width)*s-t.dyPixels*n,a=(t.dxPixels+t.width)*n+t.dyPixels*s,h=t.dxPixels*s-(t.dyPixels+t.height)*n,l=t.dxPixels*n+(t.dyPixels+t.height)*s,c=(t.dxPixels+t.width)*s-(t.dyPixels+t.height)*n,u=(t.dxPixels+t.width)*n+(t.dyPixels+t.height)*s,f=Math.min(i,o,h,c),d=Math.max(i,o,h,c),g=Math.min(r,a,l,u),y=Math.max(r,a,l,u);t.dxPixels=f,t.dyPixels=g,t.width=d-f,t.height=y-g}}}}if(g){const s=l.hasDataDrivenIcon?l.iconMaterial.encodeAttributes(t.symbolFeature.feature,h,l):null;if(this._addPlacedIcons(t,g.shapes,h,i.page,1===e.rotationAlignment,s),g.iconColliders){t.iconColliders=g.iconColliders;for(const t of g.iconColliders){t.minLod=Math.max(h+(0,o.p6)(t.minLod),0),t.maxLod=Math.min(h+(0,o.p6)(t.maxLod),25);const e=t.angle;if(e){const s=Math.cos(e),n=Math.sin(e),i=t.dxPixels*s-t.dyPixels*n,r=t.dxPixels*n+t.dyPixels*s,o=(t.dxPixels+t.width)*s-t.dyPixels*n,a=(t.dxPixels+t.width)*n+t.dyPixels*s,h=t.dxPixels*s-(t.dyPixels+t.height)*n,l=t.dxPixels*n+(t.dyPixels+t.height)*s,c=(t.dxPixels+t.width)*s-(t.dyPixels+t.height)*n,u=(t.dxPixels+t.width)*n+(t.dyPixels+t.height)*s,f=Math.min(i,o,h,c),d=Math.max(i,o,h,c),g=Math.min(r,a,l,u),y=Math.max(r,a,l,u);t.dxPixels=f,t.dyPixels=g,t.width=d-f,t.height=y-g}}}}}}_addPlacedIcons(t,e,s,n,i,r){const a=Math.max(s-1,0),h=this._iconVertexBuffer,l=this._iconIndexBuffer,c=this._markerMap;for(const u of e){const e=i?0:Math.max(s+(0,o.p6)(u.minzoom),a),f=i?25:Math.min(s+(0,o.p6)(u.maxzoom),25);if(f<=e)continue;const d=u.tl,g=u.tr,y=u.bl,p=u.br,_=u.mosaicRect,x=u.labelAngle,m=u.minAngle,I=u.maxAngle,b=u.anchor,P=h.index,w=_.x,T=_.y,M=w+_.width,A=T+_.height,v=h.index;h.add(b.x,b.y,d.x,d.y,w,T,x,m,I,e,f,r),h.add(b.x,b.y,g.x,g.y,M,T,x,m,I,e,f,r),h.add(b.x,b.y,y.x,y.y,w,A,x,m,I,e,f,r),h.add(b.x,b.y,p.x,p.y,M,A,x,m,I,e,f,r),t.iconVertexRanges.length>0&&t.iconVertexRanges[0][0]+t.iconVertexRanges[0][1]===v?t.iconVertexRanges[0][1]+=4:t.iconVertexRanges.push([v,4]),l.add(P,P+1,P+2),l.add(P+1,P+2,P+3),c.has(n)?c.get(n)[1]+=6:c.set(n,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){const t=this._textVertexBuffer,e=this._textIndexBuffer,s=this._glyphMap;for(const[n,i]of this._glyphBufferDataStorage)for(const r of i){const i=t.index,o=r.symbolInstance,a=r.ddAttributes,h=t.index;t.add(r.glyphAnchor[0],r.glyphAnchor[1],r.tl[0],r.tl[1],r.xmin,r.ymin,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,a),t.add(r.glyphAnchor[0],r.glyphAnchor[1],r.tr[0],r.tr[1],r.xmax,r.ymin,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,a),t.add(r.glyphAnchor[0],r.glyphAnchor[1],r.bl[0],r.bl[1],r.xmin,r.ymax,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,a),t.add(r.glyphAnchor[0],r.glyphAnchor[1],r.br[0],r.br[1],r.xmax,r.ymax,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,a),o.textVertexRanges.length>0&&o.textVertexRanges[0][0]+o.textVertexRanges[0][1]===h?o.textVertexRanges[0][1]+=4:o.textVertexRanges.push([h,4]),e.add(i,i+1,i+2),e.add(i+1,i+2,i+3),s.has(n)?s.get(n)[1]+=6:s.set(n,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(t,e,s,n,i){const r=Math.max(s-1,0),a=1===n;let h,l,c,u,f,d,g,y,p,_,x;for(const n of e)h=a?0:Math.max(s+(0,o.p6)(n.minzoom),r),l=a?25:Math.min(s+(0,o.p6)(n.maxzoom),25),l<=h||(c=n.tl,u=n.tr,f=n.bl,d=n.br,g=n.labelAngle,y=n.minAngle,p=n.maxAngle,_=n.anchor,x=n.mosaicRect,this._glyphBufferDataStorage.has(n.page)||this._glyphBufferDataStorage.set(n.page,[]),this._glyphBufferDataStorage.get(n.page).push({glyphAnchor:[_.x,_.y],tl:[c.x,c.y],tr:[u.x,u.y],bl:[f.x,f.y],br:[d.x,d.y],xmin:x.x,ymin:x.y,xmax:x.x+x.width,ymax:x.y+x.height,labelAngle:g,minAngle:y,maxAngle:p,minLod:h,maxLod:l,placementLod:r,symbolInstance:t,ddAttributes:i}))}static _pushAnchors(t,e,s,n){s+=n;let i=0;const a=e.length-1;for(let t=0;t<a;t++)i+=r.bR.distance(e[t],e[t+1]);let h=n||s;if(h*=.5,i<=h)return;const l=h/i;let c=0,u=-(s=i/Math.max(Math.round(i/s),1))/2;const f=e.length-1;for(let n=0;n<f;n++){const i=e[n],r=e[n+1],a=r.x-i.x,h=r.y-i.y,f=Math.sqrt(a*a+h*h);let d;for(;u+s<c+f;){u+=s;const e=(u-c)/f,y=(0,o.GW)(i.x,r.x,e),p=(0,o.GW)(i.y,r.y,e);void 0===d&&(d=Math.atan2(h,a)),t.push(new g(y,p,d,n,l))}c+=f}}static _pushCenterAnchor(t,e){let s=0;const n=e.length-1;for(let t=0;t<n;t++)s+=r.bR.distance(e[t],e[t+1]);const i=s/2;let a=0;const h=e.length-1;for(let s=0;s<h;s++){const n=e[s],r=e[s+1],h=r.x-n.x,l=r.y-n.y,c=Math.sqrt(h*h+l*l);if(i<a+c){const e=(i-a)/c,u=(0,o.GW)(n.x,r.x,e),f=(0,o.GW)(n.y,r.y,e),d=Math.atan2(l,h);return void t.push(new g(u,f,d,s,0))}a+=c}}static _deviation(t,e,s){const n=(e.x-t.x)*(s.x-e.x)+(e.y-t.y)*(s.y-e.y),i=(e.x-t.x)*(s.y-e.y)-(e.y-t.y)*(s.x-e.x);return Math.atan2(i,n)}static _honorsTextMaxAngle(t,e,s,n,i){let o=0;const a=s/2;let h=new r.bR(e.x,e.y),l=e.segment+1;for(;o>-a;){if(--l,l<0)return!1;o-=r.bR.distance(t[l],h),h=t[l]}o+=r.bR.distance(t[l],t[l+1]);const c=[];let u=0;const f=t.length;for(;o<a;){const e=t[l];let s,a=l;do{if(++a,a===f)return!1;s=t[a]}while(s.isEqual(e));let h,d=a;do{if(++d,d===f)return!1;h=t[d]}while(h.isEqual(s));const g=this._deviation(e,s,h);for(c.push({deviation:g,distToAnchor:o}),u+=g;o-c[0].distToAnchor>i;)u-=c.shift().deviation;if(Math.abs(u)>n)return!1;o+=r.bR.distance(s,h),l=a}return!0}static _smoothVertices(t,e){if(e<=0)return t;let s=t.length;if(s<3)return t;const n=[];let i=0,o=0;n.push(0);for(let e=1;e<s;e++){const s=r.bR.distance(t[e],t[e-1]);s>0&&(i+=s,n.push(i),o++,o!==e&&(t[o]=t[e]))}if(s=o+1,s<3)return t;e=Math.min(e,.2*i);const a=t[0].x,h=t[0].y,l=t[s-1].x,c=t[s-1].y,u=r.bR.sub(t[0],t[1]);u.normalize(),t[0].x+=e*u.x,t[0].y+=e*u.y,u.assignSub(t[s-1],t[s-2]),u.normalize(),t[s-1].x+=e*u.x,t[s-1].y+=e*u.y,n[0]-=e,n[s-1]+=e;const f=[];f.push(new r.bR(a,h));const d=1e-6,g=.5*e;for(let i=1;i<s-1;i++){let o=0,a=0,h=0;for(let s=i-1;s>=0;s--){const r=g+n[s+1]-n[i];if(r<0)break;const l=n[s+1]-n[s],c=n[i]-n[s]<g?1:r/l;if(c<d)break;const u=c*c,f=c*r-.5*u*l,y=c*l/e,p=t[s+1],_=t[s].x-p.x,x=t[s].y-p.y;o+=y/f*(p.x*c*r+.5*u*(r*_-l*p.x)-u*c*l*_/3),a+=y/f*(p.y*c*r+.5*u*(r*x-l*p.y)-u*c*l*x/3),h+=y}for(let r=i+1;r<s;r++){const s=g-n[r-1]+n[i];if(s<0)break;const l=n[r]-n[r-1],c=n[r]-n[i]<g?1:s/l;if(c<d)break;const u=c*c,f=c*s-.5*u*l,y=c*l/e,p=t[r-1],_=t[r].x-p.x,x=t[r].y-p.y;o+=y/f*(p.x*c*s+.5*u*(s*_-l*p.x)-u*c*l*_/3),a+=y/f*(p.y*c*s+.5*u*(s*x-l*p.y)-u*c*l*x/3),h+=y}f.push(new r.bR(o/h,a/h))}return f.push(new r.bR(l,c)),t[0].x=a,t[0].y=h,t[s-1].x=l,t[s-1].y=c,f}static _getPlacementCandidates(t,e,s,n){if(0!==e||3!==s.type||"geojson"!==t.sourceType)return n.map(t=>({anchor:null,vertices:t}));const i=function(t){let e=null,s=0,n=[],i=0;for(const r of t){const t=q(r);t>0?(i>s&&(s=i,e=n),n=[r],i=t):t<0&&n.length>0&&(n.push(r),i+=t)}if(i>s&&(e=n),!e)return null;const r=e.map(t=>t.length),o=[];for(const t of e)for(const e of t)o.push(e.x,e.y);const a=Z.z.fromOptimized(new Y.A(r,o),"esriGeometryPolygon"),h=(0,W.R)(a);return h?{x:h[0],y:h[1],vertices:e[0]}:null}(n);return i?[{anchor:new g(i.x,i.y),vertices:i.vertices}]:[]}static _pushCentroid(t,e){const s=4096,n=4096,i=e.length-1;let r=0,o=0,a=0,h=e[0].x,l=e[0].y;h>s&&(h=s),h<0&&(h=0),l>n&&(l=n),l<0&&(l=0);for(let t=1;t<i;t++){let i=e[t].x,c=e[t].y,u=e[t+1].x,f=e[t+1].y;i>s&&(i=s),i<0&&(i=0),c>n&&(c=n),c<0&&(c=0),u>s&&(u=s),u<0&&(u=0),f>n&&(f=n),f<0&&(f=0);const d=(i-h)*(f-l)-(u-h)*(c-l);r+=d*(h+i+u),o+=d*(l+c+f),a+=d}r/=3*a,o/=3*a,isNaN(r)||isNaN(o)||t.push(new g(r,o))}}class H{constructor(t,e,s,n,i,a,h){if(this._pbfTiles={},this._tileClippers={},this._client=s,this._tile=e,this._sourceDataMaxLOD=n,this._baseUrl=h,a){this._styleLayerUIDs=new Set;for(const t of a)this._styleLayerUIDs.add(t)}this._styleRepository=i,this._layers=this._styleRepository?.layers??[];const[l,c,u]=e.tileKey.split("/").map(parseFloat);this._level=l;const f=(0,o.IU)(this._level);for(const e of Object.keys(t)){const s=t[e];if(this._pbfTiles[e]=new m.A(new Uint8Array(s.protobuff),new DataView(s.protobuff)),s.refKey){const[t]=s.refKey.split("/").map(parseFloat),n=l-t;if(n>0){const t=(1<<n)-1,s=c&t,i=u&t;this._tileClippers[e]=new r.O3(n,s,i,8,f)}}this._tileClippers[e]||(this._tileClippers[e]=new r.Ox)}}_canParseStyleLayer(t){return!this._styleLayerUIDs||this._styleLayerUIDs.has(t)}async parse(t){const e=(0,I.If)(),s=this._initialize(t),{returnedBuckets:n}=s;this._processLayers(s),this._linkReferences(s),this._filterFeatures(s);const i=[],r=new Set,o=(t,e)=>{r.has(t)||(i.push({name:t,repeat:e}),r.add(t))},a={};for(const t of n)t.getResources(t.tileClipper,o,a);if(4===this._tile.status)return[];const h=this._fetchResources(i,a,t);return Promise.all([...h,e]).then(()=>this._processFeatures(s.returnedBuckets))}_initialize(t){const e=t?.signal;return{signal:e,sourceNameToTileData:this._parseTileData(this._pbfTiles),layers:this._layers,zoom:this._level,sourceNameToTileClipper:this._tileClippers,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:new Map}}_processLayers(t){const{sourceNameToTileData:e,zoom:s,layers:n,sourceNameToTileClipper:i,sourceNameToUniqueSourceLayerBuckets:r,sourceNameToUniqueSourceLayers:o,returnedBuckets:a,layerIdToBucket:h,referencerUIDToReferencedId:l}=t,c=this._sourceDataMaxLOD;for(let t=n.length-1;t>=0;t--){const u=n[t];if(s<c){if(u.minzoom&&s<Math.floor(u.minzoom)||u.maxzoom&&s>=u.maxzoom)continue}else if(u.maxzoom&&s>=u.maxzoom)continue;if(0===u.type||!this._canParseStyleLayer(u.uid)||!e[u.source]||!i[u.source])continue;const f=e[u.source],d=i[u.source],g=u.sourceLayer,y=f[g];if(y){let t=o[u.source];if(t||(t=o[u.source]=new Set),t.add(u.sourceLayer),u.refLayerId)l.set(u.uid,u.refLayerId);else{const t=this._createBucket(u);if(t){t.layerUIDs=[u.uid],t.layerExtent=y.extent,t.tileClipper=d;let e=r[u.source];e||(e=r[u.source]={});let s=e[g];s||(s=e[g]=[]),s.push(t),a.push(t),h[u.id]=t}}}}}_linkReferences(t){const{layerIdToBucket:e,referencerUIDToReferencedId:s}=t;s.forEach((t,s)=>{e[t]&&e[t].layerUIDs.push(s)})}_filterFeatures(t){const{signal:e,sourceNameToTileData:s,sourceNameToUniqueSourceLayerBuckets:i,sourceNameToUniqueSourceLayers:r}=t,o=10*this._level,a=10*(this._level+1),h=[],l=[];for(const t of Object.keys(r))r[t].forEach(e=>{h.push(e),l.push(t)});for(let t=0;t<h.length;t++){const r=l[t],c=h[t];if(!s[r]||!i[r])continue;const u=s[r][c],f=i[r][c];if(!f||0===f.length)continue;if((0,n.G4)(e))return;let d=0;const g=u.getData();for(;g.nextTag(2);){const t=g.getMessage(),e=new b(t,u,d++);t.release();const s=e.values;if(s){const t=s._minzoom;if(t&&t>=a)continue;const e=s._maxzoom;if(e&&e<=o)continue}for(const t of f)t.pushFeature(e)}}}_fetchResources(t,e,s){const n=[],i=this._tile.getWorkerTileHandler();let r,o;t.length>0&&(r=i.fetchSprites(t,this._client,s),n.push(r));for(const t in e){const r=e[t];r.size>0&&(o=i.fetchGlyphs(this._baseUrl,t,r,s),n.push(o))}return n}_processFeatures(t){const e=t.filter(t=>t.hasFeatures()||this._canParseStyleLayer(t.layer.uid));for(const t of e)t.processFeatures(t.tileClipper);return e}_parseTileData(t){const e={};for(const s of Object.keys(t)){const n=t[s],i={};for(;n.next();)switch(n.tag()){case 3:{const t=n.getMessage(),e=new T(t);t.release(),i[e.name]=e;break}default:n.skip()}e[s]=i}return e}_createBucket(t){switch(t.type){case 0:return null;case 1:return this._createFillBucket(t);case 2:return this._createLineBucket(t);case 4:return this._createCircleBucket(t);case 3:return this._createSymbolBucket(t)}}_createFillBucket(t){return new D(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new v(t.fillMaterial.getStride()),new w,new S(t.outlineMaterial.getStride()),new w)}_createLineBucket(t){return new C(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new A(t.lineMaterial.getStride()),new w)}_createCircleBucket(t){return new N(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new k(t.circleMaterial.getStride()),new w)}_createSymbolBucket(t){const e=this._tile;return new J(e.tileKey,t,this._level,new L(t.iconMaterial.getStride()),new w,new L(t.textMaterial.getStride()),new w,e.placementEngine,e.getWorkerTileHandler())}}class ${constructor(t,e,s,n){this.status=0,this.placementEngine=new x,this.tileKey=t,this.refKeys=e,this._workerTileHandler=s,this._styleRepository=n}release(){this.tileKey="",this.refKeys=null,this.status=0,this._workerTileHandler=null}async parse(t,e){const s=e?.signal;if(null!=s){const t=()=>{s.removeEventListener("abort",t),this.status=4};s.addEventListener("abort",t)}let i;const r={bucketsWithData:[],emptyBuckets:null};try{i=await this._parse(t,e)}catch(t){if((0,n.zf)(t))throw t;return{result:r,transferList:[]}}this.status=2;const o=r.bucketsWithData,a=[];for(const t of i)if(t.hasFeatures()){const e=t.serialize();o.push(e)}else a.push(t.layer.uid);const h=[...o];let l=null;return a.length>0&&(l=Uint32Array.from(a),h.push(l.buffer)),r.emptyBuckets=l,{result:r,transferList:h}}setObsolete(){this.status=4}getLayers(){return this._workerTileHandler.getLayers()}getWorkerTileHandler(){return this._workerTileHandler}async _parse(t,e){const s=t.sourceName2DataAndRefKey;return 0===Object.keys(s).length?[]:(this.status=3,new H(s,this,e.client,t.sourceDataMaxLOD,this._styleRepository,t.styleLayerUIDs,t.baseUrl).parse(e))}}var Q=s(45013);class X{constructor(){this._spriteInfo={},this._glyphInfo={},this._sourceDataMaxLOD=25}reset(){return this._spriteInfo={},this._glyphInfo={},Promise.resolve()}getLayers(){return this._styleRepository?.layers??[]}async createTileAndParse(t,e){const{key:s}=t,i={};for(const e of Object.keys(t.sourceName2DataAndRefKey)){const s=t.sourceName2DataAndRefKey[e];i[e]=s.refKey}const r=new $(s,i,this,this._styleRepository);this.initializeGlyphWorker(void 0,e);try{return await r.parse({...t,sourceDataMaxLOD:this._sourceDataMaxLOD},e)}catch(t){if(r.setObsolete(),r.release(),!(0,n.zf)(t))throw t;return null}}initializeGlyphWorker(t,e){return this._loaded??=(async()=>{const t=await e.client.invoke("openGlyphPorts"),s=await(0,i.N1)(t,{maxNumberOfConcurrentJobs:20});this._glyphWorker=s.createInvokeProxy()})()}updateStyle(t){if(!t||0===t.length||!this._styleRepository)return;const e=this._styleRepository;for(const s of t){const t=s.type,n=s.data;switch(t){case 0:e.setPaintProperties(n.layer,n.paint);break;case 1:e.setLayoutProperties(n.layer,n.layout);break;case 3:e.deleteStyleLayer(n.layer);break;case 2:e.setStyleLayer(n.layer,n.index);break;case 4:this._spriteInfo={}}}}setStyle(t){const{style:e,sourceDataMaxLOD:s}=t;this._styleRepository=new Q.A(e),this._sourceDataMaxLOD=s,this._spriteInfo={},this._glyphInfo={}}fetchSprites(t,e,s){const n=[],i=this._spriteInfo;for(const e of t)void 0===i[e.name]&&n.push(e);return 0===n.length?Promise.resolve():e.invoke("getSprites",n,{signal:s?.signal}).then(t=>{for(const e in t){const s=t[e];i[e]=s}})}getSpriteItems(){return this._spriteInfo}async fetchGlyphs(t,e,s,n){const i=[];let r=this._glyphInfo[e];if(r?s.forEach(t=>{r[t]||i.push(t)}):(r=this._glyphInfo[e]=[],s.forEach(t=>i.push(t))),0===i.length)return;if(await this._loaded,!this._glyphWorker)return void console.error("Failed to fetch glyphs: no worker connection");const o=String.fromCodePoint(...i),a=await this._glyphWorker.getGlyphItems(o,!1,t,e,!0,n);if(a)for(const t of a.glyphs)r[t.code]=t}getGlyphItems(t){return this._glyphInfo[t]}}},18989(t,e,s){s.d(e,{A:()=>n});class n{constructor(t=0,e=0,s=0,n=0){this.x=t,this.y=e,this.width=s,this.height=n}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2469],{52106(e,t,i){i.d(t,{A:()=>O});var r,o,n=i(32198),l=i(37838),s=i(69540),a=i(51447),p=i(25482),u=i(53966),y=i(36708),c=i(24326),d=i(91429),g=i(12195),m=i(65864),h=i(50498),f=i(55156),b=i(60950),M=i(54339),v=i(94128),C=i(33910);const w=Symbol("meshGeometryHandles");function S(e){if(null==e)return null;const t={};for(const i in e){const r=e[i];r&&(t[i]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let O=class extends((0,s.OU)(p.o)){static{r=v.Z}static{o=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,f.I)(this.origin);if(e)return(0,M.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){const e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:S(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const o={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(o.action=r),"attributes"===e&&(o.attributeName=r),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(w);const e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,y.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,y.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],w)}};(0,n.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const r=(0,m.rS)(e[i]);r&&(t[i]=r)}return 0!==Object.keys(t).length?t:null}}})],O.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,d.MZ)({value:null})],O.prototype,"attributes",null),(0,n.Cg)([(0,d.MZ)({value:null,types:h.yR,json:{read:m.rS}})],O.prototype,"geometry",null),(0,n.Cg)([(0,d.MZ)()],O.prototype,"distance",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],O.prototype,"isAggregate",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],O.prototype,"layer",void 0),(0,n.Cg)([(0,d.MZ)({clonable:"reference"})],O.prototype,"origin",void 0),(0,n.Cg)([(0,d.MZ)({type:l.A,value:null})],O.prototype,"popupTemplate",null),(0,n.Cg)([(0,d.MZ)({clonable:"reference"})],O.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],O.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,d.MZ)({value:null,types:C.Es})],O.prototype,"symbol",null),(0,n.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],O.prototype,"_version",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,value:!0})],O.prototype,"visible",null),O=o=(0,n.Cg)([(0,d.$K)("esri.Graphic")],O)},69052(e,t,i){i.d(t,{hr:()=>o});var r=i(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return n(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+l(this.range,e-t,i)}minimalMonotonic(e,t,i){return n(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function n(e,t,i,r,o=0,n=!1){return(r-=o)<t?r+=l(e,t-r):r>i&&(r-=l(e,r-i)),n&&r===i&&(r=t),r+o}function l(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const s=new o(0,2*Math.PI),a=(new o(-Math.PI,Math.PI),new o(0,360));i.d(t,["ie",0,a,"uC",0,s])},18370(e,t,i){i.d(t,{z:()=>o});class r{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async e=>(this.module=e,e))),this._promise}}function o(e){return new r(e)}},52039(e,t,i){i.d(t,{O7:()=>c,el:()=>p});var r=i(69052),o=(i(49186),i(18370)),n=i(17676),l=(i(5443),i(39829)),s=(i(82799),i(16930)),a=(i(80754),i(21325));async function p(e,t,i){Array.isArray(e)||(e=[e]),null!=t&&"object"==typeof t&&"authMode"in t&&(i=t);let r=null;for(const t of e)r??=t?.spatialReference;if(!r)return e;const o=(0,a.Vp)(r);if(!o)return e;if(1===e.length&&"extent"===e[0]?.type){const t=e[0].clone().normalizeAsSingleGeometry(o);return["xmin"in t?t:new l.A(t)]}const[s,p]=o.valid;let c=!1;for(const t of e){if(!t)continue;if("point"===t.type){c||=t.x>=p,c||=t.x<=s;continue}const{extent:e}=t;if(null==e){c=!0;break}c||=e.xmin>=p,c||=e.xmin<=s,c||=e.xmax>=p,c||=e.xmax<=s}if(!c)return e;const[{foldInto360Range:d},g]=await(0,n.qr)(Promise.all([u.getImportPromise(),y.getImportPromise()]),i),m=g.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;const t=g.fromGeometry(e),i=g.toGeometry(d(t,m),r);return"extent"===e.type&&1===i?.rings.length?i.extent:i})}const u=(0,o.z)(()=>i.e(4144).then(()=>i(4144)).then(e=>e.load().then(()=>e))),y=(0,o.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));function c(e,t,i){const r=(0,a.Vp)(i);if(null==r)return e;const[o,n]=r.valid,l=2*n;let s=0,p=0;t>n?s=Math.ceil(Math.abs(t-n)/l):t<o&&(s=-Math.ceil(Math.abs(t-o)/l)),e>n?p=Math.ceil(Math.abs(e-n)/l):e<o&&(p=-Math.ceil(Math.abs(e-o)/l));let u=e+(s-p)*l;const y=u-t;return y>n?u-=l:y<o&&(u+=l),u}function d(e){const t=(0,a.Vp)(e);if(null==t)return null;const[i,o]=t.valid;return new r.hr(i,o)}const g=d(s.A.WGS84);d(s.A.WebMercator),i.d(t,["Y_",0,g])},80754(e,t,i){i.d(t,{kS:()=>p,kd:()=>a});var r=i(82799),o=i(16930),n=i(60408),l=i(52006);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function p(e,t){if((0,l.Ed)(e))for(const i of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of i){if((0,l.aO)(e)){const[i,r]=e.c;i[0]+=t,r[0]+=t;continue}if((0,l.FG)(e)){const[i,r]=e.a;i[0]+=t,r[0]+=t;continue}if((0,l.n1)(e)){const[i,r,o]=e.b;i[0]+=t,r[0]+=t,o[0]+=t;continue}e[0]+=t}for(const i of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(const e of i)e[0]+=t;return e}i.d(t,["j7",0,s])},55156(e,t,i){i.d(t,{I:()=>o});const r=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},96299(e,t,i){i.r(t),i.d(t,{default:()=>$});var r=i(32198),o=i(52106),n=i(7762),l=i(49186),s=i(4718),a=i(25728),p=i(93637),u=i(67076),y=i(91429),c=i(5443),d=i(99917),g=i(16930),m=i(19419),h=i(52039),f=i(21325),b=i(89808),M=i(99959);const v=Symbol("isMapNotesGraphicOriginSymbol");var C;class w extends M.A{get[(C=v,b.Q)](){return this.layer}constructor(e,t){super(),this[C]=!0,this.type="map-notes",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var S=i(18589),O=i(94194),x=i(4146),T=i(33032),A=i(63074),Z=i(34287),N=i(8303),I=i(25036),_=i(20437),L=i(94985),j=i(31593),F=i(53930),R=i(68249),J=i(36005),z=i(43937);function G(e){return"markup"===e.featureCollectionType||e.layers.some(e=>null!=e.layerDefinition.visibilityField||!P(e))}function P({layerDefinition:e,featureSet:t}){const i=e.geometryType??t.geometryType;return E.find(t=>i===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type)}function D(){return new c.A({xmin:-180,ymin:-90,xmax:180,ymax:90})}const q=new _.A({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),K=new _.A({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0,length:255}),E=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new L.A).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new j.A).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new F.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new F.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new R.A).toJSON()}];let k=class extends((0,A.dM)((0,I.j)((0,Z.q)((0,N.A)((0,a.M)(x.A)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.listMode="hide-children",this.minScale=0,this.maxScale=0,this.spatialReference=g.A.WGS84,this.sublayers=new n.A(E.map(e=>new B({id:e.id,layerId:e.layerId,title:e.title,layer:this}))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,i){return{operations:{supportsMapNotesEditing:!G(t)&&"portal-item"!==i?.origin}}}readFeatureCollections(e,t,i){if(!G(t))return null;const r=t.layers.map(e=>{const t=new S.default;return t.read(e,i),t});return new n.A({items:r})}readLegacyfeatureCollectionJSON(e,t){return G(t)?(0,s.o8)(t.featureCollection):null}get fullExtent(){const e=this.spatialReference,t=(0,m.Ie)();return null!=this.sublayers?this.sublayers.forEach(({fullBounds:e})=>null!=e?(0,m.fT)(t,e,t):t,t):this.featureCollectionJSON?.layers.some(e=>e.layerDefinition.extent)&&this.featureCollectionJSON.layers.forEach(i=>{const r=(0,d.projectOrLoad)(i.layerDefinition.extent,e).geometry;null!=r&&(0,m.fT)(t,r,t)}),(0,m.aI)(t,m.qv)?(0,d.projectOrLoad)(D(),e).geometry:(0,m.w1)(t,e)}readMinScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?g.A.fromJSON(t.layers[0].layerDefinition.spatialReference):g.A.WGS84}readSublayers(e,t,i){if(G(t))return null;const r=[];let l=t.layers.reduce((e,t)=>Math.max(e,t.layerDefinition.id??-1),-1)+1;for(const e of t.layers){const{layerDefinition:t,featureSet:i}=e,n=t.id??l++,s=P(e);if(null!=s){const e=new B({id:s.id,title:t.name,layerId:n,layer:this,graphics:i.features.map(({geometry:e,symbol:t,attributes:i,popupInfo:r})=>o.A.fromJSON({attributes:i,geometry:e,symbol:t,popupTemplate:r}))});r.push(e)}}return new n.A(r)}writeSublayers(e,t,i,r){const{minScale:o,maxScale:n}=this;if(null==e)return;const s=e.some(e=>e.graphics.length>0);if(!this.capabilities.operations.supportsMapNotesEditing)return void(s&&r?.messages?.push(new l.A("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer")));const a=[];let u=this.spatialReference.toJSON();e:for(const t of e)for(const e of t.graphics)if(null!=e.geometry){u=e.geometry.spatialReference.toJSON();break e}for(const t of E){const i=e.find(e=>t.id===e.id);this._writeMapNoteSublayer(a,i,t,o,n,u,r)}(0,p.sM)("featureCollection.layers",a,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,s.o8)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async beforeSave(){if(null==this.sublayers)return;let e=null;const t=[];for(const i of this.sublayers)for(const r of i.graphics)if(null!=r.geometry){const i=r.geometry;e?(0,f.aI)(i.spatialReference,e)||((0,d.canProjectWithoutEngine)(i.spatialReference,e)||(0,d.isLoaded)()||await(0,d.load)(),r.geometry=(0,d.project)(i,e)):e=i.spatialReference,t.push(r)}const i=await(0,h.el)(t.map(e=>e.geometry));t.forEach((e,t)=>e.geometry=i[t])}_findSublayer(e){return null==this.sublayers?null:this.sublayers?.find(t=>t.id===e)??null}_writeMapNoteSublayer(e,t,i,r,o,n,l){const a=[];if(null!=t){for(const e of t.graphics)this._writeMapNote(a,e,i.geometryType,l);this._normalizeObjectIds(a,q),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,s.o8)(i.identifyingSymbol)}},id:t.layerId,geometryType:i.geometryTypeJSON,minScale:r,maxScale:o,objectIdField:"OBJECTID",fields:[q.toJSON(),K.toJSON()],spatialReference:n},featureSet:{features:a,geometryType:i.geometryTypeJSON}})}}_writeMapNote(e,t,i,r){if(null==t)return;const{geometry:o,symbol:n,popupTemplate:l}=t;if(null==o)return;if(o.type!==i)return void r?.messages?.push(new u.A("map-notes-layer:invalid-geometry-type",`Geometry "${o.type}" cannot be saved in "${i}" layer`,{graphic:t}));if(null==n)return void r?.messages?.push(new u.A("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t}));const s={attributes:{...t.attributes},geometry:o.toJSON(),symbol:n.toJSON()};null!=l&&(s.popupInfo=l.toJSON()),e.push(s)}_normalizeObjectIds(e,t){const i=t.name;let r=(0,T.H)(i,e)+1;const o=new Set;for(const t of e){t.attributes||(t.attributes={});const{attributes:e}=t;(null==e[i]||o.has(e[i]))&&(e[i]=r++),o.add(e[i])}}};(0,r.Cg)([(0,y.MZ)({readOnly:!0})],k.prototype,"capabilities",void 0),(0,r.Cg)([(0,J.w)(["portal-item","web-map"],"capabilities",["layers"])],k.prototype,"readCapabilities",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],k.prototype,"featureCollections",void 0),(0,r.Cg)([(0,J.w)(["web-map","portal-item"],"featureCollections",["layers"])],k.prototype,"readFeatureCollections",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],k.prototype,"featureCollectionJSON",void 0),(0,r.Cg)([(0,J.w)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],k.prototype,"readLegacyfeatureCollectionJSON",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],k.prototype,"featureCollectionType",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],k.prototype,"fullExtent",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],k.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,y.MZ)({type:["show","hide","hide-children"]})],k.prototype,"listMode",void 0),(0,r.Cg)([(0,y.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],k.prototype,"minScale",void 0),(0,r.Cg)([(0,J.w)(["web-map","portal-item"],"minScale",["layers"])],k.prototype,"readMinScale",null),(0,r.Cg)([(0,y.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],k.prototype,"maxScale",void 0),(0,r.Cg)([(0,J.w)(["web-map","portal-item"],"maxScale",["layers"])],k.prototype,"readMaxScale",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],k.prototype,"multipointLayer",null),(0,r.Cg)([(0,y.MZ)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],k.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],k.prototype,"pointLayer",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],k.prototype,"polygonLayer",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],k.prototype,"polylineLayer",null),(0,r.Cg)([(0,y.MZ)({type:g.A})],k.prototype,"spatialReference",void 0),(0,r.Cg)([(0,J.w)(["web-map","portal-item"],"spatialReference",["layers"])],k.prototype,"readSpatialReference",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],k.prototype,"sublayers",void 0),(0,r.Cg)([(0,J.w)("web-map","sublayers",["layers"])],k.prototype,"readSublayers",null),(0,r.Cg)([(0,z.K)("web-map","sublayers")],k.prototype,"writeSublayers",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],k.prototype,"textLayer",null),(0,r.Cg)([(0,y.MZ)()],k.prototype,"title",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],k.prototype,"type",void 0),k=(0,r.Cg)([(0,y.$K)("esri.layers.MapNotesLayer")],k);let B=class extends O.A{constructor(e){super(e),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer,e.origin=this.graphicOrigin;this.graphics.on("after-add",e=>{e.item.sourceLayer=this.layer,e.item.origin=this.graphicOrigin}),this.graphics.on("after-remove",e=>{e.item.sourceLayer=null,e.item.origin=null})}get fullExtent(){const e=this.layer?.spatialReference,t=this.fullBounds;return e?null==t?(0,d.projectOrLoad)(D(),e).geometry:(0,m.w1)(t,e):null}get fullBounds(){const e=this.layer?.spatialReference;if(!e)return null;const t=(0,m.Ie)();return this.graphics.forEach(i=>{const r=null!=i.geometry?(0,d.projectOrLoad)(i.geometry,e).geometry:null;null!=r&&(0,m.fT)(t,"point"===r.type?r:r.extent,t)}),(0,m.aI)(t,m.qv)?null:t}get graphicOrigin(){return new w(this.layer,this)}get sublayers(){return this.graphics}};(0,r.Cg)([(0,y.MZ)({readOnly:!0})],B.prototype,"fullExtent",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],B.prototype,"fullBounds",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],B.prototype,"graphicOrigin",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],B.prototype,"sublayers",null),(0,r.Cg)([(0,y.MZ)()],B.prototype,"layer",void 0),(0,r.Cg)([(0,y.MZ)()],B.prototype,"layerId",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],B.prototype,"visibilityMode",void 0),B=(0,r.Cg)([(0,y.$K)("esri.layers.MapNotesLayer.MapNotesSublayer")],B);const $=k},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>o})},33032(e,t,i){function r(e,t){let i=0;for(const r of t){const t=r.attributes?.[e];"number"==typeof t&&isFinite(t)&&(i=Math.max(i,t))}return i}i.d(t,{H:()=>r})},52136(e,t,i){var r=i(32198),o=i(91429);i.d(t,["p",0,e=>{const t=e;let i=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,r.Cg)([(0,o.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},28032(e,t,i){i.d(t,{A:()=>a});var r=i(32198),o=i(69540),n=i(25482),l=i(91429),s=i(56400);let a=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,l.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},33143(e,t,i){i.d(t,{A:()=>y});var r=i(32198),o=i(69540),n=i(25482),l=i(91429),s=i(8631),a=i(29005),p=i(36005),u=i(43937);let y=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const i of Object.keys(e))t[i]=(0,s.r)(e[i]);return t}writeDomains(e,t){const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],y.prototype,"id",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],y.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],y.prototype,"domains",void 0),(0,r.Cg)([(0,p.w)("domains")],y.prototype,"readDomains",null),(0,r.Cg)([(0,u.K)("domains")],y.prototype,"writeDomains",null),(0,r.Cg)([(0,l.MZ)({type:[a.A],json:{write:!0}})],y.prototype,"templates",void 0),y=(0,r.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],y)},37352(e,t,i){i.d(t,{A:()=>a});var r,o=i(32198),n=i(7762),l=i(25482),s=i(91429);let a=r=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,o.Cg)([(0,s.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,i){i.d(t,{A:()=>u});var r=i(32198),o=i(69540),n=i(66552),l=i(25482),s=i(91429);const a=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,r.Cg)([(0,s.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,r.Cg)([(0,s.$K)("esri.layers.support.Relationship")],u)},22671(e,t,i){i.d(t,{A:()=>b});var r,o=i(32198),n=i(52106),l=i(66552),s=i(25482),a=i(4718),p=i(91429),u=i(16930),y=i(60408),c=i(65864),d=i(50498),g=i(20437),m=i(36005),h=i(43937);const f=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=r=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,i,r){if(e)return void f.write(e,t,i,r);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void f.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,r=(0,c.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=u.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const r=t.features[i];if(r.geometry){const t=e?.[i];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,i],translate:[r,o]}=e,n=this.features,l=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((o-e)/i));for(let e=0,t=n.length;e<t;e++)l?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[r,o],scale:[n,l]}=i;let s=null,a=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;s=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;a=i=>null==i?i:i*t+e}const p=this._getHydrationFunction(e,e=>e*n+r,e=>o-e*l,s,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const r=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const n=e[t],l=i.fromJSON(n),s=n.geometry?.spatialReference;null==l.geometry||s||(l.geometry.spatialReference=r);const a=n.aggregateGeometries,p=l.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],i=a[e],o=i?.spatialReference;null==t||o||(t.spatialReference=r)}o.push(l)}return o}_quantizePoints(e,t,i){let r,o;const n=[];for(let l=0,s=e.length;l<s;l++){const s=e[l];if(l>0){const e=t(s[0]),l=i(s[1]);e===r&&l===o||(n.push([e-r,l-o]),r=e,o=l)}else r=t(s[0]),o=i(s[1]),n.push([r,o])}return n.length>0?n:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,y.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,n=r.length;e<n;e++){const n=r[e],l=this._quantizePoints(n,t,i);l&&o.push(l)}return o.length>0?((0,y.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,o){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,y.Bi)(e)?e.rings:e.paths;let l,s;for(let e=0,r=n.length;e<r;e++){const r=n[e];for(let e=0,o=r.length;e<o;e++){const o=r[e];e>0?(l+=o[0],s+=o[1]):(l=o[0],s=o[1]),o[0]=t(l),o[1]=i(s)}}if(r&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2]),i[3]=o(i[3])}}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=o(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let l,s;for(let e=0,r=n.length;e<r;e++){const r=n[e];e>0?(l+=r[0],s+=r[1]):(l=r[0],s=r[1]),r[0]=t(l),r[1]=i(s)}if(r&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2]),t[3]=o(t[3])}else if(r)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=r(t[2])}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],b.prototype,"features",void 0),(0,o.Cg)([(0,m.w)("features")],b.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[g.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],b.prototype,"geometryType",void 0),(0,o.Cg)([(0,h.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:d.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,m.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,o.Cg)([(0,h.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=r=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,i){var r=i(32198),o=i(66552),n=i(53966),l=i(91429),s=i(93223);const a=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",u="field";i.d(t,["K",0,e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&u||i&&p||null,t&&i&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==u&&e!==p||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,s.e)(a,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,a])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9657],{68197(e,t,r){r.d(t,{A:()=>h});var i=r(40876),s=r(4576),o=r(34727),l=r(78888);function n(e){return(0,o.qE)((0,l.Vr)(e),0,255)}function a(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}function u(e){return.2126*(0,i.Q6)(e.r)+.7152*(0,i.Q6)(e.g)+.0722*(0,i.Q6)(e.b)}class h{static blendColors(e,t,r,i=new h){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){const r=(0,i.lT)(e);return r?h.fromArray(r,t):null}static fromHex(e,t=new h){const r=(0,i.oW)(e);return r?h.fromArray(r,t):null}static fromArray(e,t=new h){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,i.Eq)(e);return r?h.fromArray(r,t):null}static fromJSON(e){return null!=e?new h([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(e,t=3){const r=e instanceof h?e:new h(e),i=u(this),s=u(r);return(Math.max(i,s)+.05)/(Math.min(i,s)+.05)<t}setColor(e){if("string"==typeof e)h.fromString(e,this);else if((0,s.yc)(e))h.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,s=4===r||8===r,o=`#${a(this.r,i)}${a(this.g,i)}${a(this.b,i)}${s?a(Math.round(255*this.a),i):""}`;return t?o.toUpperCase():o}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=n(this.r),r=n(this.g),i=n(this.b);return 0===e||1!==this.a?[t,r,i,n(255*this.a)]:[t,r,i]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}h.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>d,G1:()=>g,Q6:()=>b,TS:()=>o,V6:()=>s,Vm:()=>y,ay:()=>a,c1:()=>m,c4:()=>l,j5:()=>u,lT:()=>p,oW:()=>h,xV:()=>S});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function s(e){return!!i[e]||!!i[e.toLowerCase()]}function o(e){return i[e]??i[e.toLowerCase()]}function l(e){return[...o(e)]}function n(e,t,r){r<0&&++r,r>1&&--r;const i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function a(e,t,r,i=1){const s=(e%360+360)%360/360,o=r<=.5?r*(t+1):r+t-r*t,l=2*r-o;return[Math.round(255*n(l,o,s+1/3)),Math.round(255*n(l,o,s)),Math.round(255*n(l,o,s-1/3)),i]}function u(e){const t=e.length>5,r=t?8:4,i=(1<<r)-1,s=t?1:17,o=t?9===e.length:5===e.length;let l=Number("0x"+e.slice(1));if(isNaN(l))return null;const n=[0,0,0,1];let a;return o&&(a=l&i,l>>=r,n[3]=s*a/255),a=l&i,l>>=r,n[2]=s*a,a=l&i,l>>=r,n[1]=s*a,a=l&i,l>>=r,n[0]=s*a,n}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),s=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,i+16*i,(s+16*s)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function p(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),c(t)}return c(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return a(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function c(e){return e[0]=m(e[0]),e[1]=m(e[1]),e[2]=m(e[2]),e[3]=4===e.length?g(e[3]):1,e}function d(e){let t=s(e)?o(e):null;return t??=p(e),t??=h(e),t}function y(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function g(e){return f(e,0,1)}function m(e){return Math.round(f(e,0,255))}function f(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const w=1/2.2;function b(e){return e**2.2}function S(e){return e**w}r.d(t,["iw",0,w])},60999(e,t,r){r.d(t,{DZ:()=>y,Ke:()=>d,QA:()=>g,Tj:()=>h,UT:()=>m,aD:()=>w,jJ:()=>u});var i=r(32198),s=r(69622),o=r(97768),l=r(17676),n=r(10107),a=r(64108);function u(e,t,r){return(0,l.Lx)(e.map((e,i)=>t.apply(r,[e,i])))}async function h(e,t,r){return(await(0,l.Lx)(e.map((e,i)=>t.apply(r,[e,i])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function c(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return c(e)}}async function y(e){try{return p(await e)}catch(e){return(0,l.QP)(e),c(e)}}function g(e){if(!0===e.ok)return e.value;throw e.error}function m(e,t){return new f(e,t)}let f=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,o.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=c(e),this._cleanup()}),this._abortHandle=(0,l.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,o.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,n.MZ)()],f.prototype,"value",null),(0,i.Cg)([(0,n.MZ)()],f.prototype,"error",null),(0,i.Cg)([(0,n.MZ)()],f.prototype,"finished",null),(0,i.Cg)([(0,n.MZ)()],f.prototype,"promise",void 0),(0,i.Cg)([(0,n.MZ)()],f.prototype,"_result",void 0),f=(0,i.Cg)([(0,a.$)("esri.core.asyncUtils.ReactiveTask")],f);class w{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)}}}},90629(e,t,r){r.d(t,{Lz:()=>s,PN:()=>o,cr:()=>l,gs:()=>a,r_:()=>u,tc:()=>n}),r(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function s(e){return e?e/72*96:0}function o(e){return e?72*e/96:0}function l(e){if("string"==typeof e){const t=e.match(i);if(t){const r=Number(t[1]),i=t[3]&&t[3].toLowerCase(),s=e.startsWith("-"),l="px"===i?o(r):r;return s?-l:l}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function n(e=0,t=0){return{x:e,y:t}}function a(e=0,t=0){return[e,t]}function u(e=0,t=0,r=0){return[e,t,r]}},63201(e,t,r){r.r(t);var i=r(32198),s=r(92602),o=r(56507),l=r(25728),n=r(17676),a=r(84952),u=r(91429),h=r(5443),p=r(21325),c=r(4146),d=r(63074),y=r(34287),g=r(8303),m=r(54310),f=r(25036),w=r(10873),b=r(58592),S=r(94985),C=r(31593),v=r(53930),M=r(20378),_=r(36005);const A=["atom","xml"],k={base:M.A,key:"type",typeMap:{"simple-line":C.A},errorContext:"symbol"},P={base:M.A,key:"type",typeMap:{"picture-marker":b.A,"simple-marker":v.A},errorContext:"symbol"},I={base:M.A,key:"type",typeMap:{"simple-fill":S.A},errorContext:"symbol"};let L=class extends((0,d.dM)((0,m.J)((0,y.q)((0,g.A)((0,f.j)((0,l.M)(c.A))))))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readFeatureCollections(e,t){return t.featureCollection.layers.forEach(e=>{const t=e.layerDefinition.drawingInfo.renderer.symbol;t&&"esriSFS"===t.type&&t.outline?.style.includes("esriSFS")&&(t.outline.style="esriSLSSolid")}),t.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,a.e7)(this.url,A)||"GeoRSS":e}set title(e){this._set("title",e)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},e).catch(n.QP).then(()=>this._fetchService(t)).then(e=>{this.read(e,{origin:"service"})})),Promise.resolve(this)}async hasDataChanged(){const e=await this._fetchService();return this.read(e,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(e){const t=this.spatialReference,{data:r}=await(0,o.A)(s.A.geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:(0,p.oT)(t)?void 0:t.wkid??JSON.stringify(t)},signal:e});return r}_hasGeometry(e){return this.featureCollections?.some(t=>t.featureSet?.geometryType===e&&t.featureSet.features?.length>0)??!1}};(0,i.Cg)([(0,u.MZ)()],L.prototype,"description",void 0),(0,i.Cg)([(0,u.MZ)()],L.prototype,"featureCollections",void 0),(0,i.Cg)([(0,_.w)("service","featureCollections",["featureCollection.layers"])],L.prototype,"readFeatureCollections",null),(0,i.Cg)([(0,u.MZ)({type:h.A,json:{name:"lookAtExtent"}})],L.prototype,"fullExtent",void 0),(0,i.Cg)([(0,u.MZ)(w.id)],L.prototype,"id",void 0),(0,i.Cg)([(0,u.MZ)(w.fV)],L.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,u.MZ)({types:k,json:{write:!0}})],L.prototype,"lineSymbol",void 0),(0,i.Cg)([(0,u.MZ)({type:["show","hide"]})],L.prototype,"listMode",void 0),(0,i.Cg)([(0,u.MZ)({types:P,json:{write:!0}})],L.prototype,"pointSymbol",void 0),(0,i.Cg)([(0,u.MZ)({types:I,json:{write:!0}})],L.prototype,"polygonSymbol",void 0),(0,i.Cg)([(0,u.MZ)({type:["GeoRSS"]})],L.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,u.MZ)(w.OZ)],L.prototype,"url",void 0),(0,i.Cg)([(0,u.MZ)({json:{origins:{service:{read:{source:"name",reader:e=>e||void 0}}}}})],L.prototype,"title",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1},value:"geo-rss"})],L.prototype,"type",void 0),L=(0,i.Cg)([(0,u.$K)("esri.layers.GeoRSSLayer")],L);const $=L;r.d(t,["default",0,$])},8303(e,t,r){var i=r(32198),s=r(92602),o=r(70333),l=r(56507),n=r(60999),a=r(49186),u=r(36563),h=r(53966),p=r(97768),c=r(17676),d=r(84952),y=r(91429),g=r(77548),m=r(20655),f=r(80812),w=r(41318),b=r(10407),S=r(36005),C=r(43937);const v={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new f.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(()=>r(41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||h.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;const i=t?.signal?null:new AbortController;try{const{reload:s}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,u.rE)(i),"reloadFromPortal"),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,c.zf)(e)||h.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!o.id?.findCredential(this.url),s=e===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let l,n;if(s)l=r.portal.url;else try{l=await(0,g.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!l||!(0,d.b8)(l,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;n=await(o.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const a=!0,u=!1,h=!1;if(!n)return{features:{edit:a,fullEdit:u},content:{updateItem:h}};try{if(s?await r.reload():(r=new f.default({id:e,portal:{url:l}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,c.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(e,t){const r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=v.credential===t?v.user:await this._fetchEditingUser(e);return v.credential=t,v.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=m.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(i))return s.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,h=await(0,n.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?w.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,y.MZ)({type:f.default})],M.prototype,"portalItem",null),(0,i.Cg)([(0,S.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,i.Cg)([(0,C.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,i.Cg)([(0,y.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,i.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],M),M}])},10407(e,t,r){r.d(t,{It:()=>d,LG:()=>l,OM:()=>u,Sm:()=>h,Y:()=>n,bK:()=>a,sQ:()=>p});var i=r(99917),s=r(16930),o=r(28735);function l(e,t){if(!n(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function n(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return n(e,c.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function h(e,t,r){r?l(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const r=s.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const c={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function d(e){const{portal:t,isOrgItem:r,itemControl:i}=e,s=t.user?.privileges;let o=!s||s.includes("features:user:edit"),l=!!r&&!!s?.includes("features:user:fullEdit");const n="update"===i||"admin"===i;return n?l=o=!0:l&&(o=!0),{features:{edit:o,fullEdit:l},content:{updateItem:n}}}r.d(t,["mm",0,c])},65851(e,t,r){r.d(t,{A:()=>n});var i=r(32198),s=r(91429),o=r(31593),l=r(20378);let n=class extends l.A{constructor(e){super(e),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,i.Cg)([(0,s.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":o.A}},json:{default:null,write:!0}})],n.prototype,"outline",void 0),(0,i.Cg)([(0,s.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],n.prototype,"type",void 0),n=(0,i.Cg)([(0,s.$K)("esri.symbols.FillSymbol")],n)},89420(e,t,r){r.d(t,{A:()=>a});var i=r(32198),s=r(90629),o=r(91429),l=r(78888),n=r(20378);let a=class extends n.A{constructor(e){super(e),this.angle=0,this.type=null}get xoffset(){return this._get("xoffset")??0}set xoffset(e){this._set("xoffset",e)}get yoffset(){return this._get("yoffset")??0}set yoffset(e){this._set("yoffset",e)}get size(){return this._get("size")??9}set size(e){this._set("size",e)}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{read:e=>e&&-1*e,write:(e,t)=>t.angle=e&&-1*e}})],a.prototype,"angle",void 0),(0,i.Cg)([(0,o.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],a.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,cast:s.cr,json:{write:!0}})],a.prototype,"xoffset",null),(0,i.Cg)([(0,o.MZ)({type:Number,cast:s.cr,json:{write:!0}})],a.prototype,"yoffset",null),(0,i.Cg)([(0,o.MZ)({cast:e=>"auto"===e?e:(0,l.GB)((0,s.cr)(e)),json:{write:!0}})],a.prototype,"size",null),a=(0,i.Cg)([(0,o.$K)("esri.symbols.MarkerSymbol")],a)},58592(e,t,r){r.d(t,{A:()=>c});var i,s=r(32198),o=r(4718),l=r(90629),n=r(91429),a=r(89420),u=r(77040),h=r(93223),p=r(36005);let c=i=class extends a.A{constructor(...e){super(...e),this.color=null,this.type="picture-marker",this.url=null,this.source=null}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e&&null==e.imageData)return e;const i={};return e&&(i.url=e),null!=t&&(i.width=(0,l.cr)(t)),null!=r&&(i.height=(0,l.cr)(r)),i}get height(){return this._get("height")??12}set height(e){this._set("height",e)}readHeight(e,t){return t.size||e}get width(){return this._get("width")??12}set width(e){this._set("width",e)}readWidth(e,t){return t.size||e}get size(){return this._get("size")??null}set size(e){this._set("size",e)}clone(){const e=new i({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return e._set("source",(0,o.o8)(this.source)),e}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s.Cg)([(0,n.MZ)({json:{write:!1}})],c.prototype,"color",void 0),(0,s.Cg)([(0,h.e)({esriPMS:"picture-marker"},{readOnly:!0})],c.prototype,"type",void 0),(0,s.Cg)([(0,n.MZ)(u.ku)],c.prototype,"url",void 0),(0,s.Cg)([(0,n.MZ)(u.k7)],c.prototype,"source",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],c.prototype,"height",null),(0,s.Cg)([(0,p.w)("height",["height","size"])],c.prototype,"readHeight",null),(0,s.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],c.prototype,"width",null),(0,s.Cg)([(0,n.MZ)({json:{write:!1}})],c.prototype,"size",null),c=i=(0,s.Cg)([(0,n.$K)("esri.symbols.PictureMarkerSymbol")],c)},94985(e,t,r){r.d(t,{A:()=>d});var i,s=r(32198),o=r(68197),l=r(66552),n=r(4718),a=r(91429),u=r(65851),h=r(31593),p=r(93223);const c=new l.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let d=i=class extends u.A{constructor(...e){super(...e),this.color=new o.A([0,0,0,.25]),this.outline=new h.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(e,t,r){if(e&&"string"!=typeof e)return e;const i={};return e&&(i.style=e),t&&(i.outline=t),r&&(i.color=r),i}clone(){return new i({color:(0,n.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,s.Cg)([(0,a.MZ)({type:o.A})],d.prototype,"color",void 0),(0,s.Cg)([(0,a.MZ)()],d.prototype,"outline",void 0),(0,s.Cg)([(0,p.e)({esriSFS:"simple-fill"},{readOnly:!0})],d.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:c.apiValues,json:{read:c.read,write:c.write}})],d.prototype,"style",void 0),d=i=(0,s.Cg)([(0,a.$K)("esri.symbols.SimpleFillSymbol")],d)},31593(e,t,r){r.d(t,{A:()=>C});var i=r(32198),s=r(66552),o=r(4718),l=r(90629),n=r(91429),a=r(20378),u=r(93223);let h=class extends a.A{constructor(e){super(e),this.type="simple-line"}get width(){return this._get("width")??.75}set width(e){this._set("width",e)}hash(){return`${this.type}.${this.width}`}};(0,i.Cg)([(0,u.e)({esriSLS:"simple-line"},{readOnly:!0})],h.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],h.prototype,"width",null),h=(0,i.Cg)([(0,n.$K)("esri.symbols.LineSymbol")],h);var p,c=r(68197),d=r(25482),y=r(83213),g=r(43937),m=r(36005);let f=p=class extends d.o{constructor(e){super(e),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(e,t,r,i){t[r]="web-map"===i?.origin?"arrow":e}set color(e){this._set("color",e)}readColor(e){return null!=e?.[0]?[e[0],e[1],e[2],e[3]/255]:e}writeColor(e,t,r,i){"web-map"===i?.origin||(t[r]=e)}clone(){return new p({color:(0,o.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,i.Cg)([(0,n.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],f.prototype,"placement",void 0),(0,i.Cg)([(0,u.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,n.MZ)({json:{origins:{"web-map":{write:!1}}}})],f.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:y.z})],f.prototype,"style",void 0),(0,i.Cg)([(0,g.K)("style")],f.prototype,"writeStyle",null),(0,i.Cg)([(0,n.MZ)({type:c.A,value:null,json:{write:{allowNull:!0}}})],f.prototype,"color",null),(0,i.Cg)([(0,m.w)("color")],f.prototype,"readColor",null),(0,i.Cg)([(0,g.K)("color")],f.prototype,"writeColor",null),f=p=(0,i.Cg)([(0,n.$K)("esri.symbols.LineSymbolMarker")],f);const w=f;var b;const S=new s.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let C=b=class extends h{constructor(...e){super(...e),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(e,t,r,i,s,o){if(e&&"string"!=typeof e)return e;const n={};return null!=e&&(n.style=e),null!=t&&(n.color=t),null!=r&&(n.width=(0,l.cr)(r)),null!=i&&(n.cap=i),null!=s&&(n.join=s),null!=o&&(n.miterLimit=(0,l.cr)(o)),n}clone(){return new b({color:(0,o.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,i.Cg)([(0,u.e)({esriSLS:"simple-line"},{readOnly:!0})],C.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:S.apiValues,json:{read:S.read,write:S.write}})],C.prototype,"style",void 0),(0,i.Cg)([(0,n.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&null==r?.origin})}}})],C.prototype,"cap",void 0),(0,i.Cg)([(0,n.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(e,t,r)=>({enabled:"round"!==e&&null==r?.origin})}}})],C.prototype,"join",void 0),(0,i.Cg)([(0,n.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":w}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],C.prototype,"marker",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:!1,write:!1}})],C.prototype,"miterLimit",void 0),C=b=(0,i.Cg)([(0,n.$K)("esri.symbols.SimpleLineSymbol")],C)},53930(e,t,r){r.d(t,{A:()=>g});var i,s=r(32198),o=r(68197),l=r(66552),n=r(4718),a=r(90629),u=r(91429),h=r(89420),p=r(31593),c=r(43937),d=r(93223);const y=new l.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let g=i=class extends h.A{constructor(...e){super(...e),this.color=new o.A([255,255,255,.25]),this.type="simple-marker",this.style="circle",this.outline=new p.A}normalizeCtorArgs(e,t,r,i){if(e&&"string"!=typeof e)return e;const s={};return e&&(s.style=e),null!=t&&(s.size=(0,a.cr)(t)),r&&(s.outline=r),i&&(s.color=i),s}writeColor(e,t){e&&"x"!==this.style&&"cross"!==this.style&&(t.color=e.toJSON()),null===e&&(t.color=null)}get size(){return this._get("size")??12}set size(e){this._set("size",e)}set path(e){this.style="path",this._set("path",e)}clone(){return new i({angle:this.angle,color:(0,n.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,s.Cg)([(0,u.MZ)({type:o.A})],g.prototype,"color",void 0),(0,s.Cg)([(0,c.K)("color")],g.prototype,"writeColor",null),(0,s.Cg)([(0,d.e)({esriSMS:"simple-marker"},{readOnly:!0})],g.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)()],g.prototype,"size",null),(0,s.Cg)([(0,u.MZ)({type:y.apiValues,json:{read:y.read,write:y.write}})],g.prototype,"style",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],g.prototype,"path",null),(0,s.Cg)([(0,u.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":p.A}},json:{default:null,write:!0}})],g.prototype,"outline",void 0),g=i=(0,s.Cg)([(0,u.$K)("esri.symbols.SimpleMarkerSymbol")],g)},20378(e,t,r){r.d(t,{A:()=>p});var i=r(32198),s=r(68197),o=r(66552),l=r(25482),n=r(91429),a=r(36005);const u=new o.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let h=0,p=class extends l.o{constructor(e){super(e),this.id="sym"+h++,this.type=null,this.color=new s.A([0,0,0,1])}readColor(e){return null!=e?.[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,i.Cg)([(0,n.MZ)({type:u.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:u.write,isRequired:!0}}})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:s.A,json:{write:{allowNull:!0}}})],p.prototype,"color",void 0),(0,i.Cg)([(0,a.w)("color")],p.prototype,"readColor",null),p=(0,i.Cg)([(0,n.$K)("esri.symbols.Symbol")],p)},83213(e,t,r){r.d(t,["x",0,["begin","end","begin-end"],"z",0,["arrow","circle","square","diamond","cross","x"]])},77040(e,t,r){var i=r(84952),s=r(97159);function o(e,t){if(!(0,i.oP)(e)){const r=function(e){if(!e)return null;const{origin:t,layer:r}=e;if("service"!==t&&"portal-item"!==t)return null;const i=r?.type;return"feature"===i||"stream"===i?r.parsedUrl?.path:"map-image"===i||"tile"===i?e.url?.path:null}(t);if(r)return(0,i.fj)(r,"images",e)}return(0,s.f)(e,t)}const l={json:{read:{source:["imageData","url"],reader:function(e,t,r){return t.imageData?(0,i.Hg)({mediaType:t.contentType||"image/png",isBase64:!0,data:t.imageData}):o(t.url,r)}},write:{writer(e,t,r,o){!function(e,t,r,o){if((0,i.DB)(e)){const l=(0,i.r$)(e);if(!l)return;t.contentType=l.mediaType,t.imageData=l.data,r&&r.imageData===t.imageData&&r.url&&(0,s.w)(r.url,t,"url",o)}else(0,s.w)(e,t,"url",o)}(e,t,this.source,o)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(e,t,r){const i={};return t.imageData&&(i.imageData=t.imageData),t.contentType&&(i.contentType=t.contentType),t.url&&(i.url=o(t.url,r)),i}}}};r.d(t,["k7",0,n,"ku",0,l])},78553(e,t,r){r.d(t,{D:()=>o,p:()=>s});var i=r(78888);function s(e){const t=(0,i.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function o(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|