@arcgis/core 5.0.0-next.7 → 5.0.0-next.8

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 (286) hide show
  1. package/applications/KnowledgeStudio/resourceSerializationUtils.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{8f56f298e7c1a283f407.js → 0030d68d9edf42b4af57.js} +1 -1
  4. package/assets/esri/core/workers/chunks/01d460398f3ba6767a37.js +1 -0
  5. package/assets/esri/core/workers/chunks/{17d5f8dba6ebb1184506.js → 042cd64e1f4eb326c30f.js} +1 -1
  6. package/assets/esri/core/workers/chunks/05429f9d292a7a714309.js +316 -0
  7. package/assets/esri/core/workers/chunks/{66db5f77e09d25e33951.js → 063905fbf9a0c6586949.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{9486032af3e934d85582.js → 0a5d74414dd02a2fb8e1.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{3815ffa13e7b439bca6e.js → 0d5212f59e9b62c16164.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{73487b9d85e726e9c012.js → 1257c37bf04d39c27b62.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{398f356b11fd33bd3831.js → 136a7d781dad05a7463b.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{1e4e7aedf4b779241a02.js → 15c7c10ff9ac63f0e792.js} +1 -1
  13. package/assets/esri/core/workers/chunks/17784cf16fa91504b9ea.js +1 -0
  14. package/assets/esri/core/workers/chunks/{a395373e3173e6458a56.js → 1ab37e13947d0e2e4181.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{f03635ddf56e2ef90e4c.js → 1d06fcae4c2f02fb1c95.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{020c8913d8e35d63080b.js → 1d15d1b20dc10fde6def.js} +1 -1
  17. package/assets/esri/core/workers/chunks/1dfca37f95f2b968aa54.js +1 -0
  18. package/assets/esri/core/workers/chunks/20975513be0a3a1da286.js +1 -0
  19. package/assets/esri/core/workers/chunks/{285762ff92d5388b6024.js → 2166238a7ad63a2d43c7.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{620a94b54be3ed78350d.js → 22ca80f491e070b2a5e7.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{88074189fa10c335370b.js → 24cd7b84cd0f3de4bff2.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{9fac5a12e878cd745354.js → 28020063048e644f17a5.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{95c594a87b732f5c4979.js → 2a8dff8521e1e6a10cf6.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{7e43c105f1cfc44b7bd0.js → 2fa01bd3f3608616fd7f.js} +1 -1
  25. package/assets/esri/core/workers/chunks/30e220f4f843681a4cdd.js +1 -0
  26. package/assets/esri/core/workers/chunks/{5d3661d1fe46dd29aae9.js → 311b564e44ae637c960d.js} +1 -1
  27. package/assets/esri/core/workers/chunks/31c7ce65e16f7858400f.js +1 -0
  28. package/assets/esri/core/workers/chunks/{8a314b3790313e6dc5db.js → 333b62dad3811cff0f14.js} +1 -1
  29. package/assets/esri/core/workers/chunks/36d067c8d03d7a894f5f.js +1 -0
  30. package/assets/esri/core/workers/chunks/{e31192ae920e3e19b6aa.js → 37c1f155da14de91565a.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{aa54b6f2aba6952af149.js → 38cc18fd93c18815ded0.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{c55c096669677321a227.js → 38cd3648932bf2534b0f.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{ac26e3e77df4302f47a2.js → 3afb83f5de033dda89ec.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{f5e47eea8720ba84665b.js → 3c07aa2015ab1dff5f7b.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{e9311386f58f3cb95c22.js → 42a1e71d09e8583a7327.js} +1 -1
  36. package/assets/esri/core/workers/chunks/443dfe7029ec208f670c.js +1 -0
  37. package/assets/esri/core/workers/chunks/{b75930d60449eceb0f1c.js → 4baf6f6e7ddedb25f806.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{bb5484b5eeacc9ad2ceb.js → 4d0cbf9584446f411a37.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{17103e6542aae53c7301.js → 4e3e27673d0671fc2b58.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{5fc7b61f467f1d60a284.js → 51ab2acac4ecc1ca9c34.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{fc4417d1260b717a9385.js → 52282f767bd0e99ddca0.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{fc06014fb484fc8c697e.js → 53654edd766d9b4ef750.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{90f8b4bda28af43ea019.js → 538f509d7fc8337d37ac.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{ed8a85efbd90241512bb.js → 588533c3abe876f20f62.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{c8733cd621105afab2ac.js → 59d3cac32ad6dad941dc.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{72846fb9c87c6642daf0.js → 5e2ce34def5e053913b2.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{8c056eac35d05d9524b7.js → 5f29422a051311ef9b3c.js} +1 -1
  48. package/assets/esri/core/workers/chunks/5f402b3c00bc4afc77b2.js +1 -0
  49. package/assets/esri/core/workers/chunks/{ff35a077ac6776469805.js → 61d970ed75c2c358b1e9.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{7a6a96edc892d7060b7d.js → 629127877042ad784ad2.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{fd2efd1d1cf9d95a87e6.js → 63a6f3e70d2b6ea57e40.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{90b2b43b8b54c9a1ec35.js → 664ae441617afe4b17ec.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{c4e4da69969499a89a2c.js → 695cdef5057e5461078a.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{4c5a7249a311070d8f43.js → 6af18d7a0d314d7c1756.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{f35aaa04cca676c2d3f8.js → 6b59f94040c7d2f6728a.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{811d4c46c75cf6a63e78.js → 6bb7dbc46787b8e34bd9.js} +1 -1
  57. package/assets/esri/core/workers/chunks/6d9f2b113d6bde936a04.js +1 -0
  58. package/assets/esri/core/workers/chunks/{5132ca68e8c7af111a47.js → 6e22b02a9715c10578d0.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{cd1930f08e1fc8b30b14.js → 6ee2f0f708494102a493.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{f0e0a63962784acb4ba1.js → 6f0aec7428021e440ac9.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{deb2854bb7d082a26f52.js → 7005d956c990a04ee8b2.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{a3991ae8caa713d4ddcd.js → 731f7b552dde0fb325cd.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{464d42bebb365287808d.js → 773f2c6c9d38db76dfed.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{3f3d492f1093b7832aab.js → 7803495f8862d9025bcd.js} +1 -1
  65. package/assets/esri/core/workers/chunks/78694ad8229347903f41.js +1 -0
  66. package/assets/esri/core/workers/chunks/7e4c14d4502e3f06d94b.js +1 -0
  67. package/assets/esri/core/workers/chunks/{7544316a75dbd981aea6.js → 86cb097deec50b0da3f3.js} +1 -1
  68. package/assets/esri/core/workers/chunks/8a40ed2ee4b032822c30.js +1 -0
  69. package/assets/esri/core/workers/chunks/{09de8be660174a229efb.js → 8cbb28476151a37ae958.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{62a49cfd9a2508950e9f.js → 8fedfd33c37172dba6bf.js} +1 -1
  71. package/assets/esri/core/workers/chunks/90cbd627d4113db3b686.js +1 -0
  72. package/assets/esri/core/workers/chunks/91aa1157da32f650983b.js +1 -0
  73. package/assets/esri/core/workers/chunks/{e7638b9ab6674bc8a18f.js → 91dfd29e2dba200eab09.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{794748fd1edc29a621cd.js → 9698f36c143953a975d4.js} +1 -1
  75. package/assets/esri/core/workers/chunks/98584902c9db6faa3e4d.js +1 -0
  76. package/assets/esri/core/workers/chunks/9e5e05d6430712b0b1bc.js +1 -0
  77. package/assets/esri/core/workers/chunks/{6f4bd0ee85e7e5a74340.js → a31635a6366347dcef0f.js} +1 -1
  78. package/assets/esri/core/workers/chunks/a6ee40dfc471d6612f3c.js +1 -0
  79. package/assets/esri/core/workers/chunks/{ccc0da0e01f023c8aa1f.js → a876d6159ca120c1567e.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{a4db5c9a90107e097df8.js → af47272aaaef0ea57e71.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{d1fe816b6990918c13c7.js → afc13d5b842275db7dbc.js} +1 -1
  82. package/assets/esri/core/workers/chunks/aff8e40a641c6822af1d.js +1 -0
  83. package/assets/esri/core/workers/chunks/{22d6b8102e75bdef204c.js → b0365cbc3d2a41969e3b.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{79968c183135281d2a6f.js → b3613a38178cad2ebc82.js} +1 -1
  85. package/assets/esri/core/workers/chunks/b548910e820d731ffe8a.js +1 -0
  86. package/assets/esri/core/workers/chunks/{5bd36dbf46c25bd961c8.js → b708792c84620b73c847.js} +1 -1
  87. package/assets/esri/core/workers/chunks/c29486c4eeb3e72effff.js +1 -0
  88. package/assets/esri/core/workers/chunks/{2b94623cabc6ae0f86ce.js → c37f7756d48ff9af2656.js} +1 -1
  89. package/assets/esri/core/workers/chunks/{1c52999a6392370844a6.js → c4090a60d149a5962179.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{73c1d43070b4fe1e5c1e.js → c8e686efe344a33a0258.js} +1 -1
  91. package/assets/esri/core/workers/chunks/{6bb5158de43c4b59107f.js → c9b16fd41cd59d452522.js} +1 -1
  92. package/assets/esri/core/workers/chunks/ce98416437cc1a89d8ea.js +1 -0
  93. package/assets/esri/core/workers/chunks/{279366e6b743f9680603.js → cfff044859e6e6dcc75d.js} +1 -1
  94. package/assets/esri/core/workers/chunks/d07f911d40bf05fc0306.js +1 -0
  95. package/assets/esri/core/workers/chunks/{8833c3d168951be4bf20.js → d0d79dd3e88eecf5c314.js} +1 -1
  96. package/assets/esri/core/workers/chunks/{76ae1702fecc7ad7017c.js → d1e97cce5047f1791e22.js} +1 -1
  97. package/assets/esri/core/workers/chunks/{17acde0245ecd956306c.js → d233cc33497a663450f9.js} +1 -1
  98. package/assets/esri/core/workers/chunks/{36fe6b8228e622407ec2.js → d8793eead02491136841.js} +1 -1
  99. package/assets/esri/core/workers/chunks/{dedc4583b5f32a278124.js → d88f2fe680b8d5603ef8.js} +1 -1
  100. package/assets/esri/core/workers/chunks/{4d599008e1ea42321b37.js → da24ad57747714ac5eda.js} +1 -1
  101. package/assets/esri/core/workers/chunks/{facb3886714222772ab2.js → ddfd01bb9ba8577c3ffc.js} +1 -1
  102. package/assets/esri/core/workers/chunks/{50d9f69d5255af4b29bb.js → df5afa06c6deb6b40109.js} +1 -1
  103. package/assets/esri/core/workers/chunks/e25c4b4a03270d48f408.js +1 -0
  104. package/assets/esri/core/workers/chunks/e3294318daf1192b8319.js +1 -0
  105. package/assets/esri/core/workers/chunks/{da573ecc68e6aa8f6da9.js → e767f83f9e2de6650f80.js} +1 -1
  106. package/assets/esri/core/workers/chunks/e9d4cae2144974489d6e.js +1 -0
  107. package/assets/esri/core/workers/chunks/{91df8638b8b904e6d8c5.js → ead8d0cbcebd12dbfad7.js} +1 -1
  108. package/assets/esri/core/workers/chunks/{f9324e88c359c03f35aa.js → eb9c166db0db6fa60e95.js} +1 -1
  109. package/assets/esri/core/workers/chunks/{8ffd4710d168c2fcfd96.js → ebf23b46db56aaa88841.js} +1 -1
  110. package/assets/esri/core/workers/chunks/{bc241c7735e4efba734a.js → f34e3fa0c5b28531e289.js} +1 -1
  111. package/assets/esri/core/workers/chunks/f64037a88ab03662dc2a.js +1 -0
  112. package/assets/esri/core/workers/chunks/{d97fadbc69e055d183a0.js → f77f4bd6a577b92cf66f.js} +1 -1
  113. package/assets/esri/core/workers/chunks/{16d66770ef841564ee3f.js → f89c90f98c85667b0ebc.js} +1 -1
  114. package/assets/esri/core/workers/chunks/{4c4227b0ea21a5e429ab.js → fb192de7e4fa152342bb.js} +1 -1
  115. package/assets/esri/core/workers/chunks/fbd8d2f61f8a15bcf3db.js +1 -0
  116. package/assets/esri/core/workers/chunks/{2f78861afe0e9037dd8d.js → fe49321dca22dc60d105.js} +1 -1
  117. package/assets/esri/core/workers/chunks/{fe77ae6cf232a7a3298e.js → fef45bc59c71f88c60b5.js} +1 -1
  118. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  119. package/chunks/MultiPathImpl.js +1 -1
  120. package/chunks/Point2D.js +1 -1
  121. package/chunks/UnitFactory.js +1 -1
  122. package/config.js +1 -1
  123. package/core/QueueProcessor.js +1 -1
  124. package/core/SetUtils.js +1 -1
  125. package/core/has.js +1 -1
  126. package/geometry/operators/gx/operatorOffset.js +1 -1
  127. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  128. package/identity/Credential.js +1 -1
  129. package/identity/IdentityManager.js +1 -1
  130. package/identity/IdentityManagerBase.js +1 -1
  131. package/interfaces.d.ts +67 -27
  132. package/kernel.js +1 -1
  133. package/layers/FeatureLayer.js +1 -1
  134. package/layers/SceneLayer.js +1 -1
  135. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  136. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  137. package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
  138. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  139. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  140. package/layers/support/fieldConfigUtils.js +1 -1
  141. package/layers/support/rasterDatasets/pixelReader.js +1 -1
  142. package/layers/support/source/DataLayerSource.js +1 -1
  143. package/package.json +3 -3
  144. package/popup/FieldInfo.js +1 -1
  145. package/processRequest.js +5 -0
  146. package/request.js +1 -1
  147. package/requestConfig.js +5 -0
  148. package/requestQueue.js +5 -0
  149. package/rest/query/executeForCount.js +1 -1
  150. package/rest/query/executeForExtent.js +1 -1
  151. package/rest/query/executeForIds.js +1 -1
  152. package/rest/query/executeQueryJSON.js +1 -1
  153. package/rest/query/executeQueryPBF.js +1 -1
  154. package/rest/query/operations/query.js +1 -1
  155. package/rest/support/BaseImageMeasureResultValue.js +5 -0
  156. package/rest/support/ImageAreaResult.js +1 -1
  157. package/rest/support/ImageDistanceResult.js +1 -1
  158. package/rest/support/ImageHeightResult.js +1 -1
  159. package/rest/support/ImageMeasureResultAngleValue.js +5 -0
  160. package/rest/support/ImageMeasureResultAreaValue.js +5 -0
  161. package/rest/support/ImageMeasureResultLengthValue.js +5 -0
  162. package/rest/support/ImageWithType.js +5 -0
  163. package/rest/support/imageMeasureUtils.js +1 -1
  164. package/support/revision.js +1 -1
  165. package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
  166. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  167. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  168. package/views/2d/layers/features/schema/SourceSchema.js +1 -1
  169. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  170. package/views/2d/layers/features/sources/strategies/AFeatureLoadStrategy.js +1 -1
  171. package/views/2d/layers/features/sources/strategies/ALoadStrategy.js +1 -1
  172. package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
  173. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  174. package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
  175. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  176. package/views/{3d/support/ImageWithType.js → 2d/layers/features/sources/strategies/constants.js} +1 -1
  177. package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
  178. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  179. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  180. package/views/3d/analysis/VolumeMeasurement/volumeMeasurementErrors.js +1 -1
  181. package/views/3d/glTF/DefaultLoadingContext.js +1 -1
  182. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  183. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  184. package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
  185. package/views/3d/layers/ElevationLayerView3D.js +1 -1
  186. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  187. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  188. package/views/3d/layers/graphics/FeatureGraphics3DGraphicsPipeline.js +1 -1
  189. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  190. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  191. package/views/3d/layers/graphics/Graphics3DSymbolCreationContext.js +1 -1
  192. package/views/3d/layers/graphics/ObjectResourceCache.js +1 -1
  193. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  194. package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
  195. package/views/3d/layers/graphics/pipeline/fetching/Tile3DFetcher.js +1 -1
  196. package/views/3d/layers/graphics/wosrLoader.js +1 -1
  197. package/views/3d/layers/i3s/I3SDataRequester.js +5 -0
  198. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  199. package/views/3d/layers/i3s/I3SNodeLoader.js +1 -1
  200. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  201. package/views/3d/layers/support/FeatureTile.js +1 -1
  202. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  203. package/views/3d/layers/support/MediaLayerInteractionOptions.js +1 -1
  204. package/views/3d/layers/support/MediaLayerInteractionReshapeOptions.js +5 -0
  205. package/views/3d/layers/support/SampledGeometryMaxDistanceRatio.js +5 -0
  206. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  207. package/views/3d/layers/support/fetchTile.js +1 -1
  208. package/views/3d/support/ResourceController.js +1 -1
  209. package/views/3d/support/SharedSymbolResources.js +1 -1
  210. package/views/3d/support/StreamTextureCollection.js +1 -1
  211. package/views/3d/terrain/TerrainSurface.js +1 -1
  212. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  213. package/views/3d/webgl-engine/lighting/SceneLighting.js +1 -1
  214. package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +6 -0
  215. package/views/SceneView.js +1 -1
  216. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  217. package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
  218. package/views/draw/MultipointDrawAction.js +1 -1
  219. package/views/draw/PointDrawAction.js +1 -1
  220. package/views/draw/PolygonDrawAction.js +1 -1
  221. package/views/draw/PolylineDrawAction.js +1 -1
  222. package/views/draw/SegmentDrawAction.js +1 -1
  223. package/views/draw/input/CursorUpdateEvents.js +5 -0
  224. package/views/draw/input/DrawCompleteEvent.js +5 -0
  225. package/views/draw/input/VertexAddEvent.js +5 -0
  226. package/views/draw/input/VertexRemoveEvent.js +5 -0
  227. package/views/draw/input/VertexUpdateEvent.js +5 -0
  228. package/views/interactive/editGeometry/CheckpointingEditGeometryOperations.js +5 -0
  229. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  230. package/views/interactive/editGeometry/operations/ReplayableAppendVertex.js +5 -0
  231. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  232. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
  233. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
  234. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  235. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTilesSimple.js +1 -1
  236. package/webscene/spec-certification/api.js +1 -1
  237. package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
  238. package/widgets/CoordinateConversion.js +1 -1
  239. package/widgets/Editor.js +1 -1
  240. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  241. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  242. package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
  243. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  244. package/widgets/PanoramicViewer/PanoramicZoomManager.js +1 -1
  245. package/widgets/PanoramicViewer/support/PanoramicMeshManager.js +1 -1
  246. package/widgets/PanoramicViewer/support/PanoramicTileNode.js +1 -1
  247. package/widgets/PanoramicViewer/support/PanoramicTilePyramid.js +1 -1
  248. package/widgets/PanoramicViewer/support/getVisibleTiles.js +5 -0
  249. package/widgets/Sketch/CreateToolVisibilityMap.js +5 -0
  250. package/widgets/Sketch/SelectionToolVisibilityMap.js +5 -0
  251. package/widgets/Sketch/VisibleElements.js +1 -1
  252. package/widgets/Sketch.js +1 -1
  253. package/assets/esri/core/workers/chunks/02e69f0c63d97661da60.js +0 -1
  254. package/assets/esri/core/workers/chunks/05eee334d58a0b9f6316.js +0 -1
  255. package/assets/esri/core/workers/chunks/087973e7c4fea5fcfa5e.js +0 -1
  256. package/assets/esri/core/workers/chunks/326a76a4e80269d4029d.js +0 -1
  257. package/assets/esri/core/workers/chunks/377a66034e7c1bad5599.js +0 -1
  258. package/assets/esri/core/workers/chunks/4442817beb7a76c95770.js +0 -1
  259. package/assets/esri/core/workers/chunks/459a67928bde4a62b6a4.js +0 -1
  260. package/assets/esri/core/workers/chunks/53bd8996e8812f1ad7b2.js +0 -1
  261. package/assets/esri/core/workers/chunks/557960763695abee4a83.js +0 -1
  262. package/assets/esri/core/workers/chunks/6201356f7f91e5c06425.js +0 -1
  263. package/assets/esri/core/workers/chunks/6c3b99209d542efa64d4.js +0 -1
  264. package/assets/esri/core/workers/chunks/7413e582bc2b16af6a0f.js +0 -1
  265. package/assets/esri/core/workers/chunks/7461124454bfb4fb6474.js +0 -1
  266. package/assets/esri/core/workers/chunks/75bf27271a31e26e1b21.js +0 -1
  267. package/assets/esri/core/workers/chunks/7aaaebbabee27690283c.js +0 -1
  268. package/assets/esri/core/workers/chunks/7c4a63aeead2505d6f02.js +0 -1
  269. package/assets/esri/core/workers/chunks/90250e9239c173aace88.js +0 -1
  270. package/assets/esri/core/workers/chunks/9786f91455350eaae493.js +0 -1
  271. package/assets/esri/core/workers/chunks/99859dce1925b406ccd0.js +0 -1
  272. package/assets/esri/core/workers/chunks/9c5cbf8810f37b1a4718.js +0 -1
  273. package/assets/esri/core/workers/chunks/9e8dceef4c961f56940d.js +0 -1
  274. package/assets/esri/core/workers/chunks/a06bac9b8f9e18874de8.js +0 -316
  275. package/assets/esri/core/workers/chunks/a712cdff78fc826acd8c.js +0 -1
  276. package/assets/esri/core/workers/chunks/d305a21666b1ed5bf33d.js +0 -1
  277. package/assets/esri/core/workers/chunks/d40f57f9fc47f9a9f97c.js +0 -1
  278. package/assets/esri/core/workers/chunks/e82f5437bd66779c6740.js +0 -1
  279. package/assets/esri/core/workers/chunks/f4d0ae6be1b3984228d0.js +0 -1
  280. package/assets/esri/core/workers/chunks/f6c8beb60f6d29945a2e.js +0 -1
  281. package/assets/esri/core/workers/chunks/f746e3f7ebff2bbdf333.js +0 -1
  282. package/views/3d/layers/i3s/I3SStreamDataController.js +0 -5
  283. package/views/3d/support/StreamDataLoader.js +0 -5
  284. package/views/3d/support/StreamDataRequester.js +0 -5
  285. package/views/3d/support/downloadSlots.js +0 -5
  286. package/views/draw/input/DrawEvents.js +0 -5
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7136,8999],{159:(e,t,n)=>{n.d(t,{A:()=>u});var i,r=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108)),a=n(99157);let u=i=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],u.prototype,"steps",void 0),u=i=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},4197:(e,t,n)=>{n.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var i=n(34275),r=n(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function l(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function u(e){const t=(0,r.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},9093:(e,t,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>r,vt:()=>i,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:r,create:i,fromValues:function(e,t,n,i,r,s,o,l,a,u,c,f,p,h,m,d){return[e,t,n,i,r,s,o,l,a,u,c,f,p,h,m,d]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>r});var i=n(37539);function r(e,t,n,r,s,o,l=Math.floor(e.length/3)){const a=(0,i.jd)(t,s);if(null==a)return!1;if(a===i.pO){if(e===r&&n===o)return!0;const t=n+3*l;for(let i=n,s=o;i<t;i++,s++)r[s]=e[i];return!0}const u=n+3*l;for(let t=n,i=o;t<u;t+=3,i+=3)a(e,t,r,i);return!0}},13069:(e,t,n)=>{n.d(t,{AG:()=>l,lk:()=>r,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function r(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17136:(e,t,n)=>{n.d(t,{Y_:()=>I,O7:()=>T,el:()=>A});var i=n(92602),r=n(69052),s=n(49186),o=n(53966),l=n(39829),a=n(82799),u=n(16930),c=n(80754),f=n(21325),p=n(28735),h=n(78888),m=n(65864),d=n(2272),y=n(84952),g=n(92300);const M=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function x(e){return"polygon"===e[0].type}function w(e){return"polyline"===e[0].type}function b(e,t,n){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof l.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw M().error(e),new s.A("internal:geometry",e)}const n=(0,c.r8)(e),i=[];for(const e of n){const n=[];i.push(n),n.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const r=e[i][0],s=e[i][1],o=e[i+1][0],l=e[i+1][1],a=Math.sqrt((o-r)*(o-r)+(l-s)*(l-s)),u=(l-s)/a,c=(o-r)/a,f=a/t;if(f>1){for(let e=1;e<=f-1;e++){const i=e*t,o=c*i+r,l=u*i+s;n.push([o,l])}const e=(a+Math.floor(f-1)*t)/2,i=c*e+r,o=u*e+s;n.push([i,o])}n.push([o,l])}}return function(e){return"polygon"===e.type}(e)?new l.A({rings:i,spatialReference:e.spatialReference}):new a.A({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,p.ci)(t,!0)}return n&&(e=(0,c.kS)(e,n)),e}function v(e,t,n){if(Array.isArray(e)){const i=e[0];if(i>t){const n=(0,c.kd)(i,t);e[0]=i+n*(-2*t)}else if(i<n){const t=(0,c.kd)(i,n);e[0]=i+t*(-2*n)}}else{const i=e.x;if(i>t){const n=(0,c.kd)(i,t);e=e.clone().offset(n*(-2*t),0)}else if(i<n){const t=(0,c.kd)(i,n);e=e.clone().offset(t*(-2*n),0)}}return e}function R(e,t){let n=-1;for(let i=0;i<t.cutIndexes.length;i++){const r=t.cutIndexes[i],s=t.geometries[i],o=(0,c.r8)(s);for(let e=0;e<o.length;e++){const t=o[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const i=t[e][0];n=i>n?i:n}n=Number(n.toFixed(9));const i=-360*(0,c.kd)(n,180);for(let n=0;n<t.length;n++){const t=s.getPoint(e,n);s.setPoint(e,n,t.clone().offset(i,0))}return!0}})}if(r===n){if(x(e))for(const t of(0,c.r8)(s))e[r]=e[r].addRing(t);else if(w(e))for(const t of(0,c.r8)(s))e[r]=e[r].addPath(t)}else n=r,e[r]=s}return e}async function A(e,t,n){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&M().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??i.A.geometryServiceUrl;let s,o,u,x,w,T,F,I,S=0;const _=[],j=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,o=(0,f.Vp)(s),u=s.isWebMercator,T=u?102100:4326,x=c.j7[T].maxX,w=c.j7[T].minX,F=c.j7[T].plus180Line,I=c.j7[T].minus180Line),o)if("mesh"===t.type)j.push(t);else if("point"===t.type)j.push(v(t.clone(),x,w));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>v(e,x,w)),j.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,o);j.push(e.rings?new l.A(e):e)}else if(t.extent){const e=t.extent,n=(0,c.kd)(e.xmin,w)*(2*x);let i=0===n?t.clone():(0,c.kS)(t.clone(),n);e.offset(n,0);let{xmin:r,xmax:s}=e;r=Number(r.toFixed(9)),s=Number(s.toFixed(9)),e.intersects(F)&&s!==x?(S=s>S?s:S,i=b(i,u),_.push(i),j.push("cut")):e.intersects(I)&&r!==w?(S=s*(2*x)>S?s*(2*x):S,i=b(i,u,360),_.push(i),j.push("cut")):j.push(i)}else j.push(t.clone());else j.push(t);else j.push(t);let N=(0,c.kd)(S,x),O=-90;const P=N,Z=new a.A;for(;N>0;){const e=360*N-180;Z.addPath([[e,O],[e,-1*O]]),O*=-1,N--}if(_.length>0&&P>0){const t=R(_,await async function(e,t,n,i){const r=(0,d.Dl)(e),s=t[0].spatialReference,o={...i,responseType:"json",query:{...r.query,f:"json",sr:(0,f.YX)(s),target:JSON.stringify({geometryType:(0,m.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},l=await(0,h.A)(r.path+"/cut",o),{cutIndexes:a,geometries:u=[]}=l.data;return{cutIndexes:a,geometries:u.map(e=>{const t=(0,m.rS)(e);return t.spatialReference=s,t})}}(r,_,Z,n)),i=[],s=[];for(let n=0;n<j.length;n++){const r=j[n];if("cut"!==r)s.push(r);else{const r=t.shift(),o=e[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(i.push(r),s.push("simplify")):s.push(u?(0,p.Gh)(r):r)}}if(!i.length)return s;const o=await async function(e,t,n){const i="string"==typeof e?(0,y.An)(e):e,r=t[0].spatialReference,s=(0,m.$B)(t[0]),o={...n,query:{...i.query,f:"json",sr:(0,f.YX)(r),geometries:JSON.stringify((0,g.X)(t))}},{data:l}=await(0,h.A)(i.path+"/simplify",o);return(0,g.V)(l.geometries,s,r)}(r,i,n),l=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?l.push(t):l.push(u?(0,p.Gh)(o.shift()):o.shift())}return l}const G=[];for(let e=0;e<j.length;e++){const t=j[e];if("cut"!==t)G.push(t);else{const e=_.shift();G.push(!0===u?(0,p.Gh)(e):e)}}return G}function T(e,t,n){const i=(0,f.Vp)(n);if(null==i)return e;const[r,s]=i.valid,o=2*s;let l=0,a=0;t>s?l=Math.ceil(Math.abs(t-s)/o):t<r&&(l=-Math.ceil(Math.abs(t-r)/o)),e>s?a=Math.ceil(Math.abs(e-s)/o):e<r&&(a=-Math.ceil(Math.abs(e-r)/o));let u=e+(l-a)*o;const c=u-t;return c>s?u-=o:c<r&&(u+=o),u}function F(e){const t=(0,f.Vp)(e);if(null==t)return null;const[n,i]=t.valid;return new r.hr(n,i)}const I=F(u.A.WGS84);F(u.A.WebMercator)},22671:(e,t,n)=>{n.d(t,{A:()=>M});var i,r=n(31635),s=n(52106),o=n(66552),l=n(25482),a=n(4718),u=n(10107),c=(n(44208),n(53966),n(36005)),f=n(64108),p=n(43937),h=n(16930),m=n(65864),d=n(50498),y=n(20437);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=i=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,s.A)}writeGeometryType(e,t,n,i){if(e)return void g.write(e,t,n,i);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void g.write(e.geometry.type,t,n,i)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,i=(0,m.rS)(e);return i&&!n&&t.spatialReference&&(i.spatialReference=h.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(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 n=0;n<t.features.length;n++){const i=t.features[n];if(i.geometry){const t=e?.[n];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,n],translate:[i,r]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((r-e)/n));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[i,r],scale:[s,o]}=n;let l=null,a=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=n;l=n=>n*t+e}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=n;a=n=>null==n?n:n*t+e}const u=this._getHydrationFunction(e,e=>e*s+i,e=>r-e*o,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,n){const i=h.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const s=e[t],o=n.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=i);const a=s.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],n=a[e],r=n?.spatialReference;null==t||r||(t.spatialReference=i)}r.push(o)}return r}_quantizePoints(e,t,n){let i,r;const s=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=n(l[1]);e===i&&o===r||(s.push([e-i,o-r]),i=e,r=o)}else i=t(l[0]),r=n(l[1]),s.push([i,r])}return s.length>0?s:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,m.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,n);o&&r.push(o)}return r.length>0?((0,m.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,n);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n,i,r){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,m.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,r=i.length;e<r;e++){const r=i[e];e>0?(o+=r[0],l+=r[1]):(o=r[0],l=r[1]),r[0]=t(o),r[1]=n(l)}}if(i&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=i(n[2]),n[3]=r(n[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=i(n[2])}}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],l+=i[1]):(o=i[0],l=i[1]),i[0]=t(o),i[1]=n(l)}if(i&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=r(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2])}}:null}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,r.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],M.prototype,"features",void 0),(0,r.Cg)([(0,c.w)("features")],M.prototype,"readFeatures",null),(0,r.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,r.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],M.prototype,"geometryType",void 0),(0,r.Cg)([(0,p.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,r.Cg)([(0,u.MZ)({types:d.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,r.Cg)([(0,c.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,r.Cg)([(0,u.MZ)({type:h.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,r.Cg)([(0,p.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=i=(0,r.Cg)([(0,f.$)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},37539:(e,t,n)=>{n.d(t,{pO:()=>d,jd:()=>p,Tp:()=>h,w5:()=>f});var i=n(34727),r=n(83047),s=n(73941),o=n(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=n(21325);const f={2:{5:d,7:null,9:null,10:d,1:R,6:null,8:null,0:null,3:g,11:M,2:d,4:S},5:{5:d,7:null,9:null,10:d,1:R,6:null,8:null,0:null,3:g,11:M,2:d,4:S},7:{5:null,7:d,9:null,10:d,1:null,6:v,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:b,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(e,t,n,i){const r=e[t]/Z,s=P-2*Math.atan(Math.exp(-e[t+1]/Z)),o=Z+e[t+2],l=Math.cos(s)*o;n[i]=Math.cos(r)*l,n[i+1]=Math.sin(r)*l,n[i+2]=Math.sin(s)*o},6:null,8:null,0:null,3:d,11:function(e,t,n,i){y(e,t,n,i),M(n,i,n,i)},2:y,4:function(e,t,n,i){y(e,t,n,i),S(n,i,n,i)}},4:{5:_,7:null,9:null,10:_,1:function(e,t,n,i){_(e,t,n,i),R(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){_(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){_(e,t,n,i),M(n,i,n,i)},2:_,4:d},1:{5:I,7:null,9:null,10:I,1:d,6:null,8:null,0:null,3:function(e,t,n,i){I(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){I(e,t,n,i),M(n,i,n,i)},2:I,4:function(e,t,n,i){I(e,t,n,i),S(n,i,n,i)}},6:{5:null,7:F,9:null,10:F,1:null,6:d,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:d,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:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:R,6:v,8:b,0:null,3:g,11:M,2:d,4:S},11:{5:x,7:null,9:null,10:x,1:function(e,t,n,i){x(e,t,n,i),R(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){x(e,t,n,i),g(n,i,n,i)},11:d,2:x,4:function(e,t,n,i){x(e,t,n,i),S(n,i,n,i)}}};function p(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const n=m(e,j.source),i=m(t,j.dest);return 0===n&&0===i?(0,c.aI)(e,t)?j.projector=d:j.projector=null:j.projector=f[n][i],j}function m(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function d(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t])}function y(e,t,n,i){n[i]=O*(e[t]/Z),n[i+1]=O*(P-2*Math.atan(Math.exp(-e[t+1]/Z))),n[i+2]=e[t+2]}function g(e,t,n,r){!function(e,t,n,r,s){const o=.4999999*Math.PI,l=(0,i.qE)(N*e[t+1],-o,o),a=Math.sin(l);n[r++]=N*e[t]*s.radius,n[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]}(e,t,n,r,o.$O)}function M(e,t,n,i){n[i]=e[t]*G,n[i+1]=e[t+1]*G,n[i+2]=e[t+2]}function x(e,t,n,i){n[i]=e[t]*z,n[i+1]=e[t+1]*z,n[i+2]=e[t+2]}function w(e,t,n,i,r){const s=r+e[t+2],o=N*e[t+1],l=N*e[t],a=Math.cos(o)*s;n[i]=Math.cos(l)*a,n[i+1]=Math.sin(l)*a,n[i+2]=Math.sin(o)*s}function b(e,t,n,i){w(e,t,n,i,o.Sw.radius)}function v(e,t,n,i){w(e,t,n,i,o.sH.radius)}function R(e,t,n,i){w(e,t,n,i,o.$O.radius)}function A(e,t,n,r,s){const o=e[t],l=e[t+1],a=e[t+2],u=Math.sqrt(o*o+l*l+a*a),c=(0,i.YN)(a/(0===u?1:u)),f=Math.atan2(l,o);n[r++]=O*f,n[r++]=O*c,n[r]=u-s}function T(e,t,n,i){A(e,t,n,i,o.Sw.radius)}function F(e,t,n,i){A(e,t,n,i,o.sH.radius)}function I(e,t,n,i){A(e,t,n,i,o.$O.radius)}function S(e,t,n,i){!function(e,t,n,i,r){const s=N*e[t],o=N*e[t+1],l=e[t+2],a=Math.sin(o),u=Math.cos(o),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[i++]=(c+l)*u*Math.cos(s),n[i++]=(c+l)*u*Math.sin(s),n[i++]=(c*(1-r.eccentricitySquared)+l)*a}(e,t,n,i,o.$O)}function _(e,t,n,i){const r=u,s=e[t],l=e[t+1],a=e[t+2];let c,f,p,h,m,d,y,g,M,x,w,b,v,R,A,T,F,I,S,_,j;c=Math.abs(a),f=s*s+l*l,p=Math.sqrt(f),h=f+a*a,m=Math.sqrt(h),_=Math.atan2(l,s),d=a*a/h,y=f/h,R=r.a2/m,A=r.a3-r.a4/m,y>.3?(g=c/m*(1+y*(r.a1+R+d*A)/m),S=Math.asin(g),x=g*g,M=Math.sqrt(1-x)):(M=p/m*(1-d*(r.a5-R-y*A)/m),S=Math.acos(M),x=1-M*M,g=Math.sqrt(x)),w=1-o.$O.eccentricitySquared*x,b=o.$O.radius/Math.sqrt(w),v=r.a6*b,R=p-b*M,A=c-v*g,F=M*R+g*A,T=M*A-g*R,I=T/(v/w+F),S+=I,j=F+T*I/2,a<0&&(S=-S),n[i++]=O*_,n[i++]=O*S,n[i]=j}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},N=(0,i.kU)(1),O=(0,i.KJ)(1),P=.5*Math.PI,Z=o.$O.radius,G=Z*Math.PI/180,z=180/(Z*Math.PI)},50498:(e,t,n)=>{n.d(t,{Ye:()=>f,gy:()=>c,yR:()=>p});var i=n(66552),r=n(5443),s=n(91075),o=n(48526),l=n(86738),a=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),f=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,n)=>{n.d(t,{A:()=>v});var i,r=n(31635),s=n(37838),o=n(69540),l=n(51447),a=n(25482),u=n(53966),c=n(36708),f=n(24326),p=n(10107),h=(n(44208),n(87811),n(64108)),m=n(12195),d=n(65864),y=n(50498),g=n(55156),M=n(60950),x=n(54339),w=n(33910);function b(e){if(null==e)return null;const t={};for(const n in e){const i=e[n];i&&(t[n]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let v=class extends((0,o.OU)(a.o)){static{i=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,f.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 i({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=(0,M.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,x.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,x.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:b(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(r.action=i),"attributes"===e&&(r.attributeName=i),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,c.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,c.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,r.Cg)([(0,p.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const i=(0,d.rS)(e[n]);i&&(t[n]=i)}return 0!==Object.keys(t).length?t:null}}})],v.prototype,"aggregateGeometries",null),(0,r.Cg)([(0,p.MZ)({value:null})],v.prototype,"attributes",null),(0,r.Cg)([(0,p.MZ)({value:null,types:y.yR,json:{read:d.rS}})],v.prototype,"geometry",null),(0,r.Cg)([(0,p.MZ)({type:Boolean})],v.prototype,"isAggregate",void 0),(0,r.Cg)([(0,p.MZ)({clonable:!1})],v.prototype,"layer",void 0),(0,r.Cg)([(0,p.MZ)({clonable:"reference"})],v.prototype,"origin",void 0),(0,r.Cg)([(0,p.MZ)({type:s.A,value:null})],v.prototype,"popupTemplate",null),(0,r.Cg)([(0,p.MZ)({clonable:"reference"})],v.prototype,"sourceLayer",void 0),(0,r.Cg)([(0,p.MZ)({value:null,types:w.Es})],v.prototype,"symbol",null),(0,r.Cg)([(0,p.MZ)({clonable:!1,json:{read:!1,write:!1}})],v.prototype,"_version",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,value:!0})],v.prototype,"visible",null),v=i=(0,r.Cg)([(0,h.$)("esri.Graphic")],v)},54339:(e,t,n)=>{function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const i of t.fieldNames)n.push(e.attributes[i]??null);return JSON.stringify(n)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>i,r:()=>r})},55156:(e,t,n)=>{n.d(t,{I:()=>r,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&i in t?e[i]:void 0;var t}},62815:(e,t,n)=>{n.d(t,{N:()=>o});var i=n(83047),r=n(73941),s=n(21325);function o(e,t,n){if(null==t||null==n||n.vcsWkid||(0,s.aI)(t,n)||(0,r.xP)(t)||(0,r.xP)(n))return null;const o=(0,i.G9)(t)/(0,i.G9)(n);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},69052:(e,t,n)=>{n.d(t,{hr:()=>r,ie:()=>a,uC:()=>l});var i=n(34727);class r{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return s(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+o(this.range,e-t,n)}minimalMonotonic(e,t,n){return s(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(i)?n:i}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function s(e,t,n,i,r=0,s=!1){return(i-=r)<t?i+=o(e,t-i):i>n&&(i-=o(e,i-n)),s&&i===n&&(i=t),i+r}function o(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const l=new r(0,2*Math.PI),a=(new r(-Math.PI,Math.PI),new r(0,360))},70328:(e,t,n)=>{n.d(t,{BI:()=>x,DC:()=>f,Ej:()=>h,Ie:()=>g,Jt:()=>M,Ne:()=>m,RF:()=>c,aI:()=>b,fA:()=>o,gE:()=>a,hZ:()=>y,iT:()=>p,is:()=>w,qv:()=>v,vI:()=>d,vY:()=>l,v_:()=>R,vt:()=>s,w1:()=>u});var i=n(5443),r=(n(19419),n(4197));function s(e=R){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,i,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l}function l(e,t=s()){return function(e,t,n,i=s()){return y(i,v),function(e,t,n=0,i=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)r=Math.min(r,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),l=Math.max(l,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(i,e,t,n),i}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[n,i,s,o,l,a]=e;return t[0]=n,t[1]=i,t[2]=s,t[3]=n,t[4]=i,t[5]=a,t[6]=n,t[7]=l,t[8]=s,t[9]=n,t[10]=l,t[11]=a,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new i.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function 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[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function f(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 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[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function h(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 m(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function d(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function y(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?y(e,v):s(v)}function M(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 x(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function b(e,t,n){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],R=[0,0,0,0,0,0];s()},80754:(e,t,n)=>{n.d(t,{j7:()=>o,kS:()=>a,kd:()=>l,r8:()=>u});var i=n(82799),r=n(16930),s=n(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const n=u(e);for(const e of n)for(const n of e)n[0]+=t;return e}function u(e){return(0,s.Bi)(e)?e.rings:e.paths}},91218:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>E,initializeProjection:()=>D,isEqualBaseGCS:()=>W,isLoaded:()=>j,isLoadedOrLoad:()=>N,isLoadedOrLoadFor:()=>O,load:()=>Z,project:()=>G,projectExtent:()=>ne,projectMany:()=>z,projectMultipoint:()=>Y,projectOrLoad:()=>C,projectOrLoadMany:()=>L,projectPoint:()=>V,projectPolygon:()=>ee,projectPolyline:()=>K,projectWithZConversion:()=>$,projectWithoutEngine:()=>U,requiresLoad:()=>P,test:()=>J,tryProjectWithZConversion:()=>B,unload:()=>k});var i=n(49186),r=n(74887),s=n(62788),o=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),f=n(91075),p=n(48526),h=n(86738),m=n(39829),d=n(82799),y=n(16930),g=n(159),M=n(9762),x=n(37539);function w(e,t,n,i,r,s){return b[0]=e,b[1]=t,b[2]=n,(0,M.projectBuffer)(b,i,0,r,s,0)}const b=(0,l.vt)();var v=n(21325),R=n(62815);let A=null,T=null,F=null,I=null,S={};const _=new o.I;function j(){return!!(T?.isLoaded()&&F?.isLoaded()&&I?.isLoaded())}function N(){return!!j()||((0,s.gc)(_),Z(),!1)}function O(e,t){return!e||!t||E(e,t)||N()}function P(e,t){return!E(e,t)&&!j()}async function Z(e){null==A&&(A=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(T=e,T.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(F=e,F.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(I=e,I.load()))])),await A,(0,r.Te)(e),_.notify()}function G(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),z(e,e[0].spatialReference,t,n)):((0,a.f)(e),z([e],e.spatialReference,t,n)[0])}function z(e,t,n,i){if(null==t||null==n)return e;if(E(t,n,i))return e.map(e=>U(e,t,n));if(null==i?.geographicTransformation&&(0,u.jA)(t))return e.map(e=>U(e,t,y.A.WGS84)).map(e=>B(e,n));if(null==i?.geographicTransformation&&(0,u.jA)(n))return e.map(e=>B(e,y.A.WGS84)).map(e=>U(e,y.A.WGS84,n));if(!j())throw new q;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:I.getTransformation(t,n,i.areaOfInterestExtent)||new g.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=S[e];r||(r=I.getTransformation(t,n)||new g.A,S[e]=r),i={geographicTransformation:r}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof f.A?T.executeMany(e,n,i):F.executeMany(e,n,i)}function C(e,t){const n=L([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function L(e,t){if(!j())for(const n of e)if(null!=n&&!(0,v.aI)(n.spatialReference,t)&&(0,v.fn)(n.spatialReference)&&(0,v.fn)(t)&&!E(n.spatialReference,t))return(0,s.gc)(_),{pending:Z(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,v.aI)(e.spatialReference,t)?e:(0,v.fn)(e.spatialReference)&&(0,v.fn)(t)?B(e,t):null)}}class q extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function k(){A=null,T=null,F=null,I=null,S={}}const J={get loadPromise(){return A}};function B(e,t){try{const n=G(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const i=(0,R.N)(n.type,e.spatialReference,t);return null!=i&&i(n),n}catch(e){if(!(e instanceof q))throw e;return null}}async function $(e,t,n){const i=e.spatialReference;return null!=i&&null!=t&&await D(i,t,null,n),B(e,t)}function E(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,v.aI)(e,t)||(0,v.fn)(e)&&(0,v.fn)(t)&&!!(0,x.jd)(e,t))}function W(e,t){if((0,v.aI)(e,t))return!0;if(!(0,v.fn)(e)||!(0,v.fn)(t))return!1;const n=(0,v.oT)(e)||(0,v.K8)(e)||(0,v.x1)(e),i=(0,v.oT)(t)||(0,v.K8)(t)||(0,v.x1)(t);return n&&i}async function D(e,t,n,i){if(j())return(0,r.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!E(t,n,r))return Z(i)}else if(e&&t&&!E(e,t,n))return Z(i);return(0,r.NO)(i)}function U(e,t,n){return e?"x"in e?X(e,t,new h.A,n,0):"xmin"in e?ie(e,t,new c.A,n,0):"rings"in e?te(e,t,new m.A,n,0):"paths"in e?Q(e,t,new d.A,n,0):"points"in e?H(e,t,new p.A,n,0):null:null}function V(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=X(e,e.spatialReference,t,n,i)}function X(e,t,n,i,r){se[0]=e.x,se[1]=e.y;const s=e.z;return se[2]=void 0!==s?s:r,(0,M.projectBuffer)(se,t,0,se,i,0)?(n.x=se[0],n.y=se[1],n.spatialReference=i,void 0!==s||(0,u.xP)(i)?(n.z=se[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function Y(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=H(e,e.spatialReference,t,n,i)}function H(e,t,n,i,r){const{points:s,hasZ:o,hasM:l}=e,a=[],c=s.length,f=[];for(const e of s)f.push(e[0],e[1],o?e[2]:r);if(!(0,M.projectBuffer)(f,t,0,f,i,0,c))return null;const p=o||(0,u.xP)(i);for(let e=0;e<c;++e){const t=3*e,n=f[t],i=f[t+1];p&&l?a.push([n,i,f[t+2],s[e][3]]):p?a.push([n,i,f[t+2]]):l?a.push([n,i,s[e][2]]):a.push([n,i])}return n.points=a,n.spatialReference=i,n.hasZ=o,n.hasM=l,n}function K(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=Q(e,e.spatialReference,t,n,i)}function Q(e,t,n,i,r){const{paths:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.paths=a,n.spatialReference=i,n.hasZ=c,n.hasM=l,n}function ee(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,i)}function te(e,t,n,i,r){const{rings:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.rings=a,n.spatialReference=i,n.hasZ=c,n.hasM=l,n}function ne(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,i)}function ie(e,t,n,i,r){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:f}=e;if(!w(s,o,c?e.zmin:r,t,se,i))return null;const p=c||(0,u.xP)(i);return n.xmin=se[0],n.ymin=se[1],p&&(n.zmin=se[2]),w(l,a,c?e.zmax:r,t,se,i)?(n.xmax=se[0],n.ymax=se[1],p&&(n.zmax=se[2]),f&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function re(e,t,n,i,r,s,o=0){const l=new Array;for(const n of e)for(const e of n)l.push(e[0],e[1],t?e[2]:o);if(!(0,M.projectBuffer)(l,i,0,l,s,0))return!1;let a=0;r.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const i of t)c&&n?e.push([l[a++],l[a++],l[a++],i[3]]):c?e.push([l[a++],l[a++],l[a++]]):n?(e.push([l[a++],l[a++],i[2]]),a++):(e.push([l[a++],l[a++]]),a++);r.push(e)}return!0}const se=(0,l.vt)()},92300:(e,t,n)=>{n.d(t,{V:()=>s,X:()=>r});var i=n(65864);function r(e){return{geometryType:(0,i.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,n){const r=(0,i.xD)(t);return e.map(e=>{const t=r.fromJSON(e);return t.spatialReference=n,t})}},95466:(e,t,n)=>{n.d(t,{A:()=>h});var i=n(49186),r=n(53966),s=n(91869),o=n(3330),l=n(12195),a=n(30524),u=n(98623),c=n(56400),f=n(28097);const p=new Map;class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],g(e))}static fromLayerJSON(e){return new h(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 n=[];for(const e of this.fields){const t=e?.name,i=d(t);if(t&&i){const r=m(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${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)}}n.sort(),this.uid=n.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(m(e))??this._normalizedFieldsMap.get(d(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?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):y.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?f.mQ.utcInstance:(0,s.tE)(p,t,()=>f.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 m(e){return e.trim().toLowerCase()}function d(e){return(0,a.rS)(e)?.toLowerCase()??""}const y=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.dateFieldsTimeReference?(0,c.ZS)(r.dateFieldsTimeReference):l??u.n$:null,f=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,c.ZS)(i.timeReference):l:null,p=new Map([[m(r?.creationDateField??""),a],[m(r?.editDateField??""),a],[m(s),f],[m(o),f]]);for(const{name:i,type:r}of e.fields)if(y.has(r))t.set(i,u.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,u.L5);else{const e=p.get(m(i??""))??l;t.set(i,e)}return t}},99157:(e,t,n)=>{n.d(t,{A:()=>a});var i,r=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108));let a=i=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=i=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],a)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7136,8999],{159:(e,t,n)=>{n.d(t,{A:()=>u});var i,r=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108)),a=n(99157);let u=i=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],u.prototype,"steps",void 0),u=i=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},4197:(e,t,n)=>{n.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var i=n(34275),r=n(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function l(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function u(e){const t=(0,r.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},9093:(e,t,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>r,vt:()=>i,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:r,create:i,fromValues:function(e,t,n,i,r,s,o,l,a,u,c,f,p,h,m,d){return[e,t,n,i,r,s,o,l,a,u,c,f,p,h,m,d]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>r});var i=n(37539);function r(e,t,n,r,s,o,l=Math.floor(e.length/3)){const a=(0,i.jd)(t,s);if(null==a)return!1;if(a===i.pO){if(e===r&&n===o)return!0;const t=n+3*l;for(let i=n,s=o;i<t;i++,s++)r[s]=e[i];return!0}const u=n+3*l;for(let t=n,i=o;t<u;t+=3,i+=3)a(e,t,r,i);return!0}},13069:(e,t,n)=>{n.d(t,{AG:()=>l,lk:()=>r,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function r(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17136:(e,t,n)=>{n.d(t,{Y_:()=>I,O7:()=>T,el:()=>A});var i=n(92602),r=n(69052),s=n(49186),o=n(53966),l=n(39829),a=n(82799),u=n(16930),c=n(80754),f=n(21325),p=n(28735),h=n(43773),m=n(65864),d=n(2272),y=n(84952),g=n(92300);const M=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function x(e){return"polygon"===e[0].type}function w(e){return"polyline"===e[0].type}function b(e,t,n){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof l.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw M().error(e),new s.A("internal:geometry",e)}const n=(0,c.r8)(e),i=[];for(const e of n){const n=[];i.push(n),n.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const r=e[i][0],s=e[i][1],o=e[i+1][0],l=e[i+1][1],a=Math.sqrt((o-r)*(o-r)+(l-s)*(l-s)),u=(l-s)/a,c=(o-r)/a,f=a/t;if(f>1){for(let e=1;e<=f-1;e++){const i=e*t,o=c*i+r,l=u*i+s;n.push([o,l])}const e=(a+Math.floor(f-1)*t)/2,i=c*e+r,o=u*e+s;n.push([i,o])}n.push([o,l])}}return function(e){return"polygon"===e.type}(e)?new l.A({rings:i,spatialReference:e.spatialReference}):new a.A({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,p.ci)(t,!0)}return n&&(e=(0,c.kS)(e,n)),e}function v(e,t,n){if(Array.isArray(e)){const i=e[0];if(i>t){const n=(0,c.kd)(i,t);e[0]=i+n*(-2*t)}else if(i<n){const t=(0,c.kd)(i,n);e[0]=i+t*(-2*n)}}else{const i=e.x;if(i>t){const n=(0,c.kd)(i,t);e=e.clone().offset(n*(-2*t),0)}else if(i<n){const t=(0,c.kd)(i,n);e=e.clone().offset(t*(-2*n),0)}}return e}function R(e,t){let n=-1;for(let i=0;i<t.cutIndexes.length;i++){const r=t.cutIndexes[i],s=t.geometries[i],o=(0,c.r8)(s);for(let e=0;e<o.length;e++){const t=o[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const i=t[e][0];n=i>n?i:n}n=Number(n.toFixed(9));const i=-360*(0,c.kd)(n,180);for(let n=0;n<t.length;n++){const t=s.getPoint(e,n);s.setPoint(e,n,t.clone().offset(i,0))}return!0}})}if(r===n){if(x(e))for(const t of(0,c.r8)(s))e[r]=e[r].addRing(t);else if(w(e))for(const t of(0,c.r8)(s))e[r]=e[r].addPath(t)}else n=r,e[r]=s}return e}async function A(e,t,n){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&M().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??i.A.geometryServiceUrl;let s,o,u,x,w,T,F,I,S=0;const _=[],j=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,o=(0,f.Vp)(s),u=s.isWebMercator,T=u?102100:4326,x=c.j7[T].maxX,w=c.j7[T].minX,F=c.j7[T].plus180Line,I=c.j7[T].minus180Line),o)if("mesh"===t.type)j.push(t);else if("point"===t.type)j.push(v(t.clone(),x,w));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>v(e,x,w)),j.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,o);j.push(e.rings?new l.A(e):e)}else if(t.extent){const e=t.extent,n=(0,c.kd)(e.xmin,w)*(2*x);let i=0===n?t.clone():(0,c.kS)(t.clone(),n);e.offset(n,0);let{xmin:r,xmax:s}=e;r=Number(r.toFixed(9)),s=Number(s.toFixed(9)),e.intersects(F)&&s!==x?(S=s>S?s:S,i=b(i,u),_.push(i),j.push("cut")):e.intersects(I)&&r!==w?(S=s*(2*x)>S?s*(2*x):S,i=b(i,u,360),_.push(i),j.push("cut")):j.push(i)}else j.push(t.clone());else j.push(t);else j.push(t);let N=(0,c.kd)(S,x),O=-90;const P=N,Z=new a.A;for(;N>0;){const e=360*N-180;Z.addPath([[e,O],[e,-1*O]]),O*=-1,N--}if(_.length>0&&P>0){const t=R(_,await async function(e,t,n,i){const r=(0,d.Dl)(e),s=t[0].spatialReference,o={...i,responseType:"json",query:{...r.query,f:"json",sr:(0,f.YX)(s),target:JSON.stringify({geometryType:(0,m.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},l=await(0,h.A)(r.path+"/cut",o),{cutIndexes:a,geometries:u=[]}=l.data;return{cutIndexes:a,geometries:u.map(e=>{const t=(0,m.rS)(e);return t.spatialReference=s,t})}}(r,_,Z,n)),i=[],s=[];for(let n=0;n<j.length;n++){const r=j[n];if("cut"!==r)s.push(r);else{const r=t.shift(),o=e[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(i.push(r),s.push("simplify")):s.push(u?(0,p.Gh)(r):r)}}if(!i.length)return s;const o=await async function(e,t,n){const i="string"==typeof e?(0,y.An)(e):e,r=t[0].spatialReference,s=(0,m.$B)(t[0]),o={...n,query:{...i.query,f:"json",sr:(0,f.YX)(r),geometries:JSON.stringify((0,g.X)(t))}},{data:l}=await(0,h.A)(i.path+"/simplify",o);return(0,g.V)(l.geometries,s,r)}(r,i,n),l=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?l.push(t):l.push(u?(0,p.Gh)(o.shift()):o.shift())}return l}const G=[];for(let e=0;e<j.length;e++){const t=j[e];if("cut"!==t)G.push(t);else{const e=_.shift();G.push(!0===u?(0,p.Gh)(e):e)}}return G}function T(e,t,n){const i=(0,f.Vp)(n);if(null==i)return e;const[r,s]=i.valid,o=2*s;let l=0,a=0;t>s?l=Math.ceil(Math.abs(t-s)/o):t<r&&(l=-Math.ceil(Math.abs(t-r)/o)),e>s?a=Math.ceil(Math.abs(e-s)/o):e<r&&(a=-Math.ceil(Math.abs(e-r)/o));let u=e+(l-a)*o;const c=u-t;return c>s?u-=o:c<r&&(u+=o),u}function F(e){const t=(0,f.Vp)(e);if(null==t)return null;const[n,i]=t.valid;return new r.hr(n,i)}const I=F(u.A.WGS84);F(u.A.WebMercator)},22671:(e,t,n)=>{n.d(t,{A:()=>M});var i,r=n(31635),s=n(52106),o=n(66552),l=n(25482),a=n(4718),u=n(10107),c=(n(44208),n(53966),n(36005)),f=n(64108),p=n(43937),h=n(16930),m=n(65864),d=n(50498),y=n(20437);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=i=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,s.A)}writeGeometryType(e,t,n,i){if(e)return void g.write(e,t,n,i);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void g.write(e.geometry.type,t,n,i)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,i=(0,m.rS)(e);return i&&!n&&t.spatialReference&&(i.spatialReference=h.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(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 n=0;n<t.features.length;n++){const i=t.features[n];if(i.geometry){const t=e?.[n];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,n],translate:[i,r]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((r-e)/n));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[i,r],scale:[s,o]}=n;let l=null,a=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=n;l=n=>n*t+e}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=n;a=n=>null==n?n:n*t+e}const u=this._getHydrationFunction(e,e=>e*s+i,e=>r-e*o,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,n){const i=h.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const s=e[t],o=n.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=i);const a=s.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],n=a[e],r=n?.spatialReference;null==t||r||(t.spatialReference=i)}r.push(o)}return r}_quantizePoints(e,t,n){let i,r;const s=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=n(l[1]);e===i&&o===r||(s.push([e-i,o-r]),i=e,r=o)}else i=t(l[0]),r=n(l[1]),s.push([i,r])}return s.length>0?s:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,m.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,n);o&&r.push(o)}return r.length>0?((0,m.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,n);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n,i,r){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,m.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,r=i.length;e<r;e++){const r=i[e];e>0?(o+=r[0],l+=r[1]):(o=r[0],l=r[1]),r[0]=t(o),r[1]=n(l)}}if(i&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=i(n[2]),n[3]=r(n[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=i(n[2])}}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],l+=i[1]):(o=i[0],l=i[1]),i[0]=t(o),i[1]=n(l)}if(i&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=r(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2])}}:null}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,r.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],M.prototype,"features",void 0),(0,r.Cg)([(0,c.w)("features")],M.prototype,"readFeatures",null),(0,r.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,r.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],M.prototype,"geometryType",void 0),(0,r.Cg)([(0,p.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,r.Cg)([(0,u.MZ)({types:d.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,r.Cg)([(0,c.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,r.Cg)([(0,u.MZ)({type:h.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,r.Cg)([(0,p.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=i=(0,r.Cg)([(0,f.$)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},37539:(e,t,n)=>{n.d(t,{pO:()=>d,jd:()=>p,Tp:()=>h,w5:()=>f});var i=n(34727),r=n(83047),s=n(73941),o=n(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=n(21325);const f={2:{5:d,7:null,9:null,10:d,1:R,6:null,8:null,0:null,3:g,11:M,2:d,4:S},5:{5:d,7:null,9:null,10:d,1:R,6:null,8:null,0:null,3:g,11:M,2:d,4:S},7:{5:null,7:d,9:null,10:d,1:null,6:v,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:b,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(e,t,n,i){const r=e[t]/Z,s=P-2*Math.atan(Math.exp(-e[t+1]/Z)),o=Z+e[t+2],l=Math.cos(s)*o;n[i]=Math.cos(r)*l,n[i+1]=Math.sin(r)*l,n[i+2]=Math.sin(s)*o},6:null,8:null,0:null,3:d,11:function(e,t,n,i){y(e,t,n,i),M(n,i,n,i)},2:y,4:function(e,t,n,i){y(e,t,n,i),S(n,i,n,i)}},4:{5:_,7:null,9:null,10:_,1:function(e,t,n,i){_(e,t,n,i),R(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){_(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){_(e,t,n,i),M(n,i,n,i)},2:_,4:d},1:{5:I,7:null,9:null,10:I,1:d,6:null,8:null,0:null,3:function(e,t,n,i){I(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){I(e,t,n,i),M(n,i,n,i)},2:I,4:function(e,t,n,i){I(e,t,n,i),S(n,i,n,i)}},6:{5:null,7:F,9:null,10:F,1:null,6:d,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:d,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:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:R,6:v,8:b,0:null,3:g,11:M,2:d,4:S},11:{5:x,7:null,9:null,10:x,1:function(e,t,n,i){x(e,t,n,i),R(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){x(e,t,n,i),g(n,i,n,i)},11:d,2:x,4:function(e,t,n,i){x(e,t,n,i),S(n,i,n,i)}}};function p(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const n=m(e,j.source),i=m(t,j.dest);return 0===n&&0===i?(0,c.aI)(e,t)?j.projector=d:j.projector=null:j.projector=f[n][i],j}function m(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function d(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t])}function y(e,t,n,i){n[i]=O*(e[t]/Z),n[i+1]=O*(P-2*Math.atan(Math.exp(-e[t+1]/Z))),n[i+2]=e[t+2]}function g(e,t,n,r){!function(e,t,n,r,s){const o=.4999999*Math.PI,l=(0,i.qE)(N*e[t+1],-o,o),a=Math.sin(l);n[r++]=N*e[t]*s.radius,n[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]}(e,t,n,r,o.$O)}function M(e,t,n,i){n[i]=e[t]*G,n[i+1]=e[t+1]*G,n[i+2]=e[t+2]}function x(e,t,n,i){n[i]=e[t]*z,n[i+1]=e[t+1]*z,n[i+2]=e[t+2]}function w(e,t,n,i,r){const s=r+e[t+2],o=N*e[t+1],l=N*e[t],a=Math.cos(o)*s;n[i]=Math.cos(l)*a,n[i+1]=Math.sin(l)*a,n[i+2]=Math.sin(o)*s}function b(e,t,n,i){w(e,t,n,i,o.Sw.radius)}function v(e,t,n,i){w(e,t,n,i,o.sH.radius)}function R(e,t,n,i){w(e,t,n,i,o.$O.radius)}function A(e,t,n,r,s){const o=e[t],l=e[t+1],a=e[t+2],u=Math.sqrt(o*o+l*l+a*a),c=(0,i.YN)(a/(0===u?1:u)),f=Math.atan2(l,o);n[r++]=O*f,n[r++]=O*c,n[r]=u-s}function T(e,t,n,i){A(e,t,n,i,o.Sw.radius)}function F(e,t,n,i){A(e,t,n,i,o.sH.radius)}function I(e,t,n,i){A(e,t,n,i,o.$O.radius)}function S(e,t,n,i){!function(e,t,n,i,r){const s=N*e[t],o=N*e[t+1],l=e[t+2],a=Math.sin(o),u=Math.cos(o),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[i++]=(c+l)*u*Math.cos(s),n[i++]=(c+l)*u*Math.sin(s),n[i++]=(c*(1-r.eccentricitySquared)+l)*a}(e,t,n,i,o.$O)}function _(e,t,n,i){const r=u,s=e[t],l=e[t+1],a=e[t+2];let c,f,p,h,m,d,y,g,M,x,w,b,v,R,A,T,F,I,S,_,j;c=Math.abs(a),f=s*s+l*l,p=Math.sqrt(f),h=f+a*a,m=Math.sqrt(h),_=Math.atan2(l,s),d=a*a/h,y=f/h,R=r.a2/m,A=r.a3-r.a4/m,y>.3?(g=c/m*(1+y*(r.a1+R+d*A)/m),S=Math.asin(g),x=g*g,M=Math.sqrt(1-x)):(M=p/m*(1-d*(r.a5-R-y*A)/m),S=Math.acos(M),x=1-M*M,g=Math.sqrt(x)),w=1-o.$O.eccentricitySquared*x,b=o.$O.radius/Math.sqrt(w),v=r.a6*b,R=p-b*M,A=c-v*g,F=M*R+g*A,T=M*A-g*R,I=T/(v/w+F),S+=I,j=F+T*I/2,a<0&&(S=-S),n[i++]=O*_,n[i++]=O*S,n[i]=j}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},N=(0,i.kU)(1),O=(0,i.KJ)(1),P=.5*Math.PI,Z=o.$O.radius,G=Z*Math.PI/180,z=180/(Z*Math.PI)},50498:(e,t,n)=>{n.d(t,{Ye:()=>f,gy:()=>c,yR:()=>p});var i=n(66552),r=n(5443),s=n(91075),o=n(48526),l=n(86738),a=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),f=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,n)=>{n.d(t,{A:()=>v});var i,r=n(31635),s=n(37838),o=n(69540),l=n(51447),a=n(25482),u=n(53966),c=n(36708),f=n(24326),p=n(10107),h=(n(44208),n(87811),n(64108)),m=n(12195),d=n(65864),y=n(50498),g=n(55156),M=n(60950),x=n(54339),w=n(33910);function b(e){if(null==e)return null;const t={};for(const n in e){const i=e[n];i&&(t[n]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let v=class extends((0,o.OU)(a.o)){static{i=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,f.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 i({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=(0,M.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,x.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,x.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:b(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(r.action=i),"attributes"===e&&(r.attributeName=i),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,c.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,c.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,r.Cg)([(0,p.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const i=(0,d.rS)(e[n]);i&&(t[n]=i)}return 0!==Object.keys(t).length?t:null}}})],v.prototype,"aggregateGeometries",null),(0,r.Cg)([(0,p.MZ)({value:null})],v.prototype,"attributes",null),(0,r.Cg)([(0,p.MZ)({value:null,types:y.yR,json:{read:d.rS}})],v.prototype,"geometry",null),(0,r.Cg)([(0,p.MZ)({type:Boolean})],v.prototype,"isAggregate",void 0),(0,r.Cg)([(0,p.MZ)({clonable:!1})],v.prototype,"layer",void 0),(0,r.Cg)([(0,p.MZ)({clonable:"reference"})],v.prototype,"origin",void 0),(0,r.Cg)([(0,p.MZ)({type:s.A,value:null})],v.prototype,"popupTemplate",null),(0,r.Cg)([(0,p.MZ)({clonable:"reference"})],v.prototype,"sourceLayer",void 0),(0,r.Cg)([(0,p.MZ)({value:null,types:w.Es})],v.prototype,"symbol",null),(0,r.Cg)([(0,p.MZ)({clonable:!1,json:{read:!1,write:!1}})],v.prototype,"_version",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,value:!0})],v.prototype,"visible",null),v=i=(0,r.Cg)([(0,h.$)("esri.Graphic")],v)},54339:(e,t,n)=>{function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const i of t.fieldNames)n.push(e.attributes[i]??null);return JSON.stringify(n)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>i,r:()=>r})},55156:(e,t,n)=>{n.d(t,{I:()=>r,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&i in t?e[i]:void 0;var t}},62815:(e,t,n)=>{n.d(t,{N:()=>o});var i=n(83047),r=n(73941),s=n(21325);function o(e,t,n){if(null==t||null==n||n.vcsWkid||(0,s.aI)(t,n)||(0,r.xP)(t)||(0,r.xP)(n))return null;const o=(0,i.G9)(t)/(0,i.G9)(n);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},69052:(e,t,n)=>{n.d(t,{hr:()=>r,ie:()=>a,uC:()=>l});var i=n(34727);class r{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return s(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+o(this.range,e-t,n)}minimalMonotonic(e,t,n){return s(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(i)?n:i}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function s(e,t,n,i,r=0,s=!1){return(i-=r)<t?i+=o(e,t-i):i>n&&(i-=o(e,i-n)),s&&i===n&&(i=t),i+r}function o(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const l=new r(0,2*Math.PI),a=(new r(-Math.PI,Math.PI),new r(0,360))},70328:(e,t,n)=>{n.d(t,{BI:()=>x,DC:()=>f,Ej:()=>h,Ie:()=>g,Jt:()=>M,Ne:()=>m,RF:()=>c,aI:()=>b,fA:()=>o,gE:()=>a,hZ:()=>y,iT:()=>p,is:()=>w,qv:()=>v,vI:()=>d,vY:()=>l,v_:()=>R,vt:()=>s,w1:()=>u});var i=n(5443),r=(n(19419),n(4197));function s(e=R){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,i,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l}function l(e,t=s()){return function(e,t,n,i=s()){return y(i,v),function(e,t,n=0,i=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)r=Math.min(r,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),l=Math.max(l,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(i,e,t,n),i}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[n,i,s,o,l,a]=e;return t[0]=n,t[1]=i,t[2]=s,t[3]=n,t[4]=i,t[5]=a,t[6]=n,t[7]=l,t[8]=s,t[9]=n,t[10]=l,t[11]=a,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new i.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function 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[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function f(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 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[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function h(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 m(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function d(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function y(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?y(e,v):s(v)}function M(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 x(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function b(e,t,n){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],R=[0,0,0,0,0,0];s()},80754:(e,t,n)=>{n.d(t,{j7:()=>o,kS:()=>a,kd:()=>l,r8:()=>u});var i=n(82799),r=n(16930),s=n(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const n=u(e);for(const e of n)for(const n of e)n[0]+=t;return e}function u(e){return(0,s.Bi)(e)?e.rings:e.paths}},91218:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>E,initializeProjection:()=>D,isEqualBaseGCS:()=>W,isLoaded:()=>j,isLoadedOrLoad:()=>N,isLoadedOrLoadFor:()=>O,load:()=>Z,project:()=>G,projectExtent:()=>ne,projectMany:()=>z,projectMultipoint:()=>Y,projectOrLoad:()=>C,projectOrLoadMany:()=>L,projectPoint:()=>V,projectPolygon:()=>ee,projectPolyline:()=>K,projectWithZConversion:()=>$,projectWithoutEngine:()=>U,requiresLoad:()=>P,test:()=>J,tryProjectWithZConversion:()=>B,unload:()=>k});var i=n(49186),r=n(74887),s=n(62788),o=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),f=n(91075),p=n(48526),h=n(86738),m=n(39829),d=n(82799),y=n(16930),g=n(159),M=n(9762),x=n(37539);function w(e,t,n,i,r,s){return b[0]=e,b[1]=t,b[2]=n,(0,M.projectBuffer)(b,i,0,r,s,0)}const b=(0,l.vt)();var v=n(21325),R=n(62815);let A=null,T=null,F=null,I=null,S={};const _=new o.I;function j(){return!!(T?.isLoaded()&&F?.isLoaded()&&I?.isLoaded())}function N(){return!!j()||((0,s.gc)(_),Z(),!1)}function O(e,t){return!e||!t||E(e,t)||N()}function P(e,t){return!E(e,t)&&!j()}async function Z(e){null==A&&(A=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(T=e,T.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(F=e,F.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(I=e,I.load()))])),await A,(0,r.Te)(e),_.notify()}function G(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),z(e,e[0].spatialReference,t,n)):((0,a.f)(e),z([e],e.spatialReference,t,n)[0])}function z(e,t,n,i){if(null==t||null==n)return e;if(E(t,n,i))return e.map(e=>U(e,t,n));if(null==i?.geographicTransformation&&(0,u.jA)(t))return e.map(e=>U(e,t,y.A.WGS84)).map(e=>B(e,n));if(null==i?.geographicTransformation&&(0,u.jA)(n))return e.map(e=>B(e,y.A.WGS84)).map(e=>U(e,y.A.WGS84,n));if(!j())throw new q;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:I.getTransformation(t,n,i.areaOfInterestExtent)||new g.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=S[e];r||(r=I.getTransformation(t,n)||new g.A,S[e]=r),i={geographicTransformation:r}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof f.A?T.executeMany(e,n,i):F.executeMany(e,n,i)}function C(e,t){const n=L([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function L(e,t){if(!j())for(const n of e)if(null!=n&&!(0,v.aI)(n.spatialReference,t)&&(0,v.fn)(n.spatialReference)&&(0,v.fn)(t)&&!E(n.spatialReference,t))return(0,s.gc)(_),{pending:Z(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,v.aI)(e.spatialReference,t)?e:(0,v.fn)(e.spatialReference)&&(0,v.fn)(t)?B(e,t):null)}}class q extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function k(){A=null,T=null,F=null,I=null,S={}}const J={get loadPromise(){return A}};function B(e,t){try{const n=G(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const i=(0,R.N)(n.type,e.spatialReference,t);return null!=i&&i(n),n}catch(e){if(!(e instanceof q))throw e;return null}}async function $(e,t,n){const i=e.spatialReference;return null!=i&&null!=t&&await D(i,t,null,n),B(e,t)}function E(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,v.aI)(e,t)||(0,v.fn)(e)&&(0,v.fn)(t)&&!!(0,x.jd)(e,t))}function W(e,t){if((0,v.aI)(e,t))return!0;if(!(0,v.fn)(e)||!(0,v.fn)(t))return!1;const n=(0,v.oT)(e)||(0,v.K8)(e)||(0,v.x1)(e),i=(0,v.oT)(t)||(0,v.K8)(t)||(0,v.x1)(t);return n&&i}async function D(e,t,n,i){if(j())return(0,r.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!E(t,n,r))return Z(i)}else if(e&&t&&!E(e,t,n))return Z(i);return(0,r.NO)(i)}function U(e,t,n){return e?"x"in e?X(e,t,new h.A,n,0):"xmin"in e?ie(e,t,new c.A,n,0):"rings"in e?te(e,t,new m.A,n,0):"paths"in e?Q(e,t,new d.A,n,0):"points"in e?H(e,t,new p.A,n,0):null:null}function V(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=X(e,e.spatialReference,t,n,i)}function X(e,t,n,i,r){se[0]=e.x,se[1]=e.y;const s=e.z;return se[2]=void 0!==s?s:r,(0,M.projectBuffer)(se,t,0,se,i,0)?(n.x=se[0],n.y=se[1],n.spatialReference=i,void 0!==s||(0,u.xP)(i)?(n.z=se[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function Y(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=H(e,e.spatialReference,t,n,i)}function H(e,t,n,i,r){const{points:s,hasZ:o,hasM:l}=e,a=[],c=s.length,f=[];for(const e of s)f.push(e[0],e[1],o?e[2]:r);if(!(0,M.projectBuffer)(f,t,0,f,i,0,c))return null;const p=o||(0,u.xP)(i);for(let e=0;e<c;++e){const t=3*e,n=f[t],i=f[t+1];p&&l?a.push([n,i,f[t+2],s[e][3]]):p?a.push([n,i,f[t+2]]):l?a.push([n,i,s[e][2]]):a.push([n,i])}return n.points=a,n.spatialReference=i,n.hasZ=o,n.hasM=l,n}function K(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=Q(e,e.spatialReference,t,n,i)}function Q(e,t,n,i,r){const{paths:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.paths=a,n.spatialReference=i,n.hasZ=c,n.hasM=l,n}function ee(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,i)}function te(e,t,n,i,r){const{rings:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.rings=a,n.spatialReference=i,n.hasZ=c,n.hasM=l,n}function ne(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,i)}function ie(e,t,n,i,r){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:f}=e;if(!w(s,o,c?e.zmin:r,t,se,i))return null;const p=c||(0,u.xP)(i);return n.xmin=se[0],n.ymin=se[1],p&&(n.zmin=se[2]),w(l,a,c?e.zmax:r,t,se,i)?(n.xmax=se[0],n.ymax=se[1],p&&(n.zmax=se[2]),f&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function re(e,t,n,i,r,s,o=0){const l=new Array;for(const n of e)for(const e of n)l.push(e[0],e[1],t?e[2]:o);if(!(0,M.projectBuffer)(l,i,0,l,s,0))return!1;let a=0;r.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const i of t)c&&n?e.push([l[a++],l[a++],l[a++],i[3]]):c?e.push([l[a++],l[a++],l[a++]]):n?(e.push([l[a++],l[a++],i[2]]),a++):(e.push([l[a++],l[a++]]),a++);r.push(e)}return!0}const se=(0,l.vt)()},92300:(e,t,n)=>{n.d(t,{V:()=>s,X:()=>r});var i=n(65864);function r(e){return{geometryType:(0,i.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,n){const r=(0,i.xD)(t);return e.map(e=>{const t=r.fromJSON(e);return t.spatialReference=n,t})}},95466:(e,t,n)=>{n.d(t,{A:()=>h});var i=n(49186),r=n(53966),s=n(91869),o=n(3330),l=n(12195),a=n(30524),u=n(98623),c=n(56400),f=n(28097);const p=new Map;class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],g(e))}static fromLayerJSON(e){return new h(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 n=[];for(const e of this.fields){const t=e?.name,i=d(t);if(t&&i){const r=m(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${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)}}n.sort(),this.uid=n.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(m(e))??this._normalizedFieldsMap.get(d(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?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):y.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?f.mQ.utcInstance:(0,s.tE)(p,t,()=>f.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 m(e){return e.trim().toLowerCase()}function d(e){return(0,a.rS)(e)?.toLowerCase()??""}const y=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.dateFieldsTimeReference?(0,c.ZS)(r.dateFieldsTimeReference):l??u.n$:null,f=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,c.ZS)(i.timeReference):l:null,p=new Map([[m(r?.creationDateField??""),a],[m(r?.editDateField??""),a],[m(s),f],[m(o),f]]);for(const{name:i,type:r}of e.fields)if(y.has(r))t.set(i,u.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,u.L5);else{const e=p.get(m(i??""))??l;t.set(i,e)}return t}},99157:(e,t,n)=>{n.d(t,{A:()=>a});var i,r=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108));let a=i=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=i=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],a)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[73],{159:(e,t,n)=>{n.d(t,{A:()=>u});var i,r=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108)),a=n(99157);let u=i=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],u.prototype,"steps",void 0),u=i=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},4197:(e,t,n)=>{n.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var i=n(34275),r=n(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function l(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function u(e){const t=(0,r.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},6455:(e,t,n)=>{n.d(t,{FJ:()=>v,Dp:()=>w,KV:()=>b});var i=n(31635),r=n(93637),s=n(10107),o=(n(44208),n(53966),n(87811),n(64108)),l=n(89317),a=n(69540),u=n(7762),c=n(25482),p=n(43937),d=n(83960),f=n(13069);const h={write:{overridePolicy:(e,t,n)=>({enabled:!n||"scale"===n.filterMode})}};let m=class extends((0,a.OU)(c.o)){constructor(e){super(e),this.id=(0,f.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:h})],m.prototype,"maxScale",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:h})],m.prototype,"minScale",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,i.Cg)([(0,o.$)("esri.layers.support.DisplayFilter")],m);var y=n(41560);let g=class extends((0,a.OU)(c.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(u.A.ofType(m)),this.mode="manual"}writeFilters(e,t,n,i){const r=e.toArray();"scale"===this.mode&&r.sort((e,t)=>{const n=(0,d.oW)(t.minScale,e.minScale),i=e.maxScale-t.maxScale;return 0===n?i:n}),t[n]=r.map(e=>e.toJSON(i))}write(e,t){return super.write(e,(0,y.mW)(this,t))}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,n)=>({enabled:"manual"===n.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,s.MZ)({type:u.A.ofType(m),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,i.Cg)([(0,p.K)("filters")],g.prototype,"writeFilters",null),(0,i.Cg)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,i.Cg)([(0,o.$)("esri.layers.support.DisplayFilterInfo")],g);const v=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,i.Cg)([(0,s.MZ)(w)],n.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,s.MZ)(b)],n.prototype,"displayFilterInfo",void 0),n=(0,i.Cg)([(0,o.$)("esri.layers.mixins.DisplayFilteredLayer")],n),n},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:l.K,writer(e,t,n){(0,r.sM)(n,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},b={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:l.K},origins:{"web-scene":{write:!1,read:!1}}}}},6797:(e,t,n)=>{n.d(t,{Ui:()=>d});var i=n(69622),r=n(7762),s=n(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof r.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const i=a(e),r=a(t);if(0===i.length&&0===r.length)return;if(!i.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!i.includes(e)),d=i.filter(e=>!r.includes(e)),f=i.filter(n=>r.includes(n)&&u(e,n)!==u(t,n)).concat(s,d).sort(),h=c(e);if(h&&o.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=l(e)&&l(t);for(const i of f){const r=u(e,i),s=u(t,i);let o;if((y||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(n&&n[i]&&"function"==typeof n[i])o=n[i]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?p(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=m?m.diff[i]=o:m={type:"partial",diff:{[i]:o}})}}return m}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},8303:(e,t,n)=>{n.d(t,{A:()=>M});var i=n(31635),r=n(92602),s=n(70333),o=n(78888),l=n(60999),a=n(49186),u=n(53966),c=n(97768),p=n(74887),d=n(84952),f=n(10107),h=(n(44208),n(87811),n(36005)),m=n(64108),y=n(43937),g=n(77548),v=n(20655),w=n(80812),b=n(41318),I=n(10407);const M=e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.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,n){if(t.itemId)return new w.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await n.e(1204).then(n.bind(n,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)||u.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(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:i},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),r=e===n.id;if(r&&n.portal.user)return this._getUserPrivileges(n,i);let o,l;if(r)o=n.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(r?await n.reload():(n=new w.default({id:e,portal:{url:o}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,i)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const n=(0,I.It)(e);return t&&(n.features.edit=!0),n}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?s.id?.findCredential(this.url):null;if(!t)return!0;const n=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=s.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const i=`${n.owningSystemUrl}/sharing/rest`,r=v.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(i))return r.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?b.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return n&&i&&!(0,d.ut)(i.restUrl,n.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,f.MZ)({type:w.default})],M.prototype,"portalItem",null),(0,i.Cg)([(0,h.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,i.Cg)([(0,y.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,i.Cg)([(0,f.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,i.Cg)([(0,m.$)("esri.layers.mixins.PortalLayer")],M),M},T={credential:null,user:null}},8947:(e,t,n)=>{n.d(t,{L:()=>o});var i=n(60999),r=n(74887),s=n(67076);async function o(e,t,n){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const l=await(0,i.Ke)(o.populateFromStyle());if((0,r.Te)(n),!1===l.ok){const n=l.error;t?.messages&&t.messages.push(new s.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${n.message}`,{error:n,context:t})),e.clear("renderer",t?.origin)}}}},9093:(e,t,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>r,vt:()=>i,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:r,create:i,fromValues:function(e,t,n,i,r,s,o,l,a,u,c,p,d,f,h,m){return[e,t,n,i,r,s,o,l,a,u,c,p,d,f,h,m]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>r});var i=n(37539);function r(e,t,n,r,s,o,l=Math.floor(e.length/3)){const a=(0,i.jd)(t,s);if(null==a)return!1;if(a===i.pO){if(e===r&&n===o)return!0;const t=n+3*l;for(let i=n,s=o;i<t;i++,s++)r[s]=e[i];return!0}const u=n+3*l;for(let t=n,i=o;t<u;t+=3,i+=3)a(e,t,r,i);return!0}},10184:(e,t,n)=>{n.d(t,{A:()=>p});var i=n(31635),r=n(69540),s=n(25482),o=n(88930),l=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),u=n(64108),c=n(73133);let p=class extends((0,r.OU)(s.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,a.e)(c.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i.Cg)([(0,u.$)("esri.time.TimeInterval")],p)},10407:(e,t,n)=>{n.d(t,{It:()=>f,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,mm:()=>d,sQ:()=>p});var i=n(91218),r=n(16930),s=n(28735);function o(e,t){if(!l(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,d.HOSTED_SERVICE)}function u(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function c(e,t,n){n?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const n=r.A.WGS84;return await(0,i.initializeProjection)(t,n),(0,i.project)(e,n)}(n)}const d={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 f(e){const{portal:t,isOrgItem:n,itemControl:i}=e,r=t.user?.privileges;let s=!r||r.includes("features:user:edit"),o=!!n&&!!r?.includes("features:user:fullEdit");const l="update"===i||"admin"===i;return l?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:l}}}},13069:(e,t,n)=>{n.d(t,{AG:()=>l,lk:()=>r,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function r(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17036:(e,t,n)=>{n.d(t,{p:()=>a});var i=n(44208),r=n(53966),s=n(20437),o=n(95466),l=n(30524);function a(){return{fields:{type:[s.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(", ");r.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 n=this.fieldsIndex?.has(t);n||r.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},18768:(e,t,n)=>{n.d(t,{b:()=>a});var i=n(31635),r=n(53966),s=n(10107),o=(n(44208),n(87811),n(64108)),l=n(60694);const a=e=>{const t=e;let n=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.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,l.Jf)(e,r.A.getLogger(this)))}};return(0,i.Cg)([(0,s.MZ)()],n.prototype,"title",null),(0,i.Cg)([(0,s.MZ)({type:String})],n.prototype,"url",null),n=(0,i.Cg)([(0,o.$)("esri.layers.mixins.ArcGISService")],n),n}},32730:(e,t,n)=>{n.d(t,{BI:()=>y,D3:()=>h,XJ:()=>m,lc:()=>f,mX:()=>v,rU:()=>g,tH:()=>T});var i=n(799);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+r,"i"),u=new RegExp(s+"$","i"),c='"',p=c+" + ",d=" + "+c;function f(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=f(e.labelExpression),t.type="conventional"),t}function y(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(w);return t?.[1].trim()||null}(t.expression);case"arcade":return T(t.expression)}return null}function v(e){let t;return e?(t=(0,i.HC)(e,e=>r+'$feature["'+e+'"]'+s),t=a.test(t)?t.replace(a,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(o,p).replaceAll(l,d)):t='""',t}const w=/^\s*\{([^}]+)\}\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,I=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function T(e){if(!e)return null;let t=b.exec(e)||I.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}},37539:(e,t,n)=>{n.d(t,{pO:()=>m,jd:()=>d,Tp:()=>f,w5:()=>p});var i=n(34727),r=n(83047),s=n(73941),o=n(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=n(21325);const p={2:{5:m,7:null,9:null,10:m,1:T,6:null,8:null,0:null,3:g,11:v,2:m,4:F},5:{5:m,7:null,9:null,10:m,1:T,6:null,8:null,0:null,3:g,11:v,2:m,4:F},7:{5:null,7:m,9:null,10:m,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:I,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(e,t,n,i){const r=e[t]/R,s=E-2*Math.atan(Math.exp(-e[t+1]/R)),o=R+e[t+2],l=Math.cos(s)*o;n[i]=Math.cos(r)*l,n[i+1]=Math.sin(r)*l,n[i+2]=Math.sin(s)*o},6:null,8:null,0:null,3:m,11:function(e,t,n,i){y(e,t,n,i),v(n,i,n,i)},2:y,4:function(e,t,n,i){y(e,t,n,i),F(n,i,n,i)}},4:{5:C,7:null,9:null,10:C,1:function(e,t,n,i){C(e,t,n,i),T(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){C(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){C(e,t,n,i),v(n,i,n,i)},2:C,4:m},1:{5:A,7:null,9:null,10:A,1:m,6:null,8:null,0:null,3:function(e,t,n,i){A(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){A(e,t,n,i),v(n,i,n,i)},2:A,4:function(e,t,n,i){A(e,t,n,i),F(n,i,n,i)}},6:{5:null,7:S,9:null,10:S,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:_,10:_,1:null,6:null,8:m,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:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:T,6:M,8:I,0:null,3:g,11:v,2:m,4:F},11:{5:w,7:null,9:null,10:w,1:function(e,t,n,i){w(e,t,n,i),T(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){w(e,t,n,i),g(n,i,n,i)},11:m,2:w,4:function(e,t,n,i){w(e,t,n,i),F(n,i,n,i)}}};function d(e,t){return f(e,t)?.projector}function f(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const n=h(e,j.source),i=h(t,j.dest);return 0===n&&0===i?(0,c.aI)(e,t)?j.projector=m:j.projector=null:j.projector=p[n][i],j}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t])}function y(e,t,n,i){n[i]=Z*(e[t]/R),n[i+1]=Z*(E-2*Math.atan(Math.exp(-e[t+1]/R))),n[i+2]=e[t+2]}function g(e,t,n,r){!function(e,t,n,r,s){const o=.4999999*Math.PI,l=(0,i.qE)(O*e[t+1],-o,o),a=Math.sin(l);n[r++]=O*e[t]*s.radius,n[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]}(e,t,n,r,o.$O)}function v(e,t,n,i){n[i]=e[t]*P,n[i+1]=e[t+1]*P,n[i+2]=e[t+2]}function w(e,t,n,i){n[i]=e[t]*N,n[i+1]=e[t+1]*N,n[i+2]=e[t+2]}function b(e,t,n,i,r){const s=r+e[t+2],o=O*e[t+1],l=O*e[t],a=Math.cos(o)*s;n[i]=Math.cos(l)*a,n[i+1]=Math.sin(l)*a,n[i+2]=Math.sin(o)*s}function I(e,t,n,i){b(e,t,n,i,o.Sw.radius)}function M(e,t,n,i){b(e,t,n,i,o.sH.radius)}function T(e,t,n,i){b(e,t,n,i,o.$O.radius)}function x(e,t,n,r,s){const o=e[t],l=e[t+1],a=e[t+2],u=Math.sqrt(o*o+l*l+a*a),c=(0,i.YN)(a/(0===u?1:u)),p=Math.atan2(l,o);n[r++]=Z*p,n[r++]=Z*c,n[r]=u-s}function _(e,t,n,i){x(e,t,n,i,o.Sw.radius)}function S(e,t,n,i){x(e,t,n,i,o.sH.radius)}function A(e,t,n,i){x(e,t,n,i,o.$O.radius)}function F(e,t,n,i){!function(e,t,n,i,r){const s=O*e[t],o=O*e[t+1],l=e[t+2],a=Math.sin(o),u=Math.cos(o),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[i++]=(c+l)*u*Math.cos(s),n[i++]=(c+l)*u*Math.sin(s),n[i++]=(c*(1-r.eccentricitySquared)+l)*a}(e,t,n,i,o.$O)}function C(e,t,n,i){const r=u,s=e[t],l=e[t+1],a=e[t+2];let c,p,d,f,h,m,y,g,v,w,b,I,M,T,x,_,S,A,F,C,j;c=Math.abs(a),p=s*s+l*l,d=Math.sqrt(p),f=p+a*a,h=Math.sqrt(f),C=Math.atan2(l,s),m=a*a/f,y=p/f,T=r.a2/h,x=r.a3-r.a4/h,y>.3?(g=c/h*(1+y*(r.a1+T+m*x)/h),F=Math.asin(g),w=g*g,v=Math.sqrt(1-w)):(v=d/h*(1-m*(r.a5-T-y*x)/h),F=Math.acos(v),w=1-v*v,g=Math.sqrt(w)),b=1-o.$O.eccentricitySquared*w,I=o.$O.radius/Math.sqrt(b),M=r.a6*I,T=d-I*v,x=c-M*g,S=v*T+g*x,_=v*x-g*T,A=_/(M/b+S),F+=A,j=S+_*A/2,a<0&&(F=-F),n[i++]=Z*C,n[i++]=Z*F,n[i]=j}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},O=(0,i.kU)(1),Z=(0,i.KJ)(1),E=.5*Math.PI,R=o.$O.radius,P=R*Math.PI/180,N=180/(R*Math.PI)},41366:(e,t,n)=>{n.d(t,{K:()=>d,Q:()=>u});var i=n(31635),r=n(66552),s=n(53966),o=n(10107),l=(n(44208),n(87811),n(93223)),a=n(64108);const u=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),c="percent-of-total",p="field",d=e=>{const t=e;let n=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,n=null!=this.normalizationTotal;return t||n?(e=t&&p||n&&c||null,t&&n&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==p&&e!==c||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(u,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,i.Cg)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],n),n}},41560:(e,t,n)=>{n.d(t,{Ch:()=>o,mW:()=>s});var i=n(34727),r=n(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,n){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:i}of e.filters)t[0]=Math.max(t[0],c(n)),t[1]=Math.min(t[1],p(i));return t}(e);if(s&&((0,i.gg)(t,s[0])||(0,i.ZH)(n,s[1])))return"";const o=Array.from(l(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const r=c(e.at(0)?.minScale),s=p(e.at(-1)?.maxScale);if((0,i.ZH)(r,t)||(0,i.gg)(s,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];if((0,i.ZH)(c(r.minScale),p(n.maxScale)))return!0}return!1}(o,t,n)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,r.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,n){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)a(i.minScale,i.maxScale,t,n)&&(yield i)}}function a(e,t,n,r){return e=c(e),n=c(n),t=p(t),!(!(0,i.Sp)(n,e)&&(r??n)>e||(0,i.Hx)(t,n)||void 0!==r&&(0,i.Sp)(r,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},46140:(e,t,n)=>{n.d(t,{R:()=>r});var i=n(49186);let r=class e{constructor(e,t,n=""){this.major=e,this.minor=t,this._context=n}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",n=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${n}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,n=""){const[r,s]=t.split("."),o=/^\s*\d+\s*$/;if(!r?.match||!o.test(r))throw new i.A((n&&n+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!s?.match||!o.test(s))throw new i.A((n&&n+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const l=parseInt(r,10),a=parseInt(s,10);return new e(l,a,n)}}},50498:(e,t,n)=>{n.d(t,{Ye:()=>p,gy:()=>c,yR:()=>d});var i=n(66552),r=n(5443),s=n(91075),o=n(48526),l=n(86738),a=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,n)=>{n.d(t,{A:()=>M});var i,r=n(31635),s=n(37838),o=n(69540),l=n(51447),a=n(25482),u=n(53966),c=n(36708),p=n(24326),d=n(10107),f=(n(44208),n(87811),n(64108)),h=n(12195),m=n(65864),y=n(50498),g=n(55156),v=n(60950),w=n(54339),b=n(33910);function I(e){if(null==e)return null;const t={};for(const n in e){const i=e[n];i&&(t[n]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let M=class extends((0,o.OU)(a.o)){static{i=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,p.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 i({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=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:I(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(r.action=i),"attributes"===e&&(r.attributeName=i),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,c.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,c.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,r.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const i=(0,m.rS)(e[n]);i&&(t[n]=i)}return 0!==Object.keys(t).length?t:null}}})],M.prototype,"aggregateGeometries",null),(0,r.Cg)([(0,d.MZ)({value:null})],M.prototype,"attributes",null),(0,r.Cg)([(0,d.MZ)({value:null,types:y.yR,json:{read:m.rS}})],M.prototype,"geometry",null),(0,r.Cg)([(0,d.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,r.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,r.Cg)([(0,d.MZ)({type:s.A,value:null})],M.prototype,"popupTemplate",null),(0,r.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,r.Cg)([(0,d.MZ)({value:null,types:b.Es})],M.prototype,"symbol",null),(0,r.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=i=(0,r.Cg)([(0,f.$)("esri.Graphic")],M)},54339:(e,t,n)=>{function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const i of t.fieldNames)n.push(e.attributes[i]??null);return JSON.stringify(n)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>i,r:()=>r})},55156:(e,t,n)=>{n.d(t,{I:()=>r,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&i in t?e[i]:void 0;var t}},55674:(e,t,n)=>{n.d(t,{Ad:()=>f,Gj:()=>y,QY:()=>d,lL:()=>g,xR:()=>h});var i=n(66131),r=n(49186),s=(n(44208),n(44729)),o=n(15032),l=n(65864),a=n(95466),u=n(43668),c=n(98623);const p=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const n of p)t.hasArcadeDependency(n)&&e.add(n);return e}function f(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,n){return m.create(e,t,n,["$feature","$view","$config"])}class m{static async create(e,t,n,i){const{arcade:s,Dictionary:o}=await(0,u.l)();let l;try{l=s.parseScript(e)}catch(t){throw new r.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const a=s.scriptUsesGeometryEngine(l);a&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,l,null,!1,a);const c={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=s.compileScript(l,c);let d=null;null!=n&&(d=new o(n),d.immutable=!0);const f=new o;return f.immutable=!1,f.setField("scale",0),new m(e,s,l,p,t,f,d,o)}constructor(e,t,n,i,r,s,o,l){this.script=e,this._arcade=t,this._syntaxTree=n,this._compiled=i,this._spatialReference=r,this._viewDict=s,this._configDict=o,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const n=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:r,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=r?null!=n?i.lY.epochToArcadeDate(r,n):i.lY.unknownEpochToArcadeDate(r):void 0,currentEnd:null!=s?null!=n?i.lY.epochToArcadeDate(s,n):i.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:n})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,n){const i=t??new a.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=n}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const n=this._getField(e);if(n){const t=this._boundTarget.attributes[n.name];if(null==t)return null;switch(n.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const n in e)t.push({name:n,alias:n,type:"string"==typeof e[n]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},62815:(e,t,n)=>{n.d(t,{N:()=>o});var i=n(83047),r=n(73941),s=n(21325);function o(e,t,n){if(null==t||null==n||n.vcsWkid||(0,s.aI)(t,n)||(0,r.xP)(t)||(0,r.xP)(n))return null;const o=(0,i.G9)(t)/(0,i.G9)(n);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},63396:(e,t,n)=>{n.d(t,{d:()=>T});var i=n(31635),r=n(10107),s=(n(44208),n(53966),n(87811),n(64108)),o=n(60950),l=n(99959);class a extends l.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}}var u=n(37838),c=n(69540),p=n(25482),d=n(93637),f=n(43937),h=n(50820),m=n(10873),y=n(46499),g=n(41214);let v=class extends((0,c.OU)(p.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,r.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,r.MZ)(m.kF)],v.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,r.MZ)({types:g.Hg,json:{write:!0}})],v.prototype,"renderer",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{write:!0}})],v.prototype,"visible",void 0),v=(0,i.Cg)([(0,s.$)("esri.layers.support.TrackPartInfo")],v);var w=n(96576),b=n(59868),I=n(10184);let M=class extends((0,c.OU)(p.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new v({renderer:new w.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new v({renderer:new w.A({symbol:b.UK.clone()})}),this.trackLines=new v({renderer:new w.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,n){const i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,d.sM)(n,i,t)}};(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"enabled",void 0),(0,i.Cg)([(0,r.MZ)({type:[h.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,f.K)("fields")],M.prototype,"writeFields",null),(0,i.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"latestObservations",void 0),(0,i.Cg)([(0,r.MZ)({type:I.A,json:{write:!0}})],M.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,r.MZ)({type:Number,json:{write:!0}})],M.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,r.MZ)(m.M6)],M.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,r.MZ)({type:u.A,json:{name:"popupInfo",write:!0}})],M.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"previousObservations",void 0),(0,i.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"trackLines",void 0),(0,i.Cg)([(0,r.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],M.prototype,"timeField",void 0),M=(0,i.Cg)([(0,s.$)("esri.layers.support.TrackInfo")],M);const T=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,i.Cg)([(0,r.MZ)({readOnly:!0,clonable:!1})],n.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,r.MZ)({type:M})],n.prototype,"trackInfo",void 0),n=(0,i.Cg)([(0,s.$)("esri.layers.mixins.TrackableLayer")],n),n}},69208:(e,t,n)=>{n.d(t,{d:()=>o});var i=n(31635),r=n(10107),s=(n(44208),n(53966),n(87811),n(64108));const o=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],n.prototype,"customParameters",void 0),n=(0,i.Cg)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],n),n}},70328:(e,t,n)=>{n.d(t,{BI:()=>w,DC:()=>p,Ej:()=>f,Ie:()=>g,Jt:()=>v,Ne:()=>h,RF:()=>c,aI:()=>I,fA:()=>o,gE:()=>a,hZ:()=>y,iT:()=>d,is:()=>b,qv:()=>M,vI:()=>m,vY:()=>l,v_:()=>T,vt:()=>s,w1:()=>u});var i=n(5443),r=(n(19419),n(4197));function s(e=T){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,i,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l}function l(e,t=s()){return function(e,t,n,i=s()){return y(i,M),function(e,t,n=0,i=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)r=Math.min(r,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),l=Math.max(l,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(i,e,t,n),i}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[n,i,s,o,l,a]=e;return t[0]=n,t[1]=i,t[2]=s,t[3]=n,t[4]=i,t[5]=a,t[6]=n,t[7]=l,t[8]=s,t[9]=n,t[10]=l,t[11]=a,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new i.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function 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[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(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 d(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 h(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function m(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function y(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?y(e,M):s(M)}function v(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 w(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function b(e){return 6===e.length}function I(e,t,n){if(null==e||null==t)return e===t;if(!b(e)||!b(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],T=[0,0,0,0,0,0];s()},72691:(e,t,n)=>{n.d(t,{Aw:()=>o,DN:()=>i,EA:()=>s,Gm:()=>r,xq:()=>l});const i="__esri_stream_id__",r="__esri_timestamp__",s="__esri_track_part__",o="__esri_time_received__",l="__esri_track_line__"},73133:(e,t,n)=>{n.d(t,{j:()=>i});const i=(0,n(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})},73681:(e,t,n)=>{n.d(t,{n:()=>a});var i=n(49186),r=n(53966),s=n(46140),o=n(95466),l=n(55674);class a{static async from(e,t,n){const o=e.dictionary_version?s.R.parse(e.dictionary_version):null,c=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(n))d.delete(e);d.size&&r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const f=await(0,l.xR)(e.expression,null,p);if(!f)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const m=new u(n,h);return new a(h,c,f,m)}constructor(e,t,n,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=n,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,n,i){try{return this._reader.bind(e,n,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},79457:(e,t,n)=>{n.r(t),n.d(t,{default:()=>oe});var i=n(31635),r=n(37838),s=n(78888),o=n(69540),l=n(49186),a=n(36563),u=n(4718),c=n(53966),p=n(25728),d=n(74887),f=n(10107),h=n(56507),m=n(36005),y=n(64108),g=n(5443),v=n(16930),w=n(50498),b=n(55156),I=n(60950),M=n(89808),T=n(99959);const x=Symbol("isStreamGraphicOrigin");var _;class S extends T.A{get[(_=x,I.ym)](){return this.layer}get[b.e](){return this.layer}get[M.Q](){return this.layer}constructor(e){super(),this[_]=!0,this.type="stream",this.layer=e}get id(){return this.layer.id}}var A,F=n(4146),C=n(18768),j=n(63074),O=n(69208),Z=n(6455),E=n(87718),R=n(56658),P=n(16131),N=n(8303),D=n(54310),L=n(25036),k=n(82935),U=n(63396),$=n(10873),G=n(15426),z=n(20437),q=n(17036),V=n(30524),J=n(46499),B=n(39383),Y=n(25482);n(44208),n(87811);let H=class extends Y.o{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}static{A=this}clone(){return new A({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"age",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"ageReceived",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"displayCount",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"maxObservations",void 0),H=A=(0,i.Cg)([(0,y.$)("esri.layers.support.PurgeOptions")],H);var K=n(72691),W=n(65494),Q=n(8947),X=n(41214),ee=n(61956),te=n(30291),ne=n(88625);const ie=(0,q.p)();function re(e,t){return new l.A("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}let se=class extends((0,Z.FJ)((0,R.J)((0,E.F)((0,j.dM)((0,k.e)((0,U.d)((0,L.j)((0,D.J)((0,C.b)((0,P.q)((0,N.A)((0,p.P)((0,O.d)((0,o.OU)(F.A))))))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.graphicOrigin=new S(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.outFields=["*"],this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new H,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=v.A.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,i)=>{const{save:r,saveAs:s}=await n.e(7301).then(n.bind(n,87301));switch(e){case 0:return r(this,t);case 1:return s(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new l.A("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,V.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,n){t=t.layerDefinition||t;const i=t.drawingInfo?.renderer;if(i){const e=(0,W.L)(i,t,n)||void 0;return e||c.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:n}),e}return(0,G.PD)(t,n)}async connect(e){const[{createConnection:t}]=await Promise.all([n.e(624).then(n.bind(n,30624)),this.load()]),i=this.geometryType?w.gy.toJSON(this.geometryType):null,{customParameters:r=null,definitionExpression:s=null,geometryDefinition:o=null,maxReconnectionAttempts:l=0,maxReconnectionInterval:u=20,spatialReference:c=this.spatialReference}=e||this.createConnectionParameters(),p=t(this.parsedUrl,this.spatialReference,c,i,s,o,l,u,r??void 0),d=(0,a.vE)([this.on("send-message-to-socket",e=>p.sendMessageToSocket(e)),this.on("send-message-to-client",e=>p.sendMessageToClient(e))]);return p.once("destroy",d.remove),p}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,te.tn)(this,e)}createQuery(){const e=new ee.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let n=null;return this.fields.some(t=>(t.name===e&&(n=t.domain),!!n)),n}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){const n=t?.messages;return this.webSocketUrl?(n?.push(re(this,"using a custom websocket connection cannot be written to web scenes and web maps")),null):this.parsedUrl?super.write(e,t):(n?.push(re(this,"using a client-side only connection without a url cannot be written to web scenes and web maps")),null)}async _fetchService(e){if(!this.webSocketUrl&&this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,s.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new l.A("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField){const e=this.fields.find(e=>"oid"===e.type)?.name;if(!e)throw new l.A("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");this.objectIdField=e}if(!this.fields)throw new l.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields.some(e=>e.name===this.objectIdField)||this.fields.push(new z.A({name:this.objectIdField,alias:this.objectIdField,type:"oid"})),!this.geometryType)throw new l.A("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.webSocketUrl&&(this.url=this.webSocketUrl)}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,V.yp)(this.renderer,this.fieldsIndex),(0,V.sv)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField=K.DN),(0,Q.L)(this,{origin:"service"})}};(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"copyright",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],se.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],se.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"displayField",void 0),(0,i.Cg)([(0,f.MZ)({type:ne.A})],se.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,f.MZ)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],se.prototype,"featureReduction",null),(0,i.Cg)([(0,f.MZ)(ie.fields)],se.prototype,"fields",void 0),(0,i.Cg)([(0,f.MZ)(ie.fieldsIndex)],se.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,f.MZ)({type:g.A,json:{name:"layerDefinition.definitionGeometry",write:!0}})],se.prototype,"geometryDefinition",void 0),(0,i.Cg)([(0,f.MZ)({type:w.gy.apiValues,json:{read:{reader:w.gy.read}}})],se.prototype,"geometryType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],se.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,f.MZ)($.kF)],se.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,f.MZ)({type:[J.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:B.w},write:!0}})],se.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,f.MZ)($.fV)],se.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],se.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)({type:h.jz})],se.prototype,"maxReconnectionAttempts",void 0),(0,i.Cg)([(0,f.MZ)({type:h.jz})],se.prototype,"maxReconnectionInterval",void 0),(0,i.Cg)([(0,f.MZ)($.hG)],se.prototype,"maxScale",void 0),(0,i.Cg)([(0,f.MZ)($.hn)],se.prototype,"minScale",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"objectIdField",void 0),(0,i.Cg)([(0,f.MZ)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],se.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],se.prototype,"outFields",void 0),(0,i.Cg)([(0,f.MZ)($.M6)],se.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:r.A,json:{name:"popupInfo",write:!0}})],se.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({type:H})],se.prototype,"purgeOptions",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1,write:!1}})],se.prototype,"refreshInterval",void 0),(0,i.Cg)([(0,f.MZ)({types:X.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:X.XJ,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],se.prototype,"renderer",null),(0,i.Cg)([(0,m.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,m.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],se.prototype,"readRenderer",null),(0,i.Cg)([(0,f.MZ)((()=>{const e=(0,u.o8)($.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],se.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,f.MZ)()],se.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,f.MZ)({type:v.A,json:{origins:{service:{read:{source:"spatialReference"}}}}})],se.prototype,"spatialReference",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],se.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)($.OZ)],se.prototype,"url",void 0),(0,i.Cg)([(0,f.MZ)({type:Number})],se.prototype,"updateInterval",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1,write:!1}})],se.prototype,"useViewTime",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"webSocketUrl",void 0),se=(0,i.Cg)([(0,y.$)("esri.layers.StreamLayer")],se);const oe=se},82935:(e,t,n)=>{n.d(t,{B:()=>f,e:()=>h});var i=n(31635),r=n(10107),s=(n(44208),n(53966),n(87811),n(36005)),o=n(64108),l=n(89317),a=n(30524),u=n(96184),c=n(73133),p=n(79677),d=n(10184);const f={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:l.K}}},h=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const i=n.timeOffset,r=c.j.fromJSON(n.timeOffsetUnits);return i&&r?new d.A({value:i,unit:r}):null}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,r.MZ)({type:p.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,i.Cg)([(0,r.MZ)({type:d.A})],n.prototype,"timeOffset",void 0),(0,i.Cg)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,i.Cg)([(0,r.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,i.Cg)([(0,r.MZ)(f)],n.prototype,"useViewTime",void 0),n=(0,i.Cg)([(0,o.$)("esri.layers.mixins.TemporalLayer")],n),n}},83960:(e,t,n)=>{n.d(t,{X_:()=>o,oW:()=>a,zx:()=>l});var i=n(34727),r=n(83047);const s=96;function o(e,t){const n=t||e.extent,i=e.width,o=(0,r.GA)(n?.spatialReference);return n&&i?n.width/i*o*r.dy*s:0}function l(e,t,n){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,n)}function a(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},91218:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>q,initializeProjection:()=>J,isEqualBaseGCS:()=>V,isLoaded:()=>j,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>Z,load:()=>R,project:()=>P,projectExtent:()=>ne,projectMany:()=>N,projectMultipoint:()=>K,projectOrLoad:()=>D,projectOrLoadMany:()=>L,projectPoint:()=>Y,projectPolygon:()=>ee,projectPolyline:()=>Q,projectWithZConversion:()=>z,projectWithoutEngine:()=>B,requiresLoad:()=>E,test:()=>$,tryProjectWithZConversion:()=>G,unload:()=>U});var i=n(49186),r=n(74887),s=n(62788),o=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(91075),d=n(48526),f=n(86738),h=n(39829),m=n(82799),y=n(16930),g=n(159),v=n(9762),w=n(37539);function b(e,t,n,i,r,s){return I[0]=e,I[1]=t,I[2]=n,(0,v.projectBuffer)(I,i,0,r,s,0)}const I=(0,l.vt)();var M=n(21325),T=n(62815);let x=null,_=null,S=null,A=null,F={};const C=new o.I;function j(){return!!(_?.isLoaded()&&S?.isLoaded()&&A?.isLoaded())}function O(){return!!j()||((0,s.gc)(C),R(),!1)}function Z(e,t){return!e||!t||q(e,t)||O()}function E(e,t){return!q(e,t)&&!j()}async function R(e){null==x&&(x=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(_=e,_.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(S=e,S.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(A=e,A.load()))])),await x,(0,r.Te)(e),C.notify()}function P(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),N(e,e[0].spatialReference,t,n)):((0,a.f)(e),N([e],e.spatialReference,t,n)[0])}function N(e,t,n,i){if(null==t||null==n)return e;if(q(t,n,i))return e.map(e=>B(e,t,n));if(null==i?.geographicTransformation&&(0,u.jA)(t))return e.map(e=>B(e,t,y.A.WGS84)).map(e=>G(e,n));if(null==i?.geographicTransformation&&(0,u.jA)(n))return e.map(e=>G(e,y.A.WGS84)).map(e=>B(e,y.A.WGS84,n));if(!j())throw new k;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:A.getTransformation(t,n,i.areaOfInterestExtent)||new g.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=F[e];r||(r=A.getTransformation(t,n)||new g.A,F[e]=r),i={geographicTransformation:r}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?_.executeMany(e,n,i):S.executeMany(e,n,i)}function D(e,t){const n=L([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function L(e,t){if(!j())for(const n of e)if(null!=n&&!(0,M.aI)(n.spatialReference,t)&&(0,M.fn)(n.spatialReference)&&(0,M.fn)(t)&&!q(n.spatialReference,t))return(0,s.gc)(C),{pending:R(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,M.aI)(e.spatialReference,t)?e:(0,M.fn)(e.spatialReference)&&(0,M.fn)(t)?G(e,t):null)}}class k extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){x=null,_=null,S=null,A=null,F={}}const $={get loadPromise(){return x}};function G(e,t){try{const n=P(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const i=(0,T.N)(n.type,e.spatialReference,t);return null!=i&&i(n),n}catch(e){if(!(e instanceof k))throw e;return null}}async function z(e,t,n){const i=e.spatialReference;return null!=i&&null!=t&&await J(i,t,null,n),G(e,t)}function q(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,M.aI)(e,t)||(0,M.fn)(e)&&(0,M.fn)(t)&&!!(0,w.jd)(e,t))}function V(e,t){if((0,M.aI)(e,t))return!0;if(!(0,M.fn)(e)||!(0,M.fn)(t))return!1;const n=(0,M.oT)(e)||(0,M.K8)(e)||(0,M.x1)(e),i=(0,M.oT)(t)||(0,M.K8)(t)||(0,M.x1)(t);return n&&i}async function J(e,t,n,i){if(j())return(0,r.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!q(t,n,r))return R(i)}else if(e&&t&&!q(e,t,n))return R(i);return(0,r.NO)(i)}function B(e,t,n){return e?"x"in e?H(e,t,new f.A,n,0):"xmin"in e?ie(e,t,new c.A,n,0):"rings"in e?te(e,t,new h.A,n,0):"paths"in e?X(e,t,new m.A,n,0):"points"in e?W(e,t,new d.A,n,0):null:null}function Y(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,n,i)}function H(e,t,n,i,r){se[0]=e.x,se[1]=e.y;const s=e.z;return se[2]=void 0!==s?s:r,(0,v.projectBuffer)(se,t,0,se,i,0)?(n.x=se[0],n.y=se[1],n.spatialReference=i,void 0!==s||(0,u.xP)(i)?(n.z=se[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function K(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=W(e,e.spatialReference,t,n,i)}function W(e,t,n,i,r){const{points:s,hasZ:o,hasM:l}=e,a=[],c=s.length,p=[];for(const e of s)p.push(e[0],e[1],o?e[2]:r);if(!(0,v.projectBuffer)(p,t,0,p,i,0,c))return null;const d=o||(0,u.xP)(i);for(let e=0;e<c;++e){const t=3*e,n=p[t],i=p[t+1];d&&l?a.push([n,i,p[t+2],s[e][3]]):d?a.push([n,i,p[t+2]]):l?a.push([n,i,s[e][2]]):a.push([n,i])}return n.points=a,n.spatialReference=i,n.hasZ=o,n.hasM=l,n}function Q(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=X(e,e.spatialReference,t,n,i)}function X(e,t,n,i,r){const{paths:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.paths=a,n.spatialReference=i,n.hasZ=c,n.hasM=l,n}function ee(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,i)}function te(e,t,n,i,r){const{rings:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.rings=a,n.spatialReference=i,n.hasZ=c,n.hasM=l,n}function ne(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,i)}function ie(e,t,n,i,r){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:p}=e;if(!b(s,o,c?e.zmin:r,t,se,i))return null;const d=c||(0,u.xP)(i);return n.xmin=se[0],n.ymin=se[1],d&&(n.zmin=se[2]),b(l,a,c?e.zmax:r,t,se,i)?(n.xmax=se[0],n.ymax=se[1],d&&(n.zmax=se[2]),p&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function re(e,t,n,i,r,s,o=0){const l=new Array;for(const n of e)for(const e of n)l.push(e[0],e[1],t?e[2]:o);if(!(0,v.projectBuffer)(l,i,0,l,s,0))return!1;let a=0;r.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const i of t)c&&n?e.push([l[a++],l[a++],l[a++],i[3]]):c?e.push([l[a++],l[a++],l[a++]]):n?(e.push([l[a++],l[a++],i[2]]),a++):(e.push([l[a++],l[a++]]),a++);r.push(e)}return!0}const se=(0,l.vt)()},95466:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(49186),r=n(53966),s=n(91869),o=n(3330),l=n(12195),a=n(30524),u=n(98623),c=n(56400),p=n(28097);const d=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 n=[];for(const e of this.fields){const t=e?.name,i=m(t);if(t&&i){const r=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${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)}}n.sort(),this.uid=n.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(h(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?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):y.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,()=>p.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 h(e){return e.trim().toLowerCase()}function m(e){return(0,a.rS)(e)?.toLowerCase()??""}const y=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.dateFieldsTimeReference?(0,c.ZS)(r.dateFieldsTimeReference):l??u.n$:null,p=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,c.ZS)(i.timeReference):l:null,d=new Map([[h(r?.creationDateField??""),a],[h(r?.editDateField??""),a],[h(s),p],[h(o),p]]);for(const{name:i,type:r}of e.fields)if(y.has(r))t.set(i,u.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,u.L5);else{const e=d.get(h(i??""))??l;t.set(i,e)}return t}},96184:(e,t,n)=>{n.d(t,{A:()=>h});var i=n(31635),r=n(69540),s=n(25482),o=n(10107),l=(n(44208),n(53966),n(87811),n(36005)),a=n(64108),u=n(43937),c=n(79677),p=n(10184),d=n(56400);function f(e,t){return p.A.fromJSON({value:e,unit:t})}let h=class extends((0,r.OU)(s.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?c.A.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?f(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?f(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}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,l.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,u.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,u.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,d.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,a.$)("esri.layers.support.TimeInfo")],h)},99157:(e,t,n)=>{n.d(t,{A:()=>a});var i,r=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108));let a=i=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=i=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],a)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[73],{159:(e,t,n)=>{n.d(t,{A:()=>u});var i,r=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108)),a=n(99157);let u=i=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,r.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],u.prototype,"steps",void 0),u=i=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},4197:(e,t,n)=>{n.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var i=n(34275),r=n(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function l(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function u(e){const t=(0,r.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},6455:(e,t,n)=>{n.d(t,{FJ:()=>v,Dp:()=>w,KV:()=>b});var i=n(31635),r=n(93637),s=n(10107),o=(n(44208),n(53966),n(87811),n(64108)),l=n(89317),a=n(69540),u=n(7762),c=n(25482),p=n(43937),d=n(83960),f=n(13069);const h={write:{overridePolicy:(e,t,n)=>({enabled:!n||"scale"===n.filterMode})}};let m=class extends((0,a.OU)(c.o)){constructor(e){super(e),this.id=(0,f.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:h})],m.prototype,"maxScale",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:h})],m.prototype,"minScale",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,i.Cg)([(0,o.$)("esri.layers.support.DisplayFilter")],m);var y=n(41560);let g=class extends((0,a.OU)(c.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(u.A.ofType(m)),this.mode="manual"}writeFilters(e,t,n,i){const r=e.toArray();"scale"===this.mode&&r.sort((e,t)=>{const n=(0,d.oW)(t.minScale,e.minScale),i=e.maxScale-t.maxScale;return 0===n?i:n}),t[n]=r.map(e=>e.toJSON(i))}write(e,t){return super.write(e,(0,y.mW)(this,t))}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,n)=>({enabled:"manual"===n.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,s.MZ)({type:u.A.ofType(m),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,i.Cg)([(0,p.K)("filters")],g.prototype,"writeFilters",null),(0,i.Cg)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,i.Cg)([(0,o.$)("esri.layers.support.DisplayFilterInfo")],g);const v=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,i.Cg)([(0,s.MZ)(w)],n.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,s.MZ)(b)],n.prototype,"displayFilterInfo",void 0),n=(0,i.Cg)([(0,o.$)("esri.layers.mixins.DisplayFilteredLayer")],n),n},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:l.K,writer(e,t,n){(0,r.sM)(n,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},b={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:l.K},origins:{"web-scene":{write:!1,read:!1}}}}},6797:(e,t,n)=>{n.d(t,{Ui:()=>d});var i=n(69622),r=n(7762),s=n(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof r.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const i=a(e),r=a(t);if(0===i.length&&0===r.length)return;if(!i.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!i.includes(e)),d=i.filter(e=>!r.includes(e)),f=i.filter(n=>r.includes(n)&&u(e,n)!==u(t,n)).concat(s,d).sort(),h=c(e);if(h&&o.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=l(e)&&l(t);for(const i of f){const r=u(e,i),s=u(t,i);let o;if((y||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(n&&n[i]&&"function"==typeof n[i])o=n[i]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?p(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=m?m.diff[i]=o:m={type:"partial",diff:{[i]:o}})}}return m}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},8303:(e,t,n)=>{n.d(t,{A:()=>M});var i=n(31635),r=n(92602),s=n(70333),o=n(43773),l=n(60999),a=n(49186),u=n(53966),c=n(97768),p=n(74887),d=n(84952),f=n(10107),h=(n(44208),n(87811),n(36005)),m=n(64108),y=n(43937),g=n(77548),v=n(20655),w=n(80812),b=n(41318),I=n(10407);const M=e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.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,n){if(t.itemId)return new w.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await n.e(1204).then(n.bind(n,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)||u.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(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:i},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),r=e===n.id;if(r&&n.portal.user)return this._getUserPrivileges(n,i);let o,l;if(r)o=n.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(r?await n.reload():(n=new w.default({id:e,portal:{url:o}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,i)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const n=(0,I.It)(e);return t&&(n.features.edit=!0),n}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?s.id?.findCredential(this.url):null;if(!t)return!0;const n=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=s.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const i=`${n.owningSystemUrl}/sharing/rest`,r=v.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(i))return r.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?b.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return n&&i&&!(0,d.ut)(i.restUrl,n.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,f.MZ)({type:w.default})],M.prototype,"portalItem",null),(0,i.Cg)([(0,h.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,i.Cg)([(0,y.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,i.Cg)([(0,f.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,i.Cg)([(0,m.$)("esri.layers.mixins.PortalLayer")],M),M},T={credential:null,user:null}},8947:(e,t,n)=>{n.d(t,{L:()=>o});var i=n(60999),r=n(74887),s=n(67076);async function o(e,t,n){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const l=await(0,i.Ke)(o.populateFromStyle());if((0,r.Te)(n),!1===l.ok){const n=l.error;t?.messages&&t.messages.push(new s.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${n.message}`,{error:n,context:t})),e.clear("renderer",t?.origin)}}}},9093:(e,t,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>r,vt:()=>i,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:r,create:i,fromValues:function(e,t,n,i,r,s,o,l,a,u,c,p,d,f,h,m){return[e,t,n,i,r,s,o,l,a,u,c,p,d,f,h,m]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,n)=>{n.r(t),n.d(t,{projectBuffer:()=>r});var i=n(37539);function r(e,t,n,r,s,o,l=Math.floor(e.length/3)){const a=(0,i.jd)(t,s);if(null==a)return!1;if(a===i.pO){if(e===r&&n===o)return!0;const t=n+3*l;for(let i=n,s=o;i<t;i++,s++)r[s]=e[i];return!0}const u=n+3*l;for(let t=n,i=o;t<u;t+=3,i+=3)a(e,t,r,i);return!0}},10184:(e,t,n)=>{n.d(t,{A:()=>p});var i=n(31635),r=n(69540),s=n(25482),o=n(88930),l=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),u=n(64108),c=n(73133);let p=class extends((0,r.OU)(s.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,a.e)(c.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i.Cg)([(0,u.$)("esri.time.TimeInterval")],p)},10407:(e,t,n)=>{n.d(t,{It:()=>f,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,mm:()=>d,sQ:()=>p});var i=n(91218),r=n(16930),s=n(28735);function o(e,t){if(!l(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,d.HOSTED_SERVICE)}function u(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function c(e,t,n){n?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const n=r.A.WGS84;return await(0,i.initializeProjection)(t,n),(0,i.project)(e,n)}(n)}const d={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 f(e){const{portal:t,isOrgItem:n,itemControl:i}=e,r=t.user?.privileges;let s=!r||r.includes("features:user:edit"),o=!!n&&!!r?.includes("features:user:fullEdit");const l="update"===i||"admin"===i;return l?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:l}}}},13069:(e,t,n)=>{n.d(t,{AG:()=>l,lk:()=>r,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function r(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17036:(e,t,n)=>{n.d(t,{p:()=>a});var i=n(44208),r=n(53966),s=n(20437),o=n(95466),l=n(30524);function a(){return{fields:{type:[s.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(", ");r.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 n=this.fieldsIndex?.has(t);n||r.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},18768:(e,t,n)=>{n.d(t,{b:()=>a});var i=n(31635),r=n(53966),s=n(10107),o=(n(44208),n(87811),n(64108)),l=n(60694);const a=e=>{const t=e;let n=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.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,l.Jf)(e,r.A.getLogger(this)))}};return(0,i.Cg)([(0,s.MZ)()],n.prototype,"title",null),(0,i.Cg)([(0,s.MZ)({type:String})],n.prototype,"url",null),n=(0,i.Cg)([(0,o.$)("esri.layers.mixins.ArcGISService")],n),n}},32730:(e,t,n)=>{n.d(t,{BI:()=>y,D3:()=>h,XJ:()=>m,lc:()=>f,mX:()=>v,rU:()=>g,tH:()=>T});var i=n(799);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+r,"i"),u=new RegExp(s+"$","i"),c='"',p=c+" + ",d=" + "+c;function f(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=f(e.labelExpression),t.type="conventional"),t}function y(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(w);return t?.[1].trim()||null}(t.expression);case"arcade":return T(t.expression)}return null}function v(e){let t;return e?(t=(0,i.HC)(e,e=>r+'$feature["'+e+'"]'+s),t=a.test(t)?t.replace(a,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(o,p).replaceAll(l,d)):t='""',t}const w=/^\s*\{([^}]+)\}\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,I=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function T(e){if(!e)return null;let t=b.exec(e)||I.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}},37539:(e,t,n)=>{n.d(t,{pO:()=>m,jd:()=>d,Tp:()=>f,w5:()=>p});var i=n(34727),r=n(83047),s=n(73941),o=n(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=n(21325);const p={2:{5:m,7:null,9:null,10:m,1:T,6:null,8:null,0:null,3:g,11:v,2:m,4:F},5:{5:m,7:null,9:null,10:m,1:T,6:null,8:null,0:null,3:g,11:v,2:m,4:F},7:{5:null,7:m,9:null,10:m,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:I,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(e,t,n,i){const r=e[t]/R,s=E-2*Math.atan(Math.exp(-e[t+1]/R)),o=R+e[t+2],l=Math.cos(s)*o;n[i]=Math.cos(r)*l,n[i+1]=Math.sin(r)*l,n[i+2]=Math.sin(s)*o},6:null,8:null,0:null,3:m,11:function(e,t,n,i){y(e,t,n,i),v(n,i,n,i)},2:y,4:function(e,t,n,i){y(e,t,n,i),F(n,i,n,i)}},4:{5:C,7:null,9:null,10:C,1:function(e,t,n,i){C(e,t,n,i),T(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){C(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){C(e,t,n,i),v(n,i,n,i)},2:C,4:m},1:{5:A,7:null,9:null,10:A,1:m,6:null,8:null,0:null,3:function(e,t,n,i){A(e,t,n,i),g(n,i,n,i)},11:function(e,t,n,i){A(e,t,n,i),v(n,i,n,i)},2:A,4:function(e,t,n,i){A(e,t,n,i),F(n,i,n,i)}},6:{5:null,7:S,9:null,10:S,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:_,10:_,1:null,6:null,8:m,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:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:T,6:M,8:I,0:null,3:g,11:v,2:m,4:F},11:{5:w,7:null,9:null,10:w,1:function(e,t,n,i){w(e,t,n,i),T(n,i,n,i)},6:null,8:null,0:null,3:function(e,t,n,i){w(e,t,n,i),g(n,i,n,i)},11:m,2:w,4:function(e,t,n,i){w(e,t,n,i),F(n,i,n,i)}}};function d(e,t){return f(e,t)?.projector}function f(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const n=h(e,j.source),i=h(t,j.dest);return 0===n&&0===i?(0,c.aI)(e,t)?j.projector=m:j.projector=null:j.projector=p[n][i],j}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(e,t,n,i){e!==n&&(n[i++]=e[t++],n[i++]=e[t++],n[i]=e[t])}function y(e,t,n,i){n[i]=Z*(e[t]/R),n[i+1]=Z*(E-2*Math.atan(Math.exp(-e[t+1]/R))),n[i+2]=e[t+2]}function g(e,t,n,r){!function(e,t,n,r,s){const o=.4999999*Math.PI,l=(0,i.qE)(O*e[t+1],-o,o),a=Math.sin(l);n[r++]=O*e[t]*s.radius,n[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[r]=e[t+2]}(e,t,n,r,o.$O)}function v(e,t,n,i){n[i]=e[t]*P,n[i+1]=e[t+1]*P,n[i+2]=e[t+2]}function w(e,t,n,i){n[i]=e[t]*N,n[i+1]=e[t+1]*N,n[i+2]=e[t+2]}function b(e,t,n,i,r){const s=r+e[t+2],o=O*e[t+1],l=O*e[t],a=Math.cos(o)*s;n[i]=Math.cos(l)*a,n[i+1]=Math.sin(l)*a,n[i+2]=Math.sin(o)*s}function I(e,t,n,i){b(e,t,n,i,o.Sw.radius)}function M(e,t,n,i){b(e,t,n,i,o.sH.radius)}function T(e,t,n,i){b(e,t,n,i,o.$O.radius)}function x(e,t,n,r,s){const o=e[t],l=e[t+1],a=e[t+2],u=Math.sqrt(o*o+l*l+a*a),c=(0,i.YN)(a/(0===u?1:u)),p=Math.atan2(l,o);n[r++]=Z*p,n[r++]=Z*c,n[r]=u-s}function _(e,t,n,i){x(e,t,n,i,o.Sw.radius)}function S(e,t,n,i){x(e,t,n,i,o.sH.radius)}function A(e,t,n,i){x(e,t,n,i,o.$O.radius)}function F(e,t,n,i){!function(e,t,n,i,r){const s=O*e[t],o=O*e[t+1],l=e[t+2],a=Math.sin(o),u=Math.cos(o),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);n[i++]=(c+l)*u*Math.cos(s),n[i++]=(c+l)*u*Math.sin(s),n[i++]=(c*(1-r.eccentricitySquared)+l)*a}(e,t,n,i,o.$O)}function C(e,t,n,i){const r=u,s=e[t],l=e[t+1],a=e[t+2];let c,p,d,f,h,m,y,g,v,w,b,I,M,T,x,_,S,A,F,C,j;c=Math.abs(a),p=s*s+l*l,d=Math.sqrt(p),f=p+a*a,h=Math.sqrt(f),C=Math.atan2(l,s),m=a*a/f,y=p/f,T=r.a2/h,x=r.a3-r.a4/h,y>.3?(g=c/h*(1+y*(r.a1+T+m*x)/h),F=Math.asin(g),w=g*g,v=Math.sqrt(1-w)):(v=d/h*(1-m*(r.a5-T-y*x)/h),F=Math.acos(v),w=1-v*v,g=Math.sqrt(w)),b=1-o.$O.eccentricitySquared*w,I=o.$O.radius/Math.sqrt(b),M=r.a6*I,T=d-I*v,x=c-M*g,S=v*T+g*x,_=v*x-g*T,A=_/(M/b+S),F+=A,j=S+_*A/2,a<0&&(F=-F),n[i++]=Z*C,n[i++]=Z*F,n[i]=j}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},O=(0,i.kU)(1),Z=(0,i.KJ)(1),E=.5*Math.PI,R=o.$O.radius,P=R*Math.PI/180,N=180/(R*Math.PI)},41366:(e,t,n)=>{n.d(t,{K:()=>d,Q:()=>u});var i=n(31635),r=n(66552),s=n(53966),o=n(10107),l=(n(44208),n(87811),n(93223)),a=n(64108);const u=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),c="percent-of-total",p="field",d=e=>{const t=e;let n=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,n=null!=this.normalizationTotal;return t||n?(e=t&&p||n&&c||null,t&&n&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==p&&e!==c||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(u,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,i.Cg)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],n),n}},41560:(e,t,n)=>{n.d(t,{Ch:()=>o,mW:()=>s});var i=n(34727),r=n(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,n){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:i}of e.filters)t[0]=Math.max(t[0],c(n)),t[1]=Math.min(t[1],p(i));return t}(e);if(s&&((0,i.gg)(t,s[0])||(0,i.ZH)(n,s[1])))return"";const o=Array.from(l(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const r=c(e.at(0)?.minScale),s=p(e.at(-1)?.maxScale);if((0,i.ZH)(r,t)||(0,i.gg)(s,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];if((0,i.ZH)(c(r.minScale),p(n.maxScale)))return!0}return!1}(o,t,n)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,r.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,n){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)a(i.minScale,i.maxScale,t,n)&&(yield i)}}function a(e,t,n,r){return e=c(e),n=c(n),t=p(t),!(!(0,i.Sp)(n,e)&&(r??n)>e||(0,i.Hx)(t,n)||void 0!==r&&(0,i.Sp)(r,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},46140:(e,t,n)=>{n.d(t,{R:()=>r});var i=n(49186);let r=class e{constructor(e,t,n=""){this.major=e,this.minor=t,this._context=n}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",n=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${n}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,n=""){const[r,s]=t.split("."),o=/^\s*\d+\s*$/;if(!r?.match||!o.test(r))throw new i.A((n&&n+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!s?.match||!o.test(s))throw new i.A((n&&n+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const l=parseInt(r,10),a=parseInt(s,10);return new e(l,a,n)}}},50498:(e,t,n)=>{n.d(t,{Ye:()=>p,gy:()=>c,yR:()=>d});var i=n(66552),r=n(5443),s=n(91075),o=n(48526),l=n(86738),a=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,n)=>{n.d(t,{A:()=>M});var i,r=n(31635),s=n(37838),o=n(69540),l=n(51447),a=n(25482),u=n(53966),c=n(36708),p=n(24326),d=n(10107),f=(n(44208),n(87811),n(64108)),h=n(12195),m=n(65864),y=n(50498),g=n(55156),v=n(60950),w=n(54339),b=n(33910);function I(e){if(null==e)return null;const t={};for(const n in e){const i=e[n];i&&(t[n]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let M=class extends((0,o.OU)(a.o)){static{i=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,p.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 i({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=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:I(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(r.action=i),"attributes"===e&&(r.attributeName=i),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,c.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,c.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,r.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const i=(0,m.rS)(e[n]);i&&(t[n]=i)}return 0!==Object.keys(t).length?t:null}}})],M.prototype,"aggregateGeometries",null),(0,r.Cg)([(0,d.MZ)({value:null})],M.prototype,"attributes",null),(0,r.Cg)([(0,d.MZ)({value:null,types:y.yR,json:{read:m.rS}})],M.prototype,"geometry",null),(0,r.Cg)([(0,d.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,r.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,r.Cg)([(0,d.MZ)({type:s.A,value:null})],M.prototype,"popupTemplate",null),(0,r.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,r.Cg)([(0,d.MZ)({value:null,types:b.Es})],M.prototype,"symbol",null),(0,r.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=i=(0,r.Cg)([(0,f.$)("esri.Graphic")],M)},54339:(e,t,n)=>{function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const i of t.fieldNames)n.push(e.attributes[i]??null);return JSON.stringify(n)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>i,r:()=>r})},55156:(e,t,n)=>{n.d(t,{I:()=>r,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&i in t?e[i]:void 0;var t}},55674:(e,t,n)=>{n.d(t,{Ad:()=>f,Gj:()=>y,QY:()=>d,lL:()=>g,xR:()=>h});var i=n(66131),r=n(49186),s=(n(44208),n(44729)),o=n(15032),l=n(65864),a=n(95466),u=n(43668),c=n(98623);const p=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const n of p)t.hasArcadeDependency(n)&&e.add(n);return e}function f(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,n){return m.create(e,t,n,["$feature","$view","$config"])}class m{static async create(e,t,n,i){const{arcade:s,Dictionary:o}=await(0,u.l)();let l;try{l=s.parseScript(e)}catch(t){throw new r.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const a=s.scriptUsesGeometryEngine(l);a&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,l,null,!1,a);const c={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=s.compileScript(l,c);let d=null;null!=n&&(d=new o(n),d.immutable=!0);const f=new o;return f.immutable=!1,f.setField("scale",0),new m(e,s,l,p,t,f,d,o)}constructor(e,t,n,i,r,s,o,l){this.script=e,this._arcade=t,this._syntaxTree=n,this._compiled=i,this._spatialReference=r,this._viewDict=s,this._configDict=o,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const n=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:r,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=r?null!=n?i.lY.epochToArcadeDate(r,n):i.lY.unknownEpochToArcadeDate(r):void 0,currentEnd:null!=s?null!=n?i.lY.epochToArcadeDate(s,n):i.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:n})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,n){const i=t??new a.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=n}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const n=this._getField(e);if(n){const t=this._boundTarget.attributes[n.name];if(null==t)return null;switch(n.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const n in e)t.push({name:n,alias:n,type:"string"==typeof e[n]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},62815:(e,t,n)=>{n.d(t,{N:()=>o});var i=n(83047),r=n(73941),s=n(21325);function o(e,t,n){if(null==t||null==n||n.vcsWkid||(0,s.aI)(t,n)||(0,r.xP)(t)||(0,r.xP)(n))return null;const o=(0,i.G9)(t)/(0,i.G9)(n);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},63396:(e,t,n)=>{n.d(t,{d:()=>T});var i=n(31635),r=n(10107),s=(n(44208),n(53966),n(87811),n(64108)),o=n(60950),l=n(99959);class a extends l.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}}var u=n(37838),c=n(69540),p=n(25482),d=n(93637),f=n(43937),h=n(50820),m=n(10873),y=n(46499),g=n(41214);let v=class extends((0,c.OU)(p.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,r.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,r.MZ)(m.kF)],v.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,r.MZ)({types:g.Hg,json:{write:!0}})],v.prototype,"renderer",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{write:!0}})],v.prototype,"visible",void 0),v=(0,i.Cg)([(0,s.$)("esri.layers.support.TrackPartInfo")],v);var w=n(96576),b=n(59868),I=n(10184);let M=class extends((0,c.OU)(p.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new v({renderer:new w.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new v({renderer:new w.A({symbol:b.UK.clone()})}),this.trackLines=new v({renderer:new w.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,n){const i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,d.sM)(n,i,t)}};(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"enabled",void 0),(0,i.Cg)([(0,r.MZ)({type:[h.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,f.K)("fields")],M.prototype,"writeFields",null),(0,i.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"latestObservations",void 0),(0,i.Cg)([(0,r.MZ)({type:I.A,json:{write:!0}})],M.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,r.MZ)({type:Number,json:{write:!0}})],M.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,r.MZ)(m.M6)],M.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,r.MZ)({type:u.A,json:{name:"popupInfo",write:!0}})],M.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"previousObservations",void 0),(0,i.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"trackLines",void 0),(0,i.Cg)([(0,r.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],M.prototype,"timeField",void 0),M=(0,i.Cg)([(0,s.$)("esri.layers.support.TrackInfo")],M);const T=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,i.Cg)([(0,r.MZ)({readOnly:!0,clonable:!1})],n.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,r.MZ)({type:M})],n.prototype,"trackInfo",void 0),n=(0,i.Cg)([(0,s.$)("esri.layers.mixins.TrackableLayer")],n),n}},69208:(e,t,n)=>{n.d(t,{d:()=>o});var i=n(31635),r=n(10107),s=(n(44208),n(53966),n(87811),n(64108));const o=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],n.prototype,"customParameters",void 0),n=(0,i.Cg)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],n),n}},70328:(e,t,n)=>{n.d(t,{BI:()=>w,DC:()=>p,Ej:()=>f,Ie:()=>g,Jt:()=>v,Ne:()=>h,RF:()=>c,aI:()=>I,fA:()=>o,gE:()=>a,hZ:()=>y,iT:()=>d,is:()=>b,qv:()=>M,vI:()=>m,vY:()=>l,v_:()=>T,vt:()=>s,w1:()=>u});var i=n(5443),r=(n(19419),n(4197));function s(e=T){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,i,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l}function l(e,t=s()){return function(e,t,n,i=s()){return y(i,M),function(e,t,n=0,i=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)r=Math.min(r,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),l=Math.max(l,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(i,e,t,n),i}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[n,i,s,o,l,a]=e;return t[0]=n,t[1]=i,t[2]=s,t[3]=n,t[4]=i,t[5]=a,t[6]=n,t[7]=l,t[8]=s,t[9]=n,t[10]=l,t[11]=a,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new i.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function 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[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(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 d(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 h(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function m(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function y(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?y(e,M):s(M)}function v(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 w(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function b(e){return 6===e.length}function I(e,t,n){if(null==e||null==t)return e===t;if(!b(e)||!b(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],T=[0,0,0,0,0,0];s()},72691:(e,t,n)=>{n.d(t,{Aw:()=>o,DN:()=>i,EA:()=>s,Gm:()=>r,xq:()=>l});const i="__esri_stream_id__",r="__esri_timestamp__",s="__esri_track_part__",o="__esri_time_received__",l="__esri_track_line__"},73133:(e,t,n)=>{n.d(t,{j:()=>i});const i=(0,n(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})},73681:(e,t,n)=>{n.d(t,{n:()=>a});var i=n(49186),r=n(53966),s=n(46140),o=n(95466),l=n(55674);class a{static async from(e,t,n){const o=e.dictionary_version?s.R.parse(e.dictionary_version):null,c=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(n))d.delete(e);d.size&&r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const f=await(0,l.xR)(e.expression,null,p);if(!f)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const m=new u(n,h);return new a(h,c,f,m)}constructor(e,t,n,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=n,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,n,i){try{return this._reader.bind(e,n,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},79457:(e,t,n)=>{n.r(t),n.d(t,{default:()=>oe});var i=n(31635),r=n(37838),s=n(43773),o=n(69540),l=n(49186),a=n(36563),u=n(4718),c=n(53966),p=n(25728),d=n(74887),f=n(10107),h=n(56507),m=n(36005),y=n(64108),g=n(5443),v=n(16930),w=n(50498),b=n(55156),I=n(60950),M=n(89808),T=n(99959);const x=Symbol("isStreamGraphicOrigin");var _;class S extends T.A{get[(_=x,I.ym)](){return this.layer}get[b.e](){return this.layer}get[M.Q](){return this.layer}constructor(e){super(),this[_]=!0,this.type="stream",this.layer=e}get id(){return this.layer.id}}var A,F=n(4146),C=n(18768),j=n(63074),O=n(69208),Z=n(6455),E=n(87718),R=n(56658),P=n(16131),N=n(8303),D=n(54310),L=n(25036),k=n(82935),U=n(63396),$=n(10873),G=n(15426),z=n(20437),q=n(17036),V=n(30524),J=n(46499),B=n(39383),Y=n(25482);n(44208),n(87811);let H=class extends Y.o{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}static{A=this}clone(){return new A({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"age",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"ageReceived",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"displayCount",void 0),(0,i.Cg)([(0,f.MZ)({type:Number,json:{write:!0}})],H.prototype,"maxObservations",void 0),H=A=(0,i.Cg)([(0,y.$)("esri.layers.support.PurgeOptions")],H);var K=n(72691),W=n(65494),Q=n(8947),X=n(41214),ee=n(61956),te=n(30291),ne=n(88625);const ie=(0,q.p)();function re(e,t){return new l.A("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}let se=class extends((0,Z.FJ)((0,R.J)((0,E.F)((0,j.dM)((0,k.e)((0,U.d)((0,L.j)((0,D.J)((0,C.b)((0,P.q)((0,N.A)((0,p.P)((0,O.d)((0,o.OU)(F.A))))))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.graphicOrigin=new S(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.outFields=["*"],this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new H,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=v.A.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,i)=>{const{save:r,saveAs:s}=await n.e(7301).then(n.bind(n,87301));switch(e){case 0:return r(this,t);case 1:return s(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new l.A("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,V.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,n){t=t.layerDefinition||t;const i=t.drawingInfo?.renderer;if(i){const e=(0,W.L)(i,t,n)||void 0;return e||c.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:n}),e}return(0,G.PD)(t,n)}async connect(e){const[{createConnection:t}]=await Promise.all([Promise.all([n.e(893),n.e(9801)]).then(n.bind(n,30624)),this.load()]),i=this.geometryType?w.gy.toJSON(this.geometryType):null,{customParameters:r=null,definitionExpression:s=null,geometryDefinition:o=null,maxReconnectionAttempts:l=0,maxReconnectionInterval:u=20,spatialReference:c=this.spatialReference}=e||this.createConnectionParameters(),p=t(this.parsedUrl,this.spatialReference,c,i,s,o,l,u,r??void 0),d=(0,a.vE)([this.on("send-message-to-socket",e=>p.sendMessageToSocket(e)),this.on("send-message-to-client",e=>p.sendMessageToClient(e))]);return p.once("destroy",d.remove),p}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,te.tn)(this,e)}createQuery(){const e=new ee.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let n=null;return this.fields.some(t=>(t.name===e&&(n=t.domain),!!n)),n}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){const n=t?.messages;return this.webSocketUrl?(n?.push(re(this,"using a custom websocket connection cannot be written to web scenes and web maps")),null):this.parsedUrl?super.write(e,t):(n?.push(re(this,"using a client-side only connection without a url cannot be written to web scenes and web maps")),null)}async _fetchService(e){if(!this.webSocketUrl&&this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,s.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new l.A("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField){const e=this.fields.find(e=>"oid"===e.type)?.name;if(!e)throw new l.A("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");this.objectIdField=e}if(!this.fields)throw new l.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields.some(e=>e.name===this.objectIdField)||this.fields.push(new z.A({name:this.objectIdField,alias:this.objectIdField,type:"oid"})),!this.geometryType)throw new l.A("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.webSocketUrl&&(this.url=this.webSocketUrl)}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,V.yp)(this.renderer,this.fieldsIndex),(0,V.sv)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField=K.DN),(0,Q.L)(this,{origin:"service"})}};(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"copyright",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],se.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,f.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],se.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"displayField",void 0),(0,i.Cg)([(0,f.MZ)({type:ne.A})],se.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,f.MZ)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],se.prototype,"featureReduction",null),(0,i.Cg)([(0,f.MZ)(ie.fields)],se.prototype,"fields",void 0),(0,i.Cg)([(0,f.MZ)(ie.fieldsIndex)],se.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,f.MZ)({type:g.A,json:{name:"layerDefinition.definitionGeometry",write:!0}})],se.prototype,"geometryDefinition",void 0),(0,i.Cg)([(0,f.MZ)({type:w.gy.apiValues,json:{read:{reader:w.gy.read}}})],se.prototype,"geometryType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],se.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,f.MZ)($.kF)],se.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,f.MZ)({type:[J.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:B.w},write:!0}})],se.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,f.MZ)($.fV)],se.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],se.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)({type:h.jz})],se.prototype,"maxReconnectionAttempts",void 0),(0,i.Cg)([(0,f.MZ)({type:h.jz})],se.prototype,"maxReconnectionInterval",void 0),(0,i.Cg)([(0,f.MZ)($.hG)],se.prototype,"maxScale",void 0),(0,i.Cg)([(0,f.MZ)($.hn)],se.prototype,"minScale",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"objectIdField",void 0),(0,i.Cg)([(0,f.MZ)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],se.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],se.prototype,"outFields",void 0),(0,i.Cg)([(0,f.MZ)($.M6)],se.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:r.A,json:{name:"popupInfo",write:!0}})],se.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({type:H})],se.prototype,"purgeOptions",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1,write:!1}})],se.prototype,"refreshInterval",void 0),(0,i.Cg)([(0,f.MZ)({types:X.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:X.XJ,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],se.prototype,"renderer",null),(0,i.Cg)([(0,m.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,m.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],se.prototype,"readRenderer",null),(0,i.Cg)([(0,f.MZ)((()=>{const e=(0,u.o8)($.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],se.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,f.MZ)()],se.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,f.MZ)({type:v.A,json:{origins:{service:{read:{source:"spatialReference"}}}}})],se.prototype,"spatialReference",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],se.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)($.OZ)],se.prototype,"url",void 0),(0,i.Cg)([(0,f.MZ)({type:Number})],se.prototype,"updateInterval",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1,write:!1}})],se.prototype,"useViewTime",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],se.prototype,"webSocketUrl",void 0),se=(0,i.Cg)([(0,y.$)("esri.layers.StreamLayer")],se);const oe=se},82935:(e,t,n)=>{n.d(t,{B:()=>f,e:()=>h});var i=n(31635),r=n(10107),s=(n(44208),n(53966),n(87811),n(36005)),o=n(64108),l=n(89317),a=n(30524),u=n(96184),c=n(73133),p=n(79677),d=n(10184);const f={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:l.K}}},h=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const i=n.timeOffset,r=c.j.fromJSON(n.timeOffsetUnits);return i&&r?new d.A({value:i,unit:r}):null}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,r.MZ)({type:p.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,i.Cg)([(0,r.MZ)({type:d.A})],n.prototype,"timeOffset",void 0),(0,i.Cg)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,i.Cg)([(0,r.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,i.Cg)([(0,r.MZ)(f)],n.prototype,"useViewTime",void 0),n=(0,i.Cg)([(0,o.$)("esri.layers.mixins.TemporalLayer")],n),n}},83960:(e,t,n)=>{n.d(t,{X_:()=>o,oW:()=>a,zx:()=>l});var i=n(34727),r=n(83047);const s=96;function o(e,t){const n=t||e.extent,i=e.width,o=(0,r.GA)(n?.spatialReference);return n&&i?n.width/i*o*r.dy*s:0}function l(e,t,n){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,n)}function a(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},91218:(e,t,n)=>{n.r(t),n.d(t,{canProjectWithoutEngine:()=>q,initializeProjection:()=>J,isEqualBaseGCS:()=>V,isLoaded:()=>j,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>Z,load:()=>R,project:()=>P,projectExtent:()=>ne,projectMany:()=>N,projectMultipoint:()=>K,projectOrLoad:()=>D,projectOrLoadMany:()=>L,projectPoint:()=>Y,projectPolygon:()=>ee,projectPolyline:()=>Q,projectWithZConversion:()=>z,projectWithoutEngine:()=>B,requiresLoad:()=>E,test:()=>$,tryProjectWithZConversion:()=>G,unload:()=>U});var i=n(49186),r=n(74887),s=n(62788),o=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(91075),d=n(48526),f=n(86738),h=n(39829),m=n(82799),y=n(16930),g=n(159),v=n(9762),w=n(37539);function b(e,t,n,i,r,s){return I[0]=e,I[1]=t,I[2]=n,(0,v.projectBuffer)(I,i,0,r,s,0)}const I=(0,l.vt)();var M=n(21325),T=n(62815);let x=null,_=null,S=null,A=null,F={};const C=new o.I;function j(){return!!(_?.isLoaded()&&S?.isLoaded()&&A?.isLoaded())}function O(){return!!j()||((0,s.gc)(C),R(),!1)}function Z(e,t){return!e||!t||q(e,t)||O()}function E(e,t){return!q(e,t)&&!j()}async function R(e){null==x&&(x=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(_=e,_.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(S=e,S.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(A=e,A.load()))])),await x,(0,r.Te)(e),C.notify()}function P(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),N(e,e[0].spatialReference,t,n)):((0,a.f)(e),N([e],e.spatialReference,t,n)[0])}function N(e,t,n,i){if(null==t||null==n)return e;if(q(t,n,i))return e.map(e=>B(e,t,n));if(null==i?.geographicTransformation&&(0,u.jA)(t))return e.map(e=>B(e,t,y.A.WGS84)).map(e=>G(e,n));if(null==i?.geographicTransformation&&(0,u.jA)(n))return e.map(e=>G(e,y.A.WGS84)).map(e=>B(e,y.A.WGS84,n));if(!j())throw new k;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:A.getTransformation(t,n,i.areaOfInterestExtent)||new g.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let r=F[e];r||(r=A.getTransformation(t,n)||new g.A,F[e]=r),i={geographicTransformation:r}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?_.executeMany(e,n,i):S.executeMany(e,n,i)}function D(e,t){const n=L([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function L(e,t){if(!j())for(const n of e)if(null!=n&&!(0,M.aI)(n.spatialReference,t)&&(0,M.fn)(n.spatialReference)&&(0,M.fn)(t)&&!q(n.spatialReference,t))return(0,s.gc)(C),{pending:R(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,M.aI)(e.spatialReference,t)?e:(0,M.fn)(e.spatialReference)&&(0,M.fn)(t)?G(e,t):null)}}class k extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){x=null,_=null,S=null,A=null,F={}}const $={get loadPromise(){return x}};function G(e,t){try{const n=P(e,t);if(null==n)return null;"xmin"in e&&"xmin"in n&&(n.zmin=e.zmin,n.zmax=e.zmax);const i=(0,T.N)(n.type,e.spatialReference,t);return null!=i&&i(n),n}catch(e){if(!(e instanceof k))throw e;return null}}async function z(e,t,n){const i=e.spatialReference;return null!=i&&null!=t&&await J(i,t,null,n),G(e,t)}function q(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,M.aI)(e,t)||(0,M.fn)(e)&&(0,M.fn)(t)&&!!(0,w.jd)(e,t))}function V(e,t){if((0,M.aI)(e,t))return!0;if(!(0,M.fn)(e)||!(0,M.fn)(t))return!1;const n=(0,M.oT)(e)||(0,M.K8)(e)||(0,M.x1)(e),i=(0,M.oT)(t)||(0,M.K8)(t)||(0,M.x1)(t);return n&&i}async function J(e,t,n,i){if(j())return(0,r.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:n,options:r}of e)if(t&&n&&!q(t,n,r))return R(i)}else if(e&&t&&!q(e,t,n))return R(i);return(0,r.NO)(i)}function B(e,t,n){return e?"x"in e?H(e,t,new f.A,n,0):"xmin"in e?ie(e,t,new c.A,n,0):"rings"in e?te(e,t,new h.A,n,0):"paths"in e?X(e,t,new m.A,n,0):"points"in e?W(e,t,new d.A,n,0):null:null}function Y(e,t,n=t.spatialReference,i=0){return null!=n&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,n,i)}function H(e,t,n,i,r){se[0]=e.x,se[1]=e.y;const s=e.z;return se[2]=void 0!==s?s:r,(0,v.projectBuffer)(se,t,0,se,i,0)?(n.x=se[0],n.y=se[1],n.spatialReference=i,void 0!==s||(0,u.xP)(i)?(n.z=se[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function K(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=W(e,e.spatialReference,t,n,i)}function W(e,t,n,i,r){const{points:s,hasZ:o,hasM:l}=e,a=[],c=s.length,p=[];for(const e of s)p.push(e[0],e[1],o?e[2]:r);if(!(0,v.projectBuffer)(p,t,0,p,i,0,c))return null;const d=o||(0,u.xP)(i);for(let e=0;e<c;++e){const t=3*e,n=p[t],i=p[t+1];d&&l?a.push([n,i,p[t+2],s[e][3]]):d?a.push([n,i,p[t+2]]):l?a.push([n,i,s[e][2]]):a.push([n,i])}return n.points=a,n.spatialReference=i,n.hasZ=o,n.hasM=l,n}function Q(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=X(e,e.spatialReference,t,n,i)}function X(e,t,n,i,r){const{paths:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.paths=a,n.spatialReference=i,n.hasZ=c,n.hasM=l,n}function ee(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,i)}function te(e,t,n,i,r){const{rings:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,i,r))return null;const c=o||(0,u.xP)(i);return n.rings=a,n.spatialReference=i,n.hasZ=c,n.hasM=l,n}function ne(e,t,n=t.spatialReference,i=0){return null!=e.spatialReference&&null!=n&&null!=ie(e,e.spatialReference,t,n,i)}function ie(e,t,n,i,r){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:p}=e;if(!b(s,o,c?e.zmin:r,t,se,i))return null;const d=c||(0,u.xP)(i);return n.xmin=se[0],n.ymin=se[1],d&&(n.zmin=se[2]),b(l,a,c?e.zmax:r,t,se,i)?(n.xmax=se[0],n.ymax=se[1],d&&(n.zmax=se[2]),p&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=i,n):null}function re(e,t,n,i,r,s,o=0){const l=new Array;for(const n of e)for(const e of n)l.push(e[0],e[1],t?e[2]:o);if(!(0,v.projectBuffer)(l,i,0,l,s,0))return!1;let a=0;r.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const i of t)c&&n?e.push([l[a++],l[a++],l[a++],i[3]]):c?e.push([l[a++],l[a++],l[a++]]):n?(e.push([l[a++],l[a++],i[2]]),a++):(e.push([l[a++],l[a++]]),a++);r.push(e)}return!0}const se=(0,l.vt)()},95466:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(49186),r=n(53966),s=n(91869),o=n(3330),l=n(12195),a=n(30524),u=n(98623),c=n(56400),p=n(28097);const d=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 n=[];for(const e of this.fields){const t=e?.name,i=m(t);if(t&&i){const r=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${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)}}n.sort(),this.uid=n.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(h(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?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):y.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,()=>p.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 h(e){return e.trim().toLowerCase()}function m(e){return(0,a.rS)(e)?.toLowerCase()??""}const y=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.dateFieldsTimeReference?(0,c.ZS)(r.dateFieldsTimeReference):l??u.n$:null,p=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,c.ZS)(i.timeReference):l:null,d=new Map([[h(r?.creationDateField??""),a],[h(r?.editDateField??""),a],[h(s),p],[h(o),p]]);for(const{name:i,type:r}of e.fields)if(y.has(r))t.set(i,u.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,u.L5);else{const e=d.get(h(i??""))??l;t.set(i,e)}return t}},96184:(e,t,n)=>{n.d(t,{A:()=>h});var i=n(31635),r=n(69540),s=n(25482),o=n(10107),l=(n(44208),n(53966),n(87811),n(36005)),a=n(64108),u=n(43937),c=n(79677),p=n(10184),d=n(56400);function f(e,t){return p.A.fromJSON({value:e,unit:t})}let h=class extends((0,r.OU)(s.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?c.A.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?f(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?f(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}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,l.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,u.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,u.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,d.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,a.$)("esri.layers.support.TimeInfo")],h)},99157:(e,t,n)=>{n.d(t,{A:()=>a});var i,r=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108));let a=i=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=i=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],a)}}]);