@arcgis/core 4.23.0-next.20220217 → 4.23.0-next.20220218

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 (272) hide show
  1. package/analysis/Analysis.js +1 -1
  2. package/analysis/AreaMeasurement.js +1 -1
  3. package/analysis/DirectLineMeasurement.js +1 -1
  4. package/analysis/LineOfSight.js +1 -1
  5. package/analysis/Slice.js +1 -1
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/007e8722cd3eaea84c2b.js +1 -0
  8. package/assets/esri/core/workers/chunks/05bbf485c5443e6c9513.js +1 -0
  9. package/assets/esri/core/workers/chunks/07425eb196ebfebabe37.js +1 -0
  10. package/assets/esri/core/workers/chunks/0795ea9cfa2aff09657f.js +1 -0
  11. package/assets/esri/core/workers/chunks/0b41a3c0bb6733947682.js +1 -0
  12. package/assets/esri/core/workers/chunks/0d83044cfcbf12012a6f.js +1 -0
  13. package/assets/esri/core/workers/chunks/10322d990cda5aedf2f0.js +1 -0
  14. package/assets/esri/core/workers/chunks/10882674530642b1db4f.js +1 -0
  15. package/assets/esri/core/workers/chunks/172e15dffd0b1529a778.js +1 -0
  16. package/assets/esri/core/workers/chunks/{2f8cf135b1116559659f.js → 1d4bc5b86d436fd09603.js} +1 -1
  17. package/assets/esri/core/workers/chunks/226caaffc400905b6949.js +1 -0
  18. package/assets/esri/core/workers/chunks/24cc61fc8dae457c3614.js +1 -0
  19. package/assets/esri/core/workers/chunks/{a756589a166c0fec3141.js → 269569a4dddc1c79e31a.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{f4c4a00207af076906b9.js → 2758b8c1fc9a29b71470.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{7509c1693ffedc0fa018.js → 28a5878cbe5880476855.js} +1 -1
  22. package/assets/esri/core/workers/chunks/29eb733e18be5a778f4a.js +1 -0
  23. package/assets/esri/core/workers/chunks/2dd00e2bc45445cac33c.js +1 -0
  24. package/assets/esri/core/workers/chunks/2e2760fbac0337bc943c.js +1 -0
  25. package/assets/esri/core/workers/chunks/331a946a596a03bcdeed.js +1 -0
  26. package/assets/esri/core/workers/chunks/341dfd1b8201725518b9.js +1 -0
  27. package/assets/esri/core/workers/chunks/35057d52c84628b1015f.js +1 -0
  28. package/assets/esri/core/workers/chunks/{5d38feb7528e9b79d7a0.js → 365176c3b81e191ede66.js} +1 -1
  29. package/assets/esri/core/workers/chunks/398278759795cf37af69.js +1 -0
  30. package/assets/esri/core/workers/chunks/3a6cf2829029228453f7.js +1 -0
  31. package/assets/esri/core/workers/chunks/3bafa7350b4687734cf6.js +1 -0
  32. package/assets/esri/core/workers/chunks/3d70f945621de60c7b14.js +1 -0
  33. package/assets/esri/core/workers/chunks/3daf2f1b2a86d5ae95e5.js +1 -0
  34. package/assets/esri/core/workers/chunks/425f05eb0740262f032c.js +1 -0
  35. package/assets/esri/core/workers/chunks/45155ec947e3f4511c08.js +1 -0
  36. package/assets/esri/core/workers/chunks/49d645e0bce92c156a4b.js +1 -0
  37. package/assets/esri/core/workers/chunks/513590405cdecec5a6bb.js +1 -0
  38. package/assets/esri/core/workers/chunks/526aa21dc2acb40cb94b.js +1 -0
  39. package/assets/esri/core/workers/chunks/5352913ae836cec65d4b.js +1 -0
  40. package/assets/esri/core/workers/chunks/53a150a1eec3894e2a9e.js +1 -0
  41. package/assets/esri/core/workers/chunks/559971cb2ade480f4225.js +1 -0
  42. package/assets/esri/core/workers/chunks/57f1b37e4e144e9fd4b3.js +1 -0
  43. package/assets/esri/core/workers/chunks/5b696059d1c392353fc1.js +1 -0
  44. package/assets/esri/core/workers/chunks/5cd20be7d545e84937a2.js +1 -0
  45. package/assets/esri/core/workers/chunks/5ff108bedfa1e2912fac.js +1 -0
  46. package/assets/esri/core/workers/chunks/61c6744caf9edc1cc557.js +1 -0
  47. package/assets/esri/core/workers/chunks/{8ebd57fa47ca1f970c19.js → 628d7ca82a854bab90ef.js} +1 -1
  48. package/assets/esri/core/workers/chunks/6760b7c349132096f366.js +1 -0
  49. package/assets/esri/core/workers/chunks/676f74f23ac0d8140a0f.js +1 -0
  50. package/assets/esri/core/workers/chunks/68cb36384aed52e0787c.js +1 -0
  51. package/assets/esri/core/workers/chunks/6abacc1d13d64a411424.js +1 -0
  52. package/assets/esri/core/workers/chunks/6ef8de3aa9a8d9c22161.js +1 -0
  53. package/assets/esri/core/workers/chunks/70b0b6d9559960307059.js +1 -0
  54. package/assets/esri/core/workers/chunks/7345f9d2771c14ea4dff.js +1 -0
  55. package/assets/esri/core/workers/chunks/78ccff2011adbd73f10b.js +1 -0
  56. package/assets/esri/core/workers/chunks/7bb22d8c2d9d9f5b9d9a.js +1 -0
  57. package/assets/esri/core/workers/chunks/7fa85947737b146c5d93.js +1 -0
  58. package/assets/esri/core/workers/chunks/8cfefa829131ec234de3.js +1 -0
  59. package/assets/esri/core/workers/chunks/8d95f3a3f776fef3f9cb.js +1 -0
  60. package/assets/esri/core/workers/chunks/8fcf758eede658cfd7fd.js +1 -0
  61. package/assets/esri/core/workers/chunks/{aa9c08ede8b43423d714.js → 98feb4eaef6cac0fc936.js} +1 -1
  62. package/assets/esri/core/workers/chunks/9944a1f0685d0fced655.js +1 -0
  63. package/assets/esri/core/workers/chunks/9b0c4ffb26f940f8bba9.js +1 -0
  64. package/assets/esri/core/workers/chunks/9bcec5ff5afc2bcd753a.js +1 -0
  65. package/assets/esri/core/workers/chunks/9c6be39f1f21ab8b1c2d.js +1 -0
  66. package/assets/esri/core/workers/chunks/9f23d24728b62276058e.js +1 -0
  67. package/assets/esri/core/workers/chunks/a1d93664c65060aeac6e.js +1 -0
  68. package/assets/esri/core/workers/chunks/a5ce912b87da65696d51.js +1 -0
  69. package/assets/esri/core/workers/chunks/a5f3347ba335047e5a00.js +1 -0
  70. package/assets/esri/core/workers/chunks/a6a2131bb9e10463c6fb.js +1 -0
  71. package/assets/esri/core/workers/chunks/ab4a23b63360c4640f60.js +1 -0
  72. package/assets/esri/core/workers/chunks/ae7dbdab79bca1e11741.js +1 -0
  73. package/assets/esri/core/workers/chunks/b345675f78892f338ba1.js +1 -0
  74. package/assets/esri/core/workers/chunks/b426f7b4c3dc60a366f6.js +1 -0
  75. package/assets/esri/core/workers/chunks/{7a662fc2f84fa666fd90.js → b64a6af33832808efac7.js} +1 -1
  76. package/assets/esri/core/workers/chunks/bb1f97fca138bb73743f.js +1 -0
  77. package/assets/esri/core/workers/chunks/bfe8ca8b69975bfb2167.js +1 -0
  78. package/assets/esri/core/workers/chunks/c087477e016da3827f3e.js +1 -0
  79. package/assets/esri/core/workers/chunks/c52feec2175d8378ec90.js +1 -0
  80. package/assets/esri/core/workers/chunks/c9c961c08ba94ccec441.js +1 -0
  81. package/assets/esri/core/workers/chunks/cab3f15de3686ca966ec.js +1 -0
  82. package/assets/esri/core/workers/chunks/cc2bbd979dde20369b47.js +1 -0
  83. package/assets/esri/core/workers/chunks/d0335289a813b2b6bb0d.js +1 -0
  84. package/assets/esri/core/workers/chunks/{f067b4fc65b835437afd.js → d7906840214e4e1c4cdf.js} +1 -1
  85. package/assets/esri/core/workers/chunks/d88cb7568e2f8ac9905b.js +1 -0
  86. package/assets/esri/core/workers/chunks/db2604563294bf49bbf9.js +1 -0
  87. package/assets/esri/core/workers/chunks/dd4224d8dfb82a2be28d.js +1 -0
  88. package/assets/esri/core/workers/chunks/{f048fb02aae357a73d01.js → de337486515d9aff478b.js} +1 -1
  89. package/assets/esri/core/workers/chunks/de5354cb4312a9b5fec6.js +1 -0
  90. package/assets/esri/core/workers/chunks/ea313474f460ce31b6d5.js +1 -0
  91. package/assets/esri/core/workers/chunks/{dd87d6ed753803e409b8.js → ea6c78dbb4fb2ea5b6e9.js} +1 -1
  92. package/assets/esri/core/workers/chunks/f2d51fad37db10b6daee.js +1 -0
  93. package/assets/esri/core/workers/chunks/f39e86235b388f6087a8.js +1 -0
  94. package/assets/esri/core/workers/chunks/f4135e69a09e4420c0d9.js +1 -0
  95. package/assets/esri/core/workers/chunks/f501ec937b83fce286bd.js +1 -0
  96. package/assets/esri/core/workers/chunks/fb877fdb273fef4a9a7b.js +1 -0
  97. package/assets/esri/core/workers/chunks/fc06a5aa050f79ef161c.js +1 -0
  98. package/assets/esri/core/workers/chunks/fe689f992aaab5866292.js +1 -0
  99. package/assets/esri/core/workers/chunks/ff0f2a49b3097ea8301d.js +1 -0
  100. package/chunks/LineMarker.glsl.js +3 -0
  101. package/chunks/color.js +1 -1
  102. package/chunks/dotDensity.js +1 -1
  103. package/chunks/heatmap.js +1 -1
  104. package/chunks/predominance.js +1 -1
  105. package/chunks/relationship.js +1 -1
  106. package/chunks/type.js +1 -1
  107. package/geometry/support/MeshVertexAttributes.js +1 -1
  108. package/geometry/support/meshUtils/ElevationSamplerWorker.js +1 -1
  109. package/geometry/support/meshUtils/deduplicate.js +1 -1
  110. package/geometry/support/meshUtils/elevation.js +1 -1
  111. package/geometry/support/meshUtils/elevationSampler.js +1 -1
  112. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  113. package/geometry/support/meshUtils/merge.js +1 -1
  114. package/geometry/support/meshUtils/primitives.js +1 -1
  115. package/interfaces.d.ts +530 -10
  116. package/layers/effects/EffectView.js +1 -1
  117. package/layers/effects/FeatureEffectView.js +1 -1
  118. package/layers/graphics/OptimizedFeature.js +1 -1
  119. package/layers/graphics/OptimizedGraphic.js +1 -1
  120. package/layers/graphics/controllers/StreamController.js +1 -1
  121. package/layers/graphics/data/StreamFeatureManager.js +1 -1
  122. package/layers/graphics/data/optimizedFeatureQueryEngineAdapter.js +1 -1
  123. package/layers/graphics/featureConversionUtils.js +1 -1
  124. package/layers/graphics/sources/geojson/geojson.js +1 -1
  125. package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
  126. package/layers/mixins/ArcGISImageService.js +1 -1
  127. package/package.json +1 -1
  128. package/renderers/FlowRenderer.js +1 -1
  129. package/renderers/smartMapping/symbology/color.js +1 -1
  130. package/renderers/support/AuthoringInfo.js +1 -1
  131. package/renderers/support/rasterRendererHelper.js +1 -1
  132. package/rest/query/operations/pbfOptimizedFeatureSet.js +1 -1
  133. package/rest/support/ImageIdentifyParameters.js +1 -1
  134. package/smartMapping/raster/renderers/flow.d.ts +4 -0
  135. package/smartMapping/raster/renderers/flow.js +1 -1
  136. package/smartMapping/symbology/color.js +1 -1
  137. package/smartMapping/symbology/flow.d.ts +4 -0
  138. package/smartMapping/symbology/flow.js +5 -0
  139. package/support/revision.js +1 -1
  140. package/views/2d/engine/Container.js +1 -1
  141. package/views/2d/layers/features/sources/GeoEventSource.js +1 -1
  142. package/views/2d/layers/features/support/ClusterStore.js +1 -1
  143. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  144. package/views/3d/analysis/AnalysisViewManager3D.js +1 -1
  145. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  146. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  147. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  148. package/views/3d/interactive/measurementTools/directLineMeasurement3D/PickRequest.js +1 -1
  149. package/views/3d/layers/StreamLayerView3D.js +1 -1
  150. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  151. package/views/3d/layers/graphics/ElevationContext.js +1 -1
  152. package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
  153. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  154. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  155. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  156. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  157. package/views/MapView.js +1 -1
  158. package/views/SceneView.js +1 -1
  159. package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
  160. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  161. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.js +1 -1
  162. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  163. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  164. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  165. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.js +1 -1
  166. package/widgets/Editor.js +1 -1
  167. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  168. package/widgets/Legend/support/sizeRampUtils.js +1 -1
  169. package/widgets/Legend/support/utils.js +1 -1
  170. package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
  171. package/widgets/LineOfSight.js +1 -1
  172. package/widgets/Slice/SliceViewModel.js +1 -1
  173. package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
  174. package/widgets/support/InteractiveToolViewModel.js +1 -1
  175. package/assets/esri/core/workers/chunks/024a18b48dbf9fce2062.js +0 -1
  176. package/assets/esri/core/workers/chunks/07cb63f5493af9749633.js +0 -1
  177. package/assets/esri/core/workers/chunks/087817aa1751345d762c.js +0 -1
  178. package/assets/esri/core/workers/chunks/0b7979ddb45f657c58af.js +0 -1
  179. package/assets/esri/core/workers/chunks/0d3635f6330dbf692d3f.js +0 -1
  180. package/assets/esri/core/workers/chunks/114c342f27c063a176aa.js +0 -1
  181. package/assets/esri/core/workers/chunks/117eec01b4888833a391.js +0 -1
  182. package/assets/esri/core/workers/chunks/12ffb40ee4e51c3e85cc.js +0 -1
  183. package/assets/esri/core/workers/chunks/152e02d321f9289f5a16.js +0 -1
  184. package/assets/esri/core/workers/chunks/17ef37c4a651384915a5.js +0 -1
  185. package/assets/esri/core/workers/chunks/18fb7e0c61816b6d94fe.js +0 -1
  186. package/assets/esri/core/workers/chunks/1e6dfd1daee564c32ff9.js +0 -1
  187. package/assets/esri/core/workers/chunks/1f29ba1a1d303797ccd4.js +0 -1
  188. package/assets/esri/core/workers/chunks/2072360694d0b0b0d6c0.js +0 -1
  189. package/assets/esri/core/workers/chunks/21a31fbce5e9b15a55bf.js +0 -1
  190. package/assets/esri/core/workers/chunks/237485055aad23dd15a5.js +0 -1
  191. package/assets/esri/core/workers/chunks/2404615883fc3a5f07a8.js +0 -1
  192. package/assets/esri/core/workers/chunks/2974328ebc4c1774d256.js +0 -1
  193. package/assets/esri/core/workers/chunks/2b7681ab9ee878677366.js +0 -1
  194. package/assets/esri/core/workers/chunks/2e899ef5881b4ec6fa55.js +0 -1
  195. package/assets/esri/core/workers/chunks/2fe45910871df2eeb2fe.js +0 -1
  196. package/assets/esri/core/workers/chunks/3396ddd13bead2b76bff.js +0 -1
  197. package/assets/esri/core/workers/chunks/33e57877a06146d5c5af.js +0 -1
  198. package/assets/esri/core/workers/chunks/34ca189925f39d4b6e12.js +0 -1
  199. package/assets/esri/core/workers/chunks/3b37eacaba79d806bf8a.js +0 -1
  200. package/assets/esri/core/workers/chunks/3df27ae56ecf5ea118bb.js +0 -1
  201. package/assets/esri/core/workers/chunks/405bcfd485dca8a75a62.js +0 -1
  202. package/assets/esri/core/workers/chunks/4441d6539a33895a0ee4.js +0 -1
  203. package/assets/esri/core/workers/chunks/444829a840b8ded16fd7.js +0 -1
  204. package/assets/esri/core/workers/chunks/4455e41d357cfb4a3cbc.js +0 -1
  205. package/assets/esri/core/workers/chunks/469ba1b24cdeea0758ec.js +0 -1
  206. package/assets/esri/core/workers/chunks/4954fd86b48cc68b737c.js +0 -1
  207. package/assets/esri/core/workers/chunks/49605501b44d1b364076.js +0 -1
  208. package/assets/esri/core/workers/chunks/5ac1bb592fd9744e4985.js +0 -1
  209. package/assets/esri/core/workers/chunks/5ac4c1d54b94c7d87835.js +0 -1
  210. package/assets/esri/core/workers/chunks/60194a2235e0f8ee500e.js +0 -1
  211. package/assets/esri/core/workers/chunks/604c7006e12546ecae67.js +0 -1
  212. package/assets/esri/core/workers/chunks/60643fe2dbc5741f07a4.js +0 -1
  213. package/assets/esri/core/workers/chunks/609696032cba8fe37686.js +0 -1
  214. package/assets/esri/core/workers/chunks/609a290f00d7e2b33046.js +0 -1
  215. package/assets/esri/core/workers/chunks/61cb9e8acd14379ccbed.js +0 -1
  216. package/assets/esri/core/workers/chunks/6be326edd9829781d926.js +0 -1
  217. package/assets/esri/core/workers/chunks/6cd5e4380d29b9a3c344.js +0 -1
  218. package/assets/esri/core/workers/chunks/6e2e641844170a8a8c34.js +0 -1
  219. package/assets/esri/core/workers/chunks/70d6bb3c7112cb702389.js +0 -1
  220. package/assets/esri/core/workers/chunks/7351fbd8a9dbef027d06.js +0 -1
  221. package/assets/esri/core/workers/chunks/74ca82e9658cf1bee033.js +0 -1
  222. package/assets/esri/core/workers/chunks/7a31f9c7410dad37a6d5.js +0 -1
  223. package/assets/esri/core/workers/chunks/7a4bc9d7fc2014bc1e1b.js +0 -1
  224. package/assets/esri/core/workers/chunks/7bdc4ca6d3fab13079ce.js +0 -1
  225. package/assets/esri/core/workers/chunks/7ccbd5633dda85115497.js +0 -1
  226. package/assets/esri/core/workers/chunks/806a7db0084214a53c79.js +0 -1
  227. package/assets/esri/core/workers/chunks/810a763373d7f78ae398.js +0 -1
  228. package/assets/esri/core/workers/chunks/836a5a96156b91fb9dca.js +0 -1
  229. package/assets/esri/core/workers/chunks/83848fc9592b8385795a.js +0 -1
  230. package/assets/esri/core/workers/chunks/84b3c409d14ed253e014.js +0 -1
  231. package/assets/esri/core/workers/chunks/84d8e77d78d0d5134083.js +0 -1
  232. package/assets/esri/core/workers/chunks/8f0c5a8d6e7976a2290b.js +0 -1
  233. package/assets/esri/core/workers/chunks/8f97ff0ecb455b2b0650.js +0 -1
  234. package/assets/esri/core/workers/chunks/976e95fd34d822d721fc.js +0 -1
  235. package/assets/esri/core/workers/chunks/9a4592a858d3bb706f02.js +0 -1
  236. package/assets/esri/core/workers/chunks/9b8331d2e538330c2ca4.js +0 -1
  237. package/assets/esri/core/workers/chunks/9ce961bc390202c87941.js +0 -1
  238. package/assets/esri/core/workers/chunks/9d54bedcd7cd1cfc74f3.js +0 -1
  239. package/assets/esri/core/workers/chunks/9d59f18f47f9eeaa2b37.js +0 -1
  240. package/assets/esri/core/workers/chunks/9e4467924301acf570a1.js +0 -1
  241. package/assets/esri/core/workers/chunks/a6a07d872311d2086fb7.js +0 -1
  242. package/assets/esri/core/workers/chunks/aa0fec6fd23aeba403ba.js +0 -1
  243. package/assets/esri/core/workers/chunks/adb1de485e2da017510d.js +0 -1
  244. package/assets/esri/core/workers/chunks/b30f70425b808788a775.js +0 -1
  245. package/assets/esri/core/workers/chunks/b3caa09c3f69033275fc.js +0 -1
  246. package/assets/esri/core/workers/chunks/b548e6b3add4154ac4e6.js +0 -1
  247. package/assets/esri/core/workers/chunks/b5a239c7019546f751f5.js +0 -1
  248. package/assets/esri/core/workers/chunks/b86823a06e898f4fb04c.js +0 -1
  249. package/assets/esri/core/workers/chunks/bea473dba8e57617a71d.js +0 -1
  250. package/assets/esri/core/workers/chunks/beb71ce96c8f2336ff1e.js +0 -1
  251. package/assets/esri/core/workers/chunks/bf3bc2e533686c547fc4.js +0 -1
  252. package/assets/esri/core/workers/chunks/c3592a9df90b743b0936.js +0 -1
  253. package/assets/esri/core/workers/chunks/c4f8b6595fac322c98d1.js +0 -1
  254. package/assets/esri/core/workers/chunks/ceff15512431a485456b.js +0 -1
  255. package/assets/esri/core/workers/chunks/d21526570300597aa6ae.js +0 -1
  256. package/assets/esri/core/workers/chunks/d2ffb0f21363c0d3d2a9.js +0 -1
  257. package/assets/esri/core/workers/chunks/d3f05b8e4bd53eb1eb9d.js +0 -1
  258. package/assets/esri/core/workers/chunks/d4600f3c850e021ea872.js +0 -1
  259. package/assets/esri/core/workers/chunks/d4a2200f9e8e3ecffb08.js +0 -1
  260. package/assets/esri/core/workers/chunks/dc97901c5ca2cd7c5c00.js +0 -1
  261. package/assets/esri/core/workers/chunks/e02d735d1f75c7c3c18c.js +0 -1
  262. package/assets/esri/core/workers/chunks/e53d39dde819107cbe22.js +0 -1
  263. package/assets/esri/core/workers/chunks/e7def92e1020e58600b5.js +0 -1
  264. package/assets/esri/core/workers/chunks/e88b623d63ca3e064d13.js +0 -1
  265. package/assets/esri/core/workers/chunks/e9a98125f06ea32f6732.js +0 -1
  266. package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +0 -1
  267. package/assets/esri/core/workers/chunks/ef8e894c8705a0e361f9.js +0 -1
  268. package/assets/esri/core/workers/chunks/f0b6f0800669ff970826.js +0 -1
  269. package/assets/esri/core/workers/chunks/f510d446308b25e8a7c1.js +0 -1
  270. package/assets/esri/core/workers/chunks/f567be167c2afecd1fbd.js +0 -1
  271. package/assets/esri/core/workers/chunks/fe0c3b7c9b428d9c3f25.js +0 -1
  272. package/views/3d/interactive/measurementTools/directLineMeasurement3D/PickResult.js +0 -5
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.23/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o}from"../chunks/tslib.es6.js";import t from"../core/Accessor.js";import{ClonableMixin as r}from"../core/Clonable.js";import{IdentifiableMixin as e}from"../core/Identifiable.js";import{property as s}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/has.js";import"../core/accessorSupport/ensureType.js";import{subclass as i}from"../core/accessorSupport/decorators/subclass.js";let p=0,a=class extends(r(e(t))){constructor(o){super(o),this.id=`${Date.now().toString(16)}-analysis-${p++}`,this.title=null,this.parent=null,this.visible=!0}};o([s({type:String,constructOnly:!0,clonable:!1})],a.prototype,"id",void 0),o([s({type:String})],a.prototype,"title",void 0),o([s({readOnly:!0})],a.prototype,"type",void 0),o([s({clonable:!1})],a.prototype,"parent",void 0),o([s({readOnly:!0})],a.prototype,"extent",void 0),o([s({type:Boolean})],a.prototype,"visible",void 0),a=o([i("esri.analysis.Analysis")],a);const c=a;export{c as default};
5
+ import{_ as o}from"../chunks/tslib.es6.js";import r from"../core/Accessor.js";import{ClonableMixin as e}from"../core/Clonable.js";import{IdentifiableMixin as t}from"../core/Identifiable.js";import{isSome as s}from"../core/maybe.js";import{property as i}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/has.js";import"../core/accessorSupport/ensureType.js";import{subclass as p}from"../core/accessorSupport/decorators/subclass.js";let a=0,l=class extends(e(t(r))){constructor(o){super(o),this.id=`${Date.now().toString(16)}-analysis-${a++}`,this.title=null,this.parent=null,this.visible=!0}get isEditable(){return this.requiredPropertiesForEditing.every(s)}};o([i({type:String,constructOnly:!0,clonable:!1})],l.prototype,"id",void 0),o([i({type:String})],l.prototype,"title",void 0),o([i({readOnly:!0})],l.prototype,"type",void 0),o([i({clonable:!1})],l.prototype,"parent",void 0),o([i({readOnly:!0})],l.prototype,"extent",void 0),o([i({type:Boolean})],l.prototype,"visible",void 0),o([i({readOnly:!0})],l.prototype,"isEditable",null),o([i({readOnly:!0})],l.prototype,"requiredPropertiesForEditing",void 0),o([i({readOnly:!0})],l.prototype,"nonEditableMessage",void 0),l=o([p("esri.analysis.Analysis")],l);const n=l;export{n as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.23/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import t from"./Analysis.js";import r from"../core/Logger.js";import{isNone as o}from"../core/maybe.js";import{measurementAreaUnits as s}from"../core/unitUtils.js";import{property as i}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/has.js";import"../core/accessorSupport/ensureType.js";import{subclass as n}from"../core/accessorSupport/decorators/subclass.js";import p from"../geometry/Polygon.js";const l=r.getLogger("esri.analysis.AreaMeasurement");let a=class extends t{constructor(e){super(e),this.type="area-measurement",this.extent=null,this.unit=null}set geometry(e){if(o(e))return this._set("geometry",null),void this._set("extent",null);e.rings.length>1&&l.warn("Measuring polygons with multiple rings is not supported."),this._set("geometry",e.clone()),this._set("extent",e.extent)}};e([i({readOnly:!0})],a.prototype,"type",void 0),e([i({value:null,type:p})],a.prototype,"geometry",null),e([i({readOnly:!0})],a.prototype,"extent",void 0),e([i({type:s,value:null})],a.prototype,"unit",void 0),a=e([n("esri.analysis.AreaMeasurement")],a);const m=a;export{m as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import t from"./Analysis.js";import{equals as r}from"../core/arrayUtils.js";import o from"../core/Logger.js";import{isNone as s,isSome as i}from"../core/maybe.js";import{measurementAreaUnits as n}from"../core/unitUtils.js";import{property as l}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/accessorSupport/ensureType.js";import{subclass as p}from"../core/accessorSupport/decorators/subclass.js";import a from"../geometry/Polygon.js";const m=o.getLogger("esri.analysis.AreaMeasurement");let g=class extends t{constructor(e){super(e),this.type="area-measurement",this.extent=null,this.unit=null,this.nonEditableMessage="Assign a closed polygon geometry containing more than two points to the analysis to allow editing."}set geometry(e){if(s(e))return this._set("geometry",null),void this._set("extent",null);e.rings.length>1&&m.warn("Measuring polygons with multiple rings is not supported."),this._set("geometry",e.clone()),this._set("extent",e.extent)}get requiredPropertiesForEditing(){if(i(this.geometry)&&1===this.geometry.rings.length){const e=this.geometry.rings[0];if(e.length<=2||!r(e[0],e[e.length-1]))return[null]}return[this.geometry]}};e([l({readOnly:!0})],g.prototype,"type",void 0),e([l({value:null,type:a})],g.prototype,"geometry",null),e([l({readOnly:!0})],g.prototype,"extent",void 0),e([l({type:n,value:null})],g.prototype,"unit",void 0),e([l({readOnly:!0})],g.prototype,"requiredPropertiesForEditing",null),e([l({readOnly:!0})],g.prototype,"nonEditableMessage",void 0),g=e([p("esri.analysis.AreaMeasurement")],g);const y=g;export{y as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.23/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../chunks/tslib.es6.js";import o from"./Analysis.js";import{isNone as r,isSome as e}from"../core/maybe.js";import{measurementLengthUnits as s}from"../core/unitUtils.js";import{property as i}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/has.js";import"../core/accessorSupport/ensureType.js";import{subclass as n}from"../core/accessorSupport/decorators/subclass.js";import p from"../geometry/Extent.js";import m from"../geometry/Point.js";let a=class extends o{constructor(t){super(t),this.type="direct-line-measurement",this.startPoint=null,this.endPoint=null,this.unit=null}get extent(){if(r(this.startPoint))return null;const t=p.fromPoint(this.startPoint);return e(this.endPoint)&&t.union(p.fromPoint(this.endPoint)),t}};t([i({readOnly:!0})],a.prototype,"type",void 0),t([i({type:m})],a.prototype,"startPoint",void 0),t([i({type:m})],a.prototype,"endPoint",void 0),t([i()],a.prototype,"extent",null),t([i({type:s,value:null})],a.prototype,"unit",void 0),a=t([n("esri.analysis.DirectLineMeasurement")],a);const c=a;export{c as default};
5
+ import{_ as t}from"../chunks/tslib.es6.js";import o from"./Analysis.js";import{isNone as e,isSome as r}from"../core/maybe.js";import{measurementLengthUnits as s}from"../core/unitUtils.js";import{property as i}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/has.js";import"../core/accessorSupport/ensureType.js";import{subclass as n}from"../core/accessorSupport/decorators/subclass.js";import p from"../geometry/Extent.js";import a from"../geometry/Point.js";let l=class extends o{constructor(t){super(t),this.type="direct-line-measurement",this.startPoint=null,this.endPoint=null,this.unit=null,this.nonEditableMessage="Assign start and end points to the analysis to allow editing."}get extent(){if(e(this.startPoint))return null;const t=p.fromPoint(this.startPoint);return r(this.endPoint)&&t.union(p.fromPoint(this.endPoint)),t}get requiredPropertiesForEditing(){return[this.startPoint,this.endPoint]}};t([i({readOnly:!0})],l.prototype,"type",void 0),t([i({type:a})],l.prototype,"startPoint",void 0),t([i({type:a})],l.prototype,"endPoint",void 0),t([i()],l.prototype,"extent",null),t([i({type:s,value:null})],l.prototype,"unit",void 0),t([i({readOnly:!0})],l.prototype,"requiredPropertiesForEditing",null),t([i({readOnly:!0})],l.prototype,"nonEditableMessage",void 0),l=t([n("esri.analysis.DirectLineMeasurement")],l);const u=l;export{u as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.23/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../chunks/tslib.es6.js";import r from"./Analysis.js";import e from"./LineOfSightTarget.js";import o from"../core/Collection.js";import{castForReferenceSetter as s,referenceSetter as i}from"../core/collectionUtils.js";import{isNone as p,isSome as n}from"../core/maybe.js";import{property as a}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/has.js";import"../core/accessorSupport/ensureType.js";import{subclass as c}from"../core/accessorSupport/decorators/subclass.js";import l from"../geometry/Extent.js";import m from"../geometry/Point.js";import{fromValues as u,expand as f}from"../geometry/support/aaBoundingRect.js";const y=o.ofType(e);let g=class extends r{constructor(t){super(t),this.type="line-of-sight",this.observer=null}get targets(){return this._get("targets")||new y}set targets(t){this._set("targets",i(t,this.targets,y))}get extent(){if(p(this.observer))return null;const t=u(this.observer.x,this.observer.y,this.observer.x,this.observer.y);for(const r of this.targets)n(r.location)&&f(t,r.location,t);return l.fromBounds(t,this.observer.spatialReference)}};t([a()],g.prototype,"type",void 0),t([a()],g.prototype,"intersection",void 0),t([a({type:m})],g.prototype,"observer",void 0),t([a({cast:s,type:y,nonNullable:!0})],g.prototype,"targets",null),t([a({value:null})],g.prototype,"extent",null),g=t([c("esri.analysis.LineOfSight")],g);const h=g;export{h as default};
5
+ import{_ as t}from"../chunks/tslib.es6.js";import e from"./Analysis.js";import r from"./LineOfSightTarget.js";import o from"../core/Collection.js";import{castForReferenceSetter as s,referenceSetter as i}from"../core/collectionUtils.js";import{isNone as n,isSome as p}from"../core/maybe.js";import{property as a}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/has.js";import"../core/accessorSupport/ensureType.js";import{subclass as l}from"../core/accessorSupport/decorators/subclass.js";import c from"../geometry/Extent.js";import m from"../geometry/Point.js";import{fromValues as u,expand as y}from"../geometry/support/aaBoundingRect.js";const g=o.ofType(r);let f=class extends e{constructor(t){super(t),this.type="line-of-sight",this.observer=null,this.nonEditableMessage="Assign an observer location to the analysis to allow editing."}get targets(){return this._get("targets")||new g}set targets(t){this._set("targets",i(t,this.targets,g))}get extent(){if(n(this.observer))return null;const t=u(this.observer.x,this.observer.y,this.observer.x,this.observer.y);for(const e of this.targets)p(e.location)&&y(t,e.location,t);return c.fromBounds(t,this.observer.spatialReference)}get requiredPropertiesForEditing(){return[this.observer]}};t([a()],f.prototype,"type",void 0),t([a()],f.prototype,"intersection",void 0),t([a({type:m})],f.prototype,"observer",void 0),t([a({cast:s,type:g,nonNullable:!0})],f.prototype,"targets",null),t([a({value:null})],f.prototype,"extent",null),t([a({readOnly:!0})],f.prototype,"requiredPropertiesForEditing",null),t([a({readOnly:!0})],f.prototype,"nonEditableMessage",void 0),f=t([l("esri.analysis.LineOfSight")],f);const h=f;export{h as default};
package/analysis/Slice.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.23/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import t from"./Analysis.js";import o from"../core/Collection.js";import{castForReferenceSetter as s,referenceSetter as r}from"../core/collectionUtils.js";import l from"../core/Logger.js";import{isNone as i,isSome as a}from"../core/maybe.js";import{property as p}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/has.js";import"../core/accessorSupport/ensureType.js";import{subclass as n}from"../core/accessorSupport/decorators/subclass.js";import{renderSRFromViewSR as c}from"../geometry/support/coordinateSystem.js";import{ViewingMode as d}from"../views/ViewingMode.js";import{shapeToExtent as u}from"../views/3d/interactive/analysisTools/slice/sliceToolUtils.js";import{RenderCoordsHelper as m}from"../views/3d/support/RenderCoordsHelper.js";import{isSpatialReferenceSupported as y}from"../views/support/spatialReferenceSupport.js";import h from"../widgets/Slice/SlicePlane.js";const f=l.getLogger("esri.analysis.Slice");let j=class extends t{constructor(e){super(e),this.type="slice",this.tiltEnabled=!1,this.shape=null,this.excludeGroundSurface=!1}get extent(){if(i(this.shape)||i(this.shape.position))return null;const e=this.shape.position.spatialReference;let t=null,o=null;if(y(e,d.Local)){const o=m.create(d.Local,c(!1,e));t=u(this.shape,o,{tiltEnabled:this.tiltEnabled})}if(y(e,d.Global)){const t=m.create(d.Global,c(!0,e));o=u(this.shape,t,{tiltEnabled:this.tiltEnabled})}return a(t)&&a(o)?t.union(o):i(t)&&i(o)?(f.warnOnce(`Extent of slice analysis (title: '${null!=(s=this.title)?s:"no title"}', id: '${null!=(r=this.id)?r:"no id"}') could not be computed as the spatial reference of the shape (wkid: '${null!=(l=e.wkid)?l:"no wkid"}') is not supported by the view`),null):i(t)?o:t;var s,r,l}get excludedLayers(){return this._get("excludedLayers")||new o}set excludedLayers(e){this._set("excludedLayers",r(e,this._get("excludedLayers")))}};e([p({readOnly:!0})],j.prototype,"type",void 0),e([p({readOnly:!0})],j.prototype,"extent",null),e([p()],j.prototype,"tiltEnabled",void 0),e([p({types:{key:"type",base:null,typeMap:{plane:h},defaultKeyValue:"plane"}})],j.prototype,"shape",void 0),e([p({cast:s,clonable:e=>e.slice()})],j.prototype,"excludedLayers",null),e([p({type:Boolean,nonNullable:!0})],j.prototype,"excludeGroundSurface",void 0),j=e([n("esri.analysis.Slice")],j);const b=j;export{b as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import t from"./Analysis.js";import s from"../core/Collection.js";import{castForReferenceSetter as o,referenceSetter as i}from"../core/collectionUtils.js";import r from"../core/Logger.js";import{isNone as l,isSome as a,applySome as n}from"../core/maybe.js";import{property as p}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/has.js";import"../core/accessorSupport/ensureType.js";import{subclass as c}from"../core/accessorSupport/decorators/subclass.js";import{renderSRFromViewSR as d}from"../geometry/support/coordinateSystem.js";import{ViewingMode as u}from"../views/ViewingMode.js";import{shapeToExtent as y}from"../views/3d/interactive/analysisTools/slice/sliceToolUtils.js";import{RenderCoordsHelper as h}from"../views/3d/support/RenderCoordsHelper.js";import{isSpatialReferenceSupported as m}from"../views/support/spatialReferenceSupport.js";import f from"../widgets/Slice/SlicePlane.js";const g=r.getLogger("esri.analysis.Slice");let b=class extends t{constructor(e){super(e),this.type="slice",this.tiltEnabled=!1,this.shape=null,this.excludeGroundSurface=!1}get extent(){if(l(this.shape)||l(this.shape.position))return null;const e=this.shape.position.spatialReference;let t=null,s=null;if(m(e,u.Local)){const s=h.create(u.Local,d(!1,e));t=y(this.shape,s,{tiltEnabled:this.tiltEnabled})}if(m(e,u.Global)){const t=h.create(u.Global,d(!0,e));s=y(this.shape,t,{tiltEnabled:this.tiltEnabled})}return a(t)&&a(s)?t.union(s):l(t)&&l(s)?(g.warnOnce(`Extent of slice analysis (title: '${null!=(o=this.title)?o:"no title"}', id: '${null!=(i=this.id)?i:"no id"}') could not be computed as the spatial reference of the shape (wkid: '${null!=(r=e.wkid)?r:"no wkid"}') is not supported by the view`),null):l(t)?s:t;var o,i,r}get excludedLayers(){return this._get("excludedLayers")||new s}set excludedLayers(e){this._set("excludedLayers",i(e,this._get("excludedLayers")))}get requiredPropertiesForEditing(){return[n(this.shape,(e=>e.position))]}get nonEditableMessage(){return l(this.shape)?"Assign a slice shape to the analysis to allow editing.":"plane"===this.shape.type?"Assign a position to the analysis slice plane to allow editing.":void 0}};e([p({readOnly:!0})],b.prototype,"type",void 0),e([p({readOnly:!0})],b.prototype,"extent",null),e([p()],b.prototype,"tiltEnabled",void 0),e([p({types:{key:"type",base:null,typeMap:{plane:f},defaultKeyValue:"plane"}})],b.prototype,"shape",void 0),e([p({cast:o,clonable:e=>e.slice()})],b.prototype,"excludedLayers",null),e([p({type:Boolean,nonNullable:!0})],b.prototype,"excludeGroundSurface",void 0),e([p({readOnly:!0})],b.prototype,"requiredPropertiesForEditing",null),e([p({readOnly:!0})],b.prototype,"nonEditableMessage",null),b=e([c("esri.analysis.Slice")],b);const j=b;export{j as default};
@@ -1 +1 @@
1
- var RemoteClient;(()=>{var e={88277:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i}),r(80442);var n,o=r(78286),s=r(17202);const i={apiKey:void 0,applicationUrl:null==(n=globalThis.location)?void 0:n.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,o.RH)(i,globalThis.esriConfig,!0),delete i.has),!i.assetsPath){const e="4.23.0";i.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s.r}/assets`}i.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(i,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}}),i.request.corsEnabledServers=[],i.request.corsEnabledServers.push=function(){return console.warn("[esri.config]","request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"),0}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22974),o=r(92604),s=r(58896);class i extends s.Z{constructor(e,t,r){if(super(e,t,r),!(this instanceof i))return new i(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(68773),o=(r(80442),r(70586)),s=r(19153);const i={info:0,warn:1,error:2,none:3};class a{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const n=this._argsToKey(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(n,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of n.Z.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;(0,o.pC)(r);){const t=r[e];if((0,o.pC)(t))return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...r){console[e](`[${t}]`,...r)}_matchLevel(e){const t=n.Z.log.level?n.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(78286);class o{constructor(e,t,r){this.name=e,this.details=r,this.message=void 0,this instanceof o&&(this.message=t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,r){if(""===r)return"$";const o=(0,n.hS)(r,t),s=null==o?"":o;if(void 0===s)throw new Error(`could not find key "${r}" in template`);return s.toString()}))}(t,r)||"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=null==e?Math.random()*n._m:e}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67676:(e,t,r)=>{"use strict";r.d(t,{SO:()=>u,a9:()=>c,fS:()=>s,cq:()=>d,zG:()=>i,w6:()=>l,Od:()=>g,e$:()=>h,FY:()=>b});var n=r(70586),o=r(77734);function s(e,t,r){if((0,n.Wi)(e)&&(0,n.Wi)(t))return!0;if((0,n.Wi)(e)||(0,n.Wi)(t)||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function i(e){return e&&"number"==typeof e.length}const a=!!Array.prototype.fill;function c(e,t){if(a)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}function l(e,t){void 0===t&&(t=e,e=0);const r=new Array(t-e);for(let n=e;n<t;n++)r[n-e]=n;return r}class u{constructor(){this.last=0}}const f=new u;function d(e,t,r,n){n=n||f;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function h(e,t,r,n){const o=null==r?e.length:r,s=d(e,t,o,n);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const p=new Set;function b(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;p.clear();for(let e=0;e<n;++e)p.add(t[e]);o=o||f;const i=Math.max(0,o.last-10);for(let t=i;t<r;++t)if(p.has(e[t])&&(s&&s.push(e[t]),p.delete(e[t]),e[t]=e[r-1],--r,--t,0===p.size||0===r))return p.clear(),r;for(let t=0;t<i;++t)if(p.has(e[t])&&(s&&s.push(e[t]),p.delete(e[t]),e[t]=e[r-1],--r,--t,0===p.size||0===r))return p.clear(),r;return p.clear(),r}function g(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}new o.Z},91460:(e,t,r)=>{"use strict";function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{vT:()=>n,on:()=>o,IH:()=>s})},80442:(e,t,r)=>{"use strict";var n,o;let s;var i,a;function c(e){return"function"==typeof s[e]?s[e]=s[e](globalThis):s[e]}r.d(t,{Z:()=>c}),s=null!=(n=globalThis.dojoConfig)&&n.has||null!=(o=globalThis.esriConfig)&&o.has?{...null==(i=globalThis.dojoConfig)?void 0:i.has,...null==(a=globalThis.esriConfig)?void 0:a.has}:{},c.add=(e,t,r,n)=>((n||void 0===s[e])&&(s[e]=t),r&&c(e)),c.cache=s,c.add("esri-deprecation-warnings",!0),(()=>{var e;c.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const t="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(c.add("host-browser",t),c.add("host-node","object"==typeof globalThis.process&&(null==(e=globalThis.process.versions)?void 0:e.node)&&globalThis.process.versions.v8),c.add("dom",t),c("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(c.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),c.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),c.add("khtml",r.includes("Konqueror")?n:void 0),c.add("edge",parseFloat(t.split("Edge/")[1])||void 0),c.add("opr",parseFloat(t.split("OPR/")[1])||void 0),c.add("webkit",!c("wp")&&!c("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),c.add("chrome",!c("edge")&&!c("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),c.add("android",!c("wp")&&parseFloat(t.split("Android ")[1])||void 0),c.add("safari",!r.includes("Safari")||c("wp")||c("chrome")||c("android")||c("edge")||c("opr")?void 0:parseFloat(r.split("Version/")[1])),c.add("mac",r.includes("Macintosh")),!c("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),r=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replace(/_/g,""));c.add(e,n),c.add("ios",n)}c.add("trident",parseFloat(r.split("Trident/")[1])||void 0),c("webkit")||(!t.includes("Gecko")||c("wp")||c("khtml")||c("trident")||c("edge")||c.add("mozilla",n),c("mozilla")&&c.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&c.add("esri-mobile",t),r&&c.add("esri-iPhone",r),c.add("esri-geolocation",!!navigator.geolocation)}c.add("esri-canvas-svg-support",!c("trident")),c.add("esri-wasm","WebAssembly"in globalThis),c.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),c.add("esri-atomics","Atomics"in globalThis),c.add("esri-workers","Worker"in globalThis),c.add("web-feat:cache","caches"in globalThis),c.add("esri-workers-arraybuffer-transfer",!c("safari")||Number(c("safari"))>=12),c.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),c.add("featurelayer-simplify-payload-size-factors",[1,1,4]),c.add("featurelayer-snapshot-enabled",!0),c.add("featurelayer-snapshot-point-min-threshold",8e4),c.add("featurelayer-snapshot-point-max-threshold",4e5),c.add("featurelayer-snapshot-point-coverage",.1),c.add("featurelayer-advanced-symbols",!1),c.add("featurelayer-pbf",!0),c.add("featurelayer-pbf-statistics",!1),c.add("feature-layers-workers",!0),c.add("feature-polyline-generalization-factor",1),c.add("mapview-transitions-duration",200),c.add("mapserver-pbf-enabled",!1),c("host-webworker")||c("host-browser")&&(c.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),c.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{c.add("esri-image-decode",!0,!0,!0)})).catch((()=>{c.add("esri-image-decode",!1,!0,!0)}))}return!1})),c.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},22974:(e,t,r)=>{"use strict";r.d(t,{d9:()=>i,fS:()=>d,yd:()=>s,Vo:()=>a}),r(67676),r(80442);var n=r(70586),o=r(1533);function s(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&s(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=f(e);if((0,n.pC)(t))return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(u(e))return e.clone();const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function a(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=f(e);if((0,n.pC)(t))return t;if(l(e)){let t=!0;const r=e.map((e=>{const r=a(e);return null!=e&&null==r&&(t=!1),r}));return t?r:null}if(c(e))return e.clone();if(!u(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const r of Object.getOwnPropertyNames(e)){const n=e[r],o=a(n);if(null!=n&&null==o)return null;t[r]=o}return t}return null}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function u(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function f(e){if((0,o.W0)(e)||(0,o.lq)(e)||(0,o.KZ)(e)||(0,o.z3)(e)||(0,o.Uc)(e)||(0,o.Hx)(e)||(0,o.ZY)(e)||(0,o.xZ)(e)||(0,o.fS)(e))return(0,o.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;return e.forEach(((e,r)=>{t.set(r,i(e))})),t}if(e instanceof Set){const t=new Set;return e.forEach((e=>{t.add(i(e))})),t}return null}function d(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}},70586:(e,t,r)=>{"use strict";function n(e){return null!=e}function o(e){return null==e}function s(e){return void 0===e}function i(e,t){return n(e)?t(e):null}function a(e){return e}function c(e,t){if(o(e))throw new Error(t);return e}function l(e,t){return n(e)?e:"function"==typeof t?t():t}function u(e){return n(e)&&e.destroy(),null}function f(e){return n(e)&&e.dispose(),null}function d(e){return n(e)&&e.remove(),null}function h(e){return n(e)&&e.release(),null}function p(e){return null}function b(e,t){const r=new Array;for(const n of e)r.push(m(n,null,t));return r}function g(e,t){for(const r of e)i(r,t)}function m(e,t,r){return n(e)?r(e):t}function y(e){return e.filter((e=>n(e)))}function v(e,...t){let r=e;for(let e=0;e<t.length&&r;++e)r=r[t[e]];return r}function w(e){return e}r.d(t,{yw:()=>i,j0:()=>w,SC:()=>u,O3:()=>f,lV:()=>y,JR:()=>g,U2:()=>v,Wi:()=>o,pC:()=>n,o8:()=>s,Fd:()=>b,R2:()=>m,Bd:()=>p,RY:()=>h,hw:()=>d,Wg:()=>a,Pt:()=>l,s3:()=>c})},78286:(e,t,r)=>{"use strict";r.d(t,{RH:()=>o,hS:()=>s,RB:()=>i});var n=r(22974);function o(e,t,r=!1){return c(e,t,r)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),o=n.pop(),s=a(n,!0,r);s&&o&&(s[o]=t)}function a(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function c(e,t,r){return t?Object.keys(t).reduce((function(e,o){let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,n.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{-1===s.indexOf(e)&&s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>C,$6:()=>c,Ue:()=>l,zE:()=>u,dD:()=>_,hh:()=>x,vr:()=>T,Ds:()=>j,as:()=>O,WW:()=>P,R8:()=>w,D_:()=>v,Hc:()=>h,y8:()=>E,fu:()=>g,$F:()=>m,d1:()=>k,DB:()=>S,r9:()=>p,k_:()=>f,H9:()=>b,Yn:()=>M,gx:()=>A,Hl:()=>y});const n=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(70586));function c(e){return Promise.all(e)}function l(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function u(e="Aborted"){return new s.Z("AbortError",e)}function f(e,t="Aborted"){if(h(e))throw u(t)}function d(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function h(e){const t=d(e);return(0,a.pC)(t)&&t.aborted}function p(e){if(v(e))throw e}function b(e){if(!v(e))throw e}function g(e,t){const r=d(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function m(e,t){const r=d(e);if(!(0,a.Wi)(r))return f(r),(0,i.IH)(r,"abort",(()=>t(u())))}function y(e,t){const r=d(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let o=g(t,(()=>n(u())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function v(e){return e&&"AbortError"===e.name}function w(e){return e.catch((e=>{if(!v(e))throw e}))}function _(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function O(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return O(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return l((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};r.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function P(e){return O(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function k(e){return Promise.reject(e)}function S(e){return Promise.resolve(e)}function C(e,t,r){const n=new AbortController;return g(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);g(n,(()=>{s&&(clearTimeout(s),o(u()))}))}))}function E(e){return e&&"function"==typeof e.then}function A(e){return E(e)?e:Promise.resolve(e)}function j(e,t=-1){let r,n,o,s,i=null;const c=(...l)=>{if(r){n=l,s&&s.reject(u()),s=_();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||_(),s=null,t>0){const n=new AbortController;r=A(e(...l,n.signal));const o=r;C(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=A(e(...l));const f=()=>{const e=n;n=o=r=i=null,null!=e&&c(...e)},d=r,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return c}function x(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}function T(e,t){let r,n=new AbortController;const o=e(n.signal);let s={promise:o,finished:!1,abort:()=>{n&&(n.abort(),n=null)}};const i=()=>{s&&(s.finished=!0,s=null),(0,a.pC)(r)&&(r.remove(),r=null),n=null};return o.then(i,i),r=g(t,(()=>{(0,a.pC)(s)&&s.abort()})),s}function M(e){return Promise.resolve().then((()=>{f(e)}))}},19153:(e,t,r)=>{"use strict";r.d(t,{Qs:()=>a,hP:()=>c,gx:()=>i,Cb:()=>l});var n=r(78286);const o=/\{([^\}]+)\}/g;function s(e){return null==e?"":e}function i(e,t){return e.replace(o,"object"==typeof t?(e,r)=>s((0,n.hS)(r,t)):(e,r)=>s(t(r)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&-1!==t.indexOf(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,r)=>{"use strict";function n(e,t){if(e.forEach)e.forEach(t);else for(let r=0;r<e.length;r++)t(e[r],r,e)}function o(e,t,r){if(e.slice)return e.slice(t,r);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===r?r=e.length:(r<0&&(r+=e.length),r=Math.min(e.length,Math.max(0,r)));const n=Math.max(0,r-t),o=new(0,e.constructor)(n);for(let r=0;r<n;r++)o[r]=e[t+r];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}r.d(t,{Ed:()=>n,eP:()=>s,xZ:()=>h,fS:()=>p,z3:()=>l,Hx:()=>f,W0:()=>i,Uc:()=>u,ZY:()=>d,lq:()=>a,KZ:()=>c,tP:()=>o})},17452:(e,t,r)=>{"use strict";r.d(t,{R9:()=>y,qg:()=>j,tD:()=>$,ZN:()=>he,fl:()=>pe,rS:()=>V,Ie:()=>ue,sJ:()=>Y,AH:()=>Q,io:()=>ee,L:()=>P,TI:()=>O,vt:()=>ce,oh:()=>U,P$:()=>D,Ml:()=>be,ed:()=>I,b7:()=>A,D6:()=>W,tm:()=>R,YP:()=>H,jc:()=>z,HK:()=>K,$U:()=>ne,oC:()=>te,kl:()=>L,v_:()=>B,hF:()=>q,_l:()=>X,PF:()=>F,Fv:()=>Z,B7:()=>E,u0:()=>S,Yd:()=>ae,Hu:()=>de,Qj:()=>le,hO:()=>oe,mN:()=>k});var n=r(68773),o=r(20102),s=r(92604),i=r(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=n.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(m)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v={};let w=new y(n.Z.applicationUrl);let _=function(){const e=(0,i.j0)(w.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${w.scheme}://${w.host}${null!=w.port?`:${w.port}`:""}${t}`}();const O=()=>w,P=()=>_;function k(e){const t={path:null,query:null},r=new y(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=S(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function S(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function C(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function E(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>C(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):C(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function A(e=!1){let t,r=c.proxyUrl;if("string"==typeof e){t=ne(e);const n=I(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&se()&&(r=oe(r)),k(r)}function j(e){const t=I(e);let r,n;if(t){const e=T(t.proxyUrl);r=e.path,n=e.query?S(e.query):null}if(r){const t=k(e);e=r+"?"+t.path;const o=E({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const x={path:"",query:""};function T(e){const t=e.indexOf("?");return-1!==t?(x.path=e.slice(0,t),x.query=e.slice(t+1)):(x.path=e,x.query=null),x}function M(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=T(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:M(e.urlPrefix)},r=c.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function I(e){const t=c.proxyRules,r=M(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function R(e,t){return e=N(e),t=N(t),ie(e)===ie(t)}function N(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function U(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=c.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function W(e,t,r=!1){const n=fe(e),o=fe(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function L(e){if("string"==typeof e){if(!H(e))return!0;e=fe(e)}if(W(e,w))return!0;const t=c.trustedServers||[];for(let r=0;r<t.length;r++){const n=J(t[r]);for(let t=0;t<n.length;t++)if(W(e,n[t]))return!0}return!1}function J(e){return v[e]||(re(e)||te(e)?v[e]=[new y(q(e))]:v[e]=[new y(`http://${e}`),new y(`https://${e}`)]),v[e]}function q(e,t=_,r){return te(e)?r&&r.preserveProtocolRelative?e:"http"===w.scheme&&w.authority===D(e).slice(2)?`http:${e}`:`https:${e}`:re(e)?e:(0,i.j0)(B("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function F(e,t=_,r){if(!H(e))return e;const n=Z(e),o=n.toLowerCase(),s=Z(t).toLowerCase().replace(/\/+$/,""),i=r?Z(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function Z(e){return function(e){const t=c.httpsDomains;if(!function(e){return f.test(e)||"http"===w.scheme&&te(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),p.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===w.scheme&&n===w.authority&&!b.test(e)||(se()&&n===w.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||se()&&!I(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=T(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function B(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const r=[];if(H(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return h.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function D(e,t=!1){if(z(e)||K(e))return null;let r=e.indexOf("://");if(-1===r&&te(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=ie(e,!0)),e}function H(e){return te(e)||re(e)}function z(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return"data:"===e.slice(0,5)}function Q(e){const t=Y(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}function V(e){return btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const G=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(G);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function X(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ee(e,t){(function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);return r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function te(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function re(e){return u.test(e)}function ne(e){return d.test(e)||"https"===w.scheme&&te(e)}function oe(e){return te(e)?`https:${e}`:e.replace(f,"https:")}function se(){return"https"===w.scheme}function ie(e,t=!1){return te(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ae(e){let t=0;if(H(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ce(e,t){if(!e)return"";const r=k(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&H(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function fe(e){return"string"==typeof e?new y(q(e)):(e.scheme||(e.scheme=w.scheme),e)}function de(e,t){const r=k(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function he(e,t,r){const n=k(e),o=n.query||{};return o[t]=String(r),`${n.path}?${E(o)}`}function pe(e,t){const r=k(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=E(n);return o?`${r.path}?${o}`:r.path}function be(e){if((0,i.Wi)(e))return null;const t=e.match(ge);return t?t[1]:null}const ge=/.*?\.([^\/]*)$/},25045:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(40330),o=r(20102),s=r(91460),i=r(70586),a=r(95330),c=r(94362),l=r(17202);const u={statsWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(6841)]).then(r.bind(r,36841)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8227)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4547),r.e(1534),r.e(4854),r.e(8961),r.e(7054),r.e(1451),r.e(9907),r.e(7793)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(8936)]).then(r.bind(r,18936)),ElevationSamplerWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(4547),r.e(1451),r.e(6481),r.e(6459),r.e(3146)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4588),r.e(4547),r.e(1534),r.e(3485),r.e(4854),r.e(8961),r.e(7054),r.e(1451),r.e(9907),r.e(6353)]).then(r.bind(r,98363)),GeoJSONSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4547),r.e(1534),r.e(4854),r.e(8961),r.e(7054),r.e(1451),r.e(9907),r.e(327),r.e(6321)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4547),r.e(1534),r.e(4854),r.e(8961),r.e(7054),r.e(1451),r.e(9907),r.e(327),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(8961),r.e(147)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7845),r.e(4588),r.e(4547),r.e(1534),r.e(3485),r.e(4854),r.e(8961),r.e(7054),r.e(4325),r.e(2730),r.e(299)]).then(r.bind(r,70299)),PointCloudWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4547),r.e(9294),r.e(9474)]).then(r.bind(r,16583)),RasterWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4547),r.e(176),r.e(2398),r.e(5340)]).then(r.bind(r,61576)),SceneLayerWorker:()=>r.e(1412).then(r.bind(r,31412)),WFSSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4547),r.e(1534),r.e(4854),r.e(8961),r.e(7054),r.e(1451),r.e(9907),r.e(327),r.e(4556),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(2303),r.e(4325),r.e(2508),r.e(6810),r.e(9872)]).then(r.bind(r,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new y(t.port1,{channel:t,client:r});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),y.clients.set(n,r),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r&&r.signal,s=r&&r.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,c.jt)();return new Promise(((r,o)=>{const c=(0,a.$F)(n,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:d,jobId:i}),o((0,a.zE)()))})),l={resolve:r,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,s)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:c.Cs.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,n,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:r,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(r,{controller:s,promise:l}),l.then((e=>{i.has(r)&&(i.delete(r),this._post({type:p,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:p,jobId:r,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:r},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e).type===c.Cs.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:r,error:n,data:s}=e,i=this._outJobs;if(!i.has(r))return;const a=i.get(r);i.delete(r),null==(t=a.abortHandle)||t.remove(),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(s)}_post(e,t,r){return(0,c.oi)(this._port,e,t,r)}}y.kernelInfo={revision:l.$,version:n.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,r)=>{"use strict";r.d(t,{Cs:()=>n,jt:()=>a,oi:()=>l,QM:()=>u,AB:()=>c});var n,o,s=r(80442);(o=n||(n={}))[o.HANDSHAKE=0]="HANDSHAKE",o[o.OPEN=1]="OPEN",o[o.OPENED=2]="OPENED",o[o.RESPONSE=3]="RESPONSE",o[o.INVOKE=4]="INVOKE",o[o.ABORT=5]="ABORT",o[o.CLOSE=6]="CLOSE",o[o.OPEN_PORT=7]="OPEN_PORT",o[o.ON=8]="ON";let i=0;function a(){return i++}function c(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function l(e,t,r,o){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(s=f(o),t.data=r):(s=f(r.transferList),t.data=r.result),s?e.postMessage(t,s):e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function f(e){if(!e||!e.length)return null;if((0,s.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>l,id:()=>a,qh:()=>c,i8:()=>s,Nv:()=>i});var n=r(80442),o=r(17452);const s="4.23",i={async request(e,t){var n;const{default:s}=await r.e(3172).then(r.bind(r,3172)),i=e.options,a=i.responseType;i.signal=null==t?void 0:t.signal,i.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,o.oh)(e.url))&&n.after?a:"array-buffer";const c=await s(e.url,i),l={data:c.data,ssl:c.ssl};switch(c.requestOptions.responseType){case"native-request-init":return delete l.data.signal,l;case"blob":l.data=await l.data.arrayBuffer();break;case"json":l.data=(new TextEncoder).encode(JSON.stringify(l.data)).buffer;break;case"text":l.data=(new TextEncoder).encode(l.data).buffer}return{result:l,transferList:[l.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},17202:(e,t,r)=>{"use strict";r.d(t,{r:()=>n,$:()=>o});const n="20220217",o="84007c891732d4d47e04e38334aaf45036b9496c"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{24:"976e95fd34d822d721fc",102:"17ef37c4a651384915a5",147:"60194a2235e0f8ee500e",176:"2d8d6da1334a2feae67a",223:"e21b211913aefde47e30",247:"a0450fbf01de854f5c97",280:"73a3ad2146bfea9f5dce",299:"7a31f9c7410dad37a6d5",327:"f567be167c2afecd1fbd",368:"b548e6b3add4154ac4e6",402:"2974328ebc4c1774d256",565:"0018053ac16a09feba70",576:"812a5abfadd747a09b6f",635:"e8e775758b79c5a084c8",639:"7ccbd5633dda85115497",819:"6280c69d87b2a3a18780",872:"2072360694d0b0b0d6c0",1074:"bf3bc2e533686c547fc4",1412:"d3f05b8e4bd53eb1eb9d",1421:"7fa2d758a24bbaaab0bf",1433:"1def8845714ea745fd24",1451:"c3592a9df90b743b0936",1534:"e53d39dde819107cbe22",1578:"9d59f18f47f9eeaa2b37",1648:"d2ffb0f21363c0d3d2a9",1765:"8f0c5a8d6e7976a2290b",1773:"2c8fe9bc988c3c5760a5",1964:"4441d6539a33895a0ee4",2133:"3403cb53e4e60923c5fc",2134:"070a78b488f92d022495",2303:"33e57877a06146d5c5af",2304:"dd87d6ed753803e409b8",2398:"aa04b90b82bf70caaae4",2399:"467b5faa1c90d9821609",2508:"d4600f3c850e021ea872",2515:"70d6bb3c7112cb702389",2730:"ceff15512431a485456b",2785:"f048fb02aae357a73d01",2953:"806a7db0084214a53c79",3027:"0c711b129d501b1d4439",3136:"bea473dba8e57617a71d",3146:"49605501b44d1b364076",3172:"fe0c3b7c9b428d9c3f25",3230:"7351fbd8a9dbef027d06",3485:"18fb7e0c61816b6d94fe",3505:"6cd5e4380d29b9a3c344",3516:"21a31fbce5e9b15a55bf",3529:"dc97901c5ca2cd7c5c00",3668:"74ca82e9658cf1bee033",3749:"3df27ae56ecf5ea118bb",3792:"beb71ce96c8f2336ff1e",3852:"62c683f44c297d239ab8",3942:"61cb9e8acd14379ccbed",4166:"7bdc4ca6d3fab13079ce",4325:"c7da2f1bdda4de915210",4358:"f977977564b2b75332a9",4369:"f4c4a00207af076906b9",4475:"f067b4fc65b835437afd",4499:"7b0b75878370b3475fe5",4547:"2e899ef5881b4ec6fa55",4556:"4954fd86b48cc68b737c",4579:"ef8e894c8705a0e361f9",4588:"1e6dfd1daee564c32ff9",4599:"07cb63f5493af9749633",4695:"778d55486ce1e96338d4",4720:"d21526570300597aa6ae",4854:"9b8331d2e538330c2ca4",4859:"2b7681ab9ee878677366",4889:"0d3635f6330dbf692d3f",5329:"0a4401a148c3cb73d6ff",5340:"237485055aad23dd15a5",5410:"2404615883fc3a5f07a8",5517:"5ac1bb592fd9744e4985",5520:"f0b6f0800669ff970826",5732:"469ba1b24cdeea0758ec",5823:"974c018b702bf9ba0704",5837:"42c67e6579b54844ec06",5845:"114c342f27c063a176aa",5853:"5ac4c1d54b94c7d87835",6006:"7509c1693ffedc0fa018",6104:"f510d446308b25e8a7c1",6233:"a66fd506069e3c776e1b",6237:"c544df83e86a9d36b68c",6321:"60643fe2dbc5741f07a4",6353:"4455e41d357cfb4a3cbc",6401:"adb1de485e2da017510d",6418:"9d54bedcd7cd1cfc74f3",6434:"c4f8b6595fac322c98d1",6459:"7dcf52d3db3903c8eb9f",6481:"e84b935c285888a892c1",6550:"4247dd534a49a99c3571",6570:"836a5a96156b91fb9dca",6678:"84d8e77d78d0d5134083",6690:"e88b623d63ca3e064d13",6710:"d11d1d294ccc4ccdf60f",6726:"3396ddd13bead2b76bff",6748:"7a4bc9d7fc2014bc1e1b",6774:"4a830f056c4d0ed93928",6810:"411db587521e12c593be",6841:"a6a07d872311d2086fb7",6968:"85b1f36790df95b17659",7049:"12ffb40ee4e51c3e85cc",7054:"087817aa1751345d762c",7277:"c23d965a55215168a1a2",7284:"7a662fc2f84fa666fd90",7319:"3ec34895ef3e20bba6a8",7572:"152e02d321f9289f5a16",7604:"1c79b520e1fccd674836",7622:"6e2e641844170a8a8c34",7779:"e7def92e1020e58600b5",7793:"9e4467924301acf570a1",7845:"1f29ba1a1d303797ccd4",7873:"93eb468381bfcf0e47d7",7913:"e9a98125f06ea32f6732",8014:"3b37eacaba79d806bf8a",8062:"e02d735d1f75c7c3c18c",8121:"609696032cba8fe37686",8163:"6be326edd9829781d926",8216:"34ca189925f39d4b6e12",8227:"1f394b20410fddb30a96",8326:"8ebd57fa47ca1f970c19",8422:"9a4592a858d3bb706f02",8589:"84b3c409d14ed253e014",8625:"e4019b63a1fe74e2c842",8659:"b5a239c7019546f751f5",8683:"5d38feb7528e9b79d7a0",8758:"6d7fa026f58fd0c68a39",8828:"46f7977827d5ae5d2f72",8833:"aa9c08ede8b43423d714",8846:"aa0fec6fd23aeba403ba",8936:"fffea9587ec14c6d34e8",8961:"444829a840b8ded16fd7",9070:"2f8cf135b1116559659f",9151:"604c7006e12546ecae67",9164:"83848fc9592b8385795a",9169:"f7ae0344257e6e08469b",9201:"b86823a06e898f4fb04c",9226:"405bcfd485dca8a75a62",9254:"9767f045b2ea26e9a8d2",9291:"214910032945dd2d86b0",9294:"9ce961bc390202c87941",9296:"609a290f00d7e2b33046",9474:"8f97ff0ecb455b2b0650",9490:"57c67e260267a1dbc5e3",9664:"810a763373d7f78ae398",9754:"b30f70425b808788a775",9767:"0b7979ddb45f657c58af",9783:"024a18b48dbf9fce2062",9872:"b3caa09c3f69033275fc",9884:"356db8b8297282c77291",9907:"117eec01b4888833a391",9928:"eccba071ced2d922bb85",9932:"d4a2200f9e8e3ecffb08",9938:"2fe45910871df2eeb2fe",9989:"a756589a166c0fec3141"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={134:1,102:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)r.o(s,a)&&(r.m[a]=s[a]);for(i&&i(r);o.length;)e[o.pop()]=1;n(t)}})(),r(88277);var n=r(25045);RemoteClient=n})();
1
+ var RemoteClient;(()=>{var e={88277:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i}),r(80442);var n,o=r(78286),s=r(17202);const i={apiKey:void 0,applicationUrl:null==(n=globalThis.location)?void 0:n.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,o.RH)(i,globalThis.esriConfig,!0),delete i.has),!i.assetsPath){const e="4.23.0";i.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s.r}/assets`}i.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(i,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}}),i.request.corsEnabledServers=[],i.request.corsEnabledServers.push=function(){return console.warn("[esri.config]","request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"),0}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22974),o=r(92604),s=r(58896);class i extends s.Z{constructor(e,t,r){if(super(e,t,r),!(this instanceof i))return new i(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(68773),o=(r(80442),r(70586)),s=r(19153);const i={info:0,warn:1,error:2,none:3};class a{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const n=this._argsToKey(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(n,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of n.Z.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;(0,o.pC)(r);){const t=r[e];if((0,o.pC)(t))return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...r){console[e](`[${t}]`,...r)}_matchLevel(e){const t=n.Z.log.level?n.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(78286);class o{constructor(e,t,r){this.name=e,this.details=r,this.message=void 0,this instanceof o&&(this.message=t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,r){if(""===r)return"$";const o=(0,n.hS)(r,t),s=null==o?"":o;if(void 0===s)throw new Error(`could not find key "${r}" in template`);return s.toString()}))}(t,r)||"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=null==e?Math.random()*n._m:e}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67676:(e,t,r)=>{"use strict";r.d(t,{SO:()=>u,a9:()=>c,fS:()=>s,cq:()=>d,zG:()=>i,w6:()=>l,Od:()=>g,e$:()=>h,FY:()=>b});var n=r(70586),o=r(77734);function s(e,t,r){if((0,n.Wi)(e)&&(0,n.Wi)(t))return!0;if((0,n.Wi)(e)||(0,n.Wi)(t)||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function i(e){return e&&"number"==typeof e.length}const a=!!Array.prototype.fill;function c(e,t){if(a)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}function l(e,t){void 0===t&&(t=e,e=0);const r=new Array(t-e);for(let n=e;n<t;n++)r[n-e]=n;return r}class u{constructor(){this.last=0}}const f=new u;function d(e,t,r,n){n=n||f;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function h(e,t,r,n){const o=null==r?e.length:r,s=d(e,t,o,n);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const p=new Set;function b(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;p.clear();for(let e=0;e<n;++e)p.add(t[e]);o=o||f;const i=Math.max(0,o.last-10);for(let t=i;t<r;++t)if(p.has(e[t])&&(s&&s.push(e[t]),p.delete(e[t]),e[t]=e[r-1],--r,--t,0===p.size||0===r))return p.clear(),r;for(let t=0;t<i;++t)if(p.has(e[t])&&(s&&s.push(e[t]),p.delete(e[t]),e[t]=e[r-1],--r,--t,0===p.size||0===r))return p.clear(),r;return p.clear(),r}function g(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}new o.Z},91460:(e,t,r)=>{"use strict";function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{vT:()=>n,on:()=>o,IH:()=>s})},80442:(e,t,r)=>{"use strict";var n,o;let s;var i,a;function c(e){return"function"==typeof s[e]?s[e]=s[e](globalThis):s[e]}r.d(t,{Z:()=>c}),s=null!=(n=globalThis.dojoConfig)&&n.has||null!=(o=globalThis.esriConfig)&&o.has?{...null==(i=globalThis.dojoConfig)?void 0:i.has,...null==(a=globalThis.esriConfig)?void 0:a.has}:{},c.add=(e,t,r,n)=>((n||void 0===s[e])&&(s[e]=t),r&&c(e)),c.cache=s,c.add("esri-deprecation-warnings",!0),(()=>{var e;c.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const t="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(c.add("host-browser",t),c.add("host-node","object"==typeof globalThis.process&&(null==(e=globalThis.process.versions)?void 0:e.node)&&globalThis.process.versions.v8),c.add("dom",t),c("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(c.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),c.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),c.add("khtml",r.includes("Konqueror")?n:void 0),c.add("edge",parseFloat(t.split("Edge/")[1])||void 0),c.add("opr",parseFloat(t.split("OPR/")[1])||void 0),c.add("webkit",!c("wp")&&!c("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),c.add("chrome",!c("edge")&&!c("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),c.add("android",!c("wp")&&parseFloat(t.split("Android ")[1])||void 0),c.add("safari",!r.includes("Safari")||c("wp")||c("chrome")||c("android")||c("edge")||c("opr")?void 0:parseFloat(r.split("Version/")[1])),c.add("mac",r.includes("Macintosh")),!c("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),r=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replace(/_/g,""));c.add(e,n),c.add("ios",n)}c.add("trident",parseFloat(r.split("Trident/")[1])||void 0),c("webkit")||(!t.includes("Gecko")||c("wp")||c("khtml")||c("trident")||c("edge")||c.add("mozilla",n),c("mozilla")&&c.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&c.add("esri-mobile",t),r&&c.add("esri-iPhone",r),c.add("esri-geolocation",!!navigator.geolocation)}c.add("esri-canvas-svg-support",!c("trident")),c.add("esri-wasm","WebAssembly"in globalThis),c.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),c.add("esri-atomics","Atomics"in globalThis),c.add("esri-workers","Worker"in globalThis),c.add("web-feat:cache","caches"in globalThis),c.add("esri-workers-arraybuffer-transfer",!c("safari")||Number(c("safari"))>=12),c.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),c.add("featurelayer-simplify-payload-size-factors",[1,1,4]),c.add("featurelayer-snapshot-enabled",!0),c.add("featurelayer-snapshot-point-min-threshold",8e4),c.add("featurelayer-snapshot-point-max-threshold",4e5),c.add("featurelayer-snapshot-point-coverage",.1),c.add("featurelayer-advanced-symbols",!1),c.add("featurelayer-pbf",!0),c.add("featurelayer-pbf-statistics",!1),c.add("feature-layers-workers",!0),c.add("feature-polyline-generalization-factor",1),c.add("mapview-transitions-duration",200),c.add("mapserver-pbf-enabled",!1),c("host-webworker")||c("host-browser")&&(c.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),c.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{c.add("esri-image-decode",!0,!0,!0)})).catch((()=>{c.add("esri-image-decode",!1,!0,!0)}))}return!1})),c.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},22974:(e,t,r)=>{"use strict";r.d(t,{d9:()=>i,fS:()=>d,yd:()=>s,Vo:()=>a}),r(67676),r(80442);var n=r(70586),o=r(1533);function s(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&s(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=f(e);if((0,n.pC)(t))return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(u(e))return e.clone();const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function a(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=f(e);if((0,n.pC)(t))return t;if(l(e)){let t=!0;const r=e.map((e=>{const r=a(e);return null!=e&&null==r&&(t=!1),r}));return t?r:null}if(c(e))return e.clone();if(!u(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const r of Object.getOwnPropertyNames(e)){const n=e[r],o=a(n);if(null!=n&&null==o)return null;t[r]=o}return t}return null}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function u(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function f(e){if((0,o.W0)(e)||(0,o.lq)(e)||(0,o.KZ)(e)||(0,o.z3)(e)||(0,o.Uc)(e)||(0,o.Hx)(e)||(0,o.ZY)(e)||(0,o.xZ)(e)||(0,o.fS)(e))return(0,o.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;return e.forEach(((e,r)=>{t.set(r,i(e))})),t}if(e instanceof Set){const t=new Set;return e.forEach((e=>{t.add(i(e))})),t}return null}function d(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}},70586:(e,t,r)=>{"use strict";function n(e){return null!=e}function o(e){return null==e}function s(e){return void 0===e}function i(e,t){return n(e)?t(e):null}function a(e){return e}function c(e,t){if(o(e))throw new Error(t);return e}function l(e,t){return n(e)?e:"function"==typeof t?t():t}function u(e){return n(e)&&e.destroy(),null}function f(e){return n(e)&&e.dispose(),null}function d(e){return n(e)&&e.remove(),null}function h(e){return n(e)&&e.release(),null}function p(e){return null}function b(e,t){const r=new Array;for(const n of e)r.push(m(n,null,t));return r}function g(e,t){for(const r of e)i(r,t)}function m(e,t,r){return n(e)?r(e):t}function y(e){return e.filter((e=>n(e)))}function v(e,...t){let r=e;for(let e=0;e<t.length&&r;++e)r=r[t[e]];return r}function w(e){return e}r.d(t,{yw:()=>i,j0:()=>w,SC:()=>u,O3:()=>f,lV:()=>y,JR:()=>g,U2:()=>v,Wi:()=>o,pC:()=>n,o8:()=>s,Fd:()=>b,R2:()=>m,Bd:()=>p,RY:()=>h,hw:()=>d,Wg:()=>a,Pt:()=>l,s3:()=>c})},78286:(e,t,r)=>{"use strict";r.d(t,{RH:()=>o,hS:()=>s,RB:()=>i});var n=r(22974);function o(e,t,r=!1){return c(e,t,r)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),o=n.pop(),s=a(n,!0,r);s&&o&&(s[o]=t)}function a(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function c(e,t,r){return t?Object.keys(t).reduce((function(e,o){let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,n.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{-1===s.indexOf(e)&&s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>C,$6:()=>c,Ue:()=>l,zE:()=>u,dD:()=>_,hh:()=>x,vr:()=>T,Ds:()=>j,as:()=>O,WW:()=>P,R8:()=>w,D_:()=>v,Hc:()=>h,y8:()=>E,fu:()=>g,$F:()=>m,d1:()=>k,DB:()=>S,r9:()=>p,k_:()=>f,H9:()=>b,Yn:()=>M,gx:()=>A,Hl:()=>y});const n=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(70586));function c(e){return Promise.all(e)}function l(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function u(e="Aborted"){return new s.Z("AbortError",e)}function f(e,t="Aborted"){if(h(e))throw u(t)}function d(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function h(e){const t=d(e);return(0,a.pC)(t)&&t.aborted}function p(e){if(v(e))throw e}function b(e){if(!v(e))throw e}function g(e,t){const r=d(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function m(e,t){const r=d(e);if(!(0,a.Wi)(r))return f(r),(0,i.IH)(r,"abort",(()=>t(u())))}function y(e,t){const r=d(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let o=g(t,(()=>n(u())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function v(e){return e&&"AbortError"===e.name}function w(e){return e.catch((e=>{if(!v(e))throw e}))}function _(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function O(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return O(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return l((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};r.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function P(e){return O(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function k(e){return Promise.reject(e)}function S(e){return Promise.resolve(e)}function C(e,t,r){const n=new AbortController;return g(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);g(n,(()=>{s&&(clearTimeout(s),o(u()))}))}))}function E(e){return e&&"function"==typeof e.then}function A(e){return E(e)?e:Promise.resolve(e)}function j(e,t=-1){let r,n,o,s,i=null;const c=(...l)=>{if(r){n=l,s&&s.reject(u()),s=_();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||_(),s=null,t>0){const n=new AbortController;r=A(e(...l,n.signal));const o=r;C(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=A(e(...l));const f=()=>{const e=n;n=o=r=i=null,null!=e&&c(...e)},d=r,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return c}function x(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}function T(e,t){let r,n=new AbortController;const o=e(n.signal);let s={promise:o,finished:!1,abort:()=>{n&&(n.abort(),n=null)}};const i=()=>{s&&(s.finished=!0,s=null),(0,a.pC)(r)&&(r.remove(),r=null),n=null};return o.then(i,i),r=g(t,(()=>{(0,a.pC)(s)&&s.abort()})),s}function M(e){return Promise.resolve().then((()=>{f(e)}))}},19153:(e,t,r)=>{"use strict";r.d(t,{Qs:()=>a,hP:()=>c,gx:()=>i,Cb:()=>l});var n=r(78286);const o=/\{([^\}]+)\}/g;function s(e){return null==e?"":e}function i(e,t){return e.replace(o,"object"==typeof t?(e,r)=>s((0,n.hS)(r,t)):(e,r)=>s(t(r)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&-1!==t.indexOf(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,r)=>{"use strict";function n(e,t){if(e.forEach)e.forEach(t);else for(let r=0;r<e.length;r++)t(e[r],r,e)}function o(e,t,r){if(e.slice)return e.slice(t,r);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===r?r=e.length:(r<0&&(r+=e.length),r=Math.min(e.length,Math.max(0,r)));const n=Math.max(0,r-t),o=new(0,e.constructor)(n);for(let r=0;r<n;r++)o[r]=e[t+r];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}r.d(t,{Ed:()=>n,eP:()=>s,xZ:()=>h,fS:()=>p,z3:()=>l,Hx:()=>f,W0:()=>i,Uc:()=>u,ZY:()=>d,lq:()=>a,KZ:()=>c,tP:()=>o})},17452:(e,t,r)=>{"use strict";r.d(t,{R9:()=>y,qg:()=>j,tD:()=>$,ZN:()=>he,fl:()=>pe,rS:()=>V,Ie:()=>ue,sJ:()=>Y,AH:()=>Q,io:()=>ee,L:()=>P,TI:()=>O,vt:()=>ce,oh:()=>U,P$:()=>D,Ml:()=>be,ed:()=>I,b7:()=>A,D6:()=>W,tm:()=>R,YP:()=>H,jc:()=>z,HK:()=>K,$U:()=>ne,oC:()=>te,kl:()=>L,v_:()=>B,hF:()=>q,_l:()=>X,PF:()=>F,Fv:()=>Z,B7:()=>E,u0:()=>S,Yd:()=>ae,Hu:()=>de,Qj:()=>le,hO:()=>oe,mN:()=>k});var n=r(68773),o=r(20102),s=r(92604),i=r(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=n.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(m)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v={};let w=new y(n.Z.applicationUrl);let _=function(){const e=(0,i.j0)(w.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${w.scheme}://${w.host}${null!=w.port?`:${w.port}`:""}${t}`}();const O=()=>w,P=()=>_;function k(e){const t={path:null,query:null},r=new y(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=S(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function S(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function C(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function E(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>C(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):C(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function A(e=!1){let t,r=c.proxyUrl;if("string"==typeof e){t=ne(e);const n=I(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&se()&&(r=oe(r)),k(r)}function j(e){const t=I(e);let r,n;if(t){const e=T(t.proxyUrl);r=e.path,n=e.query?S(e.query):null}if(r){const t=k(e);e=r+"?"+t.path;const o=E({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const x={path:"",query:""};function T(e){const t=e.indexOf("?");return-1!==t?(x.path=e.slice(0,t),x.query=e.slice(t+1)):(x.path=e,x.query=null),x}function M(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=T(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:M(e.urlPrefix)},r=c.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function I(e){const t=c.proxyRules,r=M(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function R(e,t){return e=N(e),t=N(t),ie(e)===ie(t)}function N(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function U(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=c.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function W(e,t,r=!1){const n=fe(e),o=fe(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function L(e){if("string"==typeof e){if(!H(e))return!0;e=fe(e)}if(W(e,w))return!0;const t=c.trustedServers||[];for(let r=0;r<t.length;r++){const n=J(t[r]);for(let t=0;t<n.length;t++)if(W(e,n[t]))return!0}return!1}function J(e){return v[e]||(re(e)||te(e)?v[e]=[new y(q(e))]:v[e]=[new y(`http://${e}`),new y(`https://${e}`)]),v[e]}function q(e,t=_,r){return te(e)?r&&r.preserveProtocolRelative?e:"http"===w.scheme&&w.authority===D(e).slice(2)?`http:${e}`:`https:${e}`:re(e)?e:(0,i.j0)(B("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function F(e,t=_,r){if(!H(e))return e;const n=Z(e),o=n.toLowerCase(),s=Z(t).toLowerCase().replace(/\/+$/,""),i=r?Z(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function Z(e){return function(e){const t=c.httpsDomains;if(!function(e){return f.test(e)||"http"===w.scheme&&te(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),p.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===w.scheme&&n===w.authority&&!b.test(e)||(se()&&n===w.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||se()&&!I(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=T(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function B(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const r=[];if(H(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return h.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function D(e,t=!1){if(z(e)||K(e))return null;let r=e.indexOf("://");if(-1===r&&te(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=ie(e,!0)),e}function H(e){return te(e)||re(e)}function z(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return"data:"===e.slice(0,5)}function Q(e){const t=Y(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}function V(e){return btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const G=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(G);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function X(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ee(e,t){(function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);return r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function te(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function re(e){return u.test(e)}function ne(e){return d.test(e)||"https"===w.scheme&&te(e)}function oe(e){return te(e)?`https:${e}`:e.replace(f,"https:")}function se(){return"https"===w.scheme}function ie(e,t=!1){return te(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ae(e){let t=0;if(H(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ce(e,t){if(!e)return"";const r=k(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&H(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function fe(e){return"string"==typeof e?new y(q(e)):(e.scheme||(e.scheme=w.scheme),e)}function de(e,t){const r=k(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function he(e,t,r){const n=k(e),o=n.query||{};return o[t]=String(r),`${n.path}?${E(o)}`}function pe(e,t){const r=k(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=E(n);return o?`${r.path}?${o}`:r.path}function be(e){if((0,i.Wi)(e))return null;const t=e.match(ge);return t?t[1]:null}const ge=/.*?\.([^\/]*)$/},25045:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(40330),o=r(20102),s=r(91460),i=r(70586),a=r(95330),c=r(94362),l=r(17202);const u={statsWorker:()=>Promise.all([r.e(1400),r.e(3636),r.e(5406),r.e(6841)]).then(r.bind(r,36841)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8227)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(4547),r.e(1400),r.e(3636),r.e(1534),r.e(5257),r.e(8642),r.e(5886),r.e(5406),r.e(7054),r.e(7793)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(8936)]).then(r.bind(r,18936)),ElevationSamplerWorker:()=>Promise.all([r.e(4547),r.e(1400),r.e(3636),r.e(5257),r.e(6481),r.e(6459),r.e(7996)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(4547),r.e(1400),r.e(3636),r.e(1534),r.e(5257),r.e(8642),r.e(5886),r.e(5406),r.e(7054),r.e(9662),r.e(6353)]).then(r.bind(r,98363)),GeoJSONSourceWorker:()=>Promise.all([r.e(4547),r.e(1400),r.e(3636),r.e(1534),r.e(5257),r.e(8642),r.e(5886),r.e(5406),r.e(7054),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(4547),r.e(1400),r.e(3636),r.e(1534),r.e(5257),r.e(8642),r.e(5886),r.e(5406),r.e(7054),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(1400),r.e(3636),r.e(5886),r.e(1916)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(4547),r.e(1400),r.e(3636),r.e(1534),r.e(5257),r.e(8642),r.e(5886),r.e(5406),r.e(7054),r.e(9662),r.e(4325),r.e(1684)]).then(r.bind(r,70299)),PointCloudWorker:()=>Promise.all([r.e(4547),r.e(1400),r.e(3636),r.e(5257),r.e(6347)]).then(r.bind(r,16583)),RasterWorker:()=>Promise.all([r.e(4547),r.e(1400),r.e(3636),r.e(5257),r.e(176),r.e(2398),r.e(7282)]).then(r.bind(r,61576)),SceneLayerWorker:()=>r.e(1412).then(r.bind(r,31412)),WFSSourceWorker:()=>Promise.all([r.e(4547),r.e(1400),r.e(3636),r.e(1534),r.e(5257),r.e(8642),r.e(5886),r.e(5406),r.e(7054),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(4325),r.e(1785),r.e(6810),r.e(3388)]).then(r.bind(r,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new y(t.port1,{channel:t,client:r});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),y.clients.set(n,r),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r&&r.signal,s=r&&r.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,c.jt)();return new Promise(((r,o)=>{const c=(0,a.$F)(n,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:d,jobId:i}),o((0,a.zE)()))})),l={resolve:r,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,s)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:c.Cs.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,n,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:r,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(r,{controller:s,promise:l}),l.then((e=>{i.has(r)&&(i.delete(r),this._post({type:p,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:p,jobId:r,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:r},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e).type===c.Cs.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:r,error:n,data:s}=e,i=this._outJobs;if(!i.has(r))return;const a=i.get(r);i.delete(r),null==(t=a.abortHandle)||t.remove(),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(s)}_post(e,t,r){return(0,c.oi)(this._port,e,t,r)}}y.kernelInfo={revision:l.$,version:n.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,r)=>{"use strict";r.d(t,{Cs:()=>n,jt:()=>a,oi:()=>l,QM:()=>u,AB:()=>c});var n,o,s=r(80442);(o=n||(n={}))[o.HANDSHAKE=0]="HANDSHAKE",o[o.OPEN=1]="OPEN",o[o.OPENED=2]="OPENED",o[o.RESPONSE=3]="RESPONSE",o[o.INVOKE=4]="INVOKE",o[o.ABORT=5]="ABORT",o[o.CLOSE=6]="CLOSE",o[o.OPEN_PORT=7]="OPEN_PORT",o[o.ON=8]="ON";let i=0;function a(){return i++}function c(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function l(e,t,r,o){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(s=f(o),t.data=r):(s=f(r.transferList),t.data=r.result),s?e.postMessage(t,s):e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function f(e){if(!e||!e.length)return null;if((0,s.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>l,id:()=>a,qh:()=>c,i8:()=>s,Nv:()=>i});var n=r(80442),o=r(17452);const s="4.23",i={async request(e,t){var n;const{default:s}=await r.e(3172).then(r.bind(r,3172)),i=e.options,a=i.responseType;i.signal=null==t?void 0:t.signal,i.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,o.oh)(e.url))&&n.after?a:"array-buffer";const c=await s(e.url,i),l={data:c.data,ssl:c.ssl};switch(c.requestOptions.responseType){case"native-request-init":return delete l.data.signal,l;case"blob":l.data=await l.data.arrayBuffer();break;case"json":l.data=(new TextEncoder).encode(JSON.stringify(l.data)).buffer;break;case"text":l.data=(new TextEncoder).encode(l.data).buffer}return{result:l,transferList:[l.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},17202:(e,t,r)=>{"use strict";r.d(t,{r:()=>n,$:()=>o});const n="20220218",o="a10b1cf5684c4eeb2ca5966dc36afe29e5ef275e"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{24:"7bb22d8c2d9d9f5b9d9a",176:"2d8d6da1334a2feae67a",214:"53a150a1eec3894e2a9e",223:"e21b211913aefde47e30",247:"a0450fbf01de854f5c97",280:"73a3ad2146bfea9f5dce",565:"0018053ac16a09feba70",576:"812a5abfadd747a09b6f",609:"10882674530642b1db4f",635:"e8e775758b79c5a084c8",639:"db2604563294bf49bbf9",678:"ea313474f460ce31b6d5",712:"6760b7c349132096f366",819:"6280c69d87b2a3a18780",999:"7345f9d2771c14ea4dff",1188:"24cc61fc8dae457c3614",1197:"b345675f78892f338ba1",1400:"de337486515d9aff478b",1412:"8d95f3a3f776fef3f9cb",1421:"7fa2d758a24bbaaab0bf",1433:"1def8845714ea745fd24",1534:"6ef8de3aa9a8d9c22161",1684:"57f1b37e4e144e9fd4b3",1773:"2c8fe9bc988c3c5760a5",1785:"d88cb7568e2f8ac9905b",1916:"fc06a5aa050f79ef161c",2133:"3403cb53e4e60923c5fc",2134:"070a78b488f92d022495",2279:"cab3f15de3686ca966ec",2304:"ea6c78dbb4fb2ea5b6e9",2397:"3d70f945621de60c7b14",2398:"aa04b90b82bf70caaae4",2399:"467b5faa1c90d9821609",2515:"2e2760fbac0337bc943c",3003:"a5ce912b87da65696d51",3027:"0c711b129d501b1d4439",3127:"45155ec947e3f4511c08",3172:"10322d990cda5aedf2f0",3230:"29eb733e18be5a778f4a",3388:"3daf2f1b2a86d5ae95e5",3529:"3bafa7350b4687734cf6",3636:"61c6744caf9edc1cc557",3668:"676f74f23ac0d8140a0f",3852:"62c683f44c297d239ab8",4166:"8cfefa829131ec234de3",4325:"c7da2f1bdda4de915210",4358:"f977977564b2b75332a9",4369:"2758b8c1fc9a29b71470",4475:"ff0f2a49b3097ea8301d",4499:"7b0b75878370b3475fe5",4547:"7fa85947737b146c5d93",4579:"398278759795cf37af69",4695:"778d55486ce1e96338d4",4720:"559971cb2ade480f4225",4870:"172e15dffd0b1529a778",4889:"28a5878cbe5880476855",4959:"ae7dbdab79bca1e11741",5163:"007e8722cd3eaea84c2b",5235:"0d83044cfcbf12012a6f",5257:"49d645e0bce92c156a4b",5307:"68cb36384aed52e0787c",5313:"d0335289a813b2b6bb0d",5318:"fb877fdb273fef4a9a7b",5329:"0a4401a148c3cb73d6ff",5358:"0b41a3c0bb6733947682",5406:"9f23d24728b62276058e",5410:"de5354cb4312a9b5fec6",5517:"f39e86235b388f6087a8",5808:"9b0c4ffb26f940f8bba9",5823:"974c018b702bf9ba0704",5837:"42c67e6579b54844ec06",5853:"341dfd1b8201725518b9",5886:"2dd00e2bc45445cac33c",6088:"c087477e016da3827f3e",6233:"a66fd506069e3c776e1b",6237:"c544df83e86a9d36b68c",6347:"cc2bbd979dde20369b47",6353:"c52feec2175d8378ec90",6459:"7dcf52d3db3903c8eb9f",6481:"e84b935c285888a892c1",6550:"4247dd534a49a99c3571",6619:"f2d51fad37db10b6daee",6690:"3a6cf2829029228453f7",6710:"d11d1d294ccc4ccdf60f",6748:"a5f3347ba335047e5a00",6774:"4a830f056c4d0ed93928",6785:"5352913ae836cec65d4b",6810:"411db587521e12c593be",6841:"b426f7b4c3dc60a366f6",6903:"d7906840214e4e1c4cdf",6968:"85b1f36790df95b17659",7039:"526aa21dc2acb40cb94b",7054:"5ff108bedfa1e2912fac",7055:"07425eb196ebfebabe37",7277:"c23d965a55215168a1a2",7282:"35057d52c84628b1015f",7284:"b64a6af33832808efac7",7319:"3ec34895ef3e20bba6a8",7572:"f4135e69a09e4420c0d9",7604:"1c79b520e1fccd674836",7682:"ab4a23b63360c4640f60",7793:"bfe8ca8b69975bfb2167",7845:"5b696059d1c392353fc1",7873:"93eb468381bfcf0e47d7",7913:"70b0b6d9559960307059",7996:"a6a2131bb9e10463c6fb",8014:"bb1f97fca138bb73743f",8062:"0795ea9cfa2aff09657f",8121:"9944a1f0685d0fced655",8163:"f501ec937b83fce286bd",8227:"1f394b20410fddb30a96",8234:"dd4224d8dfb82a2be28d",8297:"c9c961c08ba94ccec441",8326:"628d7ca82a854bab90ef",8422:"fe689f992aaab5866292",8625:"e4019b63a1fe74e2c842",8642:"331a946a596a03bcdeed",8734:"6abacc1d13d64a411424",8739:"8fcf758eede658cfd7fd",8758:"6d7fa026f58fd0c68a39",8828:"46f7977827d5ae5d2f72",8833:"98feb4eaef6cac0fc936",8927:"425f05eb0740262f032c",8936:"fffea9587ec14c6d34e8",9032:"226caaffc400905b6949",9070:"1d4bc5b86d436fd09603",9127:"5cd20be7d545e84937a2",9151:"9bcec5ff5afc2bcd753a",9153:"9c6be39f1f21ab8b1c2d",9169:"f7ae0344257e6e08469b",9254:"9767f045b2ea26e9a8d2",9291:"214910032945dd2d86b0",9296:"78ccff2011adbd73f10b",9490:"57c67e260267a1dbc5e3",9662:"a1d93664c65060aeac6e",9754:"513590405cdecec5a6bb",9884:"356db8b8297282c77291",9932:"05bbf485c5443e6c9513",9941:"365176c3b81e191ede66",9989:"269569a4dddc1c79e31a"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={134:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)r.o(s,a)&&(r.m[a]=s[a]);for(i&&i(r);o.length;)e[o.pop()]=1;n(t)}})(),r(88277);var n=r(25045);RemoteClient=n})();
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5163,4475],{38171:(e,t,r)=>{r.d(t,{Z:()=>f});var i=r(43697),o=r(66577),a=r(51773),n=r(78223),s=r(2368),l=r(96674),u=r(70586),p=r(99001),c=r(5600),y=(r(67676),r(80442),r(75215),r(52011)),d=r(33955);function m(e){if(!(0,u.pC)(e))return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let h=class extends((0,s.J)(l.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,p.D)(),configurable:!0})}normalizeCtorArgs(e,t,r,i){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:r,popupTemplate:i}}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&(0,u.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&this.attributes[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:m(this.aggregateGeometries),geometry:(0,u.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,u.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){(0,u.pC)(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,r,i){if(!this.layer||!("graphicChanged"in this.layer))return;const o={graphic:this,property:e,oldValue:t,newValue:r};"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}};(0,i._)([(0,c.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,d.im)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],h.prototype,"aggregateGeometries",null),(0,i._)([(0,c.Cb)({value:null})],h.prototype,"attributes",null),(0,i._)([(0,c.Cb)({value:null,types:o.qM,json:{read:d.im}})],h.prototype,"geometry",null),(0,i._)([(0,c.Cb)({type:Boolean})],h.prototype,"isAggregate",void 0),(0,i._)([(0,c.Cb)({clonable:"reference"})],h.prototype,"layer",void 0),(0,i._)([(0,c.Cb)({type:a.Z})],h.prototype,"popupTemplate",void 0),(0,i._)([(0,c.Cb)({clonable:"reference"})],h.prototype,"sourceLayer",void 0),(0,i._)([(0,c.Cb)({value:null,types:n.LB})],h.prototype,"symbol",null),(0,i._)([(0,c.Cb)({type:Boolean,value:!0})],h.prototype,"visible",null),h=(0,i._)([(0,y.j)("esri.Graphic")],h),(h||(h={})).generateUID=p.D;const f=h},74085:(e,t,r)=>{function i(e){}r.d(t,{Bg:()=>i}),r(80442)},62128:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Y});var i=r(43697),o=(r(66577),r(38171)),a=(r(78223),r(80539)),n=r(20102),s=r(22974),l=r(70586),u=r(16453),p=r(78286),c=r(20941),y=r(5600),d=r(75215),m=r(71715),h=r(52011),f=r(30556),b=r(44547),g=r(70132),v=r(8744),w=r(67284),_=(r(67676),r(80442),r(70921)),C=r(3920);r(92604).Z.getLogger("esri.core.support.OwningCollection");let S=class extends((0,C.p)(a.Z)){constructor(e){super(e),this.handles.add([this.on("before-add",(e=>{(0,l.Wi)(e.item)&&e.preventDefault()})),this.on("after-add",(e=>this._own(e.item))),this.on("after-remove",(e=>this._release(e.item)))])}get owner(){return this._get("owner")}set owner(e){e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(a.Z.ofType(this.itemType.Type))(e):new a.Z(e)}};(0,i._)([(0,y.Cb)()],S.prototype,"owner",null),S=(0,i._)([(0,h.j)("esri.core.support.OwningCollection")],S);var x=r(29600),T=r(71612),O=r(72965),L=(r(37697),r(52421));let I=class extends S{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,i._)([(0,L.c)({Type:o.Z,ensureType:(0,d.se)(o.Z)})],I.prototype,"itemType",void 0),I=(0,i._)([(0,h.j)("esri.support.GraphicsCollection")],I);var N=r(20682);let F=class extends((0,T.h)((0,O.M)(x.Z))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new I,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}on(e,t){return super.on(e,t)}graphicChanged(e){this.emit("graphic-update",e)}};var E,V;(0,i._)([(0,y.Cb)({type:N.Z})],F.prototype,"elevationInfo",void 0),(0,i._)([(0,y.Cb)((E=I,V="graphics",{type:E,cast:_.R,set(e){const t=(0,_.Z)(e,this._get(V),E);t.owner=this,this._set(V,t)}}))],F.prototype,"graphics",void 0),(0,i._)([(0,y.Cb)({type:["show","hide"]})],F.prototype,"listMode",void 0),(0,i._)([(0,y.Cb)()],F.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,y.Cb)({readOnly:!0})],F.prototype,"type",void 0),(0,i._)([(0,y.Cb)({constructOnly:!0})],F.prototype,"internal",void 0),F=(0,i._)([(0,h.j)("esri.layers.GraphicsLayer")],F);const M=F;var Z=r(92908),j=r(38009),D=r(16859),J=r(1231),R=r(20256),P=r(4095),z=r(77987),A=r(78724),k=r(82971),U=r(6570);function q(e){return e.layers.some((e=>null!=e.layerDefinition.visibilityField))}const G=new J.Z({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),W=new J.Z({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0});let $=class extends M{constructor(){super(...arguments),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer;this.graphics.on("after-add",(e=>{e.item.sourceLayer=this.layer})),this.graphics.on("after-remove",(e=>{e.item.sourceLayer=null}))}get sublayers(){return this.graphics}};(0,i._)([(0,y.Cb)({readOnly:!0})],$.prototype,"sublayers",null),(0,i._)([(0,y.Cb)()],$.prototype,"layer",void 0),(0,i._)([(0,y.Cb)({readOnly:!0})],$.prototype,"visibilityMode",void 0),$=(0,i._)([(0,h.j)("esri.layers.MapNotesLayer.MapNotesSublayer")],$);const B=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",layerId:"polygonLayer",title:"Polygons",identifyingSymbol:(new R.Z).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",layerId:"polylineLayer",title:"Polylines",identifyingSymbol:(new P.Z).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",layerId:"multipointLayer",title:"Multipoints",identifyingSymbol:(new z.Z).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",layerId:"pointLayer",title:"Points",identifyingSymbol:(new z.Z).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",layerId:"textLayer",title:"Text",identifyingSymbol:(new A.Z).toJSON()}];let K=class extends((0,T.h)((0,O.M)((0,j.q)((0,D.I)((0,u.R)(x.Z)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.minScale=0,this.maxScale=0,this.spatialReference=k.Z.WGS84,this.sublayers=new a.Z(B.map((e=>new $({id:e.layerId,title:e.title,layer:this})))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,r){return{operations:{supportsMapNotesEditing:!q(t)&&"portal-item"!==(null==r?void 0:r.origin)}}}readFeatureCollections(e,t,r){if(!q(t))return null;const i=t.layers.map((e=>{const t=new w.default;return t.read(e,r),t}));return new a.Z({items:i})}readLegacyfeatureCollectionJSON(e,t){return q(t)?(0,s.d9)(t.featureCollection):null}readFullExtent(e,t){if(!t.layers.length||t.layers.every((e=>!e.layerDefinition.extent)))return new U.Z({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:k.Z.WGS84});const r=k.Z.fromJSON(t.layers[0].layerDefinition.spatialReference);return t.layers.reduce(((e,t)=>{const r=t.layerDefinition.extent;return r?U.Z.fromJSON(r).union(e):e}),new U.Z({spatialReference:r}))}readMinScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?k.Z.fromJSON(t.layers[0].layerDefinition.spatialReference):k.Z.WGS84}readSublayers(e,t,r){if(q(t))return null;const i=[];for(let e=0;e<t.layers.length;e++){var n;const{layerDefinition:r,featureSet:a}=t.layers[e],s=null!=(n=r.geometryType)?n:a.geometryType,l=B.find((e=>{var t,i,o;return s===e.geometryTypeJSON&&(null==(t=r.drawingInfo)||null==(i=t.renderer)||null==(o=i.symbol)?void 0:o.type)===e.identifyingSymbol.type}));if(l){const e=new $({id:l.layerId,title:r.name,layer:this,graphics:a.features.map((({geometry:e,symbol:t,attributes:r,popupInfo:i})=>o.Z.fromJSON({attributes:r,geometry:e,symbol:t,popupTemplate:i})))});i.push(e)}}return new a.Z(i)}writeSublayers(e,t,r,i){const{minScale:o,maxScale:a}=this;if((0,l.Wi)(e))return;const s=e.some((e=>e.graphics.length>0));var u;if(!this.capabilities.operations.supportsMapNotesEditing)return void(s&&(null==i||null==(u=i.messages)||u.push(new n.Z("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer"))));const c=[];let y=this.spatialReference.toJSON();e:for(const t of e)for(const e of t.graphics)if((0,l.pC)(e.geometry)){y=e.geometry.spatialReference.toJSON();break e}for(const t of B){const r=e.find((e=>t.layerId===e.id));this._writeMapNoteSublayer(c,r,t,o,a,y,i)}(0,p.RB)("featureCollection.layers",c,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,s.d9)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async beforeSave(){if((0,l.Wi)(this.sublayers))return;let e=null;const t=[];for(const r of this.sublayers)for(const i of r.graphics)if((0,l.pC)(i.geometry)){const r=i.geometry;e?(0,v.fS)(r.spatialReference,e)||((0,b.Up)(r.spatialReference,e)||(0,b.kR)()||await(0,b.zD)(),i.geometry=(0,b.iV)(r,e)):e=r.spatialReference,t.push(i)}const r=await(0,g.aX)(t.map((e=>e.geometry)));t.forEach(((e,t)=>e.geometry=r[t]))}_findSublayer(e){var t,r;return(0,l.Wi)(this.sublayers)?null:null!=(t=null==(r=this.sublayers)?void 0:r.find((t=>t.id===e)))?t:null}_writeMapNoteSublayer(e,t,r,i,o,a,n){const u=[];if(!(0,l.Wi)(t)){for(const e of t.graphics)this._writeMapNote(u,e,r.geometryType,n);this._normalizeObjectIds(u,G),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,s.d9)(r.identifyingSymbol)}},geometryType:r.geometryTypeJSON,minScale:i,maxScale:o,objectIdField:"OBJECTID",fields:[G.toJSON(),W.toJSON()],spatialReference:a},featureSet:{features:u,geometryType:r.geometryTypeJSON}})}}_writeMapNote(e,t,r,i){if((0,l.Wi)(t))return;const{geometry:o,symbol:a,popupTemplate:n}=t;if((0,l.Wi)(o))return;var s,u;if(o.type!==r)return void(null==i||null==(s=i.messages)||s.push(new c.Z("map-notes-layer:invalid-geometry-type",`Geometry "${o.type}" cannot be saved in "${r}" layer`,{graphic:t})));if((0,l.Wi)(a))return void(null==i||null==(u=i.messages)||u.push(new c.Z("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t})));const p={attributes:{...t.attributes},geometry:o.toJSON(),symbol:a.toJSON()};(0,l.pC)(n)&&(p.popupInfo=n.toJSON()),e.push(p)}_normalizeObjectIds(e,t){const r=t.name;let i=(0,Z.S)(r,e)+1;const o=new Set;for(const t of e){t.attributes||(t.attributes={});const{attributes:e}=t;(null==e[r]||o.has(e[r]))&&(e[r]=i++),o.add(e[r])}}};(0,i._)([(0,y.Cb)({readOnly:!0})],K.prototype,"capabilities",void 0),(0,i._)([(0,m.r)(["portal-item","web-map"],"capabilities",["layers"])],K.prototype,"readCapabilities",null),(0,i._)([(0,y.Cb)({readOnly:!0})],K.prototype,"featureCollections",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"featureCollections",["layers"])],K.prototype,"readFeatureCollections",null),(0,i._)([(0,y.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],K.prototype,"featureCollectionJSON",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],K.prototype,"readLegacyfeatureCollectionJSON",null),(0,i._)([(0,y.Cb)({readOnly:!0,json:{read:!1,write:{enabled:!0,ignoreOrigin:!0}}})],K.prototype,"featureCollectionType",void 0),(0,i._)([(0,y.Cb)({json:{write:!1}})],K.prototype,"fullExtent",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"fullExtent",["layers"])],K.prototype,"readFullExtent",null),(0,i._)([(0,y.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],K.prototype,"legendEnabled",void 0),(0,i._)([(0,y.Cb)({type:["show","hide"]})],K.prototype,"listMode",void 0),(0,i._)([(0,y.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],K.prototype,"minScale",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"minScale",["layers"])],K.prototype,"readMinScale",null),(0,i._)([(0,y.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],K.prototype,"maxScale",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"maxScale",["layers"])],K.prototype,"readMaxScale",null),(0,i._)([(0,y.Cb)({readOnly:!0})],K.prototype,"multipointLayer",null),(0,i._)([(0,y.Cb)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],K.prototype,"operationalLayerType",void 0),(0,i._)([(0,y.Cb)({readOnly:!0})],K.prototype,"pointLayer",null),(0,i._)([(0,y.Cb)({readOnly:!0})],K.prototype,"polygonLayer",null),(0,i._)([(0,y.Cb)({readOnly:!0})],K.prototype,"polylineLayer",null),(0,i._)([(0,y.Cb)({type:k.Z})],K.prototype,"spatialReference",void 0),(0,i._)([(0,m.r)(["web-map","portal-item"],"spatialReference",["layers"])],K.prototype,"readSpatialReference",null),(0,i._)([(0,y.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],K.prototype,"sublayers",void 0),(0,i._)([(0,m.r)("web-map","sublayers",["layers"])],K.prototype,"readSublayers",null),(0,i._)([(0,f.c)("web-map","sublayers")],K.prototype,"writeSublayers",null),(0,i._)([(0,y.Cb)({readOnly:!0})],K.prototype,"textLayer",null),(0,i._)([(0,y.Cb)()],K.prototype,"title",void 0),(0,i._)([(0,y.Cb)({readOnly:!0,json:{read:!1}})],K.prototype,"type",void 0),K=(0,i._)([(0,h.j)("esri.layers.MapNotesLayer")],K);const Y=K},92908:(e,t,r)=>{r.d(t,{S:()=>o,X:()=>i});const i=1;function o(e,t){let r=0;for(const o of t){var i;const t=null==(i=o.attributes)?void 0:i[e];"number"==typeof t&&isFinite(t)&&(r=Math.max(r,t))}return r}},54295:(e,t,r)=>{r.d(t,{V:()=>n});var i=r(43697),o=r(5600),a=(r(67676),r(80442),r(75215),r(52011));const n=e=>{let t=class extends e{get apiKey(){var e;return this._isOverridden("apiKey")?this._get("apiKey"):function(e){return"portalItem"in e}(this)?null==(e=this.portalItem)?void 0:e.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i._)([(0,o.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,i._)([(0,a.j)("esri.layers.mixins.APIKeyMixin")],t),t}},17287:(e,t,r)=>{r.d(t,{Y:()=>u});var i=r(43697),o=r(92604),a=r(70586),n=r(5600),s=(r(67676),r(80442),r(75215),r(52011)),l=r(66677);const u=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.Qc)(this.url);if((0,a.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Nm)(e,o.Z.getLogger(this.declaredClass)))}};return(0,i._)([(0,n.Cb)()],t.prototype,"title",null),(0,i._)([(0,n.Cb)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,s.j)("esri.layers.mixins.ArcGISService")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>w});var i=r(43697),o=r(40330),a=r(3172),n=r(66643),s=r(20102),l=r(92604),u=r(70586),p=r(95330),c=r(17452),y=r(5600),d=(r(67676),r(80442),r(75215),r(71715)),m=r(52011),h=r(30556),f=r(65587),b=r(15235),g=r(86082);const v=l.Z.getLogger("esri.layers.mixins.PortalLayer"),w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const i=await r.e(8062).then(r.bind(r,18062));return(0,p.k_)(t),await i.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,p.D_)(e)||v.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.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==o.id?void 0:o.id.findCredential(this.url):null;if(!t)return!0;const r=_.credential===t?_.user:await this._fetchEditingUser(e);return _.credential=t,_.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const i=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(i)return i;const s=o.id.findServerInfo(this.url);if(null==s||!s.owningSystemUrl)return null;const l=`${s.owningSystemUrl}/sharing/rest`,p=f.Z.getDefault();if(p&&p.loaded&&(0,c.Fv)(p.restUrl)===(0,c.Fv)(l))return p.user;const y=`${l}/community/self`,d=(0,u.pC)(e)?e.signal:null,m=await(0,n.q6)((0,a.default)(y,{authMode:"no-prompt",query:{f:"json"},signal:d}));return m.ok?g.default.fromJSON(m.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||f.Z.getDefault());return r&&i&&!(0,c.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new s.Z("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 the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,y.Cb)({type:b.default})],t.prototype,"portalItem",null),(0,i._)([(0,d.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,h.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,y.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,y.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,i._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},_={credential:null,user:null}},70082:(e,t,r)=>{r.d(t,{Z:()=>c});var i=r(43697),o=r(2368),a=r(35454),n=r(96674),s=r(5600),l=(r(67676),r(80442),r(75215),r(52011));const u=new a.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.J)(n.wq)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i._)([(0,s.Cb)({json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,s.Cb)({json:{write:!0}})],p.prototype,"description",void 0),(0,i._)([(0,s.Cb)({json:{read:u.read,write:u.write}})],p.prototype,"drawingTool",void 0),(0,i._)([(0,s.Cb)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i._)([(0,s.Cb)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i._)([(0,l.j)("esri.layers.support.FeatureTemplate")],p);const c=p},16451:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),o=r(2368),a=r(96674),n=r(5600),s=(r(67676),r(80442),r(75215),r(71715)),l=r(52011),u=r(30556),p=r(72729),c=r(70082);let y=class extends((0,o.J)(a.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,p.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e)){var i;e[t]&&(r[t]=null==(i=e[t])?void 0:i.toJSON())}t.domains=r}};(0,i._)([(0,n.Cb)({json:{write:!0}})],y.prototype,"id",void 0),(0,i._)([(0,n.Cb)({json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,n.Cb)({json:{write:!0}})],y.prototype,"domains",void 0),(0,i._)([(0,s.r)("domains")],y.prototype,"readDomains",null),(0,i._)([(0,u.c)("domains")],y.prototype,"writeDomains",null),(0,i._)([(0,n.Cb)({type:[c.Z],json:{write:!0}})],y.prototype,"templates",void 0),y=(0,i._)([(0,l.j)("esri.layers.support.FeatureType")],y);const d=y},56765:(e,t,r)=>{r.d(t,{Z:()=>p});var i,o=r(43697),a=r(80539),n=r(96674),s=r(5600),l=(r(67676),r(80442),r(75215),r(52011));let u=i=class extends n.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new a.Z}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],u.prototype,"floorField",void 0),(0,o._)([(0,s.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,o._)([(0,s.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=i=(0,o._)([(0,l.j)("esri.layers.support.LayerFloorInfo")],u);const p=u},99282:(e,t,r)=>{r.d(t,{a:()=>a});var i=r(67900),o=r(68441);const a={inches:(0,i.En)(1,"meters","inches"),feet:(0,i.En)(1,"meters","feet"),"us-feet":(0,i.En)(1,"meters","us-feet"),yards:(0,i.En)(1,"meters","yards"),miles:(0,i.En)(1,"meters","miles"),"nautical-miles":(0,i.En)(1,"meters","nautical-miles"),millimeters:(0,i.En)(1,"meters","millimeters"),centimeters:(0,i.En)(1,"meters","centimeters"),decimeters:(0,i.En)(1,"meters","decimeters"),meters:(0,i.En)(1,"meters","meters"),kilometers:(0,i.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.ty)(1,"meters",o.sv.radius)}},51706:(e,t,r)=>{var i,o;function a(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?i.Expression:e.field&&"string"==typeof e.field?i.Field:i.Unknown}function l(e,t){const r=t||s(e),a=e.valueUnit||"unknown";return r===i.Unknown?o.Constant:e.stops?o.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?o.ClampedLinear:"unknown"===a?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?o.Proportional:o.Additive:o.Identity:o.RealWorldSize}r.d(t,{RY:()=>i,hL:()=>o,PS:()=>s,QW:()=>l,iY:()=>a,qh:()=>n}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(i||(i={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(o||(o={}))},28101:(e,t,r)=>{r.d(t,{PR:()=>C,Lq:()=>m,Km:()=>h,cM:()=>f,ap:()=>b,V3:()=>w,B3:()=>d});var i=r(22303),o=r(38171),a=r(74085),n=r(92604),s=r(70586),l=r(99282),u=r(51706);const p=n.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),c=new o.Z,y=Math.PI,d=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function m(e,t,r){const o="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"color"===e.type))[0]:e;if(!o)return;if("esri.renderers.visualVariables.ColorVariable"!==o.declaredClass)return void p.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const a="number"==typeof t,n=a?null:t,l=n&&n.attributes;let u=a?t:null;const c=o.field,{ipData:y,hasExpression:d}=o.cache;let m=o.cache.compiledFunc;if(!c&&!d){const e=o.stops;return e&&e[0]&&e[0].color}if("number"!=typeof u)if(d){if(!(0,s.pC)(r)||!(0,s.pC)(r.arcade))return void p.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,i=t.getViewInfo(e),a=t.createExecContext(n,i);if(!m){const e=t.createSyntaxTree(o.valueExpression);m=t.createFunction(e),o.cache.compiledFunc=m}u=t.executeFunction(m,a)}else l&&(u=l[c]);const h=o.normalizationField,f=l?parseFloat(l[h]):void 0;if(null!=u&&(!h||a||!isNaN(f)&&0!==f)){isNaN(f)||a||(u/=f);const e=_(u,y);if(e){const t=e[0],a=e[1],n=t===a?o.stops[t].color:i.Z.blendColors(o.stops[t].color,o.stops[a].color,e[2],(0,s.pC)(r)?r.color:void 0);return new i.Z(n)}}}function h(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!i)return;if("esri.renderers.visualVariables.OpacityVariable"!==i.declaredClass)return void p.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const o="number"==typeof t,a=o?null:t,n=a&&a.attributes;let l=o?t:null;const u=i.field,{ipData:c,hasExpression:y}=i.cache;let d=i.cache.compiledFunc;if(!u&&!y){const e=i.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof l)if(y){if((0,s.Wi)(r)||(0,s.Wi)(r.arcade))return void p.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,o=t.getViewInfo(e),n=t.createExecContext(a,o);if(!d){const e=t.createSyntaxTree(i.valueExpression);d=t.createFunction(e),i.cache.compiledFunc=d}l=t.executeFunction(d,n)}else n&&(l=n[u]);const m=i.normalizationField,h=n?parseFloat(n[m]):void 0;if(null!=l&&(!m||o||!isNaN(h)&&0!==h)){isNaN(h)||o||(l/=h);const e=_(l,c);if(e){const t=e[0],r=e[1];if(t===r)return i.stops[t].opacity;{const o=i.stops[t].opacity;return o+(i.stops[r].opacity-o)*e[2]}}}}function f(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!i)return;if("esri.renderers.visualVariables.RotationVariable"!==i.declaredClass)return void p.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const o=i.axis||"heading",a="heading"===o&&"arithmetic"===i.rotationType?90:0,n="heading"===o&&"arithmetic"===i.rotationType?-1:1,l="number"==typeof t?null:t,u=l&&l.attributes,c=i.field,{hasExpression:y}=i.cache;let d=i.cache.compiledFunc,m=0;if(!c&&!y)return m;if(y){if((0,s.Wi)(r)||(0,s.Wi)(r.arcade))return void p.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,o=t.getViewInfo(e),a=t.createExecContext(l,o);if(!d){const e=t.createSyntaxTree(i.valueExpression);d=t.createFunction(e),i.cache.compiledFunc=d}m=t.executeFunction(d,a)}else u&&(m=u[c]||0);return m="number"!=typeof m||isNaN(m)?null:a+n*m,m}function b(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!i)return;if("esri.renderers.visualVariables.SizeVariable"!==i.declaredClass)return void p.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const o=function(e,t,r,i,o){switch(t.transformationType){case u.hL.Additive:return function(e,t,r,i){return e+(g(t.minSize,r,i)||t.minDataValue)}(e,t,r,i);case u.hL.Constant:return function(e,t,r){const i=e.stops;let o=i&&i.length&&i[0].size;return null==o&&(o=e.minSize),g(o,t,r)}(t,r,i);case u.hL.ClampedLinear:return function(e,t,r,i){const o=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),a=g(t.minSize,r,i),n=g(t.maxSize,r,i),l=(0,s.pC)(i)?i.shape:void 0;if(e<=t.minDataValue)return a;if(e>=t.maxDataValue)return n;if("area"===t.scaleBy&&l){const e="circle"===l,t=e?y*(a/2)**2:a*a,r=t+o*((e?y*(n/2)**2:n*n)-t);return e?2*Math.sqrt(r/y):Math.sqrt(r)}return a+o*(n-a)}(e,t,r,i);case u.hL.Proportional:return function(e,t,r,i){const o=(0,s.pC)(i)?i.shape:void 0,a=e/t.minDataValue,n=g(t.minSize,r,i),l=g(t.maxSize,r,i);let u=null;return u="circle"===o?2*Math.sqrt(a*(n/2)**2):"square"===o||"diamond"===o||"image"===o?Math.sqrt(a*n**2):a*n,v(u,n,l)}(e,t,r,i);case u.hL.Stops:return function(e,t,r,i,o){const[a,n,s]=_(e,o);if(a===n)return g(t.stops[a].size,r,i);{const e=g(t.stops[a].size,r,i);return e+(g(t.stops[n].size,r,i)-e)*s}}(e,t,r,i,o);case u.hL.RealWorldSize:return function(e,t,r,i){const o=((0,s.pC)(i)&&i.resolution?i.resolution:1)*l.a[t.valueUnit],a=g(t.minSize,r,i),n=g(t.maxSize,r,i),{valueRepresentation:u}=t;let p=null;return p="area"===u?2*Math.sqrt(e/y)/o:"radius"===u||"distance"===u?2*e/o:e/o,v(p,a,n)}(e,t,r,i);case u.hL.Identity:return e;case u.hL.Unknown:return null}}(function(e,t,r){const i="number"==typeof t,o=i?null:t,a=o&&o.attributes;let n=i?t:null;const{isScaleDriven:l}=e.cache;let c=e.cache.compiledFunc;if(l){const t=(0,s.pC)(r)?r.scale:void 0,i=(0,s.pC)(r)?r.view:void 0;n=null==t||"3d"===i?function(e){let t=null,r=null;const i=e.stops;return i?(t=i[0].value,r=i[i.length-1].value):(t=e.minDataValue||0,r=e.maxDataValue||0),(t+r)/2}(e):t}else if(!i)switch(e.inputValueType){case u.RY.Expression:{if((0,s.Wi)(r)||(0,s.Wi)(r.arcade))return void p.error("Use of arcade expressions requires an arcade context");const t={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},i=r.arcade.arcadeUtils,a=i.getViewInfo(t),l=i.createExecContext(o,a);if(!c){const t=i.createSyntaxTree(e.valueExpression);c=i.createFunction(t),e.cache.compiledFunc=c}n=i.executeFunction(c,l);break}case u.RY.Field:a&&(n=a[e.field]);break;case u.RY.Unknown:n=null}if(!(0,u.qh)(n))return null;if(i||!e.normalizationField)return n;const y=a?parseFloat(a[e.normalizationField]):null;return(0,u.qh)(y)&&0!==y?n/y:null}(i,t,r),i,t,r,i.cache.ipData);return null==o||isNaN(o)?0:o}function g(e,t,r){return null==e?null:(0,u.iY)(e)?b(e,t,r):(0,u.qh)(e)?e:null}function v(e,t,r){return(0,u.qh)(r)&&e>r?r:(0,u.qh)(t)&&e<t?t:e}function w(e,t,r){const{isScaleDriven:i}=e.cache;if(!(i&&"3d"===r||t))return null;const o={scale:t,view:r};let a=g(e.minSize,c,o),n=g(e.maxSize,c,o);if(null!=a||null!=n){if(a>n){const e=n;n=a,a=e}return{minSize:a,maxSize:n}}}function _(e,t){if(!t)return;let r=0,i=t.length-1;return t.some(((t,o)=>e<t?(i=o,!0):(r=o,!1))),[r,i,(e-t[r])/(t[i]-t[r])]}function C(e,t,r){const i=["proportional","proportional","proportional"];for(const o of e){const e=o.useSymbolValue?"symbol-value":b(o,t,r);switch(o.axis){case"width":i[0]=e;break;case"depth":i[1]=e;break;case"height":i[2]=e;break;case"width-and-depth":i[0]=e,i[1]=e;break;case"all":case void 0:case null:i[0]=e,i[1]=e,i[2]=e;break;default:(0,a.Bg)(o.axis)}}return i}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9932],{10699:(e,t,r)=>{r.d(t,{I:()=>s});var o=r(43697),i=r(52011);let n=0;const s=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,o._)([(0,i.j)("esri.core.Identifiable")],t),t};let a=class extends(s(class{})){};a=(0,o._)([(0,i.j)("esri.core.Identifiable")],a)},16453:(e,t,r)=>{r.d(t,{R:()=>w,w:()=>b});var o=r(43697),i=r(15923),n=r(70586),s=r(41103),a=r(22974),l=r(31263);class c{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new c,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,a.d9)(e),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const o=this._originStores[r];o&&o.forEach(((o,i)=>{e&&e.has(i)||t.set(i,(0,a.d9)(o),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=l.s3.USER){let o=this._originStores[r];if(o||(o=new Map,this._originStores[r]=o),o.set(e,t),!this._values.has(e)||(0,n.j0)(this._propertyOriginMap.get(e))<=r){const o=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),o!==t}return!1}delete(e,t=l.s3.USER){const r=this._originStores[t];if(!r)return;const o=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return o}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],o=r&&r.get(e),i=this._values.get(e);return this._values.set(e,o),this._propertyOriginMap.set(e,t),i!==o}originOf(e){return this._propertyOriginMap.get(e)||l.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var d=r(50549),h=r(1153),u=r(52011);const p=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,n.j0)((0,h.vw)(this)),r=t.store,o=new c;t.store=o,(0,s.M)(t,r,o)}read(e,t){(0,d.i)(this,e,t)}getAtOrigin(e,t){const r=y(this),o=(0,l.M9)(t);if("string"==typeof e)return r.get(e,o);const i={};return e.forEach((e=>{i[e]=r.get(e,o)})),i}originOf(e){return(0,l.x3)(this.originIdOf(e))}originIdOf(e){return y(this).originOf(e)}revert(e,t){const r=y(this),o=(0,l.M9)(t),i=(0,h.vw)(this);let n;n="string"==typeof e?"*"===e?r.keys(o):[e]:e,n.forEach((e=>{i.invalidate(e),r.revert(e,o),i.commit(e)}))}};return t=(0,o._)([(0,u.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function y(e){return(0,h.vw)(e).store}let g=class extends(p(i.Z)){};g=(0,o._)([(0,u.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],g);var m=r(76169);const f=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return v(this).delete(e,(0,l.M9)(t))}write(e={},t){return(0,m.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,h.vw)(this).setAtOrigin(e,t,(0,l.M9)(r))}removeOrigin(e){const t=v(this),r=(0,l.M9)(e),o=t.keys(r);for(const e of o)t.originOf(e)===r&&t.set(e,t.get(e,r),l.s3.USER)}updateOrigin(e,t){const r=v(this),o=(0,l.M9)(t),i=this.get(e);for(let t=o+1;t<l.kk;++t)r.delete(e,t);r.set(e,i,o)}toJSON(e){return this.write({},e)}};return t=(0,o._)([(0,u.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,h.vw)(e).store}const w=e=>{let t=class extends(f(p(e))){constructor(...e){super(...e)}};return t=(0,o._)([(0,u.j)("esri.core.MultiOriginJSONSupport")],t),t};let b=class extends(w(i.Z)){};b=(0,o._)([(0,u.j)("esri.core.MultiOriginJSONSupport")],b)},78346:(e,t,r)=>{r.d(t,{bA:()=>P});var o=r(20102),i=r(80442),n=r(95330),s=r(80903),a=r(25045),l=r(40330),c=r(92604),d=r(94362),h=r(99880),u=r(68773),p=(r(2587),r(17452));const y={};function g(e){var t;const r={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(r.async=!0),e.hasOwnProperty("isDebug")||(r.isDebug=!1),e.baseUrl||(r.baseUrl=y.baseUrl),null==(t=y.packages)||t.forEach((e=>{!function(e,t){for(const r of e)if(r.name===t.name)return;e.push(t)}(r.packages,e)})),r}var m=r(41213);class f{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class v{constructor(){this._dispatcher=new f,this._workerPostMessage({type:d.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,m.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,m.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,d.QM)(e);if(t&&t.type===d.Cs.OPEN){const{modulePath:e,jobId:r}=t;let o=await a.default.loadWorker(e);o||(o=await import(e));const i=a.default.connect(o);this._workerPostMessage({type:d.Cs.OPENED,jobId:r,data:i})}}}var w=r(70171),b=r(17202);const _=c.Z.getLogger("esri.core.workers"),{HANDSHAKE:S}=d.Cs;let k,L;const C="Failed to create Worker. Fallback to execute module in main thread";async function I(e){return new Promise((t=>{function r(i){const n=(0,d.QM)(i);n&&n.type===S&&(e.removeEventListener("message",r),e.removeEventListener("error",o),t(e))}function o(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",o),_.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new v).addEventListener("message",r),e.addEventListener("error",o)}e.addEventListener("message",r),e.addEventListener("error",o)}))}let M=0;const E=c.Z.getLogger("esri.core.workers"),{ABORT:O,INVOKE:T,OPEN:x,OPENED:j,RESPONSE:D}=d.Cs;class A{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),E.error(e)}))}static async create(e){const t=await async function(){if(!(0,i.Z)("esri-workers")||((0,i.Z)("mozilla"),0))return I(new v);if(!k&&!L)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=u.Z.default){const t={...u.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(u.Z));e.assetsPath=(0,p.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,w.Kd)(),e.has={"esri-csp-restrictions":(0,i.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,i.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,i.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,i.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,i.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,i.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,i.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,i.Z)("esri-atomics"),"esri-shared-array-buffer":(0,i.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,i.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,i.Z)("esri-workers-arraybuffer-transfer"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,p.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,p.hF)(e.workers.workerPath):e.workers.workerPath=(0,p.hF)((0,h.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=u.Z.workers.loaderConfig,r=g({baseUrl:null==t?void 0:t.baseUrl,locale:(0,w.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...null==t?void 0:t.has},map:{...null==t?void 0:t.map},paths:{...null==t?void 0:t.paths},packages:(null==t?void 0:t.packages)||[]}),o={version:l.i8,buildDate:b.r,revision:b.$};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:o})}()}'`);k=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){L=e||{}}let e;if(k)try{e=new Worker(k,{name:"esri-worker-"+M++})}catch(t){_.warn(C,L),e=new v}else _.warn(C,L),e=new v;return I(e)}();return new A(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,o=(0,d.jt)();return new Promise(((t,i)=>{const s={resolve:t,reject:i,abortHandle:(0,n.$F)(r,(()=>{this._outJobs.delete(o),this._post({type:O,jobId:o})}))};this._outJobs.set(o,s),this._post({type:x,jobId:o,modulePath:e})}))}_onMessage(e){const t=(0,d.QM)(e);if(t)switch(t.type){case j:this._onOpenedMessage(t);break;case D:this._onResponseMessage(t);break;case O:this._onAbortMessage(t);break;case T:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,o=t.get(r);o&&(o.controller&&o.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:o,abortable:i}=e,s=i?new AbortController:null,a=this._inJobs,c=l.Nv[t];let h;try{if("function"!=typeof c)throw new TypeError(`${t} is not a function`);h=c.call(null,o,{signal:s?s.signal:null})}catch(e){return void this._post({type:D,jobId:r,error:(0,d.AB)(e)})}(0,n.y8)(h)?(a.set(r,{controller:s,promise:h}),h.then((e=>{a.has(r)&&(a.delete(r),this._post({type:D,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,n.D_)(e)||this._post({type:D,jobId:r,error:(0,d.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:D,jobId:r},h)}_onOpenedMessage(e){var t;const{jobId:r,data:o}=e,i=this._outJobs.get(r);i&&(this._outJobs.delete(r),null==(t=i.abortHandle)||t.remove(),i.resolve(o))}_onResponseMessage(e){var t;const{jobId:r,error:i,data:n}=e,s=this._outJobs.get(r);s&&(this._outJobs.delete(r),null==(t=s.abortHandle)||t.remove(),i?s.reject(o.Z.fromJSON(JSON.parse(i))):s.resolve(n))}_post(e,t,r){return(0,d.oi)(this.worker,e,t,r)}}let N=(0,i.Z)("esri-workers-debug")?1:(0,i.Z)("host-browser")?navigator.hardwareConcurrency-1:0;N||(N=(0,i.Z)("safari")&&(0,i.Z)("mac")||(0,i.Z)("trident")?7:2);let R=0;const Z=[];async function U(e,t){const r=new s.Z;return await r.open(e,t),r}async function P(e,t={}){if("string"!=typeof e)throw new o.Z("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,i.Z)("host-webworker")&&!(0,i.Z)("esri-workers")&&(r="local"),"local"===r){let r=await a.default.loadWorker(e);r||(r=await import(e)),(0,n.k_)(t.signal);const o=t.client||r;return U([a.default.connect(r)],{...t,client:o})}if(await async function(){if(G)return G;$=new AbortController;const e=[];for(let t=0;t<N;t++){const r=A.create(t).then((e=>(Z[t]=e,e)));e.push(r)}return G=Promise.all(e),G}(),(0,n.k_)(t.signal),"dedicated"===r){const r=R++%N;return U([await Z[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,N);if(r<N){const o=new Array(r);for(let i=0;i<r;++i){const r=R++%N;o[i]=Z[r].open(e,t)}return U(o,t)}}return U(Z.map((r=>r.open(e,t))),t)}let $,G=null},79235:(e,t,r)=>{r.d(t,{Z:()=>w});var o,i=r(43697),n=r(67676),s=r(35454),a=r(96674),l=r(67900),c=r(20941),d=r(5600),h=(r(80442),r(75215),r(71715)),u=r(52011),p=r(30556);const y=(0,s.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=y.jsonValues.slice();(0,n.e$)(g,"orthometric");const m=(0,s.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=o=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new c.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return m.read(e)||(r&&r.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||m.read(e)||(r&&r.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new o({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new o({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new o;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new c.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i._)([(0,d.Cb)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal"}}}})],f.prototype,"heightModel",void 0),(0,i._)([(0,p.c)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,i._)([(0,h.r)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,i._)([(0,d.Cb)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:m.write}}}})],f.prototype,"heightUnit",void 0),(0,i._)([(0,h.r)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,i._)([(0,h.r)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,i._)([(0,d.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,i._)([(0,h.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=o=(0,i._)([(0,u.j)("esri.geometry.HeightModelInfo")],f);const w=f},2587:(e,t,r)=>{r(90344),r(18848),r(940),r(70171);var o=r(94443),i=r(3172),n=r(20102),s=r(70586);async function a(e){if((0,s.pC)(c.fetchBundleAsset))return c.fetchBundleAsset(e);const t=await(0,i.default)(e,{responseType:"text"});return JSON.parse(t.data)}class l{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let o;o="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=o,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,i){const s=t.exec(r);if(!s)throw new n.Z("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const l=s[1]?`${s[1]}/`:"",c=s[2],d=(0,o.Su)(i),h=`${l}${c}.json`,u=d?`${l}${c}_${d}.json`:h;let p;try{p=await a(e(u))}catch(t){if(u===h)throw new n.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{p=await a(e(h))}catch(e){throw new n.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return p}(this.getAssetUrl,this.matcher,e,t)}}const c={};var d,h=r(99880);(0,o.tz)((d={pattern:"esri/",location:h.V},new l(d)))},90344:(e,t,r)=>{r.d(t,{Ze:()=>m,p6:()=>f});var o=r(35454),i=r(70171);const n={year:"numeric",month:"numeric",day:"numeric"},s={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},d={...c,second:"numeric"},h={"short-date":n,"short-date-short-time":{...n,...c},"short-date-short-time-24":{...n,...c,hour12:!1},"short-date-long-time":{...n,...d},"short-date-long-time-24":{...n,...d,hour12:!1},"short-date-le":n,"short-date-le-short-time":{...n,...c},"short-date-le-short-time-24":{...n,...c,hour12:!1},"short-date-le-long-time":{...n,...d},"short-date-le-long-time-24":{...n,...d,hour12:!1},"long-month-day-year":s,"long-month-day-year-short-time":{...s,...c},"long-month-day-year-short-time-24":{...s,...c,hour12:!1},"long-month-day-year-long-time":{...s,...d},"long-month-day-year-long-time-24":{...s,...d,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...c},"day-short-month-year-short-time-24":{...a,...c,hour12:!1},"day-short-month-year-long-time":{...a,...d},"day-short-month-year-long-time-24":{...a,...d,hour12:!1},"long-date":l,"long-date-short-time":{...l,...c},"long-date-short-time-24":{...l,...c,hour12:!1},"long-date-long-time":{...l,...d},"long-date-long-time-24":{...l,...d,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":d},u=(0,o.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),p=(u.apiValues,u.toJSON.bind(u),u.fromJSON.bind(u),{ar:"ar-u-nu-latn-ca-gregory"});let y=new WeakMap,g=h["short-date-short-time"];function m(e){return h[e]||null}function f(e,t){return function(e){const t=e||g;if(!y.has(t)){const e=(0,i.Kd)(),r=p[(0,i.Kd)()]||e;y.set(t,new Intl.DateTimeFormat(r,t))}return y.get(t)}(t).format(e)}(0,i.Ze)((()=>{y=new WeakMap,g=h["short-date-short-time"]}))},94443:(e,t,r)=>{r.d(t,{ME:()=>p,Su:()=>y,tz:()=>u});var o=r(20102),i=r(95330),n=r(70171);const s=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){var t;return null!=(t=a[e])&&t}const c=[],d=new Map;function h(e){for(const t of d.keys())g(e.pattern,t)&&d.delete(t)}function u(e){return c.includes(e)||(h(e),c.unshift(e)),{remove(){const t=c.indexOf(e);t>-1&&(c.splice(t,1),h(e))}}}async function p(e){const t=(0,n.Kd)();d.has(e)||d.set(e,async function(e,t){const r=[];for(const o of c)if(g(o.pattern,e))try{return await o.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new o.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new o.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=d.get(e);return await m.add(r),r}function y(e){if(!s.test(e))return null;const[,t,r]=s.exec(e),o=t+(r?"-"+r.toUpperCase():"");return l(o)?o:l(t)?t:null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,n.Ze)((()=>{d.clear()}));const m=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,i.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,r)=>{r.d(t,{sh:()=>l,uf:()=>c});var o=r(70586),i=r(70171);const n={ar:"ar-u-nu-latn"};let s=new WeakMap,a={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function c(e,t){return function(e){const t=e||a;if(!s.has(t)){const r=(0,i.Kd)(),o=n[(0,i.Kd)()]||r;s.set(t,new Intl.NumberFormat(o,e))}return(0,o.j0)(s.get(t))}(t).format(e)}(0,i.Ze)((()=>{s=new WeakMap,a={}}))},940:(e,t,r)=>{r.d(t,{n:()=>c});var o=r(92604),i=r(78286),n=r(19153),s=r(90344),a=r(18848);const l=o.Z.getLogger("esri.intl");function c(e,t,r={}){const{format:o={}}=r;return(0,n.gx)(e,(e=>function(e,t,r){let o,n;const s=e.indexOf(":");if(-1===s?o=e.trim():(o=e.slice(0,s).trim(),n=e.slice(s+1).trim()),!o)return"";const a=(0,i.hS)(o,t);if(null==a)return"";const l=r[n]||r[o];return l?d(a,l):n?h(a,n):u(a)}(e,t,o)))}function d(e,t){switch(t.type){case"date":return(0,s.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),u(e)}}function h(e,t){switch(t.toLowerCase()){case"dateformat":return(0,s.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,s.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):u(e)}}function u(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,s.p6)(e):""}}},49932:(e,t,r)=>{r.r(t),r.d(t,{default:()=>O});var o=r(43697),i=r(3172),n=r(20102),s=r(92604),a=r(70586),l=r(16453),c=r(95330),d=r(17452),h=r(5600),u=r(67676),p=(r(80442),r(75215),r(71715)),y=r(52011),g=r(79235),m=r(29600),f=r(46486),v=r(17287),w=r(38009),b=r(16859),_=r(21506),S=r(50758),k=r(78346);const L=s.Z.getLogger("esri.core.workers.WorkerHandle");class C extends class{constructor(e,t,r,o={}){this._mainMethod=t,this._listeners=[],this._promise=(0,k.bA)(e,{...o,schedule:r}).then((e=>{if(void 0===this._thread){this._thread=e,this._promise=null,o.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()})),this._promise.catch((t=>L.error(`Failed to initialize ${e} worker: ${t}`)))}on(e,t){const r={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(r),this._connectListener(r),(0,S.kB)((()=>{r.removed=!0,(0,u.Od)(this._listeners,r),this._thread&&(0,a.pC)(r.threadHandle)&&r.threadHandle.remove()}))}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null}invoke(e,t){return this.invokeMethod(this._mainMethod,e,t)}invokeMethod(e,t,r){if(this._thread){const o=this.getTransferList(t,e);return this._thread.invoke(e,t,{transferList:o,signal:r})}return this._promise?this._promise.then((()=>((0,c.k_)(r),this.invokeMethod(e,t,r)))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then((()=>{})):this._promise?this._promise.then((()=>this.broadcast(e,t))):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then((t=>{e.removed||(e.threadHandle=t)}))}}{constructor(e=null){super("LercWorker","_decode",e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,r){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},r):Promise.resolve(null)}getTransferList(e){return[e.buffer]}release(){--this.ref<=0&&(I.forEach(((e,t)=>{e===this&&I.delete(t)})),this.destroy())}}const I=new Map,M=s.Z.getLogger("esri.layers.ElevationLayer");let E=class extends((0,f.Z)((0,v.Y)((0,w.q)((0,b.I)((0,l.R)(m.Z)))))){constructor(...e){super(...e),this.copyright=null,this.heightModelInfo=null,this.path=null,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=I.get((0,a.Wg)(e));return t||((0,a.pC)(e)?(t=new C((t=>e.schedule(t))),I.set(e,t)):(t=new C,I.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,a.RY)(this._lercDecoder)}set minScale(e){this.constructed&&M.warn(`${this.declaredClass}.minScale support has been removed (since 4.5)`)}get minScale(){}set maxScale(e){this.constructed&&M.warn(`${this.declaredClass}.maxScale support has been removed (since 4.5)`)}get maxScale(){}readVersion(e,t){let r=t.currentVersion;return r||(r=9.3),r}load(e){const t=(0,a.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new n.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(c.r9).then((()=>this._fetchImageService(t)))),Promise.resolve(this)}fetchTile(e,t,r,o){const n=(0,a.pC)((o=o||{signal:null}).signal)?o.signal:o.signal=(new AbortController).signal,s={responseType:"array-buffer",signal:n},l={noDataValue:o.noDataValue,returnFileInfo:!0};return this.load().then((()=>this._fetchTileAvailability(e,t,r,o))).then((()=>(0,i.default)(this.getTileUrl(e,t,r),s))).then((e=>this._lercDecoder.decode(e.data,l,n))).then((e=>({values:e.pixelData,width:e.width,height:e.height,maxZError:e.fileInfo.maxZError,noDataValue:e.noDataValue,minValue:e.minValue,maxValue:e.maxValue})))}getTileUrl(e,t,r){const o=!this.tilemapCache&&this.supportsBlankTile,i=(0,d.B7)({...this.parsedUrl.query,blankTile:!o&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${r}${i?"?"+i:""}`}async queryElevation(e,t){const{ElevationQuery:o}=await Promise.all([r.e(4547),r.e(3127)]).then(r.bind(r,33127));return(0,c.k_)(t),(new o).query(this,e,t)}async createElevationSampler(e,t){const{ElevationQuery:o}=await Promise.all([r.e(4547),r.e(3127)]).then(r.bind(r,33127));return(0,c.k_)(t),(new o).createSampler(this,e,t)}_fetchTileAvailability(e,t,r,o){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,r,o):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},r=await(0,i.default)(this.parsedUrl.path,t);r.ssl&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=r.data,this.read(r.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile.__isDefault__}};(0,o._)([(0,h.Cb)({json:{read:{source:"copyrightText"}}})],E.prototype,"copyright",void 0),(0,o._)([(0,h.Cb)({readOnly:!0,type:g.Z})],E.prototype,"heightModelInfo",void 0),(0,o._)([(0,h.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],E.prototype,"path",void 0),(0,o._)([(0,h.Cb)({type:["show","hide"]})],E.prototype,"listMode",void 0),(0,o._)([(0,h.Cb)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],E.prototype,"minScale",null),(0,o._)([(0,h.Cb)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],E.prototype,"maxScale",null),(0,o._)([(0,h.Cb)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],E.prototype,"opacity",void 0),(0,o._)([(0,h.Cb)({type:["ArcGISTiledElevationServiceLayer"]})],E.prototype,"operationalLayerType",void 0),(0,o._)([(0,h.Cb)()],E.prototype,"sourceJSON",void 0),(0,o._)([(0,h.Cb)({json:{read:!1},value:"elevation",readOnly:!0})],E.prototype,"type",void 0),(0,o._)([(0,h.Cb)(_.HQ)],E.prototype,"url",void 0),(0,o._)([(0,h.Cb)()],E.prototype,"version",void 0),(0,o._)([(0,p.r)("version",["currentVersion"])],E.prototype,"readVersion",null),E=(0,o._)([(0,y.j)("esri.layers.ElevationLayer")],E),E.prototype.fetchTile.__isDefault__=!0;const O=E},29600:(e,t,r)=>{r.d(t,{Z:()=>b});var o=r(43697),i=r(68773),n=(r(66577),r(3172)),s=r(20102),a=r(32448),l=r(10699),c=r(83379),d=r(92604),h=r(95330),u=r(17452),p=r(5600),y=(r(67676),r(80442),r(75215),r(52011)),g=r(6570),m=r(82971);let f=0;const v=d.Z.getLogger("esri.layers.Layer");let w=class extends(a.Z.EventedMixin((0,l.I)(c.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new g.Z(-180,-90,180,90,m.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,o=await r.e(3529).then(r.bind(r,63529));try{return await o.fromUrl(t)}catch(e){throw v.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},o=await r.e(4579).then(r.bind(r,44579));try{return await o.fromItem(t)}catch(e){const r=t&&t.portalItem,o=r&&r.id||"unset",n=r&&r.portal&&r.portal.url||i.Z.portalUrl;throw v.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+o+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,h.D_)(e)||d.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,u.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,o._)([(0,p.Cb)({type:String})],w.prototype,"attributionDataUrl",void 0),(0,o._)([(0,p.Cb)({type:g.Z})],w.prototype,"fullExtent",void 0),(0,o._)([(0,p.Cb)({readOnly:!0})],w.prototype,"hasAttributionData",null),(0,o._)([(0,p.Cb)({type:String,clonable:!1})],w.prototype,"id",void 0),(0,o._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],w.prototype,"legendEnabled",void 0),(0,o._)([(0,p.Cb)({type:["show","hide","hide-children"]})],w.prototype,"listMode",void 0),(0,o._)([(0,p.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],w.prototype,"opacity",void 0),(0,o._)([(0,p.Cb)({clonable:!1})],w.prototype,"parent",void 0),(0,o._)([(0,p.Cb)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,o._)([(0,p.Cb)({type:Boolean})],w.prototype,"popupEnabled",void 0),(0,o._)([(0,p.Cb)({type:Boolean})],w.prototype,"attributionVisible",void 0),(0,o._)([(0,p.Cb)({type:m.Z})],w.prototype,"spatialReference",void 0),(0,o._)([(0,p.Cb)({type:String})],w.prototype,"title",void 0),(0,o._)([(0,p.Cb)({type:String,readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,o._)([(0,p.Cb)()],w.prototype,"url",void 0),(0,o._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],w.prototype,"visible",void 0),w=(0,o._)([(0,y.j)("esri.layers.Layer")],w);const b=w},46486:(e,t,r)=>{r.d(t,{Z:()=>d});var o=r(43697),i=(r(66577),r(5600)),n=(r(67676),r(80442),r(75215),r(71715)),s=r(52011),a=r(45322),l=r(56608),c=r(82971);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t){return t.capabilities&&t.capabilities.indexOf("Tilemap")>-1?new l.y({layer:this}):null}};return(0,o._)([(0,i.Cb)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,o._)([(0,i.Cb)()],t.prototype,"minScale",void 0),(0,o._)([(0,n.r)("service","minScale")],t.prototype,"readMinScale",null),(0,o._)([(0,i.Cb)()],t.prototype,"maxScale",void 0),(0,o._)([(0,n.r)("service","maxScale")],t.prototype,"readMaxScale",null),(0,o._)([(0,i.Cb)({type:c.Z})],t.prototype,"spatialReference",void 0),(0,o._)([(0,i.Cb)({readOnly:!0})],t.prototype,"supportsBlankTile",null),(0,o._)([(0,i.Cb)(a.h)],t.prototype,"tileInfo",void 0),(0,o._)([(0,i.Cb)()],t.prototype,"tilemapCache",void 0),(0,o._)([(0,n.r)("service","tilemapCache",["capabilities"])],t.prototype,"readTilemapCache",null),(0,o._)([(0,i.Cb)()],t.prototype,"version",void 0),t=(0,o._)([(0,s.j)("esri.layers.mixins.ArcGISCachedService")],t),t}},17287:(e,t,r)=>{r.d(t,{Y:()=>c});var o=r(43697),i=r(92604),n=r(70586),s=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(66677);const c=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.Qc)(this.url);if((0,n.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Nm)(e,i.Z.getLogger(this.declaredClass)))}};return(0,o._)([(0,s.Cb)()],t.prototype,"title",null),(0,o._)([(0,s.Cb)({type:String})],t.prototype,"url",null),t=(0,o._)([(0,a.j)("esri.layers.mixins.ArcGISService")],t),t}},38009:(e,t,r)=>{r.d(t,{q:()=>p});var o=r(43697),i=r(20102),n=r(17452),s=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(30556),c=r(50549),d=r(76169);const h={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};var u=r(21506);const p=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,o){(o&&"ground"===o.layerContainerType||e&&(0,d.d)(this,r,{},o))&&(t[r]=e)}writeOperationalLayerType(e,t,r,o){!e||o&&"tables"===o.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e||"Layer"}read(e,t){t&&(t.layer=this),(0,c.$)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(null!=t&&t.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,o=h[e];let n=o&&o[this.operationalLayerType];var r;if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(n=!1),!n)return null==(r=t.messages)||r.push(new i.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const o=super.write(e,{...t,layer:this}),s=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof i.Z&&"web-document-write:property-required"===e.name)).length;var a;return(0,n.jc)(null==o?void 0:o.url)?(null==t||null==(a=t.messages)||a.push(new i.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&s?null:o}beforeSave(){}};return(0,o._)([(0,s.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,o._)([(0,s.Cb)({json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}})],t.prototype,"listMode",void 0),(0,o._)([(0,l.c)("listMode")],t.prototype,"writeListMode",null),(0,o._)([(0,s.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,o._)([(0,l.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,o._)([(0,s.Cb)(u.Oh)],t.prototype,"opacity",void 0),(0,o._)([(0,s.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,o._)([(0,l.c)("title")],t.prototype,"writeTitle",null),(0,o._)([(0,s.Cb)({type:Boolean,json:{name:"visibility"}})],t.prototype,"visible",void 0),t=(0,o._)([(0,a.j)("esri.layers.mixins.OperationalLayer")],t),t}},21506:(e,t,r)=>{r.d(t,{qG:()=>b,PV:()=>m,id:()=>S,iR:()=>p,rn:()=>g,u1:()=>L,rO:()=>k,Oh:()=>v,bT:()=>w,C_:()=>u,Lx:()=>f,vg:()=>_,YI:()=>h,HQ:()=>y});var o=r(92835),i=r(6570),n=r(82971),s=r(25929),a=r(70586),l=(r(95330),r(35463)),c=r(20682),d=r(65242);const h={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},u={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},p={type:Boolean,value:!0,json:{name:"showLabels",write:!0}},y={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:s.w}}},g={type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},m={value:null,type:c.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function f(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const v={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},w={...v,json:{...v.json,origins:{"web-document":{...v.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition&&t.layerDefinition.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,d.b)(t.layerDefinition.drawingInfo.transparency):void 0:(0,d.b)(t.drawingInfo.transparency)}}},b={type:o.Z,readOnly:!0,get(){var e,t;if(null==(e=this.layer)||!e.timeInfo)return null;const{datesInUnknownTimezone:r,timeOffset:i,useViewTime:n}=this.layer,s=null==(t=this.view)?void 0:t.timeExtent;let c=this.layer.timeExtent;r&&(c=function(e){if(!e)return e;const{start:t,end:r}=e;return new o.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,r.getTimezoneOffset(),"minutes"):r})}(c));let d=n?s&&c?s.intersection(c):s||c:c;if(!d||d.isEmpty||d.isAllTime)return d;i&&(d=d.offset(-i.value,i.unit)),r&&(d=function(e){if(!e)return e;const{start:t,end:r}=e;return new o.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,-t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,-r.getTimezoneOffset(),"minutes"):r})}(d));const h=this._get("timeExtent");return d.equals(h)?h:d}},_={type:i.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=i.Z.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=n.Z.fromJSON(t.spatialReference)),r}}}},read:!1}},S={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},k={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},L={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}}},20682:(e,t,r)=>{r.d(t,{Z:()=>_});var o,i=r(43697),n=r(35454),s=r(96674),a=r(70586),l=r(5600),c=(r(67676),r(80442),r(75215),r(71715)),d=r(52011),h=r(30556),u=r(35671);let p=o=class extends s.wq{async collectRequiredFields(e,t){return(0,u.io)(e,t,this.expression)}clone(){return new o({expression:this.expression,title:this.title})}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],p.prototype,"expression",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],p.prototype,"title",void 0),p=o=(0,i._)([(0,d.j)("esri.layers.support.FeatureExpressionInfo")],p);const y=p;var g=r(99282);const m=function(){const e=Object.keys(g.a);return e.sort(),e}();var f;const v=(0,n.w)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),w=new n.X({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let b=f=class extends s.wq{constructor(){super(...arguments),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,o){t[r]=e.write({},o),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):(0,a.pC)(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new f({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}};(0,i._)([(0,l.Cb)({type:y,json:{write:!0}})],b.prototype,"featureExpressionInfo",void 0),(0,i._)([(0,c.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],b.prototype,"readFeatureExpressionInfo",null),(0,i._)([(0,h.c)("featureExpressionInfo",{featureExpressionInfo:{type:y},"featureExpression.value":{type:[0]}})],b.prototype,"writeFeatureExpressionInfo",null),(0,i._)([(0,l.Cb)({type:v.apiValues,nonNullable:!0,json:{type:v.jsonValues,read:v.read,write:{writer:v.write,isRequired:!0}}})],b.prototype,"mode",null),(0,i._)([(0,l.Cb)({type:Number,json:{write:!0}})],b.prototype,"offset",void 0),(0,i._)([(0,l.Cb)({type:m,json:{type:String,read:w.read,write:w.write}})],b.prototype,"unit",null),b=f=(0,i._)([(0,d.j)("esri.layers.support.ElevationInfo")],b);const _=b},65242:(e,t,r)=>{r.d(t,{a:()=>i,b:()=>n});var o=r(75215);function i(e){const t=(0,o.vU)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7055,4889],{95642:(e,t,r)=>{r.d(t,{Z:()=>g});var s=r(43697),o=(r(66577),r(70586)),i=r(5600),n=(r(67676),r(80442),r(75215),r(71715)),a=r(52011),l=r(38171);let p=class extends l.Z{};(0,s._)([(0,i.Cb)()],p.prototype,"events",void 0),(0,s._)([(0,i.Cb)()],p.prototype,"strings",void 0),p=(0,s._)([(0,a.j)("esri.rest.support.DirectionsFeature")],p);const u=p;var y=r(74889),c=r(6570),f=r(82971),m=r(58901),d=r(13473);let h=class extends y.default{constructor(e){super(e),this.extent=null,this.features=null,this.geometryType="polyline",this.routeId=null,this.routeName=null,this.totalDriveTime=null,this.totalLength=null,this.totalTime=null}readFeatures(e,t){var r;if(!e)return[];const s=null!=(r=t.summary.envelope.spatialReference)?r:t.spatialReference,o=s&&f.Z.fromJSON(s);return e.map((e=>{var t,r;const s=this._decompressGeometry(e.compressedGeometry),i=new m.Z({...s,spatialReference:o}),n=null!=(t=null==(r=e.events)?void 0:r.map((e=>{const{arriveTimeUTC:t,ETA:r,point:{x:s,y:i,z:n},strings:a}=e;return new u({geometry:new d.Z({x:s,y:i,z:n,hasZ:void 0!==n,spatialReference:o}),attributes:{ETA:r,arriveTimeUTC:t},strings:a})})))?t:[];return new u({attributes:e.attributes,events:n,geometry:i,strings:e.strings})}))}get mergedGeometry(){if(!this.features)return null;const e=this.features.map((({geometry:e})=>(0,o.Wg)(e))),t=this.get("extent.spatialReference");return this._mergePolylinesToSinglePath(e,t)}get strings(){return this.features.map((({strings:e})=>e))}_decompressGeometry(e){let t=0,r=0,s=0,o=0;const i=[];let n,a,l,p,u,y,c,f,m=0,d=0,h=0;if(u=e.match(/((\+|\-)[^\+\-\|]+|\|)/g),u||(u=[]),0===parseInt(u[m],32)){m=2;const e=parseInt(u[m],32);m++,y=parseInt(u[m],32),m++,1&e&&(d=u.indexOf("|")+1,c=parseInt(u[d],32),d++),2&e&&(h=u.indexOf("|",d)+1,f=parseInt(u[h],32),h++)}else y=parseInt(u[m],32),m++;for(;m<u.length&&"|"!==u[m];){n=parseInt(u[m],32)+t,m++,t=n,a=parseInt(u[m],32)+r,m++,r=a;const e=[n/y,a/y];d&&(p=parseInt(u[d],32)+s,d++,s=p,e.push(p/c)),h&&(l=parseInt(u[h],32)+o,h++,o=l,e.push(l/f)),i.push(e)}return{paths:[i],hasZ:d>0,hasM:h>0}}_mergePolylinesToSinglePath(e,t){if(0===e.length)return new m.Z({spatialReference:t});const r=[];for(const t of e)for(const e of t.paths)r.push(...e);const s=[];r.forEach(((e,t)=>{0!==t&&e[0]===r[t-1][0]&&e[1]===r[t-1][1]||s.push(e)}));const{hasM:o,hasZ:i}=e[0];return new m.Z({hasM:o,hasZ:i,paths:[s],spatialReference:t})}};(0,s._)([(0,i.Cb)({type:c.Z,json:{read:{source:"summary.envelope"}}})],h.prototype,"extent",void 0),(0,s._)([(0,i.Cb)()],h.prototype,"features",void 0),(0,s._)([(0,n.r)("features")],h.prototype,"readFeatures",null),(0,s._)([(0,i.Cb)()],h.prototype,"geometryType",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],h.prototype,"mergedGeometry",null),(0,s._)([(0,i.Cb)()],h.prototype,"routeId",void 0),(0,s._)([(0,i.Cb)()],h.prototype,"routeName",void 0),(0,s._)([(0,i.Cb)({value:null,readOnly:!0})],h.prototype,"strings",null),(0,s._)([(0,i.Cb)({json:{read:{source:"summary.totalDriveTime"}}})],h.prototype,"totalDriveTime",void 0),(0,s._)([(0,i.Cb)({json:{read:{source:"summary.totalLength"}}})],h.prototype,"totalLength",void 0),(0,s._)([(0,i.Cb)({json:{read:{source:"summary.totalTime"}}})],h.prototype,"totalTime",void 0),h=(0,s._)([(0,a.j)("esri.rest.support.DirectionsFeatureSet")],h);const g=h},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var s,o=r(43697),i=r(66577),n=r(38171),a=r(35454),l=r(96674),p=r(22974),u=r(70586),y=r(5600),c=(r(75215),r(71715)),f=r(52011),m=r(30556),d=r(82971),h=r(33955),g=r(1231);const v=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let _=s=class extends l.wq{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){const r=d.Z.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const o=e[t],i=n.Z.fromJSON(o),a=o.geometry&&o.geometry.spatialReference;(0,u.pC)(i.geometry)&&!a&&(i.geometry.spatialReference=r);const l=o.aggregateGeometries,p=i.aggregateGeometries;if(l&&(0,u.pC)(p))for(const e in p){const t=p[e],s=l[e],o=null==s?void 0:s.spatialReference;(0,u.pC)(t)&&!o&&(t.spatialReference=r)}s.push(i)}return s}writeGeometryType(e,t,r,s){if(e)return void v.write(e,t,r,s);const{features:o}=this;if(o)for(const e of o)if(e&&(0,u.pC)(e.geometry))return void v.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,h.im)(e);return!r&&t.spatialReference&&(s.spatialReference=d.Z.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,u.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,p.d9)({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 r=0;r<t.features.length;r++){const s=t.features[r];if(s.geometry){const t=e&&e[r];s.geometry=t&&t.toJSON()||s.geometry}}return t}quantize(e){const{scale:[t,r],translate:[s,o]}=e,i=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-s)/t)),(e=>Math.round((o-e)/r)));for(let e=0,t=i.length;e<t;e++)n((0,u.Wg)(i[e].geometry))||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[s,o],scale:[i,n]}=r,a=this._getHydrationFunction(e,(e=>e*i+s),(e=>o-e*n));for(const{geometry:e}of t)(0,u.pC)(e)&&a(e);return this.transform=null,this}_quantizePoints(e,t,r){let s,o;const i=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];if(n>0){const e=t(a[0]),n=r(a[1]);e===s&&n===o||(i.push([e-s,n-o]),s=e,o=n)}else s=t(a[0]),o=r(a[1]),i.push([s,o])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const s=(0,h.oU)(e)?e.rings:e.paths,o=[];for(let e=0,i=s.length;e<i;e++){const i=s[e],n=this._quantizePoints(i,t,r);n&&o.push(n)}return o.length>0?((0,h.oU)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const s=this._quantizePoints(e.points,t,r);return s.length>0?(e.points=s,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const s=(0,h.oU)(e)?e.rings:e.paths;let o,i;for(let e=0,n=s.length;e<n;e++){const n=s[e];for(let e=0,s=n.length;e<s;e++){const s=n[e];e>0?(o+=s[0],i+=s[1]):(o=s[0],i=s[1]),s[0]=t(o),s[1]=r(i)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const s=e.points;let o,i;for(let e=0,n=s.length;e<n;e++){const n=s[e];e>0?(o+=n[0],i+=n[1]):(o=n[0],i=n[1]),n[0]=t(o),n[1]=r(i)}}:void 0}};(0,o._)([(0,y.Cb)({type:String,json:{write:!0}})],_.prototype,"displayFieldName",void 0),(0,o._)([(0,y.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"exceededTransferLimit",void 0),(0,o._)([(0,y.Cb)({type:[n.Z],json:{write:!0}})],_.prototype,"features",void 0),(0,o._)([(0,c.r)("features")],_.prototype,"readFeatures",null),(0,o._)([(0,y.Cb)({type:[g.Z],json:{write:!0}})],_.prototype,"fields",void 0),(0,o._)([(0,y.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:v.read}}})],_.prototype,"geometryType",void 0),(0,o._)([(0,m.c)("geometryType")],_.prototype,"writeGeometryType",null),(0,o._)([(0,y.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasM",void 0),(0,o._)([(0,y.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasZ",void 0),(0,o._)([(0,y.Cb)({types:i.qM,json:{write:!0}})],_.prototype,"queryGeometry",void 0),(0,o._)([(0,c.r)("queryGeometry")],_.prototype,"readQueryGeometry",null),(0,o._)([(0,y.Cb)({type:d.Z,json:{write:!0}})],_.prototype,"spatialReference",void 0),(0,o._)([(0,m.c)("spatialReference")],_.prototype,"writeSpatialReference",null),(0,o._)([(0,y.Cb)({json:{write:!0}})],_.prototype,"transform",void 0),_=s=(0,o._)([(0,f.j)("esri.rest.support.FeatureSet")],_),_.prototype.toJSON.isDefaultToJSON=!0;const b=_},17055:(e,t,r)=>{r.r(t),r.d(t,{default:()=>S});var s=r(43697),o=r(5600),i=(r(67676),r(80442),r(75215),r(52011)),n=r(3172),a=r(28263),l=r(70132),p=r(93924),u=r(11282),y=(r(66577),r(38171)),c=r(96674),f=r(70586),m=r(71715),d=r(82971),h=r(95642),g=r(74889),v=r(79166),_=r(13473),b=r(58901),C=r(17332);function R(e){return g.default.fromJSON(e).features.map((e=>e.geometry))}let Z=class extends c.wq{constructor(e){super(e),this.directions=null,this.facilities=null,this.incidents=null,this.messages=null,this.pointBarriers=null,this.polylineBarriers=null,this.polygonBarriers=null,this.routes=null}readFacilities(e){return R(e)}readIncidents(e){return R(e)}readPointBarriers(e,t){return R(t.barriers)}readPolylineBarriers(e){return R(e)}readPolygonBarriers(e){return R(e)}readRoutes(e){return function(e){return e.features.map((t=>{const r=d.Z.fromJSON(e.spatialReference),s=y.Z.fromJSON(t);return(0,f.pC)(s.geometry)&&(s.geometry.spatialReference=r),s}))}(e)}};(0,s._)([(0,o.Cb)({type:[h.Z]})],Z.prototype,"directions",void 0),(0,s._)([(0,o.Cb)({type:[_.Z]})],Z.prototype,"facilities",void 0),(0,s._)([(0,m.r)("facilities")],Z.prototype,"readFacilities",null),(0,s._)([(0,o.Cb)({type:[_.Z]})],Z.prototype,"incidents",void 0),(0,s._)([(0,m.r)("incidents")],Z.prototype,"readIncidents",null),(0,s._)([(0,o.Cb)({type:[v.Z]})],Z.prototype,"messages",void 0),(0,s._)([(0,o.Cb)({type:[_.Z]})],Z.prototype,"pointBarriers",void 0),(0,s._)([(0,m.r)("pointBarriers",["barriers"])],Z.prototype,"readPointBarriers",null),(0,s._)([(0,o.Cb)({type:[b.Z]})],Z.prototype,"polylineBarriers",void 0),(0,s._)([(0,m.r)("polylineBarriers")],Z.prototype,"readPolylineBarriers",null),(0,s._)([(0,o.Cb)({type:[C.Z]})],Z.prototype,"polygonBarriers",void 0),(0,s._)([(0,m.r)("polygonBarriers")],Z.prototype,"readPolygonBarriers",null),(0,s._)([(0,o.Cb)({type:[y.Z]})],Z.prototype,"routes",void 0),(0,s._)([(0,m.r)("routes")],Z.prototype,"readRoutes",null),Z=(0,s._)([(0,i.j)("esri.rest.support.ClosestFacilitySolveResult")],Z);const B=Z,T=(0,a.E)({accumulateAttributes:{name:"accumulateAttributeNames"},attributeParameterValues:!0,directionsTimeAttribute:{name:"directionsTimeAttributeName"},impedanceAttribute:{name:"impedanceAttributeName"},facilities:!0,incidents:!0,outSpatialReference:{name:"outSR",getter:e=>e.outSpatialReference.wkid},pointBarriers:{name:"barriers"},polylineBarriers:!0,polygonBarriers:!0,restrictionAttributes:{name:"restrictionAttributeNames"},returnPointBarriers:{name:"returnBarriers"},returnRoutes:{name:"returnCFRoutes"},travelMode:!0});var x=r(59633);let w=class extends x.Z{constructor(e){super(e),this.url=null}solve(e,t){return async function(e,t,r){const s=[],o=[],i={},a={},y=(0,u.en)(e),{path:c}=y;t.incidents&&t.incidents.features&&(0,p.et)(t.incidents.features,o,"incidents.features",i),t.facilities&&t.facilities.features&&(0,p.et)(t.facilities.features,o,"facilities.features",i),t.pointBarriers&&t.pointBarriers.features&&(0,p.et)(t.pointBarriers.features,o,"pointBarriers.features",i),t.polylineBarriers&&t.polylineBarriers.features&&(0,p.et)(t.polylineBarriers.features,o,"polylineBarriers.features",i),t.polygonBarriers&&t.polygonBarriers.features&&(0,p.et)(t.polygonBarriers.features,o,"polygonBarriers.features",i);const f=await(0,l.aX)(o);for(const e in i){const t=i[e];s.push(e),a[e]=f.slice(t[0],t[1])}if((0,p.Wf)(a,s)){let e=null;try{e=await(0,p.bI)(c,t.apiKey,r)}catch{}e&&!e.hasZ&&(0,p.ef)(a,s)}for(const e in a)a[e].forEach(((r,s)=>{t.get(e)[s].geometry=r}));const m={...r,query:{...y.query,...T.toQueryParams(t),f:"json"}},{data:d}=await(0,n.default)(`${c}/solveClosestFacility`,m);return B.fromJSON(d)}(this.url,e,t)}};(0,s._)([(0,o.Cb)()],w.prototype,"url",void 0),w=(0,s._)([(0,i.j)("esri.tasks.ClosestFacilityTask")],w);const S=w},59633:(e,t,r)=>{r.d(t,{Z:()=>p});var s=r(43697),o=r(15923),i=r(17452),n=r(5600),a=(r(67676),r(80442),r(75215),r(52011));let l=class extends o.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,i.mN)(e):null}_encode(e,t,r){const s={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i)){s[o]=[];for(let e=0;e<i.length;e++)s[o][e]=this._encode(i[e])}else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(r&&r[o]);s[o]=t?e:JSON.stringify(e)}else s[o]=t?i:JSON.stringify(i);else s[o]=i}return s}};(0,s._)([(0,n.Cb)({readOnly:!0})],l.prototype,"parsedUrl",null),(0,s._)([(0,n.Cb)()],l.prototype,"requestOptions",void 0),(0,s._)([(0,n.Cb)({type:String})],l.prototype,"url",void 0),l=(0,s._)([(0,a.j)("esri.tasks.Task")],l);const p=l}}]);