@arcgis/core 5.1.0-next.84 → 5.1.0-next.86

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 (367) hide show
  1. package/assets/components/assets/icon/gpsReceiver16.json +1 -0
  2. package/assets/components/assets/icon/gpsReceiver24.json +1 -0
  3. package/assets/components/assets/icon/gpsReceiver32.json +1 -0
  4. package/assets/components/assets/icon/totalStation16.json +1 -0
  5. package/assets/components/assets/icon/totalStation24.json +1 -0
  6. package/assets/components/assets/icon/totalStation32.json +1 -0
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/{e89dc473f46a5584d2ef.js → 004af103a94d21cb4889.js} +3 -3
  9. package/assets/esri/core/workers/chunks/{67abbe81c16de26f61d8.js → 1bad4331a43169f3cc34.js} +1 -1
  10. package/assets/esri/core/workers/chunks/27f67a3828b78d4c1413.js +1 -0
  11. package/assets/esri/core/workers/chunks/2c916b93d8a6e6b9c0d7.js +1 -0
  12. package/assets/esri/core/workers/chunks/{db86a1119e4e58ecfbda.js → 2f8b173d1dac73ba0d9e.js} +1 -1
  13. package/assets/esri/core/workers/chunks/49e8144effc299dfcd66.js +1 -0
  14. package/assets/esri/core/workers/chunks/5166f204fd078dced5db.js +1 -0
  15. package/assets/esri/core/workers/chunks/{45c83eb7c2a06166e3b0.js → 56717ff315c6ec874142.js} +1 -1
  16. package/assets/esri/core/workers/chunks/577cbc131b21c351fae5.js +2 -0
  17. package/assets/esri/core/workers/chunks/{72691fe14024e35f85d0.js → 618106f5fbdf88ef2278.js} +1 -1
  18. package/assets/esri/core/workers/chunks/61fada8942b65fa0b5e1.js +1 -0
  19. package/assets/esri/core/workers/chunks/{05c5f68e117fc58ae801.js → 701b823763e941b71f4f.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{1e2c0c6d724f7639d4c1.js → 713ab619060bd5087479.js} +13 -13
  21. package/assets/esri/core/workers/chunks/{a9b5ce00323cd5574bf7.js → 7160e3e7340beb7fdb42.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{0219edb509e01270d42d.js → 99c6bd2125f4eb6796fe.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{ff713926985a284f5d81.js → a844547bf33a8527ee9f.js} +2 -2
  24. package/assets/esri/core/workers/chunks/aa6808146c76b2d49b64.js +1 -0
  25. package/assets/esri/core/workers/chunks/{9cac70164d8528c283af.js → add000f51c778114c028.js} +1 -1
  26. package/assets/esri/core/workers/chunks/b23e677c33db6f9bac8a.js +1 -0
  27. package/assets/esri/core/workers/chunks/{dfe1139124fda0d6c059.js → b575292013bceef9b015.js} +1 -1
  28. package/assets/esri/core/workers/chunks/bae8f2a5dfe0cfbc0688.js +1 -0
  29. package/assets/esri/core/workers/chunks/bb5f909a2f26fc6a21b0.js +2 -0
  30. package/assets/esri/core/workers/chunks/{28a45bd26eb5c9b3ec7c.js → ce66c551b7083913eee5.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{22bdea4ca52970c29504.js → d0aee7c80c5c7e23d216.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{f4220b6eab0865318033.js → d8de7fe49dba9ed589df.js} +1 -1
  33. package/assets/esri/core/workers/chunks/ded2f19a1685db2137f4.js +2 -0
  34. package/assets/esri/core/workers/chunks/{f77d23ee60c876b01e4b.js → e9a42f0262fc44a79d4b.js} +1 -1
  35. package/assets/esri/core/workers/chunks/edbdee69440dbfc05644.js +1 -0
  36. package/assets/esri/core/workers/chunks/ee057c85cdf6beb5b012.js +2 -0
  37. package/assets/esri/core/workers/chunks/f9fe3c9867b0bdb2aec6.js +596 -0
  38. package/assets/esri/core/workers/chunks/ff57a071156d8a7e47be.js +1 -0
  39. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  40. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  41. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +6 -0
  42. package/assets/esri/themes/dark/main.css +1 -1
  43. package/assets/esri/themes/light/main.css +1 -1
  44. package/assets/esri/themes/light/view.css +1 -1
  45. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis.json +1 -1
  46. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_en.json +1 -1
  47. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ar.json +1 -1
  48. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bg.json +1 -1
  49. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_bs.json +1 -1
  50. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ca.json +1 -1
  51. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_cs.json +1 -1
  52. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_da.json +1 -1
  53. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_de.json +1 -1
  54. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_el.json +1 -1
  55. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_es.json +1 -1
  56. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_et.json +1 -1
  57. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fi.json +1 -1
  58. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_fr.json +1 -1
  59. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_he.json +1 -1
  60. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hr.json +1 -1
  61. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_hu.json +1 -1
  62. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_id.json +1 -1
  63. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_it.json +1 -1
  64. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ja.json +1 -1
  65. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ko.json +1 -1
  66. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
  67. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lv.json +1 -1
  68. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_nl.json +1 -1
  69. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_no.json +1 -1
  70. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pl.json +1 -1
  71. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-BR.json +1 -1
  72. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_pt-PT.json +1 -1
  73. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ro.json +1 -1
  74. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_ru.json +1 -1
  75. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sk.json +1 -1
  76. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sl.json +1 -1
  77. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sr.json +1 -1
  78. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_sv.json +1 -1
  79. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_th.json +1 -1
  80. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_tr.json +1 -1
  81. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_uk.json +1 -1
  82. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_vi.json +1 -1
  83. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-CN.json +1 -1
  84. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-HK.json +1 -1
  85. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_zh-TW.json +1 -1
  86. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  87. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  88. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  89. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  90. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  91. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  92. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  93. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  94. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  95. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  96. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  97. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  98. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  99. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  100. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  101. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  102. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  103. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  104. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  105. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  106. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  107. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  108. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
  109. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  110. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  111. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  112. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  113. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  114. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  115. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  116. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  117. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  118. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  119. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  120. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  121. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  122. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  123. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  124. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  125. package/chunks/EdgeShader.glsl.js +13 -9
  126. package/chunks/Fog.glsl.js +1 -1
  127. package/chunks/GlowBlur.glsl.js +9 -13
  128. package/chunks/GlowComposition.glsl.js +10 -10
  129. package/chunks/ShadowCastVisualize.glsl.js +10 -10
  130. package/config.js +1 -1
  131. package/core/arrayUtils.js +1 -1
  132. package/core/has.js +1 -1
  133. package/core/screenUtils.js +1 -1
  134. package/form/types.d.ts +1 -1
  135. package/geohash/GeohashCell.js +1 -1
  136. package/geohash/GeohashTree.js +1 -1
  137. package/interfaces.d.ts +14 -14
  138. package/kernel.js +1 -1
  139. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  140. package/layers/ParquetLayer.d.ts +10 -10
  141. package/layers/ParquetLayer.js +1 -1
  142. package/layers/StreamLayer.js +1 -1
  143. package/layers/graphics/sources/connections/FabricKustoConnection.js +2 -0
  144. package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
  145. package/layers/graphics/sources/connections/WebSocketConnection.js +1 -1
  146. package/layers/graphics/sources/connections/createConnection.js +1 -1
  147. package/layers/graphics/sources/connections/websocketUils.js +2 -0
  148. package/layers/scene/ModelFileInfo.js +1 -1
  149. package/layers/scene/modelQuerySupport.js +1 -1
  150. package/layers/support/ClientSideConnection.js +1 -1
  151. package/layers/support/FabricKustoSource.js +2 -0
  152. package/layers/support/{ParquetGeometryEncodingLocation.d.ts → GeometryEncodingLocation.d.ts} +9 -9
  153. package/layers/support/{ParquetGeometryEncodingLocation.js → GeometryEncodingLocation.js} +1 -1
  154. package/layers/support/{ParquetGeometryEncodingWkb.d.ts → GeometryEncodingWkb.d.ts} +8 -9
  155. package/layers/support/GeometryEncodingWkb.js +2 -0
  156. package/layers/support/kustoUtils.js +2 -0
  157. package/layers/support/parquetEncodingUtils.js +1 -1
  158. package/layers/support/parquetUtils.js +1 -1
  159. package/layers/support/types.d.ts +3 -3
  160. package/package.json +2 -2
  161. package/popup/Features.d.ts +10 -0
  162. package/popup/Features.js +1 -1
  163. package/rest/knowledgeGraph/GraphQueryStreamingResult.d.ts +4 -1
  164. package/support/revision.js +1 -1
  165. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  166. package/views/2d/FrameTask.js +1 -1
  167. package/views/2d/LabelManager.js +1 -1
  168. package/views/2d/ViewState.js +1 -1
  169. package/views/2d/engine/DisplayObject.js +1 -1
  170. package/views/2d/engine/Stage.js +1 -1
  171. package/views/2d/engine/flow/FlowContainer.js +1 -1
  172. package/views/2d/engine/flow/FlowView2D.js +1 -1
  173. package/views/2d/engine/flow/styles/AFlowResources.js +1 -1
  174. package/views/2d/engine/flow/styles/Imagery.js +1 -1
  175. package/views/2d/engine/flow/styles/Particles.js +1 -1
  176. package/views/2d/engine/flow/styles/Stack.js +1 -1
  177. package/views/2d/engine/flow/styles/Streamlines.js +1 -1
  178. package/views/2d/engine/transitions/FadeTransition.js +1 -1
  179. package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
  180. package/views/2d/engine/vectorTiles/decluttering/SymbolDeclutterer.js +1 -1
  181. package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
  182. package/views/2d/engine/vectorTiles/decluttering/SymbolRepository.js +1 -1
  183. package/views/2d/engine/webgl/AFeatureTile.js +1 -1
  184. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  185. package/views/2d/engine/webgl/FeatureTile.js +1 -1
  186. package/views/2d/engine/webgl/ResizableUint32Array.js +2 -0
  187. package/views/2d/engine/webgl/TileCpuState.js +2 -0
  188. package/views/2d/engine/webgl/TileGpuState.js +2 -0
  189. package/views/2d/engine/webgl/cpuMapped/CpuBuffer.js +2 -0
  190. package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +2 -0
  191. package/views/2d/engine/webgl/cpuMapped/GpuMeshState.js +2 -0
  192. package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
  193. package/views/2d/engine/webgl/shaderGraph/techniques/TechniqueDebugContainer.js +1 -1
  194. package/views/2d/engine/webgl/shaderGraph/techniques/TestDisplayObject.js +1 -1
  195. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
  196. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  197. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  198. package/views/2d/layers/GeoRSSLayerView2D.js +1 -1
  199. package/views/2d/layers/GraphicsLayerView2D.js +1 -1
  200. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  201. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  202. package/views/2d/layers/KMLLayerView2D.js +1 -1
  203. package/views/2d/layers/LayerView2D.js +1 -1
  204. package/views/2d/layers/MapNotesLayerView2D.js +1 -1
  205. package/views/2d/layers/MediaLayerView2D.js +1 -1
  206. package/views/2d/layers/RouteLayerView2D.js +1 -1
  207. package/views/2d/layers/TileLayerView2D.js +1 -1
  208. package/views/2d/layers/features/FeatureContainer.js +1 -1
  209. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  210. package/views/2d/layers/features/FeatureTilePresentStrategy.js +2 -0
  211. package/views/2d/layers/features/Processor.js +1 -1
  212. package/views/2d/layers/features/RenderState.js +1 -1
  213. package/views/2d/layers/features/aggregation/AAggregateSpatialIndex.js +1 -1
  214. package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
  215. package/views/2d/layers/features/aggregation/GridCell.js +1 -1
  216. package/views/2d/layers/features/aggregation/GridIndexCell.js +2 -0
  217. package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
  218. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  219. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  220. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  221. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  222. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  223. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  224. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  225. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  226. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  227. package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
  228. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  229. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  230. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  231. package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
  232. package/views/2d/layers/features/sources/FeatureSourceMessage.js +1 -1
  233. package/views/2d/layers/features/sources/strategies/StreamLoadStrategy.js +1 -1
  234. package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
  235. package/views/2d/layers/features/support/Hashed.js +2 -0
  236. package/views/2d/layers/graphics/AGraphicContainer.js +1 -1
  237. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  238. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  239. package/views/2d/layers/imagery/ImageryView2D.js +1 -1
  240. package/views/2d/layers/support/vectorTileDebugUtils.js +1 -1
  241. package/views/2d/support/hitTestUtils.js +1 -1
  242. package/views/2d/tiling/FeatureTileSubscriptionManager.js +1 -1
  243. package/views/2d/tiling/TileCombinedCoverage.js +2 -0
  244. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  245. package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +2 -0
  246. package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
  247. package/views/3d/analysis/ShadowCast/ShadowCastTooltip.js +1 -1
  248. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  249. package/views/3d/analysis/Viewshed/ViewshedEditTool.js +2 -0
  250. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  251. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  252. package/views/3d/analysis/Viewshed/ViewshedTool2.js +2 -0
  253. package/views/3d/analysis/Viewshed/viewshedSubToolUtils.js +2 -0
  254. package/views/3d/analysis/Viewshed/viewshedToolUtils.js +1 -1
  255. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  256. package/views/3d/environment/CloudyWeather.js +1 -1
  257. package/views/3d/environment/FoggyWeather.js +1 -1
  258. package/views/3d/environment/RainyWeather.js +1 -1
  259. package/views/3d/environment/SnowyWeather.js +1 -1
  260. package/views/3d/environment/SunnyWeather.js +1 -1
  261. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  262. package/views/3d/layers/graphics/StreamController.js +1 -1
  263. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  264. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  265. package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
  266. package/views/3d/webgl/ManagedColorAttachment.js +1 -1
  267. package/views/3d/webgl/ManagedDepthAttachment.js +1 -1
  268. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  269. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  270. package/views/3d/webgl-engine/core/FBOCacheFormats.js +1 -1
  271. package/views/3d/webgl-engine/core/FBOCacheUsage.js +1 -1
  272. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  273. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +11 -11
  274. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  275. package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
  276. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  277. package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
  278. package/views/3d/webgl-engine/effects/glow/Glow.js +2 -0
  279. package/views/3d/webgl-engine/effects/glow/GlowBlur.glsl.js +1 -1
  280. package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
  281. package/views/3d/webgl-engine/effects/raymarching/{RayDistanceFalloff.glsl.js → DistanceFalloff.glsl.js} +2 -2
  282. package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
  283. package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
  284. package/views/3d/webgl-engine/lib/GPUPointOcclusionQuery.js +1 -1
  285. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  286. package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
  287. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  288. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  289. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  290. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  291. package/views/3d/webgl-engine/lib/StencilUtils.js +1 -1
  292. package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
  293. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShader.glsl.js +1 -1
  294. package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
  295. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  296. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  297. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  298. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  299. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  300. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  301. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  302. package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
  303. package/views/3d/webgl-engine/shaders/MeasurementArrowTechniqueConfiguration.js +1 -1
  304. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
  305. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  306. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  307. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  308. package/views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js +1 -7
  309. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechnique.js +1 -1
  310. package/views/3d/webgl-engine/shaders/ShadowCastVisualizeTechniqueConfiguration.js +1 -1
  311. package/views/VideoView.js +1 -1
  312. package/views/View2D.js +1 -1
  313. package/views/draw/support/GraphicMover.js +1 -1
  314. package/views/support/rasterHitTestUtils.js +1 -1
  315. package/views/support/waitForResources.js +1 -1
  316. package/views/video/VideoOperationalDataView.js +1 -1
  317. package/views/webgl/FramebufferObject.js +1 -1
  318. package/views/webgl/RenderingContext.js +1 -1
  319. package/views/webgl/Texture.js +1 -1
  320. package/views/webgl/textureUtils.js +1 -1
  321. package/widgets/BatchAttributeForm/css.js +1 -1
  322. package/widgets/BatchAttributeForm/inputs/UtilityNetworkAssociationsElementInput.d.ts +61 -0
  323. package/widgets/BatchAttributeForm/inputs/UtilityNetworkAssociationsElementInput.js +2 -0
  324. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  325. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  326. package/widgets/BatchAttributeForm/inputs/types.d.ts +9 -4
  327. package/widgets/BatchAttributeForm/templates/UtilityNetworkAssociationsElementTemplate.js +2 -0
  328. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  329. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  330. package/widgets/BatchAttributeForm/templates/support/templateUtils.js +1 -1
  331. package/widgets/BatchAttributeForm.js +1 -1
  332. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  333. package/widgets/FeatureTable/Grid/Column.d.ts +17 -2
  334. package/widgets/FeatureTable/Grid/Column.js +1 -1
  335. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  336. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  337. package/widgets/FeatureTable/Grid/GroupColumn.d.ts +7 -1
  338. package/widgets/FeatureTable/Grid/GroupColumn.js +1 -1
  339. package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +9 -1
  340. package/widgets/FeatureTable/support/ColumnTemplateBase.js +1 -1
  341. package/widgets/FeatureTable/support/types.d.ts +8 -0
  342. package/widgets/FeatureTable.js +1 -1
  343. package/assets/esri/core/workers/chunks/2171aaa147aa4d9fc5b5.js +0 -1
  344. package/assets/esri/core/workers/chunks/38f1a86b8dd9ee684ee5.js +0 -596
  345. package/assets/esri/core/workers/chunks/54d07eadf113f0e4e506.js +0 -1
  346. package/assets/esri/core/workers/chunks/5818f1f526577068d6ca.js +0 -2
  347. package/assets/esri/core/workers/chunks/5ec66e39e53c11e75179.js +0 -2
  348. package/assets/esri/core/workers/chunks/5f6fd20a7f4e80eafa25.js +0 -1
  349. package/assets/esri/core/workers/chunks/6d2abdb48e17b2b56599.js +0 -1
  350. package/assets/esri/core/workers/chunks/7cdd0492b2191df95102.js +0 -2
  351. package/assets/esri/core/workers/chunks/7e530e635325dba07864.js +0 -1
  352. package/assets/esri/core/workers/chunks/8f4cd30ce23e41c1a42c.js +0 -1
  353. package/assets/esri/core/workers/chunks/936f2b1332ece14d7c28.js +0 -2
  354. package/assets/esri/core/workers/chunks/983f6c8727fd9484718e.js +0 -1
  355. package/assets/esri/core/workers/chunks/bd8cb64b6e08839398f3.js +0 -1
  356. package/assets/esri/core/workers/chunks/cbf1a03f54bd8d2a2b47.js +0 -1
  357. package/layers/support/ParquetGeometryEncodingWkb.js +0 -2
  358. package/views/2d/engine/webgl/PooledUint32Array.js +0 -2
  359. package/views/2d/engine/webgl/cpuMapped/Buffer.js +0 -2
  360. package/views/2d/engine/webgl/cpuMapped/MappedMesh.js +0 -2
  361. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +0 -2
  362. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DistanceFalloff.glsl.js +0 -4
  363. /package/assets/esri/core/workers/chunks/{5ec66e39e53c11e75179.js.LICENSE.txt → 577cbc131b21c351fae5.js.LICENSE.txt} +0 -0
  364. /package/assets/esri/core/workers/chunks/{ff713926985a284f5d81.js.LICENSE.txt → a844547bf33a8527ee9f.js.LICENSE.txt} +0 -0
  365. /package/assets/esri/core/workers/chunks/{5818f1f526577068d6ca.js.LICENSE.txt → bb5f909a2f26fc6a21b0.js.LICENSE.txt} +0 -0
  366. /package/assets/esri/core/workers/chunks/{7cdd0492b2191df95102.js.LICENSE.txt → ded2f19a1685db2137f4.js.LICENSE.txt} +0 -0
  367. /package/assets/esri/core/workers/chunks/{936f2b1332ece14d7c28.js.LICENSE.txt → ee057c85cdf6beb5b012.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7125],{66344(t,e,s){s.d(e,{q:()=>a});const i=!!(0,s(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){const s=this._db.get(t.id+e);return s?.size??0}put(t,e,s,r,o){e=t.id+e;const a=this._db.get(e);if(a&&(this._size-=a.size,t.size-=a.size,this._db.delete(e),a.entry!==s&&this._notifyRemove(e,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(e,s,r,0);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return i||console.warn(`Refusing to cache entry with size ${r} for key ${e}`),void this._notifyRemove(e,s,0,0);const h=1+Math.max(o,-4)- -3;this._db.set(e,new n(s,r,h)),this._size+=r,t.size+=r,this._checkSize()}updateSize(t,e){e=t.id+e;const s=this._db.get(e);if(!s)return;this._size-=s.size,t.size-=s.size;let i=s.entry.usedMemory;for(;i>this._maxSize;){const t=this._notifyRemove(e,s.entry,i,1);if(!(null!=t&&t>0))return void this._db.delete(e);i=t}s.size=i,this._size+=i,t.size+=i,this._checkSize()}pop(t,e){e=t.id+e;const s=this._db.get(e);if(s)return this._size-=s.size,t.size-=s.size,this._db.delete(e),++this._hit,s.entry;++this._miss}get(t,e){e=t.id+e;const s=this._db.get(e);if(void 0!==s)return this._db.delete(e),s.lives=s.lifetime,this._db.set(e,s),++this._hit,s.entry;++this._miss}peek(t,e){const s=this._db.get(t.id+e);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach((t,i)=>{const r=t.lifetime;s[r]=(s[r]||0)+t.size,this._clients.forEach(s=>{const{id:r,name:n}=s;if(i.startsWith(r)){const s=e[n]||0;e[n]=s+t.size}})});const i={};this._clients.forEach(t=>{const s=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const r=e[s]||0;e[s]=r,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"});const r=Object.keys(e);r.sort((t,s)=>e[s]-e[t]),r.forEach(s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]);for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,s]of this._db)e.startsWith(t.id)&&(yield s.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s,i){const r=this._clients.get(t.split(o)[0])?.removeFunc,n=r?.(e,i,s);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const s=e??this;if(s.size<=t)return;const i=e?.id;let r=!0;for(;r;){r=!1;for(const[n,a]of this._db)if(0===a.lifetime&&(!i||n.startsWith(i))){const i=e??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,a,i),s.size<=.9*t)return;r||=this._db.has(n)}}for(const[r,n]of this._db)if(!i||r.startsWith(i)){const i=e??this._clients.get(r.split(o)[0]);if(this._purgeItem(r,n,i),s.size<=.9*t)return}}_purgeItem(t,e,s){if(this._db.delete(t),e.lives<=1){this._size-=e.size,s&&(s.size-=e.size);const i=this._notifyRemove(t,e.entry,e.size,1);null!=i&&i>0&&(this._size+=i,s&&(s.size+=i),e.lives=e.lifetime,e.size=i,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new r(0);class n{constructor(t,e,s){this.entry=t,this.size=e,this.lifetime=s,this.lives=s}}const o=":";class a{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new r(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,s=1){this._storage.put(this,t,e,s,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},9775(t,e,s){s.d(e,{A:()=>n});var i=s(62788),r=s(95488);class n{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new r.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 t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,i.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;const t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;const t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){const e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,i.gc)(this._observable),yield*this._items}}},36745(t,e,s){s.d(e,{z:()=>a});var i=s(4718),r=s(51118),n=s(60408),o=s(92722);class a{static fromOptimized(t,e,s=1){return(new h).initialize(t,e,s)}static fromJSON(t){const[e,s]=l(t),i=(0,n.Pv)(t),r=(0,n.W0)(t);return(new c).initialize(e,s,i,r,1)}static fromOptimizedCIM(t,e,s=1){return(new p).initialize(t,e,s)}static fromJSONCIM(t,e=1){const[s,i]=l(t),r=(0,n.Pv)(t),o=(0,n.W0)(t);return(new d).initialize(s,i,r,o,e)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimized(e,s):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),s=t.geometryType;return e&&s?this.fromOptimizedCIM(e,s):null}static createEmptyOptimized(t,e=!1,s=!1,i=1){return(new p).initialize(new o.A([],[],e,s),t,i)}static createEmptyJSON(t,e=!1,s=!1){return(new c).initialize([],t,e,s,1)}static createEmptyOptimizedCIM(t,e=!1,s=!1,i=1){return(new p).initialize(new o.A([],[],e,s),t,i)}static createEmptyJSONCIM(t,e=!1,s=!1,i=1){return(new d).initialize([],t,e,s,i)}asJSON(){const t=(0,r.x)(this),{hasZ:e,hasM:s}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:s}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:s?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:s}:{paths:t,hasZ:e,hasM:s}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,s=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const i=t,r=e;for(;this.nextPoint();)s+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return s+=(t-i)*(e+r),-.5*s}invertY(){this.yFactor*=-1}}class h extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,s){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,s=this._pathOffset;return(new h).initialize(new o.A([this.pathSize],e.slice(s,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const t=this._end,e=this._stride,s=this._geometry.coords;let i=0;for(let r=this._pathOffset+e;r<t;r+=e){const t=s[r-e],n=s[r-e+1],o=s[r]-t,a=s[r+1]-n;i+=Math.sqrt(o*o+a*a)}return i}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,s=this._end-this._stride;for(let i=0;i<this._stride;i++)if(t[e+i]!==t[s+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((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function u(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function l(t){return(0,n.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,n.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,n.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,n.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,n.fT)(t)?[[[u(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class c extends a{initialize(t,e,s,i,r){return this._paths=t,this.geometryType=e,this.hasZ=s,this.hasM=i,this._pathIndex=this._pointIndex=-1,this.yFactor=r,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let s=0;for(let i=1;i<t;i++){const t=e[i-1],r=e[i],n=t[0],o=t[1],a=r[0]-n,h=r[1]-o;s+=Math.sqrt(a*a+h*h)}return s}startPath(){this._paths.push([])}getCurrentPath(){return(new c).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,r.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const{hasZ:t,hasM:e}=this,s=new o.A([],[],t,e),{coords:i,lengths:r}=s;if("esriGeometryPoint"===this.geometryType)i.push(...this._paths[0][0]),r.length=0;else for(const s of this._paths){for(const r of s)i.push(r[0]),i.push(r[1]*this.yFactor),t&&i.push(r[2]),e&&i.push(r[this._mIndex]);r.push(s.length)}return s}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let s=0;s<t.length;s++)if(t[s]!==e[s])return!1;return!0}clone(){return(new c).initialize((0,i.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class p extends h{initialize(t,e,s){return super.initialize(t,e,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new p).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class d extends c{initialize(t,e,s,i,r){return super.initialize(t,e,s,i,r)}clone(){return(new d).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(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},32011(t,e,s){s.d(e,{d:()=>h});var i=s(19419),r=s(537),n=s(12359),o=s(95108),a=s(12176);function h(t){if(0===t.totalSize)return null;const e=(0,r.z8)(t);if(!e)return null;const s=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19;let o=0,a=0;t.reset();for(let e=0;t.nextPath();e++){const s=t.getCurrentRingArea();s>a&&(a=s,o=e)}if(t.seekPath(o),0===t.pathSize)return null;t.seekPathStart();const h=(0,r.B$)(t);if(Math.abs(a)<=2*s*s)return[(h[0]+h[2])/2,(h[1]+h[3])/2];t.seekPathStart();const p=(0,n.w2)(t,(0,i.vt)());if(null===p)return null;if(t.totalPoints<4)return p;const d=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],g=[NaN,NaN,NaN,NaN];let w=!1,x=l(p,t,!0);0===x.distance&&(w=!0,d[0][0]=p[0],d[0][1]=p[1],x=l(p,t,!1)),f[0]=x.distance,g[0]=0;const S=[NaN,NaN];let z=!1,P=.25,I=-1,b=NaN;do{if(b=NaN,d[1]=c(t,y(h[0],h[2],P),0,e),isNaN(d[1][0])||isNaN(d[1][1])||(x=l(d[1],t,!1),b=x.distance),!isNaN(b)&&b>s&&u(d[1],t))z=!0,f[1]=b,g[1]=m(d[1],p);else if(!isNaN(b)&&b>I&&(I=b,S[0]=d[1][0],S[1]=d[1][1]),P-=.01,P<.1){if(!(I>=0))break;z=!0,f[1]=I,d[1][0]=S[0],d[1][1]=S[1],g[1]=m(d[1],p)}}while(!z);z=!1,P=.5,I=-1;let F=.01,v=1;do{if(b=NaN,d[2]=c(t,y(h[0],h[2],P),0,e),isNaN(d[2][0])||isNaN(d[2][1])||(x=l(d[2],t,!1),b=x.distance),!isNaN(b)&&b>s&&u(d[2],t))z=!0,f[2]=b,g[2]=m(d[2],p);else if(!isNaN(b)&&b>I)I=b,S[0]=d[2][0],S[1]=d[2][1];else if(b>I&&(I=b,S[0]=d[2][0],S[1]=d[2][1]),P=.5+F*v,F+=.01,v*=-1,P<.3||P>.7){if(!(I>=0))break;z=!0,f[2]=I,d[2][0]=S[0],d[2][1]=S[1],g[2]=m(d[2],p)}}while(!z);z=!1,P=.75,I=-1;do{if(b=NaN,d[3]=c(t,y(h[0],h[2],P),0,e),isNaN(d[3][0])||isNaN(d[3][1])||(x=l(d[3],t,!1),b=x.distance),!isNaN(b)&&b>s&&u(d[3],t))z=!0,f[3]=b,g[3]=m(d[3],p);else if(b>I&&(I=b,S[0]=d[3][0],S[1]=d[3][1]),P+=.01,P>.9){if(!(I>=0))break;z=!0,f[3]=I,d[3][0]=S[0],d[3][1]=S[1],g[3]=m(d[3],p)}}while(!z);const C=[0,1,2,3],R=w?0:1;let N;for(let t=R;t<4;t++)for(let t=R;t<3;t++){const e=g[t],s=g[t+1];_(e,s)>0&&(N=C[t],C[t]=C[t+1],C[t+1]=N,g[t]=s,g[t+1]=e)}let O=R,M=0,A=0;for(let t=R;t<4;t++){switch(t){case 0:A=2*f[C[t]];break;case 1:A=1.66666666*f[C[t]];break;case 2:A=1.33333333*f[C[t]];break;case 3:A=f[C[t]]}A>M&&(M=A,O=C[t])}return d[O]}function u(t,e){let s,i,r,n,o=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(s=e.x,i=e.y;e.nextPoint();s=r,i=n)r=e.x,n=e.y,i>t[1]!=n>t[1]&&((r-s)*(t[1]-i)-(n-i)*(t[0]-s)>0?o++:o--);return 0!==o}function l(t,e,s){if(s&&u(t,e))return{coord:t,distance:0};let i=1/0,r=0,n=0,a=[0,0],h=[0,0];const l=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(a[0]=e.x,a[1]=e.y;e.nextPoint();a=h){h=[e.x,e.y],(0,o.gR)(l,t,a,h);const s=m(t,l);s<i&&(i=s,r=l[0],n=l[1])}return{coord:[r,n],distance:Math.sqrt(i)}}function c(t,e,s,r){const n=[e,0];let o=1/0,h=1/0,u=!1,l=!1;const c=[[e,r[1]-1],[e,r[3]+1]],f=[0,0],y=[0,0],m=[0,0],_=[[0,0],[0,0]],g=(0,i.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(_[0][0]=t.x,_[0][1]=t.y;t.nextPoint();_[0][0]=_[1][0],_[0][1]=_[1][1]){if(_[1][0]=t.x,_[1][1]=t.y,null===p(g,_))continue;if(y[0]=c[0][0],y[1]=c[0][1],m[0]=c[1][0],m[1]=c[1][1],0===d(g,y,m))continue;if(!(0,a.Ql)(c[0],c[1],_[0],_[1],f))continue;const e=f[1];o>h?e<o&&(o=e,u=!0):e<h&&(h=e,l=!0)}return u&&l?n[1]=(o+h)/2:n[0]=n[1]=NaN,n}function p(t,e){if(e.length<2)return null;t||(t=(0,i.vt)());const[s,r]=e[0],[n,o]=e[1];return t[0]=Math.min(s,n),t[1]=Math.min(r,o),t[2]=Math.max(s,n),t[3]=Math.max(r,o),t}function d(t,e,s){let i=f(e,t),r=f(s,t);const n=t[0],o=t[1],a=t[2],h=t[3];if(i&r)return 0;if(!(i|r))return 4;const u=(i?1:0)|(r?2:0);do{const u=s[0]-e[0],l=s[1]-e[1];if(u>l)3&i?(1&i?(e[1]+=l*(n-e[0])/u,e[0]=n):(e[1]+=l*(a-e[0])/u,e[0]=a),i=f(e,t)):3&r?(1&r?(s[1]+=l*(n-s[0])/u,s[0]=n):(s[1]+=l*(a-s[0])/u,s[0]=a),r=f(s,t)):i?(4&i?(e[0]+=u*(o-e[1])/l,e[1]=o):(e[0]+=u*(h-e[1])/l,e[1]=h),i=f(e,t)):(4&r?(s[0]+=u*(o-s[1])/l,s[1]=o):(s[0]+=u*(h-s[1])/l,s[1]=h),r=f(s,t));else if(12&i?(4&i?(e[0]+=u*(o-e[1])/l,e[1]=o):(e[0]+=u*(h-e[1])/l,e[1]=h),i=f(e,t)):12&r?(4&r?(s[0]+=u*(o-s[1])/l,s[1]=o):(s[0]+=u*(h-s[1])/l,s[1]=h),r=f(s,t)):i?(1&i?(e[1]+=l*(n-e[0])/u,e[0]=n):(e[1]+=l*(a-e[0])/u,e[0]=a),i=f(e,t)):(1&r?(s[1]+=l*(n-s[0])/u,s[0]=n):(s[1]+=l*(a-s[0])/u,s[0]=a),r=f(s,t)),i&r)return 0}while(i|r);return u}function f(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function y(t,e,s){return t+(e-t)*s}function m(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function _(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const s=isNaN(t),i=isNaN(e);return s<i?-1:s>i?1:0}},48459(t,e,s){s.r(e),s.d(e,{default:()=>T});var i=s(5482),r=s(7762),n=s(21818),o=s(49186),a=s(44208),h=s(53966),u=s(17676),l=s(563),c=s(39516),p=s(16930),d=s(70328),f=s(75752),y=s(8384),m=s(58727),_=s(64714),g=s(17754),w=s(20437),x=s(95466),S=s(9075),z=s(34582);function P(t){switch(t.type){case"wkb":return z.A.fromJSON(t);case"location":return S.A.fromJSON(t)}}var I=s(42760),b=s(39412),F=s(63892),v=s(30661),C=s(28923),R=s(44320),N=s(35258),O=s(16630);const M=new v.Z,A="__OBJECTID",E=new TextDecoder;class T{constructor(){this._fileInfos=new Map,this._queue=new l.QueueProcessor({concurrency:4,process:(t,e)=>this._executeQuery(t,e)}),this._indexMap={}}async load(t){const e=t.spatialReference?p.A.fromJSON(t.spatialReference):void 0;if(e&&!e.isWGS84&&!e.isWebMercator)throw new o.A("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");const s=await(0,I.nc)({urls:new r.A(t.urls),fields:t.fields?.map(t=>w.A.fromJSON(t)),geometryEncoding:t.geometryEncoding?P(t.geometryEncoding):null,geometryType:t.geometryType?(0,I.hG)(t.geometryType):null,displayOptimization:t.displayOptimization,spatialReference:e},{customParameters:t.customParameters});if(!s.fields)throw new o.A("parquet:unsupported","Fields must be defined");let n;if(s.spatialReference&&s.geometryType){if(!s.spatialReference)throw new o.A("parquet:unsupported","SpatialReference must be defined");if(!s.spatialReference.isGeographic&&!s.spatialReference.isWebMercator)throw new o.A("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");s.spatialReference.isGeographic&&!s.spatialReference.isWGS84&&(h.A.getLogger("parquet:unsupported-projection").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",{spatialReference:s.spatialReference}),s.spatialReference=p.A.WGS84),n={geometry:s.geometryEncoding?{geometryType:(0,I.sA)(s.geometryType),spatialReference:s.spatialReference.toJSON(),encoding:s.geometryEncoding.toJSON()}:null,displayOptimization:s.displayOptimization}}this.setCustomParameters(t.customParameters),this._geometryInfo=n;const a=t.urls;for(const t of a)this._addFile(t);this._capabilities=Q(await this.getFileStatistics());const u=this._fileInfos.values().next().value;if(!u)return{layerDefinition:{},capabilities:Q(null)};const l=await u,{fields:c}=s;if(null==c)throw new o.A("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer fields",c);c.push(new w.A({name:A,type:"oid",alias:A}));for(const t of c){const e=l.file.columnForFieldName(t.name);null!=e&&(this._indexMap[t.name]=e)}const f=new x.A(c.map(t=>t.toJSON()));this._fieldsIndex=f;const y=(0,I.sA)(s.geometryType??"point");if(this._metadata=N.i.createFeature({fieldsIndex:f.toJSON(),geometryType:y,hasZ:!1,hasM:!1,featureIdInfo:{type:"object-id",fieldName:"rowId"},subtypes:null,subtypeField:null,types:null,typeIdField:null,globalIdField:null,spatialReference:s.spatialReference,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null}),this._queryEngineParams={fieldsIndex:this._metadata.fieldsIndex,geometryType:y,featureIdInfo:{type:"object-id",fieldName:"rowId"},hasM:!1,hasZ:!1,spatialReference:s.spatialReference?.toJSON()??{wkid:4326},aggregateAdapter:null,timeInfo:null,definitionExpression:null},s.spatialReference){const t=await this.getFileInfos();this._fullExtent=function(t,e){const s=(0,d.hZ)((0,d.vt)(),d.qv);for(const e of t){const t=(0,F.hD)(e.file);if(!t)return null;const i=t.columns[t.primary_column];if(!i.bbox)return null;const r=G(i.bbox);(0,d.RF)(s,r)}return{xmin:s[0],ymin:s[1],xmax:s[3],ymax:s[4],spatialReference:e}}(t,s.spatialReference.toJSON())}if(null==this._fullExtent&&"location"===s.geometryEncoding?.type){const{xField:t,yField:e}=s.geometryEncoding,r=(0,d.hZ)((0,d.vt)(),d.qv);for(const s of await this.getFileInfos())for(const n of s.file.rowGroups()){const s={stack:[],error:void 0,hasError:!1};try{const o=(0,i.mS)(s,n.columnDescriptorForAttribute(t),!1),a=(0,i.mS)(s,n.columnDescriptorForAttribute(e),!1),h=[o.minValue(),a.minValue(),o.maxValue(),a.maxValue()];(0,d.DC)(r,h),n.free()}catch(t){s.error=t,s.hasError=!0}finally{(0,i.hk)(s)}}this._fullExtent={xmin:r[0],ymin:r[1],xmax:r[3],ymax:r[4],spatialReference:s.spatialReference?.toJSON()}}return{capabilities:this._capabilities,layerDefinition:{fields:s.fields?.map(t=>t.toJSON()),drawingInfo:(0,_.F0)(y),extent:this._fullExtent??void 0,geometryType:y,geometryEncoding:s.geometryEncoding?.toJSON(),displayOptimization:s.displayOptimization}}}destroy(){for(const t of this._fileInfos.values())t.then(t=>t.file.free);this._fileInfos.clear(),this._queue.destroy()}setCustomParameters(t){this._customParameters=t}getIndexMap(){return this._indexMap}async getFileId(t){const e=this._fileInfos.get(t);if(!e)throw new Error(`InternalError: File ${t} does not exist`);return(await e).id}async getFileInfo(t){const e=this._fileInfos.get(t);if(!e)throw new Error(`InternalError: File ${t} does not exist`);return e}async getFileInfos(){return Promise.all(Array.from(this._fileInfos.values()))}async getFileStatistics(){if(!this._fileInfos.size)return null;const t=(await this.getFileInfos()).reduce((t,e)=>t+e.file.byteLength(),0);return{featureCount:await this._getFeatureCount(),byteLength:t}}async updateFiles(t){const e=new Set(t);for(const[t,s]of this._fileInfos.entries())e.has(t)?e.delete(t):(s.then(t=>t.file.free()),this._fileInfos.delete(t));await Promise.all(Array.from(e.values()).map(t=>this._addFile(t)))}async queryFeatures(t,e){return this._validateQuery(t),function(t){return!!(t.objectIds?.length||t.outStatistics||t.orderByFields?.length||t.returnDistinctValues)}(t)||(t.resultRecordCount=t.resultRecordCount?Math.min(t.resultRecordCount,8e3):8e3,t.resultOffset=t.resultOffset??0),(t.outStatistics||t.returnDistinctValues)&&(t.returnGeometry=void 0),(await this._enqueueQuery(t,e)).createQueryResponse()}async queryFeatureCount(t,e){const s=await(0,m.T2)(t,null,this._queryEngineParams.spatialReference);return this._validateQuery(s),q(s)?(s.outFields=void 0,s.returnGeometry=void 0,(await this._enqueueQuery(s,e)).createQueryResponseForCount()):this._getFeatureCount()}async queryObjectIds(t,e){const s=await(0,m.T2)(t,null,this._queryEngineParams.spatialReference);return this._validateQuery(s),q(s)?(s.resultRecordCount=s.resultRecordCount?Math.min(s.resultRecordCount,8e3):8e3,s.resultOffset=s.resultOffset??0,s.returnGeometry=void 0,s.outFields=void 0,(await this._enqueueQuery(s,e)).items.map(t=>t.getObjectId())):Array.from({length:await this._getFeatureCount()},(t,e)=>e)}async queryExtent(t,e){const s=await(0,m.T2)(t,null,this._queryEngineParams.spatialReference);if(this._validateQuery(s),this._fullExtent&&!q(s))return{count:await this._getFeatureCount(),extent:this._fullExtent};const i=(0,n.z)(this._metadata.spatialReference);s.returnGeometry=!0,s.outFields=void 0;const r=(0,d.hZ)((0,d.vt)(),d.qv),o=(0,d.vt)(),a=await this._enqueueQuery(s,e);let h=0;for(const t of a.items)t.getBounds(o)&&((0,d.RF)(r,o),h+=1);return{count:h,extent:(0,f.Wc)(r,i,s.outSR?(0,n.z)(s.outSR):i,i,!1)}}async queryStream(t,e,s){if(!s.signal)throw new Error("InternalError: AbortSignal must be passed");const i=await this.getFileInfo(t),r=(await(0,b.N)()).Query.new();"tile"===e.type&&(r.setExtent(e.extent),r.setQuantizationTransform(e.transform),r.setScale(e.scale)),r.setOutFields(e.outFields.filter(t=>null!=this._indexMap[t])),r.setOutSpatialReference(e.outSpatialReference.wkid),r.setReturnGeometry(!0),e.where&&await this._setWhereClause(r,i.file,e.where);const n=await i.file.executeQuery(r,s.signal),o=i.streamIdCounter++,a=(0,u.NY)(s.signal,t=>{const e=i.streams.get(o);null!=e&&(e.handle.remove(),i.streams.delete(o))});return i.streams.set(o,{stream:n,handle:a}),o}async getStreamNext(t,e,s){if(!s.signal)throw new Error("InternalError: AbortSignal must be passed");const i=await this.getFileInfo(t),r=i.streams.get(e);if(!r)return null;const n=await r.stream.next(s.signal);return null==n&&(r.handle.remove(),i.streams.delete(e)),n?.serialize().buffer}async createPatch(t,e,s,i,r){if(!r.signal)throw new Error("InternalError: AbortSignal must be passed");const n=await this.getFileInfo(t);return(await n.file.createChunkPatch(e,s,i,r.signal)).serialize().buffer}async _getFile(t){for(const e of await this.getFileInfos())if(e.id===t)return e.file;throw new Error(`InternalError: File ${t} does not exist`)}_addFile(t){const e=this._fileInfos.size;this._fileInfos.set(t,this._createFileInfo(t,e))}async _createFileInfo(t,e){return{id:e,file:await(0,F.DV)(t,{geometryInfo:this._geometryInfo,getCustomParameters:()=>this._customParameters}),streamIdCounter:0,streams:new Map}}async _getFeatureCount(){return(await this.getFileInfos()).reduce((t,e)=>t+e.file.numRows(),0)}_validateQuery(t){if(!this._capabilities.query.supportsStatistics&&t.outStatistics)throw new o.A("parquet:unsupported","Statistics queries are not supported",{query:t});if(!this._capabilities.query.supportsOrderBy&&t.orderByFields?.length)throw new o.A("parquet:unsupported","Queries using orderBy are not supported",{query:t});if(!this._capabilities.query.supportsDistinct&&t.returnDistinctValues)throw new o.A("parquet:unsupported","Queries using returnDistinctValues are not supported",{query:t})}async _setWhereClause(t,e,s){const i=this._indexMap,r=this._fieldsIndex,n={getAttribute(t,s){const n=e.readAttribute(t.rowGroup,t.row,i[s]);if(null==n)return null;const o=r.get(s);return"esriFieldTypeString"===o.type||"esriFieldTypeDateOnly"===o.type||"esriFieldTypeTimeOnly"===o.type||"esriFieldTypeTimestampOffset"===o.type?E.decode(n):n}},a=await(0,c.GP)(s,this._fieldsIndex);if(!a.isStandardized)throw new o.A("sql-parse-error","expression is not standardized");t.setWhere(s),t.setWhereEvaluator((t,e)=>a.testFeatureCompiled({rowGroup:t,row:e},n,null)),t.setWhereFields(a.fieldNames)}async*_fetchChunks(t,e){const s=await(0,b.N)();for(const i of await this.getFileInfos()){const r=s.Query.new();r.setOutFields(t.fields),r.setReturnGeometry(t.returnGeometry),t.where&&await this._setWhereClause(r,i.file,t.where);const n=await i.file.executeQuery(r),o=[],a=n.next(e);for(let t=0;t<4;t++)o.push(n.next(e));let h=await a;for(;null!=h;){(0,u.Te)(e);const t=new O.s(this._metadata,this._indexMap,h,i.id),s=k([new C.j(t,null,0,!1)],this._queryEngineParams),r=o.shift();o.push(n.next(e)),yield s,h=await r}}}_enqueueQuery(t,e){return this._queue.push(t,e)}async _executeQuery(t,e){const s=await this._getReadParams(t);if(t.where=void 0,t.objectIds?.length){const s=new Map;for(const e of t.objectIds){const t=(0,g.wY)(e),i=(0,g.gE)(e);let r=s.get(t);r||(r=[],s.set(t,r)),r.push(i)}const i=[];for(const[r,n]of s.entries()){const s=await this._executeFileIdQuery(t,r,n,e);for(const t of s)i.push(t)}return new y.G(i,t,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:!1,hasZ:!1,featureAdapter:M,featureIdInfo:this._queryEngineParams.featureIdInfo})}let i=t.resultRecordCount??await this._getFeatureCount(),r=t.resultOffset??0;t.resultRecordCount=void 0,t.resultOffset=void 0;const n=[];for await(const o of this._fetchChunks(s,e)){const s=await o.executeQueryForOpaqueFeatures(t,e);if(s.length>r){const e=s.slice(r,Math.min(r+i,s.length));for(const t of e)n.push(t);if(r=0,i-=e.length,0===i)return new y.G(n,t,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:!1,hasZ:!1,featureAdapter:M,featureIdInfo:this._queryEngineParams.featureIdInfo})}else r-=s.length}return new y.G(n,t,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:!1,hasZ:!1,featureAdapter:M,featureIdInfo:this._queryEngineParams.featureIdInfo})}async _executeFileIdQuery(t,e,s,i){const r=await this._getReadParams(t),n=(await(0,b.N)()).Query.new();n.setOutFields(r.fields),n.setReturnGeometry(r.returnGeometry),n.setIds(new Uint32Array(s));const o=await this._getFile(e),a=await o.executeQuery(n,i);let h=await a.next(i),u=0;const l=[];for(;null!=h;){const t=new O.s(this._metadata,this._indexMap,h,e),s=new C.j(t,null,u++,!1);l.push(s),h=await a.next(i)}return k(l,this._queryEngineParams).executeQueryForOpaqueFeatures(t,i)}async _getReadParams(t){const e=new Set;if(t.outStatistics)for(const s of t.outStatistics)null!=s.onStatisticField&&e.add(s.onStatisticField);if(t.outFields)for(const s of t.outFields)e.add(s);return{fields:(e.has("*")?this._fieldsIndex.fields.map(t=>t.name):Array.from(e)).filter(t=>null!=this._indexMap[t]),returnGeometry:!!t.returnGeometry||!!t.geometry,where:t.where}}}function q(t){for(const e in t){const s=e;switch(s){case"resultOffset":case"resultRecordCount":case"aggregateIds":case"distance":case"gdbVersion":case"geometry":case"having":case"timeExtent":case"objectIds":case"historicMoment":case"where":return null!=t[s]}}return!1}function k(t,e){const s=new R.I;for(const e of t)s.insert(e);return new f.do({...e,featureStore:s})}function G(t){switch(t.length){case 4:return(0,d.Jt)((0,d.vt)(),t);case 6:return t;default:throw new o.A("parquet:protocol-violation","Invalid Geoparquet file. BoundingBox size must be 4 or 6.",{bbox:t})}}function Q(t){const e=t?.featureCount;let s=!1;return null!=e&&e<(0,a.A)("parquetlayer-full-query-feature-count")&&(s=!0),{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:8e3,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:void 0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,supportsCacheHint:!1,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:s,supportsExtent:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:s,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsPercentileStatistics:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:s,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,supportsTrueCurve:!1,tileMaxRecordCount:void 0},queryAttributeBins:{supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},34582(t,e,s){s.d(e,{A:()=>a});var i=s(5482),r=s(69540),n=s(25482),o=s(91429);let a=class extends((0,r.OU)(n.o)){constructor(t){super(t),this.type="wkb",this.field=null}};(0,i.Cg)([(0,o.MZ)({type:["wkb"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:["counter-clockwise"],json:{write:!0}})],a.prototype,"orientation",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"field",void 0),a=(0,i.Cg)([(0,o.$K)("esri.layers.support.GeometryEncodingWkb")],a)},42760(t,e,s){s.d(e,{hG:()=>y,nc:()=>m,sA:()=>f,ye:()=>p}),s(7762);var i=s(49186),r=s(66552),n=s(16930),o=s(20437),a=s(30524),h=s(9075),u=s(34582),l=s(54625),c=s(63892);const p=new r.J({esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint"}),d=new Set(["uncompressed","snappy","gzip"]);function f(t){return p.toJSON(t)}function y(t){return p.fromJSON(t)}async function m(t,e={}){if(t.urls.length<1)throw new i.A("parquet:bad-input","At least one url must be specified",t);if(t.geometryType&&t.spatialReference&&t.geometryEncoding&&t.fields)return t;const s=await(0,c.DV)(t.urls.getItemAt(0),{getCustomParameters:()=>e.customParameters});for(const t of s.compressionCodecs())if(!d.has(t))throw new i.A("parquet:unsupported",`Compression codec ${t} is unsupported. Must be of type ${Array.from(d).join(",")}`);const r=(0,c.hD)(s),p={...t,file:s};if(null==p.fields&&(p.fields=s.fields(!1).map(t=>o.A.fromJSON({name:t.name,alias:t.name,type:t.type}))),null!=p.geometryEncoding){const t=p.geometryEncoding;switch(t.type){case"wkb":{const e=p.fields.find(e=>e.name===t.field);if(!e)throw new i.A("parquet:unsupported",`Geometry encoding references field ${t.field} which does not exist`);if("blob"!==e.type)throw new i.A("parquet:unsupported",`Invalid field type for geometry encoding. Found ${e.type} but expected 'blob'`);break}case"location":for(const e of[t.xField,t.yField])if(null!=e){const t=p.fields.find(t=>t.name===e);if(!t)throw new i.A("parquet:unsupported",`Geometry encoding references field ${e} which does not exist`);if(!(0,a.WA)(t))throw new i.A("parquet:unsupported",`Invalid field type for location geometry encoding. Found ${t.type} but expected a numeric`)}}}null==p.geometryEncoding&&(p.geometryEncoding=function(t,e){if(null!=t){const e=t.primary_column,s=t.columns[e];return new u.A({field:e,orientation:"counterclockwise"===s.orientation?"counter-clockwise":null})}const s=e.filter(t=>(0,a.WA)(t)).map(t=>t.name),i=(0,l.i_)(s);return i.latitudeFieldName&&i.longitudeFieldName?new h.A({xField:i.longitudeFieldName,yField:i.latitudeFieldName}):null}(r,p.fields));const f=(0,c.Xj)(s);if(f&&(p.displayOptimization=f),p.geometryEncoding)switch(p.geometryEncoding.type){case"location":null==p.spatialReference&&(p.spatialReference=n.A.WGS84),null==p.geometryType&&(p.geometryType="point");break;case"wkb":{if(!r)return p;const t=r.primary_column,e=r.columns[t];if(p.geometryType||(p.geometryType=function(t){const{geometry_types:e}=t,s=new Set;for(const t of e){const e=_(t);e&&s.add(e)}if(s.size>1)throw new i.A("parquet:unsupported","Parquet mixed geometry types are not supported",{geometryTypes:s});return 1===s.size?s.values().next().value:void 0}(e)),p.spatialReference||(p.spatialReference=function(t){const e=t.crs?.id?.code;return e&&"number"==typeof e?new n.A({wkid:e}):void 0}(e)),p.fields)for(const t of Object.keys(r.columns))p.fields=p.fields.filter(e=>e.name!==t)}}if(p.displayOptimization){const t=p.displayOptimization.index;if(!p.spatialReference&&t.wkid&&(p.spatialReference=new n.A({wkid:t.wkid})),!p.geometryType)switch(t.type){case"z":p.geometryType="point";break;case"xz":p.geometryType=t.geometryType}}return p}function _(t){switch(t){case"Point":return"point";case"Polygon":case"MultiPolygon":return"polygon";case"LineString":return"polyline";case"MultiPoint":return"multipoint";default:return null}}},63892(t,e,s){s.d(e,{DV:()=>y,Xj:()=>_,hD:()=>m});var i=s(11254),r=s(49186),n=s(44208),o=s(563),a=s(84952),h=s(39412);const u="parquet.v1",l=new o.QueueProcessor({concurrency:12,process:async t=>{const{data:e}=await(0,i.A)(t.url,t.options);return e}}),c=t=>async function(e,s,i,r){const o=t?.(),a={url:e,options:{responseType:"array-buffer",query:o??{},cacheMode:"no-store",useQueue:!0,headers:{range:`bytes=${s}-${i}`}}};if(!(0,n.A)("parquetlayer-cache-enabled"))return l.push(a);const h=new URL(e);h.searchParams.append("range",`${s}-${i}`);try{const t=await caches.open(`${u}:${e}`),s=await t.match(h);if(s)return await s.arrayBuffer();const i=await l.push(a);return await t.put(h,new Response(i,{headers:{"Content-Type":"application/octet-stream","Content-Length":i.byteLength.toString()}})),i}catch(t){return l.push(a)}},p=t=>async function(e){if((0,a.w8)(e)){const{data:t}=await(0,i.A)(e,{responseType:"blob"});return t.size}const{data:s}=await(0,i.A)(e,{responseType:"native",method:"head",query:t?.()}),r=s.headers.get("Content-Length");if(null==r)throw new Error("Unable to parse content length");const o=parseInt(r,10);if(!(0,n.A)("parquetlayer-cache-enabled"))return o;try{const t=`${u}:${e}`,i=new URL(e);i.searchParams.append("metadata","true");let r=await caches.open(t);const n=s.headers.get("etag")??s.headers.get("Last-Modified");if(null==n)return await caches.delete(t),o;const a=await r.match(i),h=await(a?.json());h?.tag!==n&&(await caches.delete(t),r=await caches.open(t));const l=JSON.stringify({tag:n});await r.put(i,new Response(l,{headers:{"Content-Type":"application/json","Content-Length":l.length.toString()}}))}catch(t){}return o};function d(t,e){switch(e){case"esriGeometryPoint":return t.GeometryType.Point;case"esriGeometryPolygon":case"polygon":return t.GeometryType.Polygon;case"esriGeometryPolyline":case"polyline":return t.GeometryType.Polyline;case"esriGeometryMultipoint":case"multipoint":return t.GeometryType.Multipoint;default:throw new r.A("parquet",`Found unexpected GeometryType: ${e}`)}}function f(t,e){const s=t.GeometryInfo.new();e.geometry&&s.setGeometry(function(t,e){const s=e.encoding,i=d(t,e.geometryType),r=e.spatialReference.wkid;if(null==r)throw new Error("InternalError: Wkid must be defined.");switch(s.type){case"wkb":return t.GeometryField.fromWkb(s.field,r,i);case"location":{const{yField:e,xField:n}=s;return t.GeometryField.fromLocation(e,n,r,i)}}}(t,e.geometry));const i=e.displayOptimization;if(i){const{index:e,parentColumn:r}=i,n=t=>null!=r?[r,t].join("."):t;if("z"===e.type){const i=t.DisplayOptimizationZBuilder.new();i.setCodeField(n(e.code)),i.setXColumn(n(e.xColumn)),i.setYColumn(n(e.yColumn)),i.setCooordinatePrecision(e.coordinatePrecision),i.setFullExtent(e.fullExtent),i.setSpatialReference(e.wkid,e.wkt),i.setHasZ(!!e.zColumn),i.setHasM(!!e.mColumn),s.setOptmizationZ(i)}if("xz"===e.type){const i=d(t,e.geometryType),r=t.DisplayOptimizationXZBuilder.new();r.setCodeField(n(e.code)),r.setEncoding(e.encoding),r.setFullExtent(e.fullExtent),r.setGeometryType(i),r.setSpatialReference(e.wkid,e.wkt),r.setMaxLevel(e.maxLevel),r.setHasZ(e.hasZ??!1),r.setHasM(e.hasM??!1);for(const s of e.levels??[]){const[e,i]=s.transform.translate,[o,a]=s.transform.scale,h=new Float64Array([e,i]),u=new Float64Array([o,a]),l=n(s.column);r.addLevel(t.MultiscaleGeometryField.new(s.level,s.scale,l,h,u))}s.setOptmizationXZ(r)}}return s}async function y(t,e={}){const s=await(0,h.N)(),i=c(e.getCustomParameters),n=p(e.getCustomParameters),o=e.geometryInfo?f(s,e.geometryInfo):null;try{return await s.ParquetFile.fromUrl(t,i,n,o)}catch(t){throw new r.A("parquet","Failed to parse file",{error:t})}}function m(t){const e=t.keyValueMetadata("geo");return null!=e?JSON.parse(e):null}function _(t){if(t.keyValueMetadata("esri"))throw new r.A("parquet:unsupported","File was created using an unsupported experimental display index. Please regenerate the file.");const e=t.keyValueMetadata("geodisplay");if(null!=e)return JSON.parse(e);const s=t.keyValueMetadata("org.apache.spark.sql.parquet.row.metadata");if(null!=s){const t=JSON.parse(s);for(const e of t.fields)if(null!=e.metadata&&"type"in e.metadata&&("xz"===e.metadata.type||"z"===e.metadata.type)){const t={parentColumn:e.name,index:e.metadata};if("xz"===t.index.type&&(t.index.geometryType=t.index.geometryType.toLowerCase(),"esri-pbf"===t.index.encoding&&(t.index.encoding="esriPBF"),"esriPBF"!==t.index.encoding))throw new r.A("parquet:unsupported",`Encoding for display index must be of type esriPBF, but found ${t.index.encoding}`);return t}}return null}},93470(t,e,s){s.d(e,{Cb:()=>n,HW:()=>l,JR:()=>r,JZ:()=>h,WR:()=>a,b6:()=>c,fT:()=>i,nC:()=>u,yM:()=>o});const i=[252,146,31,255],r=[153,153,153,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},a={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},h={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},u={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},l={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7548],{69052(t,e,n){n.d(e,{hr:()=>r,ie:()=>c,uC:()=>a});var s=n(34727);class r{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return o(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+i(this.range,t-e,n)}minimalMonotonic(t,e,n){return o(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(s)?n:s}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function o(t,e,n,s,r=0,o=!1){return(s-=r)<e?s+=i(t,e-s):s>n&&(s-=i(t,s-n)),o&&s===n&&(s=e),s+r}function i(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new r(0,2*Math.PI),c=(new r(-Math.PI,Math.PI),new r(0,360))},69397(t,e,n){n.d(e,{Qf:()=>c,Qh:()=>i,RS:()=>r,Ul:()=>p,i5:()=>h,lM:()=>o,qK:()=>u});var s=n(34275);const r=16;function o(t){if(!t)return 0;let e=u;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let n=f;for(let s=0;s<e;s++)n+=a(t[s]);return n}(t);let e=u;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return r;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+h:Array.isArray(e)?l(e,r):0:0),0)}function l(t,e){return f+t.length*e}const u=32,f=16,h=145,p=64},31411(t,e,n){n.d(e,{GS:()=>R,gh:()=>E});var s=n(49186),r=n(56512),o=n(65864),i=n(4305),a=n(50954),c=n(52006),l=n(49663),u=n(46068),f=n(15507);const h=1e-6,p=[0,0];function m(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class d{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:s,minSegmentsPerCurve:r}){const o=n*n,i=e*e,a=1/s,c=this.interpolate(0),l=this.interpolate(1);(0,f.kb)(this.curveStart,c)>h&&t.push(c),this.initialize(c,l);const u=1/r;for(let t=r-1;t>0;t--){const e=t*u;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===o||!isFinite(o)||(0,f.kb)(this.arcStart,this.arcEnd)<o)&&(0===i||!isFinite(i)||this.getDeviation2()<i)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,f.kb)(this.curveEnd,l)>h&&t.push([...this.curveEnd]),t}}class y extends d{constructor(t,e){const[n,s,r]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[s,r],this._arcControlPoints=[s,r],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:s,tEnd:r}=this,[o,i]=this._arcControlPoints,a=(t-s)/(r-s),c=(0,f.RS)([],e,o,a),l=(0,f.RS)(p,o,i,a),u=(0,f.RS)([],i,n,a),h=(0,f.RS)([],c,l,a),m=(0,f.RS)([],l,u,a),d=(0,f.RS)([],h,m,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([m,u]),this.tEndStack.push(t),this.arcEndStack.push(d),this._arcControlPoints[0]=c,this._arcControlPoints[1]=h,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[s,r]=this._curveControlPoints;return(0,i.B4)(e,s,r,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,s]=this._arcControlPoints;return Math.max((0,f.yE)(n,t,e),(0,f.yE)(s,t,e))}}class g extends d{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,u.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,u.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,f.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function S(t,e,n,{cx:s,cy:r,radius:o,thetaStart:i,thetaEnd:a,isInvalid:c},{maxDeviation:l,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:m}){if(c)return t.push([...n]),t;const d=2*o,y=[s+o*Math.cos(i),r+o*Math.sin(i)],g=[s+o*Math.cos(a),r+o*Math.sin(a)];(0,f.kb)(e,y)>h&&t.push(y);const S=Math.abs(a-i),M=u>0&&u<d?2*Math.asin(u/d):S,v=l>0&&l<=o?2*Math.acos(1-l/o):S,w=Math.min(M,v),x=Math.min(p,Math.max(m,Math.ceil(Math.abs(S/w)))),b=1/x;for(let e=1;e<x;e++){const n=e*b,c=i*(1-n)+a*n;t.push([s+o*Math.cos(c),r+o*Math.sin(c)])}return t.push(g),(0,f.kb)(n,g)>h&&t.push([...n]),t}function M(t,e,n,s){return new y(e,n).densify(t,s)}function v(t,e,n,s){const r=(0,a.pM)(e,n),[o]=n.c;return S(t,e,o,r,s)}function w(t,e,n,s){const r=(0,l.io)(e,n),[o]=n.a;return S(t,e,o,r,s)}function x(t,e,n,s){const[r,o,i,a,c,l,u]=n.a;return 0===l||0===u?(t.push([...r]),t):new g(e,n).densify(t,s)}function b(t,e,n,s){return(0,c.Xq)(n)?(t.push([...n]),t):(0,c.n1)(n)?M(t,e,n,s):(0,c.aO)(n)?v(t,e,n,s):(0,c.DA)(n)?w(t,e,n,s):x(t,e,n,s)}function R(t,e={}){if(!(0,c.Ed)(t))return t;const n=m(e),s=(0,c.FD)(t),r=[];for(const t of s){const e=[];for(let s=0;s<t.length-1;s++){const r=s+1,o=[...(0,c.yP)(t[s])];0===s&&e.push(o),b(e,o,t[r],n)}r.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:r,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:r,spatialReference:t.spatialReference}}const A=(0,r.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function E(t,e,r){const i=new Set(e);return await async function(t,e,r){let o=null;for(const i of t)if(i&&(0,c.Ed)(i)&&null==i.spatialReference.xyTolerance&&(0,c.V8)(i,e)){const t=i.spatialReference;if(!t)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=P(t);if(r.has(e))i.spatialReference=r.get(e);else{o||(o=await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)));const a=o.fromSpatialReference(t),c=a?.getTolerance();if(null==c)throw new s.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const l=i.spatialReference.clone();l.read({xyTolerance:c}),i.spatialReference=l,r.set(e,l)}}}(t,i,r),t.map(t=>{if(!t||!(0,c.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const s=A(n);return(0,o.rS)(function(t,e,n){if(!(0,c.Ed)(t))return t;const s=new Set(e),r=m(n),o=(0,c.FD)(t),i=[];let a=!1;for(const t of o){const e=[];for(let n=0;n<t.length-1;n++){const o=n+1,i=[...(0,c.yP)(t[n])];0===n&&e.push(i);const l=t[o];(0,c.Xq)(l)?e.push([...l]):(0,c.n1)(l)&&!s.has("cubic-bezier")?M(e,i,l,r):(0,c.aO)(l)&&!s.has("circular-arc")?v(e,i,l,r):(0,c.DA)(l)&&!s.has("elliptic-arc")?w(e,i,l,r):(0,c.wY)(l)&&!s.has("elliptic-arc")?x(e,i,l,r):(e.push((0,c.tk)(l)),a=!0)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:i}:{paths:i}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:i}:{rings:i}}}(t,e,s))})}function P(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,n){n.d(e,{Y_:()=>F,O7:()=>k,el:()=>P});var s=n(92602),r=n(69052),o=n(49186),i=n(53966),a=n(39829),c=n(82799),l=n(16930),u=n(80754),f=n(21325),h=n(28735),p=n(52006),m=n(31411),d=n(11254),y=n(60408),g=n(65864),S=n(2272),M=n(84952),v=n(92300);const w=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function x(t){return"polygon"===t[0].type}function b(t){return"polyline"===t[0].type}function R(t,e,n){const s=1e6;if(e){const e=(0,p.Ed)(t)?(0,m.GS)(t,{maxSegmentLength:s}):function(t,e){if(!(t instanceof c.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw w().error(t),new o.A("internal:geometry",t)}const n=(0,u.r8)(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const r=t[s][0],o=t[s][1],i=t[s+1][0],a=t[s+1][1],c=Math.sqrt((i-r)*(i-r)+(a-o)*(a-o)),l=(a-o)/c,u=(i-r)/c,f=c/e;if(f>1){for(let t=1;t<=f-1;t++){const s=t*e,i=u*s+r,a=l*s+o;n.push([i,a])}const t=(c+Math.floor(f-1)*e)/2,s=u*t+r,i=l*t+o;n.push([s,i])}n.push([i,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:s,spatialReference:t.spatialReference}):new c.A({paths:s,spatialReference:t.spatialReference})}(t,s);t=(0,h.ci)(e,!0)}return n&&(t=(0,u.kS)(t,n)),t}function A(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,u.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,u.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,u.kd)(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=(0,u.kd)(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function E(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const r=e.cutIndexes[s],o=e.geometries[s],i=(0,u.r8)(o);for(let t=0;t<i.length;t++){const e=i[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,u.kd)(n,180);for(let n=0;n<e.length;n++){const e=o.getPoint(t,n);o.setPoint(t,n,e.clone().offset(s,0))}return!0}})}if(r===n){if(x(t))for(const e of(0,u.r8)(o))t[r]=t[r].addRing(e);else if(b(t))for(const e of(0,u.r8)(o))t[r]=t[r].addPath(e)}else n=r,t[r]=o}return t}async function P(t,e,n){if(!Array.isArray(t))return P([t],e);e&&"string"!=typeof e&&w().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof e?e:e?.url??s.A.geometryServiceUrl;let o,i,l,p,m,x,b,k,C=0;const F=[],q=[];for(const e of t)if(null!=e)if(o||(o=e.spatialReference,i=(0,f.Vp)(o),l=o.isWebMercator,x=l?102100:4326,p=u.j7[x].maxX,m=u.j7[x].minX,b=u.j7[x].plus180Line,k=u.j7[x].minus180Line),i)if("mesh"===e.type)q.push(e);else if("point"===e.type)q.push(A(e.clone(),p,m));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>A(t,p,m)),q.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,i);q.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,u.kd)(t.xmin,m)*(2*p);let s=0===n?e.clone():(0,u.kS)(e.clone(),n);t.offset(n,0);let{xmin:r,xmax:o}=t;r=Number(r.toFixed(9)),o=Number(o.toFixed(9)),t.intersects(b)&&o!==p?(C=o>C?o:C,s=R(s,l),F.push(s),q.push("cut")):t.intersects(k)&&r!==m?(C=o*(2*p)>C?o*(2*p):C,s=R(s,l,360),F.push(s),q.push("cut")):q.push(s)}else q.push(e.clone());else q.push(e);else q.push(e);let z=(0,u.kd)(C,p),I=-90;const O=z,G=new c.A;for(;z>0;){const t=360*z-180;G.addPath([[t,I],[t,-1*I]]),I*=-1,z--}if(F.length>0&&O>0){const e=E(F,await async function(t,e,n,s){const r=(0,S.Dl)(t),o=e[0].spatialReference,i={...s,responseType:"json",query:{...r.query,f:"json",sr:(0,f.YX)(o),target:JSON.stringify({geometryType:(0,y.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,d.A)(r.path+"/cut",i),{cutIndexes:c,geometries:l=[]}=a.data;return{cutIndexes:c,geometries:l.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=o,e})}}(r,F,G,n)),s=[],o=[];for(let n=0;n<q.length;n++){const r=q[n];if("cut"!==r)o.push(r);else{const r=e.shift(),i=t[n];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&r.rings.length>=i.rings.length?(s.push(r),o.push("simplify")):o.push(l?(0,h.Gh)(r):r)}}if(!s.length)return o;const i=await async function(t,e,n){const s="string"==typeof t?(0,M.An)(t):t,r=e[0].spatialReference,o=(0,y.$B)(e[0]),i={...n,query:{...s.query,f:"json",sr:(0,f.YX)(r),geometries:JSON.stringify((0,v.X)(e))}},{data:a}=await(0,d.A)(s.path+"/simplify",i);return(0,v.V)(a.geometries,o,r)}(r,s,n),a=[];for(let t=0;t<o.length;t++){const e=o[t];"simplify"!==e?a.push(e):a.push(l?(0,h.Gh)(i.shift()):i.shift())}return a}const Z=[];for(let t=0;t<q.length;t++){const e=q[t];if("cut"!==e)Z.push(e);else{const t=F.shift();Z.push(!0===l?(0,h.Gh)(t):t)}}return Z}function k(t,e,n){const s=(0,f.Vp)(n);if(null==s)return t;const[r,o]=s.valid,i=2*o;let a=0,c=0;e>o?a=Math.ceil(Math.abs(e-o)/i):e<r&&(a=-Math.ceil(Math.abs(e-r)/i)),t>o?c=Math.ceil(Math.abs(t-o)/i):t<r&&(c=-Math.ceil(Math.abs(t-r)/i));let l=t+(a-c)*i;const u=l-e;return u>o?l-=i:u<r&&(l+=i),l}function C(t){const e=(0,f.Vp)(t);if(null==e)return null;const[n,s]=e.valid;return new r.hr(n,s)}const F=C(l.A.WGS84);C(l.A.WebMercator)},80754(t,e,n){n.d(e,{j7:()=>a,kS:()=>l,kd:()=>c,r8:()=>u});var s=n(82799),r=n(16930),o=n(60408),i=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function c(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,i.Ed)(t))for(const n of function(t){return(0,o.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,i.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,i.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,i.n1)(t)){const[n,s,r]=t.b;n[0]+=e,s[0]+=e,r[0]+=e;continue}t[0]+=e}for(const n of u(t))for(const t of n)t[0]+=e;return t}function u(t){return(0,o.Bi)(t)?t.rings:t.paths}},62815(t,e,n){n.d(e,{N:()=>a,d:()=>c});var s=n(86211),r=n(73941),o=n(21325),i=n(52006);function a(t,e,n){const s=c(e,n);if(1!==s)switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,s);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t){if(t.curvePaths)for(const n of t.curvePaths)for(const t of n){const n=(0,i.yP)(t);n.length>2&&(n[2]*=e)}if(t.paths)for(const n of t.paths)for(const t of n)t.length>2&&(t[2]*=e)}}(t,s);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t){if(t.curveRings)for(const n of t.curveRings)for(const t of n){const n=(0,i.yP)(t);n.length>2&&(n[2]*=e)}if(t.rings)for(const n of t.rings)for(const t of n)t.length>2&&(t[2]*=e)}}(t,s);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const n of t.points)n.length>2&&(n[2]*=e)}(t,s);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,s);default:return}}function c(t,e){return null==t||null==e||e.vcsWkid||(0,o.aI)(t,e)||(0,r.xP)(t)||(0,r.xP)(e)?1:(0,s.G9)(t)/(0,s.G9)(e)}},41653(t,e,n){n.r(e),n.d(e,{queryModel:()=>g,queryModels:()=>y});var s=n(11254),r=n(4576),o=n(49186),i=n(91869),a=n(84952),c=n(5482),l=n(69622),u=n(91429);let f=class extends l.A{constructor(t){super(t),this.name="",this.size=0}arrayBuffer(t){return this.loadArrayBuffer(t)}};(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"loadArrayBuffer",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"name",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"size",void 0),f=(0,c.Cg)([(0,u.$K)("esri.layers.scene.ModelFileInfo")],f);let h=class extends l.A{constructor(t){super(t),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"files",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"format",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"isSource",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"name",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"size",void 0),h=(0,c.Cg)([(0,u.$K)("esri.layers.scene.ModelInfo")],h);var p=n(20557),m=n(99199),d=n(61956);async function y(t,e,n,s){const c=t.infoFor3D;if(!c)throw new o.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:t});const{objectIdField:l,globalIdField:u}=e,{sourceHashField:f}=c;if(!l||!u||!f)throw new o.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:t});const h=function(t,e,n,s,r){const o=function(t,e){const n=d.A.from(e)?.clone()??t.createQuery();return n.outFields=null,n.formatOf3DObjects=null,n.returnGeometry=!1,n}(t,e);return o.outFields=[n,s,r],o.returnGeometry=!1,o}(t,n,l,u,f),y=await e.queryFeatures(h,s);return await async function(t){const{infoFor3D:e,associatedLayer:n,options:s}=t,o=n.globalIdField,c=n.parsedUrl;if(!o||!c)return new Map;const l=await async function(t){const{options:e,infoFor3D:n,featureInfos:s}=t,o=[...s.keys()];if(e?.requestedFormat){const t=(0,p.fE)(e.requestedFormat,n.supportedFormats);return t?[{formatId:t,objectIds:o}]:[]}const c=(0,r.Am)([...n.queryFormats,...n.editFormats]);return await async function({options:t,infoFor3D:e,featureInfos:n,requestQuery:s,associatedLayer:o},c){const l=!!t?.sourceOnly,u=e.assetMapFieldRoles.parentGlobalId,f=e.assetMapFieldRoles.assetHash,h=e.assetMapFieldRoles.assetType,y=l?f:u,g=new Map;for(const[t,e]of n){const n=l?e.sourceHash:e.globalId;n&&g.set(t,n)}const S=(0,r.Am)(g.values()),M=(0,p.JZ)(e);if(!M||!S.length)return[];const v=(0,a.fj)(o.parsedUrl?.path??"",`../${M.id}`),w=new d.A({where:`${y} IN (${S.map(x).join(",")})`,outFields:[y,h],returnDistinctValues:!0,returnGeometry:!1}),b=await(0,m.s)(v,w,{query:s,signal:t?.signal}),R=new Set(c),A=new Map,E=new Set;for(const t of b.features){const e=t.getAttribute(y),n=t.getAttribute(h);n&&R.has(n)&&(e?(0,i.tE)(A,e,()=>new Set).add(n):E.add(n))}if(!l&&!A.size&&E.size){const t=[...n.keys()];return c.filter(t=>E.has(t)).map(e=>({formatId:e,objectIds:t}))}const P=new Map;for(const[t,e]of g)for(const n of A.get(e)??[])(0,i.tE)(P,n,()=>[]).push(t);return c.map(t=>({formatId:t,objectIds:P.get(t)??[]})).filter(({objectIds:t})=>t.length>0)}(t,c)}(t),u=e.sourceHashField,f=new Map,h=await Promise.all(l.map(async({formatId:r,objectIds:i})=>{const a=(0,p.be)(r,e.supportedFormats),c=n.parsedUrl;if(null==a||!c||!i.length)return null;const l=(0,p._h)(r,e.supportedFormats),f=(0,p.qv)(l),h=n.createQuery();return h.objectIds=i,h.outFields=[o,u],h.formatOf3DObjects=r,h.returnGeometry=!0,{modelFormat:a,modelFileExtensions:f,featureSetJSON:await(0,m.e)(c.path,h,{query:t.requestQuery,signal:s?.signal},{uniqueIdFields:n.uniqueIdFields})}}));for(const e of h)e&&S(t,e.modelFormat,e.modelFileExtensions,e.featureSetJSON,f);return f}(new b(t,e,function(t,e){const n=new Map;for(const s of t.features){const t=s.getObjectId(),r=s.getGlobalId();null!=t&&null!=r&&n.set(t,{globalId:r,sourceHash:s.getAttribute(e)??null})}return n}(y,f),c,s))}async function g(t,e,n,s){const r=s?.format;return((await y(t,e,{objectIds:[n]},{...s,requestedFormat:r,sourceOnly:null==r})).get(n)??[]).find(t=>r&&t.format===r||!r&&t.isSource)}function S({featureInfos:t,requestQuery:e},n,s,r,o){const a=new Map;for(const t of r.assetMaps??[])(0,i.tE)(a,t.parentGlobalId,()=>[]).push(t);for(const[r,c]of t){const t=a.get(c.globalId);if(!t?.length)continue;const l=M(t,e);if(!l.length)continue;const u=l.reduce((t,e)=>t+e.size,0),f=w(l,s),p=null!=c.sourceHash&&t.some(({assetHash:t})=>t===c.sourceHash);(0,i.tE)(o,r,()=>[]).push(new h({name:f,size:u,format:n,isSource:p,files:l}))}}function M(t,e){const n=new Map;for(const e of t)(0,i.tE)(n,e.assetName,()=>[]).push(e);const s=[];for(const[t,r]of n){r.sort((t,e)=>t.seqNo-e.seqNo);const n=r.reduce((t,e)=>t+e.size,0),o=r.map(({assetURL:t})=>t).filter(t=>!!t);o.length&&s.push(new f({name:t,size:n,loadArrayBuffer:t=>v(o,e,t)}))}return s}async function v(t,e,n){const r=await Promise.all(t.map(t=>(0,s.A)(t,{responseType:"array-buffer",query:e,signal:n?.signal}).then(({data:t})=>t)));return 1===r.length?r[0]:function(t){const e=t.reduce((t,e)=>t+e.byteLength,0),n=new Uint8Array(e);let s=0;for(const e of t)n.set(new Uint8Array(e),s),s+=e.byteLength;return n.buffer}(r)}function w(t,e){const n=t.find(({name:t})=>e.some(e=>t.toLowerCase().endsWith(`.${e}`)));return n?.name??t[0].name}function x(t){return`'${t.replaceAll("'","''")}'`}class b{constructor(t,e,n,s,r){this.layer=t,this.associatedLayer=e,this.featureInfos=n,this.infoFor3D=s,this.options=r,this.requestQuery={...e.parsedUrl?.query,...t.customParameters,...t.apiKey?{token:t.apiKey}:{}}}}},92300(t,e,n){n.d(e,{V:()=>i,X:()=>o});var s=n(60408),r=n(65864);function o(t){return{geometryType:(0,s.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function i(t,e,n){const s=(0,r.xD)(e);return t.map(t=>{const e=s.fromJSON(t);return e.spatialReference=n,e})}},99199(t,e,n){n.d(e,{e:()=>c,s:()=>a});var s=n(2272),r=n(80893),o=n(22671),i=n(61956);async function a(t,e,n,s){const r=await c(t,e,n,s);return o.A.fromJSON(r)}function c(t,e,n,o){const a=(0,s.Dl)(t),c={...n},l=i.A.from(e);return(0,r.eW)(a,l,l.sourceSpatialReference,c,o)}},58501(t,e,n){n.d(e,{q:()=>r});var s=n(62815);function r(t,e,n){if(!n?.features||!n.hasZ)return;const r=(0,s.N)(n.geometryType,e,t.outSpatialReference);if(r)for(const t of n.features)r(t.geometry)}},22671(t,e,n){n.d(e,{A:()=>S});var s,r=n(5482),o=n(52106),i=n(66552),a=n(25482),c=n(4718),l=n(91429),u=n(16930),f=n(60408),h=n(65864),p=n(50498),m=n(20437),d=n(36005),y=n(43937);const g=new i.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let S=s=class extends a.o{constructor(t){super(t),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(t,e){return this.readFeaturesWithClass(t,e,o.A)}writeGeometryType(t,e,n,s){if(t)return void g.write(t,e,n,s);const{features:r}=this;if(r)for(const t of r)if(null!=t?.geometry)return void g.write(t.geometry.type,e,n,s)}readQueryGeometry(t,e){if(!t)return null;const n=!!t.spatialReference,s=(0,h.rS)(t);return s&&!n&&e.spatialReference&&(s.spatialReference=u.A.fromJSON(e.spatialReference)),s}writeSpatialReference(t,e){if(t)return void(e.spatialReference=t.toJSON());const{features:n}=this;if(n)for(const t of n)if(t&&null!=t.geometry&&t.geometry.spatialReference)return void(e.spatialReference=t.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,c.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(t){const e=this.write();if(e.features&&Array.isArray(t)&&t.length>0)for(let n=0;n<e.features.length;n++){const s=e.features[n];if(s.geometry){const e=t?.[n];s.geometry=e?.toJSON()||s.geometry}}return e}quantize(t){const{scale:[e,n],translate:[s,r]}=t,o=this.features,i=this._getQuantizationFunction(this.geometryType,t=>Math.round((t-s)/e),t=>Math.round((r-t)/n));for(let t=0,e=o.length;t<e;t++)i?.(o[t].geometry)||(o.splice(t,1),t--,e--);return this.transform=t,this}unquantize(){const{geometryType:t,features:e,transform:n}=this;if(!n)return this;const{translate:[s,r],scale:[o,i]}=n;let a=null,c=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,t],scale:[,,e]}=n;a=n=>n*e+t}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,t],scale:[,,,e]}=n;c=n=>null==n?n:n*e+t}const l=this._getHydrationFunction(t,t=>t*o+s,t=>r-t*i,a,c);for(const{geometry:t}of e)null!=t&&l&&l(t);return this.transform=null,this}readFeaturesWithClass(t,e,n){const s=u.A.fromJSON(e.spatialReference),r=[];for(let e=0;e<t.length;e++){const o=t[e],i=n.fromJSON(o),a=o.geometry?.spatialReference;null==i.geometry||a||(i.geometry.spatialReference=s);const c=o.aggregateGeometries,l=i.aggregateGeometries;if(c&&null!=l)for(const t in l){const e=l[t],n=c[t],r=n?.spatialReference;null==e||r||(e.spatialReference=s)}r.push(i)}return r}_quantizePoints(t,e,n){let s,r;const o=[];for(let i=0,a=t.length;i<a;i++){const a=t[i];if(i>0){const t=e(a[0]),i=n(a[1]);t===s&&i===r||(o.push([t-s,i-r]),s=t,r=i)}else s=e(a[0]),r=n(a[1]),o.push([s,r])}return o.length>0?o:null}_getQuantizationFunction(t,e,n){return"point"===t?t=>(t.x=e(t.x),t.y=n(t.y),t):"polyline"===t||"polygon"===t?t=>{const s=(0,f.Bi)(t)?t.rings:t.paths,r=[];for(let t=0,o=s.length;t<o;t++){const o=s[t],i=this._quantizePoints(o,e,n);i&&r.push(i)}return r.length>0?((0,f.Bi)(t)?t.rings=r:t.paths=r,t):null}:"multipoint"===t?t=>{const s=this._quantizePoints(t.points,e,n);return s&&s.length>0?(t.points=s,t):null}:"extent"===t?t=>t:null}_getHydrationFunction(t,e,n,s,r){return"point"===t?t=>{t.x=e(t.x),t.y=n(t.y),s&&(t.z=s(t.z))}:"polyline"===t||"polygon"===t?t=>{const o=(0,f.Bi)(t)?t.rings:t.paths;let i,a;for(let t=0,s=o.length;t<s;t++){const s=o[t];for(let t=0,r=s.length;t<r;t++){const r=s[t];t>0?(i+=r[0],a+=r[1]):(i=r[0],a=r[1]),r[0]=e(i),r[1]=n(a)}}if(s&&r)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=s(n[2]),n[3]=r(n[3])}}else if(s)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=s(n[2])}}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=r(n[2])}}}:"extent"===t?t=>{t.xmin=e(t.xmin),t.ymin=n(t.ymin),t.xmax=e(t.xmax),t.ymax=n(t.ymax),s&&null!=t.zmax&&null!=t.zmin&&(t.zmax=s(t.zmax),t.zmin=s(t.zmin)),r&&null!=t.mmax&&null!=t.mmin&&(t.mmax=r(t.mmax),t.mmin=r(t.mmin))}:"multipoint"===t?t=>{const o=t.points;let i,a;for(let t=0,s=o.length;t<s;t++){const s=o[t];t>0?(i+=s[0],a+=s[1]):(i=s[0],a=s[1]),s[0]=e(i),s[1]=n(a)}if(s&&r)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=s(e[2]),e[3]=r(e[3])}else if(s)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=s(e[2])}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=r(e[2])}}:null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],S.prototype,"displayFieldName",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"exceededTransferLimit",void 0),(0,r.Cg)([(0,l.MZ)({type:[o.A],json:{write:!0}})],S.prototype,"features",void 0),(0,r.Cg)([(0,d.w)("features")],S.prototype,"readFeatures",null),(0,r.Cg)([(0,l.MZ)({type:[m.A],json:{write:!0}})],S.prototype,"fields",void 0),(0,r.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],S.prototype,"geometryType",void 0),(0,r.Cg)([(0,y.K)("geometryType")],S.prototype,"writeGeometryType",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"hasM",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"hasZ",void 0),(0,r.Cg)([(0,l.MZ)({types:p.yR,json:{write:!0}})],S.prototype,"queryGeometry",void 0),(0,r.Cg)([(0,d.w)("queryGeometry")],S.prototype,"readQueryGeometry",null),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],S.prototype,"spatialReference",void 0),(0,r.Cg)([(0,y.K)("spatialReference")],S.prototype,"writeSpatialReference",null),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],S.prototype,"transform",void 0),S=s=(0,r.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],S),S.prototype.toJSON.isDefaultToJSON=!0}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7548],{69052(t,e,n){n.d(e,{hr:()=>r,ie:()=>c,uC:()=>a});var s=n(34727);class r{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return o(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,s.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+i(this.range,t-e,n)}minimalMonotonic(t,e,n){return o(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,s=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(s)?n:s}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function o(t,e,n,s,r=0,o=!1){return(s-=r)<e?s+=i(t,e-s):s>n&&(s-=i(t,s-n)),o&&s===n&&(s=e),s+r}function i(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const a=new r(0,2*Math.PI),c=(new r(-Math.PI,Math.PI),new r(0,360))},69397(t,e,n){n.d(e,{Qf:()=>c,Qh:()=>i,RS:()=>r,Ul:()=>p,i5:()=>h,lM:()=>o,qK:()=>u});var s=n(34275);const r=16;function o(t){if(!t)return 0;let e=u;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return c(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let n=f;for(let s=0;s<e;s++)n+=a(t[s]);return n}(t);let e=u;for(const n in t)t.hasOwnProperty(n)&&(e+=a(t[n]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?i(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return r;case"boolean":return 4;default:return 8}}function c(...t){return t.reduce((t,e)=>t+(e?(0,s.iu)(e)?e.byteLength+h:Array.isArray(e)?l(e,r):0:0),0)}function l(t,e){return f+t.length*e}const u=32,f=16,h=145,p=64},31411(t,e,n){n.d(e,{GS:()=>E,gh:()=>A});var s=n(49186),r=n(56512),o=n(65864),i=n(4305),a=n(50954),c=n(52006),l=n(49663),u=n(46068),f=n(15507);const h=1e-6,p=[0,0];function m(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class d{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:n,maxSegmentsPerCurve:s,minSegmentsPerCurve:r}){const o=n*n,i=e*e,a=1/s,c=this.interpolate(0),l=this.interpolate(1);(0,f.kb)(this.curveStart,c)>h&&t.push(c),this.initialize(c,l);const u=1/r;for(let t=r-1;t>0;t--){const e=t*u;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===o||!isFinite(o)||(0,f.kb)(this.arcStart,this.arcEnd)<o)&&(0===i||!isFinite(i)||this.getDeviation2()<i)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,f.kb)(this.curveEnd,l)>h&&t.push([...this.curveEnd]),t}}class y extends d{constructor(t,e){const[n,s,r]=e.b;super(t,n),this._controlPointsStack=[],this._curveControlPoints=[s,r],this._arcControlPoints=[s,r],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:n,tStart:s,tEnd:r}=this,[o,i]=this._arcControlPoints,a=(t-s)/(r-s),c=(0,f.RS)([],e,o,a),l=(0,f.RS)(p,o,i,a),u=(0,f.RS)([],i,n,a),h=(0,f.RS)([],c,l,a),m=(0,f.RS)([],l,u,a),d=(0,f.RS)([],h,m,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([m,u]),this.tEndStack.push(t),this.arcEndStack.push(d),this._arcControlPoints[0]=c,this._arcControlPoints[1]=h,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:n}=this,[s,r]=this._curveControlPoints;return(0,i.B4)(e,s,r,n,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[n,s]=this._arcControlPoints;return Math.max((0,f.yE)(n,t,e),(0,f.yE)(s,t,e))}}class g extends d{constructor(t,e){const[n]=e.a;super(t,n),this._derivedEllipse=(0,u.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,u.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,f.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function S(t,e,n,{cx:s,cy:r,radius:o,thetaStart:i,thetaEnd:a,isInvalid:c},{maxDeviation:l,maxSegmentLength:u,maxSegmentsPerCurve:p,minSegmentsPerCurve:m}){if(c)return t.push([...n]),t;const d=2*o,y=[s+o*Math.cos(i),r+o*Math.sin(i)],g=[s+o*Math.cos(a),r+o*Math.sin(a)];(0,f.kb)(e,y)>h&&t.push(y);const S=Math.abs(a-i),M=u>0&&u<d?2*Math.asin(u/d):S,v=l>0&&l<=o?2*Math.acos(1-l/o):S,w=Math.min(M,v),x=Math.min(p,Math.max(m,Math.ceil(Math.abs(S/w)))),b=1/x;for(let e=1;e<x;e++){const n=e*b,c=i*(1-n)+a*n;t.push([s+o*Math.cos(c),r+o*Math.sin(c)])}return t.push(g),(0,f.kb)(n,g)>h&&t.push([...n]),t}function M(t,e,n,s){return new y(e,n).densify(t,s)}function v(t,e,n,s){const r=(0,a.pM)(e,n),[o]=n.c;return S(t,e,o,r,s)}function w(t,e,n,s){const r=(0,l.io)(e,n),[o]=n.a;return S(t,e,o,r,s)}function x(t,e,n,s){const[r,o,i,a,c,l,u]=n.a;return 0===l||0===u?(t.push([...r]),t):new g(e,n).densify(t,s)}function b(t,e,n,s){return(0,c.Xq)(n)?(t.push([...n]),t):(0,c.n1)(n)?M(t,e,n,s):(0,c.aO)(n)?v(t,e,n,s):(0,c.DA)(n)?w(t,e,n,s):x(t,e,n,s)}function E(t,e={}){if(!(0,c.Ed)(t))return t;const n=m(e),s=(0,c.FD)(t),r=[];for(const t of s){const e=[];for(let s=0;s<t.length-1;s++){const r=s+1,o=[...(0,c.yP)(t[s])];0===s&&e.push(o),b(e,o,t[r],n)}r.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:r,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:r,spatialReference:t.spatialReference}}const R=(0,r.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function A(t,e,r){const i=new Set(e);return await async function(t,e,r){let o=null;for(const i of t)if(i&&(0,c.Ed)(i)&&null==i.spatialReference.xyTolerance&&(0,c.V8)(i,e)){const t=i.spatialReference;if(!t)throw new s.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=P(t);if(r.has(e))i.spatialReference=r.get(e);else{o||(o=await Promise.all([n.e(6042),n.e(1878),n.e(8885),n.e(5756),n.e(3299),n.e(6312)]).then(n.bind(n,78125)));const a=o.fromSpatialReference(t),c=a?.getTolerance();if(null==c)throw new s.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const l=i.spatialReference.clone();l.read({xyTolerance:c}),i.spatialReference=l,r.set(e,l)}}}(t,i,r),t.map(t=>{if(!t||!(0,c.Ed)(t))return t;const n=t.spatialReference.xyTolerance;if(null==n)return t;const s=R(n);return(0,o.rS)(function(t,e,n){if(!(0,c.Ed)(t))return t;const s=new Set(e),r=m(n),o=(0,c.FD)(t),i=[];let a=!1;for(const t of o){const e=[];for(let n=0;n<t.length-1;n++){const o=n+1,i=[...(0,c.yP)(t[n])];0===n&&e.push(i);const l=t[o];(0,c.Xq)(l)?e.push([...l]):(0,c.n1)(l)&&!s.has("cubic-bezier")?M(e,i,l,r):(0,c.aO)(l)&&!s.has("circular-arc")?v(e,i,l,r):(0,c.DA)(l)&&!s.has("elliptic-arc")?w(e,i,l,r):(0,c.wY)(l)&&!s.has("elliptic-arc")?x(e,i,l,r):(e.push((0,c.tk)(l)),a=!0)}i.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:i}:{paths:i}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:i}:{rings:i}}}(t,e,s))})}function P(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},17136(t,e,n){n.d(e,{Y_:()=>F,O7:()=>k,el:()=>P});var s=n(92602),r=n(69052),o=n(49186),i=n(53966),a=n(39829),c=n(82799),l=n(16930),u=n(80754),f=n(21325),h=n(28735),p=n(52006),m=n(31411),d=n(11254),y=n(60408),g=n(65864),S=n(2272),M=n(84952),v=n(92300);const w=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function x(t){return"polygon"===t[0].type}function b(t){return"polyline"===t[0].type}function E(t,e,n){const s=1e6;if(e){const e=(0,p.Ed)(t)?(0,m.GS)(t,{maxSegmentLength:s}):function(t,e){if(!(t instanceof c.A||t instanceof a.A)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw w().error(t),new o.A("internal:geometry",t)}const n=(0,u.r8)(t),s=[];for(const t of n){const n=[];s.push(n),n.push([t[0][0],t[0][1]]);for(let s=0;s<t.length-1;s++){const r=t[s][0],o=t[s][1],i=t[s+1][0],a=t[s+1][1],c=Math.sqrt((i-r)*(i-r)+(a-o)*(a-o)),l=(a-o)/c,u=(i-r)/c,f=c/e;if(f>1){for(let t=1;t<=f-1;t++){const s=t*e,i=u*s+r,a=l*s+o;n.push([i,a])}const t=(c+Math.floor(f-1)*e)/2,s=u*t+r,i=l*t+o;n.push([s,i])}n.push([i,a])}}return function(t){return"polygon"===t.type}(t)?new a.A({rings:s,spatialReference:t.spatialReference}):new c.A({paths:s,spatialReference:t.spatialReference})}(t,s);t=(0,h.ci)(e,!0)}return n&&(t=(0,u.kS)(t,n)),t}function R(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,u.kd)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,u.kd)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,u.kd)(s,e);t=t.clone().offset(n*(-2*e),0)}else if(s<n){const e=(0,u.kd)(s,n);t=t.clone().offset(e*(-2*n),0)}}return t}function A(t,e){let n=-1;for(let s=0;s<e.cutIndexes.length;s++){const r=e.cutIndexes[s],o=e.geometries[s],i=(0,u.r8)(o);for(let t=0;t<i.length;t++){const e=i[t];e.some(n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const s=e[t][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,u.kd)(n,180);for(let n=0;n<e.length;n++){const e=o.getPoint(t,n);o.setPoint(t,n,e.clone().offset(s,0))}return!0}})}if(r===n){if(x(t))for(const e of(0,u.r8)(o))t[r]=t[r].addRing(e);else if(b(t))for(const e of(0,u.r8)(o))t[r]=t[r].addPath(e)}else n=r,t[r]=o}return t}async function P(t,e,n){if(!Array.isArray(t))return P([t],e);e&&"string"!=typeof e&&w().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof e?e:e?.url??s.A.geometryServiceUrl;let o,i,l,p,m,x,b,k,C=0;const F=[],q=[];for(const e of t)if(null!=e)if(o||(o=e.spatialReference,i=(0,f.Vp)(o),l=o.isWebMercator,x=l?102100:4326,p=u.j7[x].maxX,m=u.j7[x].minX,b=u.j7[x].plus180Line,k=u.j7[x].minus180Line),i)if("mesh"===e.type)q.push(e);else if("point"===e.type)q.push(R(e.clone(),p,m));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map(t=>R(t,p,m)),q.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,i);q.push(t.rings?new a.A(t):t)}else if(e.extent){const t=e.extent,n=(0,u.kd)(t.xmin,m)*(2*p);let s=0===n?e.clone():(0,u.kS)(e.clone(),n);t.offset(n,0);let{xmin:r,xmax:o}=t;r=Number(r.toFixed(9)),o=Number(o.toFixed(9)),t.intersects(b)&&o!==p?(C=o>C?o:C,s=E(s,l),F.push(s),q.push("cut")):t.intersects(k)&&r!==m?(C=o*(2*p)>C?o*(2*p):C,s=E(s,l,360),F.push(s),q.push("cut")):q.push(s)}else q.push(e.clone());else q.push(e);else q.push(e);let I=(0,u.kd)(C,p),O=-90;const z=I,G=new c.A;for(;I>0;){const t=360*I-180;G.addPath([[t,O],[t,-1*O]]),O*=-1,I--}if(F.length>0&&z>0){const e=A(F,await async function(t,e,n,s){const r=(0,S.Dl)(t),o=e[0].spatialReference,i={...s,responseType:"json",query:{...r.query,f:"json",sr:(0,f.YX)(o),target:JSON.stringify({geometryType:(0,y.$B)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},a=await(0,d.A)(r.path+"/cut",i),{cutIndexes:c,geometries:l=[]}=a.data;return{cutIndexes:c,geometries:l.map(t=>{const e=(0,g.rS)(t);return e.spatialReference=o,e})}}(r,F,G,n)),s=[],o=[];for(let n=0;n<q.length;n++){const r=q[n];if("cut"!==r)o.push(r);else{const r=e.shift(),i=t[n];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&r.rings.length>=i.rings.length?(s.push(r),o.push("simplify")):o.push(l?(0,h.Gh)(r):r)}}if(!s.length)return o;const i=await async function(t,e,n){const s="string"==typeof t?(0,M.An)(t):t,r=e[0].spatialReference,o=(0,y.$B)(e[0]),i={...n,query:{...s.query,f:"json",sr:(0,f.YX)(r),geometries:JSON.stringify((0,v.X)(e))}},{data:a}=await(0,d.A)(s.path+"/simplify",i);return(0,v.V)(a.geometries,o,r)}(r,s,n),a=[];for(let t=0;t<o.length;t++){const e=o[t];"simplify"!==e?a.push(e):a.push(l?(0,h.Gh)(i.shift()):i.shift())}return a}const Z=[];for(let t=0;t<q.length;t++){const e=q[t];if("cut"!==e)Z.push(e);else{const t=F.shift();Z.push(!0===l?(0,h.Gh)(t):t)}}return Z}function k(t,e,n){const s=(0,f.Vp)(n);if(null==s)return t;const[r,o]=s.valid,i=2*o;let a=0,c=0;e>o?a=Math.ceil(Math.abs(e-o)/i):e<r&&(a=-Math.ceil(Math.abs(e-r)/i)),t>o?c=Math.ceil(Math.abs(t-o)/i):t<r&&(c=-Math.ceil(Math.abs(t-r)/i));let l=t+(a-c)*i;const u=l-e;return u>o?l-=i:u<r&&(l+=i),l}function C(t){const e=(0,f.Vp)(t);if(null==e)return null;const[n,s]=e.valid;return new r.hr(n,s)}const F=C(l.A.WGS84);C(l.A.WebMercator)},80754(t,e,n){n.d(e,{j7:()=>a,kS:()=>l,kd:()=>c,r8:()=>u});var s=n(82799),r=n(16930),o=n(60408),i=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function c(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){if((0,i.Ed)(t))for(const n of function(t){return(0,o.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,i.aO)(t)){const[n,s]=t.c;n[0]+=e,s[0]+=e;continue}if((0,i.FG)(t)){const[n,s]=t.a;n[0]+=e,s[0]+=e;continue}if((0,i.n1)(t)){const[n,s,r]=t.b;n[0]+=e,s[0]+=e,r[0]+=e;continue}t[0]+=e}for(const n of u(t))for(const t of n)t[0]+=e;return t}function u(t){return(0,o.Bi)(t)?t.rings:t.paths}},62815(t,e,n){n.d(e,{N:()=>a,d:()=>c});var s=n(86211),r=n(73941),o=n(21325),i=n(52006);function a(t,e,n){const s=c(e,n);if(1!==s)switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,s);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t){if(t.curvePaths)for(const n of t.curvePaths)for(const t of n){const n=(0,i.yP)(t);n.length>2&&(n[2]*=e)}if(t.paths)for(const n of t.paths)for(const t of n)t.length>2&&(t[2]*=e)}}(t,s);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t){if(t.curveRings)for(const n of t.curveRings)for(const t of n){const n=(0,i.yP)(t);n.length>2&&(n[2]*=e)}if(t.rings)for(const n of t.rings)for(const t of n)t.length>2&&(t[2]*=e)}}(t,s);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const n of t.points)n.length>2&&(n[2]*=e)}(t,s);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,s);default:return}}function c(t,e){return null==t||null==e||e.vcsWkid||(0,o.aI)(t,e)||(0,r.xP)(t)||(0,r.xP)(e)?1:(0,s.G9)(t)/(0,s.G9)(e)}},41653(t,e,n){n.r(e),n.d(e,{queryModel:()=>g,queryModels:()=>y});var s=n(11254),r=n(4576),o=n(49186),i=n(91869),a=n(84952),c=n(5482),l=n(69622),u=n(91429);let f=class extends l.A{constructor(t){super(t),this.name="",this.size=0}arrayBuffer(t){return this.loadArrayBuffer(t)}};(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"flags",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"loadArrayBuffer",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"name",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],f.prototype,"size",void 0),f=(0,c.Cg)([(0,u.$K)("esri.layers.scene.ModelFileInfo")],f);let h=class extends l.A{constructor(t){super(t),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"files",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"format",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"isSource",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"name",void 0),(0,c.Cg)([(0,u.MZ)({constructOnly:!0})],h.prototype,"size",void 0),h=(0,c.Cg)([(0,u.$K)("esri.layers.scene.ModelInfo")],h);var p=n(20557),m=n(99199),d=n(61956);async function y(t,e,n,s){const c=t.infoFor3D;if(!c)throw new o.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:t});const{objectIdField:l,globalIdField:u}=e;if(!l||!u)throw new o.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:t});const f=function(t,e,n,s){const r=function(t,e){const n=d.A.from(e)?.clone()??t.createQuery();return n.outFields=null,n.formatOf3DObjects=null,n.returnGeometry=!1,n}(t,e);return r.outFields=[n,s],r.returnGeometry=!1,r}(t,n,l,u),h=await e.queryFeatures(f,s);return await async function(t){const{infoFor3D:e,associatedLayer:n,options:s}=t,o=n.globalIdField,c=n.parsedUrl;if(!o||!c)return new Map;const l=await async function(t){const{options:e,infoFor3D:n,featureInfos:s}=t,o=[...s.keys()];if(e?.requestedFormat){const t=(0,p.fE)(e.requestedFormat,n.supportedFormats);return t?[{formatId:t,objectIds:o}]:[]}const c=(0,r.Am)([...n.queryFormats,...n.editFormats]);return await async function({options:t,infoFor3D:e,featureInfos:n,requestQuery:s,associatedLayer:o},c){const l=e.assetMapFieldRoles.parentGlobalId,u=e.assetMapFieldRoles.assetType,f=e.assetMapFieldRoles.flags,h=new Map;for(const[t,{globalId:e}]of n)e&&h.set(t,e);const y=(0,r.Am)(h.values()),g=(0,p.JZ)(e);if(!g||!y.length)return[];const S=(0,a.fj)(o.parsedUrl?.path??"",`../${g.id}`),M=!!t?.sourceOnly,v=new d.A({where:`${l} IN (${y.map(x).join(",")})`,outFields:M?[l,u,f]:[l,u],returnDistinctValues:!0,returnGeometry:!1}),{features:w}=await(0,m.s)(S,v,{query:s,signal:t?.signal}),b=new Set(c),E=new Map;for(const t of w){const e=t.getAttribute(l),n=t.getAttribute(u),s=t.getAttribute(f)??0;n&&b.has(n)&&e&&!(1&s)&&(0,i.tE)(E,e,()=>new Set).add(n)}const R=new Map;for(const[t,e]of h)for(const n of E.get(e)??[])(0,i.tE)(R,n,()=>[]).push(t);return c.map(t=>({formatId:t,objectIds:R.get(t)??[]})).filter(({objectIds:t})=>t.length>0)}(t,c)}(t),u=new Map,f=await Promise.all(l.map(async({formatId:r,objectIds:i})=>{const a=(0,p.be)(r,e.supportedFormats),c=n.parsedUrl;if(null==a||!c||!i.length)return null;const l=(0,p._h)(r,e.supportedFormats),u=(0,p.qv)(l),f=n.createQuery();return f.objectIds=i,f.outFields=[o],f.formatOf3DObjects=r,f.returnGeometry=!0,{modelFormat:a,modelFileExtensions:u,featureSetJSON:await(0,m.e)(c.path,f,{query:t.requestQuery,signal:s?.signal},{uniqueIdFields:n.uniqueIdFields})}}));for(const e of f)e&&S(t,e.modelFormat,e.modelFileExtensions,e.featureSetJSON,u);return u}(new b(t,e,function(t){const e=new Map;for(const n of t.features){const t=n.getObjectId(),s=n.getGlobalId();null!=t&&null!=s&&e.set(t,{globalId:s})}return e}(h),c,s))}async function g(t,e,n,s){const r=s?.format;return((await y(t,e,{objectIds:[n]},{...s,requestedFormat:r,sourceOnly:null==r})).get(n)??[]).find(t=>r&&t.format===r||!r&&t.isSource)}function S({featureInfos:t,requestQuery:e,infoFor3D:n},s,r,o,a){const c=new Map;for(const t of o.assetMaps??[])(0,i.tE)(c,t.parentGlobalId,()=>[]).push(t);for(const[o,l]of t){const t=c.get(l.globalId);if(!t?.length)continue;const u=M(t,e,n);if(!u.length)continue;const f=u.reduce((t,e)=>t+e.size,0),p=w(u,r),m=!p.flags.includes("DERIVED");(0,i.tE)(a,o,()=>[]).push(new h({name:p.name,size:f,format:s,isSource:m,files:u}))}}function M(t,e,n){const s=new Map,r=({assetType:t})=>null!=(0,p.be)(t,n.supportedFormats),o=t.some(t=>r(t)&&!t.flags.includes("DERIVED"));for(const e of t)o&&r(e)&&e.flags.includes("DERIVED")||(0,i.tE)(s,e.assetName,()=>[]).push(e);const a=[];for(const[t,n]of s){n.sort((t,e)=>t.seqNo-e.seqNo);const s=n.reduce((t,e)=>t+e.size,0),r=n.map(({assetURL:t})=>t).filter(t=>!!t);r.length&&a.push(new f({name:t,size:s,flags:n[0].flags,loadArrayBuffer:t=>v(r,e,t)}))}return a}async function v(t,e,n){const r=await Promise.all(t.map(t=>(0,s.A)(t,{responseType:"array-buffer",query:e,signal:n?.signal}).then(({data:t})=>t)));return 1===r.length?r[0]:function(t){const e=t.reduce((t,e)=>t+e.byteLength,0),n=new Uint8Array(e);let s=0;for(const e of t)n.set(new Uint8Array(e),s),s+=e.byteLength;return n.buffer}(r)}function w(t,e){return t.find(({name:t})=>e.some(e=>t.toLowerCase().endsWith(`.${e}`)))??t[0]}function x(t){return`'${t.replaceAll("'","''")}'`}class b{constructor(t,e,n,s,r){this.layer=t,this.associatedLayer=e,this.featureInfos=n,this.infoFor3D=s,this.options=r,this.requestQuery={...e.parsedUrl?.query,...t.customParameters,...t.apiKey?{token:t.apiKey}:{}}}}},92300(t,e,n){n.d(e,{V:()=>i,X:()=>o});var s=n(60408),r=n(65864);function o(t){return{geometryType:(0,s.$B)(t[0]),geometries:t.map(t=>t.toJSON())}}function i(t,e,n){const s=(0,r.xD)(e);return t.map(t=>{const e=s.fromJSON(t);return e.spatialReference=n,e})}},99199(t,e,n){n.d(e,{e:()=>c,s:()=>a});var s=n(2272),r=n(80893),o=n(22671),i=n(61956);async function a(t,e,n,s){const r=await c(t,e,n,s);return o.A.fromJSON(r)}function c(t,e,n,o){const a=(0,s.Dl)(t),c={...n},l=i.A.from(e);return(0,r.eW)(a,l,l.sourceSpatialReference,c,o)}},58501(t,e,n){n.d(e,{q:()=>r});var s=n(62815);function r(t,e,n){if(!n?.features||!n.hasZ)return;const r=(0,s.N)(n.geometryType,e,t.outSpatialReference);if(r)for(const t of n.features)r(t.geometry)}},22671(t,e,n){n.d(e,{A:()=>S});var s,r=n(5482),o=n(52106),i=n(66552),a=n(25482),c=n(4718),l=n(91429),u=n(16930),f=n(60408),h=n(65864),p=n(50498),m=n(20437),d=n(36005),y=n(43937);const g=new i.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let S=s=class extends a.o{constructor(t){super(t),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(t,e){return this.readFeaturesWithClass(t,e,o.A)}writeGeometryType(t,e,n,s){if(t)return void g.write(t,e,n,s);const{features:r}=this;if(r)for(const t of r)if(null!=t?.geometry)return void g.write(t.geometry.type,e,n,s)}readQueryGeometry(t,e){if(!t)return null;const n=!!t.spatialReference,s=(0,h.rS)(t);return s&&!n&&e.spatialReference&&(s.spatialReference=u.A.fromJSON(e.spatialReference)),s}writeSpatialReference(t,e){if(t)return void(e.spatialReference=t.toJSON());const{features:n}=this;if(n)for(const t of n)if(t&&null!=t.geometry&&t.geometry.spatialReference)return void(e.spatialReference=t.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,c.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(t){const e=this.write();if(e.features&&Array.isArray(t)&&t.length>0)for(let n=0;n<e.features.length;n++){const s=e.features[n];if(s.geometry){const e=t?.[n];s.geometry=e?.toJSON()||s.geometry}}return e}quantize(t){const{scale:[e,n],translate:[s,r]}=t,o=this.features,i=this._getQuantizationFunction(this.geometryType,t=>Math.round((t-s)/e),t=>Math.round((r-t)/n));for(let t=0,e=o.length;t<e;t++)i?.(o[t].geometry)||(o.splice(t,1),t--,e--);return this.transform=t,this}unquantize(){const{geometryType:t,features:e,transform:n}=this;if(!n)return this;const{translate:[s,r],scale:[o,i]}=n;let a=null,c=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,t],scale:[,,e]}=n;a=n=>n*e+t}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,t],scale:[,,,e]}=n;c=n=>null==n?n:n*e+t}const l=this._getHydrationFunction(t,t=>t*o+s,t=>r-t*i,a,c);for(const{geometry:t}of e)null!=t&&l&&l(t);return this.transform=null,this}readFeaturesWithClass(t,e,n){const s=u.A.fromJSON(e.spatialReference),r=[];for(let e=0;e<t.length;e++){const o=t[e],i=n.fromJSON(o),a=o.geometry?.spatialReference;null==i.geometry||a||(i.geometry.spatialReference=s);const c=o.aggregateGeometries,l=i.aggregateGeometries;if(c&&null!=l)for(const t in l){const e=l[t],n=c[t],r=n?.spatialReference;null==e||r||(e.spatialReference=s)}r.push(i)}return r}_quantizePoints(t,e,n){let s,r;const o=[];for(let i=0,a=t.length;i<a;i++){const a=t[i];if(i>0){const t=e(a[0]),i=n(a[1]);t===s&&i===r||(o.push([t-s,i-r]),s=t,r=i)}else s=e(a[0]),r=n(a[1]),o.push([s,r])}return o.length>0?o:null}_getQuantizationFunction(t,e,n){return"point"===t?t=>(t.x=e(t.x),t.y=n(t.y),t):"polyline"===t||"polygon"===t?t=>{const s=(0,f.Bi)(t)?t.rings:t.paths,r=[];for(let t=0,o=s.length;t<o;t++){const o=s[t],i=this._quantizePoints(o,e,n);i&&r.push(i)}return r.length>0?((0,f.Bi)(t)?t.rings=r:t.paths=r,t):null}:"multipoint"===t?t=>{const s=this._quantizePoints(t.points,e,n);return s&&s.length>0?(t.points=s,t):null}:"extent"===t?t=>t:null}_getHydrationFunction(t,e,n,s,r){return"point"===t?t=>{t.x=e(t.x),t.y=n(t.y),s&&(t.z=s(t.z))}:"polyline"===t||"polygon"===t?t=>{const o=(0,f.Bi)(t)?t.rings:t.paths;let i,a;for(let t=0,s=o.length;t<s;t++){const s=o[t];for(let t=0,r=s.length;t<r;t++){const r=s[t];t>0?(i+=r[0],a+=r[1]):(i=r[0],a=r[1]),r[0]=e(i),r[1]=n(a)}}if(s&&r)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=s(n[2]),n[3]=r(n[3])}}else if(s)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=s(n[2])}}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];for(let t=0,n=e.length;t<n;t++){const n=e[t];n[2]=r(n[2])}}}:"extent"===t?t=>{t.xmin=e(t.xmin),t.ymin=n(t.ymin),t.xmax=e(t.xmax),t.ymax=n(t.ymax),s&&null!=t.zmax&&null!=t.zmin&&(t.zmax=s(t.zmax),t.zmin=s(t.zmin)),r&&null!=t.mmax&&null!=t.mmin&&(t.mmax=r(t.mmax),t.mmin=r(t.mmin))}:"multipoint"===t?t=>{const o=t.points;let i,a;for(let t=0,s=o.length;t<s;t++){const s=o[t];t>0?(i+=s[0],a+=s[1]):(i=s[0],a=s[1]),s[0]=e(i),s[1]=n(a)}if(s&&r)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=s(e[2]),e[3]=r(e[3])}else if(s)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=s(e[2])}else if(r)for(let t=0,e=o.length;t<e;t++){const e=o[t];e[2]=r(e[2])}}:null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],S.prototype,"displayFieldName",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"exceededTransferLimit",void 0),(0,r.Cg)([(0,l.MZ)({type:[o.A],json:{write:!0}})],S.prototype,"features",void 0),(0,r.Cg)([(0,d.w)("features")],S.prototype,"readFeatures",null),(0,r.Cg)([(0,l.MZ)({type:[m.A],json:{write:!0}})],S.prototype,"fields",void 0),(0,r.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],S.prototype,"geometryType",void 0),(0,r.Cg)([(0,y.K)("geometryType")],S.prototype,"writeGeometryType",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"hasM",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"hasZ",void 0),(0,r.Cg)([(0,l.MZ)({types:p.yR,json:{write:!0}})],S.prototype,"queryGeometry",void 0),(0,r.Cg)([(0,d.w)("queryGeometry")],S.prototype,"readQueryGeometry",null),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],S.prototype,"spatialReference",void 0),(0,r.Cg)([(0,y.K)("spatialReference")],S.prototype,"writeSpatialReference",null),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],S.prototype,"transform",void 0),S=s=(0,r.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],S),S.prototype.toJSON.isDefaultToJSON=!0}}]);