@arcgis/core 4.34.0-next.54 → 4.34.0-next.56

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 (391) hide show
  1. package/WebScene.js +1 -1
  2. package/analysis/ElevationProfile/ElevationProfileGroundLine.d.ts +4 -0
  3. package/analysis/ElevationProfile/ElevationProfileGroundLine.js +5 -0
  4. package/analysis/ElevationProfile/ElevationProfileInputLine.d.ts +4 -0
  5. package/analysis/ElevationProfile/ElevationProfileInputLine.js +5 -0
  6. package/analysis/ElevationProfile/ElevationProfileLine.d.ts +4 -0
  7. package/analysis/ElevationProfile/ElevationProfileLine.js +5 -0
  8. package/analysis/ElevationProfile/ElevationProfileLineChartOptions.d.ts +4 -0
  9. package/analysis/ElevationProfile/{LineChartOptions.js → ElevationProfileLineChartOptions.js} +1 -1
  10. package/analysis/ElevationProfile/ElevationProfileLineViewOptions.d.ts +4 -0
  11. package/analysis/ElevationProfile/{LineViewOptions.js → ElevationProfileLineViewOptions.js} +1 -1
  12. package/analysis/ElevationProfile/ElevationProfileQueryLine.d.ts +4 -0
  13. package/analysis/ElevationProfile/ElevationProfileQueryLine.js +5 -0
  14. package/analysis/ElevationProfile/ElevationProfileSceneLine.d.ts +4 -0
  15. package/analysis/ElevationProfile/ElevationProfileSceneLine.js +5 -0
  16. package/analysis/ElevationProfile/ElevationProfileUnits.d.ts +4 -0
  17. package/analysis/ElevationProfile/{Units.js → ElevationProfileUnits.js} +1 -1
  18. package/analysis/ElevationProfile/ElevationProfileViewOptions.d.ts +4 -0
  19. package/analysis/ElevationProfile/{ViewOptions.js → ElevationProfileViewOptions.js} +1 -1
  20. package/analysis/ElevationProfile/elevationProfileLineTypes.js +1 -1
  21. package/analysis/ElevationProfileAnalysis.js +1 -1
  22. package/applications/KnowledgeStudio/resourceSerializationUtils.js +1 -1
  23. package/assets/esri/core/workers/RemoteClient.js +1 -1
  24. package/assets/esri/core/workers/chunks/01e8b9dc77a57d1c2a52.js +1 -0
  25. package/assets/esri/core/workers/chunks/027cfcde29fe87aa2ffe.js +1 -0
  26. package/assets/esri/core/workers/chunks/0a4586e596413ef7a4b5.js +1 -0
  27. package/assets/esri/core/workers/chunks/10b46438885916d18425.js +1 -0
  28. package/assets/esri/core/workers/chunks/1166ed298cf5ca7ad444.js +1 -0
  29. package/assets/esri/core/workers/chunks/13797036850dcc3671c3.js +1 -0
  30. package/assets/esri/core/workers/chunks/18ceea59e469a0f2721b.js +1 -0
  31. package/assets/esri/core/workers/chunks/199a17b0a0f75cbaed16.js +1 -0
  32. package/assets/esri/core/workers/chunks/1eee7cf11df01a52c1bf.js +1 -0
  33. package/assets/esri/core/workers/chunks/{ac41b882f9cbf8d56f0c.js → 222f981e876f60ae282f.js} +1 -1
  34. package/assets/esri/core/workers/chunks/22334a464f798b5279b2.js +1 -0
  35. package/assets/esri/core/workers/chunks/{99b9392946d776a62997.js → 23e600e368ac829680b5.js} +1 -1
  36. package/assets/esri/core/workers/chunks/24ac204d8a045aa821be.js +1 -0
  37. package/assets/esri/core/workers/chunks/27197b0a2ffb2b6104ea.js +1 -0
  38. package/assets/esri/core/workers/chunks/{93af38d29d066f27ed28.js → 2cb14d040e67a261b31c.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{0021118bafefd1e47ff7.js → 31c088966ccfff2ea1db.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{c9c109d43a1e5160955d.js → 3490d47cac7c8dec70cd.js} +2 -2
  41. package/assets/esri/core/workers/chunks/3d800fbc449bea18b1cd.js +1 -0
  42. package/assets/esri/core/workers/chunks/43a56c8fa4e5be18c12a.js +1 -0
  43. package/assets/esri/core/workers/chunks/4874aabdb5c60ca66216.js +1 -0
  44. package/assets/esri/core/workers/chunks/4b58da6cb91f7bf6af8b.js +1 -0
  45. package/assets/esri/core/workers/chunks/{cac060a187f3a27a19ba.js → 4d5abcf57a6ded4750ba.js} +1 -1
  46. package/assets/esri/core/workers/chunks/527557b603400189d49a.js +1 -0
  47. package/assets/esri/core/workers/chunks/{d0bf1fc6e3c198bc565d.js → 57486b18421a3c9690d0.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{4bd92232928b832dea76.js → 5900dde7a201a7d47469.js} +1 -1
  49. package/assets/esri/core/workers/chunks/5f518931a660b3c4f519.js +1 -0
  50. package/assets/esri/core/workers/chunks/63f3e46bfa820436161c.js +1 -0
  51. package/assets/esri/core/workers/chunks/66f3659ba18f92cd623e.js +1 -0
  52. package/assets/esri/core/workers/chunks/67355372ac5fd8a15d18.js +1 -0
  53. package/assets/esri/core/workers/chunks/{b0ee061747bef6729bb9.js → 6801b92bce7a918fda6f.js} +1 -1
  54. package/assets/esri/core/workers/chunks/6940bb6524938894a246.js +1 -0
  55. package/assets/esri/core/workers/chunks/6b11476b2004b4db576e.js +1 -0
  56. package/assets/esri/core/workers/chunks/{5691d504ffe5592bc40f.js → 6dc0009889f2b7cc8cff.js} +1 -1
  57. package/assets/esri/core/workers/chunks/71cac356874b36f9a383.js +1 -0
  58. package/assets/esri/core/workers/chunks/{69dc5a7abc1fda2474ad.js → 722931d1a60be461e521.js} +1 -1
  59. package/assets/esri/core/workers/chunks/79ab06fb4c91ac8da323.js +1 -0
  60. package/assets/esri/core/workers/chunks/{0a4357af5b8c0532b439.js → 7bdfc7c7ce1d94c00745.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{0ce671588de2858516d2.js → 83737d86584bf1b32368.js} +1 -1
  62. package/assets/esri/core/workers/chunks/853b9f29b4d62fa621b9.js +1 -0
  63. package/assets/esri/core/workers/chunks/855f25ce748aaef44b1a.js +1 -0
  64. package/assets/esri/core/workers/chunks/{71acded1b3c0057917a1.js → 862fe2f96d4b777ff5b8.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{98ea12c7a000a30f3dc0.js → 87f68c2b9361bd3f8cac.js} +1 -1
  66. package/assets/esri/core/workers/chunks/8fa50cac57b6e1ecec76.js +1 -0
  67. package/assets/esri/core/workers/chunks/9307108821d82c131654.js +1 -0
  68. package/assets/esri/core/workers/chunks/97ae2fdb6cb98249f5fa.js +1 -0
  69. package/assets/esri/core/workers/chunks/9a20390602126995f831.js +1 -0
  70. package/assets/esri/core/workers/chunks/9b10e70f28873cff44f5.js +1 -0
  71. package/assets/esri/core/workers/chunks/9cdeead9d444e8d95477.js +1 -0
  72. package/assets/esri/core/workers/chunks/a778a72456fefdf40115.js +1 -0
  73. package/assets/esri/core/workers/chunks/a999f804fc2f00b2e7ae.js +1 -0
  74. package/assets/esri/core/workers/chunks/adf11d31f95481f89a55.js +1 -0
  75. package/assets/esri/core/workers/chunks/ae73ac81bd10614c2b53.js +1 -0
  76. package/assets/esri/core/workers/chunks/af4412e79275c5a87539.js +1 -0
  77. package/assets/esri/core/workers/chunks/{7a8d740d1226719a578a.js → b457b7dd907f06278bee.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{81e518dd62bd95611d00.js → b47688e3263099540873.js} +1 -1
  79. package/assets/esri/core/workers/chunks/c7d4c296011c5393bcaa.js +1 -0
  80. package/assets/esri/core/workers/chunks/c86e339e45900c54c9f5.js +1 -0
  81. package/assets/esri/core/workers/chunks/c91217d977a6baaee74a.js +1 -0
  82. package/assets/esri/core/workers/chunks/{a1d3f1c221389eb6090c.js → c95e6bef8c97cf647869.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{e1b25b1ce3bd4f0f2cda.js → cb57cdff976d2d4b0b41.js} +1 -1
  84. package/assets/esri/core/workers/chunks/cbec768cd98caff212f2.js +1 -0
  85. package/assets/esri/core/workers/chunks/{9fef330b241f958b55df.js → d0124b0dd62b331afe58.js} +1 -1
  86. package/assets/esri/core/workers/chunks/d3a7747f23e91d1f1b5e.js +1 -0
  87. package/assets/esri/core/workers/chunks/d3ae88fcde2d7fb3e2e2.js +1 -0
  88. package/assets/esri/core/workers/chunks/{b6a201e86f9caef45ff0.js → d42fd0effc560eefb14b.js} +1 -1
  89. package/assets/esri/core/workers/chunks/d81c4afad4abe2d1d0b9.js +1 -0
  90. package/assets/esri/core/workers/chunks/{2da12a64d3baef4aaaa1.js → d87fdc64a5cc6be4bd69.js} +1 -1
  91. package/assets/esri/core/workers/chunks/db5d3feeb61ccb5ede98.js +1 -0
  92. package/assets/esri/core/workers/chunks/dfb12f42b8d319ffa5fc.js +1 -0
  93. package/assets/esri/core/workers/chunks/{aab349d4624b78ef429f.js → e6bf4f3f6868dc9028e3.js} +1 -1
  94. package/assets/esri/core/workers/chunks/e982cf44906eb26164f2.js +1 -0
  95. package/assets/esri/core/workers/chunks/{081b22fa73ef7b696409.js → ead1acf95c3385630da8.js} +2 -2
  96. package/assets/esri/core/workers/chunks/f1c50f37a81c672263a1.js +1 -0
  97. package/assets/esri/core/workers/chunks/f74b0cdc1c2b56bac5f0.js +1 -0
  98. package/assets/esri/core/workers/chunks/f807e7fc90e0e7ce6b67.js +1 -0
  99. package/assets/esri/core/workers/chunks/{fae6030a81cb91a91b69.js → faf4002f9547a0cc4e33.js} +1 -1
  100. package/assets/esri/core/workers/chunks/ff323db554c9e09749e8.js +1 -0
  101. package/assets/esri/core/workers/chunks/{fe55833c80cf59df9c2b.js → ff42b24b48019a03d841.js} +1 -1
  102. package/assets/esri/core/workers/chunks/{e10c5405f956b2cc59e4.js → ff4e15a872de94d2b438.js} +1 -1
  103. package/assets/esri/core/workers/chunks/{ff7962063d132c1ec814.js → ff8a4bf1bceb362d67ab.js} +1 -1
  104. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  105. package/chunks/Laserlines.glsl.js +1 -1
  106. package/chunks/LineSeries.js +1 -1
  107. package/chunks/Theme.js +1 -1
  108. package/chunks/boundedPlane.js +1 -1
  109. package/chunks/bundle.js +1 -1
  110. package/chunks/chartUtilsAm5.js +1 -1
  111. package/chunks/sphere.js +1 -1
  112. package/chunks/vec42.js +1 -1
  113. package/config.js +1 -1
  114. package/core/ArrayPool.js +1 -1
  115. package/core/Collection.js +1 -1
  116. package/core/ObjectPool.js +1 -1
  117. package/core/accessorSupport/Properties.js +1 -1
  118. package/core/accessorSupport/watch.js +1 -1
  119. package/core/arrayUtils.js +1 -1
  120. package/core/has.js +1 -1
  121. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  122. package/core/libs/gl-matrix-2/math/vec4.js +1 -1
  123. package/core/pbf.js +1 -1
  124. package/core/typedArrayUtil.js +1 -1
  125. package/geohash/GeohashCell.js +1 -1
  126. package/geohash/GeohashTree.js +1 -1
  127. package/geometry/Multipoint.js +1 -1
  128. package/geometry/support/DoubleArray.js +1 -1
  129. package/geometry/support/boundedPlane.js +1 -1
  130. package/geometry/support/coordsUtils.js +1 -1
  131. package/geometry/support/extentUtils.js +1 -1
  132. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  133. package/geometry/support/sphere.js +1 -1
  134. package/graphic/KMLGraphicOrigin.js +5 -0
  135. package/graphic/isKMLGraphicOrigin.js +5 -0
  136. package/interfaces.d.ts +147 -142
  137. package/kernel.js +1 -1
  138. package/layers/KMLLayer.js +1 -1
  139. package/layers/SceneLayer.js +1 -1
  140. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  141. package/layers/graphics/sources/ParquetSource.js +1 -1
  142. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  143. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  144. package/layers/support/ElevationQuery.js +1 -1
  145. package/layers/support/KMLSublayer.js +1 -1
  146. package/layers/support/featureReductionUtils.js +1 -1
  147. package/layers/support/kmlUtils.js +1 -1
  148. package/package.json +1 -1
  149. package/renderers/support/colorRampUtils.js +1 -1
  150. package/rest/knowledgeGraphService.js +1 -1
  151. package/support/requestUtils.js +1 -1
  152. package/support/revision.js +1 -1
  153. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  154. package/views/2d/engine/Container.js +1 -1
  155. package/views/2d/engine/DisplayObject.js +1 -1
  156. package/views/2d/engine/flow/dataUtils.js +1 -1
  157. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  158. package/views/2d/engine/webgl/DisplayEntity.js +1 -1
  159. package/views/2d/engine/webgl/DisplayRecord.js +1 -1
  160. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  161. package/views/2d/engine/webgl/FeatureTile.js +1 -1
  162. package/views/2d/engine/webgl/PooledUint32Array.js +1 -1
  163. package/views/2d/engine/webgl/cpuMapped/Buffer.js +1 -1
  164. package/views/2d/engine/webgl/cpuMapped/MappedMesh.js +1 -1
  165. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  166. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  167. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  168. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  169. package/views/2d/layers/KMLLayerView2D.js +1 -1
  170. package/views/2d/layers/features/FeatureContainer.js +1 -1
  171. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  172. package/views/2d/layers/features/FeatureSourceEventLog.js +1 -1
  173. package/views/2d/layers/features/FeatureSpatialIndex.js +1 -1
  174. package/views/2d/layers/features/Processor.js +1 -1
  175. package/views/2d/layers/features/RenderState.js +1 -1
  176. package/views/2d/layers/features/aggregation/AccumulatedStatistics.js +1 -1
  177. package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
  178. package/views/2d/layers/features/aggregation/GridCell.js +1 -1
  179. package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
  180. package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
  181. package/views/2d/layers/features/schema/processor/LabelMatcherSchema.js +1 -1
  182. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  183. package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
  184. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  185. package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
  186. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  187. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  188. package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
  189. package/views/2d/layers/features/support/FeatureSetCache.js +1 -1
  190. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  191. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  192. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  193. package/views/2d/layers/features/support/StaticBitSet.js +1 -1
  194. package/views/2d/tiling/TileCoverage.js +1 -1
  195. package/views/2d/tiling/TileKey.js +1 -1
  196. package/views/3d/FocusAreasView.js +1 -1
  197. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementPathHelper.js +1 -1
  198. package/views/3d/analysis/ElevationProfile/{HoveredPointVisualization.js → ElevationProfileHoveredPointVisualization.js} +1 -1
  199. package/views/3d/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +5 -0
  200. package/views/3d/analysis/ElevationProfile/ElevationProfileInputVisualization.js +5 -0
  201. package/views/3d/analysis/ElevationProfile/ElevationProfileLinesVisualization.js +5 -0
  202. package/views/3d/analysis/ElevationProfile/ElevationProfileSceneLineComputation.js +5 -0
  203. package/views/3d/analysis/ElevationProfile/ElevationProfileVisualization.js +5 -0
  204. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  205. package/views/3d/analysis/Slice/SliceController.js +1 -1
  206. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  207. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  208. package/views/3d/analysis/Viewshed/{ArrowManipulator.js → ViewshedArrowManipulator.js} +1 -1
  209. package/views/3d/analysis/Viewshed/{FieldOfViewManipulation.js → ViewshedFieldOfViewManipulation.js} +1 -1
  210. package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +5 -0
  211. package/views/3d/analysis/Viewshed/ViewshedShapeVisualElement.js +5 -0
  212. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  213. package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +5 -0
  214. package/views/3d/analysis/Viewshed/ViewshedVisualization.js +1 -1
  215. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  216. package/views/3d/camera/constraintUtils/distance.js +1 -1
  217. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  218. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  219. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  220. package/views/3d/layers/I3SMeshView3D.js +1 -1
  221. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  222. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  223. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  224. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  225. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  226. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  227. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  228. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  229. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  230. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  231. package/views/3d/layers/i3s/I3SNode.js +1 -1
  232. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  233. package/views/3d/state/ViewState.js +1 -1
  234. package/views/3d/state/ViewStateManager.js +1 -1
  235. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  236. package/views/3d/support/ViewSlice.js +1 -1
  237. package/views/3d/support/orientedBoundingBox.js +1 -1
  238. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  239. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  240. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  241. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  242. package/views/3d/terrain/ScaleRangeQueries.js +1 -1
  243. package/views/3d/terrain/SphericalPatch.js +1 -1
  244. package/views/3d/terrain/TerrainRenderer.js +1 -1
  245. package/views/3d/terrain/TerrainSurface.js +1 -1
  246. package/views/3d/terrain/Tile.js +1 -1
  247. package/views/3d/terrain/TilePerLayerInfo.js +1 -1
  248. package/views/3d/webgl-engine/core/material/MaterialBase.js +1 -1
  249. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  250. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  251. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  252. package/views/3d/webgl-engine/lib/SliceHelper.js +1 -1
  253. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  254. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  255. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  256. package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
  257. package/views/3d/webgl-engine/lib/octreeUtils.js +1 -1
  258. package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
  259. package/views/analysis/ElevationProfile/ElevationProfileController.js +5 -0
  260. package/views/analysis/ElevationProfile/{ProfileGenerationError.js → ElevationProfileGenerationError.js} +1 -1
  261. package/views/analysis/ElevationProfile/ElevationProfileGroundLineComputation.js +5 -0
  262. package/views/analysis/ElevationProfile/ElevationProfileInputLineComputation.js +5 -0
  263. package/views/analysis/ElevationProfile/ElevationProfileLineComputation.js +5 -0
  264. package/views/analysis/ElevationProfile/ElevationProfileQueryLineComputation.js +5 -0
  265. package/views/analysis/ElevationProfile/ElevationProfileResult.d.ts +4 -0
  266. package/views/analysis/ElevationProfile/ElevationProfileResult.js +5 -0
  267. package/views/analysis/ElevationProfile/elevationProfileGenerationUtils.js +5 -0
  268. package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +5 -0
  269. package/views/draw/DrawOperation.js +1 -1
  270. package/views/draw/MultipointDrawAction.js +1 -1
  271. package/views/draw/PointDrawAction.js +1 -1
  272. package/views/draw/PolygonDrawAction.js +1 -1
  273. package/views/draw/PolylineDrawAction.js +1 -1
  274. package/views/draw/SegmentDrawAction.js +1 -1
  275. package/views/draw/support/Box.js +1 -1
  276. package/views/draw/support/GraphicMover.js +1 -1
  277. package/views/draw/support/Reshape.js +1 -1
  278. package/views/draw/support/drawUtils.js +1 -1
  279. package/views/draw/support/reshapeTooltipUtils.js +1 -1
  280. package/views/input/InputManager.js +1 -1
  281. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  282. package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
  283. package/views/interactive/editGeometry/operations/AppendVertex.js +1 -1
  284. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  285. package/views/interactive/sketch/constraints.js +1 -1
  286. package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
  287. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  288. package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
  289. package/views/interactive/tooltip/infos/SelectedVertexTooltipInfo.js +1 -1
  290. package/views/layers/FeatureLayerView.js +1 -1
  291. package/views/support/PropertiesPool.js +1 -1
  292. package/webscene/spec-certification/api.js +1 -1
  293. package/webscene/spec-certification/compare.js +1 -1
  294. package/webscene/spec-certification/spec.js +1 -1
  295. package/widgets/ElevationProfile/ElevationProfileLine.d.ts +2 -2
  296. package/widgets/ElevationProfile/support/profileUtils.js +1 -1
  297. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  298. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  299. package/widgets/OrientedImageryViewer.js +1 -1
  300. package/widgets/Sketch/SketchViewModel.js +1 -1
  301. package/widgets/Sketch/support/sketchUtils.js +1 -1
  302. package/analysis/ElevationProfile/GroundLine.d.ts +0 -4
  303. package/analysis/ElevationProfile/GroundLine.js +0 -5
  304. package/analysis/ElevationProfile/InputLine.d.ts +0 -4
  305. package/analysis/ElevationProfile/InputLine.js +0 -5
  306. package/analysis/ElevationProfile/Line.d.ts +0 -4
  307. package/analysis/ElevationProfile/Line.js +0 -5
  308. package/analysis/ElevationProfile/LineChartOptions.d.ts +0 -4
  309. package/analysis/ElevationProfile/LineViewOptions.d.ts +0 -4
  310. package/analysis/ElevationProfile/QueryLine.d.ts +0 -4
  311. package/analysis/ElevationProfile/QueryLine.js +0 -5
  312. package/analysis/ElevationProfile/SceneLine.d.ts +0 -4
  313. package/analysis/ElevationProfile/SceneLine.js +0 -5
  314. package/analysis/ElevationProfile/Units.d.ts +0 -4
  315. package/analysis/ElevationProfile/ViewOptions.d.ts +0 -4
  316. package/assets/esri/core/workers/chunks/02902303e5585a16ebea.js +0 -1
  317. package/assets/esri/core/workers/chunks/0445de3a8968c0734c91.js +0 -1
  318. package/assets/esri/core/workers/chunks/09268dc856c3d5ce178f.js +0 -1
  319. package/assets/esri/core/workers/chunks/0f51e51db83f303ce5a6.js +0 -1
  320. package/assets/esri/core/workers/chunks/14c6ae4feb4859cfa7c5.js +0 -1
  321. package/assets/esri/core/workers/chunks/17776d9d3558d45ea7b5.js +0 -1
  322. package/assets/esri/core/workers/chunks/1cbd59918c60a1a21494.js +0 -1
  323. package/assets/esri/core/workers/chunks/20a2b3d1f826e9059884.js +0 -1
  324. package/assets/esri/core/workers/chunks/250b1629becca0410f2a.js +0 -1
  325. package/assets/esri/core/workers/chunks/2efa4d8fe5454f8b2a05.js +0 -1
  326. package/assets/esri/core/workers/chunks/3149a86cd25684dcb0b3.js +0 -1
  327. package/assets/esri/core/workers/chunks/3800764932a1c32cb29f.js +0 -1
  328. package/assets/esri/core/workers/chunks/38f84294fb2fb4663ba5.js +0 -1
  329. package/assets/esri/core/workers/chunks/3c57b2e13628b5c1f6de.js +0 -1
  330. package/assets/esri/core/workers/chunks/3eb3af0b6cf3c2f28131.js +0 -1
  331. package/assets/esri/core/workers/chunks/43bd338bb0de375b9bb7.js +0 -1
  332. package/assets/esri/core/workers/chunks/4622a3e64d3c4aafa56b.js +0 -1
  333. package/assets/esri/core/workers/chunks/47f2e905ef42e36897aa.js +0 -1
  334. package/assets/esri/core/workers/chunks/50e9eafb118d2a221f10.js +0 -1
  335. package/assets/esri/core/workers/chunks/55588e668b6acb6aa390.js +0 -1
  336. package/assets/esri/core/workers/chunks/5b112471dca94b2e8462.js +0 -1
  337. package/assets/esri/core/workers/chunks/5dfe1aed10095385c066.js +0 -1
  338. package/assets/esri/core/workers/chunks/5fc414fc2cfc68828c5b.js +0 -1
  339. package/assets/esri/core/workers/chunks/7389841fabe0f319f1e5.js +0 -1
  340. package/assets/esri/core/workers/chunks/772e81e9162e2240a7a6.js +0 -1
  341. package/assets/esri/core/workers/chunks/8c81156b1605a16acc29.js +0 -1
  342. package/assets/esri/core/workers/chunks/8e0559cc6295008fcdf7.js +0 -1
  343. package/assets/esri/core/workers/chunks/8f6ff09e7d2f01b79faf.js +0 -1
  344. package/assets/esri/core/workers/chunks/944fa8261aad94ae0542.js +0 -1
  345. package/assets/esri/core/workers/chunks/9639a6f6fab52a501bf7.js +0 -1
  346. package/assets/esri/core/workers/chunks/998c38974372720b1c52.js +0 -1
  347. package/assets/esri/core/workers/chunks/9e479e7e2e51476c3d27.js +0 -1
  348. package/assets/esri/core/workers/chunks/a1e179dd6de9c8769b02.js +0 -1
  349. package/assets/esri/core/workers/chunks/a6493607b98783bf1ef2.js +0 -1
  350. package/assets/esri/core/workers/chunks/a7530dcb08b43e37bbb2.js +0 -1
  351. package/assets/esri/core/workers/chunks/a829969ed44cdb814f27.js +0 -1
  352. package/assets/esri/core/workers/chunks/b2a035befeeff1a55ad8.js +0 -1
  353. package/assets/esri/core/workers/chunks/b4251e10621fb3ad03a3.js +0 -1
  354. package/assets/esri/core/workers/chunks/b9f5672093727c6f92c9.js +0 -1
  355. package/assets/esri/core/workers/chunks/ba45dccb4dab5a74d224.js +0 -1
  356. package/assets/esri/core/workers/chunks/c51e2a048df152abd901.js +0 -1
  357. package/assets/esri/core/workers/chunks/cda27c0fafd687dfa72e.js +0 -1
  358. package/assets/esri/core/workers/chunks/d1842745a7699879a1e1.js +0 -1
  359. package/assets/esri/core/workers/chunks/d578c3880eaf2dd62324.js +0 -1
  360. package/assets/esri/core/workers/chunks/ddd6597a66ec6b972f9c.js +0 -1
  361. package/assets/esri/core/workers/chunks/de499e33035b56b6697d.js +0 -1
  362. package/assets/esri/core/workers/chunks/e28d3ed65c3a76a044c8.js +0 -1
  363. package/assets/esri/core/workers/chunks/e3f68f7b408a08d7cd5d.js +0 -1
  364. package/assets/esri/core/workers/chunks/e9716995ce0c3683eafc.js +0 -1
  365. package/assets/esri/core/workers/chunks/ed25bf087f52e5d3e71b.js +0 -1
  366. package/assets/esri/core/workers/chunks/ee0286b5f5475f2d853f.js +0 -1
  367. package/assets/esri/core/workers/chunks/f8505bf69795f5293a79.js +0 -1
  368. package/assets/esri/core/workers/chunks/f92e608931b1c168cb45.js +0 -1
  369. package/views/3d/analysis/ElevationProfile/HoveredPointsVisualization.js +0 -5
  370. package/views/3d/analysis/ElevationProfile/InputVisualization.js +0 -5
  371. package/views/3d/analysis/ElevationProfile/ProfileLinesVisualization.js +0 -5
  372. package/views/3d/analysis/ElevationProfile/SceneLineComputation.js +0 -5
  373. package/views/3d/analysis/ElevationProfile/Visualization.js +0 -5
  374. package/views/3d/analysis/Viewshed/ScaleOrientManipulation.js +0 -5
  375. package/views/3d/analysis/Viewshed/ViewshedAnalysisVisualization.js +0 -5
  376. package/views/3d/interactive/visualElements/ViewshedShapeVisualElement.js +0 -5
  377. package/views/analysis/ElevationProfile/Controller.js +0 -5
  378. package/views/analysis/ElevationProfile/GroundLineComputation.js +0 -5
  379. package/views/analysis/ElevationProfile/InputLineComputation.js +0 -5
  380. package/views/analysis/ElevationProfile/LineComputation.js +0 -5
  381. package/views/analysis/ElevationProfile/QueryLineComputation.js +0 -5
  382. package/views/analysis/ElevationProfile/Result.d.ts +0 -4
  383. package/views/analysis/ElevationProfile/Result.js +0 -5
  384. package/views/analysis/ElevationProfile/geometryUtils.js +0 -5
  385. package/views/analysis/ElevationProfile/profileGenerationUtils.js +0 -5
  386. /package/assets/esri/core/workers/chunks/{c9c109d43a1e5160955d.js.LICENSE.txt → 3490d47cac7c8dec70cd.js.LICENSE.txt} +0 -0
  387. /package/views/analysis/ElevationProfile/{elevationQuerySourceUtils.js → elevationProfileQuerySourceUtils.js} +0 -0
  388. /package/views/analysis/ElevationProfile/{statisticsUtils.js → elevationProfileStatisticsUtils.js} +0 -0
  389. /package/views/analysis/ElevationProfile/{traversalUtils.js → elevationProfileTraversalUtils.js} +0 -0
  390. /package/views/analysis/ElevationProfile/{unitUtils.js → elevationProfileUnitUtils.js} +0 -0
  391. /package/views/analysis/ElevationProfile/{visualizationUtils.js → elevationProfileVisualizationUtils.js} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1395,3513],{4146:(e,t,r)=>{r.d(t,{A:()=>w});var i=r(31635),s=r(78888),n=r(49186),o=r(65529),a=r(4902),l=r(92474),d=r(53966),u=r(74887),p=r(84952),c=r(10107),h=(r(44208),r(87811),r(40608)),y=r(5443),g=r(16930),f=r(92602),m=r(64272);let v=0,w=class extends((0,o.Zt)((0,a.sA)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(5613).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",s=r?.portal?.url||f.A.portalUrl;throw d.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||d.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"groundLayers"in e&&e.groundLayers.includes(t)?e.groundLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,c.MZ)({type:String})],w.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],w.prototype,"effectiveVisible",null),(0,i.Cg)([(0,c.MZ)({type:y.A})],w.prototype,"fullExtent",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],w.prototype,"hasAttributionData",null),(0,i.Cg)([(0,c.MZ)({type:String,clonable:!1})],w.prototype,"id",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,c.MZ)({type:["show","hide","hide-children"]})],w.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],w.prototype,"opacity",void 0),(0,i.Cg)([(0,c.MZ)({clonable:!1})],w.prototype,"parent",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,i.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],w.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean})],w.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean})],w.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,c.MZ)({type:g.A})],w.prototype,"spatialReference",void 0),(0,i.Cg)([(0,c.MZ)({type:String})],w.prototype,"title",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)()],w.prototype,"url",void 0),(0,i.Cg)([(0,c.MZ)({type:m.T})],w.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"visible",void 0),w=(0,i.Cg)([(0,h.$)("esri.layers.Layer")],w)},8303:(e,t,r)=>{r.d(t,{A:()=>A});var i=r(31635),s=r(92602),n=r(70333),o=r(78888),a=r(60999),l=r(49186),d=r(53966),u=r(97768),p=r(74887),c=r(84952),h=r(10107),y=(r(44208),r(87811),r(36005)),g=r(40608),f=r(43937),m=r(77548),v=r(20655),w=r(80812),b=r(41318),I=r(10407);const A=e=>{const t=e;let A=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new w.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!n.id?.findCredential(this.url),s=e===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let o,a;if(s)o=r.portal.url;else try{o=await(0,m.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,c.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,d=!1,u=!1;if(!a)return{features:{edit:l,fullEdit:d},content:{updateItem:u}};try{if(s?await r.reload():(r=new w.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:d},content:{updateItem:u}}}_getUserPrivileges(e,t){const r=(0,I.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=v.A.getDefault();if(s&&s.loaded&&(0,c.S8)(s.restUrl)===(0,c.S8)(i))return s.user;const l=`${i}/community/self`,d=null!=e?e.signal:null,u=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?b.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,c.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,h.MZ)({type:w.default})],A.prototype,"portalItem",null),(0,i.Cg)([(0,y.w)("web-document","portalItem",["itemId"])],A.prototype,"readPortalItem",null),(0,i.Cg)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],A.prototype,"writePortalItem",null),(0,i.Cg)([(0,h.MZ)({clonable:!1})],A.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasUpdateItemPrivileges",void 0),A=(0,i.Cg)([(0,g.$)("esri.layers.mixins.PortalLayer")],A),A},C={credential:null,user:null}},8947:(e,t,r)=>{r.d(t,{L:()=>o});var i=r(60999),s=r(74887),n=r(67076);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,i.Ke)(o.populateFromStyle());if((0,s.Te)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new n.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},13899:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_e});var i=r(31635),s=r(52106),n=r(13874),o=r(69540),a=r(7762),l=r(49186),d=r(36563),u=r(53966),p=r(97768),c=r(92071),h=r(74887),y=r(36708),g=r(10107),f=(r(44208),r(87811),r(88620)),m=r(36005),v=r(40608),w=r(86738),b=r(4146),I=r(55726),A=r(52136),C=r(18768),S=r(69208),M=r(47685),F=r(16131),x=r(8303),L=r(25036),O=r(58947),j=r(82935),_=r(25482),T=r(30524);function Z({associatedLayer:e,serviceUpdateTimeStamp:t}){const r=e?.editingInfo?.lastEditDate,i=e?.serverGens,s=null!=r,n=null!=t,o=s&&n&&t.lastUpdate!==r.getTime();return s&&(o||!n&&i?.minServerGen!==i?.serverGen)}var E=r(96184),U=r(64272),P=r(26253);const R=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.serviceTimeInfo=null}get timeInfo(){const e=this.associatedLayer?.timeInfo;if(null==e)return null;const t=e.clone();return(0,T.sv)(t,this.fieldsIndex),t}set timeInfo(e){(0,T.sv)(e,this.fieldsIndex),this._override("timeInfo",e)}get timeExtent(){return this.associatedLayer?.timeExtent}set timeExtent(e){this._override("timeExtent",e)}get timeOffset(){return this.associatedLayer?.timeOffset}set timeOffset(e){this._override("timeOffset",e)}get datesInUnknownTimezone(){return this.associatedLayer?.datesInUnknownTimezone??!1}set datesInUnknownTimezone(e){this._override("datesInUnknownTimezone",e)}async loadTimeInfoFromService(e){const{serviceTimeInfo:t}=this;if(null==t)return;const{startTimeField:r,endTimeField:i}=t;if(null==r&&null==i)return;if(Z({associatedLayer:this.associatedLayer,serviceUpdateTimeStamp:this.serviceUpdateTimeStamp}))return;const s=async t=>{let i=null;try{const r=await(this.fetchStatistics?.(t,e));i=r?.stats}catch{}if(null==i)return null;const{minTimeStr:s,min:n,maxTimeStr:o,max:a}=i,l=t===r?s??n:o??a;return null!=l?new Date(l):null},[n,o]=await Promise.all([s(r),s(i)]);if(null!=r&&null==n||null!=i&&null==o)return;const a=new U.T({start:n,end:o});this.setAtOrigin("timeInfo",new E.A({endField:i,startField:r,fullTimeExtent:a}),"service")}};return(0,i.Cg)([(0,g.MZ)({type:E.A,json:{read:!1,write:!1}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,g.MZ)({type:U.T,json:{read:!1,write:!1}})],r.prototype,"timeExtent",null),(0,i.Cg)([(0,g.MZ)({type:P.T,json:{read:!1,write:!1}})],r.prototype,"timeOffset",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,nonNullable:!0,json:{read:!1,write:!1}})],r.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,g.MZ)({type:N,readOnly:!0,json:{read:{source:"timeInfo"}},clonable:!1})],r.prototype,"serviceTimeInfo",void 0),r=(0,i.Cg)([(0,v.$)("esri.layers.mixins.TemporalSceneLayer")],r),r};let N=class extends _.o{constructor(){super(...arguments),this.endTimeField=null,this.startTimeField=null}};(0,i.Cg)([(0,g.MZ)({type:String})],N.prototype,"endTimeField",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],N.prototype,"startTimeField",void 0),N=(0,i.Cg)([(0,v.$)("esri.layers.mixins.TemporalSceneLayer.SceneServiceTimeInfo")],N);var $=r(60694),D=r(92009),k=r(4071),q=r(10873),H=r(15426),V=r(40530),G=r(67202),J=r(17036),B=r(95466),K=r(50805),Q=r(20557),z=r(46499),W=r(39383),Y=r(37352),X=r(4513),ee=r(86390);let te=class extends _.o{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],te.prototype,"name",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!0,write:{isRequired:!0}}})],te.prototype,"field",void 0),(0,i.Cg)([(0,g.MZ)({type:[Number],json:{read:!0,write:!0}})],te.prototype,"currentRangeExtent",void 0),(0,i.Cg)([(0,g.MZ)({type:[Number],json:{read:!0,write:!0}})],te.prototype,"fullRangeExtent",void 0),(0,i.Cg)([(0,g.MZ)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],te.prototype,"type",void 0),te=(0,i.Cg)([(0,v.$)("esri.layers.support.RangeInfo")],te);var re,ie=r(78888),se=r(4718),ne=r(87024),oe=r(67076),ae=r(39829),le=r(98988);let de=re=class extends((0,_.T)(a.A.ofType(ae.A))){constructor(e){super(e)}clone(){return new re(this.items.map(e=>e.clone()))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map(r=>{if(!t.equals(r.spatialReference)){if(!(0,le.canProjectWithoutEngine)(r.spatialReference,t))return e?.messages?.push(new oe.A("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const i=new ae.A;(0,le.projectPolygon)(r,i,t),r=i}const i=r.toJSON(e);return delete i.spatialReference,i}).filter(e=>null!=e):this.toArray().map(t=>t.toJSON(e))}static fromJSON(e,t){const r=new re;return e.forEach(e=>r.add(ae.A.fromJSON(e,t))),r}};de=re=(0,i.Cg)([(0,v.$)("esri.layers.support.PolygonCollection")],de);const ue=de;var pe,ce=r(97159);let he=pe=class extends _.o{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new ue,this._geometriesSource=null}initialize(){this.addHandles((0,y.on)(()=>this.geometries,"after-changes",()=>this.geometries=this.geometries,y.OH))}readGeometries(e,t,r){Array.isArray(e)?this.geometries=ue.fromJSON(e,r):this._geometriesSource={url:(0,ce.f)(e,r),context:r}}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:i}=this._geometriesSource,s=await(0,ie.A)(r,{responseType:"json",signal:t?.signal}),n=e.toJSON(),o=s.data.map(e=>({...e,spatialReference:n}));this.geometries=ue.fromJSON(o,i),this._geometriesSource=null}clone(){const e=new pe({geometries:(0,se.o8)(this.geometries),spatialRelationship:this.spatialRelationship});return e._geometriesSource=this._geometriesSource,e}};(0,i.Cg)([(0,g.MZ)({type:["disjoint","contains"],nonNullable:!0,json:{write:{isRequired:!0}}})],he.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,g.MZ)({type:ue,nonNullable:!0,json:{write:!0,origins:{"web-scene":{write:{isRequired:!0}}}}}),(0,ne.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries",contentAddressed:!0})],he.prototype,"geometries",void 0),(0,i.Cg)([(0,m.w)(["web-scene","portal-item"],"geometries")],he.prototype,"readGeometries",null),he=pe=(0,i.Cg)([(0,v.$)("esri.layers.support.SceneFilter")],he);const ye=he;var ge=r(84952),fe=r(8947),me=r(41214),ve=r(61956),we=r(24212),be=r(30291);async function Ie(e){const t=[];for(const r of e)r.name.toLowerCase().endsWith(".zip")?t.push(Ae(r)):t.push(Promise.resolve(r));return(await Promise.all(t)).flat()}async function Ae(e){const{BlobReader:t,ZipReader:i,BlobWriter:s}=await Promise.all([r.e(6913),r.e(9588)]).then(r.bind(r,9588)),n=[],o=new i(new t(e));return(await o.getEntries()).forEach(e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;const t=new s;n.push(e.getData(t).then(t=>new File([t],e.filename)))}),Promise.all(n)}var Ce=r(5682),Se=r(45671),Me=r(78553);const Fe=new Set(["3DObject","Point"]),xe=(0,J.p)();let Le=class extends(R((0,M.w6)((0,O.w)((0,C.b)((0,F.q)((0,x.A)((0,L.j)((0,c.P)((0,S.d)((0,A.p)((0,o.O)(b.A)))))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new a.A,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.attributeTableTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0,this.serviceItemId=void 0}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._set("renderer",null),this.associatedLayer=(0,p.pR)(this.associatedLayer)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getField(e)?.domain??null;return this.associatedLayer?(0,H.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new B.A(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:K.W4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&(0,H.C$)(this.associatedLayer)}get geometryType(){return je[this.profile]||"mesh"}set renderer(e){(0,T.yp)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(e){e=null!=e?e:k.P;const{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsRollbackOnFailure:s,supportsUploadWithItemId:n,supportsGeometryUpdate:o,supportsReturnServiceEditsInSourceSpatialReference:a},data:{supportsZ:l,supportsM:d,isVersioned:u,supportsAttachment:p},operations:{supportsEditing:c,supportsAdd:h,supportsUpdate:y,supportsDelete:g,supportsQuery:f,supportsQueryAttachments:m,supportsAsyncConvert3D:v}}=e,w=e.operations.supportsChangeTracking,b=!!this.associatedLayer?.infoFor3D;return{query:t,queryRelated:r,editing:{supportsGlobalId:i,supportsReturnServiceEditsInSourceSpatialReference:a,supportsRollbackOnFailure:s,supportsGeometryUpdate:b&&o,supportsUploadWithItemId:n},data:{supportsAttachment:p,supportsZ:l,supportsM:d,isVersioned:u},operations:{supportsQuery:f,supportsQueryAttachments:m,supportsEditing:c&&w,supportsAdd:b&&h&&w,supportsDelete:b&&g&&w,supportsUpdate:y&&w,supportsAsyncConvert3D:v}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e)),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some(t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e)),e||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(e,t){const r=t.store.profile;return null!=r&&Oe[r]?Oe[r]:(u.A.getLogger(this).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(e){this._override("useViewTime",e)}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const t=null!=e?e.signal:null;await this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(h.QP),await this._fetchService(t),await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),this._loadFilterGeometries()]),this._validateElevationInfo(),this._applyAssociatedLayerOverrides(),this._populateFieldUsageInfo(),await this.loadTimeInfoFromService(e),await(0,fe.L)(this,{origin:"service"},t),(0,T.yp)(this.renderer,this.fieldsIndex),await this.finishLoadEditablePortalLayer(e)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(e){u.A.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:e}),this.filter=null}}createQuery(){const e=new ve.A;return"mesh"===this.geometryType?this.capabilities.query.supportsReturnMesh&&(e.returnGeometry=!0):(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this;return e})}async queryRelatedFeatures(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(e,t)}async queryCachedAttributes(e,t){const r=(0,T.hL)(this.fieldsIndex,await(0,Se.TO)(this,(0,Se.D8)(this)));return(0,Ce.s1)(this.parsedUrl?.path??"",this.attributeStorageInfo??[],e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new l.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const i=new s.A;return i.attributes=r[0],i.layer=this,i.sourceLayer=this,i}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryObjectIds(e||this.createQuery(),t))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryAttachments(e,t))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(u.A.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,be.tn)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return e?.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),!this.associatedLayer)throw new l.A("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new l.A("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some(t=>t.name===e)}async queryCachedStatistics(e,t){return await this.load(t),await this.fetchStatistics(e,t)}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(0,e)}async applyEdits(e,t){const{applyEdits:i}=await r.e(8628).then(r.bind(r,78628));let s=t;await this.load();const n=this.associatedLayer;if(!n)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");await n.load();const{globalIdField:o}=n,a=!!n.infoFor3D,d=s?.globalIdUsed??!0;if(a&&null==o)throw new l.A(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(a&&!d)throw new l.A(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");return(0,$.Wo)(n.url)&&a&&null!=e.deleteFeatures&&null!=o&&(s={...s,globalIdToObjectId:await(0,H.GA)(n,e.deleteFeatures,o)}),i(this,n.source,e,s)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new l.A(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}async convertMesh(e,t){t??={};const i=e=>{throw u.A.getLogger(this).error(".convertMesh()",e.message),e};await this.load(),this.infoFor3D||i(new l.A("invalid:layer","SceneLayer has no capability for mesh conversion"));const s=await this.extractAndFilterFiles(e),n=s.reduce((e,t)=>(0,Q.oF)(this.infoFor3D,t)?e+1:e,0);0===n&&i(new I.VP),n>1&&i(new I.XQ);const o=this.spatialReference,a=t.location??new w.A({x:0,y:0,z:0,spatialReference:o}),d=a.spatialReference.isGeographic?"local":"georeferenced",{default:p}=await Promise.all([r.e(3030),r.e(36)]).then(r.bind(r,40036)),c=p.createWithExternalSource(a,{type:"client",files:s},{vertexSpace:d,transform:(0,ee.Z)(a.spatialReference),unitConversionDisabled:!0}),[h]=await this.uploadAssets([c],{...t,useAssetOrigin:!t.location});return h}async extractAndFilterFiles(e){await this.load();const t=this.infoFor3D;return t?(await Ie(e)).filter(e=>(0,Q.fu)(t,e)):e}validateLayer(e){if(e.layerType&&!Fe.has(e.layerType))throw new l.A("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new l.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new l.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,i=!1;if(null==e)r=!0,i=!0;else{const s=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,i=s;break;case"vertex-reference-frame":r=!0,i=!s;break;default:r=!1}}if(!r)throw new l.A("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!i)throw new l.A("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new l.A("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!!this.attributeStorageInfo?.some(t=>t.name===e.name),r=!!this.associatedLayer?.fields?.some(t=>t&&e.name===t.name),i={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=i}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPropertyOverrides(),this._applyAssociatedLayerExtentOverride(),this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(!this.associatedLayer?.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPropertyOverrides(){if(!this.associatedLayer)return;const e=["popupTemplate","popupEnabled","attributeTableTemplate"],t=(0,f.oY)(this);for(let r=0;r<e.length;r++){const i=e[r],s=this.originIdOf(i),n=this.associatedLayer.originIdOf(i);s<n&&(2===n||3===n)&&t.setAtOrigin(i,this.associatedLayer[i],n)}}_applyAssociatedLayerExtentOverride(){const e=this.associatedLayer?.getAtOrigin("fullExtent","service");null!=this.associatedLayer?.infoFor3D&&e&&(0,$.Wo)(this.associatedLayer?.url)&&Z(this)&&(0,f.oY)(this).setAtOrigin("fullExtent",e.clone(),2)}_applyAssociatedLayerPrivileges(){const e=this.associatedLayer;e&&(this._set("userHasEditingPrivileges",e.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",e.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",e.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(e){if(["mesh-pyramids","points"].includes(this.profile))try{const{serverUrl:t,layerId:r,portalItem:i}=await(0,D.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e}),s=await X.S.FeatureLayer();this.associatedLayer=new s({url:t,customParameters:this.customParameters,layerId:r,portalItem:i}),await this.associatedLayer.load()}catch(e){(0,h.zf)(e)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){const e=new AbortController;this.addHandles((0,d.rE)(e));try{await(0,y.C_)(()=>this.popupEnabled&&null!=this.popupTemplate,e.signal)}catch(e){return void(0,h.jH)(e)}const t=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?u.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${t}`):u.A.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${t}`)}_validateElevationInfo(){const e=this.elevationInfo;"mesh-pyramids"===this.profile&&(0,we.XF)(u.A.getLogger(this),(0,we.$7)("Mesh scene layers","relative-to-scene",e)),(0,we.XF)(u.A.getLogger(this),(0,we.tW)("Scene layers",e))}async fetchStatistics(e,t){return await async function({fieldName:e,statisticsInfo:t,errorContext:r,fieldsIndex:i,path:s,customParameters:n,apiKey:o,signal:a}){if(null==t)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics are not available for this layer");const d=i.get(e);if(null==d)throw new l.A(`${r}:field-unexisting`,`Field '${e}' does not exist on the layer`);const u=t.find(e=>e.name===d.name);if(null==u)throw new l.A(`${r}:no-cached-statistics`,"Cached statistics for this attribute are not available");const p=(0,ge.fj)(s,u.href),{data:c}=await(0,ie.A)(p,{query:{f:"json",...n,token:o},responseType:"json",signal:a});return c}({fieldName:e,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:t?.signal})}};(0,i.Cg)([(0,g.MZ)({types:{key:"type",base:V.c,typeMap:{selection:G.A}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],Le.prototype,"featureReduction",void 0),(0,i.Cg)([(0,g.MZ)({type:[te],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}},clonable:!1})],Le.prototype,"rangeInfos",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1}})],Le.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"]})],Le.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:["ArcGISSceneServiceLayer"]})],Le.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],Le.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({...xe.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Le.prototype,"fields",void 0),(0,i.Cg)([(0,g.MZ)()],Le.prototype,"types",null),(0,i.Cg)([(0,g.MZ)()],Le.prototype,"typeIdField",null),(0,i.Cg)([(0,g.MZ)()],Le.prototype,"templates",null),(0,i.Cg)([(0,g.MZ)()],Le.prototype,"formTemplate",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,clonable:!1})],Le.prototype,"fieldsIndex",null),(0,i.Cg)([(0,g.MZ)({type:Y.A,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Le.prototype,"floorInfo",void 0),(0,i.Cg)([(0,g.MZ)(xe.outFields)],Le.prototype,"outFields",void 0),(0,i.Cg)([(0,g.MZ)({type:K.W4,readOnly:!0,json:{read:!1},clonable:!1})],Le.prototype,"nodePages",void 0),(0,i.Cg)([(0,m.w)("service","nodePages",["nodePages","pointNodePages"])],Le.prototype,"readNodePages",null),(0,i.Cg)([(0,g.MZ)({type:[K.uV],readOnly:!0,clonable:!1})],Le.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[K.Ot],readOnly:!0,clonable:!1})],Le.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[K.L0],readOnly:!0,clonable:!1})],Le.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Le.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Le.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Le.prototype,"statisticsInfo",void 0),(0,i.Cg)([(0,g.MZ)({type:a.A.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],Le.prototype,"excludeObjectIds",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Le.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,g.MZ)({type:ye,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],Le.prototype,"filter",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Le.prototype,"path",void 0),(0,i.Cg)([(0,g.MZ)(q.Yj)],Le.prototype,"elevationInfo",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],Le.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,g.MZ)({type:String})],Le.prototype,"geometryType",null),(0,i.Cg)([(0,g.MZ)(q.kF)],Le.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,g.MZ)({type:[z.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:W.w},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:W.w},write:!0}})],Le.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,g.MZ)(q.fV)],Le.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,Me.D)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],Le.prototype,"opacity",void 0),(0,i.Cg)([(0,g.MZ)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Le.prototype,"priority",void 0),(0,i.Cg)([(0,g.MZ)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],Le.prototype,"semantic",void 0),(0,i.Cg)([(0,g.MZ)({types:me.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],Le.prototype,"renderer",null),(0,i.Cg)([(0,g.MZ)({json:{read:!1}})],Le.prototype,"cachedDrawingInfo",void 0),(0,i.Cg)([(0,m.w)("service","cachedDrawingInfo")],Le.prototype,"readCachedDrawingInfo",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"capabilities",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,json:{read:!1}})],Le.prototype,"editingEnabled",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Le.prototype,"infoFor3D",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{write:!1,read:!1}})],Le.prototype,"relationships",null),(0,i.Cg)([(0,g.MZ)(q.M6)],Le.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],Le.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,g.MZ)(q.zQ)],Le.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!1}})],Le.prototype,"objectIdField",void 0),(0,i.Cg)([(0,m.w)("service","objectIdField",["objectIdField","fields"])],Le.prototype,"readObjectIdField",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!1}})],Le.prototype,"globalIdField",void 0),(0,i.Cg)([(0,m.w)("service","globalIdField",["globalIdField","fields"])],Le.prototype,"readGlobalIdField",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String,json:{read:!1}})],Le.prototype,"displayField",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{read:!1}})],Le.prototype,"profile",void 0),(0,i.Cg)([(0,m.w)("service","profile",["store.profile"])],Le.prototype,"readProfile",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],Le.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,g.MZ)(q.PY)],Le.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1,origins:{service:{read:!0}}}})],Le.prototype,"serviceItemId",void 0),(0,i.Cg)([(0,g.MZ)(j.B)],Le.prototype,"useViewTime",null),Le=(0,i.Cg)([(0,v.$)("esri.layers.SceneLayer")],Le);const Oe={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},je={"mesh-pyramids":"mesh",points:"point"},_e=Le},17036:(e,t,r)=>{r.d(t,{p:()=>l});var i=r(44208),s=r(53966),n=r(20437),o=r(95466),a=r(30524);function l(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");s.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||s.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},18768:(e,t,r)=>{r.d(t,{b:()=>l});var i=r(31635),s=r(53966),n=r(10107),o=(r(44208),r(87811),r(40608)),a=r(60694);const l=e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,i.Cg)([(0,n.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,o.$)("esri.layers.mixins.ArcGISService")],r),r}},20557:(e,t,r)=>{r.d(t,{Fm:()=>l,Hz:()=>h,JQ:()=>c,JZ:()=>b,ND:()=>g,R_:()=>o,U9:()=>p,fu:()=>s,nr:()=>y,oF:()=>n,rq:()=>d,z$:()=>u});const i=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=m(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;const r=d(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function o(e,t){return v(function(e,t){const r=e.toLowerCase();return f(t).find(e=>w(e)===r)}(e,t))}function a(e,t){return v(m(e,t))}function l(e,t){return w(function(e,t){return f(t).find(t=>v(t)===e)}(e,t))}function d(e,t){return a(e.name,t)??o(e.type,t)}function u(e,t,r){return o(e,r)??a(t,r)}function p({supportedFormats:e}){return u("model/gltf-binary","glb",e)}function c(e){const t=p(e);return null!=t&&e.editFormats.includes(t)}function h(e){if(!e)return null;const t=p(e),r=function({supportedFormats:e}){return u("model/gltf+json","gltf",e)}(e);let i=null;for(const s of e.queryFormats){if(s===t)return s;s===r&&(i=s)}return i}function y({supportedFormats:e}){return u("application/esri3do-SR_world","wld",e)}function g({supportedFormats:e}){return u("application/esri3do-SR_prj","prj",e)}function f(e){return[...i,...e]}function m(e,t){const r=e.toLowerCase();return f(t).find(e=>function(e){return e?.[2].split(",").map(e=>e.toLowerCase())??[]}(e).some(e=>r.endsWith(e)))}function v(e){return e?.[0]}function w(e){return e?.[1].toLowerCase()}function b(e){return e.tables?.find(e=>"assetMaps"===e.role)}},20816:(e,t,r)=>{r.d(t,{TA:()=>s,We:()=>a,Z3:()=>n,ZJ:()=>l,w5:()=>d});var i=r(78888);const s=(0,r(13069).vD)(),n=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;const s=new URL(e).host;let o=n.get(s);if(!o){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,i=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(n)?.entries();if(a)for(const[e,o]of a)if(o.name===t){const t=!o.stack?.hasForwardEdits();if(!t&&i){const[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(r.bind(r,32186)),r.e(2558).then(r.bind(r,32558))]),a=await t(n,e,new i({sessionId:s,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function d(e,t){if(!e)return!1;const r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(const[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map},24770:(e,t,r)=>{r.d(t,{$I:()=>f,AU:()=>h,g7:()=>g,i4:()=>u,ui:()=>p,up:()=>v,vt:()=>d,yo:()=>y});var i=r(34727),s=r(58083),n=r(67026),o=r(82534),a=r(38954),l=r(51850);function d(e=v){return[e[0],e[1],e[2],e[3]]}function u(e,t,r=d()){return(0,a.c)(r,e),r[3]=t,r}function p(e,t=d()){const r=(0,s.l)(w,e);return m(t,(0,i.KJ)((0,n.Xd)(t,r))),t}function c(e,t,r=d()){return(0,n.x8)(w,e,f(e)),(0,n.x8)(b,t,f(t)),(0,n.lw)(w,b,w),m(r,(0,i.KJ)((0,n.Xd)(r,w)))}function h(e,t,r,i=d()){return u(l.Cw,e,I),u(l.JP,t,A),u(l.Cb,r,C),c(I,A,I),c(I,C,i),i}function y(e){return e}function g(e){return e[3]}function f(e){return(0,i.kU)(e[3])}function m(e,t){return e[3]=t,e}const v=[0,0,1,0],w=(0,o.vt)(),b=(0,o.vt)(),I=(d(),d()),A=d(),C=d()},25036:(e,t,r)=>{r.d(t,{j:()=>o});var i=r(31635),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const o=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,i.Cg)([(0,n.$)("esri.layers.mixins.ScaleRangeLayer")],r),r}},26253:(e,t,r)=>{r.d(t,{T:()=>p});var i=r(31635),s=r(69540),n=r(25482),o=r(88930),a=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),d=r(40608),u=r(73133);let p=class extends((0,s.O)(n.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,l.e)(u.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i.Cg)([(0,d.$)("esri.time.TimeInterval")],p)},37352:(e,t,r)=>{r.d(t,{A:()=>d});var i,s=r(31635),n=r(7762),o=r(25482),a=r(10107),l=(r(44208),r(53966),r(87811),r(40608));let d=i=class extends o.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],d.prototype,"floorField",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],d.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],d.prototype,"viewAllLevelIds",void 0),d=i=(0,s.Cg)([(0,l.$)("esri.layers.support.LayerFloorInfo")],d)},40530:(e,t,r)=>{r.d(t,{c:()=>a});var i=r(31635),s=r(25482),n=r(10107),o=(r(44208),r(53966),r(87811),r(40608));let a=class extends s.o{constructor(){super(...arguments),this.type=null}};(0,i.Cg)([(0,n.MZ)({type:["selection","cluster","binning"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,o.$)("esri.layers.support.FeatureReduction")],a)},47685:(e,t,r)=>{r.d(t,{Mk:()=>g,Zk:()=>h,w6:()=>v});var i=r(31635),s=r(65529),n=r(4718),o=r(74887),a=r(10107),l=(r(44208),r(53966),r(40608)),d=r(20816);const u=new s.bk;function p(e){return u.on("apply-edits",new WeakRef(e))}function c(e){return u.on("update-moment",new WeakRef(e))}function h(e,t,r=null,i=!1){const s=(0,o.Tw)();return i=null==t||i,u.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:s.promise}),s}const y=Symbol();function g(e){return null!=e&&"object"==typeof e&&y in e}function f(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function m(e,t,r){const i=new URL(e).host,s=d.Z3.get(i),n=e=>!e||e===s;return n(t)&&n(r)||t===r}const v=e=>{var t;const r=e;let s=class extends r{static{t=y}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:s,result:o}=e,a=t===this.url,l=null!=r&&null!=this.layerId&&r===this.layerId,d=f(this),u=f(this)&&m(t,i,this.gdbVersion);if(!a||d&&!u||!l&&!s)return;const p=o.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){const{adds:t,updates:i,deletes:s}=r.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",o),o}const s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));this.emit("apply-edits",{result:p})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:r,moment:i}=e,s=t===this.url,n=f(this),o=f(this)&&m(t,r,this.gdbVersion),a=f(this)&&!m(t,this.gdbVersion,null);s&&n&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(p(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(c(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,d.w5)(e,t)}};return(0,i.Cg)([(0,a.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,i.Cg)([(0,l.$)("esri.layers.mixins.EditBusLayer")],s),s}},52136:(e,t,r)=>{r.d(t,{p:()=>o});var i=r(31635),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const o=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,s.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,n.$)("esri.layers.mixins.APIKeyMixin")],r),r}},54239:(e,t,r)=>{r.d(t,{A:()=>m});var i,s=r(31635),n=r(4576),o=r(66552),a=r(25482),l=r(83047),d=r(67076),u=r(10107),p=(r(44208),r(53966),r(36005)),c=r(40608),h=r(43937);const y=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=y.jsonValues.slice();(0,n.Xy)(g,"orthometric");const f=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=i=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new d.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||f.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new d.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s.Cg)([(0,u.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,s.Cg)([(0,h.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,s.Cg)([(0,p.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,s.Cg)([(0,u.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:{writer:f.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,s.Cg)([(0,p.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,s.Cg)([(0,p.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,s.Cg)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,s.Cg)([(0,p.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=i=(0,s.Cg)([(0,c.$)("esri.geometry.HeightModelInfo")],m)},55726:(e,t,r)=>{r.d(t,{$1:()=>d,H2:()=>h,MT:()=>y,VP:()=>g,WF:()=>u,Wt:()=>o,XQ:()=>f,hK:()=>c,nS:()=>p,uh:()=>a,xY:()=>l});var i=r(49186);const s="upload-assets",n=()=>new Error;class o extends i.A{constructor(){super(`${s}:unsupported`,"Layer does not support asset uploads.",n())}}class a extends i.A{constructor(){super(`${s}:no-glb-support`,"Layer does not support glb.",n())}}class l extends i.A{constructor(){super(`${s}:no-supported-source`,"No supported external source found",n())}}class d extends i.A{constructor(){super(`${s}:not-base-64`,"Expected gltf data in base64 format after conversion.",n())}}class u extends i.A{constructor(){super(`${s}:unable-to-prepare-options`,"Unable to prepare uploadAsset request options.",n())}}class p extends i.A{constructor(e,t){super(`${s}:bad-response`,`Bad response. Uploaded ${e} items and received ${t} results.`,n())}}class c extends i.A{constructor(e,t){super(`${s}-layer:upload-failed`,`Failed to upload mesh file ${e}. Error code: ${t?.code??"-1"}. Error message: ${t?.messages??"unknown"}`,n())}}class h extends i.A{constructor(e){super(`${s}-layer:unsupported-format`,`The service allowed us to upload an asset of FormatID ${e}, but it does not list it in its supported formats.`,n())}}class y extends i.A{constructor(){super(`${s}:convert3D-failed`,"convert3D failed.")}}class g extends i.A{constructor(){super("invalid-input:no-model","No supported model found")}}class f extends i.A{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}},67202:(e,t,r)=>{r.d(t,{A:()=>l});var i,s=r(31635),n=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),a=r(40530);let l=i=class extends a.c{constructor(e){super(e),this.type="selection"}clone(){return new i}};(0,s.Cg)([(0,n.MZ)({type:["selection"]})],l.prototype,"type",void 0),l=i=(0,s.Cg)([(0,o.$)("esri.layers.support.FeatureReductionSelection")],l)},69208:(e,t,r)=>{r.d(t,{d:()=>o});var i=r(31635),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const o=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,n.$)("esri.layers.mixins.CustomParametersMixin")],r),r}},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73179:(e,t,r)=>{r.d(t,{b:()=>l,h:()=>d});var i=r(4718),s=r(53966),n=r(84952),o=r(60694),a=r(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},n=(0,i.o8)(a.OZ),l=n.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,s){(0,o.LS)(this,e,r,t,s)}),{...n,set:function(e){if(null==e)return void this._set("url",e);const r=(0,o.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:s.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function d(e,t){const{separator:r}=t??{},i=(0,n.An)(e.url);return null!=i&&(null!=e.dynamicDataSource?i.path=(0,n.fj)(i.path,"dynamicLayer"):null!=e.layerId&&(i.path=(0,n.fj)(i.path,r??"",e.layerId.toString()))),i}},73836:(e,t,r)=>{r.d(t,{A:()=>y});var i=r(31635),s=r(69540),n=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(40608)),l=r(58083),d=r(9093),u=r(67026),p=r(82534),c=r(51850),h=r(24770);let y=class extends((0,s.O)(n.o)){constructor(e){super(e),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(h.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,c.o8)((0,h.yo)(e)),this.rotationAngle=(0,h.g7)(e)}get localMatrix(){const e=(0,d.vt)();return(0,u.x8)(g,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,l.o1)(e,g,this.translation,this.scale),e}get localMatrixInverse(){return(0,l.B8)((0,d.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,l.t2)(this.localMatrix,e.localMatrix)}};(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"translation",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"rotationAxis",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],y.prototype,"rotationAngle",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],y.prototype,"scale",void 0),(0,i.Cg)([(0,o.MZ)()],y.prototype,"rotation",null),(0,i.Cg)([(0,o.MZ)()],y.prototype,"localMatrix",null),(0,i.Cg)([(0,o.MZ)()],y.prototype,"localMatrixInverse",null),y=(0,i.Cg)([(0,a.$)("esri.geometry.support.MeshTransform")],y);const g=(0,p.vt)()},80200:(e,t,r)=>{r.d(t,{T:()=>i,d:()=>g});const i={Base64:0,Hex:1,String:2,Raw:3},s=8,n=(1<<s)-1;function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e){const t=[];for(let r=0,i=e.length*s;r<i;r+=s)t[r>>5]|=(e.charCodeAt(r/s)&n)<<r%32;return t}function l(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=s)t.push(String.fromCharCode(e[r>>5]>>>r%32&n));return t.join("")}function d(e,t,r,i,s,n){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(i,n)),s),r)}function u(e,t,r,i,s,n,o){return d(t&r|~t&i,e,t,s,n,o)}function p(e,t,r,i,s,n,o){return d(t&i|r&~i,e,t,s,n,o)}function c(e,t,r,i,s,n,o){return d(t^r^i,e,t,s,n,o)}function h(e,t,r,i,s,n,o){return d(r^(t|~i),e,t,s,n,o)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,s=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=i,d=s,y=n;r=u(r,i,s,n,e[t],7,-680876936),n=u(n,r,i,s,e[t+1],12,-389564586),s=u(s,n,r,i,e[t+2],17,606105819),i=u(i,s,n,r,e[t+3],22,-1044525330),r=u(r,i,s,n,e[t+4],7,-176418897),n=u(n,r,i,s,e[t+5],12,1200080426),s=u(s,n,r,i,e[t+6],17,-1473231341),i=u(i,s,n,r,e[t+7],22,-45705983),r=u(r,i,s,n,e[t+8],7,1770035416),n=u(n,r,i,s,e[t+9],12,-1958414417),s=u(s,n,r,i,e[t+10],17,-42063),i=u(i,s,n,r,e[t+11],22,-1990404162),r=u(r,i,s,n,e[t+12],7,1804603682),n=u(n,r,i,s,e[t+13],12,-40341101),s=u(s,n,r,i,e[t+14],17,-1502002290),i=u(i,s,n,r,e[t+15],22,1236535329),r=p(r,i,s,n,e[t+1],5,-165796510),n=p(n,r,i,s,e[t+6],9,-1069501632),s=p(s,n,r,i,e[t+11],14,643717713),i=p(i,s,n,r,e[t],20,-373897302),r=p(r,i,s,n,e[t+5],5,-701558691),n=p(n,r,i,s,e[t+10],9,38016083),s=p(s,n,r,i,e[t+15],14,-660478335),i=p(i,s,n,r,e[t+4],20,-405537848),r=p(r,i,s,n,e[t+9],5,568446438),n=p(n,r,i,s,e[t+14],9,-1019803690),s=p(s,n,r,i,e[t+3],14,-187363961),i=p(i,s,n,r,e[t+8],20,1163531501),r=p(r,i,s,n,e[t+13],5,-1444681467),n=p(n,r,i,s,e[t+2],9,-51403784),s=p(s,n,r,i,e[t+7],14,1735328473),i=p(i,s,n,r,e[t+12],20,-1926607734),r=c(r,i,s,n,e[t+5],4,-378558),n=c(n,r,i,s,e[t+8],11,-2022574463),s=c(s,n,r,i,e[t+11],16,1839030562),i=c(i,s,n,r,e[t+14],23,-35309556),r=c(r,i,s,n,e[t+1],4,-1530992060),n=c(n,r,i,s,e[t+4],11,1272893353),s=c(s,n,r,i,e[t+7],16,-155497632),i=c(i,s,n,r,e[t+10],23,-1094730640),r=c(r,i,s,n,e[t+13],4,681279174),n=c(n,r,i,s,e[t],11,-358537222),s=c(s,n,r,i,e[t+3],16,-722521979),i=c(i,s,n,r,e[t+6],23,76029189),r=c(r,i,s,n,e[t+9],4,-640364487),n=c(n,r,i,s,e[t+12],11,-421815835),s=c(s,n,r,i,e[t+15],16,530742520),i=c(i,s,n,r,e[t+2],23,-995338651),r=h(r,i,s,n,e[t],6,-198630844),n=h(n,r,i,s,e[t+7],10,1126891415),s=h(s,n,r,i,e[t+14],15,-1416354905),i=h(i,s,n,r,e[t+5],21,-57434055),r=h(r,i,s,n,e[t+12],6,1700485571),n=h(n,r,i,s,e[t+3],10,-1894986606),s=h(s,n,r,i,e[t+10],15,-1051523),i=h(i,s,n,r,e[t+1],21,-2054922799),r=h(r,i,s,n,e[t+8],6,1873313359),n=h(n,r,i,s,e[t+15],10,-30611744),s=h(s,n,r,i,e[t+6],15,-1560198380),i=h(i,s,n,r,e[t+13],21,1309151649),r=h(r,i,s,n,e[t+4],6,-145523070),n=h(n,r,i,s,e[t+11],10,-1120210379),s=h(s,n,r,i,e[t+2],15,718787259),i=h(i,s,n,r,e[t+9],21,-343485551),r=o(r,a),i=o(i,l),s=o(s,d),n=o(n,y)}return[r,i,s,n]}function g(e,t=i.Hex){const r=t||i.Base64,n=y(a(e),e.length*s);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,s=4*e.length;i<s;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return l(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let s=0;s<4;s++)8*r+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-s)&63))}return t.join("")}(n)}}},82935:(e,t,r)=>{r.d(t,{B:()=>h,e:()=>y});var i=r(31635),s=r(10107),n=(r(44208),r(53966),r(87811),r(36005)),o=r(40608),a=r(89317),l=r(30524),d=r(96184),u=r(73133),p=r(64272),c=r(26253);const h={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:a.K}}},y=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,s=u.j.fromJSON(r.timeOffsetUnits);return i&&s?new c.T({value:i,unit:s}):null}set timeInfo(e){(0,l.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,s.MZ)({type:p.T,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:c.T})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,n.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,s.MZ)({value:null,type:d.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,s.MZ)(h)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,o.$)("esri.layers.mixins.TemporalLayer")],r),r}},85648:(e,t,r)=>{r.d(t,{n:()=>s});var i=r(84952);function s(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return l[t]||o}(e.url)}(e)]||a}const n={},o="text/plain",a=n[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)n[l[e]]=e},86390:(e,t,r)=>{r.d(t,{Z:()=>n});var i=r(83047),s=r(73836);function n(e){const t=1/(0,i.GA)(e,1);return 1!==t?new s.A({scale:[t,t,t]}):void 0}},87024:(e,t,r)=>{r.d(t,{P:()=>h});var i=r(49186),s=r(80200),n=r(76553),o=r(84952),a=r(13069),l=r(96156),d=r(35666),u=r(10107),p=r(85648),c=r(97159);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const s=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const s=(0,c.r)(e,t,r);return i.type===String?s:"function"==typeof i.type?new i.type({url:s}):void 0},write:{isRequired:i.json?.write?.isRequired,writer(t,s,a,l){if(!l?.resources)return"string"==typeof t?void(s[a]=(0,c.t)(t,l)):void(s[a]=t.write({},l));const u=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,c.t)(u,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),m=i.type!==String&&(!(0,n.H)(this)||l?.origin&&this.originIdOf(r)>(0,d.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:s,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,o.oP)(h)?m&&e?.contentAddressed?y(v):m?function(e){const{context:t,targetUrl:r,params:i,value:s,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),d=f(s,r,t),u=(0,p.n)(d),c=(0,o.Zo)(l.path),h=i?.compress??!1;u===c?(t.resources&&g({...e,resource:l,content:d,compress:h,updates:t.resources.toUpdate}),n[a]=r):y(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):l?.portalItem&&(null==h||null!=(0,c.i)(h)||(0,o.w8)(h)||m)?y(v):s[a]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=c.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,u.rM)(r,e,i);for(const e in s)t[e]=s[e]}}}function y(e){const{targetUrl:t,params:r,value:n,context:l,dest:d,targetPropertyName:u}=e;if(!l.portalItem)return;const h=(0,c.p)(t),y=f(n,t,l);if(r?.contentAddressed&&"json"!==y.type)return void l.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const m=r?.contentAddressed&&"json"===y.type?(0,s.d)(y.jsonString):h?.filename??(0,a.lk)(),v=(0,o.fj)(r?.prefix??h?.prefix,m),w=`${v}.${(0,p.n)(y)}`;if(r?.contentAddressed&&l.resources&&"json"===y.type){const e=l.resources.toKeep.find(({resource:e})=>e.path===w)??l.resources.toAdd.find(({resource:e})=>e.path===w);if(e)return void(d[u]=e.resource.itemRelativeUrl)}const b=l.portalItem.resourceFromPath(w);(0,o.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.tk)(t).then(e=>{b.path=`${v}.${(0,p.n)({type:"blob",blob:e})}`,d[u]=b.itemRelativeUrl}).catch(()=>{}));const I=r?.compress??!1;l.resources&&g({...e,resource:b,content:y,compress:I,updates:l.resources.toAdd}),d[u]=b.itemRelativeUrl}function g({object:e,propertyName:t,updates:r,resource:i,content:s,compress:n}){r.push({resource:i,content:s,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function f(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},92071:(e,t,r)=>{r.d(t,{P:()=>v,L:()=>w});var i=r(31635),s=r(65008),n=r(76953),o=r(4718),a=r(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,r=this._originStores[0];r&&r.forEach((e,r)=>{t.set(r,(0,o.o8)(e),0)});for(let r=2;r<a.AU;r++){const i=this._originStores[r];i&&i.forEach((i,s)=>{e&&e.has(s)||t.set(s,(0,o.o8)(i),r)})}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=7){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=7){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r?.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||0}isAtOrigin(e,t){return this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(e)}}var d=r(45917),u=r(88620),p=r(40608);const c=e=>{const t=e;let r=class extends t{constructor(...e){super(...e);const t=(0,u.oY)(this),r=t.store,i=new l;t.store=i,(0,n.k)(t,r,i)}read(e,t){(0,d.L)(this,e,t)}getAtOrigin(e,t){const r=h(this),i=(0,a.aB)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach(e=>{s[e]=r.get(e,i)}),s}originOf(e){return(0,a.OL)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const r=h(this),i=(0,a.aB)(t),s=(0,u.oY)(this);let n;n="string"==typeof e?"*"===e?r.keys(i):[e]:e,n.forEach(e=>{s.invalidate(e),r.revert(e,i),s.commit(e)})}};return r=(0,i.Cg)([(0,p.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],r),r};function h(e){return(0,u.oY)(e).store}c(s.A);var y=r(16649),g=r(49422);const f=e=>{const t=e;let r=class extends t{constructor(...e){super(...e)}clear(e,t="user"){(0,u.oY)(this).clearOrigin(e,(0,a.aB)(t))}write(e,t){return(0,g.M)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,u.oY)(this).setAtOrigin(e,t,(0,a.aB)(r))}removeOrigin(e){const t=m(this),r=(0,a.aB)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),7)}updateOrigin(e,t){const r=m(this),i=(0,a.aB)(t),s=(0,y.Jt)(this,e);for(let t=i+1;t<a.AU;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return r=(0,i.Cg)([(0,p.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function m(e){return(0,u.oY)(e).store}const v=e=>{const t=f(c(e));let r=class extends t{constructor(...e){super(...e)}};return r=(0,i.Cg)([(0,p.$)("esri.core.MultiOriginJSONSupport")],r),r},w=v(s.A)},96184:(e,t,r)=>{r.d(t,{A:()=>y});var i=r(31635),s=r(69540),n=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),d=r(43937),u=r(64272),p=r(26253),c=r(56400);function h(e,t){return p.T.fromJSON({value:e,unit:t})}let y=class extends((0,s.O)(n.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?u.T.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:u.T,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,a.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,d.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:p.T,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,i.Cg)([(0,a.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,i.Cg)([(0,d.K)("interval")],y.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,c.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,i.Cg)([(0,l.$)("esri.layers.support.TimeInfo")],y)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8142],{9093:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>a});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,e,n,r,o,a,i,u,l,s,c,f,d,h,b,p){return[t,e,n,r,o,a,i,u,l,s,c,f,d,h,b,p]}},Symbol.toStringTag,{value:"Module"}))},9762:(t,e,n)=>{n.r(e),n.d(e,{projectBuffer:()=>o});var r=n(37539);function o(t,e,n,o,a,i,u=Math.floor(t.length/3)){const l=(0,r.jd)(e,a);if(null==l)return!1;if(l===r.pO){if(t===o&&n===i)return!0;const e=n+3*u;for(let r=n,a=i;r<e;r++,a++)o[a]=t[r];return!0}const s=n+3*u;for(let e=n,r=i;e<s;e+=3,r+=3)l(t,e,o,r);return!0}},29242:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,a,i,u,l){return[t,e,n,r,o,a,i,u,l]}n.d(e,{fA:()=>o,vt:()=>r,zK:()=>a});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"}))},31635:(t,e,n)=>{function r(t,e,n,r){var o,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(i=(a<3?o(i):a>3?o(e,n,i):o(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i}function o(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>i,mS:()=>o}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function i(t){function e(e){t.error=t.hasError?new a(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function o(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(o);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(o,function(t){return e(t),o()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},32114:(t,e,n)=>{n.d(e,{Rc:()=>h,J8:()=>b,rq:()=>f,Km:()=>d}),n(44208);var r=n(26390),o=n(29242),a=n(9093),i=n(82534),u=n(48163),l=n(51850),s=n(91829);class c{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new c(u.vt)}static createVec3f64(){return new c(l.vt)}static createVec4f64(){return new c(s.vt)}static createMat3f64(){return new c(o.vt)}static createMat4f64(){return new c(a.vt)}static createQuatf64(){return new c(i.vt)}get test(){}}c.createVec2f64();const f=c.createVec3f64(),d=c.createVec4f64(),h=(c.createMat3f64(),c.createMat4f64()),b=c.createQuatf64()},34142:(t,e,n)=>{n.r(e),n.d(e,{default:()=>I});var r=n(4576),o=n(34275),a=n(67026),i=n(82534),u=n(38954),l=n(72385),s=n(16930),c=n(9762),f=(n(44208),n(63531)),d=n(69846),h=n(48425),b=n(59418),p=n(37203);function g(t,e,n){return t?.attributeInfo.useElevation?e?function(t,e){const n=new Float64Array(e);for(let r=0;r<e;r++)n[r]=t[3*r+2];return n}(e,n):null:t?.attributeInfo.storageInfo?(0,b.m0)(t.attributeInfo.storageInfo,t.buffer,n,!0):null}function m(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function y(t){let e=0;for(const n of t||[])e|=1<<n;return e}var M=n(57005);class w{transform(t){const e=this._transform(t),n=[e.points.buffer,e.rgb.buffer];null!=e.pointIdFilterMap&&n.push(e.pointIdFilterMap.buffer);for(const t of e.attributes)"buffer"in t.values&&(0,o.mw)(t.values.buffer)&&t.values.buffer!==e.rgb.buffer&&n.push(t.values.buffer);return Promise.resolve({result:e,transferList:n})}_transform(t){const e=function(t,e){if(null==t.encoding||""===t.encoding){const n=(0,b.wH)(e,t);if(null==n.vertexAttributes.position)return;const r=(0,b.MA)(e,n.vertexAttributes.position),o=n.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],i=[o.scaleX,o.scaleY,o.scaleZ],u=r.length/3,l=new Float64Array(3*u);for(let t=0;t<u;t++)l[3*t]=r[3*t]*i[0]+a[0],l[3*t+1]=r[3*t+1]*i[1]+a[1],l[3*t+2]=r[3*t+2]*i[2]+a[2];return l}if("lepcc-xyz"===t.encoding)return(0,p.Me)(e).result}(t.schema,t.geometryBuffer);let n=e.length/3,o=null;const a=new Array,i=g(t.primaryAttributeData,e,n);null!=t.primaryAttributeData&&i&&a.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:i});const u=g(t.modulationAttributeData,e,n);null!=t.modulationAttributeData&&u&&a.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:u});let l=function(t,e,n,r){const{rendererJSON:o,isRGBRenderer:a}=t;let i=null,u=null;if(e&&a)i=e;else if(e&&"pointCloudUniqueValueRenderer"===o?.type){u=h.A.fromJSON(o);const t=u.colorUniqueValueInfos;i=new Uint8Array(3*r);const n=m(u.fieldTransformType);for(let o=0;o<r;o++){const r=(n?n(e[o]):e[o])+"";for(let e=0;e<t.length;e++)if(t[e].values.includes(r)){i[3*o]=t[e].color.r,i[3*o+1]=t[e].color.g,i[3*o+2]=t[e].color.b;break}}}else if(e&&"pointCloudStretchRenderer"===o?.type){u=d.A.fromJSON(o);const t=u.stops;i=new Uint8Array(3*r);const n=m(u.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(e[o]):e[o],a=t.length-1;if(r<t[0].value)i[3*o]=t[0].color.r,i[3*o+1]=t[0].color.g,i[3*o+2]=t[0].color.b;else if(r>=t[a].value)i[3*o]=t[a].color.r,i[3*o+1]=t[a].color.g,i[3*o+2]=t[a].color.b;else for(let e=1;e<t.length;e++)if(r<t[e].value){const n=(r-t[e-1].value)/(t[e].value-t[e-1].value);i[3*o]=t[e].color.r*n+t[e-1].color.r*(1-n),i[3*o+1]=t[e].color.g*n+t[e-1].color.g*(1-n),i[3*o+2]=t[e].color.b*n+t[e-1].color.b*(1-n);break}}}else if(e&&"pointCloudClassBreaksRenderer"===o?.type){u=f.A.fromJSON(o);const t=u.colorClassBreakInfos;i=new Uint8Array(3*r);const n=m(u.fieldTransformType);for(let o=0;o<r;o++){const r=n?n(e[o]):e[o];for(let e=0;e<t.length;e++)if(r>=t[e].minValue&&r<=t[e].maxValue){i[3*o]=t[e].color.r,i[3*o+1]=t[e].color.g,i[3*o+2]=t[e].color.b;break}}}else i=new Uint8Array(3*r).fill(255);if(n&&u?.colorModulation){const t=u.colorModulation.minValue,e=u.colorModulation.maxValue,o=.3;for(let a=0;a<r;a++){const r=n[a],u=r>=e?1:r<=t?o:o+(1-o)*(r-t)/(e-t);i[3*a]=u*i[3*a],i[3*a+1]=u*i[3*a+1],i[3*a+2]=u*i[3*a+2]}}return i}(t.rendererInfo,i,u,n);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){const i=t.filterAttributesData.filter(r.Ru).map(t=>{const r=g(t,e,n),o={attributeInfo:t.attributeInfo,values:r};return a.push(o),o});o=new Uint32Array(n),n=function(t,e,n,r,o){const a=t.length/3;let i=0;for(let u=0;u<a;u++){let a=!0;for(let t=0;t<r.length&&a;t++){const{filterJSON:e}=r[t],n=o[t].values[u];switch(e.type){case"pointCloudValueFilter":{const t="exclude"===e.mode;e.values.includes(n)===t&&(a=!1);break}case"pointCloudBitfieldFilter":{const t=y(e.requiredSetBits),r=y(e.requiredClearBits);(n&t)===t&&0===(n&r)||(a=!1);break}case"pointCloudReturnFilter":{const t=15&n,r=n>>>4&15,o=r>1,i=1===t,u=t===r;let l=!1;for(const t of e.includedReturns)if("last"===t&&u||"firstOfMany"===t&&i&&o||"lastOfMany"===t&&u&&o||"single"===t&&!o){l=!0;break}l||(a=!1);break}}}a&&(n[i]=u,t[3*i]=t[3*u],t[3*i+1]=t[3*u+1],t[3*i+2]=t[3*u+2],e[3*i]=e[3*u],e[3*i+1]=e[3*u+1],e[3*i+2]=e[3*u+2],i++)}return i}(e,l,o,t.filterInfo,i)}for(const r of t.userAttributesData){const t=g(r,e,n);a.push({attributeInfo:r.attributeInfo,values:t})}3*n<l.length&&(l=new Uint8Array(l.buffer.slice(0,3*n))),function(t,e,n){if(0!==n)for(let r=0;r<e;r++)t[3*r+2]+=n}(e,n,t.elevationOffset);const c=v(e,n,M.ab.fromData(t.obbData),s.A.fromJSON(t.inSR),s.A.fromJSON(t.outSR));return{obbData:t.obbData,points:c,rgb:l,attributes:a,pointIdFilterMap:o}}}function v(t,e,n,r,o){if(!(0,c.projectBuffer)(t,r,0,t,o,0,e))throw new Error("Can't reproject");const i=(0,l.o8)(n.center),s=(0,l.vt)(),f=(0,l.vt)(),d=(0,l.o8)(n.halfSize);(0,a.Xr)(A,n.quaternion);const h=new Float32Array(3*e);for(let n=0;n<e;n++){let e=3*n;s[0]=t[e]-i[0],s[1]=t[e+1]-i[1],s[2]=t[e+2]-i[2],(0,u.v)(f,s,A),d[0]=Math.max(d[0],Math.abs(f[0])),d[1]=Math.max(d[1],Math.abs(f[1])),d[2]=Math.max(d[2],Math.abs(f[2])),h[e++]=s[0],h[e++]=s[1],h[e]=s[2]}return n.halfSize=d,h}const A=(0,i.vt)();function I(){return new w}},37203:(t,e,n)=>{n.d(e,{Ax:()=>m,Me:()=>s,mb:()=>b});var r=n(49186);const o=!0,a={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function i(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+a.identifierOffset,a.identifierLength)),version:e.getUint16(n+a.versionOffset,o),checksum:e.getUint32(n+a.checksumOffset,o)}}const u={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function l(t,e){return{sizeLo:t.getUint32(e+u.sizeLo,o),sizeHi:t.getUint32(e+u.sizeHi,o),minX:t.getFloat64(e+u.minX,o),minY:t.getFloat64(e+u.minY,o),minZ:t.getFloat64(e+u.minZ,o),maxX:t.getFloat64(e+u.maxX,o),maxY:t.getFloat64(e+u.maxY,o),maxZ:t.getFloat64(e+u.maxZ,o),errorX:t.getFloat64(e+u.errorX,o),errorY:t.getFloat64(e+u.errorY,o),errorZ:t.getFloat64(e+u.errorZ,o),count:t.getUint32(e+u.count,o),reserved:t.getUint32(e+u.reserved,o)}}function s(t){const e=new DataView(t,0);let n=0;const{identifier:o,version:s}=i(t,e,n);if(n+=a.byteCount,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(s>1)throw new r.A("lepcc-decode-error","Unknown version");const f=l(e,n);if(n+=u.byteCount,f.sizeHi*2**32+f.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const d=new Float64Array(3*f.count),h=[],b=[],p=[],g=[];if(n=c(t,n,h),n=c(t,n,b),n=c(t,n,p),n=c(t,n,g),n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad length");let m=0,y=0;for(let t=0;t<h.length;t++){y+=h[t];let e=0;for(let n=0;n<b[t];n++){e+=p[m];const t=g[m];d[3*m]=Math.min(f.maxX,f.minX+2*f.errorX*e),d[3*m+1]=Math.min(f.maxY,f.minY+2*f.errorY*y),d[3*m+2]=Math.min(f.maxZ,f.minZ+2*f.errorZ*t),m++}}return{errorX:f.errorX,errorY:f.errorY,errorZ:f.errorZ,result:d}}function c(t,e,n){const r=[];e=f(t,e,r);const o=[];for(let a=0;a<r.length;a++){o.length=0,e=f(t,e,o);for(let t=0;t<o.length;t++)n.push(o[t]+r[a])}return e}function f(t,e,n){const a=new DataView(t,e),i=a.getUint8(0),u=31&i,l=!!(32&i),s=(192&i)>>6;let c=0;if(0===s)c=a.getUint32(1,o),e+=5;else if(1===s)c=a.getUint16(1,o),e+=3;else{if(2!==s)throw new r.A("lepcc-decode-error","Bad count type");c=a.getUint8(1),e+=2}if(l)throw new r.A("lepcc-decode-error","LUT not implemented");const f=Math.ceil(c*u/8),d=new Uint8Array(t,e,f);let h=0,b=0,p=0;const g=-1>>>32-u;for(let t=0;t<c;t++){for(;b<u;)h|=d[p]<<b,b+=8,p+=1;n[t]=h&g,h>>>=u,b-=u,b+u>32&&(h|=d[p-1]>>8-b)}return e+p}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function h(t,e){return{sizeLo:t.getUint32(e+d.sizeLo,o),sizeHi:t.getUint32(e+d.sizeHi,o),count:t.getUint32(e+d.count,o),colorMapCount:t.getUint16(e+d.colorMapCount,o),lookupMethod:t.getUint8(e+d.lookupMethod),compressionMethod:t.getUint8(e+d.compressionMethod)}}function b(t){const e=new DataView(t,0);let n=0;const{identifier:o,version:u}=i(t,e,n);if(n+=a.byteCount,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const l=h(e,n);if(n+=d.byteCount,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===l.lookupMethod||1===l.lookupMethod)&&0===l.compressionMethod){if(3*l.colorMapCount+l.count+n!==t.byteLength||l.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const e=new Uint8Array(t,n,3*l.colorMapCount),o=new Uint8Array(t,n+3*l.colorMapCount,l.count),a=new Uint8Array(3*l.count);for(let t=0;t<l.count;t++){const n=o[t];a[3*t]=e[3*n],a[3*t+1]=e[3*n+1],a[3*t+2]=e[3*n+2]}return a}if(0===l.lookupMethod&&0===l.compressionMethod){if(3*l.count+n!==t.byteLength||0!==l.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(l.lookupMethod<=2&&1===l.compressionMethod){if(n+3!==t.byteLength||1!==l.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=e.getUint8(n),a=e.getUint8(n+1),i=e.getUint8(n+2),u=new Uint8Array(3*l.count);for(let t=0;t<l.count;t++)u[3*t]=o,u[3*t+1]=a,u[3*t+2]=i;return u}throw new r.A("lepcc-decode-error","Bad method "+l.lookupMethod+","+l.compressionMethod)}const p={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function g(t,e){return{sizeLo:t.getUint32(e+p.sizeLo,o),sizeHi:t.getUint32(e+p.sizeHi,o),count:t.getUint32(e+p.count,o),scaleFactor:t.getUint16(e+p.scaleFactor,o),bitsPerPoint:t.getUint8(e+p.bitsPerPoint),reserved:t.getUint8(e+p.reserved)}}function m(t){const e=new DataView(t,0);let n=0;const{identifier:o,version:u}=i(t,e,n);if(n+=a.byteCount,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const l=g(e,n);if(n+=p.byteCount,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const s=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const e=new Uint8Array(t,n,l.count);for(let t=0;t<l.count;t++)s[t]=e[t]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const e=new Uint16Array(t,n,l.count);for(let t=0;t<l.count;t++)s[t]=e[t]*l.scaleFactor}else{const e=[];if(f(t,n,e)!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let t=0;t<l.count;t++)s[t]=e[t]*l.scaleFactor}return s}},37539:(t,e,n)=>{n.d(e,{pO:()=>p,jd:()=>d,Tp:()=>h,w5:()=>f});var r=n(34727),o=n(83047),a=n(73941),i=n(79258);Math.PI;const u=i.$O.radius,l=i.$O.eccentricitySquared,s={a1:u*l,a2:u*l*u*l,a3:u*l*l/2,a4:u*l*u*l*2.5,a5:u*l+u*l*l/2,a6:1-l};i.$O.radius,i.$O.flattening,i.Sw.radius,i.Sw.flattening,i.sH.radius,i.sH.flattening,i.sH.radius;var c=n(21325);const f={2:{5:p,7:null,9:null,10:p,1:I,6:null,8:null,0:null,3:m,11:y,2:p,4:S},5:{5:p,7:null,9:null,10:p,1:I,6:null,8:null,0:null,3:m,11:y,2:p,4:S},7:{5:null,7:p,9:null,10:p,1:null,6:A,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(t,e,n,r){const o=t[e]/F,a=P-2*Math.atan(Math.exp(-t[e+1]/F)),i=F+t[e+2],u=Math.cos(a)*i;n[r]=Math.cos(o)*u,n[r+1]=Math.sin(o)*u,n[r+2]=Math.sin(a)*i},6:null,8:null,0:null,3:p,11:function(t,e,n,r){g(t,e,n,r),y(n,r,n,r)},2:g,4:function(t,e,n,r){g(t,e,n,r),S(n,r,n,r)}},4:{5:_,7:null,9:null,10:_,1:function(t,e,n,r){_(t,e,n,r),I(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){_(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){_(t,e,n,r),y(n,r,n,r)},2:_,4:p},1:{5:k,7:null,9:null,10:k,1:p,6:null,8:null,0:null,3:function(t,e,n,r){k(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){k(t,e,n,r),y(n,r,n,r)},2:k,4:function(t,e,n,r){k(t,e,n,r),S(n,r,n,r)}},6:{5:null,7:O,9:null,10:O,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:C,10:C,1:null,6:null,8:p,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:I,6:A,8:v,0:null,3:m,11:y,2:p,4:S},11:{5:M,7:null,9:null,10:M,1:function(t,e,n,r){M(t,e,n,r),I(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){M(t,e,n,r),m(n,r,n,r)},11:p,2:M,4:function(t,e,n,r){M(t,e,n,r),S(n,r,n,r)}}};function d(t,e){return h(t,e)?.projector}function h(t,e){if(null==t||null==e)return null;if(T.source.spatialReference===t&&T.dest.spatialReference===e)return T;const n=b(t,T.source),r=b(e,T.dest);return 0===n&&0===r?(0,c.aI)(t,e)?T.projector=p:T.projector=null:T.projector=f[n][r],T}function b(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,o.GA)(t,1)),(0,a.jA)(t)?e.spatialReferenceId=1:(0,c.oT)(t)?e.spatialReferenceId=2:(0,c.K8)(t)?e.spatialReferenceId=3:(0,c.r1)(t)?e.spatialReferenceId=11:t.wkt===a.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===a.FY.wkt?e.spatialReferenceId=6:t.wkt===a.LJ.wkt?e.spatialReferenceId=8:(0,c.q8)(t)?e.spatialReferenceId=7:(0,c.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function p(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e])}function g(t,e,n,r){n[r]=z*(t[e]/F),n[r+1]=z*(P-2*Math.atan(Math.exp(-t[e+1]/F))),n[r+2]=t[e+2]}function m(t,e,n,o){!function(t,e,n,o,a){const i=.4999999*Math.PI,u=(0,r.qE)(x*t[e+1],-i,i),l=Math.sin(u);n[o++]=x*t[e]*a.radius,n[o++]=a.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=t[e+2]}(t,e,n,o,i.$O)}function y(t,e,n,r){n[r]=t[e]*E,n[r+1]=t[e+1]*E,n[r+2]=t[e+2]}function M(t,e,n,r){n[r]=t[e]*j,n[r+1]=t[e+1]*j,n[r+2]=t[e+2]}function w(t,e,n,r,o){const a=o+t[e+2],i=x*t[e+1],u=x*t[e],l=Math.cos(i)*a;n[r]=Math.cos(u)*l,n[r+1]=Math.sin(u)*l,n[r+2]=Math.sin(i)*a}function v(t,e,n,r){w(t,e,n,r,i.Sw.radius)}function A(t,e,n,r){w(t,e,n,r,i.sH.radius)}function I(t,e,n,r){w(t,e,n,r,i.$O.radius)}function U(t,e,n,o,a){const i=t[e],u=t[e+1],l=t[e+2],s=Math.sqrt(i*i+u*u+l*l),c=(0,r.YN)(l/(0===s?1:s)),f=Math.atan2(u,i);n[o++]=z*f,n[o++]=z*c,n[o]=s-a}function C(t,e,n,r){U(t,e,n,r,i.Sw.radius)}function O(t,e,n,r){U(t,e,n,r,i.sH.radius)}function k(t,e,n,r){U(t,e,n,r,i.$O.radius)}function S(t,e,n,r){!function(t,e,n,r,o){const a=x*t[e],i=x*t[e+1],u=t[e+2],l=Math.sin(i),s=Math.cos(i),c=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(c+u)*s*Math.cos(a),n[r++]=(c+u)*s*Math.sin(a),n[r++]=(c*(1-o.eccentricitySquared)+u)*l}(t,e,n,r,i.$O)}function _(t,e,n,r){const o=s,a=t[e],u=t[e+1],l=t[e+2];let c,f,d,h,b,p,g,m,y,M,w,v,A,I,U,C,O,k,S,_,T;c=Math.abs(l),f=a*a+u*u,d=Math.sqrt(f),h=f+l*l,b=Math.sqrt(h),_=Math.atan2(u,a),p=l*l/h,g=f/h,I=o.a2/b,U=o.a3-o.a4/b,g>.3?(m=c/b*(1+g*(o.a1+I+p*U)/b),S=Math.asin(m),M=m*m,y=Math.sqrt(1-M)):(y=d/b*(1-p*(o.a5-I-g*U)/b),S=Math.acos(y),M=1-y*y,m=Math.sqrt(M)),w=1-i.$O.eccentricitySquared*M,v=i.$O.radius/Math.sqrt(w),A=o.a6*v,I=d-v*y,U=c-A*m,O=y*I+m*U,C=y*U-m*I,k=C/(A/w+O),S+=k,T=O+C*k/2,l<0&&(S=-S),n[r++]=z*_,n[r++]=z*S,n[r]=T}const T={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},x=(0,r.kU)(1),z=(0,r.KJ)(1),P=.5*Math.PI,F=i.$O.radius,E=F*Math.PI/180,j=180/(F*Math.PI)},38954:(t,e,n)=>{n.d(e,{A:()=>b,B:()=>h,C:()=>c,D:()=>f,E:()=>P,F:()=>q,H:()=>R,a:()=>F,b:()=>m,c:()=>i,d:()=>s,e:()=>U,f:()=>l,g:()=>g,h:()=>C,i:()=>u,j:()=>y,k:()=>w,l:()=>a,m:()=>O,n:()=>I,o:()=>S,q:()=>z,r:()=>A,s:()=>M,t:()=>k,u:()=>v,v:()=>_,w:()=>d,x:()=>D,y:()=>N,z:()=>p});var r=n(51850),o=n(34304);function a(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function h(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function b(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function m(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function y(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function w(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function I(t,e){const n=e[0],r=e[1],o=e[2];let a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function U(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){const r=e[0],o=e[1],a=e[2],i=n[0],u=n[1],l=n[2];return t[0]=o*l-a*u,t[1]=a*i-r*l,t[2]=r*u-o*i,t}function O(t,e,n,r){const o=e[0],a=e[1],i=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=i+r*(n[2]-i),t}function k(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function S(t,e,n){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function _(t,e,n){const r=n[0],o=n[1],a=n[2],i=n[3],u=e[0],l=e[1],s=e[2],c=o*s-a*l,f=a*u-r*s,d=r*l-o*u,h=o*d-a*f,b=a*c-r*d,p=r*f-o*c,g=2*i;return t[0]=u+c*g+2*h,t[1]=l+f*g+2*b,t[2]=s+d*g+2*p,t}const T=(0,r.vt)(),x=(0,r.vt)();function z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function P(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2];let i=r*r+o*o+a*a;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=o*i,t[2]=a*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const F=s,E=c,j=f,q=y,D=M,R=a,N=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(t,e){I(T,t),I(x,e);const n=U(T,x);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,a){const i=1-a,u=i*i,l=a*a,s=u*i,c=3*a*u,f=3*l*i,d=l*a;return t[0]=e[0]*s+n[0]*c+r[0]*f+o[0]*d,t[1]=e[1]*s+n[1]*c+r[1]*f+o[1]*d,t[2]=e[2]*s+n[2]*c+r[2]*f+o[2]*d,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:i,cross:C,crossAndNormalize:function(t,e,n){const r=e[0],o=e[1],a=e[2],i=n[0],u=n[1],l=n[2],s=o*l-a*u,c=a*i-r*l,f=r*u-o*i,d=Math.sqrt(s*s+c*c+f*f);return t[0]=s/d,t[1]=c/d,t[2]=f/d,t},direction:P,dist:q,distance:y,div:j,divide:f,dot:U,equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],i=e[0],u=e[1],l=e[2],s=(0,o.FD)();return Math.abs(n-i)<=s*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-u)<=s*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(a-l)<=s*Math.max(1,Math.abs(a),Math.abs(l))},exactEquals:z,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,a){const i=a*a,u=i*(2*a-3)+1,l=i*(a-2)+a,s=i*(a-1),c=i*(3-2*a);return t[0]=e[0]*u+n[0]*l+r[0]*s+o[0]*c,t[1]=e[1]*u+n[1]*l+r[1]*s+o[1]*c,t[2]=e[2]*u+n[2]*l+r[2]*s+o[2]*c,t},inverse:A,len:R,length:a,lerp:O,max:p,min:b,mul:E,multiply:c,negate:v,normalize:I,random:function(t,e=1){const n=o.Ov,r=2*n()*Math.PI,a=2*n()-1,i=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=a*e,t},rotateX:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:m,set:u,sign:h,sqrDist:D,sqrLen:N,squaredDistance:M,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:F,subtract:s,transformMat3:S,transformMat4:k,transformQuat:_},Symbol.toStringTag,{value:"Module"}))},40876:(t,e,n)=>{n.d(e,{Eq:()=>h,G1:()=>p,TS:()=>a,Tf:()=>y,V6:()=>o,Vm:()=>b,ay:()=>l,c1:()=>g,c4:()=>i,j5:()=>s,lT:()=>f,oW:()=>c});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){return!!r[t]||!!r[t.toLowerCase()]}function a(t){return r[t]??r[t.toLowerCase()]}function i(t){return[...a(t)]}function u(t,e,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?t+(e-t)*r:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function l(t,e,n,r=1){const o=(t%360+360)%360/360,a=n<=.5?n*(e+1):n+e-n*e,i=2*n-a;return[Math.round(255*u(i,a,o+1/3)),Math.round(255*u(i,a,o)),Math.round(255*u(i,a,o-1/3)),r]}function s(t){const e=t.length>5,n=e?8:4,r=(1<<n)-1,o=e?1:17,a=e?9===t.length:5===t.length;let i=Number("0x"+t.slice(1));if(isNaN(i))return null;const u=[0,0,0,1];let l;return a&&(l=i&r,i>>=n,u[3]=o*l/255),l=i&r,i>>=n,u[2]=o*l,l=i&r,i>>=n,u[1]=o*l,l=i&r,i>>=n,u[0]=o*l,u}function c(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),n=parseInt(t.slice(2,3),16),r=parseInt(t.slice(3,4),16),o=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,n+16*n,r+16*r,(o+16*o)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function f(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),n=e[1];if("rgb"===n&&3===t.length||"rgba"===n&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),d(e)}return d(t.map(t=>parseFloat(t)))}if("hsl"===n&&3===t.length||"hsla"===n&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function d(t){return t[0]=g(t[0]),t[1]=g(t[1]),t[2]=g(t[2]),t[3]=4===t.length?p(t[3]):1,t}function h(t){let e=o(t)?a(t):null;return e??=f(t),e??=c(t),e}function b(t){const e=h(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function p(t){return m(t,0,1)}function g(t){return Math.round(m(t,0,255))}function m(t,e,n){return t=Number(t),isNaN(t)?n:t<e?e:t>n?n:t}const y=2.2},44280:(t,e,n)=>{n.d(e,{EJ:()=>l,g7:()=>u,gr:()=>i});var r=n(34727),o=n(38954),a=n(51850);function i(t,e){return(0,o.e)(t,e)/(0,o.l)(t)}function u(t,e){const n=(0,o.e)(t,e)/((0,o.l)(t)*(0,o.l)(e));return-(0,r.XM)(n)}function l(t,e,n){(0,o.n)(s,t),(0,o.n)(c,e);const a=(0,o.e)(s,c),i=(0,r.XM)(a),u=(0,o.h)(s,s,c);return(0,o.e)(u,n)<0?2*Math.PI-i:i}const s=(0,a.vt)(),c=(0,a.vt)()},48163:(t,e,n)=>{function r(){return[0,0]}function o(t){return[t[0],t[1]]}function a(t,e){return[t,e]}function i(){return a(1,1)}function u(){return a(1,0)}function l(){return a(0,1)}n.d(e,{Un:()=>s,fA:()=>a,o8:()=>o,vt:()=>r});const s=i(),c=u(),f=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:s,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:o,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:a,ones:i,unitX:u,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850:(t,e,n)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function i(t,e,n){return[t,e,n]}function u(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return a(1,1,1)}function s(){return a(1,0,0)}function c(){return a(0,1,0)}function f(){return a(0,0,1)}n.d(e,{CN:()=>i,Cb:()=>g,Cw:()=>b,JP:()=>p,Un:()=>h,ci:()=>u,fA:()=>a,o8:()=>o,uY:()=>d,vt:()=>r});const d=[0,0,0],h=l(),b=s(),p=c(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:b,UNIT_Y:p,UNIT_Z:g,ZEROS:d,clone:o,create:r,freeze:i,fromArray:u,fromValues:a,ones:l,unitX:s,unitY:c,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},59418:(t,e,n)=>{n.d(e,{wH:()=>p,MA:()=>d,E5:()=>h,m0:()=>m});var r=n(49186),o=n(4718),a=n(53966),i=n(34275),u=n(37203);const l=()=>a.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function s(t,e,n){let o="",a=0;for(;a<n;){const i=t[e+a];if(i<128)o+=String.fromCharCode(i),a++;else if(i>=192&&i<224){if(a+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const u=(31&i)<<6|63&t[e+a+1];o+=String.fromCharCode(u),a+=2}else if(i>=224&&i<240){if(a+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const u=(15&i)<<12|(63&t[e+a+1])<<6|63&t[e+a+2];o+=String.fromCharCode(u),a+=3}else{if(!(i>=240&&i<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const u=(7&i)<<18|(63&t[e+a+1])<<12|(63&t[e+a+2])<<6|63&t[e+a+3];if(u>=65536){const t=55296+(u-65536>>10),e=56320+(1023&u);o+=String.fromCharCode(t,e)}else o+=String.fromCharCode(u);a+=4}}}return o}function c(t,e){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<e.length;o++){const a=e[o],i=a.valueType||a.type,u=M[i];n.fields[a.property]=u(t,r),r+=y[i].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){const o=[];let a,i,u=0;for(i=0;i<t;i+=1){if(a=e[i],a>0){if(o.push(s(n,u,a-1)),0!==n[u+a-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);u+=a}return o}function d(t,e){return new(0,y[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function h(t,e){if(!t)return null;const n=t[e];return(0,i.IY)(t)?n===i.PI?null:n:(0,i._G)(t)?n===i.h2?null:n:n!=n?null:n}function b(t,e,n){if(e!==t&&l().error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function p(t,e){const n=c(t,e&&e.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},a=n.fields,i=null!=a.vertexCount?a.vertexCount:a.count;for(const t of e.ordering){if(!e.vertexAttributes[t])continue;const n={...e.vertexAttributes[t],byteOffset:r,count:i},a=g[t]||"_"+t;o.vertexAttributes[a]=n,r+=v(n.valueType)*n.valuesPerElement*i}const u=a.faceCount;if(e.faces&&u){o.faces={};for(const t of e.ordering){if(!e.faces[t])continue;const n={...e.faces[t],byteOffset:r,count:u};o.faces[t]=n,r+=v(n.valueType)*n.valuesPerElement*u}}const l=a.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&l){o.featureAttributes={};for(const t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;const n={...e.featureAttributes[t],byteOffset:r,count:l};o.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:v(n.valueType))*n.valuesPerElement*l}}return b(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const g={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function m(t,e,n,a=!1){if("lepcc-rgb"===t.encoding)return a?(0,u.mb)(e):function(t){return Array.isArray(t)?t.length<i.y9?t:new Uint8Array(t):t.length<i.y9?Array.from(t):t}((0,u.mb)(e));if("lepcc-intensity"===t.encoding)return a?(0,u.Ax)(e):function(t){return Array.isArray(t)?t.length<i.y9?t:new Uint16Array(t):t.length<i.y9?Array.from(t):t}((0,u.Ax)(e));if(null!=t.encoding&&""!==t.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const s=function(t,e,n){const a=null!=e.header?c(t,e.header):{byteOffset:0,byteCount:0,fields:{count:n}},i={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)};let u=a.byteCount;for(let t=0;t<e.ordering.length;t++){const n=e.ordering[t],l=(0,o.o8)(e[n]);if(l.count=a.fields.count??0,"String"===l.valueType){if(l.byteOffset=u,l.byteCount=a.fields[n+"ByteCount"],"UTF-8"!==l.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!w(l.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{const t=v(l.valueType);u+=u%t!==0?t-u%t:0,l.byteOffset=u,l.byteCount=t*l.valuesPerElement*l.count}}u+=l.byteCount??0,i.entries[n]=l}return i.byteCount=u-i.byteOffset,i}(e,t,n);b(s.byteOffset+s.byteCount,e.byteLength,"attribute");const p=s.entries.attributeValues||s.entries.objectIds;if(p){if("String"===p.valueType){const t=s.entries.attributeByteCounts,n=d(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,p);return p.timeEncoding?function(t,e,n){return f(t,e,n).map(t=>{const e=t?Date.parse(t):null;return null==e||Number.isNaN(e)?null:e})}(t.count,n,r):f(t.count,n,r)}return a?d(e,p):function(t,e){const n=d(t,e);if(n.length>=i.y9)return n;const r=new Array;return n.forEach((t,e)=>r.push(h(n,e))),r}(e,p)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},M={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function w(t){return y.hasOwnProperty(t)}function v(t){return w(t)?y[t].BYTES_PER_ELEMENT:0}},72385:(t,e,n)=>{function r(){return new Float32Array(3)}function o(t){const e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t,e,n){const r=new Float32Array(3);return r[0]=t,r[1]=e,r[2]=n,r}function i(){return r()}function u(){return a(1,1,1)}function l(){return a(1,0,0)}function s(){return a(0,1,0)}function c(){return a(0,0,1)}n.d(e,{fA:()=>a,o8:()=>o,vt:()=>r});const f=i(),d=u(),h=l(),b=s(),p=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:h,UNIT_Y:b,UNIT_Z:p,ZEROS:f,clone:o,create:r,fromValues:a,ones:u,unitX:l,unitY:s,unitZ:c,zeros:i},Symbol.toStringTag,{value:"Module"}))},77690:(t,e,n)=>{n.d(e,{B8:()=>u,Ge:()=>d,I0:()=>f,KC:()=>l,hZ:()=>a,hs:()=>c,lw:()=>s,mg:()=>i,z0:()=>o});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function a(t,e,n,r,o,a,i,u,l,s){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=i,t[6]=u,t[7]=l,t[8]=s,t}function i(t,e){if(t===e){const n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function u(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],i=e[4],u=e[5],l=e[6],s=e[7],c=e[8],f=c*i-u*s,d=-c*a+u*l,h=s*a-i*l;let b=n*f+r*d+o*h;return b?(b=1/b,t[0]=f*b,t[1]=(-c*r+o*s)*b,t[2]=(u*r-o*i)*b,t[3]=d*b,t[4]=(c*n-o*l)*b,t[5]=(-u*n+o*a)*b,t[6]=h*b,t[7]=(-s*n+r*l)*b,t[8]=(i*n-r*a)*b,t):null}function l(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],i=e[4],u=e[5],l=e[6],s=e[7],c=e[8];return t[0]=i*c-u*s,t[1]=o*s-r*c,t[2]=r*u-o*i,t[3]=u*l-a*c,t[4]=n*c-o*l,t[5]=o*a-n*u,t[6]=a*s-i*l,t[7]=r*l-n*s,t[8]=n*i-r*a,t}function s(t,e,n){const r=e[0],o=e[1],a=e[2],i=e[3],u=e[4],l=e[5],s=e[6],c=e[7],f=e[8],d=n[0],h=n[1],b=n[2],p=n[3],g=n[4],m=n[5],y=n[6],M=n[7],w=n[8];return t[0]=d*r+h*i+b*s,t[1]=d*o+h*u+b*c,t[2]=d*a+h*l+b*f,t[3]=p*r+g*i+m*s,t[4]=p*o+g*u+m*c,t[5]=p*a+g*l+m*f,t[6]=y*r+M*i+w*s,t[7]=y*o+M*u+w*c,t[8]=y*a+M*l+w*f,t}function c(t,e,n){const r=n[0],o=n[1],a=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=a*e[6],t[7]=a*e[7],t[8]=a*e[8],t}function f(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],i=n+n,u=r+r,l=o+o,s=n*i,c=r*i,f=r*u,d=o*i,h=o*u,b=o*l,p=a*i,g=a*u,m=a*l;return t[0]=1-f-b,t[3]=c-m,t[6]=d+g,t[1]=c+m,t[4]=1-s-b,t[7]=h-p,t[2]=d-g,t[5]=h+p,t[8]=1-s-f,t}function d(t,e){const n=e[0],r=e[1],o=e[2],a=e[3],i=e[4],u=e[5],l=e[6],s=e[7],c=e[8],f=e[9],d=e[10],h=e[11],b=e[12],p=e[13],g=e[14],m=e[15],y=n*u-r*i,M=n*l-o*i,w=n*s-a*i,v=r*l-o*u,A=r*s-a*u,I=o*s-a*l,U=c*p-f*b,C=c*g-d*b,O=c*m-h*b,k=f*g-d*p,S=f*m-h*p,_=d*m-h*g;let T=y*_-M*S+w*k+v*O-A*C+I*U;return T?(T=1/T,t[0]=(u*_-l*S+s*k)*T,t[1]=(l*O-i*_-s*C)*T,t[2]=(i*S-u*O+s*U)*T,t[3]=(o*S-r*_-a*k)*T,t[4]=(n*_-o*O+a*C)*T,t[5]=(r*O-n*S-a*U)*T,t[6]=(p*I-g*A+m*v)*T,t[7]=(g*w-b*I-m*M)*T,t[8]=(b*A-p*w+m*y)*T,t):null}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const b=s,p=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],i=t[5],u=t[6],l=t[7],s=t[8];return e*(s*a-i*l)+n*(-s*o+i*u)+r*(l*o-a*u)},equals:function(t,e){const n=t[0],o=t[1],a=t[2],i=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8],d=e[0],h=e[1],b=e[2],p=e[3],g=e[4],m=e[5],y=e[6],M=e[7],w=e[8],v=(0,r.FD)();return Math.abs(n-d)<=v*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(o-h)<=v*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(a-b)<=v*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(i-p)<=v*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(u-g)<=v*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(l-m)<=v*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(s-y)<=v*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(c-M)<=v*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:u,isOrthoNormal:function(t){const e=(0,r.FD)(),n=t[0],o=t[1],a=t[2],i=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8];return Math.abs(1-(n*n+i*i+s*s))<=e&&Math.abs(1-(o*o+u*u+c*c))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e},mul:b,multiply:s,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:d,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],o=e[2],a=e[4],i=e[5],u=e[6],l=e[8],s=e[9],c=e[10],f=c*i-u*s,d=-c*a+u*l,h=s*a-i*l,b=n*f+r*d+o*h;if(!b)return null;const p=1/b;return t[0]=f*p,t[1]=(-c*r+o*s)*p,t[2]=(u*r-o*i)*p,t[3]=d*p,t[4]=(c*n-o*l)*p,t[5]=(-u*n+o*a)*p,t[6]=h*p,t[7]=(-s*n+r*l)*p,t[8]=(i*n-r*a)*p,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],o=e[1],a=e[2],i=e[3],u=e[4],l=e[5],s=e[6],c=e[7],f=e[8],d=Math.sin(n),h=Math.cos(n);return t[0]=h*r+d*i,t[1]=h*o+d*u,t[2]=h*a+d*l,t[3]=h*i-d*r,t[4]=h*u-d*o,t[5]=h*l-d*a,t[6]=s,t[7]=c,t[8]=f,t},scale:c,scaleByVec2:function(t,e,n){const r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:h,translate:function(t,e,n){const r=e[0],o=e[1],a=e[2],i=e[3],u=e[4],l=e[5],s=e[6],c=e[7],f=e[8],d=n[0],h=n[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=i,t[4]=u,t[5]=l,t[6]=d*r+h*i+s,t[7]=d*o+h*u+c,t[8]=d*a+h*l+f,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},82534:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>o,vt:()=>r,zK:()=>a});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},93223:(t,e,n)=>{n.d(e,{e:()=>a});var r=n(66552),o=n(10107);function a(t,e={}){const n=t instanceof r.J?t:new r.J(t,e),{alwaysWriteDefaults:a,default:i,ignoreUnknown:u=!0,name:l,nonNullable:s,readOnly:c=!1}=e;return(0,o.MZ)({type:u?n.apiValues:String,json:{type:n.jsonValues,default:i,name:l,read:!c&&{reader:n.read},write:{writer:n.write,alwaysWriteDefaults:a}},nonNullable:s,readOnly:c})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7136,8110],{4197:(e,t,i)=>{i.d(t,{Vj:()=>u,cj:()=>a,jh:()=>o,l5:()=>l,xm:()=>s});var r=i(34275),n=i(9093);function o(e,t=!1){return e<=r.y9?t?new Array(e).fill(0):new Array(e):new Float64Array(e)}function s(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function l(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function a(e){return[...e]}function u(e){const t=(0,n.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},9093:(e,t,i)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>n,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:n,create:r,fromValues:function(e,t,i,r,n,o,s,l,a,u,p,y,c,f,d,m){return[e,t,i,r,n,o,s,l,a,u,p,y,c,f,d,m]}},Symbol.toStringTag,{value:"Module"}))},17136:(e,t,i)=>{i.d(t,{O7:()=>v,el:()=>w});var r=i(92602),n=i(49186),o=i(53966),s=i(39829),l=i(82799),a=i(80754),u=i(21325),p=i(28735),y=i(78888),c=i(65864),f=i(2272),d=i(84952),m=i(92300);const h=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function M(e,t,i){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof s.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw h().error(e),new n.A("internal:geometry",e)}const i=(0,a.r8)(e),r=[];for(const e of i){const i=[];r.push(i),i.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const n=e[r][0],o=e[r][1],s=e[r+1][0],l=e[r+1][1],a=Math.sqrt((s-n)*(s-n)+(l-o)*(l-o)),u=(l-o)/a,p=(s-n)/a,y=a/t;if(y>1){for(let e=1;e<=y-1;e++){const r=e*t,s=p*r+n,l=u*r+o;i.push([s,l])}const e=(a+Math.floor(y-1)*t)/2,r=p*e+n,s=u*e+o;i.push([r,s])}i.push([s,l])}}return function(e){return"polygon"===e.type}(e)?new s.A({rings:r,spatialReference:e.spatialReference}):new l.A({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,p.ci)(t,!0)}return i&&(e=(0,a.kS)(e,i)),e}function T(e,t,i){if(Array.isArray(e)){const r=e[0];if(r>t){const i=(0,a.kd)(r,t);e[0]=r+i*(-2*t)}else if(r<i){const t=(0,a.kd)(r,i);e[0]=r+t*(-2*i)}}else{const r=e.x;if(r>t){const i=(0,a.kd)(r,t);e=e.clone().offset(i*(-2*t),0)}else if(r<i){const t=(0,a.kd)(r,i);e=e.clone().offset(t*(-2*i),0)}}return e}function x(e,t){let i=-1;for(let r=0;r<t.cutIndexes.length;r++){const n=t.cutIndexes[r],o=t.geometries[r],s=(0,a.r8)(o);for(let e=0;e<s.length;e++){const t=s[e];t.some(i=>{if(i[0]<180)return!0;{let i=0;for(let e=0;e<t.length;e++){const r=t[e][0];i=r>i?r:i}i=Number(i.toFixed(9));const r=-360*(0,a.kd)(i,180);for(let i=0;i<t.length;i++){const t=o.getPoint(e,i);o.setPoint(e,i,t.clone().offset(r,0))}return!0}})}if(n===i){if(g(e))for(const t of(0,a.r8)(o))e[n]=e[n].addRing(t);else if(b(e))for(const t of(0,a.r8)(o))e[n]=e[n].addPath(t)}else i=n,e[n]=o}return e}async function w(e,t,i){if(!Array.isArray(e))return w([e],t);t&&"string"!=typeof t&&h().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??r.A.geometryServiceUrl;let o,g,b,v,S,C,F,O,N=0;const _=[],A=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,g=(0,u.Vp)(o),b=o.isWebMercator,C=b?102100:4326,v=a.j7[C].maxX,S=a.j7[C].minX,F=a.j7[C].plus180Line,O=a.j7[C].minus180Line),g)if("mesh"===t.type)A.push(t);else if("point"===t.type)A.push(T(t.clone(),v,S));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>T(e,v,S)),A.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);A.push(e.rings?new s.A(e):e)}else if(t.extent){const e=t.extent,i=(0,a.kd)(e.xmin,S)*(2*v);let r=0===i?t.clone():(0,a.kS)(t.clone(),i);e.offset(i,0);let{xmin:n,xmax:o}=e;n=Number(n.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(F)&&o!==v?(N=o>N?o:N,r=M(r,b),_.push(r),A.push("cut")):e.intersects(O)&&n!==S?(N=o*(2*v)>N?o*(2*v):N,r=M(r,b,360),_.push(r),A.push("cut")):A.push(r)}else A.push(t.clone());else A.push(t);else A.push(t);let I=(0,a.kd)(N,v),Z=-90;const L=I,j=new l.A;for(;I>0;){const e=360*I-180;j.addPath([[e,Z],[e,-1*Z]]),Z*=-1,I--}if(_.length>0&&L>0){const t=x(_,await async function(e,t,i,r){const n=(0,f.Dl)(e),o=t[0].spatialReference,s={...r,responseType:"json",query:{...n.query,f:"json",sr:(0,u.YX)(o),target:JSON.stringify({geometryType:(0,c.$B)(t[0]),geometries:t}),cutter:JSON.stringify(i)}},l=await(0,y.A)(n.path+"/cut",s),{cutIndexes:a,geometries:p=[]}=l.data;return{cutIndexes:a,geometries:p.map(e=>{const t=(0,c.rS)(e);return t.spatialReference=o,t})}}(n,_,j,i)),r=[],o=[];for(let i=0;i<A.length;i++){const n=A[i];if("cut"!==n)o.push(n);else{const n=t.shift(),s=e[i];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&n.rings.length>=s.rings.length?(r.push(n),o.push("simplify")):o.push(b?(0,p.Gh)(n):n)}}if(!r.length)return o;const s=await async function(e,t,i){const r="string"==typeof e?(0,d.An)(e):e,n=t[0].spatialReference,o=(0,c.$B)(t[0]),s={...i,query:{...r.query,f:"json",sr:(0,u.YX)(n),geometries:JSON.stringify((0,m.X)(t))}},{data:l}=await(0,y.A)(r.path+"/simplify",s);return(0,m.V)(l.geometries,o,n)}(n,r,i),l=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?l.push(t):l.push(b?(0,p.Gh)(s.shift()):s.shift())}return l}const R=[];for(let e=0;e<A.length;e++){const t=A[e];if("cut"!==t)R.push(t);else{const e=_.shift();R.push(!0===b?(0,p.Gh)(e):e)}}return R}function v(e,t,i){const r=(0,u.Vp)(i);if(null==r)return e;const[n,o]=r.valid,s=2*o;let l=0,a=0;t>o?l=Math.ceil(Math.abs(t-o)/s):t<n&&(l=-Math.ceil(Math.abs(t-n)/s)),e>o?a=Math.ceil(Math.abs(e-o)/s):e<n&&(a=-Math.ceil(Math.abs(e-n)/s));let p=e+(l-a)*s;const y=p-t;return y>o?p-=s:y<n&&(p+=s),p}},17311:(e,t,i)=>{i.d(t,{A:()=>c});var r=i(31635),n=i(65008),o=i(4576),s=i(60999),l=i(7762),a=i(10107),u=(i(44208),i(53966),i(40608)),p=i(30524),y=i(43668);let c=class extends n.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,s.UT)(()=>(0,y.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??i.e(9926).then(i.bind(i,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const i=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(i.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:i,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(i,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const i=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of i){const i=t.split("."),r=this.fieldsIndex.get(i.at(-1)??"");r&&e.add(r.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const i of t){const t=this.fieldsIndex.get(i);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,i){const r=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],i)).get(r)??""}async getTitles(e,t,i){const r=new Map,n=i?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);i?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:s,workingTitle:l}=this,a=l&&s;t.forEach(t=>{const i=t.getObjectId()??t.attributes[e.objectIdField],u=a?o({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:s,globalAttributes:this._createFormattedAttributes(e,t,n).global,layer:e,text:l}):"";r.set(i,u)})}catch{}return r}async _checkAndReQueryGraphics(e,t){const i=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(o.Ru);if(i.length!==t.length)return t;if(t.some(e=>!(0,p.Kl)(e,this.requiredFields))){const r=e.createQuery();r.where="1=1",r.outFields=[...this.requiredFields],r.objectIds=i;const n=await e.queryFeatures(r);if(n?.features.length===t.length)return n.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const i of e){if(!i.fieldName)continue;const e=this.fieldsIndex.get(i.fieldName),r=e?.name??i.fieldName;i.fieldName=r,t.set(r.toLowerCase(),i)}return t}_createFormattedAttributes(e,t,i="system"){const r=this.effectivePopupTemplate?.fieldInfos??[],n={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const i=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{n[`expression/${e.name}`]=e.func({vars:{$feature:i}})}catch{}}const o={...t.attributes,...n};return{global:this._featureUtils.formatAttributes({fieldInfos:r,attributes:o,graphic:t,timeZone:i,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,p.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,r.Cg)([(0,a.MZ)({readOnly:!0})],c.prototype,"_arcadeTask",null),(0,r.Cg)([(0,a.MZ)()],c.prototype,"_featureUtils",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],c.prototype,"featureUtilsPromise",null),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],c.prototype,"calculatedExpressions",null),(0,r.Cg)([(0,a.MZ)()],c.prototype,"displayField",void 0),(0,r.Cg)([(0,a.MZ)()],c.prototype,"effectivePopupTemplate",void 0),(0,r.Cg)([(0,a.MZ)()],c.prototype,"expressionsUsedInTitle",null),(0,r.Cg)([(0,a.MZ)()],c.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,a.MZ)()],c.prototype,"fieldInfoMap",null),(0,r.Cg)([(0,a.MZ)()],c.prototype,"fields",void 0),(0,r.Cg)([(0,a.MZ)()],c.prototype,"objectIdField",void 0),(0,r.Cg)([(0,a.MZ)()],c.prototype,"requiredFields",null),c=(0,r.Cg)([(0,u.$)("esri.layers.support.TitleCreator")],c)},22671:(e,t,i)=>{i.d(t,{A:()=>b});var r,n=i(31635),o=i(52106),s=i(66552),l=i(25482),a=i(4718),u=i(10107),p=(i(44208),i(53966),i(36005)),y=i(40608),c=i(43937),f=i(16930),d=i(65864),m=i(50498),h=i(20437);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=r=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,i,r){if(e)return void g.write(e,t,i,r);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,r=(0,d.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=f.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const r=t.features[i];if(r.geometry){const t=e?.[i];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,i],translate:[r,n]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-r)/t),e=>Math.round((n-e)/i));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[r,n],scale:[o,s]}=i;let l=null,a=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;l=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;a=i=>null==i?i:i*t+e}const u=this._getHydrationFunction(e,e=>e*o+r,e=>n-e*s,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const r=f.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const o=e[t],s=i.fromJSON(o),l=o.geometry?.spatialReference;null==s.geometry||l||(s.geometry.spatialReference=r);const a=o.aggregateGeometries,u=s.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],i=a[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}n.push(s)}return n}_quantizePoints(e,t,i){let r,n;const o=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=i(l[1]);e===r&&s===n||(o.push([e-r,s-n]),r=e,n=s)}else r=t(l[0]),n=i(l[1]),o.push([r,n])}return o.length>0?o:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,d.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,o=r.length;e<o;e++){const o=r[e],s=this._quantizePoints(o,t,i);s&&n.push(s)}return n.length>0?((0,d.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,n){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,d.Bi)(e)?e.rings:e.paths;let s,l;for(let e=0,r=o.length;e<r;e++){const r=o[e];for(let e=0,n=r.length;e<n;e++){const n=r[e];e>0?(s+=n[0],l+=n[1]):(s=n[0],l=n[1]),n[0]=t(s),n[1]=i(l)}}if(r&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2]),i[3]=n(i[3])}}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,l;for(let e=0,r=o.length;e<r;e++){const r=o[e];e>0?(s+=r[0],l+=r[1]):(s=r[0],l=r[1]),r[0]=t(s),r[1]=i(l)}if(r&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2]),t[3]=n(t[3])}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],b.prototype,"features",void 0),(0,n.Cg)([(0,p.w)("features")],b.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[h.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],b.prototype,"geometryType",void 0),(0,n.Cg)([(0,c.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:m.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,p.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:f.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,n.Cg)([(0,c.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=r=(0,n.Cg)([(0,y.$)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},33032:(e,t,i)=>{i.d(t,{H:()=>n,L:()=>r});const r=1;function n(e,t){let i=0;for(const r of t){const t=r.attributes?.[e];"number"==typeof t&&isFinite(t)&&(i=Math.max(i,t))}return i}},33143:(e,t,i)=>{i.d(t,{A:()=>c});var r=i(31635),n=i(69540),o=i(25482),s=i(10107),l=(i(44208),i(53966),i(87811),i(36005)),a=i(40608),u=i(43937),p=i(80451),y=i(29005);let c=class extends((0,n.O)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const i of Object.keys(e))t[i]=(0,p.rS)(e[i]);return t}writeDomains(e,t){const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,r.Cg)([(0,l.w)("domains")],c.prototype,"readDomains",null),(0,r.Cg)([(0,u.K)("domains")],c.prototype,"writeDomains",null),(0,r.Cg)([(0,s.MZ)({type:[y.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,r.Cg)([(0,a.$)("esri.layers.support.FeatureType")],c)},41366:(e,t,i)=>{i.d(t,{K:()=>c,Q:()=>u});var r=i(31635),n=i(66552),o=i(53966),s=i(10107),l=(i(44208),i(87811),i(93223)),a=i(40608);const u=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",y="field",c=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&y||i&&p||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==y&&e!==p||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,l.e)(u,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],i),i}},50498:(e,t,i)=>{i.d(t,{Ye:()=>y,gy:()=>p,yR:()=>c});var r=i(66552),n=i(5443),o=i(91075),s=i(48526),l=i(86738),a=i(39829),u=i(82799);const p=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),y=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),c={base:o.A,key:"type",typeMap:{extent:n.A,multipoint:s.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,i)=>{i.d(t,{A:()=>T});var r,n=i(31635),o=i(13874),s=i(69540),l=i(51447),a=i(25482),u=i(53966),p=i(36708),y=i(24326),c=i(10107),f=(i(44208),i(87811),i(40608)),d=i(12195),m=i(65864),h=i(50498),g=i(54339),b=i(33910);function M(e){if(null==e)return null;const t={};for(const i in e){const r=e[i];r&&(t[i]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let T=class extends((0,s.O)(a.o)){static{r=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new r({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const i of[t,this.sourceLayer,this.layer])if(i&&"object"==typeof i){if("popupTemplate"in i&&i.popupTemplate)return i.popupTemplate;if(e&&"defaultPopupTemplate"in i&&null!=i.defaultPopupTemplate)return i.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=this.sourceLayer??this.layer;return e?(0,g.r)(this,e):null}getGlobalId(){const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){return{aggregateGeometries:M(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,d.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(n.action=r),"attributes"===e&&(n.attributeName=r),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,n.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const r=(0,m.rS)(e[i]);r&&(t[i]=r)}return 0!==Object.keys(t).length?t:null}}})],T.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,c.MZ)({value:null})],T.prototype,"attributes",null),(0,n.Cg)([(0,c.MZ)({value:null,types:h.yR,json:{read:m.rS}})],T.prototype,"geometry",null),(0,n.Cg)([(0,c.MZ)({type:Boolean})],T.prototype,"isAggregate",void 0),(0,n.Cg)([(0,c.MZ)({clonable:!1})],T.prototype,"layer",void 0),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],T.prototype,"origin",void 0),(0,n.Cg)([(0,c.MZ)({type:o.A,value:null})],T.prototype,"popupTemplate",null),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],T.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,c.MZ)({value:null,types:b.Es})],T.prototype,"symbol",null),(0,n.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],T.prototype,"_version",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,value:!0})],T.prototype,"visible",null),T=r=(0,n.Cg)([(0,f.$)("esri.Graphic")],T)},54339:(e,t,i)=>{function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>n})},58501:(e,t,i)=>{i.d(t,{q:()=>n});var r=i(62815);function n(e,t,i){if(!i?.features||!i.hasZ)return;const n=(0,r.N)(i.geometryType,t,e.outSpatialReference);if(null!=n)for(const e of i.features)n(e.geometry)}},70328:(e,t,i)=>{i.d(t,{BI:()=>M,DC:()=>y,Ej:()=>f,Ie:()=>g,Jt:()=>b,Ne:()=>d,RF:()=>p,aI:()=>x,fA:()=>s,gE:()=>a,hZ:()=>h,iT:()=>c,is:()=>T,qv:()=>w,vI:()=>m,vY:()=>l,v_:()=>v,vt:()=>o,w1:()=>u});var r=i(5443),n=(i(19419),i(4197));function o(e=v){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,i,r,n,s,l=o()){return l[0]=e,l[1]=t,l[2]=i,l[3]=r,l[4]=n,l[5]=s,l}function l(e,t=o()){return function(e,t,i,r=o()){return h(r,w),function(e,t,i=0,r=t.length/3){let n=e[0],o=e[1],s=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<r;e++)n=Math.min(n,t[i+3*e]),o=Math.min(o,t[i+3*e+1]),s=Math.min(s,t[i+3*e+2]),l=Math.max(l,t[i+3*e]),a=Math.max(a,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=n,e[1]=o,e[2]=s,e[3]=l,e[4]=a,e[5]=u}(r,e,t,i),r}(e,0,e.length/3,t)}function a(e,t=(0,n.jh)(24)){const[i,r,o,s,l,a]=e;return t[0]=i,t[1]=r,t[2]=o,t[3]=i,t[4]=r,t[5]=a,t[6]=i,t[7]=l,t[8]=o,t[9]=i,t[10]=l,t[11]=a,t[12]=s,t[13]=r,t[14]=o,t[15]=s,t[16]=r,t[17]=a,t[18]=s,t[19]=l,t[20]=o,t[21]=s,t[22]=l,t[23]=a,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new r.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function y(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function d(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function m(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?h(e,w):o(w)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function M(e,t,i,r,n){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function T(e){return 6===e.length}function x(e,t,i){if(null==e||null==t)return e===t;if(!T(e)||!T(t))return!1;if(i){for(let r=0;r<e.length;r++)if(!i(e[r],t[r]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],v=[0,0,0,0,0,0];o()},80754:(e,t,i)=>{i.d(t,{j7:()=>s,kS:()=>a,kd:()=>l,r8:()=>u});var r=i(82799),n=i(16930),o=i(65864);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const i=u(e);for(const e of i)for(const i of e)i[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},92300:(e,t,i)=>{i.d(t,{V:()=>o,X:()=>n});var r=i(65864);function n(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function o(e,t,i){const n=(0,r.xD)(t);return e.map(e=>{const t=n.fromJSON(e);return t.spatialReference=i,t})}},95466:(e,t,i)=>{i.d(t,{A:()=>f});var r=i(49186),n=i(53966),o=i(91869),s=i(3330),l=i(12195),a=i(30524),u=i(98623),p=i(56400),y=i(96285);const c=new Map;class f{static fromJSON(e){return new f(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new f(e.fields??[],g(e))}static fromLayerJSON(e){return new f(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=m(t);if(t&&r){const n=d(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),i.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(d(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):h.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?s.GB.instance:t===u.n$?y.mQ.utcInstance:(0,o.tE)(c,t,()=>y.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function d(e){return e.trim().toLowerCase()}function m(e){return(0,a.rS)(e)?.toLowerCase()??""}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:n}=e,o=(r?"startField"in r?r.startField:r.startTimeField:"")??"",s=(r?"endField"in r?r.endField:r.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,p.ZS)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,p.ZS)(n.dateFieldsTimeReference):l??u.n$:null,y=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.timeReference?(0,p.ZS)(r.timeReference):l:null,c=new Map([[d(n?.creationDateField??""),a],[d(n?.editDateField??""),a],[d(o),y],[d(s),y]]);for(const{name:r,type:n}of e.fields)if(h.has(n))t.set(r,u.L5);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(r,null);else if(i)t.set(r,u.L5);else{const e=c.get(d(r??""))??l;t.set(r,e)}return t}},96299:(e,t,i)=>{i.r(t),i.d(t,{default:()=>U});var r=i(31635),n=i(52106),o=i(7762),s=i(49186),l=i(4718),a=i(92071),u=i(93637),p=i(67076),y=i(10107),c=(i(44208),i(53966),i(36005)),f=i(40608),d=i(43937),m=i(5443),h=i(98988),g=i(16930),b=i(19419),M=i(17136),T=i(21325),x=i(99959);const w=Symbol("isMapNotesGraphicOriginSymbol");var v;class S extends x.A{static{v=w}constructor(e,t){super(),this[v]=!0,this.type="map-notes",this.layer=e,this.sublayer=t}}var C=i(29784),F=i(94194),O=i(4146),N=i(33032),_=i(63074),A=i(16131),I=i(8303),Z=i(25036),L=i(20437),j=i(94985),R=i(31593),J=i(53930),z=i(68249);function G(e){return"markup"===e.featureCollectionType||e.layers.some(e=>null!=e.layerDefinition.visibilityField||!P(e))}function P({layerDefinition:e,featureSet:t}){const i=e.geometryType??t.geometryType;return B.find(t=>i===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type)}function k(){return new m.A({xmin:-180,ymin:-90,xmax:180,ymax:90})}const E=new L.A({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),q=new L.A({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0,length:255}),B=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new j.A).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new R.A).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new J.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new J.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new z.A).toJSON()}];let D=class extends((0,_.dM)((0,Z.j)((0,A.q)((0,I.A)((0,a.P)(O.A)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.listMode="hide-children",this.minScale=0,this.maxScale=0,this.spatialReference=g.A.WGS84,this.sublayers=new o.A(B.map(e=>new $({id:e.id,layerId:e.layerId,title:e.title,layer:this}))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,i){return{operations:{supportsMapNotesEditing:!G(t)&&"portal-item"!==i?.origin}}}readFeatureCollections(e,t,i){if(!G(t))return null;const r=t.layers.map(e=>{const t=new C.default;return t.read(e,i),t});return new o.A({items:r})}readLegacyfeatureCollectionJSON(e,t){return G(t)?(0,l.o8)(t.featureCollection):null}get fullExtent(){const e=this.spatialReference,t=(0,b.Ie)();return null!=this.sublayers?this.sublayers.forEach(({fullBounds:e})=>null!=e?(0,b.fT)(t,e,t):t,t):this.featureCollectionJSON?.layers.some(e=>e.layerDefinition.extent)&&this.featureCollectionJSON.layers.forEach(i=>{const r=(0,h.projectOrLoad)(i.layerDefinition.extent,e).geometry;null!=r&&(0,b.fT)(t,r,t)}),(0,b.aI)(t,b.qv)?(0,h.projectOrLoad)(k(),e).geometry:(0,b.w1)(t,e)}readMinScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?g.A.fromJSON(t.layers[0].layerDefinition.spatialReference):g.A.WGS84}readSublayers(e,t,i){if(G(t))return null;const r=[];let s=t.layers.reduce((e,t)=>Math.max(e,t.layerDefinition.id??-1),-1)+1;for(const e of t.layers){const{layerDefinition:t,featureSet:i}=e,o=t.id??s++,l=P(e);if(null!=l){const e=new $({id:l.id,title:t.name,layerId:o,layer:this,graphics:i.features.map(({geometry:e,symbol:t,attributes:i,popupInfo:r})=>n.A.fromJSON({attributes:i,geometry:e,symbol:t,popupTemplate:r}))});r.push(e)}}return new o.A(r)}writeSublayers(e,t,i,r){const{minScale:n,maxScale:o}=this;if(null==e)return;const l=e.some(e=>e.graphics.length>0);if(!this.capabilities.operations.supportsMapNotesEditing)return void(l&&r?.messages?.push(new s.A("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer")));const a=[];let p=this.spatialReference.toJSON();e:for(const t of e)for(const e of t.graphics)if(null!=e.geometry){p=e.geometry.spatialReference.toJSON();break e}for(const t of B){const i=e.find(e=>t.id===e.id);this._writeMapNoteSublayer(a,i,t,n,o,p,r)}(0,u.sM)("featureCollection.layers",a,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,l.o8)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async beforeSave(){if(null==this.sublayers)return;let e=null;const t=[];for(const i of this.sublayers)for(const r of i.graphics)if(null!=r.geometry){const i=r.geometry;e?(0,T.aI)(i.spatialReference,e)||((0,h.canProjectWithoutEngine)(i.spatialReference,e)||(0,h.isLoaded)()||await(0,h.load)(),r.geometry=(0,h.project)(i,e)):e=i.spatialReference,t.push(r)}const i=await(0,M.el)(t.map(e=>e.geometry));t.forEach((e,t)=>e.geometry=i[t])}_findSublayer(e){return null==this.sublayers?null:this.sublayers?.find(t=>t.id===e)??null}_writeMapNoteSublayer(e,t,i,r,n,o,s){const a=[];if(null!=t){for(const e of t.graphics)this._writeMapNote(a,e,i.geometryType,s);this._normalizeObjectIds(a,E),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,l.o8)(i.identifyingSymbol)}},id:t.layerId,geometryType:i.geometryTypeJSON,minScale:r,maxScale:n,objectIdField:"OBJECTID",fields:[E.toJSON(),q.toJSON()],spatialReference:o},featureSet:{features:a,geometryType:i.geometryTypeJSON}})}}_writeMapNote(e,t,i,r){if(null==t)return;const{geometry:n,symbol:o,popupTemplate:s}=t;if(null==n)return;if(n.type!==i)return void r?.messages?.push(new p.A("map-notes-layer:invalid-geometry-type",`Geometry "${n.type}" cannot be saved in "${i}" layer`,{graphic:t}));if(null==o)return void r?.messages?.push(new p.A("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t}));const l={attributes:{...t.attributes},geometry:n.toJSON(),symbol:o.toJSON()};null!=s&&(l.popupInfo=s.toJSON()),e.push(l)}_normalizeObjectIds(e,t){const i=t.name;let r=(0,N.H)(i,e)+1;const n=new Set;for(const t of e){t.attributes||(t.attributes={});const{attributes:e}=t;(null==e[i]||n.has(e[i]))&&(e[i]=r++),n.add(e[i])}}};(0,r.Cg)([(0,y.MZ)({readOnly:!0})],D.prototype,"capabilities",void 0),(0,r.Cg)([(0,c.w)(["portal-item","web-map"],"capabilities",["layers"])],D.prototype,"readCapabilities",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],D.prototype,"featureCollections",void 0),(0,r.Cg)([(0,c.w)(["web-map","portal-item"],"featureCollections",["layers"])],D.prototype,"readFeatureCollections",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],D.prototype,"featureCollectionJSON",void 0),(0,r.Cg)([(0,c.w)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],D.prototype,"readLegacyfeatureCollectionJSON",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],D.prototype,"featureCollectionType",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],D.prototype,"fullExtent",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],D.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,y.MZ)({type:["show","hide","hide-children"]})],D.prototype,"listMode",void 0),(0,r.Cg)([(0,y.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],D.prototype,"minScale",void 0),(0,r.Cg)([(0,c.w)(["web-map","portal-item"],"minScale",["layers"])],D.prototype,"readMinScale",null),(0,r.Cg)([(0,y.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],D.prototype,"maxScale",void 0),(0,r.Cg)([(0,c.w)(["web-map","portal-item"],"maxScale",["layers"])],D.prototype,"readMaxScale",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],D.prototype,"multipointLayer",null),(0,r.Cg)([(0,y.MZ)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],D.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],D.prototype,"pointLayer",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],D.prototype,"polygonLayer",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],D.prototype,"polylineLayer",null),(0,r.Cg)([(0,y.MZ)({type:g.A})],D.prototype,"spatialReference",void 0),(0,r.Cg)([(0,c.w)(["web-map","portal-item"],"spatialReference",["layers"])],D.prototype,"readSpatialReference",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],D.prototype,"sublayers",void 0),(0,r.Cg)([(0,c.w)("web-map","sublayers",["layers"])],D.prototype,"readSublayers",null),(0,r.Cg)([(0,d.K)("web-map","sublayers")],D.prototype,"writeSublayers",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],D.prototype,"textLayer",null),(0,r.Cg)([(0,y.MZ)()],D.prototype,"title",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],D.prototype,"type",void 0),D=(0,r.Cg)([(0,f.$)("esri.layers.MapNotesLayer")],D);let $=class extends F.A{constructor(e){super(e),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer;this.graphics.on("after-add",e=>{e.item.sourceLayer=this.layer,e.item.origin=this.graphicOrigin}),this.graphics.on("after-remove",e=>{e.item.sourceLayer=null,e.item.origin=null})}get fullExtent(){const e=this.layer?.spatialReference,t=this.fullBounds;return e?null==t?(0,h.projectOrLoad)(k(),e).geometry:(0,b.w1)(t,e):null}get fullBounds(){const e=this.layer?.spatialReference;if(!e)return null;const t=(0,b.Ie)();return this.graphics.forEach(i=>{const r=null!=i.geometry?(0,h.projectOrLoad)(i.geometry,e).geometry:null;null!=r&&(0,b.fT)(t,"point"===r.type?r:r.extent,t)}),(0,b.aI)(t,b.qv)?null:t}get graphicOrigin(){return new S(this.layer,this)}get sublayers(){return this.graphics}};(0,r.Cg)([(0,y.MZ)({readOnly:!0})],$.prototype,"fullExtent",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],$.prototype,"fullBounds",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],$.prototype,"graphicOrigin",null),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],$.prototype,"sublayers",null),(0,r.Cg)([(0,y.MZ)()],$.prototype,"layer",void 0),(0,r.Cg)([(0,y.MZ)()],$.prototype,"layerId",void 0),(0,r.Cg)([(0,y.MZ)({readOnly:!0})],$.prototype,"visibilityMode",void 0),$=(0,r.Cg)([(0,f.$)("esri.layers.MapNotesLayer.MapNotesSublayer")],$);const U=D}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5356,5613],{4513:(e,a,t)=>{t.d(a,{S:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(7036)]).then(t.bind(t,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(9784),t.e(7937),t.e(7005),t.e(6445),t.e(6298),t.e(3546),t.e(1624)]).then(t.bind(t,53892))).default,CSVLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(9784),t.e(5964)]).then(t.bind(t,68695))).default,CatalogLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(1956),t.e(4796),t.e(708),t.e(4111),t.e(8506),t.e(364),t.e(8628),t.e(2593),t.e(2696),t.e(3549)]).then(t.bind(t,79003))).default,DimensionLayer:async()=>(await Promise.all([t.e(6131),t.e(3813)]).then(t.bind(t,71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(6131),t.e(9953),t.e(9186),t.e(5751)]).then(t.bind(t,68611))).default,FeatureLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(9784),t.e(2236)]).then(t.bind(t,29784))).default,GaussianSplatLayer:async()=>(await Promise.all([t.e(6131),t.e(6730)]).then(t.bind(t,36475))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(8766)]).then(t.bind(t,15481))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3474)]).then(t.bind(t,85582))).default,GroupLayer:async()=>(await Promise.all([t.e(6131),t.e(3562),t.e(8256)]).then(t.bind(t,85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(9953),t.e(1956),t.e(364),t.e(1427),t.e(8106),t.e(4990)]).then(t.bind(t,58434))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(9953),t.e(1427),t.e(6049),t.e(8106),t.e(7677),t.e(5943)]).then(t.bind(t,35943))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(6131),t.e(5335),t.e(1312)]).then(t.bind(t,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(6131),t.e(6298),t.e(5335),t.e(6894)]).then(t.bind(t,74660))).default,KMLLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(5366)]).then(t.bind(t,79465))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(708),t.e(3029),t.e(8368),t.e(4649),t.e(217),t.e(2568),t.e(7213),t.e(9171),t.e(8692)]).then(t.bind(t,28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(6131),t.e(7937),t.e(7721),t.e(9695)]).then(t.bind(t,49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(708),t.e(3029),t.e(8368),t.e(4649),t.e(217),t.e(2568),t.e(7213),t.e(9171),t.e(1728)]).then(t.bind(t,71728))).default,MapImageLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(1956),t.e(4796),t.e(708),t.e(4111),t.e(364),t.e(3249),t.e(7656),t.e(2042)]).then(t.bind(t,7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(9784),t.e(7213),t.e(8110)]).then(t.bind(t,96299))).default,MediaLayer:async()=>(await Promise.all([t.e(7330),t.e(6131),t.e(2763)]).then(t.bind(t,19647))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(1956),t.e(4796),t.e(708),t.e(3029),t.e(6445),t.e(9936),t.e(4224)]).then(t.bind(t,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(6773),t.e(349)]).then(t.bind(t,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(9784),t.e(9361),t.e(4151)]).then(t.bind(t,9352))).default,PointCloudLayer:async()=>(await Promise.all([t.e(6131),t.e(8948),t.e(7984),t.e(6742)]).then(t.bind(t,76742))).default,RouteLayer:async()=>(await Promise.all([t.e(6131),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(217),t.e(979)]).then(t.bind(t,64185))).default,SceneLayer:async()=>(await Promise.all([t.e(6131),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(1956),t.e(4796),t.e(7937),t.e(7005),t.e(6445),t.e(6298),t.e(3546),t.e(1395)]).then(t.bind(t,13899))).default,StreamLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(1956),t.e(4796),t.e(3029),t.e(73)]).then(t.bind(t,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1956),t.e(4796),t.e(4111),t.e(8506),t.e(6731)]).then(t.bind(t,97483))).default,TileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(1956),t.e(4796),t.e(708),t.e(4111),t.e(364),t.e(9186),t.e(3249),t.e(573)]).then(t.bind(t,71756))).default,UnknownLayer:async()=>(await t.e(146).then(t.bind(t,146))).default,UnsupportedLayer:async()=>(await t.e(5165).then(t.bind(t,45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(9186),t.e(5897),t.e(4937)]).then(t.bind(t,48757))).default,VideoLayer:async()=>(await Promise.all([t.e(6131),t.e(3910),t.e(8096),t.e(5323),t.e(7732)]).then(t.bind(t,86875))).default,ViewshedLayer:async()=>(await Promise.all([t.e(6131),t.e(7937),t.e(7721),t.e(6650)]).then(t.bind(t,96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(6131),t.e(8948),t.e(6183)]).then(t.bind(t,16183))).default,WCSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(9953),t.e(1427),t.e(6049),t.e(8106),t.e(7677),t.e(9547)]).then(t.bind(t,19547))).default,WFSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(9110)]).then(t.bind(t,21901))).default,WMSLayer:async()=>(await Promise.all([t.e(7330),t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(5323),t.e(5181)]).then(t.bind(t,51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(6773),t.e(309)]).then(t.bind(t,20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(6773)]).then(t.bind(t,47314))).default}},8947:(e,a,t)=>{t.d(a,{L:()=>l});var r=t(60999),n=t(74887),i=t(67076);async function l(e,a,t){const l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){const s=await(0,r.Ke)(l.populateFromStyle());if((0,n.Te)(t),!1===s.ok){const t=s.error;a?.messages&&a.messages.push(new i.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${t.message}`,{error:t,context:a})),e.clear("renderer",a?.origin)}}}},9762:(e,a,t)=>{t.r(a),t.d(a,{projectBuffer:()=>n});var r=t(37539);function n(e,a,t,n,i,l,s=Math.floor(e.length/3)){const c=(0,r.jd)(a,i);if(null==c)return!1;if(c===r.pO){if(e===n&&t===l)return!0;const a=t+3*s;for(let r=t,i=l;r<a;r++,i++)n[i]=e[r];return!0}const o=t+3*s;for(let a=t,r=l;a<o;a+=3,r+=3)c(e,a,n,r);return!0}},10407:(e,a,t)=>{t.d(a,{It:()=>d,LG:()=>l,OM:()=>o,Sm:()=>u,Y:()=>s,bK:()=>c,mm:()=>f,sQ:()=>y});var r=t(98988),n=t(16930),i=t(28735);function l(e,a){if(!s(e,a)){const t=e.typeKeywords;t?t.push(a):e.typeKeywords=[a]}}function s(e,a){return!!e.typeKeywords?.includes(a)}function c(e){return s(e,f.HOSTED_SERVICE)}function o(e,a){const t=e.typeKeywords;if(t){const e=t.indexOf(a);e>-1&&t.splice(e,1)}}function u(e,a,t){t?l(e,a):o(e,a)}async function y(e){const a=e.clone().normalize();let t;if(a.length>1)for(const e of a)t?e.width>t.width&&(t=e):t=e;else t=a[0];return async function(e){const a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,i.ci)(e);const t=n.A.WGS84;return await(0,r.initializeProjection)(a,t),(0,r.project)(e,t)}(t)}const f={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:a,isOrgItem:t,itemControl:r}=e,n=a.user?.privileges;let i=!n||n.includes("features:user:edit"),l=!!t&&!!n?.includes("features:user:fullEdit");const s="update"===r||"admin"===r;return s?l=i=!0:l&&(i=!0),{features:{edit:i,fullEdit:l},content:{updateItem:s}}}},22429:(e,a,t)=>{t.d(a,{v:()=>n});var r=t(24183);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){const t=this._serviceMetadatas.get(e);if(t)return t;const n=await(0,r.V)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:a}=e;if(!a)return null;const{_itemDatas:t}=this;if(t.has(a))return t.get(a);const r=await e.fetchData();return t.set(a,r),r}async fetchCustomParameters(e,a){const t=await this.fetchItemData(e);return t&&"object"==typeof t&&(a?a(t):t.customParameters)||null}}},23154:(e,a,t)=>{t.d(a,{K:()=>d,Q:()=>l});var r=t(77548),n=t(24183);const i=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function l(e,a){const{loadContext:t,...i}=a||{},l=t?await t.fetchServiceMetadata(e,i):await(0,n.V)(e,i),s=(0,r.G$)();f(l),o(l);const c={serviceJSON:l,preferredHost:s};if((l.currentVersion??0)<10.5)return c;const u=`${(0,r.$x)()??e}/layers`,y=t?await t.fetchServiceMetadata(u,i):await(0,n.V)(u,i);return f(y),o(y),c.layersJSON={layers:y.layers,tables:y.tables},c}function s(e){const{type:a}=e;return!!a&&i.has(a)}function c(e){return"Table"===e.type}function o(e){e.layers=e.layers?.filter(s),e.tables=e.tables?.filter(c)}function u(e){e.type||="Feature Layer"}function y(e){e.type||="Table"}function f(e){e.layers?.forEach(u),e.tables?.forEach(y)}function d(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},24183:(e,a,t)=>{t.d(a,{V:()=>n});var r=t(78888);async function n(e,a){const{data:t}=await(0,r.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return t}},37539:(e,a,t)=>{t.d(a,{pO:()=>L,jd:()=>f,Tp:()=>d,w5:()=>y});var r=t(34727),n=t(83047),i=t(73941),l=t(79258);Math.PI;const s=l.$O.radius,c=l.$O.eccentricitySquared,o={a1:s*c,a2:s*c*s*c,a3:s*c*c/2,a4:s*c*s*c*2.5,a5:s*c+s*c*c/2,a6:1-c};l.$O.radius,l.$O.flattening,l.Sw.radius,l.Sw.flattening,l.sH.radius,l.sH.flattening,l.sH.radius;var u=t(21325);const y={2:{5:L,7:null,9:null,10:L,1:v,6:null,8:null,0:null,3:h,11:w,2:L,4:A},5:{5:L,7:null,9:null,10:L,1:v,6:null,8:null,0:null,3:h,11:w,2:L,4:A},7:{5:null,7:L,9:null,10:L,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:L,10:L,1:null,6:null,8:I,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,a,t,r){const n=e[a]/N,i=j-2*Math.atan(Math.exp(-e[a+1]/N)),l=N+e[a+2],s=Math.cos(i)*l;t[r]=Math.cos(n)*s,t[r+1]=Math.sin(n)*s,t[r+2]=Math.sin(i)*l},6:null,8:null,0:null,3:L,11:function(e,a,t,r){m(e,a,t,r),w(t,r,t,r)},2:m,4:function(e,a,t,r){m(e,a,t,r),A(t,r,t,r)}},4:{5:R,7:null,9:null,10:R,1:function(e,a,t,r){R(e,a,t,r),v(t,r,t,r)},6:null,8:null,0:null,3:function(e,a,t,r){R(e,a,t,r),h(t,r,t,r)},11:function(e,a,t,r){R(e,a,t,r),w(t,r,t,r)},2:R,4:L},1:{5:P,7:null,9:null,10:P,1:L,6:null,8:null,0:null,3:function(e,a,t,r){P(e,a,t,r),h(t,r,t,r)},11:function(e,a,t,r){P(e,a,t,r),w(t,r,t,r)},2:P,4:function(e,a,t,r){P(e,a,t,r),A(t,r,t,r)}},6:{5:null,7:G,9:null,10:G,1:null,6:L,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:L,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:L,3:null,11:null,2:null,4:null},10:{5:L,7:L,9:L,10:L,1:v,6:M,8:I,0:null,3:h,11:w,2:L,4:A},11:{5:S,7:null,9:null,10:S,1:function(e,a,t,r){S(e,a,t,r),v(t,r,t,r)},6:null,8:null,0:null,3:function(e,a,t,r){S(e,a,t,r),h(t,r,t,r)},11:L,2:S,4:function(e,a,t,r){S(e,a,t,r),A(t,r,t,r)}}};function f(e,a){return d(e,a)?.projector}function d(e,a){if(null==e||null==a)return null;if(C.source.spatialReference===e&&C.dest.spatialReference===a)return C;const t=p(e,C.source),r=p(a,C.dest);return 0===t&&0===r?(0,u.aI)(e,a)?C.projector=L:C.projector=null:C.projector=y[t][r],C}function p(e,a){return e?a.spatialReference===e?a.spatialReferenceId:(a.spatialReference=e,"metersPerUnit"in a&&(a.metersPerUnit=(0,n.GA)(e,1)),(0,i.jA)(e)?a.spatialReferenceId=1:(0,u.oT)(e)?a.spatialReferenceId=2:(0,u.K8)(e)?a.spatialReferenceId=3:(0,u.r1)(e)?a.spatialReferenceId=11:e.wkt===i.Ro.wkt?a.spatialReferenceId=4:4490===e.wkid?a.spatialReferenceId=5:e.wkt===i.FY.wkt?a.spatialReferenceId=6:e.wkt===i.LJ.wkt?a.spatialReferenceId=8:(0,u.q8)(e)?a.spatialReferenceId=7:(0,u.KQ)(e)?a.spatialReferenceId=9:a.spatialReferenceId=0):0}function L(e,a,t,r){e!==t&&(t[r++]=e[a++],t[r++]=e[a++],t[r]=e[a])}function m(e,a,t,r){t[r]=k*(e[a]/N),t[r+1]=k*(j-2*Math.atan(Math.exp(-e[a+1]/N))),t[r+2]=e[a+2]}function h(e,a,t,n){!function(e,a,t,n,i){const l=.4999999*Math.PI,s=(0,r.qE)(O*e[a+1],-l,l),c=Math.sin(s);t[n++]=O*e[a]*i.radius,t[n++]=i.halfSemiMajorAxis*Math.log((1+c)/(1-c)),t[n]=e[a+2]}(e,a,t,n,l.$O)}function w(e,a,t,r){t[r]=e[a]*_,t[r+1]=e[a+1]*_,t[r+2]=e[a+2]}function S(e,a,t,r){t[r]=e[a]*E,t[r+1]=e[a+1]*E,t[r+2]=e[a+2]}function g(e,a,t,r,n){const i=n+e[a+2],l=O*e[a+1],s=O*e[a],c=Math.cos(l)*i;t[r]=Math.cos(s)*c,t[r+1]=Math.sin(s)*c,t[r+2]=Math.sin(l)*i}function I(e,a,t,r){g(e,a,t,r,l.Sw.radius)}function M(e,a,t,r){g(e,a,t,r,l.sH.radius)}function v(e,a,t,r){g(e,a,t,r,l.$O.radius)}function b(e,a,t,n,i){const l=e[a],s=e[a+1],c=e[a+2],o=Math.sqrt(l*l+s*s+c*c),u=(0,r.YN)(c/(0===o?1:o)),y=Math.atan2(s,l);t[n++]=k*y,t[n++]=k*u,t[n]=o-i}function T(e,a,t,r){b(e,a,t,r,l.Sw.radius)}function G(e,a,t,r){b(e,a,t,r,l.sH.radius)}function P(e,a,t,r){b(e,a,t,r,l.$O.radius)}function A(e,a,t,r){!function(e,a,t,r,n){const i=O*e[a],l=O*e[a+1],s=e[a+2],c=Math.sin(l),o=Math.cos(l),u=n.radius/Math.sqrt(1-n.eccentricitySquared*c*c);t[r++]=(u+s)*o*Math.cos(i),t[r++]=(u+s)*o*Math.sin(i),t[r++]=(u*(1-n.eccentricitySquared)+s)*c}(e,a,t,r,l.$O)}function R(e,a,t,r){const n=o,i=e[a],s=e[a+1],c=e[a+2];let u,y,f,d,p,L,m,h,w,S,g,I,M,v,b,T,G,P,A,R,C;u=Math.abs(c),y=i*i+s*s,f=Math.sqrt(y),d=y+c*c,p=Math.sqrt(d),R=Math.atan2(s,i),L=c*c/d,m=y/d,v=n.a2/p,b=n.a3-n.a4/p,m>.3?(h=u/p*(1+m*(n.a1+v+L*b)/p),A=Math.asin(h),S=h*h,w=Math.sqrt(1-S)):(w=f/p*(1-L*(n.a5-v-m*b)/p),A=Math.acos(w),S=1-w*w,h=Math.sqrt(S)),g=1-l.$O.eccentricitySquared*S,I=l.$O.radius/Math.sqrt(g),M=n.a6*I,v=f-I*w,b=u-M*h,G=w*v+h*b,T=w*b-h*v,P=T/(M/g+G),A+=P,C=G+T*P/2,c<0&&(A=-A),t[r++]=k*R,t[r++]=k*A,t[r]=C}const C={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:L},O=(0,r.kU)(1),k=(0,r.KJ)(1),j=.5*Math.PI,N=l.$O.radius,_=N*Math.PI/180,E=180/(N*Math.PI)},45613:(e,a,t)=>{t.d(a,{fromItem:()=>f,n:()=>d});var r=t(49186),n=t(92009),i=t(23154),l=t(22429),s=t(77548),c=t(4513),o=t(80812),u=t(66964),y=t(10407);async function f(e){let{portalItem:a}=e;!a||a instanceof o.default||(a=new o.default(a));const t=await async function(e){await e.load();const a=new l.v;return async function(e){const a=e.className,t=c.S[a];return{constructor:await t(),properties:e.properties}}(await d(e,a))}(a);return new(0,t.constructor)({portalItem:a,...t.properties})}async function d(e,a){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const a=(0,y.Y)(e,"Map Notes"),t=(0,y.Y)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){const t=await p(e,a);if("object"==typeof t){const{sourceJSON:e,className:a}=t,r={sourceJSON:e};return null!=t.id&&(r.layerId=t.id),{className:a||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();const t=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(t.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(t.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await a.fetchItemData(e),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const i=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),l=i.cacheType?.toLowerCase(),s=i.capabilities?.toLowerCase().includes("tilesonly"),c=i.tileInfo?.format?.toLowerCase()??"",o=null==l&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(c);return"map"===l||o||s?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,a){return await async function(e,a){const{tileInfo:t}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return t}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,a){const t=await p(e,a,async()=>{try{if(!e.url)return[];const{serverUrl:t}=await(0,n.L)(e.url,{sceneLayerItem:e}),r=await a.fetchServiceMetadata(t);return r?.tables??[]}catch{return[]}});if("object"==typeof t){const r={};let n;if(null!=t.id?(r.layerId=t.id,n=`${e.url}/layers/${t.id}`):n=e.url,e.typeKeywords?.length)for(const a of Object.keys(s.XX))if(e.typeKeywords.includes(a))return{className:s.XX[a]};const i=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return{className:s.XX[i?.layerType]||"SceneLayer",properties:r}}if(!1===t){const t=await a.fetchServiceMetadata(e.url);if("Voxel"===t?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,a);case"Video Service":return async function(e,a){return"object"==typeof await p(e,a)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function p(e,a,t){const{url:r,type:n}=e,l="Feature Service"===n;if(!r)return{};if(/\/\d+$/.test(r)){if(l){const t=await a.fetchServiceMetadata(r,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return(0,s.Gh)(e,(0,s.G$)()),{id:t.id,className:(0,i.K)(t.type),sourceJSON:t}}return{}}if("Video Service"===n){const e=await a.fetchServiceMetadata(r);return!((e.layers?.length??0)>1)&&{}}await e.load();let c=await a.fetchItemData(e);if(l){const{data:t,preferredHost:n}=await(0,u.bO)(c,r,a);(0,s.Gh)(e,n);const i=L(t);if("object"==typeof i){const e=(0,u.rc)(t,i.id);i.className=(0,u.K8)(e?.layerType)}return i}if("Scene Service"===n&&(c=await(0,u.nu)(e,c,a)),(0,u.XH)(c)>0)return L(c);const o=await a.fetchServiceMetadata(r);return t&&(o.tables=await t()),L(o)}function L(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},62815:(e,a,t)=>{t.d(a,{N:()=>l});var r=t(83047),n=t(73941),i=t(21325);function l(e,a,t){if(null==a||null==t||t.vcsWkid||(0,i.aI)(a,t)||(0,n.xP)(a)||(0,n.xP)(t))return null;const l=(0,r.G9)(a)/(0,r.G9)(t);if(1===l)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,a){null!=e?.z&&(e.z*=a)}(e,l);case"polyline":case"esriGeometryPolyline":return e=>function(e,a){if(e)for(const t of e.paths)for(const e of t)e.length>2&&(e[2]*=a)}(e,l);case"polygon":case"esriGeometryPolygon":return e=>function(e,a){if(e)for(const t of e.rings)for(const e of t)e.length>2&&(e[2]*=a)}(e,l);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,a){if(e)for(const t of e.points)t.length>2&&(t[2]*=a)}(e,l);case"extent":case"esriGeometryEnvelope":return e=>function(e,a){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=a,e.zmax*=a)}(e,l);default:return null}}},66964:(e,a,t)=>{t.d(a,{Ju:()=>u,K8:()=>d,XH:()=>y,_r:()=>l,bO:()=>s,l:()=>f,nu:()=>p,pJ:()=>c,rc:()=>o});var r=t(92009),n=t(23154),i=t(77548);function l(e){const a={id:e.id,name:e.name},t=(0,n.K)(e.type);return"FeatureLayer"!==t&&(a.layerType=t),a}async function s(e,a,t){let r;if(null==e?.layers||null==e?.tables){const n=await t.fetchServiceMetadata(a,{customParameters:c(e)?.customParameters});r=(0,i.G$)(),(e=e||{}).layers=e.layers||n?.layers?.map(l),e.tables=e.tables||n?.tables?.map(l)}return{data:e,preferredHost:r}}function c(e){if(!e)return null;const{layers:a,tables:t}=e;return a?.length?a[0]:t?.length?t[0]:null}function o(e,a){return null==a?null:[...e.layers||[],...e.tables||[]].find(e=>e.id===a)}function u(e,a){return[...e.layers||[],...e.tables||[]].filter(({layerType:e})=>e?a.includes(e):a.includes("ArcGISFeatureLayer"))}function y(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function f(e){switch(e){case"catalog":return["CatalogLayer"];case"feature":return["ArcGISFeatureLayer"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function d(e){switch(e){case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return"FeatureLayer"}async function p(e,a,t){if(!e?.url)return a??{};if(a??={},!a.layers){const r=await t.fetchServiceMetadata(e.url);a.layers=r.layers?.map(l)}const{serverUrl:n,portalItem:i}=await(0,r.L)(e.url,{sceneLayerItem:e,customParameters:c(a)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==n)return a.tables=[],a;if(!a.tables&&i){const e=await i.fetchData().catch(()=>null);if(e?.tables)a.tables=e.tables.map(l);else{const r=await t.fetchServiceMetadata(n,{customParameters:c(e)?.customParameters}).catch(()=>null);a.tables=r?.tables?.map(l)}}if(a.tables)for(const e of a.tables)e.url=`${n}/${e.id}`;return a}},75356:(e,a,t)=>{t.d(a,{N:()=>T,populateOperationalLayers:()=>u});var r=t(7762),n=(t(44208),t(22429)),i=t(4513),l=t(80812);function s(e,a){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===a}var c=t(45613),o=t(8947);async function u(e,a,t){if(!a)return;const r=a.map(e=>async function(e,a){return async function(e,a,t){const r=new e;return r.read(a,t.context),"group"===r.type&&("GroupLayer"===a.layerType?await T(r,a,t):v(a)?function(e,a,t){a.itemId&&(e.portalItem=new l.default({id:a.itemId,portal:t?.portal}),e.when(()=>{const r=r=>{const n=r.layerId;G(r,e,a,n,t);const i=a.featureCollection?.layers?.[n];i&&r.read(i,t)};e.layers?.forEach(r),e.tables?.forEach(r)}))}(r,a,t.context):M(a)&&await async function(e,a,t){const r=i.S.FeatureLayer,n=await r(),l=a.featureCollection,s=l?.showLegend,c=l?.layers?.map((r,i)=>{const l=new n;l.read(r,t);const c={...t,ignoreDefaults:!0};return G(l,e,a,i,c),null!=s&&l.read({showLegend:s},c),l});e.layers.addMany(c??[])}(r,a,t.context)),await(0,o.L)(r,t.context),r}(await I(e,a),e,a)}(e,t)),n=await Promise.allSettled(r);for(const a of n)"rejected"===a.status||a.value&&e.add(a.value)}const y={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",Object3DTilesLayer:"UnsupportedLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},f={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISFeatureLayer:"FeatureLayer"},p={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},L={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},m={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},h={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},w={...L,LinkChartLayer:"LinkChartLayer"},S={...m},g={...h};async function I(e,a){const t=a.context,r=b(t);let o=e.layerType||e.type;!o&&a?.defaultLayerType&&(o=a.defaultLayerType);const u=r[o];let y=u?i.S[u]:i.S.UnknownLayer;if(v(e)){const a=t?.portal;if(e.itemId){const t=new l.default({id:e.itemId,portal:a});await t.load();const r=(await(0,c.n)(t,new n.v)).className||"UnknownLayer";y=i.S[r]}}else"ArcGISFeatureLayer"===o?function(e){return s(e,"notes")}(e)||function(e){return s(e,"markup")}(e)?y=i.S.MapNotesLayer:function(e){return s(e,"route")}(e)?y=i.S.RouteLayer:M(e)&&(y=i.S.GroupLayer):e.wmtsInfo?.url&&e.wmtsInfo.layerIdentifier?y=i.S.WMTSLayer:"WFS"===o&&"2.0.0"!==e.wfsInfo?.version&&(y=i.S.UnsupportedLayer);return y()}function M(e){return"ArcGISFeatureLayer"===e.layerType&&!v(e)&&(e.featureCollection?.layers?.length??0)>1}function v(e){return"Feature Collection"===e.type}function b(e){let a;switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap":a=p;break;case"ground":a=f;break;case"tables":a=d;break;default:a=y}break;case"link-chart":switch(e.layerContainerType){case"basemap":a=g;break;case"tables":a=S;break;default:a=w}break;default:switch(e.layerContainerType){case"basemap":a=h;break;case"tables":a=m;break;default:a=L}}return a}async function T(e,a,t){const n=new r.A,i=u(n,Array.isArray(a.layers)?a.layers:[],t);try{try{if(await i,"group"===e.type)return e.layers.addMany(n),e}catch(a){e.destroy();for(const e of n)e.destroy();throw a}}catch(e){throw e}}function G(e,a,t,r,n){e.read({id:`${a.id}-sublayer-${r}`,visibility:t.visibleLayers?.includes(r)??!0},n)}},92009:(e,a,t)=>{t.d(a,{L:()=>u});var r=t(70333),n=t(78888),i=t(49186),l=t(74887),s=t(60694),c=t(20655),o=t(80812);async function u(e,a){const t=(0,s.qg)(e);if(!t)throw new i.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const t=new o.default({id:a,apiKey:e.apiKey}),i=await async function(e){const a=r.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,l.QP)(e)}return null}(e);null!=i&&(t.portal=new c.A({url:i}));try{return await t.load({signal:e.signal})}catch(e){return(0,l.QP)(e),null}}(u),null==u.sceneLayerItem)return f(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!t)return null;const r=new o.default({portal:t.portal,id:t.id});return await r.load(),r}catch(e){return(0,l.QP)(e),null}}(u);if(!d?.url)throw new i.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=d;const p=await f(d.url,u);return p.portalItem=d,p}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,a){const t=(0,s.qg)(e);if(!t)throw new i.A("invalid-feature-service-url","Invalid feature service url");const r=t.url.path,l=a.layerId;if(null==l)return{serverUrl:r};const c=y(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,f=e=>{const t={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(r,t)},d=f("anonymous").catch(()=>f("no-prompt")),[p,L]=await Promise.all([d,c]),m=L?.layers,h=p.data&&p.data.layers;if(!Array.isArray(h))throw new Error("expected layers array");if(Array.isArray(m)){for(let e=0;e<Math.min(m.length,h.length);e++)if(m[e].id===l)return{serverUrl:r,layerId:h[e].id}}else if(null!=l&&l<h.length)return{serverUrl:r,layerId:h[l].id};throw new Error("could not find matching associated sublayer")}},98988:(e,a,t)=>{t.r(a),t.d(a,{canProjectWithoutEngine:()=>J,getTransformation:()=>D,getTransformations:()=>V,initializeProjection:()=>H,isEqualBaseGCS:()=>z,isLoaded:()=>O,isLoadedOrLoad:()=>k,isLoadedOrLoadFor:()=>j,load:()=>_,project:()=>E,projectExtent:()=>ie,projectMany:()=>x,projectMultipoint:()=>Q,projectOrLoad:()=>W,projectOrLoadMany:()=>F,projectPoint:()=>Z,projectPolygon:()=>re,projectPolyline:()=>ae,projectWithZConversion:()=>q,projectWithoutEngine:()=>Y,requiresLoad:()=>N,test:()=>B,tryProjectWithZConversion:()=>$,unload:()=>K});var r=t(49186),n=t(74887),i=t(62788),l=t(95488),s=t(51850),c=t(21276),o=t(73941),u=t(5443),y=t(48526),f=t(83290),d=t(86738),p=t(39829),L=t(82799),m=t(16930),h=t(9762),w=t(37539);function S(e,a,t,r,n,i){return g[0]=e,g[1]=a,g[2]=t,(0,h.projectBuffer)(g,r,0,n,i,0)}const g=(0,s.vt)();let I=0;class M{static fromGE(e){const a=new M;return a._wkt=e.wkt,a._wkid=e.wkid,a._isInverse=e.isInverse,a}constructor(e){this.uid=I++,e?(this._wkt=null!=e.wkt?e.wkt:null,this._wkid=null!=e.wkid?e.wkid:-1,this._isInverse=null!=e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=I++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=I++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=I++}getInverse(){const e=new M;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class v{static cacheKey(e,a){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",a.wkid?.toString()??"-1",a.wkt?.toString()??"",a.wkt2?.toString()??""].join()}static fromGE(e){const a=new v;let t="";for(const r of e.steps){const e=M.fromGE(r);a.steps.push(e),t+=e.uid.toString()+","}return a._cachedProjection={},a._gtlistentry=null,a._chain=t,a}constructor(e){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,e?.steps)for(const a of e.steps)a instanceof M?this.steps.push(a):this.steps.push(new M({wkid:a.wkid,wkt:a.wkt,isInverse:a.isInverse}))}getInverse(){const e=new v;e.steps=[];for(let a=this.steps.length-1;a>=0;a--){const t=this.steps[a];e.steps.push(t.getInverse())}return e}getGTListEntry(){let e="";for(const a of this.steps)e+=a.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e),this._gtlistentry}assignCachedGe(e,a,t){this._cachedProjection[v.cacheKey(e,a)]=t}getCachedGeTransformation(e,a){let t="";for(const e of this.steps)t+=e.uid.toString()+",";t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t);const r=this._cachedProjection[v.cacheKey(e,a)];return void 0===r?null:r}}var b=t(21325),T=t(62815);let G=null,P=null,A=null,R={};const C=new l.I;function O(){return!!G&&(0,f.i)()}function k(){return!!O()||((0,i.gc)(C),_(),!1)}function j(e,a){return!e||!a||J(e,a)||k()}function N(e,a){return!J(e,a)&&!O()}function _(e){return null==A&&(A=Promise.all([(0,f.l)(),t.e(9930).then(t.bind(t,49930)).then(e=>e.g),t.e(2731).then(t.bind(t,12731))])),A.then(([,a,{hydratedAdapter:t}])=>{(0,n.Te)(e),P=t,G=a.default,G._enableProjection(f.p),C.notify()})}function E(e,a,t=null,r=null){return Array.isArray(e)?0===e.length?[]:((0,c.H)(e),x(P,e,e[0].spatialReference,a,t,r)):((0,c.f)(e),x(P,[e],e.spatialReference,a,t,r)[0])}function x(e,a,t,r,n=null,i=null){if(null==t||null==r)return a;if(J(t,r,n))return a.map(e=>Y(e,t,r));if(null==n&&(0,o.jA)(t))return a.map(e=>Y(e,t,m.A.WGS84)).map(e=>$(e,r));if(null==n&&(0,o.jA)(r))return a.map(e=>$(e,m.A.WGS84)).map(e=>Y(e,m.A.WGS84,r));if(null==n){const e=v.cacheKey(t,r);void 0!==R[e]?n=R[e]:(null==(n=D(t,r,void 0))&&(n=new v),R[e]=n)}if(null==G||null==e)throw new U;return null!=i?G._project(e,a,t,r,n,i):G._project(e,a,t,r,n)}function W(e,a){const t=F([e],a);return null!=t.pending?{pending:t.pending,geometry:null}:null!=t.geometries?{pending:null,geometry:t.geometries[0]}:{pending:null,geometry:null}}function F(e,a){if(!O())for(const t of e)if(null!=t&&!(0,b.aI)(t.spatialReference,a)&&(0,b.fn)(t.spatialReference)&&(0,b.fn)(a)&&!J(t.spatialReference,a))return(0,i.gc)(C),{pending:_(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,b.aI)(e.spatialReference,a)?e:(0,b.fn)(e.spatialReference)&&(0,b.fn)(a)?$(e,a):null)}}function D(e,a,t=null){if(null==e||null==a)return null;if(null==G||null==P)throw new U;const r=G._getTransformation(P,e,a,t,t?.spatialReference);return null!==r?v.fromGE(r):null}function V(e,a,t=null){if(null==G||null==P)throw new U;const r=G._getTransformationBySuitability(P,e,a,t,t?.spatialReference);if(null!==r){const e=[];for(const a of r)e.push(v.fromGE(a));return e}return[]}class U extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function K(){G=null,P=null,A=null,R={}}const B={get loadPromise(){return A}};function $(e,a){try{const t=E(e,a);if(null==t)return null;"xmin"in e&&"xmin"in t&&(t.zmin=e.zmin,t.zmax=e.zmax);const r=(0,T.N)(t.type,e.spatialReference,a);return null!=r&&r(t),t}catch(e){if(!(e instanceof U))throw e;return null}}async function q(e,a,t){const r=e.spatialReference;return null!=r&&null!=a&&await H(r,a,null,t),$(e,a)}function J(e,a,t){return!t&&(!!(0,b.aI)(e,a)||(0,b.fn)(e)&&(0,b.fn)(a)&&!!(0,w.jd)(e,a))}function z(e,a){if((0,b.aI)(e,a))return!0;if(!(0,b.fn)(e)||!(0,b.fn)(a))return!1;const t=(0,b.oT)(e)||(0,b.K8)(e)||(0,b.x1)(e),r=(0,b.oT)(a)||(0,b.K8)(a)||(0,b.x1)(a);return t&&r}async function H(e,a,t,r){if(O())return(0,n.NO)(r);if(Array.isArray(e)){for(const{source:a,dest:t,geographicTransformation:n}of e)if(a&&t&&!J(a,t,n))return _(r)}else if(e&&a&&!J(e,a,t))return _(r);return(0,n.NO)(r)}function Y(e,a,t){return e?"x"in e?X(e,a,new d.A,t,0):"xmin"in e?le(e,a,new u.A,t,0):"rings"in e?ne(e,a,new p.A,t,0):"paths"in e?te(e,a,new L.A,t,0):"points"in e?ee(e,a,new y.A,t,0):null:null}function Z(e,a,t=a.spatialReference,r=0){return null!=t&&null!=e.spatialReference&&null!=X(e,e.spatialReference,a,t,r)}function X(e,a,t,r,n){ce[0]=e.x,ce[1]=e.y;const i=e.z;return ce[2]=void 0!==i?i:n,(0,h.projectBuffer)(ce,a,0,ce,r,0)?(t.x=ce[0],t.y=ce[1],t.spatialReference=r,void 0!==i||(0,o.xP)(r)?(t.z=ce[2],t.hasZ=!0):(t.z=void 0,t.hasZ=!1),void 0===e.m?(t.m=void 0,t.hasM=!1):(t.m=e.m,t.hasM=!0),t):null}function Q(e,a,t=a.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=ee(e,e.spatialReference,a,t,r)}function ee(e,a,t,r,n){const{points:i,hasZ:l,hasM:s}=e,c=[],u=i.length,y=[];for(const e of i)y.push(e[0],e[1],l?e[2]:n);if(!(0,h.projectBuffer)(y,a,0,y,r,0,u))return null;const f=l||(0,o.xP)(r);for(let e=0;e<u;++e){const a=3*e,t=y[a],r=y[a+1];f&&s?c.push([t,r,y[a+2],i[e][3]]):f?c.push([t,r,y[a+2]]):s?c.push([t,r,i[e][2]]):c.push([t,r])}return t.points=c,t.spatialReference=r,t.hasZ=l,t.hasM=s,t}function ae(e,a,t=a.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=te(e,e.spatialReference,a,t,r)}function te(e,a,t,r,n){const{paths:i,hasZ:l,hasM:s}=e,c=[];if(!se(i,l??!1,s??!1,a,c,r,n))return null;const u=l||(0,o.xP)(r);return t.paths=c,t.spatialReference=r,t.hasZ=u,t.hasM=s,t}function re(e,a,t=a.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=ne(e,e.spatialReference,a,t,r)}function ne(e,a,t,r,n){const{rings:i,hasZ:l,hasM:s}=e,c=[];if(!se(i,l??!1,s??!1,a,c,r,n))return null;const u=l||(0,o.xP)(r);return t.rings=c,t.spatialReference=r,t.hasZ=u,t.hasM=s,t}function ie(e,a,t=a.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=le(e,e.spatialReference,a,t,r)}function le(e,a,t,r,n){const{xmin:i,ymin:l,xmax:s,ymax:c,hasZ:u,hasM:y}=e;if(!S(i,l,u?e.zmin:n,a,ce,r))return null;const f=u||(0,o.xP)(r);return t.xmin=ce[0],t.ymin=ce[1],f&&(t.zmin=ce[2]),S(s,c,u?e.zmax:n,a,ce,r)?(t.xmax=ce[0],t.ymax=ce[1],f&&(t.zmax=ce[2]),y&&(t.mmin=e.mmin,t.mmax=e.mmax),t.spatialReference=r,t):null}function se(e,a,t,r,n,i,l=0){const s=new Array;for(const t of e)for(const e of t)s.push(e[0],e[1],a?e[2]:l);if(!(0,h.projectBuffer)(s,r,0,s,i,0))return!1;let c=0;n.length=0;const u=a||(0,o.xP)(i);for(const a of e){const e=new Array;for(const r of a)u&&t?e.push([s[c++],s[c++],s[c++],r[3]]):u?e.push([s[c++],s[c++],s[c++]]):t?(e.push([s[c++],s[c++],r[2]]),c++):(e.push([s[c++],s[c++]]),c++);n.push(e)}return!0}const ce=(0,s.vt)()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7721,8256],{4146:(t,e,r)=>{r.d(e,{A:()=>b});var n=r(31635),i=r(78888),s=r(49186),o=r(65529),a=r(4902),l=r(92474),u=r(53966),c=r(74887),h=r(84952),d=r(10107),p=(r(44208),r(87811),r(40608)),y=r(5443),g=r(16930),f=r(92602),m=r(64272);let v=0,b=class extends((0,o.Zt)((0,a.sA)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:n}=await r.e(5613).then(r.bind(r,45613));try{return await n(e)}catch(t){const r=e?.portalItem,n=r?.id||"unset",i=r?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+n+"')",t),t}}(t)}initialize(){this.when().catch(t=>{(0,c.zf)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})})}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"groundLayers"in t&&t.groundLayers.includes(e)?t.groundLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(t,e){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,i.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,n.Cg)([(0,d.MZ)({type:y.A})],b.prototype,"fullExtent",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,n.Cg)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,n.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,n.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,d.MZ)({type:g.A})],b.prototype,"spatialReference",void 0),(0,n.Cg)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,n.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,n.Cg)([(0,d.MZ)()],b.prototype,"url",void 0),(0,n.Cg)([(0,d.MZ)({type:m.T})],b.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,n.Cg)([(0,p.$)("esri.layers.Layer")],b)},4197:(t,e,r)=>{r.d(e,{Vj:()=>u,cj:()=>l,jh:()=>s,l5:()=>a,xm:()=>o});var n=r(34275),i=r(9093);function s(t,e=!1){return t<=n.y9?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function o(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=n.y9?Array.from(t):new Float64Array(t)}function a(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function l(t){return[...t]}function u(t){const e=(0,i.vt)();for(let r=0;r<16;++r)e[r]=t[r];return e}},4902:(t,e,r)=>{r.d(e,{PH:()=>a,sA:()=>o});var n=r(31635),i=r(40608);let s=0;const o=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return r=(0,n.Cg)([(0,i.$)("esri.core.Identifiable")],r),r},a=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return r=(0,n.Cg)([(0,i.$)("esri.core.Identifiable.NumericIdentifiable")],r),r};o(class{})},6867:(t,e,r)=>{r.d(e,{i:()=>c});var n=r(58083),i=r(9093),s=r(38954),o=r(51850),a=r(87317),l=r(91829),u=r(71351);class c{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,s.g)(d,this.ray.direction,this.distance),(0,s.l)(d))}withinDistance(t){return!!h(this)&&this.distanceInRenderSpace<=t}getIntersectionPoint(t){return!!h(this)&&((0,s.g)(d,this.ray.direction,this.distance),(0,s.f)(t,this.ray.origin,d),!0)}getTransformedNormal(t){return(0,s.c)(p,this.normal),p[3]=0,(0,a.t)(p,p,this.transformation),(0,s.c)(t,p),(0,s.n)(t,t)}constructor(t){this.intersector=0,this.normal=(0,o.vt)(),this.transformation=(0,i.vt)(),this._ray=(0,u.vt)(),this.init(t)}init(t){this.distance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=0,(0,u.C)(t,this._ray)}set(t,e,r,a,l,u,c){this.intersector=t,this.distance=r,(0,s.c)(this.normal,a??o.Cb),(0,n.C)(this.transformation,l??i.zK),this.target=e,this.drapedLayerOrder=u,this.renderPriority=c}copy(t){(0,u.C)(t.ray,this._ray),this.intersector=t.intersector,this.distance=t.distance,this.target=t.target,this.drapedLayerOrder=t.drapedLayerOrder,this.renderPriority=t.renderPriority,(0,s.c)(this.normal,t.normal),(0,n.C)(this.transformation,t.transformation)}}function h(t){return null!=t?.distance}const d=(0,o.vt)(),p=(0,l.vt)()},9093:(t,e,r)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(e,{o8:()=>i,vt:()=>n,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:n,fromValues:function(t,e,r,n,i,s,o,a,l,u,c,h,d,p,y,g){return[t,e,r,n,i,s,o,a,l,u,c,h,d,p,y,g]}},Symbol.toStringTag,{value:"Module"}))},29133:(t,e,r)=>{r.d(e,{xH:()=>o,N1:()=>l}),r(38954);var n=r(51850),i=r(71351),s=(r(58083),r(70328),r(97937),r(6867),r(65215));function o(t,e){return a(t)===a(e)}function a(t){if(null==t)return null;const e=null!=t.layer?t.layer.id:"";let r=null;return r=null!=t.objectId?t.objectId:null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid,null==r?null:`o-${e}-${r}`}s.R,s.H,s.R,s.R,s.R,r(49718),r(87582),(0,n.vt)();const l={json:{write:{writer:function(t,e){null!=t?.layer?.objectIdField&&null!=t.attributes&&(e.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}},clonable:"reference"};(0,i.vt)(),(0,n.vt)()},49718:(t,e,r)=>{r(51850),r(6867).i},62885:(t,e,r)=>{r.d(e,{H:()=>s,V:()=>i});var n=r(7762);function i(t,e,r=n.A){return e||(e=new r),e===t||e.destroyed||(e.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?e.addMany(t):t&&e.add(t)),e;var i}function s(t){return t}},64272:(t,e,r)=>{r.d(e,{T:()=>d});var n,i=r(31635),s=r(25482),o=r(88930),a=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),c=r(43937),h=r(98623);let d=class extends s.o{static{n=this}static get allTime(){return p}static get empty(){return y}static fromArray(t){return new n({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=t.start?.getTime()??t.start,i=t.end?.getTime()??t.end;return e===n&&r===i}expandTo(t,e=h.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,t,e));let i=this.end;if(i){const r=(0,o.lL)(i,t,e);i=i.getTime()===r.getTime()?r:(0,o.S1)(r,1,t,e)}return new n({start:r,end:i})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return n.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=t.start?.getTime()??-1/0,s=t.end?.getTime()??1/0;let o,a;return i>=e&&i<=r?o=i:e>=i&&e<=s&&(o=e),r>=i&&r<=s?a=r:s>=e&&s<=r&&(a=s),null==o||null==a||isNaN(o)||isNaN(a)?n.empty:new n({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(t,e,r=h.qU){if(this.isEmpty||this.isAllTime)return this.clone();const i=new n,{start:s,end:a}=this;return null!=s&&(i.start=(0,o.S1)(s,t,e,r)),null!=a&&(i.end=(0,o.S1)(a,t,e,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return p.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new n({start:e,end:r})}};(0,i.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i.Cg)([(0,l.w)("end")],d.prototype,"readEnd",null),(0,i.Cg)([(0,c.K)("end")],d.prototype,"writeEnd",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,l.w)("start")],d.prototype,"readStart",null),(0,i.Cg)([(0,c.K)("start")],d.prototype,"writeStart",null),d=n=(0,i.Cg)([(0,u.$)("esri.time.TimeExtent")],d);const p=new d,y=new d({start:void 0,end:void 0})},65215:(t,e,r)=>{r.d(e,{H:()=>n,R:()=>i});class n{constructor(t){this.layerViewUid=t}}class i extends n{constructor(t,e){super(t),this.graphicUid=e}}},69540:(t,e,r)=>{r.d(e,{O:()=>u,P:()=>c});var n=r(31635),i=r(65008),s=(r(44208),r(4718)),o=(r(53966),r(97768)),a=r(88620),l=r(40608);const u=t=>{const e=t;let r=class extends e{clone(t){const e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const r=e.metadata,n=e.store,i={},l=new Map;for(const e in r){const o=r[e],a=n?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[e];let h=null;if("function"==typeof u)h=u(c,t);else if("reference"===u)h=c;else if(h=(0,s.TU)(c,t),null!=c&&null==h)continue;0===a?l.set(e,h):i[e]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,r]of l)t.set(e,r,0)}return u}};return r=(0,n.Cg)([(0,l.$)("esri.core.Clonable")],r),r},c=u(i.A)},70328:(t,e,r)=>{r.d(e,{BI:()=>b,DC:()=>h,Ej:()=>p,Ie:()=>m,Jt:()=>v,Ne:()=>y,RF:()=>c,aI:()=>M,fA:()=>o,gE:()=>l,hZ:()=>f,iT:()=>d,is:()=>w,qv:()=>A,vI:()=>g,vY:()=>a,v_:()=>O,vt:()=>s,w1:()=>u});var n=r(5443),i=(r(19419),r(4197));function s(t=O){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,e,r,n,i,o,a=s()){return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a[4]=i,a[5]=o,a}function a(t,e=s()){return function(t,e,r,n=s()){return f(n,A),function(t,e,r=0,n=e.length/3){let i=t[0],s=t[1],o=t[2],a=t[3],l=t[4],u=t[5];for(let t=0;t<n;t++)i=Math.min(i,e[r+3*t]),s=Math.min(s,e[r+3*t+1]),o=Math.min(o,e[r+3*t+2]),a=Math.max(a,e[r+3*t]),l=Math.max(l,e[r+3*t+1]),u=Math.max(u,e[r+3*t+2]);t[0]=i,t[1]=s,t[2]=o,t[3]=a,t[4]=l,t[5]=u}(n,t,e,r),n}(t,0,t.length/3,e)}function l(t,e=(0,i.jh)(24)){const[r,n,s,o,a,l]=t;return e[0]=r,e[1]=n,e[2]=s,e[3]=r,e[4]=n,e[5]=l,e[6]=r,e[7]=a,e[8]=s,e[9]=r,e[10]=a,e[11]=l,e[12]=o,e[13]=n,e[14]=s,e[15]=o,e[16]=n,e[17]=l,e[18]=o,e[19]=a,e[20]=s,e[21]=o,e[22]=a,e[23]=l,e}function u(t,e){const r=isFinite(t[2])||isFinite(t[5]);return new n.A(r?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[3]),t[4]=Math.max(t[4],e[4]),t[5]=Math.max(t[5],e[5])}function h(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function d(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.min(t[2],e[2]),t[3]=Math.max(t[3],e[0]),t[4]=Math.max(t[4],e[1]),t[5]=Math.max(t[5],e[2])}function p(t,e=[0,0,0]){return e[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),e[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),e[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),e}function y(t,e,r=t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r!==t&&(r[3]=t[3],r[4]=t[4],r[5]=t[5]),r}function g(t,e,r=t){return r[3]=e[0],r[4]=e[1],r[5]=e[2],r!==t&&(r[0]=t[0],r[1]=t[1],r[2]=t[2]),t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function m(t){return t?f(t,A):s(A)}function v(t,e){return t[0]=e[0],t[1]=e[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=e[2],t[4]=e[3],t[5]=Number.POSITIVE_INFINITY,t}function b(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=Number.NEGATIVE_INFINITY,t[3]=n,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function w(t){return 6===t.length}function M(t,e,r){if(null==t||null==e)return t===e;if(!w(t)||!w(e))return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}const A=[1/0,1/0,1/0,-1/0,-1/0,-1/0],O=[0,0,0,0,0,0];s()},78553:(t,e,r)=>{r.d(e,{D:()=>s,p:()=>i});var n=r(56507);function i(t){const e=(0,n.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79608:(t,e,r)=>{r.d(e,{A:()=>p});var n=r(31635),i=r(69540),s=r(10107),o=(r(44208),r(53966),r(87811),r(40608));let a=class extends i.P{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,n.Cg)([(0,s.MZ)()],a.prototype,"type",void 0),a=(0,n.Cg)([(0,o.$)("esri.analysis.support.AnalysisOriginWebScene")],a);const l=a;var u=r(65008),c=r(4902),h=r(25482);let d=0,p=class extends((0,h.T)((0,i.O)((0,c.sA)(u.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${d++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}equals(t){return!0}};(0,n.Cg)([(0,s.MZ)({type:String,constructOnly:!0,clonable:!1})],p.prototype,"id",void 0),(0,n.Cg)([(0,s.MZ)({clonable:!1,value:null})],p.prototype,"parent",null),(0,n.Cg)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":l}}})],p.prototype,"origin",void 0),p=(0,n.Cg)([(0,o.$)("esri.analysis.Analysis")],p)},87582:(t,e,r)=>{r(6867),r(65215).R},92071:(t,e,r)=>{r.d(e,{P:()=>v,L:()=>b});var n=r(31635),i=r(65008),s=r(76953),o=r(4718),a=r(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new l,r=this._originStores[0];r&&r.forEach((t,r)=>{e.set(r,(0,o.o8)(t),0)});for(let r=2;r<a.AU;r++){const n=this._originStores[r];n&&n.forEach((n,i)=>{t&&t.has(i)||e.set(i,(0,o.o8)(n),r)})}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=7){let n=this._originStores[r];if(n||(n=new Map,this._originStores[r]=n),n.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=r){const n=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),n!==e}return!1}delete(t,e=7){const r=this._originStores[e];if(!r)return;const n=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return n}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],n=r?.get(t),i=this._values.get(t);return this._values.set(t,n),this._propertyOriginMap.set(t,e),i!==n}originOf(t){return this._propertyOriginMap.get(t)||0}isAtOrigin(t,e){return this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(t)}}var u=r(45917),c=r(88620),h=r(40608);const d=t=>{const e=t;let r=class extends e{constructor(...t){super(...t);const e=(0,c.oY)(this),r=e.store,n=new l;e.store=n,(0,s.k)(e,r,n)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const r=p(this),n=(0,a.aB)(e);if("string"==typeof t)return r.get(t,n);const i={};return t.forEach(t=>{i[t]=r.get(t,n)}),i}originOf(t){return(0,a.OL)(this.originIdOf(t))}originIdOf(t){return p(this).originOf(t)}revert(t,e){const r=p(this),n=(0,a.aB)(e),i=(0,c.oY)(this);let s;s="string"==typeof t?"*"===t?r.keys(n):[t]:t,s.forEach(t=>{i.invalidate(t),r.revert(t,n),i.commit(t)})}};return r=(0,n.Cg)([(0,h.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],r),r};function p(t){return(0,c.oY)(t).store}d(i.A);var y=r(16649),g=r(49422);const f=t=>{const e=t;let r=class extends e{constructor(...t){super(...t)}clear(t,e="user"){(0,c.oY)(this).clearOrigin(t,(0,a.aB)(e))}write(t,e){return(0,g.M)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,c.oY)(this).setAtOrigin(t,e,(0,a.aB)(r))}removeOrigin(t){const e=m(this),r=(0,a.aB)(t),n=e.keys(r);for(const t of n)e.originOf(t)===r&&e.set(t,e.get(t,r),7)}updateOrigin(t,e){const r=m(this),n=(0,a.aB)(e),i=(0,y.Jt)(this,t);for(let e=n+1;e<a.AU;++e)r.delete(t,e);r.set(t,i,n)}toJSON(t){return this.write({},t)}};return r=(0,n.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function m(t){return(0,c.oY)(t).store}const v=t=>{const e=f(d(t));let r=class extends e{constructor(...t){super(...t)}};return r=(0,n.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport")],r),r},b=v(i.A)}}]);