@arcgis/core 6.0.0-next.42 → 6.0.0-next.43

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.
Files changed (489) hide show
  1. package/Basemap.js +1 -1
  2. package/Graphic.js +1 -1
  3. package/Ground.js +1 -1
  4. package/WebDocument2D.js +1 -1
  5. package/WebScene.js +1 -1
  6. package/analysis/ElevationProfile/ElevationProfileLineScene.d.ts +1 -0
  7. package/analysis/ElevationProfileAnalysis.d.ts +15 -0
  8. package/analysis/LineOfSightAnalysis.d.ts +6 -1
  9. package/analysis/ShadowCastAnalysis.d.ts +18 -22
  10. package/analysis/ShadowCastAnalysis.js +1 -1
  11. package/analysis/ViewshedAnalysis.d.ts +6 -1
  12. package/applications/Components/analysisUtils.d.ts +6 -0
  13. package/applications/Components/analysisUtils.js +1 -1
  14. package/arcade/ArcadeModuleResolver.js +1 -1
  15. package/arcade/arcadeCompiler.js +1 -1
  16. package/arcade/featureset/actions/Adapted.js +1 -1
  17. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  18. package/arcade/featureset/support/FeatureSet.js +1 -1
  19. package/arcade/featureset/support/shared.js +1 -1
  20. package/arcade/featureset/support/sqlUtils.js +1 -1
  21. package/arcade/functions/knowledgegraph.js +1 -1
  22. package/arcade/functions/maths.js +1 -1
  23. package/assets/esri/core/workers/RemoteClient.js +1 -1
  24. package/assets/esri/core/workers/chunks/{2f54e4feb554c1a7b9c4.js → 02debe67e6fef9d88bdd.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{bd046399e05e759e0bc2.js → 035204000954973b0ebc.js} +1 -1
  26. package/assets/esri/core/workers/chunks/05225506fdba0c827407.js +1 -0
  27. package/assets/esri/core/workers/chunks/{4c73c493dabe949c2512.js → 077b755688346e0dc8d3.js} +1 -1
  28. package/assets/esri/core/workers/chunks/0c1d8e0c2eae21f97fc0.js +1 -0
  29. package/assets/esri/core/workers/chunks/105865a4d8cb4ddf8a8a.js +1 -0
  30. package/assets/esri/core/workers/chunks/{afe3e89737fb45189a99.js → 14ed0c34b910eba3434e.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{f67b37253d6d05d1e339.js → 14ef986665b4a1f6ccdc.js} +1 -1
  32. package/assets/esri/core/workers/chunks/158cbf4075d3eca83a6a.js +1 -0
  33. package/assets/esri/core/workers/chunks/{a03f15f2cbc3fed291c2.js → 15f2b27b8edc0d53e399.js} +1 -1
  34. package/assets/esri/core/workers/chunks/181d24ced5ef6b1f959b.js +1 -0
  35. package/assets/esri/core/workers/chunks/18dbee576b7b9dbe69fb.js +1 -0
  36. package/assets/esri/core/workers/chunks/1aebb8fe0692058bf2fb.js +1 -0
  37. package/assets/esri/core/workers/chunks/1cdb55d9a5ab1a5e3f08.js +1 -0
  38. package/assets/esri/core/workers/chunks/{cf2e5f827cea7d7319ce.js → 1e5c5029b0653047a769.js} +1 -1
  39. package/assets/esri/core/workers/chunks/20db6e844708d3e71437.js +1 -0
  40. package/assets/esri/core/workers/chunks/21a4c3d8265aca775616.js +1 -0
  41. package/assets/esri/core/workers/chunks/23fff0505e02fd364909.js +1 -0
  42. package/assets/esri/core/workers/chunks/286e3e050b29e6158e6f.js +1 -0
  43. package/assets/esri/core/workers/chunks/29ef9d357e30082d267a.js +1 -0
  44. package/assets/esri/core/workers/chunks/29feef121b0916fb90bf.js +1 -0
  45. package/assets/esri/core/workers/chunks/2ef91e8da260454f46d8.js +1 -0
  46. package/assets/esri/core/workers/chunks/32b9bedd4bb0504f0b1d.js +1 -0
  47. package/assets/esri/core/workers/chunks/{279089a6a3f08022c678.js → 361d620b3f91868b1490.js} +1 -1
  48. package/assets/esri/core/workers/chunks/37c16e20f022ca27cdae.js +1 -0
  49. package/assets/esri/core/workers/chunks/380aefa522dfeccb8c65.js +1 -0
  50. package/assets/esri/core/workers/chunks/394ae3199c78a94c6a2a.js +1 -0
  51. package/assets/esri/core/workers/chunks/{fdd2b35388f9fe42b623.js → 3a90b6eafa92f1a68ac5.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{6a65fc1a2931230fe994.js → 3bb1e06861cd0563ed9f.js} +1 -1
  53. package/assets/esri/core/workers/chunks/3f92afa58c895bf87e62.js +1 -0
  54. package/assets/esri/core/workers/chunks/422784ceae0d511868a0.js +1 -0
  55. package/assets/esri/core/workers/chunks/44782e8318dc47cb08a0.js +1 -0
  56. package/assets/esri/core/workers/chunks/{5882f349f3771868e67f.js → 4521f72ab0ea872e5d7c.js} +1 -1
  57. package/assets/esri/core/workers/chunks/45b5a61c4e9fbd9ca0b3.js +1 -0
  58. package/assets/esri/core/workers/chunks/47af220003adfca2167e.js +1 -0
  59. package/assets/esri/core/workers/chunks/487500443a6037d3599f.js +1 -0
  60. package/assets/esri/core/workers/chunks/4a4fab74442c3d914505.js +1 -0
  61. package/assets/esri/core/workers/chunks/4a8903fb1a5d30a68df9.js +1 -0
  62. package/assets/esri/core/workers/chunks/4d818b231e6d1fa73cc5.js +1 -0
  63. package/assets/esri/core/workers/chunks/{e0cf6e1e21d0ee739009.js → 4e03aa5518d46a36661c.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{1a614bac5db42c6263f8.js → 4fe10650ba3cd30aa9a2.js} +1 -1
  65. package/assets/esri/core/workers/chunks/50b8b1cce0a5f77c8372.js +1 -0
  66. package/assets/esri/core/workers/chunks/5470a29a69010c8361c4.js +1 -0
  67. package/assets/esri/core/workers/chunks/564d7f2e58fbc16853c0.js +1 -0
  68. package/assets/esri/core/workers/chunks/5c2e79f2ca401741bf3e.js +1 -0
  69. package/assets/esri/core/workers/chunks/5c9ab86bec07264dc9f2.js +1 -0
  70. package/assets/esri/core/workers/chunks/{04d55ed51e8b2683c4b4.js → 5d908a823b324bafda1e.js} +1 -1
  71. package/assets/esri/core/workers/chunks/5e6d6676a5c47c0e132a.js +1 -0
  72. package/assets/esri/core/workers/chunks/5fd4d3cb3c9350131a59.js +1 -0
  73. package/assets/esri/core/workers/chunks/60637f38159e9bf68d4e.js +1 -0
  74. package/assets/esri/core/workers/chunks/69b73251257088ce7099.js +1 -0
  75. package/assets/esri/core/workers/chunks/6cd17c3a254a0b5c2476.js +1 -0
  76. package/assets/esri/core/workers/chunks/{06102715e9a8f218e07c.js → 6f3732e7ba2d031ba789.js} +1 -1
  77. package/assets/esri/core/workers/chunks/7191ab31fa040a7c561e.js +1 -0
  78. package/assets/esri/core/workers/chunks/71ba848c3352ea3ff96f.js +1 -0
  79. package/assets/esri/core/workers/chunks/76dc8e3264a456f33e61.js +1 -0
  80. package/assets/esri/core/workers/chunks/77d80b6d65d761214a7c.js +1 -0
  81. package/assets/esri/core/workers/chunks/{e2430bc3a1edeb5c3266.js → 78a69594c82d37aecbfb.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{787c1a8bda7d745633f2.js → 81b9894e81cce3490984.js} +1 -1
  83. package/assets/esri/core/workers/chunks/85cd525705eec6803dd3.js +1 -0
  84. package/assets/esri/core/workers/chunks/863f04cacdc843d3f208.js +1 -0
  85. package/assets/esri/core/workers/chunks/8766832c7253557da8fe.js +1 -0
  86. package/assets/esri/core/workers/chunks/87992070008812f8ae6f.js +1 -0
  87. package/assets/esri/core/workers/chunks/892fd2c3533ce46a9258.js +1 -0
  88. package/assets/esri/core/workers/chunks/89b9d716d96135d4f057.js +1 -0
  89. package/assets/esri/core/workers/chunks/{4b2d392ad8e381bfd6b3.js → 89e9ebc8d5c1022cb265.js} +1 -1
  90. package/assets/esri/core/workers/chunks/8b38798ac6d774185238.js +1 -0
  91. package/assets/esri/core/workers/chunks/8b53369cace136ed1329.js +1 -0
  92. package/assets/esri/core/workers/chunks/8ba4f5e1912edf397947.js +1 -0
  93. package/assets/esri/core/workers/chunks/{987424121cf30b0f3c50.js → 8d3e92a3367a3ddc02bd.js} +1 -1
  94. package/assets/esri/core/workers/chunks/8e7a3b1b088c160f4db7.js +1 -0
  95. package/assets/esri/core/workers/chunks/8f4fba4d2339c91c8b3f.js +1 -0
  96. package/assets/esri/core/workers/chunks/{45aaefbdffe5e15dfb24.js → 919a6aedf38e9631ee09.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{487c46d5245cfb35c4bb.js → 921917e53bac82693ec8.js} +1 -1
  98. package/assets/esri/core/workers/chunks/92809b209b68abcb97ee.js +1 -0
  99. package/assets/esri/core/workers/chunks/{beccbfff549902733c4e.js → 9869c696e6321c8db0a9.js} +1 -1
  100. package/assets/esri/core/workers/chunks/98957dba728c93506e50.js +1 -0
  101. package/assets/esri/core/workers/chunks/99ffb839407cb3c26ad8.js +1 -0
  102. package/assets/esri/core/workers/chunks/9b517c8d26a86dedb921.js +1 -0
  103. package/assets/esri/core/workers/chunks/{cb2329d1ea72ce5cc057.js → 9c3f56f22e9baa80a387.js} +1 -1
  104. package/assets/esri/core/workers/chunks/{1860104c2b33f68785dd.js → 9d0976f5979c4f9154dc.js} +1 -1
  105. package/assets/esri/core/workers/chunks/9fe1812aad6e566aea31.js +1 -0
  106. package/assets/esri/core/workers/chunks/a1602995ef96beb7df29.js +1 -0
  107. package/assets/esri/core/workers/chunks/{dff845574c0037a1dca6.js → a332e31165b65a6fb92e.js} +1 -1
  108. package/assets/esri/core/workers/chunks/a553478664a688f32488.js +1 -0
  109. package/assets/esri/core/workers/chunks/a7937b06f4b0860c7671.js +1 -0
  110. package/assets/esri/core/workers/chunks/{1980fd7ae1617ef4d19d.js → a95186214f1206efd8ed.js} +1 -1
  111. package/assets/esri/core/workers/chunks/{853563c66ecf58d53d36.js → ab60e8fbe0f92340616a.js} +1 -1
  112. package/assets/esri/core/workers/chunks/acea0946049136578354.js +1 -0
  113. package/assets/esri/core/workers/chunks/{342a97974a78007b25e0.js → ad94f54b4c88b3a047bc.js} +1 -1
  114. package/assets/esri/core/workers/chunks/ae29fec228e70a93ced1.js +1 -0
  115. package/assets/esri/core/workers/chunks/ae6dc159be974ca0e8da.js +1 -0
  116. package/assets/esri/core/workers/chunks/ae70972bf88d586fd453.js +1 -0
  117. package/assets/esri/core/workers/chunks/b021fa4654ede1d04279.js +1 -0
  118. package/assets/esri/core/workers/chunks/b03f32f02858244c6cd0.js +1 -0
  119. package/assets/esri/core/workers/chunks/b2d922ecc2c4899dbee1.js +1 -0
  120. package/assets/esri/core/workers/chunks/b42e50ec6b819f669400.js +1 -0
  121. package/assets/esri/core/workers/chunks/b6a82775b83d20599635.js +1 -0
  122. package/assets/esri/core/workers/chunks/b6d365b9198b74b05338.js +1 -0
  123. package/assets/esri/core/workers/chunks/{48c6230b8a6d3a8a7906.js → bc21241bc9acb83d1b1c.js} +1 -1
  124. package/assets/esri/core/workers/chunks/bd02d927b0b4991b61c5.js +1 -0
  125. package/assets/esri/core/workers/chunks/bdf1c4c038d556527483.js +1 -0
  126. package/assets/esri/core/workers/chunks/c1273f14a5ef3d81de0d.js +1 -0
  127. package/assets/esri/core/workers/chunks/c752f1e732bb019f657d.js +1 -0
  128. package/assets/esri/core/workers/chunks/{3f74c61359b4bd6dcf00.js → c7f49493bd548d5dc1e0.js} +1 -1
  129. package/assets/esri/core/workers/chunks/{36bafcc29ac133a05558.js → c86d3af148b28ded5875.js} +10 -10
  130. package/assets/esri/core/workers/chunks/{692f0093c444fcc752b5.js → cadd60fa4370284c7ae3.js} +1 -1
  131. package/assets/esri/core/workers/chunks/{d5e251cddd41d643510c.js → cb62326b6526cde429c1.js} +1 -1
  132. package/assets/esri/core/workers/chunks/cd8304b1db83d48c57db.js +1 -0
  133. package/assets/esri/core/workers/chunks/cdf0c7706d3e1221f49b.js +1 -0
  134. package/assets/esri/core/workers/chunks/d00dd961a5b79f563123.js +1 -0
  135. package/assets/esri/core/workers/chunks/d893c3bb093104d3db95.js +1 -0
  136. package/assets/esri/core/workers/chunks/d8fb1d9da16492574a11.js +1 -0
  137. package/assets/esri/core/workers/chunks/{520f499d79fa71f262c7.js → dd7e4c94a88452425750.js} +1 -1
  138. package/assets/esri/core/workers/chunks/ddb4689624d091922471.js +1 -0
  139. package/assets/esri/core/workers/chunks/df32a3fe81d60f0d7462.js +1 -0
  140. package/assets/esri/core/workers/chunks/dfc6b33f51dc81f3a7be.js +1 -0
  141. package/assets/esri/core/workers/chunks/e55934eb4a17a5b24c94.js +1 -0
  142. package/assets/esri/core/workers/chunks/{5473409fee59db80f87d.js → e5bdfef7c2cc5354be52.js} +1 -1
  143. package/assets/esri/core/workers/chunks/e8cdec961e9cff1cb73b.js +1 -0
  144. package/assets/esri/core/workers/chunks/{446d172834f8675f1202.js → eaf720dfdf6ceca31249.js} +1 -1
  145. package/assets/esri/core/workers/chunks/ef274db3fa260eadf371.js +1 -0
  146. package/assets/esri/core/workers/chunks/efca82a4dc494f57380b.js +1 -0
  147. package/assets/esri/core/workers/chunks/f05990e6fb378e2e1a3b.js +1 -0
  148. package/assets/esri/core/workers/chunks/f0fc89cdf50a40913c02.js +1 -0
  149. package/assets/esri/core/workers/chunks/{8b5dcc4282772bf6b675.js → f11eaab5354cc6aa9569.js} +1 -1
  150. package/assets/esri/core/workers/chunks/f1c2f7c7ce4bd4096eb0.js +1 -0
  151. package/assets/esri/core/workers/chunks/f4e63c5f82b8c2bbfacb.js +1 -0
  152. package/assets/esri/core/workers/chunks/f86ff791a10c802879ec.js +1 -0
  153. package/assets/esri/core/workers/chunks/{7452b5ae971a9ff2e6e9.js → fdffefd7de540272a8a6.js} +1 -1
  154. package/assets/esri/core/workers/chunks/fe0248af95d3f37e099e.js +1 -0
  155. package/chunks/languageUtils.js +1 -1
  156. package/config.js +1 -1
  157. package/core/Accessor.js +1 -1
  158. package/core/Collection.js +1 -1
  159. package/core/LRUCache.js +1 -1
  160. package/core/MapUtils.js +1 -1
  161. package/core/Version.js +1 -1
  162. package/core/asyncUtils.js +1 -1
  163. package/core/fontUtils.js +1 -1
  164. package/core/has.js +1 -1
  165. package/core/sql/SqlInterval.js +1 -1
  166. package/core/sql/WhereClause.js +1 -1
  167. package/core/sql/writeUtils.js +1 -1
  168. package/core/sql.js +1 -1
  169. package/core/urlUtils.js +1 -1
  170. package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
  171. package/editing/sharedTemplates/executor/builders/polygonBoundary.js +1 -1
  172. package/editing/sharedTemplates/executor/builders/support/builderUtils.js +1 -1
  173. package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
  174. package/geometry/Point.js +1 -1
  175. package/geometry/Polygon.js +1 -1
  176. package/geometry/SpatialReference.js +1 -1
  177. package/geometry/support/webMercatorUtils.js +1 -1
  178. package/kernel.js +1 -1
  179. package/layers/FeatureLayer.js +1 -1
  180. package/layers/GeoJSONLayer.d.ts +5 -1
  181. package/layers/GeospatialPDFLayer.js +1 -1
  182. package/layers/KnowledgeGraphLayer.js +1 -1
  183. package/layers/LineOfSightLayer.d.ts +6 -1
  184. package/layers/LinkChartLayer.js +1 -1
  185. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  186. package/layers/SubtypeGroupLayer.js +1 -1
  187. package/layers/TileLayer.js +1 -1
  188. package/layers/VectorTileLayer.d.ts +53 -0
  189. package/layers/VectorTileLayer.js +1 -1
  190. package/layers/VideoLayer.js +1 -1
  191. package/layers/ViewshedLayer.d.ts +6 -1
  192. package/layers/VoxelLayer.js +1 -1
  193. package/layers/effects/jsonUtils.js +1 -1
  194. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
  195. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
  196. package/layers/graphics/data/QueryEngineResult.js +1 -1
  197. package/layers/graphics/data/projectionSupport.js +1 -1
  198. package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
  199. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  200. package/layers/graphics/sources/geojson/geojson.js +1 -1
  201. package/layers/graphics/sources/parquet/FileProvider.js +1 -1
  202. package/layers/graphics/sources/support/QueryTask.js +1 -1
  203. package/layers/graphics/sources/support/uploads.js +1 -1
  204. package/layers/knowledgeGraph/cypherUtils.js +1 -1
  205. package/layers/mixins/refresh.js +1 -1
  206. package/layers/ogc/ogcFeatureUtils.js +1 -1
  207. package/layers/ogc/wfsUtils.js +1 -1
  208. package/layers/parquet.js +1 -1
  209. package/layers/raster/datasets/BaseRaster.js +1 -1
  210. package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
  211. package/layers/raster/datasets/TIFFRaster.js +1 -1
  212. package/layers/raster/datasets/wcsCoverageParser.js +1 -1
  213. package/layers/raster/formats/Lerc.js +1 -1
  214. package/layers/support/ClientSideConnection.js +1 -1
  215. package/layers/support/ElevationSampler.js +1 -1
  216. package/layers/support/MultidimensionalSubset.js +1 -1
  217. package/layers/support/SpriteSource.js +1 -1
  218. package/layers/support/TileInfo.js +1 -1
  219. package/layers/support/fieldUtils.js +1 -1
  220. package/layers/support/infoFor3D.js +1 -1
  221. package/layers/support/vectorTileLayerLoader.js +1 -1
  222. package/layers/support/wmsUtils.js +1 -1
  223. package/layers/support/wmtsUtils.js +1 -1
  224. package/layers/video/videoUtils.js +1 -1
  225. package/libs/lyr3d/Lyr3DModule.js +1 -1
  226. package/linkChart/utils.js +1 -1
  227. package/networks/support/Circuit.js +1 -1
  228. package/networks/support/CircuitSection.js +1 -1
  229. package/package.json +2 -2
  230. package/portal/Portal.js +1 -1
  231. package/portal/PortalItemResource.js +1 -1
  232. package/portal/PortalQueryParams.js +1 -1
  233. package/renderers/HeatmapRenderer.js +1 -1
  234. package/renderers/UniqueValueRenderer.js +1 -1
  235. package/rest/knowledgeGraphService.js +1 -1
  236. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  237. package/rest/query/operations/queryAttachments.js +1 -1
  238. package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
  239. package/symbols/cim/types.d.ts +15 -11
  240. package/symbols/support/previewSymbol3D.js +1 -1
  241. package/tables/support/templateUtils.js +1 -1
  242. package/views/2d/engine/vectorTiles/SourceLayerData.js +1 -1
  243. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  244. package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
  245. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  246. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  247. package/views/2d/engine/vectorTiles/TileParser.js +1 -1
  248. package/views/2d/engine/vectorTiles/VectorTileFeatureIndex.js +1 -1
  249. package/views/2d/engine/vectorTiles/VectorTileSourceData.js +2 -0
  250. package/views/2d/engine/vectorTiles/WorkerTile.js +1 -1
  251. package/views/2d/engine/vectorTiles/WorkerTileHandler.js +1 -1
  252. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  253. package/views/2d/engine/vectorTiles/expression/expression.js +1 -1
  254. package/views/2d/engine/vectorTiles/style/Filter.js +1 -1
  255. package/views/2d/engine/vectorTiles/style/GeoJSONVectorTileSourceWorker.js +1 -1
  256. package/views/2d/engine/vectorTiles/style/StyleProperty.js +1 -1
  257. package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
  258. package/views/2d/engine/webgl/mesh/factories/MeshWriterGroupCoordinator.js +1 -1
  259. package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +4 -4
  260. package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
  261. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  262. package/views/2d/layers/features/Processor.js +1 -1
  263. package/views/2d/layers/features/support/TileStore.js +1 -1
  264. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  265. package/views/2d/tiling/TileKey.js +1 -1
  266. package/views/2d/tiling/TileStrategy.js +1 -1
  267. package/views/3d/analysis/Dimension/LengthDimensionComputation.js +1 -1
  268. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  269. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  270. package/views/3d/analysis/images/generateTextures.js +1 -1
  271. package/views/3d/environment/EnvironmentView.js +1 -1
  272. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  273. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  274. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  275. package/views/3d/layers/I3SMeshView3D.js +1 -1
  276. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  277. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  278. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  279. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  280. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  281. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  282. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  283. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  284. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  285. package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
  286. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  287. package/views/3d/layers/graphics/MeshFastUpdateProcessor.js +1 -1
  288. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  289. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  290. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  291. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  292. package/views/3d/layers/i3s/I3SAsyncElevationUpdater.js +1 -1
  293. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  294. package/views/3d/layers/i3s/I3SQueryEngine.js +1 -1
  295. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  296. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  297. package/views/3d/state/ConstraintsManager.js +1 -1
  298. package/views/3d/state/controllers/GroundNavigationController.js +1 -1
  299. package/views/3d/support/QualityProfile.js +1 -1
  300. package/views/3d/support/TextureCollection.js +1 -1
  301. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  302. package/views/3d/terrain/TerrainRenderer.js +1 -1
  303. package/views/3d/terrain/Tile.js +1 -1
  304. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  305. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  306. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  307. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  308. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechniqueConfiguration.js +1 -1
  309. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  310. package/views/3d/webgl-engine/lib/CutFill.js +1 -1
  311. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  312. package/views/3d/webgl-engine/lib/TextureRepository.js +1 -1
  313. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  314. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  315. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  316. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  317. package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
  318. package/views/3d/webgl-engine/materials/intersectWithPolygonOffset.js +1 -1
  319. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  320. package/views/SceneView.js +1 -1
  321. package/views/SelectionManager.js +1 -1
  322. package/views/analysis/ElevationProfile/ElevationProfileChart.js +2 -2
  323. package/views/analysis/ElevationProfile/elevationProfileChartBoundsUtils.js +1 -1
  324. package/views/draw/DrawAction.js +1 -1
  325. package/views/draw/support/PluginContext.js +1 -1
  326. package/views/interactive/sketch/normalizedPoint.js +1 -1
  327. package/views/interactive/tooltip/fields/TooltipFieldElevation.js +1 -1
  328. package/views/interactive/tooltip/fields/TooltipFieldOrientation.js +1 -1
  329. package/views/interactive/tooltip/fields/TooltipFieldSize.js +1 -1
  330. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
  331. package/widgets/Attachments.js +1 -1
  332. package/widgets/Attribution/AttributionViewModel.js +1 -1
  333. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  334. package/widgets/BasemapLayerList/BasemapLayerListViewModel.js +1 -1
  335. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  336. package/widgets/BatchAttributeForm/ReactiveContingentValuesManager.js +1 -1
  337. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  338. package/widgets/BatchAttributeForm.js +1 -1
  339. package/widgets/Bookmarks/BookmarksViewModel.js +1 -1
  340. package/widgets/BuildingExplorer/BuildingExplorerViewModel.js +1 -1
  341. package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.js +1 -1
  342. package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
  343. package/widgets/CatalogLayerList.js +1 -1
  344. package/widgets/Compass/CompassViewModel.js +1 -1
  345. package/widgets/CoordinateConversion/support/Format.js +1 -1
  346. package/widgets/CoordinateConversion/support/formatUtils.js +1 -1
  347. package/widgets/Daylight/DaylightViewModel.js +1 -1
  348. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
  349. package/widgets/Editor/support/SketchController.js +1 -1
  350. package/widgets/ElevationProfile/ElevationProfileLine.js +1 -1
  351. package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
  352. package/widgets/Expand/ExpandViewModel.js +1 -1
  353. package/widgets/Expand.js +1 -1
  354. package/widgets/Feature/FeatureMedia.js +1 -1
  355. package/widgets/Feature/FeatureViewModel.js +1 -1
  356. package/widgets/Feature.js +1 -1
  357. package/widgets/FeatureForm.js +1 -1
  358. package/widgets/FeatureTemplates.js +1 -1
  359. package/widgets/Features/FeaturesViewModel.js +1 -1
  360. package/widgets/Features.js +1 -1
  361. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  362. package/widgets/Fullscreen/FullscreenViewModel.js +1 -1
  363. package/widgets/Histogram/HistogramViewModel.js +1 -1
  364. package/widgets/Histogram.js +1 -1
  365. package/widgets/HistogramRangeSlider/HistogramRangeSliderViewModel.js +1 -1
  366. package/widgets/Home/HomeViewModel.js +1 -1
  367. package/widgets/LayerList/LayerListViewModel.js +1 -1
  368. package/widgets/Legend/LegendViewModel.js +1 -1
  369. package/widgets/Legend/styles/card/CardView.js +1 -1
  370. package/widgets/Legend/styles/classic/ClassicView.js +1 -1
  371. package/widgets/Locate/LocateViewModel.js +1 -1
  372. package/widgets/Locate.js +1 -1
  373. package/widgets/NavigationToggle/NavigationToggleViewModel.js +1 -1
  374. package/widgets/NavigationToggle.js +1 -1
  375. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  376. package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
  377. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  378. package/widgets/OrientedImageryViewer/support/urlUtils.js +1 -1
  379. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
  380. package/widgets/Search.js +1 -1
  381. package/widgets/ShadowCast/DiscreteOptions.js +1 -1
  382. package/widgets/ShadowCast/DurationOptions.js +1 -1
  383. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  384. package/widgets/ShadowCast/ThresholdOptions.js +1 -1
  385. package/widgets/Sketch.js +1 -1
  386. package/widgets/Slider/SliderViewModel.js +1 -1
  387. package/widgets/Slider.js +1 -1
  388. package/widgets/TableList/TableListViewModel.js +1 -1
  389. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  390. package/widgets/Weather/WeatherViewModel.js +1 -1
  391. package/widgets/Widget.js +1 -1
  392. package/widgets/Zoom/ZoomViewModel.js +1 -1
  393. package/widgets/support/AnalysisViewModelMixin.js +1 -1
  394. package/widgets/support/GridControls.js +1 -1
  395. package/widgets/support/dateUtils.js +1 -1
  396. package/assets/esri/core/workers/chunks/00d43f02119167531d1b.js +0 -1
  397. package/assets/esri/core/workers/chunks/0696fa44a04b99738d7b.js +0 -1
  398. package/assets/esri/core/workers/chunks/091ec4fe83038f3558f4.js +0 -1
  399. package/assets/esri/core/workers/chunks/098ac10877d92fde1006.js +0 -1
  400. package/assets/esri/core/workers/chunks/0a29d87b6e58a3c6df8f.js +0 -1
  401. package/assets/esri/core/workers/chunks/0d04353843ccb7440342.js +0 -1
  402. package/assets/esri/core/workers/chunks/0d87cb6417672de95d53.js +0 -1
  403. package/assets/esri/core/workers/chunks/1132e28aaa5825b10b6e.js +0 -1
  404. package/assets/esri/core/workers/chunks/1380cec385426673f294.js +0 -1
  405. package/assets/esri/core/workers/chunks/1b24a40c0fa197014873.js +0 -1
  406. package/assets/esri/core/workers/chunks/1c7096eb48a3a7f27d4f.js +0 -1
  407. package/assets/esri/core/workers/chunks/1cc03067f8405285057c.js +0 -1
  408. package/assets/esri/core/workers/chunks/1f76f6dcdae9f55389cb.js +0 -1
  409. package/assets/esri/core/workers/chunks/21e1d423ee33f916547e.js +0 -1
  410. package/assets/esri/core/workers/chunks/247617c0dbae2386ab3b.js +0 -1
  411. package/assets/esri/core/workers/chunks/25657f70c5f04a4ed978.js +0 -1
  412. package/assets/esri/core/workers/chunks/2690d5fcd9d5ca92ebf6.js +0 -1
  413. package/assets/esri/core/workers/chunks/2853606099602f73d379.js +0 -1
  414. package/assets/esri/core/workers/chunks/28ed020d9995b6577be5.js +0 -1
  415. package/assets/esri/core/workers/chunks/2b27d3bc492e000bbe58.js +0 -1
  416. package/assets/esri/core/workers/chunks/2d64a13c2303e9cae613.js +0 -1
  417. package/assets/esri/core/workers/chunks/36e5f070009b29b7ac3d.js +0 -1
  418. package/assets/esri/core/workers/chunks/3b5e9e0b180dc10491ec.js +0 -1
  419. package/assets/esri/core/workers/chunks/46edd6c9ed6701e6b975.js +0 -1
  420. package/assets/esri/core/workers/chunks/4e17665dd9048c300d87.js +0 -1
  421. package/assets/esri/core/workers/chunks/4e4f747de424941a0bfa.js +0 -1
  422. package/assets/esri/core/workers/chunks/4e8e322b469657ac22e2.js +0 -1
  423. package/assets/esri/core/workers/chunks/5396b6e99a0546a25d19.js +0 -1
  424. package/assets/esri/core/workers/chunks/553a8bf5bc5c56d1bcaf.js +0 -1
  425. package/assets/esri/core/workers/chunks/55c0c074e4afe05f5d4d.js +0 -1
  426. package/assets/esri/core/workers/chunks/5bfb962ca192f90a2724.js +0 -1
  427. package/assets/esri/core/workers/chunks/60c8eedd06080edab3e3.js +0 -1
  428. package/assets/esri/core/workers/chunks/61d36730564c5ac5edab.js +0 -1
  429. package/assets/esri/core/workers/chunks/6588725275c75fae0d9c.js +0 -1
  430. package/assets/esri/core/workers/chunks/661c6324529dd17b297e.js +0 -1
  431. package/assets/esri/core/workers/chunks/6699fac01ccd842851ba.js +0 -1
  432. package/assets/esri/core/workers/chunks/672a5390182b20d632be.js +0 -1
  433. package/assets/esri/core/workers/chunks/67caef2ecf0dc5f2eed3.js +0 -1
  434. package/assets/esri/core/workers/chunks/68dd1fd2025c7125ead1.js +0 -1
  435. package/assets/esri/core/workers/chunks/68fd7b314377d27aaa54.js +0 -1
  436. package/assets/esri/core/workers/chunks/69627b2634da64dd885f.js +0 -1
  437. package/assets/esri/core/workers/chunks/6f2e7e663229b223b4df.js +0 -1
  438. package/assets/esri/core/workers/chunks/7390af96250e89194332.js +0 -1
  439. package/assets/esri/core/workers/chunks/7b45ac83e279fe9516a5.js +0 -1
  440. package/assets/esri/core/workers/chunks/7e0ed6e8f7b77e43f628.js +0 -1
  441. package/assets/esri/core/workers/chunks/832c887fdc5af4c08cf2.js +0 -1
  442. package/assets/esri/core/workers/chunks/84fb27e3425515cd0e3f.js +0 -1
  443. package/assets/esri/core/workers/chunks/8502274806ea52308822.js +0 -1
  444. package/assets/esri/core/workers/chunks/867502158997cb2d6406.js +0 -1
  445. package/assets/esri/core/workers/chunks/8ceb6697e8adbeffe019.js +0 -1
  446. package/assets/esri/core/workers/chunks/8e391b5b82429f39791e.js +0 -1
  447. package/assets/esri/core/workers/chunks/8e6276ddd8d094c61f08.js +0 -1
  448. package/assets/esri/core/workers/chunks/8fe22c2370219f25c15b.js +0 -1
  449. package/assets/esri/core/workers/chunks/90d797ab82d4a68ba32f.js +0 -1
  450. package/assets/esri/core/workers/chunks/91586bf29492735e692d.js +0 -1
  451. package/assets/esri/core/workers/chunks/96f87c8efd4b11b37686.js +0 -1
  452. package/assets/esri/core/workers/chunks/9826baa3c15ea2062669.js +0 -1
  453. package/assets/esri/core/workers/chunks/9c3de54513bf8619271c.js +0 -1
  454. package/assets/esri/core/workers/chunks/a125650edbed802e419a.js +0 -1
  455. package/assets/esri/core/workers/chunks/a18c3cbe505a19d29569.js +0 -1
  456. package/assets/esri/core/workers/chunks/a422a801e55fa125546e.js +0 -1
  457. package/assets/esri/core/workers/chunks/a5f17e9a025ac2b6e1bf.js +0 -1
  458. package/assets/esri/core/workers/chunks/a6e846361bf5dd3a11c7.js +0 -1
  459. package/assets/esri/core/workers/chunks/a91dc05a6a609d04ed04.js +0 -1
  460. package/assets/esri/core/workers/chunks/a99c50b4e1c7568210e1.js +0 -1
  461. package/assets/esri/core/workers/chunks/ab48faea5432e2dbd45c.js +0 -1
  462. package/assets/esri/core/workers/chunks/ac107079342251a984dd.js +0 -1
  463. package/assets/esri/core/workers/chunks/acf4737ba509cbd73cce.js +0 -1
  464. package/assets/esri/core/workers/chunks/b7205620ca248f4efc88.js +0 -1
  465. package/assets/esri/core/workers/chunks/bbddeb1c893ff8bbae5d.js +0 -1
  466. package/assets/esri/core/workers/chunks/bc2e2bdf1194e6e9eb5e.js +0 -1
  467. package/assets/esri/core/workers/chunks/c0eb27263f608dc3684b.js +0 -1
  468. package/assets/esri/core/workers/chunks/c3ba1a3247e14f6b7b3a.js +0 -1
  469. package/assets/esri/core/workers/chunks/c5d0a034ff31d5954571.js +0 -1
  470. package/assets/esri/core/workers/chunks/c8057b47c7c6c02a0bda.js +0 -1
  471. package/assets/esri/core/workers/chunks/ca21786e519c914fc9e1.js +0 -1
  472. package/assets/esri/core/workers/chunks/cd46d9b4a8de644e7332.js +0 -1
  473. package/assets/esri/core/workers/chunks/d4c8673ca65df874a7ce.js +0 -1
  474. package/assets/esri/core/workers/chunks/da1e6962ba0c85c37953.js +0 -1
  475. package/assets/esri/core/workers/chunks/dcdf837a452dc0cac582.js +0 -1
  476. package/assets/esri/core/workers/chunks/e0864ca82ffa3c9a0776.js +0 -1
  477. package/assets/esri/core/workers/chunks/e69cd62f824ce7a22fa0.js +0 -1
  478. package/assets/esri/core/workers/chunks/e9457a67befc61e11095.js +0 -1
  479. package/assets/esri/core/workers/chunks/f190a3124d6d03417d73.js +0 -1
  480. package/assets/esri/core/workers/chunks/f4135779bfdaf349352a.js +0 -1
  481. package/assets/esri/core/workers/chunks/f6bd7b52745b82ba73dc.js +0 -1
  482. package/assets/esri/core/workers/chunks/fbe3a3b9d6c8c0b52f65.js +0 -1
  483. package/assets/esri/core/workers/chunks/fc77eb7683e708774168.js +0 -1
  484. package/assets/esri/core/workers/chunks/fe7184993ef5713d13fb.js +0 -1
  485. package/assets/esri/core/workers/chunks/fecaf0bc28aeea4d15db.js +0 -1
  486. package/views/2d/engine/vectorTiles/style/VectorTilePbfWriter.js +0 -2
  487. package/views/2d/engine/vectorTiles/style/encodeVectorTileFeatures.js +0 -2
  488. package/views/2d/layers/features/support/FeatureSetReaderVectorTileFeatureCursor.js +0 -2
  489. /package/views/2d/engine/vectorTiles/{Feature.js → PbfFeature.js} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5005],{54639(e,t,r){r.d(t,{R:()=>i,b:()=>n});class i{static{this._nextId=0}constructor(e,t,r,i,s){this.type=e,this.spatialReference=t,this.hasZ=r,this.hasM=i,this._geometry=s,this.arcadeDeclaredClass="esri.arcade.Geometry",this._json=null,this._gx=null,this._accessor=null,this._id=null}static of(e,t,r,s,n){return new i(e,t,r,s,n)}clone(e=!0){let t=new i(this.type,e?this.spatialReference:this.spatialReference.clone(),this.hasZ,this.hasM,this._geometry);return t._json=this._json,t._gx=this._gx,t._accessor=e?this._accessor:null,t}get id(){return this._id??=i._nextId++}set id(e){this._id??=e}asJsonGeometry(){return this._json??=this._geometry.toJsonGeometry(),this._json}asGxGeometry(e){return this._gx??=this._geometry.toGxGeometry(e),this._gx}asAccessorGeometry(){return this._accessor??=this._geometry.toAccessorGeometry(this.spatialReference),this._accessor}asJsonLikeGeometry(){return null==this._json?null==this._accessor?this.asJsonGeometry():this._accessor:this._json}castAsJson(){switch(this.type){case"point":{let{x:e,y:t,z:r,m:i}=this.asJsonLikeGeometry(),s={x:e,y:t,spatialReference:this.spatialReference.toJSON()};return this.hasZ&&(s.z=r??0),this.hasM&&(s.m=i??NaN),s}case"multipoint":{let{points:e}=this.asJsonLikeGeometry(),t={points:e,spatialReference:this.spatialReference.toJSON()};return this.hasZ&&(t.hasZ=!0),this.hasM&&(t.hasM=!0),t}case"polyline":{let{paths:e=[],curvePaths:t}=this.asJsonLikeGeometry(),r={paths:e,spatialReference:this.spatialReference.toJSON()};return null!=t&&(r.curvePaths=t),this.hasZ&&(r.hasZ=!0),this.hasM&&(r.hasM=!0),r}case"polygon":{let{rings:e=[],curveRings:t}=this.asJsonLikeGeometry(),r={rings:e,spatialReference:this.spatialReference.toJSON()};return null!=t&&(r.curveRings=t),this.hasZ&&(r.hasZ=!0),this.hasM&&(r.hasM=!0),r}case"extent":{let{xmin:e,ymin:t,xmax:r,ymax:i,zmin:s,zmax:n,mmin:a,mmax:o}=this.asJsonLikeGeometry(),h={xmin:e,ymin:t,xmax:r,ymax:i,spatialReference:this.spatialReference.toJSON()};return this.hasZ&&(h.zmin=s??0,h.zmax=n??0),this.hasM&&(h.mmin=a??NaN,h.mmax=o??NaN),h}default:throw this.type,Error(`Unsupported geometry type: ${this.type}`)}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}}const s="_arcadeGxJson";function n(e){let t=e.cache[s];if(null!=t)return t;let r=e.toJSON();return null!=e.wkt2&&(r.wkt2=e.wkt2),(r.latestVcsWkid||r.vcsWkid)&&(delete r.latestVcsWkid,delete r.vcsWkid),e.cache[s]=r}},69540(e,t,r){var i=r(32198),s=r(56372),n=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),h=r(64108);const l=Symbol("ClonableMixin"),u=e=>{var t;let r=e,s=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=l}clone(e){let t=(0,o.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,i=t.store,s={},h=new Map;for(let t in r){let a=r[t],o=i?.originOf(t),l=a.clonable;if(a.readOnly||!1===l||7!==o&&0!==o&&5!==o&&4!==o)continue;let u=this[t],d=null;if("function"==typeof l)d=l(u,e);else if("reference"===l)d=u;else if(d=(0,n.TU)(u,e),null!=u&&null==d)continue;0===o?h.set(t,d):s[t]=d}let l=new(0,Object.getPrototypeOf(this).constructor)(s);if(h.size){let e=(0,o.oY)(l)?.store;if(e)for(let[t,r]of h)e.set(t,r,0)}return l}};return s=(0,i.Cg)([(0,h.$)("esri.core.Clonable")],s),s},d=u(s.A);r.d(t,["OU",0,u,"Pw",0,d])},9775(e,t,r){r.d(t,{A:()=>n});var i=r(62788),s=r(95488);class n{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new s.I,this._items=new Set}get length(){return(0,i.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,i.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;let e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;let e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){let t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,i.gc)(this._observable),yield*this._items}}},48163(e,t,r){function i(){return[0,0]}function s(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function a(){return n(1,1)}function o(){return n(-1,-1)}function h(){return n(1,0)}function l(){return n(0,1)}r.d(t,{fA:()=>n,o8:()=>s,vt:()=>i});const u=a(),d=o(),c=h(),f=l();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:d,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:s,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t},fromValues:n,negativeOnes:o,ones:a,unitX:h,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,d,"Un",0,u])},87992(e,t,r){r.d(t,{JR:()=>S,ME:()=>I,MY:()=>F,NO:()=>v,Nh:()=>b,V2:()=>N,_s:()=>O,e6:()=>Z,gh:()=>M,jm:()=>T,tr:()=>Y,uX:()=>p});var i=r(32198),s=(r(69397),r(16930)),n=r(19419),a=r(60408),o=r(21325),h=r(513),l=r(50954),u=r(79567),d=r(52006),c=r(49663),f=r(46068),m=r(92722);class p{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:i,vertexZ:s,vertexM:n,partCount:a,partOffsets:o,partFlags:h,segmentFlags:l,segmentIndices:u,segmentParams:d,segmentCountArc:c,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=i,this.vertexZ=s,this.vertexM=n,this.partCount=a,this.partOffsets=o,this.partFlags=h,this.segmentFlags=l,this.segmentIndices=u,this.segmentParams=d,this.segmentCountArc=c,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:i,hasM:s,segmentCountArc:n,segmentCountBezier:a}=this,o=N(e,t,r,i,s,this.hasCurves(),n,a);o.spatialReference=this.spatialReference;let{vertexXY:h,vertexZ:l,vertexM:u}=this;if(o.vertexXY.set(h.subarray(0,2*t),0),o.vertexZ?.set(l.subarray(0,t),0),o.vertexM?.set(u.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:i,segmentParamCount:s}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(i.subarray(0,s),0)}return o}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,o.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new g(this):[][Symbol.iterator]()}}class g{constructor(e){this.geometry=e,this.value=new _(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class _{constructor(e){this.geometry=e,this.index=-1,this._readVertex=w(e),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class y{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new x(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class x{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],i=t[r++],s=t[r++],n=t[r++];return{b:[this.end,[e,i],[s,n]]}}let i=t[r++],s=t[r++],n=t[r++],a=t[r++],o=t[r++],h=t[r++];r++,r++;let l=t[r++],u=t[r++];if(!(4&i)&&1===n)return{c:[this.end,[l,u]]};let d=2&i?0:1,c=1&i?0:1;return{a:[this.end,[o,h],d,c,a,s,n]}}}function v(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,n.Ie)(),(0,i.mS)(r,new P(e,["vertexZ","vertexM","spatialReference"]),!1),(0,n.bx)(t,function(e){let t,{vertexCount:r,vertexXY:s,vertexZ:a,vertexM:o}=e,h=C(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(r,new P(e,["vertexZ","vertexM"]),!1);let s=(0,n.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,u.e)(s,e,r),e=(0,d.yP)(r)}let[a,o,l,c]=s;t={xmin:a,ymin:o,xmax:l,ymax:c,spatialReference:h}}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}else{let e,i,n,a;e=i=1/0,n=a=-1/0;for(let t=0;t<r;++t){let r=s[2*t],o=s[2*t+1];e=Math.min(e,r),n=Math.max(n,r),i=Math.min(i,o),a=Math.max(a,o)}t={xmin:e,ymin:i,xmax:n,ymax:a,spatialReference:h}}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}function I(e){let t,r,i;if((0,a.fT)(e)){i="point";let{x:s,y:n,z:a,m:o}=e,h=[s,n];null!=a&&h.push(a),null!=o&&h.push(o),r=[[h]],t=1}else(0,a.U9)(e)?(i="multipoint",r=[e.points],t=e.points.length):(0,a.Rg)(e)?(i="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(i="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,A(t[0],(0,d.yP)(t.at(-1)))&&--e),e),0));let s=N(i,t,i.includes("point")?0:r.length,(0,a.Pv)(e),(0,a.W0)(e),(0,d.Ed)(e)),{hasZ:n,hasM:o,vertexXY:h,vertexZ:l,vertexM:u}=s;function c(e){h[2*m]=e[0],h[2*m+1]=e[1],n&&(l[m]=e[2]),o&&(u[m]=e[f]),++m}s.spatialReference=e.spatialReference??void 0;let f=s.hasZ?3:2,m=0;if(!s.isMultipart()){if(!n&&!o){for(let[e,t]of r[0])h[2*m]=e,h[2*m+1]=t,++m;return s}for(let e of r[0])c(e);return s}let p="polygon"===i,{partOffsets:g}=s,_=0;if(!(0,d.Ed)(e)){for(let e of r){if(g[_++]=m,0===e.length)continue;let t=e.length;if(p&&A(e[0],e.at(-1))&&--t,n||o)for(let r=0;r<t;++r)c(e[r]);else for(let r=0;r<t;++r){let[t,i]=e[r];h[2*m]=t,h[2*m+1]=i,++m}}return g[_]=m,s}function y(e){let t=x+e;if(t<=(s.segmentParams?.length??0))return;let r=t*B;r=20*Math.ceil(r/20);let i=s.segmentParams;s.segmentParams=new Float64Array(r),null!=i&&s.segmentParams.set(i)}let x=0;for(let e of r){if(s.partOffsets[_++]=m,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let i=e[t];c(r);let n=m-1;(0,d.wY)(i)?(y(10),++s.segmentCountArc,x=O(r,i,s,n,x),r=i.a[0]):(0,d.DA)(i)?(y(10),++s.segmentCountArc,x=R(r,i,s,n,x),r=i.a[0]):(0,d.aO)(i)?(y(10),++s.segmentCountArc,x=Z(r,i,s,n,x),r=i.c[0]):(0,d.n1)(i)?(y(4),++s.segmentCountBezier,x=Y(0,i,s,n,x),r=i.b[0]):r=i}p&&A(t,r)||c(r)}return s.partOffsets[_]=m,s}function M(e){let t=w(e),{vertexCount:r,partCount:i,hasZ:s,hasM:n}=e,a=C(e),o=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:a}}let i=[];for(;o<r;)i.push(t(o++));return{points:i,spatialReference:a,hasZ:s,hasM:n}}if(!e.hasCurves()){let r=[];for(let s=0;s<i;++s){let i=!!(1&e.partFlags[s]),n=e.partOffsets[s+1],a=[];for(;o<n;)a.push(t(o++));i&&a.length>0&&a.push([...a[0]]),r.push(a)}return"polygon"===e.type?{rings:r,hasZ:s,hasM:n,spatialReference:a}:{paths:r,hasZ:s,hasM:n,spatialReference:a}}let h=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);h.push(e)}return"polygon"===e.type?{rings:[],curveRings:h,hasZ:s,hasM:n,spatialReference:a}:{paths:[],curvePaths:h,hasZ:s,hasM:n,spatialReference:a}}function b(e,{lengths:t,coords:r,hasZ:i,hasM:s},n){let a=e.includes("point")?0:t.length,o="polygon"===e,h="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?a:0);i??=!1,s??=!1;let l=N(e,h,a,i,s,!1,0,0);if(l.spatialReference=n??void 0,!l.isMultipart()){for(let e=0,t=0;e<h;++e)l.vertexXY[2*e]=r[t++],l.vertexXY[2*e+1]=r[t++],i&&(l.vertexZ[e]=r[t++]),s&&(l.vertexM[e]=r[t++]);return l}let u=2+Number(i)+Number(s),d=0,c=0;l.partOffsets[0]=0;for(let e of t){let t=l.partOffsets[c],n=t+e-Number(o);l.partOffsets[++c]=n;for(let e=t;e<n;++e)l.vertexXY[2*e]=r[d++],l.vertexXY[2*e+1]=r[d++],i&&(l.vertexZ[e]=r[d++]),s&&(l.vertexM[e]=r[d++]);o&&(d+=u)}return l}function S({type:e,vertexCount:t,vertexXY:r,vertexZ:i,vertexM:s,partCount:n,partOffsets:a,partFlags:o,hasZ:h,hasM:l}){let u=new m.A([],[],h,l);n=Math.max(n,1);let d=0;for(let e=0;e<n;++e){let n=a?.[e+1]??t,c=u.coords.length;for(let e=d;e<n;++e)u.coords.push(r[2*e],r[2*e+1]),h&&u.coords.push(i[e]),l&&u.coords.push(s[e]);if(o&&1&o[e]){let e=d;u.coords.push(r[2*e],r[2*e+1]),h&&u.coords.push(i[e]),l&&u.coords.push(s[e])}u.lengths.push((u.coords.length-c)/u.stride),d=n}return"point"===e&&(u.lengths.length=0),u}function T(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function F(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let i=e.getLatestID();(i<=0||i===r)&&(i=void 0);let s=e.getVCS();if(null==s)return{wkid:r,latestWkid:i,wkt:t};let n=s.isCustomWkid()?0:s.getOldID();if(n<=0)return{wkt:t};let a=e.getLatestVerticalID();return(a<=0||a===n)&&(a=void 0),{wkid:r,wkt:t,latestWkid:i,vcsWkid:n,latestVcsWkid:a}}(e.getSpatialReference()),e=e.getGeometry()),new p({...e.toFlatGeometry(),spatialReference:t})}class P{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function C({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function w({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?i=>[e[2*i],e[2*i+1],t[i],r[i]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function A(e,t){return e.every((e,r)=>e===t[r])}function N(e,t,r,i,s,n,a,o){a??=0,o??=0;let h=new p({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o}),l=2*Float64Array.BYTES_PER_ELEMENT*t;i&&(l+=Float64Array.BYTES_PER_ELEMENT*t),s&&(l+=Float64Array.BYTES_PER_ELEMENT*t),h.isMultipart()&&(l+=(r+1)*Int32Array.BYTES_PER_ELEMENT,l+=(r+1)*Int8Array.BYTES_PER_ELEMENT),n&&(l+=t*Int8Array.BYTES_PER_ELEMENT,l+=t*Int32Array.BYTES_PER_ELEMENT,l+=h.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let u=new ArrayBuffer(l),d=0;return h.vertexXY=new Float64Array(u,d,2*t),d+=h.vertexXY.byteLength,i&&(h.vertexZ=new Float64Array(u,d,t),d+=h.vertexZ.byteLength),s&&(h.vertexM=new Float64Array(u,d,t),d+=h.vertexM.byteLength),n&&(h.segmentParams=new Float64Array(u,d,h.segmentParamCount),d+=h.segmentParams.byteLength,h.segmentIndices=new Int32Array(u,d,t),h.segmentIndices.fill(G),d+=h.segmentIndices.byteLength),h.isMultipart()&&(h.partOffsets=new Int32Array(u,d,r+1),d+=h.partOffsets.byteLength,h.partFlags=new Int8Array(u,d,r+1),d+=h.partFlags.byteLength,"polygon"===h.type&&h.partFlags.subarray(0,r).fill(1)),n&&(h.segmentFlags=new Int8Array(u,d,t),h.segmentFlags.fill(1),d+=h.segmentFlags.byteLength),h}function O(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:s},n,a){r[n]=4,i[n]=a;let[o,[h,l],u,d,c,m,p]=t.a,g=4;d||(g|=1),u||(g|=2);let _=(0,f.SW)(e,t),[y,x]=(0,f.Uk)(_,.5);return s[a++]=g,s[a++]=m,s[a++]=p,s[a++]=c,s[a++]=h,s[a++]=l,s[a++]=_.u2-_.u1,s[a++]=_.u1,s[a++]=y,s[a++]=x,a}function R(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:s},n,a){r[n]=4,i[n]=a;let o=(0,c.io)(e,t);return z(o,4,...(0,h.mq)(o,.5),s,a)}function Z(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:s},n,a){return r[n]=4,i[n]=a,z((0,l.pM)(e,t),0,...t.c[1],s,a)}function z(e,t,r,i,s,n){let{cx:a,cy:o,thetaStart:h,thetaEnd:l,radius:u}=e;return h>l||(t|=1),Math.abs(l-h)<=Math.PI||(t|=2),s[n++]=t,s[n++]=u,s[n++]=1,s[n++]=0,s[n++]=a,s[n++]=o,s[n++]=l-h,s[n++]=h,s[n++]=r,s[n++]=i,n}function Y(e,{b:[t,[r,i],[s,n]]},{segmentFlags:a,segmentIndices:o,segmentParams:h},l,u){return a[l]=2,o[l]=u,h[u++]=r,h[u++]=i,h[u++]=s,h[u++]=n,u}const B=1.61803,G=-1},36745(e,t,r){r.d(t,{z:()=>o});var i=r(4718),s=r(51118),n=r(60408),a=r(92722);class o{static fromOptimized(e,t,r=1){return(new h).initialize(e,t,r)}static fromJSON(e){let[t,r]=u(e),i=(0,n.Pv)(e),s=(0,n.W0)(e);return(new d).initialize(t,r,i,s,1)}static fromOptimizedCIM(e,t,r=1){return(new c).initialize(e,t,r)}static fromJSONCIM(e,t=1){let[r,i]=u(e),s=(0,n.Pv)(e),a=(0,n.W0)(e);return(new f).initialize(r,i,s,a,t)}static fromFeatureSetReader(e){let t=e.readGeometryForDisplay(),r=e.geometryType;return t&&r?this.fromOptimized(t,r):null}static fromFeatureSetReaderCIM(e){let t=e.readGeometryForDisplay(),r=e.geometryType;return t&&r?this.fromOptimizedCIM(t,r):null}static createEmptyOptimized(e,t=!1,r=!1,i=1){return(new c).initialize(new a.A([],[],t,r),e,i)}static createEmptyJSON(e,t=!1,r=!1){return(new d).initialize([],e,t,r,1)}static createEmptyOptimizedCIM(e,t=!1,r=!1,i=1){return(new c).initialize(new a.A([],[],t,r),e,i)}static createEmptyJSONCIM(e,t=!1,r=!1,i=1){return(new f).initialize([],e,t,r,i)}asJSON(){let e=(0,s.x)(this),{hasZ:t,hasM:r}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:e[0][0][0],ymin:e[0][0][1],xmax:e[0][2][0],ymax:e[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:e.flat(),hasZ:t,hasM:r}:"esriGeometryPoint"===this.geometryType?{x:e[0][0][0],y:e[0][0][1],z:t?e[0][0][2]:void 0,m:r?e[0][0][t?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:e,hasZ:t,hasM:r}:{paths:e,hasZ:t,hasM:r}}getCurrentRingArea(){if(this.pathSize<3)return 0;let e,t,r=0;if(this.seekPathStart(),!this.nextPoint())return 0;e=this.x,t=this.y;let i=e,s=t;for(;this.nextPoint();)r+=(e-this.x)*(t+this.y),e=this.x,t=this.y;return r+=(e-i)*(t+s),-.5*r}invertY(){this.yFactor*=-1}}class h extends o{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(e,t,r){return this.geometryType=t,this._stride=e.stride,this._geometry=e,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=r,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(e){if(e>=0&&e<this.totalSize){if(this._pathIndex<e)for(;this._pathIndex<e&&this.nextPath(););else if(this._pathIndex>e)for(;this._pathIndex>e&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(e){let t=this._pathOffset+e*this._stride;return t>=0&&t<this._end&&(this._pointOffset=t,!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(){let e=this._end,t=this._geometry.coords,r=this._pathOffset;return(new h).initialize(new a.A([this.pathSize],t.slice(r,e),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){let e=this._end,t=this._stride,r=this._geometry.coords,i=0;for(let s=this._pathOffset+t;s<e;s+=t){let e=r[s-t],n=r[s-t+1],a=r[s]-e,o=r[s+1]-n;i+=Math.sqrt(a*a+o*o)}return i}startPath(){this._geometry.lengths.push(0)}pushPath(e){this.startPath(),this.pushPoints(e)}pushPoint(e){for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]++}pushXY(e,t){this._geometry.coords.push(e,t),this._geometry.lengths[this.totalSize-1]++}pushPoints(e){for(let t of e)for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]+=e.length}pushCursor(e){let t=e.asOptimized();this._geometry.coords.push(...t.coords),this._geometry.lengths.push(...t.lengths)}asOptimized(){let e=this._geometry.clone();if(1!==this.yFactor)for(let t=1;t<e.coords.length;t+=this._stride)e.coords[t]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(e.lengths.length=0),e}isClosed(){let e=this._geometry.coords,t=this._pathOffset,r=this._end-this._stride;for(let i=0;i<this._stride;i++)if(e[t+i]!==e[r+i])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((e,t)=>e+t)}get pathSize(){let{lengths:e}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>e.length-1?0:e[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(e){this._geometry.coords[this._pointOffset]=e}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(e){this._geometry.coords[this._pointOffset+1]=this.yFactor*e}get z(){return this._geometry.coords[this._pointOffset+2]}set z(e){this._geometry.coords[this._pointOffset+2]=e}get m(){let e=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+e]}set m(e){this._geometry.coords[this._pointOffset+3]=e}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(e){let t=[e.x,e.y];return e.z&&t.push(e.z),e.m&&t.push(e.m),t}function u(e){return(0,n.Bi)(e)?[e.rings,"esriGeometryPolygon"]:(0,n.Rg)(e)?[e.paths,"esriGeometryPolyline"]:(0,n.U9)(e)?[[e.points],"esriGeometryMultipoint"]:(0,n.ZC)(e)?[[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]],"esriGeometryEnvelope"]:(0,n.fT)(e)?[[[l(e)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class d extends o{initialize(e,t,r,i,s){return this._paths=e,this.geometryType=t,this.hasZ=r,this.hasM=i,this._pathIndex=this._pointIndex=-1,this.yFactor=s,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(e){return this._pathIndex=e,this._pointIndex=-1,e>=0&&e<this.totalSize&&(this._currentPath=this._paths[e],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(e){return e>=0&&e<this._currentPath.length&&(this._pointIndex=e,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(){let e=this._currentPath.length,t=this._currentPath,r=0;for(let i=1;i<e;i++){let e=t[i-1],s=t[i],n=e[0],a=e[1],o=s[0]-n,h=s[1]-a;r+=Math.sqrt(o*o+h*h)}return r}startPath(){this._paths.push([])}getCurrentPath(){return(new d).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(e){this._paths.push(e)}pushPoint(e){this._paths[this.totalSize-1].push(e)}pushXY(e,t){this._paths[this.totalSize-1].push([e,t])}pushPoints(e){this._paths[this.totalSize-1].push(...e)}pushCursor(e){let t=(0,s.x)(e);for(let e of t)this.pushPath(e)}asOptimized(){let{hasZ:e,hasM:t}=this,r=new a.A([],[],e,t),{coords:i,lengths:s}=r;if("esriGeometryPoint"===this.geometryType)i.push(...this._paths[0][0]),s.length=0;else for(let r of this._paths){for(let s of r)i.push(s[0]),i.push(s[1]*this.yFactor),e&&i.push(s[2]),t&&i.push(s[this._mIndex]);s.push(r.length)}return r}isClosed(){let e=this._currentPath[0],t=this._currentPath[this._currentPath.length-1];for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}clone(){return(new d).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(e=>e.length).reduce((e,t)=>e+t)}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(e){this._currentPoint[0]=e}get y(){return this.yFactor*this._currentPoint[1]}set y(e){this._currentPoint[1]=this.yFactor*e}get z(){return this._currentPoint[2]}set z(e){this._currentPoint[2]=e}get m(){return this._currentPoint[this._mIndex]}set m(e){this._currentPoint[this._mIndex]=e}get pathIndex(){return this._pathIndex}}class c extends h{initialize(e,t,r){return super.initialize(e,t,r),this._controlPoints||=this._controlPoints=Array(this.totalSize).fill(void 0).map(e=>new Set),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){let e=(new c).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return e._controlPoints=this._controlPoints,e}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(e){this._controlPoints[this.pathIndex].add(e)}getControlPointAt(e){return this._controlPoints[this.pathIndex].has(e)}}class f extends d{initialize(e,t,r,i,s){return super.initialize(e,t,r,i,s)}clone(){return(new f).initialize((0,i.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(e){this._paths[this.pathIndex][e][4]=1}getControlPointAt(e){return 1===this._paths[this.pathIndex][e][4]}}},48526(e,t,r){r.d(t,{A:()=>g});var i,s=r(32198),n=r(4576),a=r(4718),o=r(91429),h=r(5443),l=r(91075),u=r(86738),d=r(16930),c=r(90634),f=r(47610),m=r(56993),p=r(43937);let g=i=class extends l.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:i,spatialReference:s}=e;switch(t??=[],t?.at(0)?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return s??=d.A.WGS84,{...e,hasM:r,hasZ:i,points:t,spatialReference:s}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,c.ge)(this);return e?new h.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,a.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:s}=this;return new i({points:(0,a.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:s})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,n.aI)(this.points,e.points,f.v6)}addPoint(e){return(0,m.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},i=2;return this.hasZ&&(r.z=t[2],i=3),this.hasM&&(r.m=t[i]),new u.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let[t,r,i,s]=this.points.splice(e,1)[0],n=new u.A({x:t,y:r,z:i,m:s,spatialReference:this.spatialReference});return this.notifyChange("points"),n}setPoint(e,t){return this._validateInputs(e)&&((0,m.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,s.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,s.Cg)([(0,p.K)("points")],g.prototype,"writePoints",null),g=i=(0,s.Cg)([(0,o.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>m});var i,s=r(32198),n=r(4718),a=r(91429),o=r(5443),h=r(91075),l=r(86738),u=r(16930),d=r(90634),c=r(56993),f=r(43937);let m=i=class extends h.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:i,spatialReference:s}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return s??=u.A.WGS84,{...e,hasM:r,hasZ:i,paths:t,spatialReference:s}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,n.o8)(e)}get extent(){let e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,n.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let i=[];for(let t=0,r=e.length;t<r;t++)i[t]=e[t].toArray();t[r]=i}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new i;return e.spatialReference=this.spatialReference,e.paths=(0,n.o8)(this.paths),e.curvePaths=(0,n.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],i=this.hasZ,s=this.hasM;return i&&!s?new l.A({x:r[0],y:r[1],z:r[2],spatialReference:this.spatialReference}):s&&!i?new l.A({x:r[0],y:r[1],m:r[2],spatialReference:this.spatialReference}):i&&s?new l.A({x:r[0],y:r[1],z:r[2],m:r[3],spatialReference:this.spatialReference}):new l.A({x:r[0],y:r[1],spatialReference:this.spatialReference})}insertPoint(e,t,r){return this._validateInputs(e,t,!0)&&((0,c.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,i=t.map(e=>new l.A({x:e[0],y:e[1],z:e[2],m:e[3],spatialReference:r}));return this.notifyChange("paths"),i}removePoint(e,t){if(!this._validateInputs(e,t))return null;let[r,i,s,n]=this.paths[e].splice(t,1)[0],a=new l.A({x:r,y:i,z:s,m:n,spatialReference:this.spatialReference});return this.notifyChange("paths"),a}setPoint(e,t,r){return this._validateInputs(e,t)&&((0,c.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths")),this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let i=this.paths[e];if(r&&(t<0||t>i.length)||!r&&(t<0||t>=i.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,s.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,s.Cg)([(0,f.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,s.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,s.Cg)([(0,f.K)("paths")],m.prototype,"writePaths",null),m=i=(0,s.Cg)([(0,a.$K)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,r){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function n(e){return void 0!==e.x&&void 0!==e.y}function a(e){return void 0!==e.paths||void 0!==e.curvePaths}function o(e){return void 0!==e.rings||void 0!==e.curveRings}function h(e){return"object"==typeof e&&"vertexAttributes"in e}function l(e){return e?n(e)?"esriGeometryPoint":a(e)?"esriGeometryPolyline":o(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>l,Bi:()=>o,Pv:()=>u,Rg:()=>a,U9:()=>s,W0:()=>d,ZC:()=>i,fT:()=>n,uW:()=>h})},65864(e,t,r){r.d(t,{rS:()=>u,xD:()=>c});var i=r(5443),s=r(91075),n=r(48526),a=r(86738),o=r(39829),h=r(82799),l=r(60408);function u(e){return null==e?null:e instanceof s.A?e:(0,l.fT)(e)?a.A.fromJSON(e):(0,l.Rg)(e)?h.A.fromJSON(e):(0,l.Bi)(e)?o.A.fromJSON(e):(0,l.U9)(e)?n.A.fromJSON(e):(0,l.ZC)(e)?i.A.fromJSON(e):null}const d={esriGeometryPoint:a.A,esriGeometryPolyline:h.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:o.A};function c(e){return e&&d[e]||null}},78957(e,t,r){r.d(t,{d:()=>u,R:()=>I});class i{constructor(e=s){this._data=[],this._compare=e}get size(){return this._data.length}enqueue(e){if(null==e)return;let{_data:t,_compare:r}=this;t.push(e);let i=t.length-1>>>0,s=t[i];for(;i>0;){let e=i-1>>1,n=t[e];if(!(r(n,s)<=0))break;t[e]=s,t[i]=n,i=e}}dequeue(){let{_data:e,_compare:t}=this,r=e[0],i=e.pop();if(0===e.length)return r;e[0]=i;let s,n,a=0,o=e.length,h=e[0],l=null;for(;;){let r=2*a+1,i=2*a+2;if(l=null,r<o&&(s=e[r],t(s,h)>0&&(l=r)),i<o&&(n=e[i],(null===l&&t(n,h)<=0||null!==l&&t(n,s)<=0)&&(l=i)),null===l)break;e[a]=e[l],e[l]=h,a=l}return r}}const s=(e,t)=>e<t?-1:+(e>t);var n=r(19419),a=r(537),o=r(12359),h=r(95108),l=r(12176);function u(e){if(0===e.totalSize)return null;let t=(0,a.z8)(e);if(!t)return null;let r=4*(Math.abs(t[0])+Math.abs(t[2])+Math.abs(t[1])+Math.abs(t[3])+1)*222045e-19,i=0,s=0;e.reset();for(let t=0;e.nextPath();t++){let r=e.getCurrentRingArea();r>s&&(s=r,i=t)}if(e.seekPath(i),0===e.pathSize)return null;e.seekPathStart();let h=(0,a.B$)(e);if(Math.abs(s)<=2*r*r)return[(h[0]+h[2])/2,(h[1]+h[3])/2];e.seekPathStart();let l=(0,o.w2)(e,(0,n.vt)());if(null===l)return null;if(e.totalPoints<4)return l;let u=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],m=[NaN,NaN,NaN,NaN],p=[NaN,NaN,NaN,NaN],g=!1,v=c(l,e,!0);0===v.distance&&(g=!0,u[0][0]=l[0],u[0][1]=l[1],v=c(l,e,!1)),m[0]=v.distance,p[0]=0;let I=[NaN,NaN],M=!1,b=.25,S=-1,T=NaN;do{if(T=NaN,u[1]=f(e,_(h[0],h[2],b),0,t),!isNaN(u[1][0])&&!isNaN(u[1][1])&&(v=c(u[1],e,!1),T=v.distance),!isNaN(T)&&T>r&&d(u[1],e))M=!0,m[1]=T,p[1]=y(u[1],l);else if(!isNaN(T)&&T>S&&(S=T,I[0]=u[1][0],I[1]=u[1][1]),b-=.01,b<.1){if(!(S>=0))break;M=!0,m[1]=S,u[1][0]=I[0],u[1][1]=I[1],p[1]=y(u[1],l)}}while(!M);M=!1,b=.5,S=-1;let F=.01,P=1;do{if(T=NaN,u[2]=f(e,_(h[0],h[2],b),0,t),!isNaN(u[2][0])&&!isNaN(u[2][1])&&(v=c(u[2],e,!1),T=v.distance),!isNaN(T)&&T>r&&d(u[2],e))M=!0,m[2]=T,p[2]=y(u[2],l);else if(!isNaN(T)&&T>S)S=T,I[0]=u[2][0],I[1]=u[2][1];else if(T>S&&(S=T,I[0]=u[2][0],I[1]=u[2][1]),b=.5+F*P,F+=.01,P*=-1,b<.3||b>.7){if(!(S>=0))break;M=!0,m[2]=S,u[2][0]=I[0],u[2][1]=I[1],p[2]=y(u[2],l)}}while(!M);M=!1,b=.75,S=-1;do{if(T=NaN,u[3]=f(e,_(h[0],h[2],b),0,t),!isNaN(u[3][0])&&!isNaN(u[3][1])&&(v=c(u[3],e,!1),T=v.distance),!isNaN(T)&&T>r&&d(u[3],e))M=!0,m[3]=T,p[3]=y(u[3],l);else if(T>S&&(S=T,I[0]=u[3][0],I[1]=u[3][1]),b+=.01,b>.9){if(!(S>=0))break;M=!0,m[3]=S,u[3][0]=I[0],u[3][1]=I[1],p[3]=y(u[3],l)}}while(!M);let C,w=[0,1,2,3],A=+!g;for(let e=A;e<4;e++)for(let e=A;e<3;e++){let t=p[e],r=p[e+1];x(t,r)>0&&(C=w[e],w[e]=w[e+1],w[e+1]=C,p[e]=r,p[e+1]=t)}let N=A,O=0,R=0;for(let e=A;e<4;e++){switch(e){case 0:R=2*m[w[e]];break;case 1:R=1.66666666*m[w[e]];break;case 2:R=1.33333333*m[w[e]];break;case 3:R=m[w[e]]}R>O&&(O=R,N=w[e])}return u[N]}function d(e,t){let r,i,s,n,a=0;for(t.reset();t.nextPath()&&t.nextPoint();)for(r=t.x,i=t.y;t.nextPoint();r=s,i=n)s=t.x,n=t.y,i>e[1]!=n>e[1]&&((s-r)*(e[1]-i)-(n-i)*(e[0]-r)>0?a++:a--);return 0!==a}function c(e,t,r){if(r&&d(e,t))return{coord:e,distance:0};let i=1/0,s=0,n=0,a=[0,0],o=[0,0],l=[0,0];for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(a[0]=t.x,a[1]=t.y;t.nextPoint();a=o){o=[t.x,t.y],(0,h.gR)(l,e,a,o);let r=y(e,l);r<i&&(i=r,s=l[0],n=l[1])}return{coord:[s,n],distance:Math.sqrt(i)}}function f(e,t,r,i){let s=[t,0],a=1/0,o=1/0,h=!1,u=!1,d=[[t,i[1]-1],[t,i[3]+1]],c=[0,0],f=[0,0],g=[0,0],_=[[0,0],[0,0]],y=(0,n.vt)();for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(_[0][0]=e.x,_[0][1]=e.y;e.nextPoint();_[0][0]=_[1][0],_[0][1]=_[1][1]){if(_[1][0]=e.x,_[1][1]=e.y,null===m(y,_)||(f[0]=d[0][0],f[1]=d[0][1],g[0]=d[1][0],g[1]=d[1][1],0===p(y,f,g))||!(0,l.Ql)(d[0],d[1],_[0],_[1],c))continue;let t=c[1];a>o?t<a&&(a=t,h=!0):t<o&&(o=t,u=!0)}return h&&u?s[1]=(a+o)/2:s[0]=s[1]=NaN,s}function m(e,t){if(t.length<2)return null;e||=(0,n.vt)();let[r,i]=t[0],[s,a]=t[1];return e[0]=Math.min(r,s),e[1]=Math.min(i,a),e[2]=Math.max(r,s),e[3]=Math.max(i,a),e}function p(e,t,r){let i=g(t,e),s=g(r,e),n=e[0],a=e[1],o=e[2],h=e[3];if(i&s)return 0;if(!(i|s))return 4;let l=!!i|(s?2:0);do{let l=r[0]-t[0],u=r[1]-t[1];if(l>u)3&i?(1&i?(t[1]+=u*(n-t[0])/l,t[0]=n):(t[1]+=u*(o-t[0])/l,t[0]=o),i=g(t,e)):3&s?(1&s?(r[1]+=u*(n-r[0])/l,r[0]=n):(r[1]+=u*(o-r[0])/l,r[0]=o),s=g(r,e)):i?(4&i?(t[0]+=l*(a-t[1])/u,t[1]=a):(t[0]+=l*(h-t[1])/u,t[1]=h),i=g(t,e)):(4&s?(r[0]+=l*(a-r[1])/u,r[1]=a):(r[0]+=l*(h-r[1])/u,r[1]=h),s=g(r,e));else if(12&i?(4&i?(t[0]+=l*(a-t[1])/u,t[1]=a):(t[0]+=l*(h-t[1])/u,t[1]=h),i=g(t,e)):12&s?(4&s?(r[0]+=l*(a-r[1])/u,r[1]=a):(r[0]+=l*(h-r[1])/u,r[1]=h),s=g(r,e)):i?(1&i?(t[1]+=u*(n-t[0])/l,t[0]=n):(t[1]+=u*(o-t[0])/l,t[0]=o),i=g(t,e)):(1&s?(r[1]+=u*(n-r[0])/l,r[0]=n):(r[1]+=u*(o-r[0])/l,r[0]=o),s=g(r,e)),i&s)return 0}while(i|s);return l}function g(e,t){return+(e[0]<t[0])|(e[0]>t[2])<<1|(e[1]<t[1])<<2|(e[1]>t[3])<<3}function _(e,t,r){return e+(t-e)*r}function y(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}function x(e,t){if(e<t)return-1;if(e>t)return 1;if(e===t)return 0;let r=isNaN(e),i=isNaN(t);return r<i?-1:+(r>i)}class v{constructor(e,t,r,i){this.x=e,this.y=t,this.cellSize=r,this.distancefromCellCenter=(0,h.Xf)(e,t,i),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function I(e){if(!e.nextPath()||!e.pathSize)return null;let t=(0,a.B$)(e),r=t[2]-t[0],s=t[3]-t[1];if(0===r||0===s)return[t[0]+r/2,t[1]+s/2];let n=Math.max(Math.min(r,s)/100,1),h=new i((e,t)=>t.maxDistanceToPolygon-e.maxDistanceToPolygon),l=Math.min(r,s),u=l/2,d=0,c=0;for(d=t[0];d<t[2];d+=l)for(c=t[1];c<t[3];c+=l)h.enqueue(new v(d+u,c+u,u,e));e.reset(),e.nextPath();let f=(0,o.IK)(e);if(null===f)return null;let m,p=new v(f[0],f[1],0,e);for(;h.size>0;)m=h.dequeue(),m.distancefromCellCenter>p.distancefromCellCenter&&(p=m),m.maxDistanceToPolygon-p.distancefromCellCenter<=n||(u=m.cellSize/2,h.enqueue(new v(m.x-u,m.y-u,u,e)),h.enqueue(new v(m.x+u,m.y-u,u,e)),h.enqueue(new v(m.x-u,m.y+u,u,e)),h.enqueue(new v(m.x+u,m.y+u,u,e)));return[p.x,p.y]}},97770(e,t,r){r.d(t,{Ey:()=>A,F8:()=>w,J2:()=>T,Yq:()=>P,_m:()=>F,iS:()=>C,wj:()=>N});var i=r(66552),s=r(73444),n=r(98623),a=r(34747);const o={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"},u={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},p={...m,second:"numeric"},g={hourCycle:"h23"},_={...m,...g},y={...p,...g},x={"short-date":u,"short-date-short-time":{...u,...m},"short-date-short-time-24":{...u,..._},"short-date-long-time":{...u,...p},"short-date-long-time-24":{...u,...y},"short-date-le":u,"short-date-le-short-time":{...u,...m},"short-date-le-short-time-24":{...u,..._},"short-date-le-long-time":{...u,...p},"short-date-le-long-time-24":{...u,...y},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...m},"long-month-day-year-short-time-24":{...d,..._},"long-month-day-year-long-time":{...d,...p},"long-month-day-year-long-time-24":{...d,...y},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...m},"day-short-month-year-short-time-24":{...c,..._},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,...y},"long-date":f,"long-date-short-time":{...f,...m},"long-date-short-time-24":{...f,..._},"long-date-long-time":{...f,...p},"long-date-long-time-24":{...f,...y},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":p},v=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),I={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function M(){let e=(0,s.lR)();return(e&&I[e])??(0,s.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(I.bs="sr-Latn-CS");let b=new WeakMap;const S=x["short-date-short-time"];function T(e){return x[e]}function F(e){let{dateStyle:t,timeStyle:r,hour12:i,year:s,month:n}=e,a={};return t?a.dateStyle=t:s&&(a.year=s,a.month=n||void 0),r&&!a.year&&(a.timeStyle=r,a.hour12="auto"===i?void 0:"always"===i),a}function P(e,t=S){return function(e){let t=b.get(e);if(!t){let r=M(),i=N(e.timeZone??"system"),s={...e,timeZone:i};t=new Intl.DateTimeFormat(r,s),b.set(e,t)}return t}(t).format(e)}function C(e,t=S){return P(new Date(e),{...t,...l,...h})}function w(e,t=S){return P(new Date(`1970-01-01T${e}Z`),{...t,...l,...o})}function A(e,t=S){let r=a.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return P(r.toJSDate(),t);let i=0===r.offset?"UTC":t.timeZone,s={...t,timeZone:i};return r.toLocaleString(s,{locale:M()})}function N(e){switch(e){case"system":return n.N;case n.L:return"UTC";default:return e}}(0,s.Ml)(()=>{b=new WeakMap}),r.d(t,["_v",0,v])},73444(e,t,r){r.d(t,{JK:()=>h,Ml:()=>g,QC:()=>d,lR:()=>u,oQ:()=>m});var i=r(36563);let s;r(44208);const n=globalThis.esriConfig?.locale,a=globalThis.document?.documentElement;function o(){let e=a?.getAttribute("lang"),t=globalThis.navigator?.language;return n??e??t??"en"}function h(){return void 0===s&&(s=o()),s}const l=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=h()){return c(e)?.language}function d(e=h()){let t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=h()){return l.exec(e)?.groups}const f=[];function m(e){return f.push(e),(0,i.hA)(()=>{f.splice(f.indexOf(e),1)})}new Map;const p=[];function g(e){return p.push(e),(0,i.hA)(()=>p.splice(p.indexOf(e),1))}function _(){let e=o();s!==e&&([...p].forEach(t=>t(e)),s=e,[...f].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",_),a&&new MutationObserver(()=>{_()}).observe(a,{attributeFilter:["lang"]})},95466(e,t,r){r.d(t,{A:()=>l});var i=r(49186),s=r(53966),n=r(12195),a=r(30524),o=r(98623),h=r(56400);class l{static fromJSON(e){return new l(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new l(e.fields??[],d(e))}static fromLayerJSON(e){return new l(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let r=[];for(let e of this.fields){let t=e?.name,i=(0,a.GZ)(t);if(t&&i){let s=(0,a.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(i,e),r.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,a.te)(e)&&!(0,a.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,a.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):u.has(t.type)?o.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,n.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const u=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){let t=new Map;if(!e.fields)return t;let r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:s}=e,n=(i?"startField"in i?i.startField:i.startTimeField:"")??"",l=(i?"endField"in i?i.endField:i.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,h.ZS)(e.dateFieldsTimeReference):null,c=s?function(e){return"timeZone"in e}(s)?s.timeZone??d:s.dateFieldsTimeReference?(0,h.ZS)(s.dateFieldsTimeReference):d??"UTC":null,f=i?function(e){return"timeZone"in e}(i)?i.timeZone??d:i.timeReference?(0,h.ZS)(i.timeReference):d:null,m=new Map([[(0,a.NF)(s?.creationDateField??""),c],[(0,a.NF)(s?.editDateField??""),c],[(0,a.NF)(n),f],[(0,a.NF)(l),f]]);for(let{name:i,type:s}of e.fields)if(u.has(s))t.set(i,o.L);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(i,null);else if(r)t.set(i,o.L);else{let e=m.get((0,a.NF)(i??""))??d;t.set(i,e)}return t}},50115(e,t,r){r.d(t,{OP:()=>a,V4:()=>s,rZ:()=>n}),r(44208);var i=r(53966);function s(e,t,r){if(null==e)return null;let s=t.readArcadeFeature();t.contextTimeZone=r.$view?.timeZone;try{return e.evaluate(s,r)}catch(e){return i.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",e),null}}function n(e){return null==e||e===1/0||e===-1/0||"number"==typeof e&&isNaN(e)}function a(e,t,r,i){if(null==e)return i??null;let s=t.readArcadeFeature();t.contextTimeZone=r.$view?.timeZone;let a=e.evaluate(s,r);return n(a)?i??null:a}},63664(e,t,r){r.d(t,{B:()=>i});class i{constructor(e){this._statistics=e}get statistics(){return this._statistics}}},38976(e,t,r){r.d(t,{n:()=>i});class i{constructor(e){this.options=e}get hash(){return this.options.hash}}},92029(e,t,r){r.d(t,{o:()=>n}),r(69397);var i=r(50115);const s=Math.PI/180;class n{static create(e){return new n(e.map(e=>function(e){switch(e.statisticType){case"min":return new o(e);case"max":return new h(e);case"avg":return new u(e);case"avg_angle":return new d(e);case"sum":case"count":return new l(e);case"mode":return new c(e)}}(e)))}constructor(e){this._statistics=e}static get estimatedMemory(){return 160}values(){return this._statistics.values()}insert(e,t){for(let r of this._statistics)r.insert(e,t)}merge(e){for(let t=0;t<this._statistics.length;t++){let r=this._statistics[t],i=e._statistics[t];if(r.field.name!==i.field.name)throw Error("InternalError: Tried to merge incompatible statistics");r.merge(i)}}clone(){return new n(this._statistics.map(e=>e.clone()))}}class a{constructor(e){this.field=e}insert(e,t){if(!this.field.computed)return;let r=this.field.computed.read(e,t);(0,i.rZ)(r)||this._insertValue(r)}}class o extends a{constructor(){super(...arguments),this.type="min",this.value=Number.MAX_VALUE}_insertValue(e){this.value=Math.min(this.value,e)}merge(e){this.value=Math.min(this.value,e.value)}clone(){let e=new o(this.field);return e.value=this.value,e}}class h extends a{constructor(){super(...arguments),this.type="max",this.value=Number.MIN_VALUE}_insertValue(e){this.value=Math.max(this.value,e)}merge(e){this.value=Math.max(this.value,e.value)}clone(){let e=new h(this.field);return e.value=this.value,e}}class l extends a{constructor(){super(...arguments),this.type="sum",this.value=0}_insertValue(e){this.value+=e}merge(e){this.value+=e.value}clone(){let e=new l(this.field);return e.value=this.value,e}}class u extends a{constructor(){super(...arguments),this.type="avg",this._total=0,this._count=0}get value(){return this._total/this._count}_insertValue(e){this._total+=e,this._count+=1}merge(e){this._total+=e._total,this._count+=e._count}clone(){let e=new u(this.field);return e._total=this._total,e._count=this._count,e}}class d extends a{constructor(){super(...arguments),this.type="avg_angle",this._x=0,this._y=0,this._count=0}get value(){let e=this._x/this._count,t=this._y/this._count;return 180/Math.PI*Math.atan2(t,e)}_insertValue(e){this._x+=Math.cos(e*s),this._y+=Math.sin(e*s),this._count+=1}merge(e){this._x+=e._x,this._y+=e._y,this._count+=e._count}clone(){let e=new d(this.field);return e._x=this._x,e._y=this._y,e._count=this._count,e}}class c extends a{constructor(){super(...arguments),this._frequencies=new Map}get value(){let e,t=0;for(let[r,i]of this._frequencies.entries())i>t&&(t=i,e=r);return e}_insertValue(e){let t=this._frequencies.get(e);null==t?this._frequencies.set(e,1):this._frequencies.set(e,t+1)}merge(e){for(let[t,r]of e._frequencies.entries()){let e=this._frequencies.get(t);null==e?this._frequencies.set(t,r):this._frequencies.set(t,e+r)}}clone(){let e=new c(this.field);return e._frequencies=new Map(this._frequencies),e}}},75538(e,t,r){r.d(t,{L:()=>o});var i=r(90708),s=r(92722),n=r(63664),a=r(92029);class o extends n.B{static createId(e,t){return`${e}.${t}`}static create(e,t,r,i){return new o(e,t,a.o.create(r),i)}constructor(e,t,r,i){super(r),this.gridX=e,this.gridY=t,this._worldUnitsPerCell=i,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._objectIds=[new Set]}get id(){return o.createId(this.gridX,this.gridY)}get containedObjectIds(){return this._objectIds}get count(){return this._count}get firstObjectId(){return this._objectIds[0].values().next().value}get centroidXWorld(){return this._xWorldTotal/this._count}get centroidYWorld(){return this._yWorldTotal/this._count}get usedMemory(){return 48}clone(){let e=new o(this.gridX,this.gridY,this._statistics.clone(),this._worldUnitsPerCell);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._firstFeatureAttributes=this._firstFeatureAttributes,e._objectIds=this._objectIds.map(e=>new Set(e)),e}insert(e,t){let r=0,i=0;if("esriGeometryPoint"===e.geometryType)r=e.readXWorldSpace(),i=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)return;[r,i]=t.coords}this._firstFeatureAttributes=0===this._count?e.readAttributes():null,this._count+=1,this._xWorldTotal+=r,this._yWorldTotal+=i,this._statistics.insert(e,t),this._objectIds[0].add(e.getObjectId())}merge(e){0!==e._count&&(this._count+=e._count,this._firstFeatureAttributes=e._firstFeatureAttributes,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._statistics.merge(e._statistics),this._objectIds.push(...e._objectIds))}getCentroidX(e){return null==e?this.centroidXWorld:(0,i.IE)(e,this.centroidXWorld)}getCentroidY(e){return null==e?this.centroidYWorld:(0,i.B2)(e,this.centroidYWorld)}getGeometry(e,t){let r=this.gridX*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell,a=new s.A([4],[r,n,r+this._worldUnitsPerCell,n,r+this._worldUnitsPerCell,n+this._worldUnitsPerCell,r,n+this._worldUnitsPerCell]);return null==t?a:(0,i.Nl)(a,"esriGeometryPolygon",t)}getCentroid(e){let t=new s.A([],[this.centroidXWorld,this.centroidYWorld]);return null==e?t:(0,i.Nl)(t,"esriGeometryPoint",e)}getGeometricCentroid(e,t){let r=this.gridX*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,a=new s.A([],[r,n]);return null==t?a:(0,i.Nl)(a,"esriGeometryPoint",t)}getAttributes(){let e={aggregateId:this.id};for(let t of this._statistics.values())e[t.field.name]=t.value;return null==this._firstFeatureAttributes?e:{...e,...this._firstFeatureAttributes}}}},24506(e,t,r){r.d(t,{H:()=>u,p:()=>l});var i=r(91869),s=r(86211),n=r(38976),a=r(75538);class o{static createId(e,t){return`${e}.${t}`}constructor(e,t){this.gridX=e,this.gridY=t,this._indices=[],this.id=o.createId(e,t)}push(e){this._indices.push(e)}}var h=r(9012);function l(e,t){return 39.37*(0,s.GA)(e)*96/t}class u extends n.n{constructor(e,t){super(e),this._reader=t,this._cells=new Map,this._pixelsPerMapUnit=l(e.inner.spatialReference,e.inner.scale),this._insert(this._reader)}get _worldUnitsPerCell(){return 1*this.options.inner.cellSize/this._pixelsPerMapUnit}get usedMemory(){return 0}put(e,t){let{arcadeContextInfo:r,scale:s,fields:n}=this.options.inner,o=(0,h.N)(s,r);this._cells.forEach(r=>{let s=null;for(let h of r._indices){this._reader.setIndex(h);let l=this._reader.getObjectId();t.has(l)||(s??=(0,i.tE)(e,r.id,()=>a.L.create(r.gridX,r.gridY,n,this._worldUnitsPerCell)),s.insert(this._reader,o),t.add(l))}})}putBounded(e,t,r,s){let{arcadeContextInfo:n,scale:o,cellSize:l,fields:u}=this.options.inner,d=(0,h.N)(o,n),[c,f,m,p]=[r.xmin,r.ymin,r.xmax,r.ymax],g=Math.floor(c*this._pixelsPerMapUnit/l),_=Math.floor(f*this._pixelsPerMapUnit/l),y=Math.ceil(m*this._pixelsPerMapUnit/l),x=Math.ceil(p*this._pixelsPerMapUnit/l);for(let r=_;r<=x;r++)for(let s=g;s<=y;s++){let n=a.L.createId(s,r),o=this._cells.get(n);if(!o)continue;let h=null;for(let n of o._indices){this._reader.setIndex(n);let l=this._reader.getObjectId();t.has(l)||(h??=(0,i.tE)(e,o.id,()=>a.L.create(s,r,u,this._worldUnitsPerCell)),h.insert(this._reader,d),t.add(l))}}}_insert(e){let{featureFilter:t,sqlOptions:r,cellSize:i}=this.options.inner,s=e=>{let t=0,r=0;if("esriGeometryPoint"===e.geometryType)t=e.readXWorldSpace(),r=e.readYWorldSpace();else{let i=e.readCentroidWorldSpace();if(null==i)return;[t,r]=i.coords}let s=t*this._pixelsPerMapUnit,n=r*this._pixelsPerMapUnit,a=Math.floor(s/i),o=Math.floor(n/i);this._getCellOrCreate(a,o).push(e.getIndex())};if(null!==t)t.forEachMatch(e,r,s);else{let t=e.getCursor();for(;t.next();)s(t)}}_getCellOrCreate(e,t){let r=o.createId(e,t),i=this._cells.get(r);return i||(i=new o(e,t),this._cells.set(r,i)),i}}},35258(e,t,r){r.d(t,{i:()=>n});var i=r(16930),s=r(95466);class n{static minimal(e,t,r=[],i=!1,a=!1){return new n({geometryType:e,hasZ:i,hasM:a,fieldsIndex:new s.A(r).toJSON(),featureIdInfo:{type:"object-id",fieldName:t},subtypes:null,subtypeField:null,types:null,globalIdField:null,spatialReference:null,outSpatialReference:null,attributeSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null,layerType:void 0})}static createFeature(e){return new n(e)}constructor(e){let t;this._options=e,this._fieldsIndex=s.A.fromJSON(e.fieldsIndex),e.spatialReference&&(this._spatialReference=e.spatialReference instanceof i.A?e.spatialReference:i.A.fromJSON(e.spatialReference)),e.outSpatialReference&&(this._outSpatialReference=e.outSpatialReference instanceof i.A?e.outSpatialReference:i.A.fromJSON(e.outSpatialReference)),e.attributeSpatialReference&&(this._attributeSpatialReference=e.attributeSpatialReference instanceof i.A?e.attributeSpatialReference:i.A.fromJSON(e.attributeSpatialReference)),"object-id"===e.featureIdInfo.type&&(t=e.featureIdInfo.fieldName),this._arcadeSchema={fields:this.fieldsIndex.fields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,objectIdField:t,globalIdField:this._options.globalIdField,spatialReference:this._spatialReference,timeInfo:this._options.timeInfo,typeIdField:this._options.typeIdField??void 0,types:this._options.types??void 0,subtypeField:this._options.subtypeField,subtypes:this._options.subtypes??void 0,datesInUnknownTimezone:this._options.timeReferenceUnknownClient??void 0,dateFieldsTimeZone:this._options.dateFieldsTimeZone??void 0}}get fieldsIndex(){return this._fieldsIndex}get geometryType(){return"esriGeometryMultiPatch"===this._options.geometryType?"esriGeometryPolygon":this._options.geometryType}get hasZ(){return this._options.hasZ}get hasM(){return this._options.hasM}get serviceGeometryType(){return this._options.geometryType}get subtypeField(){return this._options.subtypeField}get timeInfo(){return this._options.timeInfo}get featureIdInfo(){return this._options.featureIdInfo}get globalIdField(){return this._options.globalIdField}get arcadeSchema(){return this._arcadeSchema}get spatialReference(){return this._spatialReference}get outSpatialReference(){return this._outSpatialReference}get attributeSpatialReference(){return this._attributeSpatialReference}get timeReferenceUnknownClient(){return this._options.timeReferenceUnknownClient}get layerType(){return this._options.layerType}weakCloneWithAdditionalFields(e){let t=this._fieldsIndex.toJSON();return t.fields.push(...e),new n({fieldsIndex:t,geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.spatialReference,attributeSpatialReference:this.attributeSpatialReference,outSpatialReference:this.outSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types,layerType:this._options.layerType})}weakCloneWithResolvedSpatialReference(){return new n({fieldsIndex:this._fieldsIndex.toJSON(),geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.outSpatialReference,outSpatialReference:this.outSpatialReference,attributeSpatialReference:this.attributeSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types,layerType:this._options.layerType})}}},97633(e,t,r){r.d(t,{P:()=>s}),r(69397);var i=r(73250);class s{constructor(e){this._valid=i.y.create(e),this._data=Array(e)}get usedMemory(){let e=this._valid.usedMemory;if(this._data.length>0){let t="string"==typeof this._data[0]?64:16;e+=this._data.length*t}return e}has(e){return this._valid.has(e)}set(e,t){this._valid.set(e),this._data[e]=t}get(e){return this._data[e]}}},5508(e,t,r){r.d(t,{Y:()=>ge,e:()=>_e});var i=r(66131),s=r(54639),n=r(87992),a=r(65864),o=r(90708),h=r(92722);class l{constructor(e,t,r,i){this._geometry=e,this._type=t,this._hasZ=r,this._hasM=i}toJsonGeometry(){return(0,o.zv)(h.A.fromJSON(this._geometry),function(e){switch(e){case"point":return"esriGeometryPoint";case"multipoint":return"esriGeometryMultipoint";case"polyline":return"esriGeometryPolyline";case"polygon":return"esriGeometryPolygon";case"extent":return"esriGeometryEnvelope";default:throw Error(`Unexpected type: ${e}`)}}(this._type),this._hasZ,this._hasM)}toAccessorGeometry(e){let t=this.toJsonGeometry();return t.spatialReference=e,(0,a.rS)(t)}toGxGeometry(e){return e.fromFlatGeometry((0,n.Nh)(this._type,this._geometry,null))}}var u=r(44208),d=r(69397),c=r(11006);function f(e,t){if(!(this instanceof f))return new f(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this.toBBox=t:this._initFormat(t)),this.clear()}function m(e,t,r){if(!r)return t.indexOf(e);for(var i=0;i<t.length;i++)if(r(e,t[i]))return i;return-1}function p(e,t){g(e,0,e.children.length,t,e)}function g(e,t,r,i,s){s||=F(null),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(var n,a=t;a<r;a++)n=e.children[a],_(s,e.leaf?i(n):n);return s}function _(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function y(e,t){return e.minX-t.minX}function x(e,t){return e.minY-t.minY}function v(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function I(e){return e.maxX-e.minX+(e.maxY-e.minY)}function M(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function b(e,t){var r=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),n=Math.min(e.maxY,t.maxY);return Math.max(0,s-r)*Math.max(0,n-i)}function S(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function T(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function F(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function P(e,t,r,i,s){for(var n,a=[t,r];a.length;)(r=a.pop())-(t=a.pop())<=i||(n=t+Math.ceil((r-t)/i/2)*i,(0,c.q)(e,n,t,r,s),a.push(t,n,n,r))}f.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],i=this.toBBox;if(!T(e,t))return r;for(var s,n,a,o,h=[];t;){for(s=0,n=t.children.length;s<n;s++)a=t.children[s],T(e,o=t.leaf?i(a):a)&&(t.leaf?r.push(a):S(e,o)?this._all(a,r):h.push(a));t=h.pop()}return r},collides:function(e){var t=this.data,r=this.toBBox;if(!T(e,t))return!1;for(var i,s,n,a,o=[];t;){for(i=0,s=t.children.length;i<s;i++)if(n=t.children[i],T(e,a=t.leaf?r(n):n)){if(t.leaf||S(e,a))return!0;o.push(n)}t=o.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}var i=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===i.height)this._splitRoot(this.data,i);else{if(this.data.height<i.height){var s=this.data;this.data=i,i=s}this._insert(i,this.data.height-i.height-1,!0)}else this.data=i;return this},insert:function(e){return null!=e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=F([]),this},remove:function(e,t){if(null==e)return this;for(var r,i,s,n,a=this.data,o=this.toBBox(e),h=[],l=[];a||h.length;){if(a||(a=h.pop(),i=h[h.length-1],r=l.pop(),n=!0),a.leaf&&-1!==(s=m(e,a.children,t)))return a.children.splice(s,1),h.push(a),this._condense(h),this;n||a.leaf||!S(a,o)?i?(r++,a=i.children[r],n=!1):a=null:(h.push(a),l.push(r),r=0,i=a,a=a.children[0])}return this},toBBox:function(e){return e},compareMinX:y,compareMinY:x,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var r=[];e;)e.leaf?t.push.apply(t,e.children):r.push.apply(r,e.children),e=r.pop();return t},_build:function(e,t,r,i){var s,n=r-t+1,a=this._maxEntries;if(n<=a)return p(s=F(e.slice(t,r+1)),this.toBBox),s;i||(i=Math.ceil(Math.log(n)/Math.log(a)),a=Math.ceil(n/a**(i-1))),(s=F([])).leaf=!1,s.height=i;var o,h,l,u,d=Math.ceil(n/a),c=d*Math.ceil(Math.sqrt(a));for(P(e,t,r,c,this.compareMinX),o=t;o<=r;o+=c)for(P(e,o,l=Math.min(o+c-1,r),d,this.compareMinY),h=o;h<=l;h+=d)u=Math.min(h+d-1,l),s.children.push(this._build(e,h,u,i-1));return p(s,this.toBBox),s},_chooseSubtree:function(e,t,r,i){for(var s,n,a,o,h,l,u,d;i.push(t),!t.leaf&&i.length-1!==r;){for(u=d=1/0,s=0,n=t.children.length;s<n;s++)h=v(a=t.children[s]),(l=M(e,a)-h)<d?(d=l,u=h<u?h:u,o=a):l===d&&h<u&&(u=h,o=a);t=o||t.children[0]}return t},_insert:function(e,t,r){var i=this.toBBox,s=r?e:i(e),n=[],a=this._chooseSubtree(s,this.data,t,n);for(a.children.push(e),_(a,s);t>=0&&n[t].children.length>this._maxEntries;)this._split(n,t),t--;this._adjustParentBBoxes(s,n,t)},_split:function(e,t){var r=e[t],i=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,i);var n=this._chooseSplitIndex(r,s,i),a=F(r.children.splice(n,r.children.length-n));a.height=r.height,a.leaf=r.leaf,p(r,this.toBBox),p(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(r,a)},_splitRoot:function(e,t){this.data=F([e,t]),this.data.height=e.height+1,this.data.leaf=!1,p(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,r){var i,s,n,a,o,h,l,u=h=1/0;for(i=t;i<=r-t;i++)a=b(s=g(e,0,i,this.toBBox),n=g(e,i,r,this.toBBox)),o=v(s)+v(n),a<u?(u=a,l=i,h=o<h?o:h):a===u&&o<h&&(h=o,l=i);return l},_chooseSplitAxis:function(e,t,r){var i=e.leaf?this.compareMinX:y,s=e.leaf?this.compareMinY:x;this._allDistMargin(e,t,r,i)<this._allDistMargin(e,t,r,s)&&e.children.sort(i)},_allDistMargin:function(e,t,r,i){e.children.sort(i);for(var s,n=this.toBBox,a=g(e,0,t,n),o=g(e,r-t,r,n),h=I(a)+I(o),l=t;l<r-t;l++)s=e.children[l],_(a,e.leaf?n(s):s),h+=I(a);for(l=r-t-1;l>=t;l--)s=e.children[l],_(o,e.leaf?n(s):s),h+=I(o);return h},_adjustParentBBoxes:function(e,t,r){for(var i=r;i>=0;i--)_(t[i],e)},_condense:function(e){for(var t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children).splice(t.indexOf(e[r]),1):this.clear():p(e[r],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=Function("a","b",t.join(e[0])),this.compareMinY=Function("a","b",t.join(e[1])),this.toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var C=r(44729),w=r(15032),A=r(36745),N=r(70328),O=r(78957),R=r(62577),Z=r(62815),z=r(27647),Y=r(43334),B=r(98623),G=r(91869),D=r(34727),E=(r(37585),r(48163)),X=r(39829),W=r(16930),L=r(19419),k=r(79258),j=r(31464);function J(e,t,r,i){if(i.isWebMercator){let i=(0,D.KJ)(e/k.$O.radius),s=i-360*Math.floor((i+180)/360),n=[0,0];return U(n,0,(0,D.KJ)(Math.PI/2-2*Math.atan(Math.exp(-t/k.$O.radius))),s,r),n}let s=(0,j.Cv)({x:e,y:t},i,W.A.WGS84);if(!s)return null;let n=[0,0];return U(n,0,s.y,s.x,r),n}function U(e,t,r,i,s){s%2&&(s+=1);let n=0,a=0,o=-90,h=90,l=-180,u=180;for(let e=0;e<s/2;e++){for(let t=0;t<5;t++){let r=(l+u)/2,s=+(i>r);n|=s<<29-(t+5*e),l=(1-s)*l+s*r,u=(1-s)*r+s*u}for(let t=0;t<5;t++){let i=(o+h)/2,s=+(r>i);a|=s<<29-(t+5*e),o=(1-s)*o+s*i,h=(1-s)*i+s*h}}e[2*t]=n,e[2*t+1]=a}(0,E.vt)(),(0,E.vt)();var V=r(63664),q=r(92029);class Q extends V.B{static create(e,t,r,i){let s=q.o.create(e),n=Array(32);for(let e=0;e<n.length;e++)n[e]=null;return new Q(s,t,r,i,n)}constructor(e,t,r,i,s){super(e),this.xNode=t,this.yNode=r,this.depth=i,this.children=s,this._objectIds=[new Set],this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}static get estimatedMemory(){let e=0;return e+=64,e+=512,e+=q.o.estimatedMemory,e}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){let e=new Q(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._xGeohashTotal=this._xGeohashTotal,e._yGeohashTotal=this._yGeohashTotal,e.next=this.next,e._objectIds=this._objectIds.map(e=>new Set(e)),e}insert(e,t,r,i){let s=0,n=0;if("esriGeometryPoint"===e.geometryType)s=e.readXWorldSpace(),n=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)return;[s,n]=t.coords}let a=J(s,n,t,r);a&&(this._count+=1,this._xWorldTotal+=s,this._yWorldTotal+=n,this._xGeohashTotal+=a[0],this._yGeohashTotal+=a[1],this._statistics.insert(e,i),this._objectIds[0].add(e.getObjectId()))}merge(e){0!==e._count&&(this._count+=e._count,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._xGeohashTotal+=e._xWorldTotal,this._yGeohashTotal+=e._yWorldTotal,this._statistics.merge(e._statistics),this._objectIds.push(...e._objectIds))}getCentroid(e){throw Error("getCentroid not supported for GeohashNode")}getGeometry(e,t){let[r,i,s,n]=this._getLngLatBounds(),a=(0,j.Cv)({rings:[[[r,i],[r,n],[s,n],[s,i],[r,i]]]},W.A.WGS84,e),h=(0,o.Ye)(a);return null==t?h:(0,o.Nl)(h,"esriGeometryPolygon",t,!1,!1)}getGeometricCentroid(e,t){let[r,i,s,n]=this._getLngLatBounds(),a={x:(r+s)/2,y:(i+n)/2},h=(0,j.Cv)(a,W.A.WGS84,e),l=(0,o.qN)(h);return null==t?l:(0,o.Nl)(l,"esriGeometryPoint",t,!1,!1)}getAttributes(){let e={aggregateId:this.id};for(let t of this._statistics.values())e[t.field.name]=t.value;return e.aggregateCount=this._count,e}find(e,t,r,i,s,n){if(i>=r)return this;let a=1-i%2,o=3*a+2*(1-a),h=2*a+3*(1-a),l=30-s-o,u=30-n-h,d=((e&7*a+3*(1-a)<<l)>>l)+((t&3*a+7*(1-a)<<u)>>u)*(8*a+4*(1-a)),c=this.children[d];return null==c?null:c.find(e,t,r,i+1,s+o,n+h)}_getLngLatBounds(){let e=this.depth,t=Math.ceil(e/2),r=Math.floor(e/2),i=30-(3*t+2*r),s=30-(2*t+3*r);return function(e,t){let r=-90,i=90,s=-180,n=180;for(let a=0;a<t;a++){let t=Math.ceil((a+1)/2),o=Math.floor((a+1)/2),h=1-a%2,l=30-(3*t+2*o),u=30-(2*t+3*o),d=2*h+3*(1-h),c=(7*h+3*(1-h)<<l&e.geohashX)>>l,f=(3*h+7*(1-h)<<u&e.geohashY)>>u;for(let e=3*h+2*(1-h)-1;e>=0;e--){let t=(s+n)/2,r=c&1<<e?1:0;s=(1-r)*s+r*t,n=(1-r)*t+r*n}for(let e=d-1;e>=0;e--){let t=(r+i)/2,s=f&1<<e?1:0;r=(1-s)*r+s*t,i=(1-s)*t+s*i}}return[s,r,n,i]}({geohashX:this.xNode<<i,geohashY:this.yNode<<s},this.depth)}}class ${static create(e,t,r){let i=Array(32);for(let e=0;e<i.length;e++)i[e]=null;return new $(e,t,r,i)}constructor(e,t,r,i){this.xNode=e,this.yNode=t,this.depth=r,this.children=i,this.indices=[],this.next=null}static get estimatedMemory(){let e=0;return e+=64,e+=512,e+=64,640}get id(){return`${this.xNode}.${this.yNode}`}get count(){return this.indices.length}insert(e){this.indices.push(e)}find(e,t,r,i,s,n){if(i>=r)return this;let a=1-i%2,o=3*a+2*(1-a),h=2*a+3*(1-a),l=30-s-o,u=30-n-h,d=((e&7*a+3*(1-a)<<l)>>l)+((t&3*a+7*(1-a)<<u)>>u)*(8*a+4*(1-a)),c=this.children[d];return null==c?null:c.find(e,t,r,i+1,s+o,n+h)}}class K{constructor(){this._size=0,this._depth=0,this._root=$.create(0,0,0)}destroy(){}get size(){return this._size}get depth(){return this._depth}get usedMemory(){return this._size*$.estimatedMemory}find(e,t,r){return this._root.find(e,t,r,0,0,0)}insert(e,t,r,i){let s=this._root,n=0,a=0,o=0;for(;null!==s;){if(s.insert(e.getIndex()),n>=i)return;let h=Math.ceil((n+1)/2),l=Math.floor((n+1)/2),u=1-n%2,d=30-(3*h+2*l),c=30-(2*h+3*l),f=(t&7*u+3*(1-u)<<d)>>d,m=(r&3*u+7*(1-u)<<c)>>c,p=f+m*(8*u+4*(1-u));a=a<<3*u+2*(1-u)|f,o=o<<2*u+3*(1-u)|m,s.children[p]??(s.children[p]=$.create(a,o,n+1),this._depth=Math.max(this._depth,n+1),this._size+=1),n+=1,s=s.children[p]}}forEachInBounds(e,t){let{geohashBounds:r,level:i}=e,s=this._root;for(;null!==s;){let e=s.depth,n=s.xNode,a=s.yNode;if(e>=i){t(s),s=s.next;continue}let o=Math.ceil((e+1)/2),h=Math.floor((e+1)/2),l=1-e%2,u=30-(3*o+2*h),d=30-(2*o+3*h),c=~((1<<u)-1),f=~((1<<d)-1),m=(r.xLL&c)>>u,p=(r.yLL&f)>>d,g=(r.xTR&c)>>u,_=(r.yTR&f)>>d,y=n<<3*l+2*(1-l),x=a<<2*l+3*(1-l),v=y+8*l+4*(1-l),I=x+4*l+8*(1-l),M=Math.max(y,m),b=Math.max(x,p),S=Math.min(v,g),T=Math.min(I,_),F=null,P=null;for(let e=b;e<=T;e++)for(let t=M;t<=S;t++){let r=t-y+(e-x)*(8*l+4*(1-l)),i=s.children[r];i&&(F||(F=i,F.next=s.next),P&&(P.next=i),P=i,i.next=s.next)}s=F||s.next}}}var H=r(38976),ee=r(9012);class te extends H.n{constructor(e,t){super(e),this._reader=t,this._tree=new K,this._insert(this._reader)}get usedMemory(){return this._tree.usedMemory}putBounded(e,t,r,i){let{arcadeContextInfo:s,scale:n,geohashLevel:a,spatialReference:h,fields:l}=this.options.inner,u=(0,ee.N)(n,s),d=function(e,t,r,i){let s=[e.xmin,e.ymin,e.xmax,e.ymax],n=X.A.fromExtent((0,L.w1)(s,i)),a=(0,j.Cv)(n,i,W.A.WGS84,{extendedParams:{densificationStep:64*t}});if(!a)return null;let h=(0,o.Ye)(a,!1,!1),l=h.coords.filter((e,t)=>!(t%2)),u=h.coords.filter((e,t)=>t%2),d=Math.min(...l),c=Math.min(...u),f=Math.max(...l),m=Math.max(...u),p=J(d,c,r,W.A.WGS84),g=J(f,m,r,W.A.WGS84);return p&&g?{bounds:s,geohashBounds:{xLL:p[0],yLL:p[1],xTR:g[0],yTR:g[1]},level:r}:null}(r,i,a,h);null!=d&&this._tree.forEachInBounds(d,r=>{let i=null;for(let s of r.indices){this._reader.setIndex(s);let n=this._reader.getObjectId();t.has(n)||(i??=(0,G.tE)(e,r.id,()=>Q.create(l,r.xNode,r.yNode,r.depth)),i.insert(this._reader,a,h,u),t.add(n))}})}_insert(e){let{featureFilter:t,sqlOptions:r,geohashLevel:i,spatialReference:s}=this.options.inner,n=e=>{let t=0,r=0;if("esriGeometryPoint"===e.geometryType)t=e.readXWorldSpace(),r=e.readYWorldSpace();else{let i=e.readCentroidWorldSpace();if(null==i)return;[t,r]=i.coords}let n=J(t,r,i,s);n&&this._tree.insert(e,n[0],n[1],i)};if(null!==t)t.forEachMatch(e,r,n);else{let t=e.getCursor();for(;t.next();)n(t)}}}var re=r(24506),ie=r(97633);const se=(0,u.A)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],ne=se[0],ae=se[1],oe=se[2],he=se[3],le=(0,u.A)("featurelayer-simplify-payload-size-factors")??[1,2,4],ue=le[0],de=le[1],ce=le[2],fe=(0,u.A)("featurelayer-simplify-mobile-factor")??2,me=(0,u.A)("esri-mobile"),pe=4294967295;class ge{constructor(e){this.metadata=e,this.type="FeatureSetReader",this._overrides=null,this._postQueryFilteredIds=new Set,this._joined=[],this._objectIdToIndex=null,this._boundsBuffer=[],this._aggregateCache={},this._deleted=new Set,this._caches=new Map,this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}destroy(){}[Symbol.dispose](){this.destroy()}get geometryDensity(){return{sampleCount:0,densePairCount:0}}getAreaSimplificationThreshold(e,t){let r=1,i=me?fe:1;t>4e6?r=ce*i:t>1e6?r=de*i:t>5e5?r=ue*i:t>1e5&&(r=i);let s=0;return e>4e3?s=he*r:e>2e3?s=oe*r:e>100?s=ae:e>15&&(s=ne),s}getBounds(e){!function(e,t){if(!(e.length>t))for(;e.length<=t;)e.push(0)}(this._boundsBuffer,4*this.getIndex()+4);let t=this.getBoundsXMin();if(t===pe||!isFinite(t))return!1;if(0===this.getBoundsXMin()){let t=this.readGeometryWorldSpace();if(t?.isPoint&&0===t.coords[0]&&0===t.coords[1])return(0,N.BI)(e,0,0,0,0),!0;if(!t)return this.setBoundsXMin(pe),!1;let r=1/0,i=1/0,s=-1/0,n=-1/0;return t.forEachVertex((e,t)=>{r=Math.min(r,e),i=Math.min(i,t),s=Math.max(s,e),n=Math.max(n,t)}),this.setBoundsXMin(r),this.setBoundsYMin(i),this.setBoundsXMax(s),this.setBoundsYMax(n),(0,N.BI)(e,r,i,s,n),!0}let r=this.getBoundsXMin(),i=this.getBoundsYMin(),s=this.getBoundsXMax(),n=this.getBoundsYMax();return(0,N.BI)(e,r,i,s,n),!0}getBoundsXMin(){return this._boundsBuffer[4*this.getIndex()]}setBoundsXMin(e){this._boundsBuffer[4*this.getIndex()]=e}getBoundsYMin(){return this._boundsBuffer[4*this.getIndex()+1]}setBoundsYMin(e){this._boundsBuffer[4*this.getIndex()+1]=e}getBoundsXMax(){return this._boundsBuffer[4*this.getIndex()+2]}setBoundsXMax(e){this._boundsBuffer[4*this.getIndex()+2]=e}getBoundsYMax(){return this._boundsBuffer[4*this.getIndex()+3]}setBoundsYMax(e){this._boundsBuffer[4*this.getIndex()+3]=e}readAttributeAsTimestamp(e){let t=this.readAttribute(e);return"string"==typeof t?new Date(t).getTime():"number"==typeof t||null==t?t:null}readAttribute(e,t=!1){let r=this._readAttribute(e,t);if(void 0!==r)return r;for(let r of this._joined){r.setIndex(this.getIndex());let i=r._readAttribute(e,t);if(void 0!==i)return i}}readAttributes(){let e=this._readAttributes();for(let t of this._joined){t.setIndex(this.getIndex());let r=t._readAttributes();for(let t of Object.keys(r))e[t]=r[t]}return e}joinAttributes(e){this._joined.push(e)}registerOverrides(e){this._overrides=e}withoutOverrides(){let e=this.copy();return e._overrides=null,e._aggregateCache={},e}readOptimizedFeatureWorldSpace(){let e=this.readGeometryWorldSpace(),t=this.readAttributes(),r=this.readCentroidWorldSpace();return new Y.Om(e,t,r,this.getObjectId(),this.getDisplayId())}readLegacyFeatureForDisplay(){let e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyFeatureWorldSpace(){let e=this.readCentroidWorldSpace();return{attributes:this.readAttributes(),geometry:this._readLegacyGeometryWorldSpace(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){let e=this.readGeometryForDisplay();return(0,o.zv)(e,this.geometryType,!1,!1)}readXForDisplay(){return this._readX()}readYForDisplay(){return this._readY()}readXWorldSpace(){let e=this._readX(),t=this.getInTransform();return null==t?e:e*t.scale[0]+t.translate[0]}readYWorldSpace(){let e=this._readY(),t=this.getInTransform();return null==t?e:t.translate[1]-e*t.scale[1]}readGeometryForDisplay(){let e=this._readGeometryDeltaDecoded(!0);if(!e){let e=this._createDeltaQuantizedGeometryFromServerCentroid();return e?e.deltaDecode():null}return e}readGeometryForDisplayTransformed(e){let t=this.readGeometryForDisplay();if(t&&"esriGeometryPolyline"===this.metadata.geometryType&&(t=(0,o.kz)(t,this.metadata.geometryType,e.scale[0])),t&&=(0,o.Nl)(t,this.metadata.geometryType,e,t.hasZ,t.hasM,!0),!t){let t=this.readCentroidForDisplay();if(!t)return null;let r=(0,R.IE)(e,t.coords[0]),i=(0,R.B2)(e,t.coords[1]);return this._createDeltaQuantizedExtrudedGeometry(r,i).deltaDecode()}return t}_transformToWorldSpace(e){if(!e)return null;e=e.clone();let t=this.getInTransform();t&&(0,o.aQ)(e,t);let r=(0,Z.d)(this.metadata.spatialReference,this.metadata.outSpatialReference);if(e.hasZ&&1!==r){let{stride:t,coords:i}=e;for(let e=2;e<i.length;e+=t)i[e]*=r}return e}readGeometryWorldSpace(){let e=this._readGeometry();return e||=this._createDeltaQuantizedGeometryFromServerCentroid(),this._transformToWorldSpace(e)}readCentroidForDisplay(){let e=this.readGeometryForDisplay();return e?this._computeDisplayCentroid(e):this._readServerCentroid()}readCentroidWorldSpace(){let e=this.readGeometryForDisplay(),t=e?this._computeDisplayCentroid(e):this._readServerCentroid();return this._transformToWorldSpace(t)}setCache(e){let t=this._caches.get(e);t??(t=new ie.P(this.getSize()),this._caches.set(e,t)),this._activeCache=t}setCachedValue(e){this._activeCache.set(this.getIndex(),e)}hasCachedValue(){return this._activeCache.has(this.getIndex())}getCachedValue(){return this._activeCache.get(this.getIndex())}delete(){this._deleted.add(this.getObjectId())}getByReferenceVertexCount(){return null}get underlyingMemory(){let e=0;e+=(0,d.Qf)(this._boundsBuffer),e+=16*(this._spatialIndex?.all().length??0),e+=this._aggregateCache.gridIndex?.usedMemory??0,e+=this._aggregateCache.geohashIndex?.usedMemory??0;for(let t of this._caches.values())e+=t.usedMemory;return e}getDisplayTransform(){return null}queryFeaturesInBounds(e){let t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return _e.from(this,this.getSpatialIndex().search(t))}getSpatialIndex(){if(this._spatialIndex)return this._spatialIndex;let e=[],t=this.copy(),r=(0,N.vt)();for(let i=0;i<this.getSize();i++)t.setIndex(i),t.getBounds(r)&&e.push(t.getIndex());let i=f(9,e=>(t.setIndex(e),{minX:t.getBoundsXMin(),minY:t.getBoundsYMin(),maxX:t.getBoundsXMax(),maxY:t.getBoundsYMax()}));return i.load(e),this._spatialIndex=i,i}getGridIndex(e){return e.hash!==this._aggregateCache.gridIndex?.hash&&(this._aggregateCache.gridIndex=new re.H(e,this.copy())),this._aggregateCache.gridIndex}getGeohashIndex(e){return e.hash!==this._aggregateCache.geohashIndex?.hash&&(this._aggregateCache.geohashIndex=new te(e,this.copy())),this._aggregateCache.geohashIndex}invalidateAggregateIndices(){this._aggregateCache.gridIndex=void 0,this._aggregateCache.geohashIndex=void 0}_readGeometryDeltaDecoded(e){let t=this._readGeometry(e);if("esriGeometryPoint"===this.geometryType||!t)return t;let r=this.getInTransform();if(!t||!r)return t;let i=r.scale[2]??1,s=r.translate[2]??0,n=r.scale[3]??1,a=r.translate[3]??0,{hasZ:o,hasM:h,stride:l,size:u,coords:d}=t,c=o&&(1!==i||0!==s),f=h&&(1!==n||0!==a);if(c||f){let e=o?3:2;for(let t=0,r=l*u;t<r;t+=l)c&&(d[t+2]=i*d[t+2]+s),f&&(d[t+e]=n*d[t+e]+a)}return t.deltaDecode()}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this.fields.has(e)||this._joined.some(t=>t.hasField(e))}geometry(){let e,t=this.readGeometryWorldSpace();if(null==t)return null;switch(this.geometryType){case"esriGeometryPoint":e="point";break;case"esriGeometryMultipoint":e="multipoint";break;case"esriGeometryPolyline":e="polyline";break;case"esriGeometryPolygon":e="polygon";break;default:throw Error(`Unexpected geometry type: ${this.geometryType}`)}return function(e,t,r){let i=t.hasZ??!1,n=t.hasM??!1;return s.R.of(e,r,i,n,new l(t,e,i,n))}(e,{lengths:t.lengths,coords:t.coords,hasZ:this.hasZ,hasM:this.hasM},this.metadata.outSpatialReference)}autocastArcadeDate(e,t){return t&&t instanceof Date?this.isUnknownDateTimeField(e)?i.lY.unknownDateJSToArcadeDate(t):i.lY.dateJSAndZoneToArcadeDate(t,this.contextTimeZone??"system"):t}isUnknownDateTimeField(e){return this.metadata.fieldsIndex.getTimeZone(e)===B.L}field(e){let t=this.fields.get(e);if(t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return C.n.fromReader(this.readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return w.k.fromReader(this.readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(this.readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,this.readAttribute(e,!0));default:return this.readAttribute(e,!1)}for(let r of this._joined)if(r.setIndex(this.getIndex()),t=r.fields.get(e),t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return C.n.fromReader(r._readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return w.k.fromReader(r._readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(r._readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,r._readAttribute(e,!0));default:return this.readAttribute(e,!1)}throw Error(`Field ${e} does not exist`)}setField(e,t){throw Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.fields.fields.map(e=>e.name)}isEmpty(){return this.fields.fields.length<=0&&null==this.geometry()}castToText(e=!1){if(!e)return JSON.stringify(this.readLegacyFeatureForDisplay());let t=this.readLegacyFeatureForDisplay();if(!t)return JSON.stringify(null);let r={geometry:t.geometry,attributes:{...t.attributes}};for(let e in r.attributes){let t=r.attributes[e];t instanceof Date&&(r.attributes[e]=t.getTime())}return JSON.stringify(r)}gdbVersion(){return null}fullSchema(){return this.metadata.arcadeSchema}castAsJson(){return{attributes:this._readAttributes(),geometry:this.geometry()?.castAsJson()??null}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}applyPostQueryFilter(e){if(this._postQueryFilteredIds.clear(),!e)return;let t=new Set;e.forEachMatch(this,{currentUser:null},e=>{t.add(e.getObjectId())});let r=[],i=this.getCursor();for(;i.next();)t.has(i.getObjectId())||r.push(i.getObjectId());for(let e of r)this._postQueryFilteredIds.add(e)}_getExists(){let e=this.getObjectId();return!this._deleted.has(e)&&(this._overrides?!this._overrides.hasOverride(e):!this._postQueryFilteredIds.has(e))}_computeDisplayCentroid(e){if(null==this.getInTransform())return(0,z.Q)(e);let t=A.z.fromOptimized(e,this.geometryType);t.yFactor*=-1;let r=(0,O.d)(t);return r?isNaN(r[0])||isNaN(r[1])?(0,z.Q)(e):(r[1]*=-1,new h.A([],r)):null}copyInto(e){e._joined=this._joined,e._overrides=this._overrides,e._objectIdToIndex=this._objectIdToIndex,e._boundsBuffer=this._boundsBuffer,e._spatialIndex=this._spatialIndex,e._aggregateCache=this._aggregateCache,e._activeCache=this._activeCache,e._caches=this._caches,e._contextTimeZone=this._contextTimeZone,e._postQueryFilteredIds=this._postQueryFilteredIds,e._deleted=this._deleted}_readLegacyGeometryWorldSpace(){let e=this.readGeometryWorldSpace();return(0,o.zv)(e,this.geometryType,!1,!1)}_createDeltaQuantizedGeometryFromServerCentroid(){let e=this._readServerCentroid();if(!e)return null;let[t,r]=e.coords;return this._createDeltaQuantizedExtrudedGeometry(t,r)}_createDeltaQuantizedExtrudedGeometry(e,t){return"esriGeometryPolyline"===this.geometryType?this._createDeltaQuantizedExtrudedLine(e,t):this._createDeltaQuantizedExtrudedQuad(e,t)}_createDeltaQuantizedExtrudedQuad(e,t){return new h.A([5],[e-1,t,1,-1,1,1,-1,1,-1,-1])}_createDeltaQuantizedExtrudedLine(e,t){return new h.A([2],[e-1,t+1,1,-1])}}class _e extends ge{static from(e,t){if(e instanceof this){let r=new Set(t),i=e._indices.filter(e=>r.has(e)),s=e.copy();return s._indices=i,s._currentIndex=-1,s}return new _e(e.copy(),t)}constructor(e,t){super(e.metadata),this._currentIndex=-1,this._displayTransform=null,this._reader=e,this._indices=t}setTransformForDisplay(e){let t=this._reader.getInTransform();if(null==t)return void(this._displayTransform=(0,R.Q1)(e));let r=(0,R.Q1)(t),i=(0,R.Q1)(e),[s,n]=r.scale,[a,o]=r.translate,[h,l]=i.scale,[u,d]=i.translate,c=s/h,f=n/l,m=(a-u)/h,p=(o-d)/l;this._displayTransform={originPosition:"lowerLeft",scale:[1/c,1/f,1,1],translate:[-m/c,-p/f,0,0]}}getInTransform(){return this._reader.getInTransform()}getDisplayTransform(){return this._displayTransform}get fields(){return this._reader.fields}get hasNext(){return this._currentIndex+1<this._indices.length}getSize(){return this._indices.length}getCursor(){return this.copy()}copy(){let e=new _e(this._reader.copy(),this._indices);return e._currentIndex=this._currentIndex,e._displayTransform=this._displayTransform,e._processorAttributes=this._processorAttributes,e}getSpatialIndex(){return this._reader.getSpatialIndex()}getGridIndex(e){throw Error("Cannot request a grid index from an indirect feature set reader.")}getGeohashIndex(e){throw Error("Cannot request a geohash index from an indirect feature set reader.")}get contextTimeZone(){return this._reader.contextTimeZone}set contextTimeZone(e){this._reader.contextTimeZone=e}get usedMemory(){return 32+this._reader.usedMemory}setProcessorAttributes(e){this._processorAttributes=Object.assign(this._processorAttributes??{},e)}_nextIndex(){return++this._currentIndex<this._indices.length&&(this._reader.setIndex(this._indices[this._currentIndex]),!0)}next(){for(;this._nextIndex()&&!this._reader._getExists(););return this._currentIndex<this._indices.length}readXForDisplay(){return this._displayTransform?(0,R.IE)(this._displayTransform,this._reader.readXForDisplay()):this._reader.readXForDisplay()}readYForDisplay(){return this._displayTransform?(0,R.B2)(this._displayTransform,this._reader.readYForDisplay()):this._reader.readYForDisplay()}readGeometryForDisplay(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform):this._reader.readGeometryForDisplay()}readCentroidForDisplay(){let e=this._reader.readCentroidForDisplay()?.clone();if(e){let[t,r]=e.coords;this._displayTransform&&(e.coords[0]=(0,R.IE)(this._displayTransform,t),e.coords[1]=(0,R.B2)(this._displayTransform,r))}return e}get geometryType(){return this._reader.geometryType}get hasFeatures(){return this._reader.hasFeatures}get exceededTransferLimit(){return this._reader.exceededTransferLimit}get hasZ(){return this._reader.hasZ}get hasM(){return this._reader.hasM}readAttribute(e,t=!1){let r=this._reader.readAttribute(e,t);return null==r&&this._processorAttributes?this._processorAttributes[e]:r}readAttributes(){return{...this._processorAttributes,...this._reader.readAttributes()}}joinAttributes(e){return this._reader.joinAttributes(e)}getBounds(e){return this._reader.getBounds(e)}getBoundsXMin(){return this._reader.getBoundsXMin()}setBoundsXMin(e){this._reader.setBoundsXMin(e)}getBoundsYMin(){return this._reader.getBoundsYMin()}setBoundsYMin(e){this._reader.setBoundsYMin(e)}getBoundsXMax(){return this._reader.getBoundsXMax()}setBoundsXMax(e){this._reader.setBoundsXMax(e)}getBoundsYMax(){return this._reader.getBoundsYMax()}setBoundsYMax(e){this._reader.setBoundsYMax(e)}getAttributeHash(){return this._reader.getAttributeHash()}getObjectId(){return this._reader.getObjectId()}getDisplayId(){return this._reader.getDisplayId()}setDisplayId(e){return this._reader.setDisplayId(e)}setIndex(e){return this._reader.setIndex(e)}getIndex(){return this._reader.getIndex()}readXWorldSpace(){return this._reader.readXWorldSpace()}readYWorldSpace(){return this._reader.readYWorldSpace()}_readX(){return this._reader.readXForDisplay()}_readY(){return this._reader.readYForDisplay()}_readServerCentroid(){return this._reader._readServerCentroid()}readLegacyFeatureForDisplay(){let e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){let e=this.readGeometryForDisplay();return(0,o.zv)(e,this.geometryType,!1,!1)}readGeometryArea(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform)?.area()??0:this._reader.readGeometryArea()}readGeometryWorldSpace(){return this._reader.readGeometryWorldSpace()}_readGeometry(){return this._reader._readGeometry()}get geometryDensity(){return this._reader.geometryDensity}_readAttribute(e,t){throw Error("Error: Should not be called. Underlying _reader should be used instead")}_readAttributes(){throw Error("Error: Should not be called. Underlying _reader should be used instead")}readArcadeFeature(){return this._reader.readArcadeFeature()}geometry(){return this._reader.geometry()}field(e){return this._reader.field(e)}hasField(e){return this._reader.hasField(e)}setField(e,t){return this._reader.setField(e,t)}keys(){return this._reader.keys()}castToText(e=!1){return this._reader.castToText(e)}}},8446(e,t,r){r.d(t,{K:()=>d});var i=r(44208),s=r(90708),n=r(43334),a=r(95466),o=r(5508);const h=(0,i.A)("featurelayer-snapping-density-sample-interval"),l=(0,i.A)("featurelayer-snapping-density-max-vertices-per-feature"),u=(0,i.A)("featurelayer-snapping-density-max-distance")**2;class d extends o.Y{static fromFeatures(e,t){let{geometryType:r,hasZ:i,hasM:n,featureIdInfo:a}=t,o=(0,s.Di)([],e,r,i,n,a);for(let t=0;t<o.length;t++)o[t].displayId=e[t].displayId;return d.fromOptimizedFeatures(o,t)}static fromFeatureSet(e,t){let r=(0,s.q3)(e,t.featureIdInfo);return d.fromOptimizedFeatureSet(r,t)}static fromOptimizedFeatureSet(e,t){let r=d.fromOptimizedFeatures(e.features,t,e.transform);return r._exceededTransferLimit=e.exceededTransferLimit,r._fieldsIndex=new a.A(e.fields),r}static fromOptimizedFeatures(e,t,r){let i=new d(e,t);return i._fieldsIndex=t.fieldsIndex,i._transform=r,r&&("esriGeometryPolyline"===i.geometryType||"esriGeometryPolygon"===i.geometryType)&&(i._geometryDensity=function(e){let t={sampleCount:0,densePairCount:0};for(let r=0;r<e.length;r+=h){let i=e[r].geometry;if(!i)continue;let{coords:s,lengths:n,stride:a}=i,o=Math.min(n[0]??0,l);for(let e=1;e<o;e++){let r=e*a;t.sampleCount++;let i=s[r],n=s[r+1];i*i+n*n<=u&&t.densePairCount++}}return t}(e)),i}static empty(e){return new d([],e)}constructor(e,t){super(t),this._geometryDensity={sampleCount:0,densePairCount:0},this._featureIndex=-1,this._exceededTransferLimit=!1,this._fieldsIndex=null,this._hasZ=!1,this._hasM=!1,this._geometryType=t.geometryType,this._hasZ=t.hasZ,this._hasM=t.hasM,this._features=e}get fields(){return this._fieldsIndex}get geometryType(){return this._geometryType}get hasFeatures(){return!!this._features.length}get hasNext(){return this._featureIndex+1<this._features.length}get exceededTransferLimit(){return this._exceededTransferLimit}get hasZ(){return this._hasZ}get hasM(){return this._hasM}get geometryDensity(){return this._geometryDensity}get _current(){return this._features[this._featureIndex]}get usedMemory(){return this._current.usedMemory}getSize(){return this._features.length}getCursor(){return this.copy()}getInTransform(){return this._transform}getAttributeHash(){let e="";for(let t in this._current.attributes)e+=this._current.attributes[t];return e}getIndex(){return this._featureIndex}setIndex(e){this._featureIndex=e}getObjectId(){return this._current?.objectId}getDisplayId(){return this._current.displayId}setDisplayId(e){this._current.displayId=e}getByReferenceVertexCount(){return this._current.vertexCount}copy(){let e=new d(this._features,this.metadata);return this.copyInto(e),e}next(){for(;++this._featureIndex<this._features.length&&!this._getExists(););return this._featureIndex<this._features.length}readGeometryArea(){return(0,n.N3)(this._current)?(0,s.Rk)(this._current.geometry,2):0}_readX(){return(0,n.N3)(this._current)?this._current.geometry.coords[0]:0}_readY(){return(0,n.N3)(this._current)?this._current.geometry.coords[1]:0}_readGeometry(){return(0,n.N3)(this._current)?this._current.geometry??null:null}_readServerCentroid(){return this._current.centroid}_readAttribute(e,t){if(!this._fieldsIndex){let t=this._current.attributes[e];if(void 0!==t)return t;let r=e.toLowerCase();for(let e in this._current.attributes)if(e.toLowerCase()===r)return this._current.attributes[e];return}let r=this._fieldsIndex.get(e);if(!r)return;let i=this._current.attributes[r.name];return null==i?i:t&&this.fields.isDateField(e)?new Date(i):i}_readAttributes(){return this._current.attributes}copyInto(e){super.copyInto(e),e._featureIndex=this._featureIndex,e._transform=this._transform,e._fieldsIndex=this._fieldsIndex,e._geometryDensity=this._geometryDensity}}},73250(e,t,r){r.d(t,{y:()=>s});var i=r(69397);class s{static fromBuffer(e,t){return new s(e,t)}static create(e,t=4294967295){let r=new Uint32Array(Math.ceil(e/32));return new s(r,t)}constructor(e,t){this._mask=0,this._buf=e,this._mask=t}_getIndex(e){return Math.floor(e/32)}get usedMemory(){return(0,i.Qf)(this._buf)}has(e){let t=this._mask&e;return!!(this._buf[this._getIndex(t)]&1<<t%32)}hasRange(e,t){let r=e,i=t;for(;r%32&&r!==i;){if(this.has(r))return!0;r++}for(;i%32&&r!==i;){if(this.has(r))return!0;i--}if(r===i)return!1;for(let e=r/32;e!==i/32;e++)if(this._buf[e])return!0;return!1}set(e){let t=this._mask&e,r=this._getIndex(t),i=1<<t%32;this._buf[r]|=i}setRange(e,t){let r=e,i=t;for(;r%32&&r!==i;)this.set(r++);for(;i%32&&r!==i;)this.set(i--);if(r!==i)for(let e=r/32;e!==i/32;e++)this._buf[e]=4294967295}unset(e){let t=this._mask&e,r=this._getIndex(t),i=1<<t%32;this._buf[r]&=4294967295^i}resize(e){let t=this._buf,r=new Uint32Array(Math.ceil(e/32));r.set(t),this._buf=r}or(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=e._buf[t];return this}and(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=e._buf[t];return this}xor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=e._buf[t];return this}ior(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=~e._buf[t];return this}iand(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=~e._buf[t];return this}ixor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=~e._buf[t];return this}any(){for(let e=0;e<this._buf.length;e++)if(this._buf[e])return!0;return!1}copy(e){for(let t=0;t<this._buf.length;t++)this._buf[t]=e._buf[t];return this}clone(){return new s(this._buf.slice(),this._mask)}clear(){for(let e=0;e<this._buf.length;e++)this._buf[e]=0;return this}forEachSet(e){for(let t=0;t<this._buf.length;t++){let r=this._buf[t],i=32*t;if(r)for(;r;)1&r&&e(i),r>>>=1,i++}}countSet(){let e=0;return this.forEachSet(t=>{e++}),e}}},9012(e,t,r){function i(e,{timeZone:t,timeExtent:r}){return{$view:{scale:e,timeZone:t,timeProperties:{currentStart:r?.start,currentEnd:r?.end}}}}r.d(t,{N:()=>i})}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7915],{68197(e,t,r){r.d(t,{A:()=>h});var i=r(40876),n=r(4576),s=r(34727),a=r(78888);function o(e){return(0,s.qE)((0,a.Vr)(e),0,255)}function l(e,t){let 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){let r=(0,i.lT)(e);return r?h.fromArray(r,t):null}static fromHex(e,t=new h){let 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){let r=(0,i.Eq)(e);return r?h.fromArray(r,t):null}static fromJSON(e){return null==e?void 0:new h([e[0],e[1],e[2],(e[3]??255)/255])}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?1:this.a,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){let r=e instanceof h?e:new h(e),i=u(this),n=u(r);return(Math.max(i,n)+.05)/(Math.min(i,n)+.05)<t}setColor(e){if("string"==typeof e)h.fromString(e,this);else if((0,n.yc)(e))h.fromArray(e,this);else{let 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){let t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${n?l(Math.round(255*this.a),i):""}`;return t?s.toUpperCase():s}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){let 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){let t=o(this.r),r=o(this.g),i=o(this.b);return 0===e||1!==this.a?[t,r,i,o(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:()=>f,G1:()=>m,Q6:()=>E,TS:()=>s,V6:()=>n,Vm:()=>g,ay:()=>l,c1:()=>p,c4:()=>a,j5:()=>u,lT:()=>d,oW:()=>h,xV:()=>v});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 n(e){return!!i[e]||!!i[e.toLowerCase()]}function s(e){return i[e]??i[e.toLowerCase()]}function a(e){return[...s(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;let 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 l(e,t,r,i=1){let n=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,a=2*r-s;return[Math.round(255*o(a,s,n+1/3)),Math.round(255*o(a,s,n)),Math.round(255*o(a,s,n-1/3)),i]}function u(e){let t=e.length>5,r=t?8:4,i=(1<<r)-1,n=t?1:17,s=t?9===e.length:5===e.length,a=Number("0x"+e.slice(1));if(isNaN(a))return null;let o,l=[0,0,0,1];return s&&(o=a&i,a>>=r,l[3]=n*o/255),o=a&i,a>>=r,l[2]=n*o,o=a&i,a>>=r,l[1]=n*o,o=a&i,a>>=r,l[0]=n*o,l}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),n=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,i+16*i,(n+16*n)/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 d(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){let 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 l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function c(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?m(e[3]):1,e}function f(e){let t=n(e)?s(e):null;return t??=d(e),t??=h(e),t}function g(e){let t=f(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function m(e){return _(e,0,1)}function p(e){return Math.round(_(e,0,255))}function _(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const y=1/2.2;function E(e){return e**2.2}function v(e){return e**y}r.d(t,["iw",0,y])},85334(e,t,r){r.d(t,{$:()=>y,IB:()=>o,Iy:()=>I,KV:()=>R,N2:()=>E,RH:()=>b,ZD:()=>v,sn:()=>T});var i=r(68197),n=r(4576),s=r(4718),a=r(34727);function o(e){return"r"in e&&"g"in e&&"b"in e}function l(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function h(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const d=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],c=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(e,t){let r,i,n=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let s=e.length,a=e[0].length,o=0;for(r=0;r<s;r++){for(o=0,i=0;i<a;i++)o+=e[r][i]*t[i];n.push(o)}return n}function g(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=f(d,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function m(e){let t=f(c,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function p(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function _(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function y(e){return o(e)?e:h(e)?function(e){return m(_(function(e){let t=e.l,r=e.c,i=e.h;return{l:t,a:r*Math.cos(i),b:r*Math.sin(i)}}(e)))}(e):u(e)?function(e){return m(_(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?m(e):l(e)?function(e){let t,r=(e.h+360)%360/60,i=e.s/100,n=e.v/100*255,s=n*i,a=s*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:s,g:a,b:0};break;case 1:t={r:a,g:s,b:0};break;case 2:t={r:0,g:s,b:a};break;case 3:t={r:0,g:a,b:s};break;case 4:t={r:a,g:0,b:s};break;case 5:case 6:t={r:s,g:0,b:a};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+n-s),t.g=Math.round(t.g+n-s),t.b=Math.round(t.b+n-s),t}(e):e}function E(e){return l(e)?e:function(e){let{r:t,g:r,b:i}=e,n=Math.max(t,r,i),s=n-Math.min(t,r,i),a=n,o=0===s?0:n===t?(r-i)/s%6:n===r?(i-t)/s+2:(t-r)/s+4,l=0===s?0:s/a;return o<0&&(o+=6),o*=60,l*=100,a*=100/255,{h:o,s:l,v:a}}(y(e))}function v(e){return u(e)?e:function(e){return p(g(e))}(y(e))}function b(e){return h(e)?e:function(e){return function(e){let t=e.l,r=e.a,i=e.b,n=Math.sqrt(r*r+i*i),s=Math.atan2(i,r);return s=s>0?s:s+2*Math.PI,{l:t,c:n,h:s}}(p(g(e)))}(y(e))}function R(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function T(e){return e.length=4,R(e),e[3]??=1,(0,a.qE)(e[3],0,1),e}function I(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new i.A(e):e)).length||1===t){let r=[],i=e[0];for(let e=0;e<t;e++)r.push(i.clone());return r}if(r.shuffle&&(e=(0,n.k4)((0,s.o8)(e),r.seed)),e.length>=t){let r=[],i=(e.length-1)/(t-1);for(let n=0;n<t;n++){let t=Math.round(n*i);r.push(e[t].clone())}return r}return function(e,t,r={}){let i=[],s=e.length-1,a=Math.ceil((t-e.length)/s);e:for(let n=0;n<s;n++){let s=e[n],o=e[n+1];for(let n=1;n<=a;n++){let l=n/(a+1);if(i.push(A(s,o,l,r)),i.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,n.k4)(i,r.seed??1)]}(e,t,r)}const S=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function A(e,t,r,s={}){let a=e.r,o=e.g,l=e.b,u=t.r,h=t.g,d=t.b,c=Math.round(a+(u-a)*r),f=Math.round(o+(h-o)*r),g=Math.round(l+(d-l)*r);if(!s.offset)return new i.A([c,f,g]);let m=(0,n.Mo)(s.seed);return new i.A([S(c,m),S(f,m),S(g,m)])}},90629(e,t,r){r.d(t,{Lz:()=>a,PN:()=>o,cr:()=>l,gs:()=>h,r_:()=>d,tc:()=>u}),r(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,n=o(1),s=a(1);function a(e){return e?e/72*96:0}function o(e){return e?72*e/96:0}function l(e){if("string"==typeof e){let t=e.match(i);if(t){let r=Number(t[1]),i=t[3]&&t[3].toLowerCase(),n=e.startsWith("-"),s="px"===i?o(r):r;return n?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function h(e=0,t=0){return[e,t]}function d(e=0,t=0,r=0){return[e,t,r]}r.d(t,["L7",0,s,"ps",0,n])},4197(e,t,r){r.d(t,{Vj:()=>a,cj:()=>s,jh:()=>n});var i=r(9093);function n(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function s(e){return[...e]}function a(e){let t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>x,C:()=>a,DC:()=>c,Ej:()=>E,Ie:()=>S,Jt:()=>A,Lu:()=>b,Ne:()=>R,RF:()=>d,TF:()=>_,VL:()=>g,aI:()=>w,fA:()=>o,gE:()=>u,gX:()=>y,hZ:()=>I,iT:()=>f,is:()=>M,pg:()=>v,uJ:()=>p,vI:()=>T,vY:()=>l,vt:()=>s,w1:()=>h,yr:()=>m}),r(35522);var i=r(5443),n=(r(19419),r(4197));function s(e=C){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,i,n,a,o=s()){return o[0]=e,o[1]=t,o[2]=r,o[3]=i,o[4]=n,o[5]=a,o}function l(e,t=s()){return function(e,t,r,i=s()){return I(i,N),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),a=Math.min(a,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=a,e[3]=o,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function u(e,t=(0,n.jh)(24)){let[r,i,s,a,o,l]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=o,t[8]=s,t[9]=r,t[10]=o,t[11]=l,t[12]=a,t[13]=i,t[14]=s,t[15]=a,t[16]=i,t[17]=l,t[18]=a,t[19]=o,t[20]=s,t[21]=a,t[22]=o,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new i.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new i.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function d(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,r,i]){!function(e,t,r,i){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],i),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],i)}(e,t,r,i)}function g(e){return e[0]>=e[3]?0:e[3]-e[0]}function m(e){return e[1]>=e[4]?0:e[4]-e[1]}function p(e){return e[2]>=e[5]?0:e[5]-e[2]}function _(e){let t=g(e),r=p(e),i=m(e);return t*t+r*r+i*i}function y(e,t=[0,0,0]){return t[0]=e[0]+g(e)/2,t[1]=e[1]+m(e)/2,t[2]=e[2]+p(e)/2,t}function E(e,t=[0,0,0]){return t[0]=g(e),t[1]=m(e),t[2]=p(e),t}function v(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function b(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function R(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function T(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function I(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function S(e){return e?I(e,N):s(N)}function A(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function x(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=i,e[4]=n,e[5]=1/0,e}function M(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const N=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];s(),r.d(t,["qv",0,N,"v_",0,C])},50498(e,t,r){var i=r(66552),n=r(5443),s=r(91075),a=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),d=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),c={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:a.A,point:o.A,polyline:u.A,polygon:l.A}},f=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,d,"gy",0,h,"iI",0,f,"yR",0,c])},42521(e,t,r){r.r(t),r.d(t,{default:()=>Ge});var i=r(32198),n=r(4576),s=r(60999),a=r(69540),o=r(49186),l=r(36563),u=r(44208),h=r(53966),d=r(25728),c=r(17676),f=r(36708),g=r(91429),m=r(87024),p=r(4146),_=r(52136),y=r(18768),E=r(69208),v=r(34287),b=r(8303),R=r(25036),T=r(58947),I=r(10873),S=r(10292),A=r(58083),x=r(9093),M=r(35522),w=r(51850),N=r(34727),C=r(37539),O=r(79258);function L(e,t,r,i){let n=i+t;if(n<i/2||r>n)return Number.MAX_VALUE;let s=Math.abs(U*e)+Math.asin(r/n);return s>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(s)}const D=(0,w.vt)(),U=(0,N.kU)(1);var F=r(27993),P=r(16930),k=r(98764);(0,w.vt)();var q=r(71351),G=r(28540),V=r(19419),Q=r(89707);class j extends Q.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new G.i(0,0,0,-1),this._serviceMbsInRenderSR=new G.i(0,0,0,-1),this._serviceMbsElevationUpdateExtent=null,this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),null!=this._serviceMbsElevationUpdateExtent&&(0,V.Ie)(this._serviceMbsElevationUpdateExtent),this._serviceMbsInRenderSR}get serviceMbsElevationUpdateExtent(){return this._serviceMbsElevationUpdateExtent??=(0,V.Ie)()}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),null!=this._serviceMbsElevationUpdateExtent&&(0,V.Ie)(this._serviceMbsElevationUpdateExtent),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._serviceMbsElevationUpdateExtent=e._serviceMbsElevationUpdateExtent??=(0,V.Ie)(),this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class H extends j{constructor(e,t,r,i,n,s,a,o,l,u,h){super(e,r),this.index=t,this.childCount=i,this.level=n,this.resources=s,this.version=a,this.lodMetric=o,this.maxError=l,this.numFeatures=u,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new W,this.serviceObbInIndexSR=h}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class W{constructor(){this._data=[0,0,0,W.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=W.invalidRadius}get valid(){return this._data[3]!==W.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;let i=this.getAxis($),{center:n,radius:s}=e.boundingSphere,a=s+r;return 1===t?this.radius>B||function(e,t,r,i){let n=(0,M.Bw)(r);if(n<=i)return!0;let s=(0,M.Om)(e,r);if(s<=0)return-s<=i;let a=(0,N.qE)(s/n,-1,1),o=Math.sqrt(1-a*a),l=(0,N.qE)(i/n,0,1);return o*Math.sqrt(1-l*l)-l*a<=t}(i,this.radius,n,a):function(e,t,r,i){let n=r[0]-e[0],s=r[1]-e[1],a=t+i;return n*n+s*s<=a*a}(i,this.radius,n,a)&&function(e,t,r,i,n){for(let s of n){let n=s[0],a=s[1],o=s[2],l=o>0?r:i;if(n*e[0]+a*e[1]+o*l+s[3]-Math.hypot(n,a)*t>0)return!1}return!0}(i,this.radius,n[2]-a,n[2]+a,e.planes)}}const $=(0,w.vt)(),B=.9;var z=r(25992),Z=r(66480),Y=r(57005),K=r(4431),X=r(62747),J=r(58682),ee=r(92359);class te{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._subtaskAbortController=new AbortController,this._highest=-1/0,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,Z.Rm)(e),this._vertexSpatialReference=(0,Z.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,k.lO)(t):t.isGeographic?P.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,C.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,C.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(ee.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){let e={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(e,this.frameTask,!1);try{let e=this._descriptor;if("point"!==e.geometry.type)throw new o.A("elevation-query:invalid-geometry","Only point geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new o.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");let t=await e.project(this._indexSpatialReference,this._signal);(0,c.Te)(this._signal),t??this._throwSpatialReferenceMismatchError();let r=t.coordinates[0],i=function(e,t,r,i,n){let s=(0,w.fA)(e,t,r),a=(0,w.fA)(e,t,r-1e3),o=(0,w.vt)(),l=(0,w.vt)();return(0,F.F)(s,i,o,n)&&(0,F.F)(a,i,l,n)?(0,q.Cr)(o,l):null}(r.x,r.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);return i??this._throwSpatialReferenceMismatchError(),this._queryRay=i,await this.visitRoot(),(0,c.Te)(this._signal),r.z=this._highest===-1/0?ne:this._highest,t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new o.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e){let t=this._queryRay,r=new Y.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),r.intersectRay(t.origin,t.direction)}intersectsQueryBounds(e){if(null==e)return!0;let t=this._queryRay;if(null!=e.obb)return this._intersectsQueryObb(Y.ab.fromJSON(e.obb));let r=new G.i;return!function(e,t,r,i){if(null==e||null==t||null==i)return!1;let n=(0,C.Tp)(t,i);if(null==n?.projector)return!1;if(n.projector===C.pO)return r.copyFrom(e),!0;let{source:s,dest:a,projector:o}=n;if(3===a.spatialReferenceId){let t=C.w5[s.spatialReferenceId][2];return null!=t&&(t(e.center,0,D,0),(0,C.s7)(D,0,r.center,0),r.radius=L(D[1],e.center[2],e.radius,O.$O.radius),!0)}if(2!==s.spatialReferenceId&&5!==s.spatialReferenceId||11!==a.spatialReferenceId){o(e.center,0,r.center,0);let t=s.metersPerUnit??1,i=a.metersPerUnit??1;r.radius=e.radius*t/i}else{let t=C.w5[s.spatialReferenceId][1],i=C.w5[1][11],n=e.radius;null!=t&&null!=i&&(n=L(e.center[1],e.center[2],e.radius,O.$O.radius)),o(e.center,0,r.center,0),r.radius=n}return!0}(new G.i(e.mbs),this._indexSpatialReference,r,this._intersectionSpaceSpatialReference)||r.intersectRay(t)}async _processLeafNode(e){let t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);if((0,c.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor)return;let r=await this.transformNode(e,t);(0,c.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{this._highest=this.intersectTransformedGeometry(r,this._highest,this._options.elevationOffset)},this._signal)}async transformNode(e,t){let r=e.serviceMbsInIndexSR;if(null==r)return null;let i=(0,z.C)(r,0,se,this._indexSpatialReference,this._intersectionSpaceSpatialReference),n={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[ae],globalTrafo:i,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:se,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},s=await this._layer.processElevationQueryGeometry(n,this._signal);return(0,c.Te)(this._signal),s}intersectTransformedGeometry(e,t,r){let i=e.globalTrafo;if(null==(0,A.B8)(oe,i))return t;let n=this._queryRay,s=(0,M.Z0)(le,n.origin,oe),a=(0,M.WQ)(ue,n.origin,n.direction),o=(0,M.Z0)(he,a,oe),l=(0,M.jb)(de,o,s),{data:u,indices:h}=e.transformedGeometry.positionData,d=h.length/3,c=t;return(0,J.h7)(s,l,0,d,h,u,3,!1,e=>{let t=(0,M.hs)(ce,l,e);(0,M.WQ)(t,t,s);let n=(0,M.Z0)(fe,t,i),a=ge;if((0,F.F)(n,this._intersectionSpaceSpatialReference,a,this._layer.spatialReference)){let e=a[2]+r;c=Math.max(c,e)}}),c}async requestJSON(e){let t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,c.Te)(this._signal),t}}class re extends te{constructor(e,t,r,i){super(e,t,r),this._pendingPages=new Map,this._loadedPages=new Map,this._pageSize=i.pageSize,this._rootIndex=i.rootIndex,this._urlPrefix=i.urlPrefix;let n=this._pageId(this._rootIndex),s=this._rootIndex-n*this._pageSize,a=Y.ab.fromJSON(i.rootPage.nodes[s].obb);this._rootRayOriginZ=a.centerZ+a.radius+1,this._loadedPages.set(n,i.rootPage)}visitRoot(){return this._visitNode(this._rootIndex)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){let t=this._loadedPages.get(e);if(null!=t)return Promise.resolve(t);let r=this._pendingPages.get(e);if(null!=r)return r;let i=this.requestJSON(`${this._urlPrefix}${e}`);return this._pendingPages.set(e,i),i.then(t=>{this._loadedPages.set(e,t),this._pendingPages.delete(e)},()=>this._pendingPages.delete(e)),i}async _visitNode(e){let t=this._pageId(e),r=await this.getPage(t);(0,c.Te)(this._signal);let i=r.nodes[e-t*this._pageSize],n=Y.ab.fromJSON(i.obb);if(!this._intersectsQueryObb(n))return;let{children:s}=i;if(null!=s&&s.length>0)return await Promise.all(s.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let a=this._createNode(e,i,n);null!=a&&(await this._processLeafNode(a),(0,c.Te)(this._signal))}_createNode(e,t,r){let{mesh:i}=t;if(null==i?.geometry)return null;let n=new G.i(r.getCenter((0,w.vt)()),r.radius),{geometry:s,material:a}=i;return new H(`${e}`,e,n,t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${s.resource}`,geometryDefinition:s.definition,materialDefinition:a?.definition??-1},"",0,0,s.featureCount??null,r)}}class ie extends te{constructor(e,t,r,i){super(e,t,r),this._rootNode=i.rootNode,this._urlPrefix=i.urlPrefix}visitRoot(){return this.intersectsQueryBounds(this._rootNode)?this._visitNodeData(this._rootNode,null!=this._rootNode.obb):Promise.resolve()}getRootRayOriginZ(){return this._rootNode.mbs[2]+this._rootNode.mbs[3]+1}_visitNode(e){return this.intersectsQueryBounds(e)?this._visitNodeAsync(e):Promise.resolve()}async _visitNodeAsync(e){let t=await this.requestJSON(`${this._urlPrefix}${e.id}`);(0,c.Te)(this._signal),await this._visitNodeData(t,null!=e.obb),(0,c.Te)(this._signal)}async _visitNodeData(e,t){if(!t&&null!=e.obb&&!this._intersectsQueryObb(Y.ab.fromJSON(e.obb)))return;let{children:r}=e;if(null!=r&&r.length>0)return await Promise.all(r.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let i=this._createNode(e);null!=i&&(await this._processLeafNode(i),(0,c.Te)(this._signal))}_createNode(e){let{geometryData:t,id:r}=e;if(null==t||0===t.length)return null;let i=null==e.obb?null:Y.ab.fromJSON(e.obb),n=new G.i(e.mbs);return new H(r,0,n,e.children?.length??0,0,{hasSharedResource:null!=e.sharedResource,isEmpty:!1,geometry:r,geometryDefinition:0},e.version??"",0,0,null,i)}}const ne=Number.MAX_VALUE,se="none",ae=(0,K.U)((0,X.hH)(new X.W7(!1,!1,0))),oe=(0,x.vt)(),le=(0,w.vt)(),ue=(0,w.vt)(),he=(0,w.vt)(),de=(0,w.vt)(),ce=(0,w.vt)(),fe=(0,w.vt)(),ge=(0,w.vt)();var me=r(50805),pe=r(58325),_e=r(24212),ye=r(80215),Ee=r(97159),ve=r(16215),be=r(98697),Re=r(56507),Te=r(97768),Ie=r(50075);class Se{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,Ie._i)(e)}request(e,t,r){let i=new AbortController,n=(0,c.NY)(r,()=>i.abort()),s={...Ie.Fz,signal:i.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},a=(0,Re.A)(e,s),o={abortController:i,abortHandle:n};return this._activeRequests.add(o),a.then(({data:e})=>e).finally(()=>{o.abortController=null,o.abortHandle=(0,Te.xt)(o.abortHandle),this._activeRequests.delete(o)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,Te.DC)(e.abortController),e.abortHandle=(0,Te.xt)(e.abortHandle)}),this._activeRequests.clear()}}var Ae=r(4718),xe=r(84952),Me=r(59418),we=r(85334);r(91829),r(73941),r(76200);var Ne=r(74810),Ce=r(49788);function Oe(e){return e.sort((e,t)=>e.encoding-t.encoding)}const Le={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},De={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};function Ue(e){let t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,i=t?e.materialDefinitions?.[t]:null,n=r?e.textureDefinitions?.[r]:null,s=Fe();if(null!=i){let e=i.params;e.diffuse&&((0,we.KV)(e.diffuse),s.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(s.doubleSided=e.doubleSided,s.cullFace=e.doubleSided?0:2),("none"===e.cullFace||"front"===e.cullFace||"back"===e.cullFace)&&(s.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(s.metallicRoughness.baseColorFactor[3]=(0,N.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||s.metallicRoughness.baseColorFactor[3]<1)&&(s.alphaMode="blend")}let a=[];if(null!=n){n.wrap&&("repeat"===n.wrap[0]||"repeat"===n.wrap[1])&&(s.wrapTextures=!0);let e=1;"rgba"===n.channels&&(s.alphaMode="blend",e|=32);let t=n.images.length-1,r=n.images[t],i=e=>e?.split("/").pop(),o=Array.isArray(n.encoding)?Oe(n.encoding.map((e,t)=>({name:i(r.href[t]),encoding:De[e]||0}))):[{name:i(r.href),encoding:De[n.encoding]||0}];a.push({id:0,usage:e,encodings:o}),s.metallicRoughness.baseColorTextureId=0}return{material:s,textures:a}}const Fe=()=>({alphaMode:"opaque",alphaCutoff:Ce.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0});class Pe{constructor(e,t,r,i,n,s){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=i,this._requiredAttributes=n,this._options=s,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){let t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){let i=new Map,n=(e,t)=>{if(null==e)return-1;let r=i.get(e.id);if(r)return r.usage|=t,r.id;let n=i.size;return i.set(e.id,{id:n,usage:t}),n},s=t.pbrMetallicRoughness,a=s?.baseColorFactor?(0,we.sn)(s.baseColorFactor):null,o=t.emissiveFactor,l=r&&0===s?.metallicFactor||(0,Ne.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:s?.metallicRoughnessTexture,metallicFactor:s?.metallicFactor,roughnessFactor:s?.roughnessFactor}),u=l?Ne.Bt[0]:s?.metallicFactor??Ne.mb[0],h=l?Ne.Bt[1]:s?.roughnessFactor??Ne.mb[1],d="mask"===t.alphaMode?33:1,c={baseColorFactor:a?[a[0],a[1],a[2],a[3]]:[1,1,1,1],baseColorTextureId:n(s?.baseColorTexture,d),metallicRoughnessTextureId:n(s?.metallicRoughnessTexture,2),metallicFactor:u,roughnessFactor:h},f={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:+("front"===t.cullFace),normalTextureId:n(t.normalTexture,4),emissiveTextureId:n(t.emissiveTexture,16),occlusionTextureId:n(t.occlusionTexture,8),emissiveFactor:o?[o[0],o[1],o[2]]:[0,0,0],metallicRoughness:c,wrapTextures:!1,hasParametersFromSource:l},g=[];return i.forEach(({usage:t},r)=>{let i=null!=e&&e[r]&&e[r].formats,n=i?Oe(i.map(({name:e,format:t})=>({name:e,encoding:Le[t]}))):[];g.push({id:r,usage:t,encodings:n})}),{material:f,textures:g}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){let i=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(i,"array-buffer",r).then(e=>(0,Me.m0)(t,e))}async loadAttributes(e,t,r){let i=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),n={};for(let r=0;r<t.length;++r){let s=i[r],a=t[r];if("fulfilled"===s.status){let e=s.value;n[a.name]=e}else{let t=s.reason;(0,c.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${a.name}' on node '${e.id}'`,t)}}return n}async loadNodeData(e,t){let r=null!=this._requiredAttributes&&e.resources.attributes?(0,s.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:i,bufferIndex:n}=function(e,t){let r={bufferDefinition:null,bufferIndex:0},i=t.resources.geometryDefinition;if(null==e||null==i||i<0)return r;let n=i>=0?e[i].geometryBuffers:null;if(null==n)return r;for(let e=0;e<n.length;e++){let t=n[e];if(null!=t.compressedAttributes){if("draco"===t.compressedAttributes.encoding&&!(0,u.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}else r.bufferIndex=e,r.bufferDefinition=n[e]}return r}(this._geometryDefinitions,e),a=!!e.resources.geometry,o=a?(0,s.Ke)(this._loadGeometry(e.resources.geometry,n,t)):null,l=e.resources.hasSharedResource?await this._loadShared(e,t):null,h=e.resources.materialDefinition,d=this._materialAndTextures&&null!=h&&h>=0?this._materialAndTextures[h]:null==l?null:Ue(l),c=d?.material,f=d?.textures??[],g=`${e.id}`,m=!a&&this._options.loadFeatureData,p=m?await this._loadFeatureData(g,t):null,_=m?function(e){if(!e)return null;for(let t of e.featureData){let e=t.geometries;if(null!=e)for(let r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(p):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:c}}],featureDataPosition:[0,0,0]},y=null==_?function(e){if(!e)return null;let t=[];for(let r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(p):null,E=f.length>0?(0,s.Ke)(this.loadTextures(e,f,t)):null,v=null,b=null;if(o){v=(0,s.QA)(await o);let e=function(e,t){if(!e||!t?.materialDefinitions)return e;let r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,Ae.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,l);b=(0,Me.qs)(i,e)}let R=E?(0,s.QA)(await E):null,T=r?(0,s.QA)(await r):{},I=T?{attributeData:T,loadedAttributes:this._requiredAttributes}:null;if(null!=_)return{geometryData:_,attributeDataInfo:I,geometryBuffer:v,geometryDescriptor:b,requiredTextures:f,textureData:R};if(null!=y)return{pointData:y,attributeDataInfo:I,geometryBuffer:v,geometryDescriptor:b,requiredTextures:f,textureData:R};throw Error()}static _addAbsoluteHrefTexture(e,t){let r=e.textureDefinitions;if(null!=r)for(let e of Object.keys(r))for(let i of r[e].images)i.hrefConcat=Array.isArray(i.href)?i.href.map(e=>(0,xe.s2)(e,t)):(0,xe.s2)(i.href,t)}static _fixTextureEncodings(e){let t=e.textureDefinitions;if(null!=t)for(let e in t){let r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){let t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{let e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};let r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,i=await this._requester.request(r,"json",t);return Pe._fixTextureEncodings(i),Pe._addAbsoluteHrefTexture(i,r),i}_loadTexture(e,t,r,i,n){return 4===i||1===i||2===i?this._requester.request(e,"array-buffer",n).then(e=>({id:t,usage:r,data:e,encoding:i})):this._requester.request(e,"image",n).then(e=>({id:t,usage:r,data:e,encoding:i}))}loadTextures(e,t,r){let i=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&i))return null;let n=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==n)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();let s=e.resources.texture||e.id,a=`${this._layerUrl}/nodes/${s}/textures/${n.name}`;return this._loadTexture(a,t.id,t.usage,n.encoding,r)}))}_loadFeatureData(e,t){let r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){let i=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(i,"array-buffer",r)}}var ke=r(36005);let qe=class extends((0,T.w6)((0,y.b)((0,v.q)((0,b.A)((0,R.j)((0,d.M)((0,E.d)((0,_.p)((0,a.OU)(p.A)))))))))){constructor(e){super(e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();let e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,e?.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,f.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},f.OH),(0,f.wB)(()=>this.modifications,()=>this._modificationsGeneration++,f.OH),(0,f.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),f.OH)])}readModifications(e,t,r){this._modificationsSource={url:(0,Ee.f)(e,r),context:r}}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new be.Cm((e,t)=>ee.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){let a={stack:[],error:void 0,hasError:!1};try{let u=r?.noDataValue??Number.MAX_VALUE,h=this._elevationQueryWorker,d=new AbortController;e.addHandles((0,l.rE)(d),d),(0,i.mS)(a,(0,l.Bf)((0,l.hA)(()=>e.removeHandles(d))),!1);let f=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,d.signal].filter(n.Ru));await this.load({signal:f}),(0,c.Te)(f);let g=S.q.fromGeometry(t),m={signal:f,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){let e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=(0,s.Ke)(h.setLegacySchema(this._elevationQueryWorkerContext,e)))}let p=await async function(e,t,r){let i=await e.indexInfo;if((0,c.Te)(r.signal),null==i)throw new o.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===i.type?new re(e,t,r,i).promise:new ie(e,t,r,i).promise}(this,g,m);(0,c.Te)(f);let _=p.coordinates[0].z===ne;_&&(p.coordinates[0].z=u);let y=await p.project(t.spatialReference,f);(0,c.Te)(f);let E=y??g.clone(),v={geometry:E.export(),noDataValue:u};return r?.returnSampleInfo&&(v.sampleInfo=E.coordinates.map(()=>({demResolution:_?-1:1}))),v}catch(e){a.error=e,a.hasError=!0}finally{(0,i.hk)(a)}}async queryElevationForGround(e,t){let r=S.q.fromGeometry(e),i=Ve(e),{view:n,...s}=t;if(null!=i&&"3d"===n?.type){let e=await this.queryElevation(n,i,s),t=S.q.fromGeometry(e.geometry),a=t.coordinates.map((t,r)=>({demResolution:e.sampleInfo?.[r]?.demResolution??(t.z===e.noDataValue?-1:1),source:this}));return{geometry:r.clone(t.coordinates).export(),noDataValue:e.noDataValue,sampleInfo:a}}return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:r.coordinates.map(()=>({demResolution:-1,source:this}))}}_abortElevationQueriesAfterDependencyChange(){let e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){let r=await this._elevationQueryWorkerSetup;return null!=r&&(0,s.QA)(r),(0,c.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){let t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,c.QP)(e)}if((0,c.Te)(t),await this._fetchService(t),(0,c.Te)(t),null!=this._modificationsSource){let r=await pe.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,c.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,c.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"})}get isUsedAsGroundLayer(){return!(0,u.A)("enable-feature:im-as-ground")||(0,ve.S)(this.parent)||(0,ye.Q)(this.parent)}get replacesTerrain(){return!1}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new o.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new Se(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new Pe(this,this.elevationQueryDataRequester,h.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){let t="Integrated mesh layers";(0,_e.XF)(h.A.getLogger(this),(0,_e.B)(t,"absolute-height",e)),(0,_e.XF)(h.A.getLogger(this),(0,_e.tW)(t,e))}};(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0})],qe.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"]})],qe.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:["IntegratedMeshLayer"]})],qe.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],qe.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:me.W4,readOnly:!0,clonable:!1})],qe.prototype,"nodePages",void 0),(0,i.Cg)([(0,g.MZ)({type:[me.uV],readOnly:!0,clonable:!1})],qe.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[me.Ot],readOnly:!0,clonable:!1})],qe.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[me.L0],readOnly:!0,clonable:!1})],qe.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],qe.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,clonable:e=>e?.clone()??e}),(0,m.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],qe.prototype,"modifications",void 0),(0,i.Cg)([(0,g.MZ)({clonable:e=>e?{...e}:null})],qe.prototype,"_modificationsSource",void 0),(0,i.Cg)([(0,ke.w)(["web-scene","portal-item"],"modifications")],qe.prototype,"readModifications",null),(0,i.Cg)([(0,g.MZ)(I.Yj)],qe.prototype,"elevationInfo",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],qe.prototype,"path",void 0),(0,i.Cg)([(0,g.MZ)({clonable:!1})],qe.prototype,"_elevationQueryWorker",null),(0,i.Cg)([(0,g.MZ)()],qe.prototype,"_modificationsGeneration",void 0),(0,i.Cg)([(0,g.MZ)()],qe.prototype,"memoizedElevationQueryDependencies",null),(0,i.Cg)([(0,g.MZ)()],qe.prototype,"isUsedAsGroundLayer",null),(0,i.Cg)([(0,g.MZ)()],qe.prototype,"replacesTerrain",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],qe.prototype,"elevationQueryDataRequester",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],qe.prototype,"elevationQueryNodeLoader",null),qe=(0,i.Cg)([(0,g.$K)("esri.layers.IntegratedMeshLayer")],qe);const Ge=qe;function Ve(e){return e instanceof S.q?Ve(e.geometry):"point"===e.type?e:null}},85707(e,t,r){var i=r(32198),n=r(91429),s=r(54239);r.d(t,["a",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,i.Cg)([(0,n.MZ)({readOnly:!0,type:s.A})],r.prototype,"heightModelInfo",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),n=r(53966),s=r(84952),a=r(60694),o=r(10873);function l(e){let{nonStandardUrlAllowed:t=!1,separator:r}=e??{},s=(0,i.o8)(o.OZ),l=s.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,n){(0,a.LS)(this,e,r,t,n)}),{...s,set:function(e){if(null==e)return void this._set("url",e);let r=(0,a.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:n.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){let{separator:r}=t??{},i=(0,s.An)(e.url);return null!=i&&(null==e.dynamicDataSource?null!=e.layerId&&(i.path=(0,s.fj)(i.path,r??"",e.layerId.toString())):i.path=(0,s.fj)(i.path,"dynamicLayer")),i}},89707(e,t,r){r.d(t,{H:()=>i});class i{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){let t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),i=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,i}expandElevationRangeValues(e,t){let r=Math.min(this.minElevation,e),i=Math.max(this.maxElevation,t),n=r!==this.minElevation||i!==this.maxElevation;return this.minElevation=r,this.maxElevation=i,n}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>s,hH:()=>a});var i=r(1843),n=r(65786);n.Y;class s extends n.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function a(e){let t=(0,i.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>c,W6:()=>u}),r(4576),r(71511),r(44208),r(53966);var i=r(17676),n=(r(36708),r(44794),r(78659)),s=r(32198),a=r(69622),o=r(91429);let l=class extends a.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,s.Cg)([(0,o.MZ)()],l.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,s.Cg)([(0,o.MZ)()],l.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),l=(0,s.Cg)([(0,o.$K)("esri.views.support.debugFlags")],l),new l,r(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_FILTER_HIGHLIGHT:"feature filter highlight",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_FILTER_HIGHLIGHT,2],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,n.l5)(6.5),(0,n.l5)(1),(0,n.l5)(30),(0,n.l5)(1e3/30),(0,n.l5)(100),Symbol.dispose;const h=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this._enabled&&this._budget!==1/0&&this.elapsed>=this._budget,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};h.enabled=!1;class d{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,i.G4)(t)){let e=(0,i.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,i.z7)(e(h))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,i.G4)(t)){let e=(0,i.NK)();if(r)return r(e);throw e}let n=e(h);for(;;){let e=n.next(h),s=(0,i.$X)(e)?await e:e;if((0,i.G4)(t)){let e=(0,i.NK)();if(r){let t=r(e),s=n.return(null);return(0,i.$X)(s)&&await(0,i.QZ)(s),t}let t=n.throw(e);throw(0,i.$X)(t)&&await(0,i.QZ)(t),e}if(s.done)return s.value}}}const c=new d}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7915],{68197(e,t,r){r.d(t,{A:()=>h});var i=r(40876),n=r(4576),s=r(34727),a=r(78888);function o(e){return(0,s.qE)((0,a.Vr)(e),0,255)}function l(e,t){let 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){let r=(0,i.lT)(e);return r?h.fromArray(r,t):null}static fromHex(e,t=new h){let 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){let r=(0,i.Eq)(e);return r?h.fromArray(r,t):null}static fromJSON(e){return null==e?void 0:new h([e[0],e[1],e[2],(e[3]??255)/255])}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?1:this.a,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){let r=e instanceof h?e:new h(e),i=u(this),n=u(r);return(Math.max(i,n)+.05)/(Math.min(i,n)+.05)<t}setColor(e){if("string"==typeof e)h.fromString(e,this);else if((0,n.yc)(e))h.fromArray(e,this);else{let 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){let t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${n?l(Math.round(255*this.a),i):""}`;return t?s.toUpperCase():s}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){let 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){let t=o(this.r),r=o(this.g),i=o(this.b);return 0===e||1!==this.a?[t,r,i,o(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:()=>f,G1:()=>m,Q6:()=>E,TS:()=>s,V6:()=>n,Vm:()=>g,ay:()=>l,c1:()=>p,c4:()=>a,j5:()=>u,lT:()=>d,oW:()=>h,xV:()=>v});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 n(e){return!!i[e]||!!i[e.toLowerCase()]}function s(e){return i[e]??i[e.toLowerCase()]}function a(e){return[...s(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;let 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 l(e,t,r,i=1){let n=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,a=2*r-s;return[Math.round(255*o(a,s,n+1/3)),Math.round(255*o(a,s,n)),Math.round(255*o(a,s,n-1/3)),i]}function u(e){let t=e.length>5,r=t?8:4,i=(1<<r)-1,n=t?1:17,s=t?9===e.length:5===e.length,a=Number("0x"+e.slice(1));if(isNaN(a))return null;let o,l=[0,0,0,1];return s&&(o=a&i,a>>=r,l[3]=n*o/255),o=a&i,a>>=r,l[2]=n*o,o=a&i,a>>=r,l[1]=n*o,o=a&i,a>>=r,l[0]=n*o,l}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),n=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,i+16*i,(n+16*n)/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 d(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){let 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 l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function c(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?m(e[3]):1,e}function f(e){let t=n(e)?s(e):null;return t??=d(e),t??=h(e),t}function g(e){let t=f(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function m(e){return _(e,0,1)}function p(e){return Math.round(_(e,0,255))}function _(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const y=1/2.2;function E(e){return e**2.2}function v(e){return e**y}r.d(t,["iw",0,y])},85334(e,t,r){r.d(t,{$:()=>y,IB:()=>o,Iy:()=>I,KV:()=>R,N2:()=>E,RH:()=>b,ZD:()=>v,sn:()=>T});var i=r(68197),n=r(4576),s=r(4718),a=r(34727);function o(e){return"r"in e&&"g"in e&&"b"in e}function l(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function h(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const d=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],c=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(e,t){let r,i,n=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let s=e.length,a=e[0].length,o=0;for(r=0;r<s;r++){for(o=0,i=0;i<a;i++)o+=e[r][i]*t[i];n.push(o)}return n}function g(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=f(d,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function m(e){let t=f(c,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function p(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function _(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function y(e){return o(e)?e:h(e)?function(e){return m(_(function(e){let t=e.l,r=e.c,i=e.h;return{l:t,a:r*Math.cos(i),b:r*Math.sin(i)}}(e)))}(e):u(e)?function(e){return m(_(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?m(e):l(e)?function(e){let t,r=(e.h+360)%360/60,i=e.s/100,n=e.v/100*255,s=n*i,a=s*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:s,g:a,b:0};break;case 1:t={r:a,g:s,b:0};break;case 2:t={r:0,g:s,b:a};break;case 3:t={r:0,g:a,b:s};break;case 4:t={r:a,g:0,b:s};break;case 5:case 6:t={r:s,g:0,b:a};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+n-s),t.g=Math.round(t.g+n-s),t.b=Math.round(t.b+n-s),t}(e):e}function E(e){return l(e)?e:function(e){let{r:t,g:r,b:i}=e,n=Math.max(t,r,i),s=n-Math.min(t,r,i),a=n,o=0===s?0:n===t?(r-i)/s%6:n===r?(i-t)/s+2:(t-r)/s+4,l=0===s?0:s/a;return o<0&&(o+=6),o*=60,l*=100,a*=100/255,{h:o,s:l,v:a}}(y(e))}function v(e){return u(e)?e:function(e){return p(g(e))}(y(e))}function b(e){return h(e)?e:function(e){return function(e){let t=e.l,r=e.a,i=e.b,n=Math.sqrt(r*r+i*i),s=Math.atan2(i,r);return s=s>0?s:s+2*Math.PI,{l:t,c:n,h:s}}(p(g(e)))}(y(e))}function R(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function T(e){return e.length=4,R(e),e[3]??=1,(0,a.qE)(e[3],0,1),e}function I(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new i.A(e):e)).length||1===t){let r=[],i=e[0];for(let e=0;e<t;e++)r.push(i.clone());return r}if(r.shuffle&&(e=(0,n.k4)((0,s.o8)(e),r.seed)),e.length>=t){let r=[],i=(e.length-1)/(t-1);for(let n=0;n<t;n++){let t=Math.round(n*i);r.push(e[t].clone())}return r}return function(e,t,r={}){let i=[],s=e.length-1,a=Math.ceil((t-e.length)/s);e:for(let n=0;n<s;n++){let s=e[n],o=e[n+1];for(let n=1;n<=a;n++){let l=n/(a+1);if(i.push(A(s,o,l,r)),i.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,n.k4)(i,r.seed??1)]}(e,t,r)}const S=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function A(e,t,r,s={}){let a=e.r,o=e.g,l=e.b,u=t.r,h=t.g,d=t.b,c=Math.round(a+(u-a)*r),f=Math.round(o+(h-o)*r),g=Math.round(l+(d-l)*r);if(!s.offset)return new i.A([c,f,g]);let m=(0,n.Mo)(s.seed);return new i.A([S(c,m),S(f,m),S(g,m)])}},90629(e,t,r){r.d(t,{Lz:()=>a,PN:()=>o,cr:()=>l,gs:()=>h,r_:()=>d,tc:()=>u}),r(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,n=o(1),s=a(1);function a(e){return e?e/72*96:0}function o(e){return e?72*e/96:0}function l(e){if("string"==typeof e){let t=e.match(i);if(t){let r=Number(t[1]),i=t[3]&&t[3].toLowerCase(),n=e.startsWith("-"),s="px"===i?o(r):r;return n?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function h(e=0,t=0){return[e,t]}function d(e=0,t=0,r=0){return[e,t,r]}r.d(t,["L7",0,s,"ps",0,n])},4197(e,t,r){r.d(t,{Vj:()=>a,cj:()=>s,jh:()=>n});var i=r(9093);function n(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function s(e){return[...e]}function a(e){let t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>x,C:()=>a,DC:()=>c,Ej:()=>E,Ie:()=>S,Jt:()=>A,Lu:()=>b,Ne:()=>R,RF:()=>d,TF:()=>_,VL:()=>g,aI:()=>w,fA:()=>o,gE:()=>u,gX:()=>y,hZ:()=>I,iT:()=>f,is:()=>M,pg:()=>v,uJ:()=>p,vI:()=>T,vY:()=>l,vt:()=>s,w1:()=>h,yr:()=>m}),r(35522);var i=r(5443),n=(r(19419),r(4197));function s(e=C){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,i,n,a,o=s()){return o[0]=e,o[1]=t,o[2]=r,o[3]=i,o[4]=n,o[5]=a,o}function l(e,t=s()){return function(e,t,r,i=s()){return I(i,N),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),a=Math.min(a,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=a,e[3]=o,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function u(e,t=(0,n.jh)(24)){let[r,i,s,a,o,l]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=o,t[8]=s,t[9]=r,t[10]=o,t[11]=l,t[12]=a,t[13]=i,t[14]=s,t[15]=a,t[16]=i,t[17]=l,t[18]=a,t[19]=o,t[20]=s,t[21]=a,t[22]=o,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new i.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new i.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function d(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,r,i]){!function(e,t,r,i){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],i),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],i)}(e,t,r,i)}function g(e){return e[0]>=e[3]?0:e[3]-e[0]}function m(e){return e[1]>=e[4]?0:e[4]-e[1]}function p(e){return e[2]>=e[5]?0:e[5]-e[2]}function _(e){let t=g(e),r=p(e),i=m(e);return t*t+r*r+i*i}function y(e,t=[0,0,0]){return t[0]=e[0]+g(e)/2,t[1]=e[1]+m(e)/2,t[2]=e[2]+p(e)/2,t}function E(e,t=[0,0,0]){return t[0]=g(e),t[1]=m(e),t[2]=p(e),t}function v(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function b(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function R(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function T(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function I(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function S(e){return e?I(e,N):s(N)}function A(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function x(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=i,e[4]=n,e[5]=1/0,e}function M(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!M(e)||!M(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const N=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];s(),r.d(t,["qv",0,N,"v_",0,C])},50498(e,t,r){var i=r(66552),n=r(5443),s=r(91075),a=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),d=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),c={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:a.A,point:o.A,polyline:u.A,polygon:l.A}},f=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,d,"gy",0,h,"iI",0,f,"yR",0,c])},42521(e,t,r){r.r(t),r.d(t,{default:()=>Ge});var i=r(32198),n=r(4576),s=r(60999),a=r(69540),o=r(49186),l=r(36563),u=r(44208),h=r(53966),d=r(25728),c=r(17676),f=r(36708),g=r(91429),m=r(87024),p=r(4146),_=r(52136),y=r(18768),E=r(69208),v=r(34287),b=r(8303),R=r(25036),T=r(58947),I=r(10873),S=r(10292),A=r(58083),x=r(9093),M=r(35522),w=r(51850),N=r(34727),C=r(37539),O=r(79258);function L(e,t,r,i){let n=i+t;if(n<i/2||r>n)return Number.MAX_VALUE;let s=Math.abs(U*e)+Math.asin(r/n);return s>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(s)}const D=(0,w.vt)(),U=(0,N.kU)(1);var F=r(27993),P=r(16930),k=r(98764);(0,w.vt)();var q=r(71351),G=r(28540),V=r(19419),Q=r(89707);class j extends Q.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new G.i(0,0,0,-1),this._serviceMbsInRenderSR=new G.i(0,0,0,-1),this._serviceMbsElevationUpdateExtent=null,this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),null!=this._serviceMbsElevationUpdateExtent&&(0,V.Ie)(this._serviceMbsElevationUpdateExtent),this._serviceMbsInRenderSR}get serviceMbsElevationUpdateExtent(){return this._serviceMbsElevationUpdateExtent??=(0,V.Ie)()}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),null!=this._serviceMbsElevationUpdateExtent&&(0,V.Ie)(this._serviceMbsElevationUpdateExtent),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._serviceMbsElevationUpdateExtent=e._serviceMbsElevationUpdateExtent??=(0,V.Ie)(),this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class H extends j{constructor(e,t,r,i,n,s,a,o,l,u,h){super(e,r),this.index=t,this.childCount=i,this.level=n,this.resources=s,this.version=a,this.lodMetric=o,this.maxError=l,this.numFeatures=u,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new W,this.serviceObbInIndexSR=h}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class W{constructor(){this._data=[0,0,0,W.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=W.invalidRadius}get valid(){return this._data[3]!==W.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;let i=this.getAxis($),{center:n,radius:s}=e.boundingSphere,a=s+r;return 1===t?this.radius>B||function(e,t,r,i){let n=(0,M.Bw)(r);if(n<=i)return!0;let s=(0,M.Om)(e,r);if(s<=0)return-s<=i;let a=(0,N.qE)(s/n,-1,1),o=Math.sqrt(1-a*a),l=(0,N.qE)(i/n,0,1);return o*Math.sqrt(1-l*l)-l*a<=t}(i,this.radius,n,a):function(e,t,r,i){let n=r[0]-e[0],s=r[1]-e[1],a=t+i;return n*n+s*s<=a*a}(i,this.radius,n,a)&&function(e,t,r,i,n){for(let s of n){let n=s[0],a=s[1],o=s[2],l=o>0?r:i;if(n*e[0]+a*e[1]+o*l+s[3]-Math.hypot(n,a)*t>0)return!1}return!0}(i,this.radius,n[2]-a,n[2]+a,e.planes)}}const $=(0,w.vt)(),B=.9;var z=r(25992),Z=r(66480),Y=r(57005),K=r(4431),X=r(62747),J=r(58682),ee=r(92359);class te{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._subtaskAbortController=new AbortController,this._highest=-1/0,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,Z.Rm)(e),this._vertexSpatialReference=(0,Z.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,k.lO)(t):t.isGeographic?P.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,C.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,C.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(ee.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){let e={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(e,this.frameTask,!1);try{let e=this._descriptor;if("point"!==e.geometry.type)throw new o.A("elevation-query:invalid-geometry","Only point geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new o.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");let t=await e.project(this._indexSpatialReference,this._signal);(0,c.Te)(this._signal),t??this._throwSpatialReferenceMismatchError();let r=t.coordinates[0],i=function(e,t,r,i,n){let s=(0,w.fA)(e,t,r),a=(0,w.fA)(e,t,r-1e3),o=(0,w.vt)(),l=(0,w.vt)();return(0,F.F)(s,i,o,n)&&(0,F.F)(a,i,l,n)?(0,q.Cr)(o,l):null}(r.x,r.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);return i??this._throwSpatialReferenceMismatchError(),this._queryRay=i,await this.visitRoot(),(0,c.Te)(this._signal),r.z=this._highest===-1/0?ne:this._highest,t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new o.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e){let t=this._queryRay,r=new Y.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),r.intersectRay(t.origin,t.direction)}intersectsQueryBounds(e){if(null==e)return!0;let t=this._queryRay;if(null!=e.obb)return this._intersectsQueryObb(Y.ab.fromJSON(e.obb));let r=new G.i;return!function(e,t,r,i){if(null==e||null==t||null==i)return!1;let n=(0,C.Tp)(t,i);if(null==n?.projector)return!1;if(n.projector===C.pO)return r.copyFrom(e),!0;let{source:s,dest:a,projector:o}=n;if(3===a.spatialReferenceId){let t=C.w5[s.spatialReferenceId][2];return null!=t&&(t(e.center,0,D,0),(0,C.s7)(D,0,r.center,0),r.radius=L(D[1],e.center[2],e.radius,O.$O.radius),!0)}if(2!==s.spatialReferenceId&&5!==s.spatialReferenceId||11!==a.spatialReferenceId){o(e.center,0,r.center,0);let t=s.metersPerUnit??1,i=a.metersPerUnit??1;r.radius=e.radius*t/i}else{let t=C.w5[s.spatialReferenceId][1],i=C.w5[1][11],n=e.radius;null!=t&&null!=i&&(n=L(e.center[1],e.center[2],e.radius,O.$O.radius)),o(e.center,0,r.center,0),r.radius=n}return!0}(new G.i(e.mbs),this._indexSpatialReference,r,this._intersectionSpaceSpatialReference)||r.intersectRay(t)}async _processLeafNode(e){let t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);if((0,c.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor)return;let r=await this.transformNode(e,t);(0,c.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{this._highest=this.intersectTransformedGeometry(r,this._highest,this._options.elevationOffset)},this._signal)}async transformNode(e,t){let r=e.serviceMbsInIndexSR;if(null==r)return null;let i=(0,z.C)(r,0,se,this._indexSpatialReference,this._intersectionSpaceSpatialReference),n={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[ae],globalTrafo:i,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:se,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},s=await this._layer.processElevationQueryGeometry(n,this._signal);return(0,c.Te)(this._signal),s}intersectTransformedGeometry(e,t,r){let i=e.globalTrafo;if(null==(0,A.B8)(oe,i))return t;let n=this._queryRay,s=(0,M.Z0)(le,n.origin,oe),a=(0,M.WQ)(ue,n.origin,n.direction),o=(0,M.Z0)(he,a,oe),l=(0,M.jb)(de,o,s),{data:u,indices:h}=e.transformedGeometry.positionData,d=h.length/3,c=t;return(0,J.h7)(s,l,0,d,h,u,3,!1,e=>{let t=(0,M.hs)(ce,l,e);(0,M.WQ)(t,t,s);let n=(0,M.Z0)(fe,t,i),a=ge;if((0,F.F)(n,this._intersectionSpaceSpatialReference,a,this._layer.spatialReference)){let e=a[2]+r;c=Math.max(c,e)}}),c}async requestJSON(e){let t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,c.Te)(this._signal),t}}class re extends te{constructor(e,t,r,i){super(e,t,r),this._pendingPages=new Map,this._loadedPages=new Map,this._pageSize=i.pageSize,this._rootIndex=i.rootIndex,this._urlPrefix=i.urlPrefix;let n=this._pageId(this._rootIndex),s=this._rootIndex-n*this._pageSize,a=Y.ab.fromJSON(i.rootPage.nodes[s].obb);this._rootRayOriginZ=a.centerZ+a.radius+1,this._loadedPages.set(n,i.rootPage)}visitRoot(){return this._visitNode(this._rootIndex)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){let t=this._loadedPages.get(e);if(null!=t)return Promise.resolve(t);let r=this._pendingPages.get(e);if(null!=r)return r;let i=this.requestJSON(`${this._urlPrefix}${e}`);return this._pendingPages.set(e,i),i.then(t=>{this._loadedPages.set(e,t),this._pendingPages.delete(e)},()=>this._pendingPages.delete(e)),i}async _visitNode(e){let t=this._pageId(e),r=await this.getPage(t);(0,c.Te)(this._signal);let i=r.nodes[e-t*this._pageSize],n=Y.ab.fromJSON(i.obb);if(!this._intersectsQueryObb(n))return;let{children:s}=i;if(null!=s&&s.length>0)return await Promise.all(s.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let a=this._createNode(e,i,n);null!=a&&(await this._processLeafNode(a),(0,c.Te)(this._signal))}_createNode(e,t,r){let{mesh:i}=t;if(null==i?.geometry)return null;let n=new G.i(r.getCenter((0,w.vt)()),r.radius),{geometry:s,material:a}=i;return new H(`${e}`,e,n,t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${s.resource}`,geometryDefinition:s.definition,materialDefinition:a?.definition??-1},"",0,0,s.featureCount??null,r)}}class ie extends te{constructor(e,t,r,i){super(e,t,r),this._rootNode=i.rootNode,this._urlPrefix=i.urlPrefix}visitRoot(){return this.intersectsQueryBounds(this._rootNode)?this._visitNodeData(this._rootNode,null!=this._rootNode.obb):Promise.resolve()}getRootRayOriginZ(){return this._rootNode.mbs[2]+this._rootNode.mbs[3]+1}_visitNode(e){return this.intersectsQueryBounds(e)?this._visitNodeAsync(e):Promise.resolve()}async _visitNodeAsync(e){let t=await this.requestJSON(`${this._urlPrefix}${e.id}`);(0,c.Te)(this._signal),await this._visitNodeData(t,null!=e.obb),(0,c.Te)(this._signal)}async _visitNodeData(e,t){if(!t&&null!=e.obb&&!this._intersectsQueryObb(Y.ab.fromJSON(e.obb)))return;let{children:r}=e;if(null!=r&&r.length>0)return await Promise.all(r.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let i=this._createNode(e);null!=i&&(await this._processLeafNode(i),(0,c.Te)(this._signal))}_createNode(e){let{geometryData:t,id:r}=e;if(null==t||0===t.length)return null;let i=null==e.obb?null:Y.ab.fromJSON(e.obb),n=new G.i(e.mbs);return new H(r,0,n,e.children?.length??0,0,{hasSharedResource:null!=e.sharedResource,isEmpty:!1,geometry:r,geometryDefinition:0},e.version??"",0,0,null,i)}}const ne=Number.MAX_VALUE,se="none",ae=(0,K.U)((0,X.hH)(new X.W7(!1,!1,0))),oe=(0,x.vt)(),le=(0,w.vt)(),ue=(0,w.vt)(),he=(0,w.vt)(),de=(0,w.vt)(),ce=(0,w.vt)(),fe=(0,w.vt)(),ge=(0,w.vt)();var me=r(50805),pe=r(58325),_e=r(24212),ye=r(80215),Ee=r(97159),ve=r(16215),be=r(98697),Re=r(56507),Te=r(97768),Ie=r(50075);class Se{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,Ie._i)(e)}request(e,t,r){let i=new AbortController,n=(0,c.NY)(r,()=>i.abort()),s={...Ie.Fz,signal:i.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},a=(0,Re.A)(e,s),o={abortController:i,abortHandle:n};return this._activeRequests.add(o),a.then(({data:e})=>e).finally(()=>{o.abortController=null,o.abortHandle=(0,Te.xt)(o.abortHandle),this._activeRequests.delete(o)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,Te.DC)(e.abortController),e.abortHandle=(0,Te.xt)(e.abortHandle)}),this._activeRequests.clear()}}var Ae=r(4718),xe=r(84952),Me=r(59418),we=r(85334);r(91829),r(73941),r(76200);var Ne=r(74810),Ce=r(49788);function Oe(e){return e.sort((e,t)=>e.encoding-t.encoding)}const Le={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},De={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};function Ue(e){let t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,i=t?e.materialDefinitions?.[t]:null,n=r?e.textureDefinitions?.[r]:null,s=Fe();if(null!=i){let e=i.params;e.diffuse&&((0,we.KV)(e.diffuse),s.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(s.doubleSided=e.doubleSided,s.cullFace=e.doubleSided?0:2),("none"===e.cullFace||"front"===e.cullFace||"back"===e.cullFace)&&(s.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(s.metallicRoughness.baseColorFactor[3]=(0,N.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||s.metallicRoughness.baseColorFactor[3]<1)&&(s.alphaMode="blend")}let a=[];if(null!=n){n.wrap&&("repeat"===n.wrap[0]||"repeat"===n.wrap[1])&&(s.wrapTextures=!0);let e=1;"rgba"===n.channels&&(s.alphaMode="blend",e|=32);let t=n.images.length-1,r=n.images[t],i=e=>e?.split("/").pop(),o=Array.isArray(n.encoding)?Oe(n.encoding.map((e,t)=>({name:i(r.href[t]),encoding:De[e]||0}))):[{name:i(r.href),encoding:De[n.encoding]||0}];a.push({id:0,usage:e,encodings:o}),s.metallicRoughness.baseColorTextureId=0}return{material:s,textures:a}}const Fe=()=>({alphaMode:"opaque",alphaCutoff:Ce.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0});class Pe{constructor(e,t,r,i,n,s){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=i,this._requiredAttributes=n,this._options=s,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){let t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){let i=new Map,n=(e,t)=>{if(null==e)return-1;let r=i.get(e.id);if(r)return r.usage|=t,r.id;let n=i.size;return i.set(e.id,{id:n,usage:t}),n},s=t.pbrMetallicRoughness,a=s?.baseColorFactor?(0,we.sn)(s.baseColorFactor):null,o=t.emissiveFactor,l=r&&0===s?.metallicFactor||(0,Ne.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:s?.metallicRoughnessTexture,metallicFactor:s?.metallicFactor,roughnessFactor:s?.roughnessFactor}),u=l?Ne.Bt[0]:s?.metallicFactor??Ne.mb[0],h=l?Ne.Bt[1]:s?.roughnessFactor??Ne.mb[1],d="mask"===t.alphaMode?33:1,c={baseColorFactor:a?[a[0],a[1],a[2],a[3]]:[1,1,1,1],baseColorTextureId:n(s?.baseColorTexture,d),metallicRoughnessTextureId:n(s?.metallicRoughnessTexture,2),metallicFactor:u,roughnessFactor:h},f={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:+("front"===t.cullFace),normalTextureId:n(t.normalTexture,4),emissiveTextureId:n(t.emissiveTexture,16),occlusionTextureId:n(t.occlusionTexture,8),emissiveFactor:o?[o[0],o[1],o[2]]:[0,0,0],metallicRoughness:c,wrapTextures:!1,hasParametersFromSource:l},g=[];return i.forEach(({usage:t},r)=>{let i=null!=e&&e[r]&&e[r].formats,n=i?Oe(i.map(({name:e,format:t})=>({name:e,encoding:Le[t]}))):[];g.push({id:r,usage:t,encodings:n})}),{material:f,textures:g}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){let i=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(i,"array-buffer",r).then(e=>(0,Me.m0)(t,e))}async loadAttributes(e,t,r){let i=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),n={};for(let r=0;r<t.length;++r){let s=i[r],a=t[r];if("fulfilled"===s.status){let e=s.value;n[a.name]=e}else{let t=s.reason;(0,c.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${a.name}' on node '${e.id}'`,t)}}return n}async loadNodeData(e,t){let r=null!=this._requiredAttributes&&e.resources.attributes?(0,s.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:i,bufferIndex:n}=function(e,t){let r={bufferDefinition:null,bufferIndex:0},i=t.resources.geometryDefinition;if(null==e||null==i||i<0)return r;let n=i>=0?e[i].geometryBuffers:null;if(null==n)return r;for(let e=0;e<n.length;e++){let t=n[e];if(null!=t.compressedAttributes){if("draco"===t.compressedAttributes.encoding&&!(0,u.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}else r.bufferIndex=e,r.bufferDefinition=n[e]}return r}(this._geometryDefinitions,e),a=!!e.resources.geometry,o=a?(0,s.Ke)(this._loadGeometry(e.resources.geometry,n,t)):null,l=e.resources.hasSharedResource?await this._loadShared(e,t):null,h=e.resources.materialDefinition,d=this._materialAndTextures&&null!=h&&h>=0?this._materialAndTextures[h]:null==l?null:Ue(l),c=d?.material,f=d?.textures??[],g=`${e.id}`,m=!a&&this._options.loadFeatureData,p=m?await this._loadFeatureData(g,t):null,_=m?function(e){if(!e)return null;for(let t of e.featureData){let e=t.geometries;if(null!=e)for(let r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(p):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:c}}],featureDataPosition:[0,0,0]},y=null==_?function(e){if(!e)return null;let t=[];for(let r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(p):null,E=f.length>0?(0,s.Ke)(this.loadTextures(e,f,t)):null,v=null,b=null;if(o){v=(0,s.QA)(await o);let e=function(e,t){if(!e||!t?.materialDefinitions)return e;let r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,Ae.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,l);b=(0,Me.qs)(i,e)}let R=E?(0,s.QA)(await E):null,T=r?(0,s.QA)(await r):{},I=T?{attributeData:T,loadedAttributes:this._requiredAttributes}:null;if(null!=_)return{geometryData:_,attributeDataInfo:I,geometryBuffer:v,geometryDescriptor:b,requiredTextures:f,textureData:R};if(null!=y)return{pointData:y,attributeDataInfo:I,geometryBuffer:v,geometryDescriptor:b,requiredTextures:f,textureData:R};throw Error()}static _addAbsoluteHrefTexture(e,t){let r=e.textureDefinitions;if(null!=r)for(let e of Object.keys(r))for(let i of r[e].images)i.hrefConcat=Array.isArray(i.href)?i.href.map(e=>(0,xe.s2)(e,t)):(0,xe.s2)(i.href,t)}static _fixTextureEncodings(e){let t=e.textureDefinitions;if(null!=t)for(let e in t){let r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){let t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{let e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};let r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,i=await this._requester.request(r,"json",t);return Pe._fixTextureEncodings(i),Pe._addAbsoluteHrefTexture(i,r),i}_loadTexture(e,t,r,i,n){return 4===i||1===i||2===i?this._requester.request(e,"array-buffer",n).then(e=>({id:t,usage:r,data:e,encoding:i})):this._requester.request(e,"image",n).then(e=>({id:t,usage:r,data:e,encoding:i}))}loadTextures(e,t,r){let i=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&i))return null;let n=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==n)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();let s=e.resources.texture||e.id,a=`${this._layerUrl}/nodes/${s}/textures/${n.name}`;return this._loadTexture(a,t.id,t.usage,n.encoding,r)}))}_loadFeatureData(e,t){let r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){let i=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(i,"array-buffer",r)}}var ke=r(36005);let qe=class extends((0,T.w6)((0,y.b)((0,v.q)((0,b.A)((0,R.j)((0,d.M)((0,E.d)((0,_.p)((0,a.OU)(p.A)))))))))){constructor(e){super(e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();let e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,e?.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,f.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},f.OH),(0,f.wB)(()=>this.modifications,()=>this._modificationsGeneration++,f.OH),(0,f.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),f.OH)])}readModifications(e,t,r){this._modificationsSource={url:(0,Ee.f)(e,r),context:r}}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new be.Cm((e,t)=>ee.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){let a={stack:[],error:void 0,hasError:!1};try{let u=r?.noDataValue??Number.MAX_VALUE,h=this._elevationQueryWorker,d=new AbortController;e.addHandles((0,l.rE)(d),d),(0,i.mS)(a,(0,l.Bf)((0,l.hA)(()=>e.removeHandles(d))),!1);let f=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,d.signal].filter(n.Ru));await this.load({signal:f}),(0,c.Te)(f);let g=S.q.fromGeometry(t),m={signal:f,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){let e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=(0,s.Ke)(h.setLegacySchema(this._elevationQueryWorkerContext,e)))}let p=await async function(e,t,r){let i=await e.indexInfo;if((0,c.Te)(r.signal),null==i)throw new o.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===i.type?new re(e,t,r,i).promise:new ie(e,t,r,i).promise}(this,g,m);(0,c.Te)(f);let _=p.coordinates[0].z===ne;_&&(p.coordinates[0].z=u);let y=await p.project(t.spatialReference,f);(0,c.Te)(f);let E=y??g.clone(),v={geometry:E.export(),noDataValue:u};return r?.returnSampleInfo&&(v.sampleInfo=E.coordinates.map(()=>({demResolution:_?-1:1}))),v}catch(e){a.error=e,a.hasError=!0}finally{(0,i.hk)(a)}}async queryElevationForGround(e,t){let r=S.q.fromGeometry(e),i=Ve(e),{view:n,...s}=t;if(null!=i&&"3d"===n?.type){let e=await this.queryElevation(n,i,s),t=S.q.fromGeometry(e.geometry),a=t.coordinates.map((t,r)=>({demResolution:e.sampleInfo?.[r]?.demResolution??(t.z===e.noDataValue?-1:1),source:this}));return{geometry:r.clone(t.coordinates).export(),noDataValue:e.noDataValue,sampleInfo:a}}return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:r.coordinates.map(()=>({demResolution:-1,source:this}))}}_abortElevationQueriesAfterDependencyChange(){let e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){let r=await this._elevationQueryWorkerSetup;return null!=r&&(0,s.QA)(r),(0,c.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){let t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,c.QP)(e)}if((0,c.Te)(t),await this._fetchService(t),(0,c.Te)(t),null!=this._modificationsSource){let r=await pe.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,c.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,c.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"})}get isUsedAsGroundLayer(){return!(0,u.A)("enable-feature:im-as-ground")||(0,ve.S)(this.parent)||(0,ye.Q)(this.parent)}get replacesTerrain(){return!1}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new o.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new Se(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new Pe(this,this.elevationQueryDataRequester,h.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){let t="Integrated mesh layers";(0,_e.XF)(h.A.getLogger(this),(0,_e.B)(t,"absolute-height",e)),(0,_e.XF)(h.A.getLogger(this),(0,_e.tW)(t,e))}};(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0})],qe.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"]})],qe.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:["IntegratedMeshLayer"]})],qe.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],qe.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:me.W4,readOnly:!0,clonable:!1})],qe.prototype,"nodePages",void 0),(0,i.Cg)([(0,g.MZ)({type:[me.uV],readOnly:!0,clonable:!1})],qe.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[me.Ot],readOnly:!0,clonable:!1})],qe.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[me.L0],readOnly:!0,clonable:!1})],qe.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],qe.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,g.MZ)({type:pe.A,clonable:e=>e?.clone()??e}),(0,m.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],qe.prototype,"modifications",void 0),(0,i.Cg)([(0,g.MZ)({clonable:e=>e?{...e}:null})],qe.prototype,"_modificationsSource",void 0),(0,i.Cg)([(0,ke.w)(["web-scene","portal-item"],"modifications")],qe.prototype,"readModifications",null),(0,i.Cg)([(0,g.MZ)(I.Yj)],qe.prototype,"elevationInfo",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],qe.prototype,"path",void 0),(0,i.Cg)([(0,g.MZ)({clonable:!1})],qe.prototype,"_elevationQueryWorker",null),(0,i.Cg)([(0,g.MZ)()],qe.prototype,"_modificationsGeneration",void 0),(0,i.Cg)([(0,g.MZ)()],qe.prototype,"memoizedElevationQueryDependencies",null),(0,i.Cg)([(0,g.MZ)()],qe.prototype,"isUsedAsGroundLayer",null),(0,i.Cg)([(0,g.MZ)()],qe.prototype,"replacesTerrain",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],qe.prototype,"elevationQueryDataRequester",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],qe.prototype,"elevationQueryNodeLoader",null),qe=(0,i.Cg)([(0,g.$K)("esri.layers.IntegratedMeshLayer")],qe);const Ge=qe;function Ve(e){return e instanceof S.q?Ve(e.geometry):"point"===e.type?e:null}},85707(e,t,r){var i=r(32198),n=r(91429),s=r(54239);r.d(t,["a",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,i.Cg)([(0,n.MZ)({readOnly:!0,type:s.A})],r.prototype,"heightModelInfo",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),n=r(53966),s=r(84952),a=r(60694),o=r(10873);function l(e){let{nonStandardUrlAllowed:t=!1,separator:r}=e??{},s=(0,i.o8)(o.OZ),l=s.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,n){(0,a.LS)(this,e,r,t,n)}),{...s,set:function(e){if(null==e)return void this._set("url",e);let r=(0,a.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:n.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){let{separator:r}=t??{},i=(0,s.An)(e.url);return null!=i&&(null==e.dynamicDataSource?null!=e.layerId&&(i.path=(0,s.fj)(i.path,r??"",e.layerId.toString())):i.path=(0,s.fj)(i.path,"dynamicLayer")),i}},89707(e,t,r){r.d(t,{H:()=>i});class i{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){let t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),i=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,i}expandElevationRangeValues(e,t){let r=Math.min(this.minElevation,e),i=Math.max(this.maxElevation,t),n=r!==this.minElevation||i!==this.maxElevation;return this.minElevation=r,this.maxElevation=i,n}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>s,hH:()=>a});var i=r(1843),n=r(65786);n.Y;class s extends n.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function a(e){let t=(0,i.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>c,W6:()=>u}),r(4576),r(71511),r(44208),r(53966);var i=r(17676),n=(r(36708),r(44794),r(78659)),s=r(32198),a=r(56372),o=r(91429);let l=class extends a.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,s.Cg)([(0,o.MZ)()],l.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,s.Cg)([(0,o.MZ)()],l.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),l=(0,s.Cg)([(0,o.$K)("esri.views.support.debugFlags")],l),new l,r(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_FILTER_HIGHLIGHT:"feature filter highlight",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_FILTER_HIGHLIGHT,2],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,n.l5)(6.5),(0,n.l5)(1),(0,n.l5)(30),(0,n.l5)(1e3/30),(0,n.l5)(100),Symbol.dispose;const h=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this._enabled&&this._budget!==1/0&&this.elapsed>=this._budget,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};h.enabled=!1;class d{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,i.G4)(t)){let e=(0,i.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,i.z7)(e(h))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,i.G4)(t)){let e=(0,i.NK)();if(r)return r(e);throw e}let n=e(h);for(;;){let e=n.next(h),s=(0,i.$X)(e)?await e:e;if((0,i.G4)(t)){let e=(0,i.NK)();if(r){let t=r(e),s=n.return(null);return(0,i.$X)(s)&&await(0,i.QZ)(s),t}let t=n.throw(e);throw(0,i.$X)(t)&&await(0,i.QZ)(t),e}if(s.done)return s.value}}}const c=new d}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6026],{61893(e,s,t){var r=t(32198),i=t(56372),o=t(36563),n=t(17676),l=t(64108);class a{constructor(){this._resolver=Promise.withResolvers(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,n.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let e=Promise.withResolvers(),s=[...this._resolvingPromises,e.promise],t=this._allPromise=Promise.all(s);t.then(()=>{this.isFulfilled()||this._allPromise!==t||this._resolver.resolve()},e=>{this.isFulfilled()||this._allPromise!==t||(0,n.zf)(e)||this._resolver.reject(e)}),e.resolve()}}const u=e=>{let s=e,t=class extends s{constructor(...e){super(...e),this._promiseProps=new a,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,s){return this._promiseProps.promise.then(()=>this).then(e,s)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}addResolvingTask(e){e&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,o.rE)(e)),this._promiseProps.addResolvingPromise(e.promise))}};return t=(0,r.Cg)([(0,l.$)("esri.core.Promise")],t),t},h=u(i.A);t.d(s,["Z",0,h,"g",0,u])},13069(e,s,t){t.d(s,{AG:()=>l,lk:()=>i,vD:()=>n,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let s=s=>e[s].toString(16).padStart(4,"0");return s(0)+s(1)+"-"+s(2)+"-"+s(3)+"-"+s(4)+"-"+s(5)+s(6)+s(7)}function o(){return`{${i().toUpperCase()}}`}function n(){return`{${i()}}`}function l(e){let s=e.toUpperCase();return e.startsWith("{")?s:`{${s}}`}},73444(e,s,t){t.d(s,{JK:()=>a,Ml:()=>_,QC:()=>c,lR:()=>h,oQ:()=>m});var r=t(36563);let i;t(44208);const o=globalThis.esriConfig?.locale,n=globalThis.document?.documentElement;function l(){let e=n?.getAttribute("lang"),s=globalThis.navigator?.language;return o??e??s??"en"}function a(){return void 0===i&&(i=l()),i}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=a()){return p(e)?.language}function c(e=a()){let s=p(e);return s?.language&&s?.extlang?e.replace(`${s.language}-`,""):e}function p(e=a()){return u.exec(e)?.groups}const d=[];function m(e){return d.push(e),(0,r.hA)(()=>{d.splice(d.indexOf(e),1)})}new Map;const g=[];function _(e){return g.push(e),(0,r.hA)(()=>g.splice(g.indexOf(e),1))}function v(){let e=l();i!==e&&([...g].forEach(s=>s(e)),i=e,[...d].forEach(s=>s(e)))}globalThis.addEventListener?.("languagechange",v),n&&new MutationObserver(()=>{v()}).observe(n,{attributeFilter:["lang"]})},98623(e,s,t){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;t.d(s,["L",0,"unknown","N",0,r])}}]);