@arcgis/core 5.1.0-next.87 → 5.1.0-next.89

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 (255) hide show
  1. package/Graphic.js +1 -1
  2. package/analysis/LineOfSightAnalysisObserver.d.ts +2 -2
  3. package/analysis/LineOfSightAnalysisTarget.d.ts +2 -2
  4. package/applications/Components/arcadeUtils.d.ts +23 -0
  5. package/applications/Components/arcadeUtils.js +2 -0
  6. package/arcade/validation/arcadeValidator.js +1 -1
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/00e9e25269d5776f8645.js +1 -0
  9. package/assets/esri/core/workers/chunks/015fc0a17b17d69cc3bb.js +1 -0
  10. package/assets/esri/core/workers/chunks/0840e7dd62643c56ae9e.js +1 -0
  11. package/assets/esri/core/workers/chunks/0a6df243b18acae471be.js +1 -0
  12. package/assets/esri/core/workers/chunks/0cc4b3100a7a453bd058.js +1 -0
  13. package/assets/esri/core/workers/chunks/{b14c4c3f295970f731ab.js → 0e3dcf99382478181366.js} +1 -1
  14. package/assets/esri/core/workers/chunks/10cf6a70bf79f04a7208.js +1 -0
  15. package/assets/esri/core/workers/chunks/169ca3724053fc046d1b.js +1 -0
  16. package/assets/esri/core/workers/chunks/{aae40d70eb01249c1bab.js → 1e4e7111d43f01c149b3.js} +1 -1
  17. package/assets/esri/core/workers/chunks/206bdfd868a9ef88f3a8.js +1 -0
  18. package/assets/esri/core/workers/chunks/2343b1105bc4c1b4a086.js +1 -0
  19. package/assets/esri/core/workers/chunks/{2549a07f403447482f4e.js → 2dcfc4d7e76c922bcbf9.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{f89b7b0ccfbd1e5f9a0f.js → 3092184350d66c79f610.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{1ab66600579fa4232d7b.js → 3397eae416622c64e628.js} +1 -1
  22. package/assets/esri/core/workers/chunks/3469df5c4846b0cee012.js +1 -0
  23. package/assets/esri/core/workers/chunks/{26f804c92077c11c626d.js → 394812e19b6915d560b0.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{b9e163f4a898e50cc854.js → 39d6032d79720935910d.js} +1 -1
  25. package/assets/esri/core/workers/chunks/3feec3d08424b94e1bcf.js +1 -0
  26. package/assets/esri/core/workers/chunks/{d05a7ce6c1d4b883ed4c.js → 41cbde4738ae4adf973d.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{ce4dfc3a470230ddc9e4.js → 43f58604ba4a94a9167c.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{ff57a071156d8a7e47be.js → 456d269e3982c437010a.js} +1 -1
  29. package/assets/esri/core/workers/chunks/46b16501db6681dc467b.js +1 -0
  30. package/assets/esri/core/workers/chunks/48549d3d7bf0154c0afa.js +1 -0
  31. package/assets/esri/core/workers/chunks/{a401d44a5b45c05072c2.js → 4b9b9e6136c11d5d7901.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{fc6ca7ffb9f1b875059c.js → 51716e411fad624ac21c.js} +1 -1
  33. package/assets/esri/core/workers/chunks/5409369d0d637cb30257.js +1 -0
  34. package/assets/esri/core/workers/chunks/54c035cdc171998d0776.js +1 -0
  35. package/assets/esri/core/workers/chunks/{b23e677c33db6f9bac8a.js → 566f6319ded0634769e0.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{defac06f9e2b43090677.js → 73af4c947e8151d411c1.js} +2 -2
  37. package/assets/esri/core/workers/chunks/752f4e0e2961fc315dca.js +1 -0
  38. package/assets/esri/core/workers/chunks/{01bd1b86ba899c6aa4c0.js → 75c09a2fa4c34b4844c5.js} +1 -1
  39. package/assets/esri/core/workers/chunks/7ba67f1d7831a5576a5a.js +1 -0
  40. package/assets/esri/core/workers/chunks/{b2983f521d8c96becd8a.js → 7ed5b669010db58845f8.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{186bfde8c552e3b42302.js → 7ef51b0ebd560113ae7e.js} +1 -1
  42. package/assets/esri/core/workers/chunks/7f0f10946f05a09b5654.js +1 -0
  43. package/assets/esri/core/workers/chunks/81d761c837b7456ec99f.js +1 -0
  44. package/assets/esri/core/workers/chunks/83f1871d04c979fa23b7.js +1 -0
  45. package/assets/esri/core/workers/chunks/85da2987e17b6755a94e.js +1 -0
  46. package/assets/esri/core/workers/chunks/8a5a827ee557d9f9a66e.js +1 -0
  47. package/assets/esri/core/workers/chunks/{7185486c6dc28fc367a1.js → 90a8dfb03a437fe8a6e7.js} +1 -1
  48. package/assets/esri/core/workers/chunks/9c09097e390985bbac58.js +1 -0
  49. package/assets/esri/core/workers/chunks/{c9065cee85eb8dde6a42.js → a2159df718a7f2f59271.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{fce2306a1b31c6680f90.js → a232d05c0a055f398c6e.js} +1 -1
  51. package/assets/esri/core/workers/chunks/a432219de6a873f88776.js +1 -0
  52. package/assets/esri/core/workers/chunks/a508104179e08f0f268c.js +2 -0
  53. package/assets/esri/core/workers/chunks/{455d08294e0f5c5509ff.js → a6b75576d598ec161cc4.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{713ab619060bd5087479.js → adfa5c136c72c1e65770.js} +182 -157
  55. package/assets/esri/core/workers/chunks/{004af103a94d21cb4889.js → aefeb5a17bb481c95da3.js} +1 -1
  56. package/assets/esri/core/workers/chunks/b2662bfdbd1e3623ceb9.js +1 -0
  57. package/assets/esri/core/workers/chunks/b4bac22467e96be7a974.js +1 -0
  58. package/assets/esri/core/workers/chunks/{5166f204fd078dced5db.js → baea6f86b2dbe067940e.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{164ee62f2211987ad850.js → bb8d596f15fd3a0d783a.js} +1 -1
  60. package/assets/esri/core/workers/chunks/bea2fd831d7a864e5995.js +596 -0
  61. package/assets/esri/core/workers/chunks/c3e89c7c7b677bd18557.js +1 -0
  62. package/assets/esri/core/workers/chunks/cb81d524f12edcadb9bb.js +1 -0
  63. package/assets/esri/core/workers/chunks/cc0f3b9b153a0c232afe.js +1 -0
  64. package/assets/esri/core/workers/chunks/cd0c232f4e3868d91a05.js +1 -0
  65. package/assets/esri/core/workers/chunks/{3cf77b7a61f78f9bcd62.js → ceff78c9e31e3572a082.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{5cc38ac051d3d0557920.js → cfaa6e205bfc0c94a1b1.js} +1 -1
  67. package/assets/esri/core/workers/chunks/d5ad036d282df54b9ddc.js +1 -0
  68. package/assets/esri/core/workers/chunks/{475394218caaa4cd3e86.js → d7e7f3efd1d28617b808.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{9bd713d96502ddc2ce25.js → d8ccc713c5ad93e7a0c3.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{e66b9d00d02fc08cbb2d.js → da008d6a3afb30d18392.js} +1 -1
  71. package/assets/esri/core/workers/chunks/dde94664110ff231a52d.js +1 -0
  72. package/assets/esri/core/workers/chunks/de3e5d82502ee15b7eae.js +1 -0
  73. package/assets/esri/core/workers/chunks/e6fe8b5fbe95de01453b.js +1 -0
  74. package/assets/esri/core/workers/chunks/ee7e9bca57160694b3c4.js +1 -0
  75. package/assets/esri/core/workers/chunks/{f37e4ae0e9be80210db0.js → f2c11f54255fd506655e.js} +1 -1
  76. package/assets/esri/core/workers/chunks/f36345ebb9851ab92453.js +1 -0
  77. package/assets/esri/core/workers/chunks/{c503c79ba5761f7abbeb.js → fa869bfe4366f7f49cca.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{d8de7fe49dba9ed589df.js → fade7b878a9498382bb2.js} +1 -1
  79. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  80. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  81. package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
  82. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ar.json +1 -1
  83. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bg.json +1 -1
  84. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bs.json +1 -1
  85. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ca.json +1 -1
  86. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_cs.json +1 -1
  87. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_da.json +1 -1
  88. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_de.json +1 -1
  89. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_el.json +1 -1
  90. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_es.json +1 -1
  91. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_et.json +1 -1
  92. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fi.json +1 -1
  93. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fr.json +1 -1
  94. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_he.json +1 -1
  95. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hr.json +1 -1
  96. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hu.json +1 -1
  97. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_id.json +1 -1
  98. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_it.json +1 -1
  99. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ja.json +1 -1
  100. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ko.json +1 -1
  101. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lt.json +1 -1
  102. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lv.json +1 -1
  103. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_nl.json +1 -1
  104. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_no.json +1 -1
  105. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pl.json +1 -1
  106. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-BR.json +1 -1
  107. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-PT.json +1 -1
  108. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ro.json +1 -1
  109. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ru.json +1 -1
  110. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sk.json +1 -1
  111. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sl.json +1 -1
  112. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sr.json +1 -1
  113. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sv.json +1 -1
  114. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_th.json +1 -1
  115. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_tr.json +1 -1
  116. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_uk.json +1 -1
  117. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_vi.json +1 -1
  118. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-CN.json +1 -1
  119. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-HK.json +1 -1
  120. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-TW.json +1 -1
  121. package/chunks/ComponentShader.glsl.js +3 -3
  122. package/chunks/GlobalIllumination.glsl.js +25 -17
  123. package/chunks/GlowBlur.glsl.js +11 -8
  124. package/chunks/OITBlend.glsl.js +1 -1
  125. package/chunks/bundle2.js +1 -1
  126. package/chunks/index.js +1 -1
  127. package/config.js +1 -1
  128. package/core/has.js +1 -1
  129. package/interfaces.d.ts +7 -3
  130. package/kernel.js +1 -1
  131. package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
  132. package/layers/graphics/data/QueryEngineResult.js +1 -1
  133. package/layers/graphics/sources/OGCFeatureSource.js +1 -1
  134. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  135. package/layers/mixins/ArcGISImageService.js +1 -1
  136. package/layers/support/SubtypeSublayer.js +1 -1
  137. package/layers/support/capabilities.js +1 -1
  138. package/layers/support/layerUtils.js +1 -1
  139. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  140. package/networks/CircuitManager.d.ts +33 -25
  141. package/networks/CircuitManager.js +1 -1
  142. package/networks/support/typeUtils.d.ts +4 -1
  143. package/networks/support/typeUtils.js +1 -1
  144. package/package.json +2 -2
  145. package/renderers/ClassBreaksRenderer.js +1 -1
  146. package/renderers/UniqueValueRenderer.js +1 -1
  147. package/renderers/support/scaleDependentSymbolUtils.js +2 -0
  148. package/rest/networks/circuits/queryCircuits.js +1 -1
  149. package/rest/networks/circuits/support/QueryCircuitsParameters.d.ts +21 -15
  150. package/rest/networks/circuits/support/QueryCircuitsParameters.js +1 -1
  151. package/rest/query/operations/query.js +1 -1
  152. package/rest/support/Query.js +1 -1
  153. package/support/revision.js +1 -1
  154. package/third-party-notices.txt +19 -12
  155. package/views/2d/engine/webgl/GlyphSDFCreator.js +1 -1
  156. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  157. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringStore.js +2 -0
  158. package/views/3d/analysis/LineOfSight/LineOfSightAuthoringUtils.js +2 -0
  159. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  160. package/views/3d/analysis/LineOfSight/LineOfSightDrawToolRenderer.js +2 -0
  161. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +2 -0
  162. package/views/3d/analysis/LineOfSight/LineOfSightPlacementTool.js +2 -0
  163. package/views/3d/analysis/LineOfSight/LineOfSightRootPlugin.js +2 -0
  164. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +2 -0
  165. package/views/3d/analysis/LineOfSight/LineOfSightTool2.js +1 -1
  166. package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
  167. package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
  168. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  169. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  170. package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +1 -1
  171. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  172. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +3 -3
  173. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +22 -16
  174. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +149 -0
  175. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +2 -2
  176. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizer.js +1 -1
  177. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  178. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  179. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  180. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
  181. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  182. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFieldCreation.js +1 -1
  183. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBuffer.js +1 -1
  184. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  185. package/views/3d/webgl-engine/materials/DefaultBufferWriter.js +1 -1
  186. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  187. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  188. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  189. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  190. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  191. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  192. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  193. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  194. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  195. package/views/3d/webgl-engine/materials/WaterTechniqueConfiguration.js +1 -1
  196. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  197. package/views/3d/webgl-engine/materials/renderers/TextureBufferCache.js +1 -1
  198. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
  199. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  200. package/views/3d/webgl-engine/shaders/RibbonLineLayouts.js +2 -0
  201. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  202. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  203. package/webmap/utils.js +1 -1
  204. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  205. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  206. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +64 -0
  207. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +2 -0
  208. package/widgets/BatchAttributeForm/inputs/BatchFormInputs.d.ts +3 -0
  209. package/widgets/BatchAttributeForm/inputs/BatchFormInputs.js +1 -1
  210. package/widgets/BatchAttributeForm/inputs/GroupInput.d.ts +2 -1
  211. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  212. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  213. package/widgets/BatchAttributeForm/inputs/types.d.ts +4 -2
  214. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  215. package/assets/esri/core/workers/chunks/0c074c46d106ca4d3bad.js +0 -1
  216. package/assets/esri/core/workers/chunks/1f16bc8c02d8c4b2f693.js +0 -1
  217. package/assets/esri/core/workers/chunks/29878b52aa12b3815230.js +0 -1
  218. package/assets/esri/core/workers/chunks/2c916b93d8a6e6b9c0d7.js +0 -1
  219. package/assets/esri/core/workers/chunks/3e72bd6dbfc52d956c06.js +0 -1
  220. package/assets/esri/core/workers/chunks/3ea5a18b264628dc37f0.js +0 -1
  221. package/assets/esri/core/workers/chunks/41913575dd45c65d645e.js +0 -1
  222. package/assets/esri/core/workers/chunks/46e622857ba92a72a317.js +0 -1
  223. package/assets/esri/core/workers/chunks/49e8144effc299dfcd66.js +0 -1
  224. package/assets/esri/core/workers/chunks/4d0f793dee4ad919221b.js +0 -1
  225. package/assets/esri/core/workers/chunks/65ac73de5bb133c6bf89.js +0 -1
  226. package/assets/esri/core/workers/chunks/67ec1694d6e18b7c234c.js +0 -1
  227. package/assets/esri/core/workers/chunks/6e526c06825ecc6c99c0.js +0 -1
  228. package/assets/esri/core/workers/chunks/6f7aaba26773fe416ac2.js +0 -1
  229. package/assets/esri/core/workers/chunks/7acf82763aeba44049d0.js +0 -1
  230. package/assets/esri/core/workers/chunks/88eb1e4320c4ada01711.js +0 -1
  231. package/assets/esri/core/workers/chunks/8af9a78cf316581ea482.js +0 -1
  232. package/assets/esri/core/workers/chunks/96bba4d93a32ad34a1c8.js +0 -1
  233. package/assets/esri/core/workers/chunks/97719271a3e4c9f2b2c9.js +0 -1
  234. package/assets/esri/core/workers/chunks/9ea23cd4b2664c08b670.js +0 -1
  235. package/assets/esri/core/workers/chunks/a1a12552d34ea9eea130.js +0 -1
  236. package/assets/esri/core/workers/chunks/a429355534bf6cbd8304.js +0 -1
  237. package/assets/esri/core/workers/chunks/ac5999c88c27b49cd760.js +0 -1
  238. package/assets/esri/core/workers/chunks/b575292013bceef9b015.js +0 -1
  239. package/assets/esri/core/workers/chunks/bbc27d9285162696d089.js +0 -1
  240. package/assets/esri/core/workers/chunks/bc8a74da48b08309875f.js +0 -1
  241. package/assets/esri/core/workers/chunks/cd7159600ce132e32d04.js +0 -1
  242. package/assets/esri/core/workers/chunks/ce66c551b7083913eee5.js +0 -1
  243. package/assets/esri/core/workers/chunks/cf7acf5acb6d322fd996.js +0 -1
  244. package/assets/esri/core/workers/chunks/d00dddc3881fa29446e1.js +0 -1
  245. package/assets/esri/core/workers/chunks/d9c3f14eee4db7a7137b.js +0 -1
  246. package/assets/esri/core/workers/chunks/db3c484bfa607dec6050.js +0 -1
  247. package/assets/esri/core/workers/chunks/dcc719e15b2e0cce1f3b.js +0 -1
  248. package/assets/esri/core/workers/chunks/f43d628d47eec7d530c7.js +0 -1
  249. package/assets/esri/core/workers/chunks/f9fe3c9867b0bdb2aec6.js +0 -596
  250. package/assets/esri/core/workers/chunks/fae147d03ed723ab234d.js +0 -1
  251. package/assets/esri/core/workers/chunks/fcf51697c361e0075cc2.js +0 -1
  252. package/assets/esri/core/workers/chunks/fe30e61652716fcccf16.js +0 -2
  253. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +0 -132
  254. /package/assets/esri/core/workers/chunks/{defac06f9e2b43090677.js.LICENSE.txt → 73af4c947e8151d411c1.js.LICENSE.txt} +0 -0
  255. /package/assets/esri/core/workers/chunks/{fe30e61652716fcccf16.js.LICENSE.txt → a508104179e08f0f268c.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5431,6219],{46140(e,t,r){r.d(t,{A:()=>i});var n=r(49186);class i{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new n.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new n.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(o,10);return new i(a,l,t)}}},6797(e,t,r){r.d(t,{Ui:()=>p});var n=r(69622),i=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof n.A}function l(e){return e instanceof i.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof i.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function d(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const n=l(e),i=l(t);if(0===n.length&&0===i.length)return;if(!n.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=i.filter(e=>!n.includes(e)),p=n.filter(e=>!i.includes(e)),f=n.filter(r=>i.includes(r)&&u(e,r)!==u(t,r)).concat(o,p).sort(),h=c(e);if(h&&s.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let y;const m=a(e)&&a(t);for(const n of f){const i=u(e,n),o=u(t,n);let s;if((m||"function"!=typeof i&&"function"!=typeof o)&&i!==o&&(null!=i||null!=o)){if(r&&r[n]&&"function"==typeof r[n])s=r[n]?.(i,o);else if(i instanceof Date&&o instanceof Date){if(i.getTime()===o.getTime())continue;s={type:"complete",oldValue:i,newValue:o}}else s="object"==typeof i&&"object"==typeof o&&c(i)===c(o)?d(i,o):{type:"complete",oldValue:i,newValue:o};null!=s&&(null!=y?y.diff[n]=s:y={type:"partial",diff:{[n]:s}})}}return y}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},16494(e,t,r){r.d(t,{Nd:()=>a,W5:()=>s});var n=r(17632);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),o=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],s=new n.I({whiteList:i,onTagAttr:(e,t,r)=>{const n=`${t}="${r}"`;if(o.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a=new n.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},62815(e,t,r){r.d(t,{N:()=>a,d:()=>l});var n=r(86211),i=r(73941),o=r(21325),s=r(52006);function a(e,t,r){const n=l(t,r);if(1!==n)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,n);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const r of e.curvePaths)for(const e of r){const r=(0,s.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}}(e,n);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const r of e.curveRings)for(const e of r){const r=(0,s.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}}(e,n);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,n);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,n);default:return}}function l(e,t){return null==e||null==t||t.vcsWkid||(0,o.aI)(e,t)||(0,i.xP)(e)||(0,i.xP)(t)?1:(0,n.G9)(e)/(0,n.G9)(t)}},4146(e,t,r){r.d(t,{A:()=>w});var n=r(5482),i=r(11254),o=r(49186),s=r(65529),a=r(4902),l=r(92474),u=r(53966),c=r(17676),d=r(84952),p=r(91429),f=r(5443),h=r(16930),y=r(92602),m=r(79677);let g=0,w=class extends((0,s.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.A(-180,-90,180,90,h.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=h.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([r.e(812),r.e(5613),r.e(909)]).then(r.bind(r,45613));try{return await n(t)}catch(e){const r=t?.portalItem,n=r?.id||"unset",i=r?.portal?.url||y.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,p.MZ)({type:String})],w.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],w.prototype,"effectiveVisible",null),(0,n.Cg)([(0,p.MZ)({type:f.A})],w.prototype,"fullExtent",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],w.prototype,"hasAttributionData",null),(0,n.Cg)([(0,p.MZ)({type:String,clonable:!1})],w.prototype,"id",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],w.prototype,"listMode",void 0),(0,n.Cg)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],w.prototype,"opacity",void 0),(0,n.Cg)([(0,p.MZ)({clonable:!1})],w.prototype,"parent",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,n.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],w.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],w.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],w.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,p.MZ)({type:h.A})],w.prototype,"spatialReference",void 0),(0,n.Cg)([(0,p.MZ)({type:String})],w.prototype,"title",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)()],w.prototype,"url",void 0),(0,n.Cg)([(0,p.MZ)({type:m.A})],w.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"visible",void 0),w=(0,n.Cg)([(0,p.$K)("esri.layers.Layer")],w)},52136(e,t,r){r.d(t,{p:()=>o});var n=r(5482),i=r(91429);const o=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,n.Cg)([(0,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},32756(e,t,r){r.d(t,{Rr:()=>a,fY:()=>u,ne:()=>l});var n=r(5482),i=r(93637),o=r(91429),s=r(91880);function a(e,t,r){if(!e)return null;const n=e.find(e=>!!e.field);if(!n)return null;const i=new s.A;return i.read(n,r),[i]}const l={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,n){const o=e.find(e=>!!e.field);o&&(0,i.sM)(r,[o.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,n.Cg)([(0,o.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r}},28032(e,t,r){r.d(t,{A:()=>l});var n=r(5482),i=r(69540),o=r(25482),s=r(91429),a=r(56400);let l=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,n.Cg)([(0,s.MZ)()],l.prototype,"creatorField",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"creationDateField",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"editorField",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"editDateField",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"realm",void 0),(0,n.Cg)([(0,s.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],l.prototype,"timeZone",void 0),l=(0,n.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],l)},29005(e,t,r){r.d(t,{A:()=>u});var n=r(5482),i=r(69540),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({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 u=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],u.prototype,"drawingTool",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,n.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>d});var n=r(5482),i=r(69540),o=r(25482),s=r(91429),a=r(8631),l=r(29005),u=r(36005),c=r(43937);let d=class extends((0,i.OU)(o.o)){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,a.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,n.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,n.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,n.Cg)([(0,c.K)("domains")],d.prototype,"writeDomains",null),(0,n.Cg)([(0,s.MZ)({type:[l.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,n.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],d)},30279(e,t,r){r.d(t,{A:()=>u});var n=r(5482),i=r(69540),o=r(25482),s=r(10107),a=r(64108),l=r(62044);let u=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,n.Cg)([(0,s.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,n.Cg)([(0,s.MZ)({types:l.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,n.Cg)([(0,a.$)("esri.layers.support.FieldConfiguration")],u)},37352(e,t,r){r.d(t,{A:()=>l});var n,i=r(5482),o=r(7762),s=r(25482),a=r(91429);let l=n=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new n({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"floorField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],l)},91880(e,t,r){r.d(t,{A:()=>u});var n,i=r(5482),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{n=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],u.prototype,"order",void 0),u=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,r){r.d(t,{A:()=>c});var n=r(5482),i=r(69540),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,n.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],c.prototype,"cardinality",void 0),(0,n.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,n.Cg)([(0,a.$K)("esri.layers.support.Relationship")],c)},17311(e,t,r){r.d(t,{A:()=>f});var n=r(5482),i=r(69622),o=r(4576),s=r(60999),a=r(7762),l=r(16494),u=r(91429),c=r(30524),d=r(43668);const p=/<br\s*\/*>/gi;let f=class extends i.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,s.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(4560),r.e(9301)]).then(r.bind(r,99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new a.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),n=this.fieldsIndex.get(r.at(-1)??"");n&&e.add(n.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const n=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(n)??""}async getTitles(e,t,r){const n=new Map,i=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:s,workingTitle:a}=this,u=a&&s;t.forEach(t=>{const c=t.getObjectId()??t.attributes[e.objectIdField];let d=u?o({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:s,globalAttributes:this._createFormattedAttributes(e,t,i).global,layer:e,text:a}):"";r?.removeHTML&&(d=l.Nd.sanitize(d).replaceAll(p," ")),n.set(c,d)})}catch{}return n}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(o.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){const n=e.createQuery();n.where="1=1",n.outFields=[...this.requiredFields],n.objectIds=r;const i=await e.queryFeatures(n);if(i?.features.length===t.length)return i.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),n=e?.name??r.fieldName;r.fieldName=n,t.set(n.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const n=this.effectivePopupTemplate?.fieldInfos??[],i={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{i[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const o={...t.attributes,...i};return{global:this._featureUtils.formatAttributes({fieldInfos:n,attributes:o,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,n.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"_arcadeTask",null),(0,n.Cg)([(0,u.MZ)()],f.prototype,"_featureUtils",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"featureUtilsPromise",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"calculatedExpressions",null),(0,n.Cg)([(0,u.MZ)()],f.prototype,"displayField",void 0),(0,n.Cg)([(0,u.MZ)()],f.prototype,"effectivePopupTemplate",void 0),(0,n.Cg)([(0,u.MZ)()],f.prototype,"expressionsUsedInTitle",null),(0,n.Cg)([(0,u.MZ)()],f.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,u.MZ)()],f.prototype,"fieldInfoMap",null),(0,n.Cg)([(0,u.MZ)()],f.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)()],f.prototype,"objectIdField",void 0),(0,n.Cg)([(0,u.MZ)()],f.prototype,"requiredFields",null),f=(0,n.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],f)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>o});var n=r(34727),i=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const o=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:n}of e.filters)t[0]=Math.max(t[0],c(r)),t[1]=Math.min(t[1],d(n));return t}(e);if(o&&((0,n.gg)(t,o[0])||(0,n.ZH)(r,o[1])))return"";const s=Array.from(a(e,t,r)),l=function(e,t,r){if(0===e.length)return!0;const i=c(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,n.ZH)(i,t)||(0,n.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],i=e[t+1];if((0,n.ZH)(c(i.minScale),d(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,r){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const n of e.filters)l(n.minScale,n.maxScale,t,r)&&(yield n)}}function l(e,t,r,i){return e=c(e),r=c(r),t=d(t),!(!(0,n.Sp)(r,e)&&(i??r)>e||(0,n.Hx)(t,r)||void 0!==i&&(0,n.Sp)(i,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},16194(e,t,r){r.d(t,{QX:()=>l,sS:()=>c,xY:()=>u});var n=r(4718),i=r(30279),o=r(62044),s=r(30524),a=r(41227);function l(e){const{popupTemplate:t,fieldsIndex:r}=e,n=t?.fieldInfos;if(!n?.length||!r)return;const s=[];for(const e of n){const{fieldName:t,label:n}=e,a=r.get(t);if(!a)continue;const l=n&&n!==a.alias?n:null,u=(0,o.iu)(e,a);(l||u)&&s.push(new i.A({name:a.name,alias:l,fieldFormat:u}))}return s.length?s:null}function u(e){const{fields:t}=e;if(!t?.length)return;const r=[];for(const e of t){const t=(0,o.qH)(e)?(0,o.$P)(e):null;t&&r.push(new i.A({name:e.name,fieldFormat:t}))}return r.length?r:null}function c(e,t){const{popupTemplate:r,fieldsIndex:i}=e;if(!r||!i)return;const s=function(e,t,r){t??=[],r=(0,n.o8)(r)??[];let i=!1;const s=new Map;for(const r of t){const t=e.fieldsIndex.get(r.name);t&&s.set(t.name,r)}for(const t of r){const r=e.fieldsIndex.get(t.fieldName);if(!r)continue;const n=s.get(r.name);t.label=n?.alias||r.alias,t.format=(0,o.qH)(r)&&n?.fieldFormat?(0,o.PK)(n.fieldFormat,r):null,i=!0,s.delete(r.name)}for(const t of s.values()){const n=d(e,t);n&&(r.push(n),i=!0)}return i?r:null}(e,t,r.fieldInfos);if(!s)return;const a=r.clone();return a.fieldInfos=s,a}function d(e,t){const{name:r,alias:n,fieldFormat:i}=t,l=e.fieldsIndex.get(r);if(!l||!n&&!i)return;const u=n||l.alias,c=(0,o.qH)(l)&&i?(0,o.PK)(i,l):null;return new a.A({fieldName:l.name,label:u,format:c,visible:!1,isEditable:(0,s.R$)(l,e)})}},77548(e,t,r){r.d(t,{Gh:()=>j,tk:()=>F,BR:()=>M,p2:()=>x,qd:()=>_,wI:()=>A,G$:()=>Z,$x:()=>I,Ov:()=>v,cM:()=>p,UC:()=>f,W_:()=>b,Qz:()=>h,OP:()=>S,TU:()=>w,F2:()=>y,XX:()=>g,jy:()=>T});var n=r(70333),i=r(11254),o=r(7762),s=(r(84952),r(36563)),a=r(36708),l=r(4146);const u=new WeakMap;function c(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||c(t))},t=>u.set(e,t),a.pc),(0,s.hA)(()=>u.delete(e))]),u.get(e))}function d(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function p(e){return d(e,"knowledge-graph")&&"layers"in e}function f(e){return d(e,"knowledge-graph-sublayer")}function h(e){return d(e,"link-chart")&&"layers"in e}function y(e){return d(e,"subtype-group")&&"sublayers"in e}function m(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function w(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function b(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function T(e){return function(e){return"subtype-sublayer"===e?.type}(e)||function(e){return null!=e&&"object"==typeof e&&"type"in e&&"oriented-imagery"===e.type}(e)||function(e){return d(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)}function C(e){const t=e?.type;return"binning"===t||"cluster"===t}function x(e,t){if(!T(e))return;const r=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&n?C(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?C(n)?n:null:e}async function A(e,t){const r=n.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const o=e.toLowerCase().indexOf("/rest/services");if(-1===o)return null;const s=`${e.slice(0,o)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,i.A)(s,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function M(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function F(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function _(e){const t=new o.A;for(const r of e.allLayers.concat(e.allTables))c(r)||m(r)||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function I(e,t){return null}function Z(e){return null}function S(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function j(e,t){if(!t||!S(e))return;const r=(e.url,null);r&&(e.url=r)}},73681(e,t,r){r.d(t,{n:()=>l});var n=r(49186),i=r(53966),o=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,c=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const p=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))p.delete(e);p.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:p});const f=await(0,a.xR)(e.expression,null,d);if(!f)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!s||!s.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const y=new u(r,h);return new l(h,c,f,y)}constructor(e,t,r,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,r,n){try{return this._reader.bind(e,r,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},58501(e,t,r){r.d(t,{q:()=>i});var n=r(62815);function i(e,t,r){if(!r?.features||!r.hasZ)return;const i=(0,n.N)(r.geometryType,t,e.outSpatialReference);if(i)for(const e of r.features)i(e.geometry)}},41366(e,t,r){r.d(t,{K:()=>d,Q:()=>l});var n=r(5482),i=r(66552),o=r(53966),s=r(91429),a=r(93223);const l=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",d=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&c||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,n.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r}},55674(e,t,r){r.d(t,{Ad:()=>f,Gj:()=>m,QY:()=>p,lL:()=>g,xR:()=>h});var n=r(66131),i=r(49186),o=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),u=r(43668),c=r(98623);const d=["geometry","scale","timeProperties"];function p(e,t){if(null!=t)for(const r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function f(e,t){return y.create(e,t,null,["$feature","$view"])}function h(e,t,r){return y.create(e,t,r,["$feature","$view","$config"])}class y{static async create(e,t,r,n){const{arcade:o,Dictionary:s}=await(0,u.l)();let a;try{a=o.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const c={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=o.compileScript(a,c);let p=null;null!=r&&(p=new s(r),p.immutable=!0);const f=new s;return f.immutable=!1,f.setField("scale",0),new y(e,o,a,d,t,f,p,s)}constructor(e,t,r,n,i,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=r?n.lY.epochToArcadeDate(i,r):n.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=o?null!=r?n.lY.epochToArcadeDate(o,r):n.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const n=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},16215(e,t,r){r.d(t,{S:()=>i,Y:()=>n});const n=Symbol("BasemapInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}},79677(e,t,r){r.d(t,{A:()=>p});var n,i=r(5482),o=r(25482),s=r(88930),a=r(91429),l=r(98623),u=r(10184),c=r(36005),d=r(43937);let p=class extends o.o{static{n=this}static get allTime(){return f}static get empty(){return h}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,s.lL)(r,new u.A({value:1,unit:e}),t));let i=this.end;if(i){const r=(0,s.lL)(i,new u.A({value:1,unit:e}),t);i=i.getTime()===r.getTime()?r:(0,s.S1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;let s,a;return i>=t&&i<=r?s=i:t>=i&&t<=o&&(s=t),r>=i&&r<=o?a=r:o>=t&&o<=r&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?n.empty:new n({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(e,t,r=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const i=new n,{start:o,end:a}=this;return null!=o&&(i.start=(0,s.S1)(o,e,t,r)),null!=a&&(i.end=(0,s.S1)(a,e,t,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return f.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i.Cg)([(0,c.w)("end")],p.prototype,"readEnd",null),(0,i.Cg)([(0,d.K)("end")],p.prototype,"writeEnd",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i.Cg)([(0,c.w)("start")],p.prototype,"readStart",null),(0,i.Cg)([(0,d.K)("start")],p.prototype,"writeStart",null),p=n=(0,i.Cg)([(0,a.$K)("esri.time.TimeExtent")],p);const f=new p,h=new p({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>c});var n=r(5482),i=r(69540),o=r(25482),s=r(88930),a=r(91429),l=r(73133),u=r(93223);let c=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,u.e)(l.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,n.Cg)([(0,a.$K)("esri.time.TimeInterval")],c)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5275],{52106(e,t,r){r.d(t,{A:()=>S});var o,s,i=r(5482),n=r(37838),l=r(69540),a=r(51447),u=r(25482),p=r(4718),d=r(53966),h=r(36708),c=r(24326),y=r(91429),g=r(12195),m=r(65864),f=r(50498),v=r(55156),C=r(60950),M=r(54339),b=r(94128),w=r(33910);function Z(e){if(null==e)return null;const t={};for(const r in e){const o=e[r];o&&(t[r]=o.toJSON())}return 0!==Object.keys(t).length?t:null}let S=class extends((0,l.OU)(u.o)){static{o=b.Z}static{s=this}constructor(e){super(e),this[o]=!0,this.aggregateIds=void 0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(d.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,aggregateIds:this.aggregateIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,C.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,v.I)(this.origin);if(e)return(0,M.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){const e=(0,v.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:Z(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.aggregateIds?.length&&(e.aggregateIds=(0,p.o8)(this.aggregateIds)),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,o){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(s.action=o),"attributes"===e&&(s.attributeName=o),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.addHandles([(0,h.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,h.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,i.Cg)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const o=(0,m.rS)(e[r]);o&&(t[r]=o)}return 0!==Object.keys(t).length?t:null}}})],S.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,y.MZ)()],S.prototype,"aggregateIds",void 0),(0,i.Cg)([(0,y.MZ)({value:null})],S.prototype,"attributes",null),(0,i.Cg)([(0,y.MZ)({value:null,types:f.yR,json:{read:m.rS}})],S.prototype,"geometry",null),(0,i.Cg)([(0,y.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,i.Cg)([(0,y.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,i.Cg)([(0,y.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,i.Cg)([(0,y.MZ)({type:n.A,value:null})],S.prototype,"popupTemplate",null),(0,i.Cg)([(0,y.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,y.MZ)({value:null,types:w.Es})],S.prototype,"symbol",null),(0,i.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=s=(0,i.Cg)([(0,y.$K)("esri.Graphic")],S)},4902(e,t,r){r.d(t,{s:()=>n});var o=r(5482),s=r(64108);let i=0;const n=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return r=(0,o.Cg)([(0,s.$)("esri.core.Identifiable")],r),r};n(class{})},92474(e,t,r){r.d(t,{WV:()=>h,Zm:()=>y,x_:()=>c});var o=r(5482),s=r(49186),i=r(97768),n=r(61893),l=r(17676),a=r(67076),u=r(10107),p=r(64108);const d="loaded",h=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(e=>{const t=this.load.bind(this);this.load=r=>{const o=new Promise((e,t)=>{const o=(0,l.NY)(r,t);this.destroyed&&t(new s.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(e,t).finally(()=>{o&&o.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const e=this._loadController=new AbortController;t({signal:e.signal})}return e(),o}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},e=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",e),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(e){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new s.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,o.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,o.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,o.Cg)([(0,u.MZ)({type:[a.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,o.Cg)([(0,p.$)("esri.core.Loadable")],r),r},c=h(n.Z);function y(e){return!(!e||!e.load)}},61893(e,t,r){r.d(t,{Z:()=>p,g:()=>u});var o=r(5482),s=r(69622),i=r(36563),n=r(17676),l=r(64108);class a{constructor(){this._resolver=Promise.withResolvers(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,n.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const e=Promise.withResolvers(),t=[...this._resolvingPromises,e.promise],r=this._allPromise=Promise.all(t);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},e=>{this.isFulfilled()||this._allPromise!==r||(0,n.zf)(e)||this._resolver.reject(e)}),e.resolve()}}const u=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this._promiseProps=new a,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then(()=>this).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}addResolvingTask(e){e&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(e)),this._promiseProps.addResolvingPromise(e.promise))}};return r=(0,o.Cg)([(0,l.$)("esri.core.Promise")],r),r},p=u(s.A)},16494(e,t,r){r.d(t,{Nd:()=>l,W5:()=>n});var o=r(17632);const s=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),i=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],n=new o.I({whiteList:s,onTagAttr:(e,t,r)=>{const o=`${t}="${r}"`;if(i.includes(t))return o},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l=new o.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},55156(e,t,r){r.d(t,{I:()=>s,e:()=>o});const o=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&o in t?e[o]:void 0;var t}},4146(e,t,r){r.d(t,{A:()=>v});var o=r(5482),s=r(11254),i=r(49186),n=r(65529),l=r(4902),a=r(92474),u=r(53966),p=r(17676),d=r(84952),h=r(91429),c=r(5443),y=r(16930),g=r(92602),m=r(79677);let f=0,v=class extends((0,n.Zt)((0,l.s)(a.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new c.A(-180,-90,180,90,y.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:o}=await Promise.all([r.e(812),r.e(5613),r.e(909)]).then(r.bind(r,45613));try{return await o(t)}catch(e){const r=t?.portalItem,o=r?.id||"unset",s=r?.portal?.url||g.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+o+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,p.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new i.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new i.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,o.Cg)([(0,h.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,o.Cg)([(0,h.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,o.Cg)([(0,h.MZ)({type:c.A})],v.prototype,"fullExtent",void 0),(0,o.Cg)([(0,h.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,o.Cg)([(0,h.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,o.Cg)([(0,h.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,o.Cg)([(0,h.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,o.Cg)([(0,h.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,o.Cg)([(0,h.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,o.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,o.Cg)([(0,h.MZ)({type:y.A})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,h.MZ)({type:String})],v.prototype,"title",void 0),(0,o.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,o.Cg)([(0,h.MZ)()],v.prototype,"url",void 0),(0,o.Cg)([(0,h.MZ)({type:m.A})],v.prototype,"visibilityTimeExtent",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,o.Cg)([(0,h.$K)("esri.layers.Layer")],v)},52136(e,t,r){r.d(t,{p:()=>i});var o=r(5482),s=r(91429);const i=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,o.Cg)([(0,s.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,o.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},32756(e,t,r){r.d(t,{Rr:()=>l,fY:()=>u,ne:()=>a});var o=r(5482),s=r(93637),i=r(91429),n=r(91880);function l(e,t,r){if(!e)return null;const o=e.find(e=>!!e.field);if(!o)return null;const s=new n.A;return s.read(o,r),[s]}const a={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,o){const i=e.find(e=>!!e.field);i&&(0,s.sM)(r,[i.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,o.Cg)([(0,i.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,o.Cg)([(0,i.$K)("esri.layers.mixins.OrderedLayer")],r),r}},28032(e,t,r){r.d(t,{A:()=>a});var o=r(5482),s=r(69540),i=r(25482),n=r(91429),l=r(56400);let a=class extends((0,s.OU)(i.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,o.Cg)([(0,n.MZ)()],a.prototype,"creatorField",void 0),(0,o.Cg)([(0,n.MZ)()],a.prototype,"creationDateField",void 0),(0,o.Cg)([(0,n.MZ)()],a.prototype,"editorField",void 0),(0,o.Cg)([(0,n.MZ)()],a.prototype,"editDateField",void 0),(0,o.Cg)([(0,n.MZ)()],a.prototype,"realm",void 0),(0,o.Cg)([(0,n.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,o.Cg)([(0,n.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>u});var o=r(5482),s=r(69540),i=r(66552),n=r(25482),l=r(91429);const a=new i.J({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 u=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,o.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>d});var o=r(5482),s=r(69540),i=r(25482),n=r(91429),l=r(8631),a=r(29005),u=r(36005),p=r(43937);let d=class extends((0,s.OU)(i.o)){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,l.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,o.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,o.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,o.Cg)([(0,n.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,o.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,o.Cg)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,o.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,o.Cg)([(0,n.$K)("esri.layers.support.FeatureType")],d)},30279(e,t,r){r.d(t,{A:()=>u});var o=r(5482),s=r(69540),i=r(25482),n=r(10107),l=r(64108),a=r(62044);let u=class extends((0,s.OU)(i.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,o.Cg)([(0,n.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,o.Cg)([(0,n.MZ)({types:a.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,o.Cg)([(0,l.$)("esri.layers.support.FieldConfiguration")],u)},37352(e,t,r){r.d(t,{A:()=>a});var o,s=r(5482),i=r(7762),n=r(25482),l=r(91429);let a=o=class extends n.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.A}clone(){return new o({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=o=(0,s.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>u});var o,s=r(5482),i=r(66552),n=r(25482),l=r(91429);const a=new i.J({asc:"ascending",desc:"descending"});let u=class extends n.o{static{o=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new o({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,s.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=o=(0,s.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,r){r.d(t,{A:()=>p});var o=r(5482),s=r(69540),i=r(66552),n=r(25482),l=r(91429);const a=new i.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new i.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,o.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,o.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,o.Cg)([(0,l.$K)("esri.layers.support.Relationship")],p)},17311(e,t,r){r.d(t,{A:()=>c});var o=r(5482),s=r(69622),i=r(4576),n=r(60999),l=r(7762),a=r(16494),u=r(91429),p=r(30524),d=r(43668);const h=/<br\s*\/*>/gi;let c=class extends s.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,n.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(4560),r.e(9301)]).then(r.bind(r,99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),o=this.fieldsIndex.get(r.at(-1)??"");o&&e.add(o.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const o=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(o)??""}async getTitles(e,t,r){const o=new Map,s=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:i}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:n,workingTitle:l}=this,u=l&&n;t.forEach(t=>{const p=t.getObjectId()??t.attributes[e.objectIdField];let d=u?i({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:n,globalAttributes:this._createFormattedAttributes(e,t,s).global,layer:e,text:l}):"";r?.removeHTML&&(d=a.Nd.sanitize(d).replaceAll(h," ")),o.set(p,d)})}catch{}return o}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(i.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,p.Kl)(e,this.requiredFields))){const o=e.createQuery();o.where="1=1",o.outFields=[...this.requiredFields],o.objectIds=r;const s=await e.queryFeatures(o);if(s?.features.length===t.length)return s.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),o=e?.name??r.fieldName;r.fieldName=o,t.set(o.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const o=this.effectivePopupTemplate?.fieldInfos??[],s={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{s[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const i={...t.attributes,...s};return{global:this._featureUtils.formatAttributes({fieldInfos:o,attributes:i,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,p.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,o.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"_arcadeTask",null),(0,o.Cg)([(0,u.MZ)()],c.prototype,"_featureUtils",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"featureUtilsPromise",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],c.prototype,"calculatedExpressions",null),(0,o.Cg)([(0,u.MZ)()],c.prototype,"displayField",void 0),(0,o.Cg)([(0,u.MZ)()],c.prototype,"effectivePopupTemplate",void 0),(0,o.Cg)([(0,u.MZ)()],c.prototype,"expressionsUsedInTitle",null),(0,o.Cg)([(0,u.MZ)()],c.prototype,"fieldsIndex",void 0),(0,o.Cg)([(0,u.MZ)()],c.prototype,"fieldInfoMap",null),(0,o.Cg)([(0,u.MZ)()],c.prototype,"fields",void 0),(0,o.Cg)([(0,u.MZ)()],c.prototype,"objectIdField",void 0),(0,o.Cg)([(0,u.MZ)()],c.prototype,"requiredFields",null),c=(0,o.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],c)},16194(e,t,r){r.d(t,{QX:()=>a,sS:()=>p,xY:()=>u});var o=r(4718),s=r(30279),i=r(62044),n=r(30524),l=r(41227);function a(e){const{popupTemplate:t,fieldsIndex:r}=e,o=t?.fieldInfos;if(!o?.length||!r)return;const n=[];for(const e of o){const{fieldName:t,label:o}=e,l=r.get(t);if(!l)continue;const a=o&&o!==l.alias?o:null,u=(0,i.iu)(e,l);(a||u)&&n.push(new s.A({name:l.name,alias:a,fieldFormat:u}))}return n.length?n:null}function u(e){const{fields:t}=e;if(!t?.length)return;const r=[];for(const e of t){const t=(0,i.qH)(e)?(0,i.$P)(e):null;t&&r.push(new s.A({name:e.name,fieldFormat:t}))}return r.length?r:null}function p(e,t){const{popupTemplate:r,fieldsIndex:s}=e;if(!r||!s)return;const n=function(e,t,r){t??=[],r=(0,o.o8)(r)??[];let s=!1;const n=new Map;for(const r of t){const t=e.fieldsIndex.get(r.name);t&&n.set(t.name,r)}for(const t of r){const r=e.fieldsIndex.get(t.fieldName);if(!r)continue;const o=n.get(r.name);t.label=o?.alias||r.alias,t.format=(0,i.qH)(r)&&o?.fieldFormat?(0,i.PK)(o.fieldFormat,r):null,s=!0,n.delete(r.name)}for(const t of n.values()){const o=d(e,t);o&&(r.push(o),s=!0)}return s?r:null}(e,t,r.fieldInfos);if(!n)return;const l=r.clone();return l.fieldInfos=n,l}function d(e,t){const{name:r,alias:o,fieldFormat:s}=t,a=e.fieldsIndex.get(r);if(!a||!o&&!s)return;const u=o||a.alias,p=(0,i.qH)(a)&&s?(0,i.PK)(s,a):null;return new l.A({fieldName:a.name,label:u,format:p,visible:!1,isEditable:(0,n.R$)(a,e)})}},77548(e,t,r){r.d(t,{Gh:()=>x,tk:()=>P,BR:()=>_,p2:()=>Z,qd:()=>A,wI:()=>S,G$:()=>O,$x:()=>T,Ov:()=>C,cM:()=>h,UC:()=>c,W_:()=>M,Qz:()=>y,OP:()=>I,TU:()=>v,F2:()=>g,XX:()=>f,jy:()=>b});var o=r(70333),s=r(11254),i=r(7762),n=(r(84952),r(36563)),l=r(36708),a=r(4146);const u=new WeakMap;function p(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,l.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof a.A)&&("catalog-dynamic-group"===t.type||p(t))},t=>u.set(e,t),l.pc),(0,n.hA)(()=>u.delete(e))]),u.get(e))}function d(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function h(e){return d(e,"knowledge-graph")&&"layers"in e}function c(e){return d(e,"knowledge-graph-sublayer")}function y(e){return d(e,"link-chart")&&"layers"in e}function g(e){return d(e,"subtype-group")&&"sublayers"in e}function m(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const f={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function C(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function M(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function b(e){return function(e){return"subtype-sublayer"===e?.type}(e)||function(e){return null!=e&&"object"==typeof e&&"type"in e&&"oriented-imagery"===e.type}(e)||function(e){return d(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)}function w(e){const t=e?.type;return"binning"===t||"cluster"===t}function Z(e,t){if(!b(e))return;const r=t?.graphic,o="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&o?w(o)?o:null:void 0}return e}return t?.checkFeatureReduction&&o?w(o)?o:null:e}async function S(e,t){const r=o.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;const n=`${e.slice(0,i)}/rest/info`,l=null!=t?t.signal:null,{data:a}=await(0,s.A)(n,{query:{f:"json"},responseType:"json",signal:l});return a?.owningSystemUrl||null}function _(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function P(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function A(e){const t=new i.A;for(const r of e.allLayers.concat(e.allTables))p(r)||m(r)||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function T(e,t){return null}function O(e){return null}function I(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function x(e,t){if(!t||!I(e))return;const r=(e.url,null);r&&(e.url=r)}},5757(e,t,r){r.d(t,{B:()=>s,P:()=>o});const o=Symbol("PopupTemplateInstance");function s(e){return null!=e&&"object"==typeof e&&o in e}},20655(e,t,r){r.d(t,{A:()=>T});var o=r(5482),s=r(92602),i=r(70333),n=r(11254),l=r(49186),a=r(44208),u=r(25482),p=r(92474),d=r(97768),h=r(17676),c=r(91429),y=r(56507),g=r(5443),m=r(73444);let f;var v=r(96360),C=r(16405),M=r(69622);let b=class extends M.A{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,o.Cg)([(0,c.MZ)()],b.prototype,"nextQueryParams",void 0),(0,o.Cg)([(0,c.MZ)()],b.prototype,"queryParams",void 0),(0,o.Cg)([(0,c.MZ)()],b.prototype,"results",void 0),(0,o.Cg)([(0,c.MZ)()],b.prototype,"total",void 0),b=(0,o.Cg)([(0,c.$K)("esri.portal.PortalQueryResult")],b);var w,Z=r(41318),S=r(926),_=r(36005);let P;const A={PortalGroup:()=>Promise.resolve({default:v.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:Z.A})};let T=class extends((0,u.T)(p.x_)){static{w=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=s.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}destroy(){O.unregister(this),this.defaultBasemap=(0,d.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,d.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,d.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,d.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const t of e)s.A.request.trustedServers.includes(t)||s.A.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=this.user?.orgId,t=!e||this.canSearchPublic;return this.id&&!t?`orgid:${this.id}`:null}get hasAPIKey(){return(0,S.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.slice(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e?e.toLowerCase():e}readUser(e){let t=null;return e&&(t=Z.A.fromJSON(e),t.portal=this),t}load(e){const t=Promise.all([r.e(812),r.e(3116)]).then(r.bind(r,83116)).then(({default:t})=>{(0,h.Te)(e),P=t}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e)).then(e=>{if(!this.hasAPIKey&&i.id){const e=i.id;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==w.AUTH_MODE_AUTO&&this.authMode!==w.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",function(e){const t=i.id;return()=>{const r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),O.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)});return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await Promise.all([r.e(8278),r.e(9953),r.e(812),r.e(9186),r.e(709)]).then(r.bind(r,38732))).default;return e?e.map(e=>new t({id:e.id,url:e.url})):[]}async fetchBasemaps(e,t){const r=await this._fetchBasemaps(e,t);if(!0===t?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery&&(0,a.A)("enable-feature:basemap-groundlayers")){const e=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,t);r.unshift(...e)}const o=await this._fetchBasemaps3D(e,t);r.unshift(...o)}return r}async fetchDefault3DBasemap(e){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const t=new C.A;t.query=this.default3DBasemapQuery,t.disableExtraQuery=!0;const r=(await this.queryItems(t,e)).results.find(e=>"Web Scene"===e.type);return r?new P({portalItem:r}):null}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then(e=>e.categorySchema):(0,h.G4)(e)?Promise.reject((0,h.NK)()):Promise.resolve([])}async fetchClassificationSchema(e){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",e).then(e=>e.classificationSchema):null}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new C.A({num:100,sortField:"title"});if(t?.length){const o=[];for(const e of t)o.push(`(title:"${e.title}" AND owner:${e.owner})`);return r.query=o.join(" OR "),this.queryGroups(r,e).then(e=>e.results)}return(0,h.G4)(e)?Promise.reject((0,h.NK)()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return f&&!f.destroyed||(f=new w),f}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){const o=this.restUrl+"/portals/self",s={authMode:e,query:{culture:(0,m.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===s.authMode&&(s.authMode="no-prompt"),t&&(s.query.default=!0),this.request(o,s)}queryPortal(e,t,r,o){const s=(0,y.dp)(C.A,t),i=t=>this.request(this.restUrl+e,{...s.toRequestOptions(this),...o}).then(e=>{const r=s.clone();return r.start=e.nextStart,new b({nextQueryParams:r,queryParams:s,total:e.total,results:w._resultsToTypedArray(t,{portal:this},e,o)})}).then(e=>Promise.all(e.results.map(t=>"function"==typeof t.when?t.when():e)).then(()=>e,t=>((0,h.QP)(t),e)));return r&&A[r]?A[r]().then(({default:e})=>((0,h.Te)(o),i(e))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new l.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===w.AUTH_MODE_ANONYMOUS||this.authMode===w.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new l.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const e=e=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate"))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate"))).then(e=>{e&&(this.sourceJSON=e,this.read(e))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==w.AUTH_MODE_NO_PROMPT}).then(t=>e(t)):e(this.credential)}normalizeUrl(e){const t=this.credential?.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then(e=>{const t=w._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map(t=>"function"==typeof t.when?t.when():e)).then(()=>t,()=>t)})}request(e,t={}){const r={f:"json",...t.query},{authMode:o=(this.authMode===w.AUTH_MODE_ANONYMOUS||this.authMode===w.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:s=null,cacheBust:i=!1,method:l="auto",responseType:a="json",signal:u}=t,p={authMode:o,body:s,cacheBust:i,method:l,query:r,responseType:a,timeout:0,signal:u};return t.withCredentials&&(p.withCredentials=!0),(0,n.A)(this._normalizeSSL(e),p).then(e=>e.data)}toJSON(){throw new l.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new w({sourceJSON:e})}_getHelperService(e){const t=this.helperServices?.[e];if(!t)throw new l.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new C.A;r.query=e||((0,S.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const o=await this.queryGroups(r,t);if(!o.total)return[];const s=o.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=s.sortField||"name",r.sortOrder=s.sortOrder||"desc";const i=await s.queryItems(r,t);return i.total?i.results.filter(e=>"Web Map"===e.type).map(e=>new P({portalItem:e})):[]}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,S.Dd)())return[];const o=new C.A({query:r,disableExtraQuery:!0}),s=await this.queryGroups(o,t);if(!s.total)return[];const i=s.results[0];o.num=100,o.query='type:"Web Scene"',o.sortField=i.sortField||"name",o.sortOrder=i.sortOrder||"desc";const n=await i.queryItems(o,t);return n.total?n.results.filter(e=>"Web Scene"===e.type).map(e=>new P({portalItem:e})):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=P.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,o){let s;if(r){const i=null!=o?o.signal:null;s=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(s=s.map(r=>{const o=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof o.load&&o.load(i),o}))}else s=[];return s}};(0,o.Cg)([(0,c.MZ)()],T.prototype,"access",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"allSSL",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"authMode",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"authorizedCrossOriginDomains",void 0),(0,o.Cg)([(0,_.w)("authorizedCrossOriginDomains")],T.prototype,"readAuthorizedCrossOriginDomains",null),(0,o.Cg)([(0,c.MZ)()],T.prototype,"basemapGalleryGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],T.prototype,"basemapGalleryGroupQuery3D",void 0),(0,o.Cg)([(0,c.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],T.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)({json:{name:"g3dTilesEnabled"}})],T.prototype,"g3dTilesEnabled",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"bingKey",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"canListApps",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"canListData",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"canListPreProvisionedItems",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"canProvisionDirectPurchase",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"canSearchPublic",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"canShareBingPublic",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"canSharePublic",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"canSignInArcGIS",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"canSignInIDP",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"colorSetsGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"commentsEnabled",void 0),(0,o.Cg)([(0,c.MZ)({type:Date})],T.prototype,"created",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"credential",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"culture",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"currentVersion",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"customBaseUrl",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"default3DBasemapQuery",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"defaultBasemap",void 0),(0,o.Cg)([(0,_.w)("defaultBasemap")],T.prototype,"readDefaultBasemap",null),(0,o.Cg)([(0,c.MZ)()],T.prototype,"defaultDevBasemap",void 0),(0,o.Cg)([(0,_.w)("defaultDevBasemap")],T.prototype,"readDefaultDevBasemap",null),(0,o.Cg)([(0,c.MZ)({type:g.A})],T.prototype,"defaultExtent",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"defaultVectorBasemap",void 0),(0,o.Cg)([(0,_.w)("defaultVectorBasemap")],T.prototype,"readDefaultVectorBasemap",null),(0,o.Cg)([(0,c.MZ)()],T.prototype,"description",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"devBasemapGalleryGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"eueiEnabled",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],T.prototype,"extraQuery",null),(0,o.Cg)([(0,c.MZ)()],T.prototype,"featuredGroups",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"featuredItemsGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"galleryTemplatesGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"layoutGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"livingAtlasGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],T.prototype,"hasAPIKey",null),(0,o.Cg)([(0,c.MZ)()],T.prototype,"hasCategorySchema",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"hasClassificationSchema",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"helpBase",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"helperServices",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"helpMap",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"homePageFeaturedContent",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"homePageFeaturedContentCount",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"httpPort",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"httpsPort",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"id",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"ipCntryCode",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],T.prototype,"isOrganization",null),(0,o.Cg)([(0,c.MZ)()],T.prototype,"isPortal",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"isReadOnly",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],T.prototype,"itemPageUrl",null),(0,o.Cg)([(0,c.MZ)()],T.prototype,"layerTemplatesGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"maxTokenExpirationMinutes",void 0),(0,o.Cg)([(0,c.MZ)({type:Date})],T.prototype,"modified",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"name",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"portalHostname",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"portalMode",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"portalProperties",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"region",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"recycleBinEnabled",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],T.prototype,"restUrl",null),(0,o.Cg)([(0,c.MZ)()],T.prototype,"rotatorPanels",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"showHomePageDescription",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"staticImagesUrl",void 0),(0,o.Cg)([(0,c.MZ)({json:{name:"2DStylesGroupQuery"}})],T.prototype,"stylesGroupQuery2d",void 0),(0,o.Cg)([(0,c.MZ)({json:{name:"stylesGroupQuery"}})],T.prototype,"stylesGroupQuery3d",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"supportsHostedServices",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"symbolSetsGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"templatesGroupQuery",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"thumbnail",void 0),(0,o.Cg)([(0,c.MZ)({readOnly:!0})],T.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,c.MZ)()],T.prototype,"units",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"url",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"urlKey",void 0),(0,o.Cg)([(0,_.w)("urlKey")],T.prototype,"readUrlKey",null),(0,o.Cg)([(0,c.MZ)()],T.prototype,"user",void 0),(0,o.Cg)([(0,_.w)("user")],T.prototype,"readUser",null),(0,o.Cg)([(0,c.MZ)()],T.prototype,"use3dBasemaps",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"useDefault3dBasemap",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"useStandardizedQuery",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"useVectorBasemaps",void 0),(0,o.Cg)([(0,c.MZ)()],T.prototype,"vectorBasemapGalleryGroupQuery",void 0),T=w=(0,o.Cg)([(0,c.$K)("esri.portal.Portal")],T);const O=new FinalizationRegistry(e=>{e.remove()})},96360(e,t,r){r.d(t,{A:()=>p});var o,s=r(5482),i=r(49186),n=r(25482),l=r(91429),a=r(56507),u=r(16405);let p=o=class extends n.o{constructor(e){super(e),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t&&this.portal?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){const e=this.portal?.restUrl;return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return this.portal.request(this.url+"/categorySchema",e).then(t=>{const r=t.categorySchema||[];return r.some(e=>"contentCategorySetsGroupQuery.LivingAtlas"===e.source)?this._fetchCategorySchemaSet("LivingAtlas",e):r})}fetchMembers(e){return this.portal.request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new o({sourceJSON:e});return t.read(e),t}queryItems(e,t){let r=(0,a.dp)(u.A,e);const o=this.portal;return parseFloat(o.currentVersion)>5?(r=r||new u.A,o.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),o.queryItems(r,t))}_fetchCategorySchemaSet(e,t){const r=this.portal;return r.fetchSelf(r.authMode,!0,t).then(e=>{const o=e.contentCategorySetsGroupQuery;if(o){const e=new u.A({disableExtraQuery:!0,num:1,query:o});return r.queryGroups(e,t)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const o=r.results[0],s=new u.A({num:1,query:`typekeywords:"${e}"`});return o.queryItems(s,t)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(e=>e.total?e.results[0].fetchData("json",t).then(e=>{const t=e?.categorySchema;return t?.length?t:[]}):[])}};(0,s.Cg)([(0,l.MZ)()],p.prototype,"access",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],p.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"description",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"isInvitationOnly",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],p.prototype,"modified",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"owner",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"snippet",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"sortField",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"sortOrder",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"tags",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"thumbnail",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,l.MZ)()],p.prototype,"title",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"url",null),p=o=(0,s.Cg)([(0,l.$K)("esri.portal.PortalGroup")],p)},16405(e,t,r){r.d(t,{A:()=>c});var o,s=r(5482),i=r(69622),n=r(66552),l=r(4718),a=r(91429),u=r(5443),p=r(16930),d=r(28735);const h=new n.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=o=class extends i.A{constructor(e){super(e),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(e){"asc"!==e&&"desc"!==e||this._set("sortOrder",e)}clone(){return new o({categories:this.categories?(0,l.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(e,t){let r=[];this.categories&&(r=this.categories.map(e=>Array.isArray(e)?JSON.stringify(e):e));let o="";if(this.extent){const e=(0,d.Cv)(this.extent,p.A.WGS84);null!=e&&(o=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`)}let s=this.query;const i=e.extraQuery;!this.disableExtraQuery&&i&&(s=s?"("+s+") AND "+i:i);const n={categories:r,bbox:o,q:s,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(n.sortField=this.sortField.split(",").map(e=>h.toJSON(e.trim())).join(","),n.sortOrder=this.sortOrder),{query:{...t,...n}}}};(0,s.Cg)([(0,a.MZ)()],c.prototype,"categories",void 0),(0,s.Cg)([(0,a.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,s.Cg)([(0,a.MZ)({type:u.A})],c.prototype,"extent",void 0),(0,s.Cg)([(0,a.MZ)()],c.prototype,"filter",void 0),(0,s.Cg)([(0,a.MZ)()],c.prototype,"num",void 0),(0,s.Cg)([(0,a.MZ)()],c.prototype,"query",void 0),(0,s.Cg)([(0,a.MZ)()],c.prototype,"sortField",void 0),(0,s.Cg)([(0,a.MZ)()],c.prototype,"sortOrder",null),(0,s.Cg)([(0,a.MZ)()],c.prototype,"start",void 0),c=o=(0,s.Cg)([(0,a.$K)("esri.portal.PortalQueryParams")],c)},41318(e,t,r){r.d(t,{A:()=>p});var o=r(5482),s=r(49186),i=r(25482),n=r(91429);let l=class extends i.o{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new s.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,o.Cg)([(0,n.MZ)({type:Date})],l.prototype,"created",void 0),(0,o.Cg)([(0,n.MZ)()],l.prototype,"id",void 0),(0,o.Cg)([(0,n.MZ)()],l.prototype,"portal",void 0),(0,o.Cg)([(0,n.MZ)()],l.prototype,"title",void 0),(0,o.Cg)([(0,n.MZ)({readOnly:!0})],l.prototype,"url",null),(0,o.Cg)([(0,n.MZ)()],l.prototype,"username",void 0),l=(0,o.Cg)([(0,n.$K)("esri.portal.PortalFolder")],l);var a,u=r(96360);let p=a=class extends i.o{constructor(e){super(e),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t?this.portal.normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.id}`:null}get url(){const e=this.portal?.restUrl;return e?`${e}/community/users/${this.id}`:null}addItem(e){const t=e&&e.item,r=e?.data,o=e?.folder,s={method:"post"};t&&(s.query=t.createPostQuery(),null!=r&&("string"==typeof r?s.query.text=r:"object"==typeof r&&(s.query.text=JSON.stringify(r))));let i=this.userContentUrl;return o&&(i+="/"+("string"==typeof o?o:o.id)),this.portal.request(i+"/addItem",s).then(e=>(t.id=e.id,t.portal=this.portal,t.loaded?t.reload():t.load()))}async deleteItem(e,t=!1){let r=this.userContentUrl;e.ownerFolder&&(r+="/"+e.ownerFolder);const o=t?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${e.id}/delete`,{method:"post",query:o}),e.id=null,e.portal=null}async deleteItems(e,t=!1){e=e.slice();const r=this.userContentUrl+"/deleteItems",o=[],i=e.map(e=>e.id);if(i.length){const n={method:"post",query:{items:i.join(","),permanentDelete:t}},l=await this.portal.request(r,n);for(const t of l.results){const r=e.find(e=>t.itemId===e.id),i=t.success;let n=null;i?(r.id=null,r.portal=null):t.error&&(n=new s.A("portal:delete-item-failed",t.error.message,t.error)),o.push({item:r,success:i,error:n})}}return o}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(e=>{let t;return t=e&&e.folders?e.folders.map(e=>{const t=l.fromJSON(e);return t.portal=this.portal,t}):[],t})}fetchGroups(){return this.portal.request(this.url??"").then(e=>{let t;return t=e&&e.groups?e.groups.map(e=>{const t=u.A.fromJSON(e);return t.portal=this.portal,t}):[],t})}async fetchItems(e){e??={};let t=this.userContentUrl??"";e.folder&&(t+="/"+e.folder.id);const{default:o}=await r.e(812).then(r.bind(r,80812)),s={folders:!1,inRecycleBin:!!e.inRecycleBin||null,foldersContent:!(e.folder||!e.includeSubfolderItems)||null,num:e.num||10,start:e.start||1,sortField:e.sortField||"created",sortOrder:e.sortOrder||"asc"},i=await this.portal.request(t,{query:s});let n;return i?.items?(n=i.items.map(e=>{const t=o.fromJSON(e);return t.portal=this.portal,t}),await Promise.all(n.map(e=>e.load())),{items:n,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(e=>e.tags)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||(this._favGroup=new u.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(e)):Promise.reject(new s.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(e,t){const r=this.userContentUrl,o=t?{folderID:"string"==typeof t?t:t.id}:null;await this.portal.request(r+`/items/${e.id}/restore`,{method:"post",query:o})}toJSON(){throw new s.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new a({sourceJSON:e});return t.read(e),t}};(0,o.Cg)([(0,n.MZ)()],p.prototype,"access",void 0),(0,o.Cg)([(0,n.MZ)({type:Date})],p.prototype,"created",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"culture",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"description",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"email",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"favGroupId",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"fullName",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"id",void 0),(0,o.Cg)([(0,n.MZ)({type:Date})],p.prototype,"modified",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"orgId",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"portal",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"preferredView",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"privileges",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"region",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"role",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"roleId",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"thumbnail",void 0),(0,o.Cg)([(0,n.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,n.MZ)()],p.prototype,"units",void 0),(0,o.Cg)([(0,n.MZ)({readOnly:!0})],p.prototype,"userContentUrl",null),(0,o.Cg)([(0,n.MZ)({readOnly:!0})],p.prototype,"url",null),(0,o.Cg)([(0,n.MZ)()],p.prototype,"username",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"userLicenseTypeId",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"userType",void 0),p=a=(0,o.Cg)([(0,n.$K)("esri.portal.PortalUser")],p)},98205(e,t,r){r.d(t,{KZ:()=>l,eh:()=>n,gf:()=>i,of:()=>s,uY:()=>o});const o=Symbol("SizeVariableInstance");function s(e){return null!=e&&"object"==typeof e&&o in e}function i(e){return null!=e&&!isNaN(e)&&isFinite(e)}function n(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const r=t||n(e),o=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===o?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},22671(e,t,r){r.d(t,{A:()=>v});var o,s=r(5482),i=r(52106),n=r(66552),l=r(25482),a=r(4718),u=r(91429),p=r(16930),d=r(60408),h=r(65864),c=r(50498),y=r(20437),g=r(36005),m=r(43937);const f=new n.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=o=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,i.A)}writeGeometryType(e,t,r,o){if(e)return void f.write(e,t,r,o);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void f.write(e.geometry.type,t,r,o)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,o=(0,h.rS)(e);return o&&!r&&t.spatialReference&&(o.spatialReference=p.A.fromJSON(t.spatialReference)),o}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new o(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const o=t.features[r];if(o.geometry){const t=e?.[r];o.geometry=t?.toJSON()||o.geometry}}return t}quantize(e){const{scale:[t,r],translate:[o,s]}=e,i=this.features,n=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-o)/t),e=>Math.round((s-e)/r));for(let e=0,t=i.length;e<t;e++)n?.(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:[o,s],scale:[i,n]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*i+o,e=>s-e*n,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const o=p.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const i=e[t],n=r.fromJSON(i),l=i.geometry?.spatialReference;null==n.geometry||l||(n.geometry.spatialReference=o);const a=i.aggregateGeometries,u=n.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],r=a[e],s=r?.spatialReference;null==t||s||(t.spatialReference=o)}s.push(n)}return s}_quantizePoints(e,t,r){let o,s;const i=[];for(let n=0,l=e.length;n<l;n++){const l=e[n];if(n>0){const e=t(l[0]),n=r(l[1]);e===o&&n===s||(i.push([e-o,n-s]),o=e,s=n)}else o=t(l[0]),s=r(l[1]),i.push([o,s])}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 o=(0,d.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,i=o.length;e<i;e++){const i=o[e],n=this._quantizePoints(i,t,r);n&&s.push(n)}return s.length>0?((0,d.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const o=this._quantizePoints(e.points,t,r);return o&&o.length>0?(e.points=o,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,o,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),o&&(e.z=o(e.z))}:"polyline"===e||"polygon"===e?e=>{const i=(0,d.Bi)(e)?e.rings:e.paths;let n,l;for(let e=0,o=i.length;e<o;e++){const o=i[e];for(let e=0,s=o.length;e<s;e++){const s=o[e];e>0?(n+=s[0],l+=s[1]):(n=s[0],l=s[1]),s[0]=t(n),s[1]=r(l)}}if(o&&s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2]),r[3]=s(r[3])}}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),o&&null!=e.zmax&&null!=e.zmin&&(e.zmax=o(e.zmax),e.zmin=o(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const i=e.points;let n,l;for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(n+=o[0],l+=o[1]):(n=o[0],l=o[1]),o[0]=t(n),o[1]=r(l)}if(o&&s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=o(t[2]),t[3]=s(t[3])}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=o(t[2])}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,u.MZ)({type:[i.A],json:{write:!0}})],v.prototype,"features",void 0),(0,s.Cg)([(0,g.w)("features")],v.prototype,"readFeatures",null),(0,s.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,s.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:f.read}}})],v.prototype,"geometryType",void 0),(0,s.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s.Cg)([(0,u.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,g.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=o=(0,s.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},94128(e,t,r){r.d(t,{D:()=>s,Z:()=>o});const o=Symbol("GraphicInstance");function s(e){return null!=e&&"object"==typeof e&&o in e}},16215(e,t,r){r.d(t,{S:()=>s,Y:()=>o});const o=Symbol("BasemapInstance");function s(e){return null!=e&&"object"==typeof e&&o in e}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2741],{2741(e,r,t){t.d(r,{s:()=>i});var s=t(92602),n=(t(11254),t(49186)),o=t(53966),a=t(84952);function i(e){if(!s.A.assetsPath)throw o.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,a.fj)(s.A.assetsPath,e)}},97159(e,r,t){t.d(r,{a:()=>y,b:()=>g,e:()=>h,f:()=>a,i:()=>p,p:()=>f,r:()=>l,t:()=>i,w:()=>u});var s=t(70333),n=t(84952),o=t(39131);function a(e,r){const t=r?.url?.path;if(e&&t&&(e=(0,n.s2)(e,t,{preserveProtocolRelative:!0}),r.portalItem&&r.readResourcePaths)){const t=(0,n.V1)(e,r.portalItem.itemUrl);null!=t&&t.startsWith(d)&&r.readResourcePaths.push(r.portalItem.resourceFromPath(t).path)}return(e=m(e,r?.portal))&&c.test(e)?y(e):e}function i(e,r,t=0){if(null==(e=e&&c.test(e)?w(e):e))return e;!(0,n.oP)(e)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(e);let s=(0,n.s2)(e);if(r){const t=r.verifyItemRelativeUrls?.rootPath||r.url?.path;if(t){const o=m(t,r.portal),a=m(s,r.portal);s=(0,n.V1)(a,o,o),null!=s&&s!==a&&s!==e&&r.verifyItemRelativeUrls&&r.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=h(s,r?.portal),(0,n.oP)(s)&&(s=(0,n.S8)(s)),r?.resources&&r?.portalItem&&!(0,n.oP)(s)&&!(0,n.DB)(s)&&0===t&&r.resources.toKeep.push({resource:r.portalItem.resourceFromPath(s),compress:!1}),s}function l(e,r,t){return a(e,t)}function u(e,r,t,s){const n=i(e,s);void 0!==n&&(r[t]=n)}const c=/\/items\/([^/]+)\/resources\/(.*)/,d="./resources/";function p(e){const r=e?.match(c)??null;return r?.[1]??null}function f(e){const r=e?.match(c)??null;if(null==r)return null;const t=r[2],s=t.lastIndexOf("/");if(-1===s){const{path:e,extension:r}=(0,n.xw)(t);return{prefix:null,filename:e,extension:r}}const{path:o,extension:a}=(0,n.xw)(t.slice(s+1));return{prefix:t.slice(0,s),filename:o,extension:a}}function h(e,r){return r&&!r.isPortal&&r.urlKey&&r.customBaseUrl?(0,n.T1)(e,`${r.urlKey}.${r.customBaseUrl}`,r.portalHostname):e}function m(e,r){if(!r||r.isPortal||!r.urlKey||!r.customBaseUrl)return e;const t=`${r.urlKey}.${r.customBaseUrl}`,s=(0,n.Xq)();return(0,n.FX)(s,`${s.scheme}://${t}`)?(0,n.T1)(e,r.portalHostname,t):(0,n.T1)(e,t,r.portalHostname)}function y(e){if(!e)return e||null;let r=e;return r&&s.id&&!s.id.findCredential(r)&&(r=(0,o.qG)(r),r=r.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),r=r.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),r=r.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),r}function w(e){if(!e)return e||null;let r=e;return r=r.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),r=r.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),r=r.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),r&&s.id&&!s.id.findCredential(r)&&(r=(0,o.qG)(r)),r}const g=Object.freeze(Object.defineProperty({__proto__:null,ensureMainOnlineDomain:h,fromCDNUrl:w,fromJSON:a,itemIdFromResourceUrl:p,prefixAndFilenameFromResourceUrl:f,read:l,toCDNUrl:y,toJSON:i,write:u},Symbol.toStringTag,{value:"Module"}))},91869(e,r,t){function s(e,r){for(const t of e.values())if(r(t))return!0;return!1}function n(e,r){for(const t of e.values())if(!r(t))return!1;return!0}function o(e,r,t){const s=e.get(r);if(void 0!==s)return s;const n=t();return e.set(r,n),n}function a(e){const r=new Map;return t=>(r.has(t)||r.set(t,e(t)),r.get(t))}t.d(r,{Bj:()=>a,Bs:()=>s,mt:()=>n,tE:()=>o})},60694(e,r,t){t.d(r,{Fi:()=>d,HZ:()=>q,Jf:()=>v,LS:()=>b,Wo:()=>w,bd:()=>S,cr:()=>h,iz:()=>f,qg:()=>p,uV:()=>g,yG:()=>m});var s=t(84952),n=t(39131),o=t(97159);const a={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},i=Object.values(a),l=new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(?<serviceTitle>.+?)\\/(?<serverType>${i.join("|")})(?:\\/exts\\/(?<soeTitle>.+?)\\/(?<soeServerType>${i.join("|")}))?)(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),u=new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/(?<serviceTitle>[^/\\n]+)\\/(?<serverType>${i.join("|")}))(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function d(e){return l.test(e)}function p(e){if(null==e)return null;const r=(0,s.An)(e),t=r?.path.match(l)||r?.path.match(u);if(!t)return null;const{path:n,serviceTitle:o,serverType:i,soeTitle:c,soeServerType:d,sublayer:p}=t.groups??{},f=c||o,m=f.indexOf("/");return{title:h(-1!==m?f.slice(m+1):f),serverType:a[(d||i).toLowerCase()],sublayer:null!=p&&""!==p?parseInt(p,10):null,url:{path:n}}}function f(e){const r=(0,s.An)(e).path.match(c);return r?{serviceUrl:r[1],sublayerId:Number(r[2])}:null}function h(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,r){const t=[];if(e){const r=p(e);null!=r&&r.title&&t.push(r.title)}if(r){const e=h(r);t.push(e)}if(2===t.length){if(t[0].toLowerCase().includes(t[1].toLowerCase()))return t[0];if(t[1].toLowerCase().includes(t[0].toLowerCase()))return t[1]}return t.join(" - ")}const y=["services","features","tiles","elevation3d","basemaps3d"];function w(e){let r=(0,s.$z)(e,!0);return!!r&&(r=r.toLowerCase(),!!r.endsWith(".arcgis.com")&&(!!y.some(e=>r.startsWith(e))||/^[a-z\d-]+\.svcs[a-z\d-]*\./.test(r)))}function g(e){return(0,n.$E)(e)&&function(e){const r=(0,s.$z)(e);return!!r&&r.toLowerCase().endsWith(".arcgis.com")}(e)}function v(e,r){return e?(0,s.UC)((0,s.zi)(e,r)):e}function q(e){let{url:r}=e;if(!r)return{url:r};r=(0,s.zi)(r,e.logger);const t=(0,s.An)(r),n=p(t.path);let o;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(o=n.sublayer),r=n.url.path;else if(e.nonStandardUrlAllowed){const e=f(t.path);null!=e&&(r=e.serviceUrl,o=e.sublayerId)}return{url:(0,s.UC)(r),layerId:o}}function b(e,r,t,n,a){(0,o.w)(r,n,"url",a),n.url&&null!=e.layerId&&(n.url=(0,s.fj)(n.url,t,e.layerId.toString()))}function S(e){if(!e)return!1;const r=e.toLowerCase(),t=r.includes("/services/"),s=r.includes("/mapserver/wmsserver"),n=r.includes("/imageserver/wmsserver"),o=r.includes("/wmsserver");return t&&(s||n||o)}},11254(e,r,t){t.d(r,{A:()=>w});var s=t(92602),n=t(49186),o=t(44208),a=t(17676),i=t(84952),l=t(56152),u=t(65592),c=t(91869),d=t(60694);async function p(e){const r=function(e){let r,t=!1;return"string"==typeof e?(r=(0,i.$z)(e,!0),t=(0,d.Wo)(e)):(r=e.origin,t=(0,d.Wo)(e.toString())),null==r?null:new y(r,t)}(e.parameters.url);if(!r)return null;const{QueueProcessor:s,SharedConcurrency:n}=await t.e(563).then(t.bind(t,563));return(0,c.tE)(f,r.origin,()=>{const e=(r.isHosted?(0,o.A)("request-queue-concurrency-hosted"):(0,o.A)("request-queue-concurrency-non-hosted"))??4;return h??=new n((0,o.A)("request-queue-concurrency-global")??50),new s({concurrency:e,sharedConcurrency:h,process:e=>{if((0,a.G4)(e.parameters.requestOptions))throw(0,u.YB)("",(0,a.NK)("Request canceled"),e.parameters);return(0,u.zc)(e)}})})}const f=new Map;let h,m;class y{constructor(e,r){this.origin=e,this.isHosted=r}}async function w(e,r){e instanceof URL&&(e=e.toString());const s=(0,i.DB)(e),n=(0,i.w8)(e);n||s||(e=(0,i.S8)(e));const c={url:e,requestOptions:{...r}};r?.query&&(c.requestOptions.query=r?.query instanceof URLSearchParams?(0,i.zf)(r.query.toString().replaceAll("+"," ")):r?.query);const d=e=>({data:e,getAllHeaders:v,getHeader:v,httpStatus:200,requestOptions:c.requestOptions,url:c.url}),f=(0,i.sC)(e,g.internalInterceptors);if(f){const e=await q(f,c);if(null!=e)return d(e)}let h=(0,i.sC)(e);if(h){const e=await q(h,c);if(null!=e)return d(e);h.after||h.error||(h=null)}if(e=c.url,"image"===(r=c.requestOptions).responseType&&((0,o.A)("host-webworker")||(0,o.A)("host-node")))throw(0,u.YB)("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),c);if("head"===r.method){if(r.body)throw(0,u.YB)("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),c);if(s||n)throw(0,u.YB)("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),c)}if(await async function(){(0,o.A)("host-webworker")&&(!m&&globalThis.invokeStaticMessage?m=await t.e(369).then(t.bind(t,40369)):l.i.isForeignWorker=!0)}(),m)return m.execute(e,r);const y=new AbortController,w=(0,a.u7)(r,()=>y.abort()),b={controller:y,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:h,parameters:c,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},S=r.useQueue?async function(e){const r=await p(e);return r?r.push(e):(0,u.zc)(e)}(b):(0,u.zc)(b),T=await S.finally(()=>w?.remove());return h?.after?.(T),T}const g=s.A.request,v=()=>null;async function q(e,r){if(null!=e.responseData)return e.responseData;if(e.headers&&(r.requestOptions.headers={...r.requestOptions.headers,...e.headers}),e.query&&(r.requestOptions.query={...r.requestOptions.query,...e.query}),e.before){let t,s;try{s=await e.before(r)}catch(e){t=(0,u.YB)("request:interceptor",e,r)}if((s instanceof Error||s instanceof n.A)&&(t=(0,u.YB)("request:interceptor",s,r)),t)throw e.error&&e.error(t),t;return s}}},56152(e,r,t){t.d(r,{i:()=>s});const s={corsServers:["https://server.arcgisonline.com","https://services.arcgisonline.com"],beforeFetch:void 0,afterFetch:void 0,isForeignWorker:!1}},95117(e,r,t){t.d(r,{y:()=>n});var s=t(17676);function n(e,r,t=!1,n){return new Promise((o,a)=>{if((0,s.G4)(n))return void a((0,s.NK)());let i=()=>{c(),a(new Error(`Unable to load ${r}`))},l=async()=>{const r=e;try{await r.decode()}catch{}c(),o(r)},u=()=>{if(!e)return;const r=e;c(),r.src="",a((0,s.NK)())};const c=()=>{e&&(e.removeEventListener("error",i),e.removeEventListener("load",l),i=null,l=null,e=null,n?.removeEventListener("abort",u),u=null,t&&URL.revokeObjectURL(r))};n?.addEventListener("abort",u),e.addEventListener("error",i),e.addEventListener("load",l)})}},65592(e,r,t){t.d(r,{YB:()=>x,c8:()=>$,zc:()=>b});var s=t(92602),n=t(70333),o=t(49186),a=t(44208),i=t(4718),l=t(17676),u=t(84952),c=t(39131),d=t(56152),p=t(95117),f=t(60694);const h=new Map;function m(e,r){const t=r?.preferredHost;if(!t||(0,u.FX)(e,`https://${t}`,!0))return;const s=(0,f.qg)(e);if(!s||"FeatureServer"!==s.serverType||(0,c.$E)(e))return;const n=s.url.path.toLowerCase();h.has(n)||h.set(n,t)}function y(e){const r=(0,f.qg)(e)?.url.path.toLowerCase();if(!r)return e;const t=h.get(r);return t?(0,u.hf)(e,t):e}const w="FormData"in globalThis,g=new Set([499,498,403,401]),v=new Set(["COM_0056","COM_0057","SB_0008"]),q=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i];async function b(e){let r,o;await async function(e){const r=e.parameters.url,o=e.parameters.requestOptions,a=e.controller.signal,i=o.body;let u=null,c=null;if(w&&"HTMLFormElement"in globalThis&&(i instanceof FormData?u=i:i instanceof HTMLFormElement&&(u=new FormData(i))),"string"==typeof i&&(c=i),e.fetchOptions={cache:o.cacheMode??(o.cacheBust?"no-cache":"default"),credentials:"same-origin",headers:o.headers||{},keepalive:o.keepAlive??!1,method:"head"===o.method?"HEAD":"GET",mode:"cors",priority:o.priority??s.A.request.priority,redirect:"follow",signal:a},(u||c)&&(e.fetchOptions.body=u||c),(d.i.isForeignWorker||"anonymous"===o.authMode)&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(r)||o.query?.token||u?.get("token")),!e.hasToken){const{getApiKey:s,getSessionToken:n}=await t.e(926).then(t.bind(t,926)),a=await n(r)??s(r);a&&(o.query??={},o.query.token=a,e.hasToken=!0)}if(e.useIdentity&&!e.hasToken&&!e.credential&&!e.credentialToken&&!O(r)&&!(0,l.G4)(a)){let t;"immediate"===o.authMode?(await A(),t=await n.id.getCredential(r,{signal:a})):"no-prompt"===o.authMode?(await A(),t=await n.id.getCredential(r,{prompt:!1,signal:a}).catch(()=>{})):n.id&&(t=n.id.findCredential(r)),t&&(e.credential=t,e.credentialToken=t.token,e.useSSL=!!t.ssl)}}(e);try{do{[r,o]=await S(e)}while(!await L(e,r,o))}catch(t){const s=x("request:server",t,e.parameters,r);throw s.details.ssl=e.useSSL,e.interceptor?.error?.(s),s}const a=e.parameters.url;if(o)if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!e.hasToken&&!e.credentialToken&&o.user?.username&&!(0,u.FL)(a)){const e=(0,u.$z)(a,!0);e&&s.A.request.trustedServers.push(e)}Array.isArray(o.authorizedCrossOriginNoCorsDomains)&&function(e){s.A.request.crossOriginNoCorsDomains||(s.A.request.crossOriginNoCorsDomains={});const r=s.A.request.crossOriginNoCorsDomains;for(let t of e)t=t.toLowerCase(),/^https?:\/\//.test(t)?r[(0,u.$z)(t)??""]=0:(r[(0,u.$z)("http://"+t)??""]=0,r[(0,u.$z)("https://"+t)??""]=0)}(o.authorizedCrossOriginNoCorsDomains)}else"json"===(e.parameters.requestOptions.responseType||"json")&&m(a,o);const i=e.credential;if(i&&n.id){const e=n.id.findServerInfo(i.server);let r=e?.owningSystemUrl;if(r){r=r.replace(/\/?$/,"/sharing");const e=n.id.findCredential(r,i.userId);e&&-1===n.id._getIdenticalSvcIdx(r,e)&&e.resources.unshift(r)}}return{data:o,getAllHeaders:r?()=>Array.from(r.headers):E,getHeader:r?e=>r.headers.get(e):E,httpStatus:r?.status??200,requestOptions:e.parameters.requestOptions,ssl:e.useSSL,url:e.parameters.url}}async function S(e){let r=e.parameters.url,t=y(r);const o=e.parameters.requestOptions,i=e.fetchOptions??{},p=(0,u.w8)(r)||(0,u.DB)(r),f=o.responseType??"json",h=p?0:null!=o.timeout?o.timeout:s.A.request.timeout;let m=!1;if(!p){e.useSSL&&(r=(0,u.lM)(r));let l={...o.query};e.credentialToken&&(l.token=e.credentialToken);let d=(0,u.x0)(l);(0,a.A)("esri-url-encodes-apostrophe")&&(d=d.replaceAll("'","%27"));const p=t.length+1+d.length;let f;m="delete"===o.method||"post"===o.method||"put"===o.method||!!o.body||p>s.A.request.maxUrlLength;const h=o.useProxy||!!(0,u.zs)(r);if(h){const e=(0,u.s_)(r);f=e.path,!m&&f.length+1+p>s.A.request.maxUrlLength&&(m=!0),e.query&&(l={...e.query,...l})}if("HEAD"===i.method&&(m||h)){if(m){if(p>s.A.request.maxUrlLength)throw x("request:invalid-parameters",new Error("URL exceeds maximum length"),e.parameters);throw x("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.parameters)}if(h)throw x("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.parameters)}if(m?(i.method="delete"===o.method?"DELETE":"put"===o.method?"PUT":"POST",o.body?r=(0,u.a6)(r,l):(i.body=(0,u.x0)(l),i.headers||(i.headers={}),i.headers["Content-Type"]="application/x-www-form-urlencoded")):r=(0,u.a6)(r,l),h&&(e.useProxy=!0,r=`${f}?${r}`),l.token&&w&&i.body instanceof FormData&&!(0,c.$E)(r)&&i.body.set("token",l.token),o.hasOwnProperty("withCredentials"))e.withCredentials=o.withCredentials;else if(!(0,u.FX)(r,(0,u.Xq)()))if((0,u.FL)(r))e.withCredentials=!0;else if(n.id){const t=n.id.findServerInfo(r);t?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(i.credentials="include",function(e){const r=s.A.request.crossOriginNoCorsDomains;if(r){let t=(0,u.$z)(e);if(t)return t=t.toLowerCase(),!(0,u.FX)(t,(0,u.Xq)())&&r[t]<Date.now()-36e5}return!1}(r)&&await async function(e){const r=(0,u.An)(e);e=r.path,"json"===r.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}const t=s.A.request.crossOriginNoCorsDomains,n=(0,u.$z)(e);t&&n&&(t[n.toLowerCase()]=Date.now())}(m?(0,u.a6)(r,l):r)),t=y(r)}let g,v,q=0,b=!1;h>0&&(q=setTimeout(()=>{b=!0,e.controller.abort()},h));try{if("native-request-init"===o.responseType)v=i,v.url=t,o.signal?v.signal=o.signal:delete v.signal;else if("image"!==o.responseType||"default"!==i.cache||i.keepalive||"GET"!==i.method||m||function(e){if(e)for(const r of Object.getOwnPropertyNames(e))if(e[r])return!0;return!1}(o.headers)||!p&&!e.useProxy&&s.A.request.proxyUrl&&!C(r)){if(await(d.i.beforeFetch?.(r,i)),g=await fetch(t,i),await(d.i.afterFetch?.(g)),e.useProxy||function(e){const r=(0,u.$z)(e);r&&!d.i.corsServers.includes(r)&&d.i.corsServers.push(r)}(r),"native"===o.responseType)v=g;else if("HEAD"!==i.method)if(g.ok){switch(f){case"array-buffer":v=await g.arrayBuffer();break;case"blob":case"image":v=await g.blob();break;default:v=await g.text()}if(q&&(clearTimeout(q),q=0),"json"===f||"xml"===f||"document"===f)if(v)switch(f){case"json":v=JSON.parse(v);break;case"xml":v=k(v,"application/xml");break;case"document":v=k(v,"text/html")}else v=null;if(v){if(("array-buffer"===f||"blob"===f)&&v["blob"===f?"size":"byteLength"]<=750)try{const e=await new Response(v).json();e.error&&(v=e)}catch{}"image"===f&&v instanceof Blob&&(v=await T(URL.createObjectURL(v),e,!0))}}else{v=await g.text();try{v=JSON.parse(v)}catch{}}}else v=await T(t,e)}catch(t){if("AbortError"===t.name){if(b)throw new Error(P);throw(0,l.NK)("Request canceled")}if(!(!g&&t instanceof TypeError&&s.A.request.proxyUrl)||o.body||"delete"===o.method||"head"===o.method||"post"===o.method||"put"===o.method||e.useProxy||C(r))throw t;e.redoRequest=!0,(0,u.oy)({proxyUrl:s.A.request.proxyUrl,urlPrefix:(0,u.$z)(r)??""})}finally{q&&clearTimeout(q)}return[g,v]}function T(e,r,t=!1){const n=r.controller.signal,o=new Image;return r.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=s.A.request.priority,o.src=e,(0,p.y)(o,e,t,n)}function C(e){const r=(0,u.$z)(e);return!r||r.endsWith(".arcgis.com")||d.i.corsServers.includes(r)||(0,u.FL)(r)}async function A(){n.id||await Promise.all([t.e(7632),t.e(6408),t.e(1431),t.e(9466),t.e(5482),t.e(148),t.e(8050)]).then(t.bind(t,50148))}function O(e){return q.some(r=>r.test(e))}function k(e,r){let t;try{t=(new DOMParser).parseFromString(e,r)}catch{}if(!t||t.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return t}async function L(e,r,t){if(e.redoRequest)return e.redoRequest=!1,!1;const s=e.parameters.requestOptions;if(!r||"native"===s.responseType||"native-request-init"===s.responseType)return!0;let o,a;if(t&&(t.error&&"object"==typeof t.error?o=t.error:"error"===t.status&&Array.isArray(t.messages)&&(o={...t},o[U]=t,o.details=t.messages)),!o&&!r.ok)throw o=new Error(`Unable to load ${r.url} status: ${r.status}`),o[U]=t,o;let i,l=null;o&&(a=Number(o.code),l=o.hasOwnProperty("subcode")?Number(o.subcode):null,i=o.messageCode,i=i?.toUpperCase());const u=s.authMode;if(403===a&&(4===l||o.message?.toLowerCase().includes("ssl")&&!o.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&g.has(a)&&!O(e.parameters.url)&&(403!==a||(!i||!v.has(i))&&(null==l||2===l&&e.credentialToken))){await A();try{const r=await n.id.getCredential(e.parameters.url,{error:x("request:server",o,e.parameters),credential:e.credential,prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=r,e.credentialToken=r.token,e.useSSL=e.useSSL||r.ssl,!1}catch(r){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;o=r}}if(o)throw o;return!0}function x(e,r,t,s){let n;const a={url:t.url,requestOptions:t.requestOptions,getAllHeaders:E,getHeader:E,ssl:!1};if(r instanceof o.A)return r.details?(r.details=(0,i.o8)(r.details),r.details.url=t.url,r.details.requestOptions=t.requestOptions):r.details=a,r;if(r){const e=s&&(()=>Array.from(s.headers)),t=s&&(e=>s.headers.get(e)),o=s?.status,i=r.message;i&&(n=i),e&&t&&(a.getAllHeaders=e,a.getHeader=t),a.httpStatus=(null!=r.httpCode?r.httpCode:r.code)||o||0,a.subCode=r.subcode,a.messageCode=r.messageCode,"string"==typeof r.details?(a.messages=[r.details],n??=r.details):(a.messages=r.details,n??=a.messages?.[0]),a.raw=U in r?r[U]:r}return n??="Error",(0,l.zf)(r)?(0,l.NK)():new o.A(e,n,a)}const U=Symbol(),E=()=>null,P="Timeout exceeded";function $(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===P}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2741],{2741(e,r,t){t.d(r,{s:()=>i});var s=t(92602),n=(t(11254),t(49186)),o=t(53966),a=t(84952);function i(e){if(!s.A.assetsPath)throw o.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,a.fj)(s.A.assetsPath,e)}},97159(e,r,t){t.d(r,{a:()=>y,b:()=>g,e:()=>h,f:()=>a,i:()=>p,p:()=>f,r:()=>l,t:()=>i,w:()=>u});var s=t(70333),n=t(84952),o=t(39131);function a(e,r){const t=r?.url?.path;if(e&&t&&(e=(0,n.s2)(e,t,{preserveProtocolRelative:!0}),r.portalItem&&r.readResourcePaths)){const t=(0,n.V1)(e,r.portalItem.itemUrl);null!=t&&t.startsWith(d)&&r.readResourcePaths.push(r.portalItem.resourceFromPath(t).path)}return(e=m(e,r?.portal))&&c.test(e)?y(e):e}function i(e,r,t=0){if(null==(e=e&&c.test(e)?w(e):e))return e;!(0,n.oP)(e)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(e);let s=(0,n.s2)(e);if(r){const t=r.verifyItemRelativeUrls?.rootPath||r.url?.path;if(t){const o=m(t,r.portal),a=m(s,r.portal);s=(0,n.V1)(a,o,o),null!=s&&s!==a&&s!==e&&r.verifyItemRelativeUrls&&r.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=h(s,r?.portal),(0,n.oP)(s)&&(s=(0,n.S8)(s)),r?.resources&&r?.portalItem&&!(0,n.oP)(s)&&!(0,n.DB)(s)&&0===t&&r.resources.toKeep.push({resource:r.portalItem.resourceFromPath(s),compress:!1}),s}function l(e,r,t){return a(e,t)}function u(e,r,t,s){const n=i(e,s);void 0!==n&&(r[t]=n)}const c=/\/items\/([^/]+)\/resources\/(.*)/,d="./resources/";function p(e){const r=e?.match(c)??null;return r?.[1]??null}function f(e){const r=e?.match(c)??null;if(null==r)return null;const t=r[2],s=t.lastIndexOf("/");if(-1===s){const{path:e,extension:r}=(0,n.xw)(t);return{prefix:null,filename:e,extension:r}}const{path:o,extension:a}=(0,n.xw)(t.slice(s+1));return{prefix:t.slice(0,s),filename:o,extension:a}}function h(e,r){return r&&!r.isPortal&&r.urlKey&&r.customBaseUrl?(0,n.T1)(e,`${r.urlKey}.${r.customBaseUrl}`,r.portalHostname):e}function m(e,r){if(!r||r.isPortal||!r.urlKey||!r.customBaseUrl)return e;const t=`${r.urlKey}.${r.customBaseUrl}`,s=(0,n.Xq)();return(0,n.FX)(s,`${s.scheme}://${t}`)?(0,n.T1)(e,r.portalHostname,t):(0,n.T1)(e,t,r.portalHostname)}function y(e){if(!e)return e||null;let r=e;return r&&s.id&&!s.id.findCredential(r)&&(r=(0,o.qG)(r),r=r.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),r=r.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),r=r.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),r}function w(e){if(!e)return e||null;let r=e;return r=r.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),r=r.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),r=r.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),r&&s.id&&!s.id.findCredential(r)&&(r=(0,o.qG)(r)),r}const g=Object.freeze(Object.defineProperty({__proto__:null,ensureMainOnlineDomain:h,fromCDNUrl:w,fromJSON:a,itemIdFromResourceUrl:p,prefixAndFilenameFromResourceUrl:f,read:l,toCDNUrl:y,toJSON:i,write:u},Symbol.toStringTag,{value:"Module"}))},91869(e,r,t){function s(e,r){for(const t of e.values())if(r(t))return!0;return!1}function n(e,r){for(const t of e.values())if(!r(t))return!1;return!0}function o(e,r,t){const s=e.get(r);if(void 0!==s)return s;const n=t();return e.set(r,n),n}function a(e){const r=new Map;return t=>(r.has(t)||r.set(t,e(t)),r.get(t))}t.d(r,{Bj:()=>a,Bs:()=>s,mt:()=>n,tE:()=>o})},60694(e,r,t){t.d(r,{Fi:()=>d,HZ:()=>q,Jf:()=>v,LS:()=>b,Wo:()=>w,bd:()=>S,cr:()=>h,iz:()=>f,qg:()=>p,uV:()=>g,yG:()=>m});var s=t(84952),n=t(39131),o=t(97159);const a={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},i=Object.values(a),l=new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(?<serviceTitle>.+?)\\/(?<serverType>${i.join("|")})(?:\\/exts\\/(?<soeTitle>.+?)\\/(?<soeServerType>${i.join("|")}))?)(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),u=new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/(?<serviceTitle>[^/\\n]+)\\/(?<serverType>${i.join("|")}))(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function d(e){return l.test(e)}function p(e){if(null==e)return null;const r=(0,s.An)(e),t=r?.path.match(l)||r?.path.match(u);if(!t)return null;const{path:n,serviceTitle:o,serverType:i,soeTitle:c,soeServerType:d,sublayer:p}=t.groups??{},f=c||o,m=f.indexOf("/");return{title:h(-1!==m?f.slice(m+1):f),serverType:a[(d||i).toLowerCase()],sublayer:null!=p&&""!==p?parseInt(p,10):null,url:{path:n}}}function f(e){const r=(0,s.An)(e).path.match(c);return r?{serviceUrl:r[1],sublayerId:Number(r[2])}:null}function h(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,r){const t=[];if(e){const r=p(e);null!=r&&r.title&&t.push(r.title)}if(r){const e=h(r);t.push(e)}if(2===t.length){if(t[0].toLowerCase().includes(t[1].toLowerCase()))return t[0];if(t[1].toLowerCase().includes(t[0].toLowerCase()))return t[1]}return t.join(" - ")}const y=["services","features","tiles","elevation3d","basemaps3d"];function w(e){let r=(0,s.$z)(e,!0);return!!r&&(r=r.toLowerCase(),!!r.endsWith(".arcgis.com")&&(!!y.some(e=>r.startsWith(e))||/^[a-z\d-]+\.svcs[a-z\d-]*\./.test(r)))}function g(e){return(0,n.$E)(e)&&function(e){const r=(0,s.$z)(e);return!!r&&r.toLowerCase().endsWith(".arcgis.com")}(e)}function v(e,r){return e?(0,s.UC)((0,s.zi)(e,r)):e}function q(e){let{url:r}=e;if(!r)return{url:r};r=(0,s.zi)(r,e.logger);const t=(0,s.An)(r),n=p(t.path);let o;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(o=n.sublayer),r=n.url.path;else if(e.nonStandardUrlAllowed){const e=f(t.path);null!=e&&(r=e.serviceUrl,o=e.sublayerId)}return{url:(0,s.UC)(r),layerId:o}}function b(e,r,t,n,a){(0,o.w)(r,n,"url",a),n.url&&null!=e.layerId&&(n.url=(0,s.fj)(n.url,t,e.layerId.toString()))}function S(e){if(!e)return!1;const r=e.toLowerCase(),t=r.includes("/services/"),s=r.includes("/mapserver/wmsserver"),n=r.includes("/imageserver/wmsserver"),o=r.includes("/wmsserver");return t&&(s||n||o)}},11254(e,r,t){t.d(r,{A:()=>w});var s=t(92602),n=t(49186),o=t(44208),a=t(17676),i=t(84952),l=t(56152),u=t(65592),c=t(91869),d=t(60694);async function p(e){const r=function(e){let r,t=!1;return"string"==typeof e?(r=(0,i.$z)(e,!0),t=(0,d.Wo)(e)):(r=e.origin,t=(0,d.Wo)(e.toString())),null==r?null:new y(r,t)}(e.parameters.url);if(!r)return null;const{QueueProcessor:s,SharedConcurrency:n}=await t.e(563).then(t.bind(t,563));return(0,c.tE)(f,r.origin,()=>{const e=(r.isHosted?(0,o.A)("request-queue-concurrency-hosted"):(0,o.A)("request-queue-concurrency-non-hosted"))??4;return h??=new n((0,o.A)("request-queue-concurrency-global")??50),new s({concurrency:e,sharedConcurrency:h,process:e=>{if((0,a.G4)(e.parameters.requestOptions))throw(0,u.YB)("",(0,a.NK)("Request canceled"),e.parameters);return(0,u.zc)(e)}})})}const f=new Map;let h,m;class y{constructor(e,r){this.origin=e,this.isHosted=r}}async function w(e,r){e instanceof URL&&(e=e.toString());const s=(0,i.DB)(e),n=(0,i.w8)(e);n||s||(e=(0,i.S8)(e));const c={url:e,requestOptions:{...r}};r?.query&&(c.requestOptions.query=r?.query instanceof URLSearchParams?(0,i.zf)(r.query.toString().replaceAll("+"," ")):r?.query);const d=e=>({data:e,getAllHeaders:v,getHeader:v,httpStatus:200,requestOptions:c.requestOptions,url:c.url}),f=(0,i.sC)(e,g.internalInterceptors);if(f){const e=await q(f,c);if(null!=e)return d(e)}let h=(0,i.sC)(e);if(h){const e=await q(h,c);if(null!=e)return d(e);h.after||h.error||(h=null)}if(e=c.url,"image"===(r=c.requestOptions).responseType&&((0,o.A)("host-webworker")||(0,o.A)("host-node")))throw(0,u.YB)("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),c);if("head"===r.method){if(r.body)throw(0,u.YB)("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),c);if(s||n)throw(0,u.YB)("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),c)}if(await async function(){(0,o.A)("host-webworker")&&(!m&&globalThis.invokeStaticMessage?m=await t.e(369).then(t.bind(t,40369)):l.i.isForeignWorker=!0)}(),m)return m.execute(e,r);const y=new AbortController,w=(0,a.u7)(r,()=>y.abort()),b={controller:y,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:h,parameters:c,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},S=r.useQueue?async function(e){const r=await p(e);return r?r.push(e):(0,u.zc)(e)}(b):(0,u.zc)(b),T=await S.finally(()=>w?.remove());return h?.after?.(T),T}const g=s.A.request,v=()=>null;async function q(e,r){if(null!=e.responseData)return e.responseData;if(e.headers&&(r.requestOptions.headers={...r.requestOptions.headers,...e.headers}),e.query&&(r.requestOptions.query={...r.requestOptions.query,...e.query}),e.before){let t,s;try{s=await e.before(r)}catch(e){t=(0,u.YB)("request:interceptor",e,r)}if((s instanceof Error||s instanceof n.A)&&(t=(0,u.YB)("request:interceptor",s,r)),t)throw e.error&&e.error(t),t;return s}}},56152(e,r,t){t.d(r,{i:()=>s});const s={corsServers:["https://server.arcgisonline.com","https://services.arcgisonline.com"],beforeFetch:void 0,afterFetch:void 0,isForeignWorker:!1}},95117(e,r,t){t.d(r,{y:()=>n});var s=t(17676);function n(e,r,t=!1,n){return new Promise((o,a)=>{if((0,s.G4)(n))return void a((0,s.NK)());let i=()=>{c(),a(new Error(`Unable to load ${r}`))},l=async()=>{const r=e;try{await r.decode()}catch{}c(),o(r)},u=()=>{if(!e)return;const r=e;c(),r.src="",a((0,s.NK)())};const c=()=>{e&&(e.removeEventListener("error",i),e.removeEventListener("load",l),i=null,l=null,e=null,n?.removeEventListener("abort",u),u=null,t&&URL.revokeObjectURL(r))};n?.addEventListener("abort",u),e.addEventListener("error",i),e.addEventListener("load",l)})}},65592(e,r,t){t.d(r,{YB:()=>x,c8:()=>$,zc:()=>b});var s=t(92602),n=t(70333),o=t(49186),a=t(44208),i=t(4718),l=t(17676),u=t(84952),c=t(39131),d=t(56152),p=t(95117),f=t(60694);const h=new Map;function m(e,r){const t=r?.preferredHost;if(!t||(0,u.FX)(e,`https://${t}`,!0))return;const s=(0,f.qg)(e);if(!s||"FeatureServer"!==s.serverType||(0,c.$E)(e))return;const n=s.url.path.toLowerCase();h.has(n)||h.set(n,t)}function y(e){const r=(0,f.qg)(e)?.url.path.toLowerCase();if(!r)return e;const t=h.get(r);return t?(0,u.hf)(e,t):e}const w="FormData"in globalThis,g=new Set([499,498,403,401]),v=new Set(["COM_0056","COM_0057","SB_0008"]),q=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i];async function b(e){let r,o;await async function(e){const r=e.parameters.url,o=e.parameters.requestOptions,a=e.controller.signal,i=o.body;let u=null,c=null;if(w&&"HTMLFormElement"in globalThis&&(i instanceof FormData?u=i:i instanceof HTMLFormElement&&(u=new FormData(i))),"string"==typeof i&&(c=i),e.fetchOptions={cache:o.cacheMode??(o.cacheBust?"no-cache":"default"),credentials:"same-origin",headers:o.headers||{},keepalive:o.keepAlive??!1,method:"head"===o.method?"HEAD":"GET",mode:"cors",priority:o.priority??s.A.request.priority,redirect:"follow",signal:a},(u||c)&&(e.fetchOptions.body=u||c),(d.i.isForeignWorker||"anonymous"===o.authMode)&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(r)||o.query?.token||u?.get("token")),!e.hasToken){const{getApiKey:s,getSessionToken:n}=await t.e(926).then(t.bind(t,926)),a=await n(r)??s(r);a&&(o.query??={},o.query.token=a,e.hasToken=!0)}if(e.useIdentity&&!e.hasToken&&!e.credential&&!e.credentialToken&&!O(r)&&!(0,l.G4)(a)){let t;"immediate"===o.authMode?(await A(),t=await n.id.getCredential(r,{signal:a})):"no-prompt"===o.authMode?(await A(),t=await n.id.getCredential(r,{prompt:!1,signal:a}).catch(()=>{})):n.id&&(t=n.id.findCredential(r)),t&&(e.credential=t,e.credentialToken=t.token,e.useSSL=!!t.ssl)}}(e);try{do{[r,o]=await S(e)}while(!await L(e,r,o))}catch(t){const s=x("request:server",t,e.parameters,r);throw s.details.ssl=e.useSSL,e.interceptor?.error?.(s),s}const a=e.parameters.url;if(o)if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!e.hasToken&&!e.credentialToken&&o.user?.username&&!(0,u.FL)(a)){const e=(0,u.$z)(a,!0);e&&s.A.request.trustedServers.push(e)}Array.isArray(o.authorizedCrossOriginNoCorsDomains)&&function(e){s.A.request.crossOriginNoCorsDomains||(s.A.request.crossOriginNoCorsDomains={});const r=s.A.request.crossOriginNoCorsDomains;for(let t of e)t=t.toLowerCase(),/^https?:\/\//.test(t)?r[(0,u.$z)(t)??""]=0:(r[(0,u.$z)("http://"+t)??""]=0,r[(0,u.$z)("https://"+t)??""]=0)}(o.authorizedCrossOriginNoCorsDomains)}else"json"===(e.parameters.requestOptions.responseType||"json")&&m(a,o);const i=e.credential;if(i&&n.id){const e=n.id.findServerInfo(i.server);let r=e?.owningSystemUrl;if(r){r=r.replace(/\/?$/,"/sharing");const e=n.id.findCredential(r,i.userId);e&&-1===n.id._getIdenticalSvcIdx(r,e)&&e.resources.unshift(r)}}return{data:o,getAllHeaders:r?()=>Array.from(r.headers):E,getHeader:r?e=>r.headers.get(e):E,httpStatus:r?.status??200,requestOptions:e.parameters.requestOptions,ssl:e.useSSL,url:e.parameters.url}}async function S(e){let r=e.parameters.url,t=y(r);const o=e.parameters.requestOptions,i=e.fetchOptions??{},p=(0,u.w8)(r)||(0,u.DB)(r),f=o.responseType??"json",h=p?0:null!=o.timeout?o.timeout:s.A.request.timeout;let m=!1;if(!p){e.useSSL&&(r=(0,u.lM)(r));let l={...o.query};e.credentialToken&&(l.token=e.credentialToken);let d=(0,u.x0)(l);(0,a.A)("esri-url-encodes-apostrophe")&&(d=d.replaceAll("'","%27"));const p=t.length+1+d.length;let f;m="delete"===o.method||"post"===o.method||"put"===o.method||!!o.body||p>s.A.request.maxUrlLength;const h=o.useProxy||!!(0,u.zs)(r);if(h){const e=(0,u.s_)(r);f=e.path,!m&&f.length+1+p>s.A.request.maxUrlLength&&(m=!0),e.query&&(l={...e.query,...l})}if("HEAD"===i.method&&(m||h)){if(m){if(p>s.A.request.maxUrlLength)throw x("request:invalid-parameters",new Error("URL exceeds maximum length"),e.parameters);throw x("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.parameters)}if(h)throw x("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.parameters)}if(m?(i.method="delete"===o.method?"DELETE":"put"===o.method?"PUT":"POST",o.body?r=(0,u.a6)(r,l):(i.body=(0,u.x0)(l),i.headers||(i.headers={}),i.headers["Content-Type"]="application/x-www-form-urlencoded")):r=(0,u.a6)(r,l),h&&(e.useProxy=!0,r=`${f}?${r}`),l.token&&w&&i.body instanceof FormData&&!(0,c.$E)(r)&&i.body.set("token",l.token),o.hasOwnProperty("withCredentials"))e.withCredentials=o.withCredentials;else if(!(0,u.FX)(r,(0,u.Xq)()))if((0,u.FL)(r))e.withCredentials=!0;else if(n.id){const t=n.id.findServerInfo(r);t?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(i.credentials="include",function(e){const r=s.A.request.crossOriginNoCorsDomains;if(r){let t=(0,u.$z)(e);if(t)return t=t.toLowerCase(),!(0,u.FX)(t,(0,u.Xq)())&&r[t]<Date.now()-36e5}return!1}(r)&&await async function(e){const r=(0,u.An)(e);e=r.path,"json"===r.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}const t=s.A.request.crossOriginNoCorsDomains,n=(0,u.$z)(e);t&&n&&(t[n.toLowerCase()]=Date.now())}(m?(0,u.a6)(r,l):r)),t=y(r)}let g,v,q=0,b=!1;h>0&&(q=setTimeout(()=>{b=!0,e.controller.abort()},h));try{if("native-request-init"===o.responseType)v=i,v.url=t,o.signal?v.signal=o.signal:delete v.signal;else if("image"!==o.responseType||"default"!==i.cache||i.keepalive||"GET"!==i.method||m||function(e){if(e)for(const r of Object.getOwnPropertyNames(e))if(e[r])return!0;return!1}(o.headers)||!p&&!e.useProxy&&s.A.request.proxyUrl&&!C(r)){if(await(d.i.beforeFetch?.(r,i)),g=await fetch(t,i),await(d.i.afterFetch?.(g)),e.useProxy||function(e){const r=(0,u.$z)(e);r&&!d.i.corsServers.includes(r)&&d.i.corsServers.push(r)}(r),"native"===o.responseType)v=g;else if("HEAD"!==i.method)if(g.ok){switch(f){case"array-buffer":v=await g.arrayBuffer();break;case"blob":case"image":v=await g.blob();break;default:v=await g.text()}if(q&&(clearTimeout(q),q=0),"json"===f||"xml"===f||"document"===f)if(v)switch(f){case"json":v=JSON.parse(v);break;case"xml":v=k(v,"application/xml");break;case"document":v=k(v,"text/html")}else v=null;if(v){if(("array-buffer"===f||"blob"===f)&&v["blob"===f?"size":"byteLength"]<=750)try{const e=await new Response(v).json();e.error&&(v=e)}catch{}"image"===f&&v instanceof Blob&&(v=await T(URL.createObjectURL(v),e,!0))}}else{v=await g.text();try{v=JSON.parse(v)}catch{}}}else v=await T(t,e)}catch(t){if("AbortError"===t.name){if(b)throw new Error(P);throw(0,l.NK)("Request canceled")}if(!(!g&&t instanceof TypeError&&s.A.request.proxyUrl)||o.body||"delete"===o.method||"head"===o.method||"post"===o.method||"put"===o.method||e.useProxy||C(r))throw t;e.redoRequest=!0,(0,u.oy)({proxyUrl:s.A.request.proxyUrl,urlPrefix:(0,u.$z)(r)??""})}finally{q&&clearTimeout(q)}return[g,v]}function T(e,r,t=!1){const n=r.controller.signal,o=new Image;return r.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=s.A.request.priority,o.src=e,(0,p.y)(o,e,t,n)}function C(e){const r=(0,u.$z)(e);return!r||r.endsWith(".arcgis.com")||d.i.corsServers.includes(r)||(0,u.FL)(r)}async function A(){n.id||await Promise.all([t.e(7632),t.e(6408),t.e(477),t.e(9466),t.e(5482),t.e(148),t.e(8050)]).then(t.bind(t,50148))}function O(e){return q.some(r=>r.test(e))}function k(e,r){let t;try{t=(new DOMParser).parseFromString(e,r)}catch{}if(!t||t.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return t}async function L(e,r,t){if(e.redoRequest)return e.redoRequest=!1,!1;const s=e.parameters.requestOptions;if(!r||"native"===s.responseType||"native-request-init"===s.responseType)return!0;let o,a;if(t&&(t.error&&"object"==typeof t.error?o=t.error:"error"===t.status&&Array.isArray(t.messages)&&(o={...t},o[U]=t,o.details=t.messages)),!o&&!r.ok)throw o=new Error(`Unable to load ${r.url} status: ${r.status}`),o[U]=t,o;let i,l=null;o&&(a=Number(o.code),l=o.hasOwnProperty("subcode")?Number(o.subcode):null,i=o.messageCode,i=i?.toUpperCase());const u=s.authMode;if(403===a&&(4===l||o.message?.toLowerCase().includes("ssl")&&!o.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&g.has(a)&&!O(e.parameters.url)&&(403!==a||(!i||!v.has(i))&&(null==l||2===l&&e.credentialToken))){await A();try{const r=await n.id.getCredential(e.parameters.url,{error:x("request:server",o,e.parameters),credential:e.credential,prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=r,e.credentialToken=r.token,e.useSSL=e.useSSL||r.ssl,!1}catch(r){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;o=r}}if(o)throw o;return!0}function x(e,r,t,s){let n;const a={url:t.url,requestOptions:t.requestOptions,getAllHeaders:E,getHeader:E,ssl:!1};if(r instanceof o.A)return r.details?(r.details=(0,i.o8)(r.details),r.details.url=t.url,r.details.requestOptions=t.requestOptions):r.details=a,r;if(r){const e=s&&(()=>Array.from(s.headers)),t=s&&(e=>s.headers.get(e)),o=s?.status,i=r.message;i&&(n=i),e&&t&&(a.getAllHeaders=e,a.getHeader=t),a.httpStatus=(null!=r.httpCode?r.httpCode:r.code)||o||0,a.subCode=r.subcode,a.messageCode=r.messageCode,"string"==typeof r.details?(a.messages=[r.details],n??=r.details):(a.messages=r.details,n??=a.messages?.[0]),a.raw=U in r?r[U]:r}return n??="Error",(0,l.zf)(r)?(0,l.NK)():new o.A(e,n,a)}const U=Symbol(),E=()=>null,P="Timeout exceeded";function $(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===P}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3251],{52106(e,t,n){n.d(t,{A:()=>C});var r,i,o=n(5482),s=n(37838),a=n(69540),l=n(51447),u=n(25482),c=n(4718),p=n(53966),d=n(36708),f=n(24326),h=n(91429),m=n(12195),g=n(65864),y=n(50498),v=n(55156),M=n(60950),w=n(54339),b=n(94128),I=n(33910);function x(e){if(null==e)return null;const t={};for(const n in e){const r=e[n];r&&(t[n]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let C=class extends((0,a.OU)(u.o)){static{r=b.Z}static{i=this}constructor(e){super(e),this[r]=!0,this.aggregateIds=void 0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,f.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,aggregateIds:this.aggregateIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,M.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,v.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,v.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:x(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.aggregateIds?.length&&(e.aggregateIds=(0,c.o8)(this.aggregateIds)),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(i.action=r),"attributes"===e&&(i.attributeName=r),this.layer.graphicChanged(i)}_watchMeshGeometryChanges(){this.addHandles([(0,d.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,o.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const r=(0,g.rS)(e[n]);r&&(t[n]=r)}return 0!==Object.keys(t).length?t:null}}})],C.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,h.MZ)()],C.prototype,"aggregateIds",void 0),(0,o.Cg)([(0,h.MZ)({value:null})],C.prototype,"attributes",null),(0,o.Cg)([(0,h.MZ)({value:null,types:y.yR,json:{read:g.rS}})],C.prototype,"geometry",null),(0,o.Cg)([(0,h.MZ)({type:Boolean})],C.prototype,"isAggregate",void 0),(0,o.Cg)([(0,h.MZ)({clonable:!1})],C.prototype,"layer",void 0),(0,o.Cg)([(0,h.MZ)({clonable:"reference"})],C.prototype,"origin",void 0),(0,o.Cg)([(0,h.MZ)({type:s.A,value:null})],C.prototype,"popupTemplate",null),(0,o.Cg)([(0,h.MZ)({clonable:"reference"})],C.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,h.MZ)({value:null,types:I.Es})],C.prototype,"symbol",null),(0,o.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],C.prototype,"_version",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean,value:!0})],C.prototype,"visible",null),C=i=(0,o.Cg)([(0,h.$K)("esri.Graphic")],C)},9093(e,t,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>i,vt:()=>r,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(e,t,n,r,i,o,s,a,l,u,c,p,d,f,h,m){return[e,t,n,r,i,o,s,a,l,u,c,p,d,f,h,m]}},Symbol.toStringTag,{value:"Module"}))},35522(e,t,n){n.d(t,{$A:()=>A,Bw:()=>o,C:()=>s,Cc:()=>S,DI:()=>I,Il:()=>z,Io:()=>v,Ln:()=>y,Om:()=>C,Qr:()=>p,Re:()=>u,S8:()=>x,T9:()=>m,WQ:()=>l,Z0:()=>T,_S:()=>f,aI:()=>_,ei:()=>j,fw:()=>P,g7:()=>Z,gL:()=>O,hG:()=>M,hZ:()=>a,hs:()=>g,jb:()=>k,jk:()=>h,lo:()=>D,lw:()=>c,m3:()=>w,oW:()=>N,t2:()=>E,tn:()=>d,uE:()=>q,xg:()=>G,ze:()=>b});var r=n(51850),i=n(34304);function o(e){const t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function c(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function p(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function f(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function h(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function m(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function g(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function y(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}function v(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function M(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}function w(e){const t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}function b(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function I(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function x(e,t){const n=t[0],r=t[1],i=t[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,n){const r=t[0],i=t[1],o=t[2],s=n[0],a=n[1],l=n[2];return e[0]=i*l-o*a,e[1]=o*s-r*l,e[2]=r*a-i*s,e}function S(e,t,n,r){const i=t[0],o=t[1],s=t[2];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e[2]=s+r*(n[2]-s),e}function T(e,t,n){const r=t[0],i=t[1],o=t[2];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12],e[1]=n[1]*r+n[5]*i+n[9]*o+n[13],e[2]=n[2]*r+n[6]*i+n[10]*o+n[14],e}function j(e,t,n){const r=t[0],i=t[1],o=t[2];return e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8],e}function O(e,t,n){return P(e,t,n[0],n[1],n[2],n[3])}function P(e,t,n,r,i,o){const s=t[0],a=t[1],l=t[2],u=r*l-i*a,c=i*s-n*l,p=n*a-r*s,d=r*p-i*c,f=i*u-n*p,h=n*c-r*u,m=2*o;return e[0]=s+u*m+2*d,e[1]=a+c*m+2*f,e[2]=l+p*m+2*h,e}function Z(e,t){x(R,e),x(F,t);const n=C(R,F);return n>1?0:n<-1?Math.PI:Math.acos(n)}const R=(0,r.vt)(),F=(0,r.vt)();function E(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function _(e,t){if(e===t)return!0;const n=e[0],r=e[1],o=e[2],s=t[0],a=t[1],l=t[2],u=(0,i.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function N(e,t,n){const r=n[0]-t[0],i=n[1]-t[1],o=n[2]-t[2];let s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=r*s,e[1]=i*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const k=u,L=c,U=p,G=v,D=M,z=o,q=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:Z,bezier:function(e,t,n,r,i,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,p=3*l*s,d=l*o;return e[0]=t[0]*u+n[0]*c+r[0]*p+i[0]*d,e[1]=t[1]*u+n[1]*c+r[1]*p+i[1]*d,e[2]=t[2]*u+n[2]*c+r[2]*p+i[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,n=1){return e[0]=Math.min(Math.max(e[0],t),n),e[1]=Math.min(Math.max(e[1],t),n),e[2]=Math.min(Math.max(e[2],t),n),e},copy:s,cross:A,crossAndNormalize:function(e,t,n){const r=t[0],i=t[1],o=t[2],s=n[0],a=n[1],l=n[2],u=i*l-o*a,c=o*s-r*l,p=r*a-i*s,d=Math.sqrt(u*u+c*c+p*p);return e[0]=u/d,e[1]=c/d,e[2]=p/d,e},direction:N,dist:G,distance:v,div:U,divide:p,dot:C,equals:_,exactEquals:E,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,n,r,i,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return e[0]=t[0]*a+n[0]*l+r[0]*u+i[0]*c,e[1]=t[1]*a+n[1]*l+r[1]*u+i[1]*c,e[2]=t[2]*a+n[2]*l+r[2]*u+i[2]*c,e},inverse:I,len:z,length:o,lerp:S,max:m,min:h,mul:L,multiply:c,negate:b,normalize:x,random:function(e,t=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(r)*s,e[1]=Math.sin(r)*s,e[2]=o*t,e},rotateX:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateY:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},rotateZ:function(e,t,n,r){const i=[],o=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],e[0]=o[0]+n[0],e[1]=o[1]+n[1],e[2]=o[2]+n[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:g,scaleAndAdd:y,set:a,sign:f,sqrDist:D,sqrLen:q,squaredDistance:M,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:k,subtract:u,transformMat3:j,transformMat4:T,transformQuat:O,transformQuatValues:P},Symbol.toStringTag,{value:"Module"}))},13069(e,t,n){n.d(t,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},159(e,t,n){n.d(t,{A:()=>u});var r,i=n(5482),o=n(69540),s=n(25482),a=n(91429),l=n(99157);let u=r=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let t=this.steps.length-1;t>=0;t--){const n=this.steps[t];e.steps.push(n.getInverse())}return e}};(0,i.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,n){n.d(t,{A:()=>l});var r,i=n(5482),o=n(69540),s=n(25482),a=n(91429);let l=r=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,n)=>{t[n]=!e}}})],l.prototype,"isInverse",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,i.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,n){n.r(t),n.d(t,{projectBuffer:()=>i});var r=n(49208);function i(e,t,n,i,o,s,a=Math.floor(e.length/3)){const l=(0,r.jd)(t,o);if(null==l)return!1;if(l===r.pO){if(e===i&&n===s)return!0;const t=n+3*a;for(let r=n,o=s;r<t;r++,o++)i[o]=e[r]??0;return!0}const u=n+3*a;for(let t=n,r=s;t<u;t+=3,r+=3)l(e,t,i,r);return!0}},49208(e,t,n){n.d(t,{Tp:()=>p,jd:()=>c,pO:()=>f,w5:()=>u});var r=n(34727),i=n(86211),o=n(73941),s=n(79258),a=n(34403),l=n(21325);const u={2:{5:f,7:null,9:null,10:f,1:b,6:null,8:null,0:null,3:m,11:g,2:f,4:S},5:{5:f,7:null,9:null,10:f,1:b,6:null,8:null,0:null,3:m,11:g,2:f,4:S},7:{5:null,7:f,9:null,10:f,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:M,0:null,3:null,11:null,2:null,4:null},3:{5:h,7:null,9:null,10:h,1:function(e,t,n,r){const i=e[t]/R,o=Z-2*Math.atan(Math.exp(-e[t+1]/R)),s=R+(e[t+2]??0),a=Math.cos(o)*s;n[r]=Math.cos(i)*a,n[r+1]=Math.sin(i)*a,n[r+2]=Math.sin(o)*s},6:null,8:null,0:null,3:f,11:function(e,t,n,r){h(e,t,n,r),g(n,r,n,r)},2:h,4:function(e,t,n,r){h(e,t,n,r),S(n,r,n,r)}},4:{5:T,7:null,9:null,10:T,1:function(e,t,n,r){T(e,t,n,r),b(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){T(e,t,n,r),m(n,r,n,r)},11:function(e,t,n,r){T(e,t,n,r),g(n,r,n,r)},2:T,4:f},1:{5:A,7:null,9:null,10:A,1:f,6:null,8:null,0:null,3:function(e,t,n,r){A(e,t,n,r),m(n,r,n,r)},11:function(e,t,n,r){A(e,t,n,r),g(n,r,n,r)},2:A,4:function(e,t,n,r){A(e,t,n,r),S(n,r,n,r)}},6:{5:null,7:C,9:null,10:C,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:x,10:x,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:b,6:w,8:M,0:null,3:m,11:g,2:f,4:S},11:{5:y,7:null,9:null,10:y,1:function(e,t,n,r){y(e,t,n,r),b(n,r,n,r)},6:null,8:null,0:null,3:function(e,t,n,r){y(e,t,n,r),m(n,r,n,r)},11:f,2:y,4:function(e,t,n,r){y(e,t,n,r),S(n,r,n,r)}}};function c(e,t){return p(e,t)?.projector}function p(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const n=d(e,j.source),r=d(t,j.dest);return 0===n&&0===r?(0,l.aI)(e,t)?j.projector=f:j.projector=null:j.projector=u[n][r],j}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,o.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===o.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===o.FY.wkt?t.spatialReferenceId=6:e.wkt===o.LJ.wkt?t.spatialReferenceId=8:(0,o.q8)(e)?t.spatialReferenceId=7:(0,o.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,n,r){e!==n&&(n[r++]=e[t++],n[r++]=e[t++],n[r]=e[t]??0)}function h(e,t,n,r){n[r]=P*(e[t]/R),n[r+1]=P*(Z-2*Math.atan(Math.exp(-e[t+1]/R))),n[r+2]=e[t+2]??0}function m(e,t,n,i){!function(e,t,n,i,o){const s=.4999999*Math.PI,a=(0,r.qE)(O*e[t+1],-s,s),l=Math.sin(a);n[i++]=O*e[t]*o.radius,n[i++]=o.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[i]=e[t+2]??0}(e,t,n,i,s.$O)}function g(e,t,n,r){n[r]=e[t]*F,n[r+1]=e[t+1]*F,n[r+2]=e[t+2]??0}function y(e,t,n,r){n[r]=e[t]*E,n[r+1]=e[t+1]*E,n[r+2]=e[t+2]??0}function v(e,t,n,r,i){const o=i+(e[t+2]??0),s=O*e[t],a=O*e[t+1],l=Math.cos(a)*o;n[r]=Math.cos(s)*l,n[r+1]=Math.sin(s)*l,n[r+2]=Math.sin(a)*o}function M(e,t,n,r){v(e,t,n,r,s.Sw.radius)}function w(e,t,n,r){v(e,t,n,r,s.sH.radius)}function b(e,t,n,r){v(e,t,n,r,s.$O.radius)}function I(e,t,n,i,o){const s=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(s*s+a*a+l*l),c=(0,r.YN)(l/(0===u?1:u)),p=Math.atan2(a,s);n[i++]=P*p,n[i++]=P*c,n[i]=u-o}function x(e,t,n,r){I(e,t,n,r,s.Sw.radius)}function C(e,t,n,r){I(e,t,n,r,s.sH.radius)}function A(e,t,n,r){I(e,t,n,r,s.$O.radius)}function S(e,t,n,r){!function(e,t,n,r,i){const o=O*e[t],s=O*e[t+1],a=e[t+2]??0,l=Math.sin(s),u=Math.cos(s),c=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);n[r++]=(c+a)*u*Math.cos(o),n[r++]=(c+a)*u*Math.sin(o),n[r++]=(c*(1-i.eccentricitySquared)+a)*l}(e,t,n,r,s.$O)}function T(e,t,n,r){const i=a.TP,o=e[t],l=e[t+1],u=e[t+2]??0;let c,p,d,f,h,m,g,y,v,M,w,b,I,x,C,A,S,T,j,O,Z;c=Math.abs(u),p=o*o+l*l,d=Math.sqrt(p),f=p+u*u,h=Math.sqrt(f),O=Math.atan2(l,o),m=u*u/f,g=p/f,x=i.a2/h,C=i.a3-i.a4/h,g>.3?(y=c/h*(1+g*(i.a1+x+m*C)/h),j=Math.asin(y),M=y*y,v=Math.sqrt(1-M)):(v=d/h*(1-m*(i.a5-x-g*C)/h),j=Math.acos(v),M=1-v*v,y=Math.sqrt(M)),w=1-s.$O.eccentricitySquared*M,b=s.$O.radius/Math.sqrt(w),I=i.a6*b,x=d-b*v,C=c-I*y,S=v*x+y*C,A=v*C-y*x,T=A/(I/w+S),j+=T,Z=S+A*T/2,u<0&&(j=-j),n[r++]=P*O,n[r++]=P*j,n[r]=Z}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},O=(0,r.kU)(1),P=(0,r.KJ)(1),Z=.5*Math.PI,R=s.$O.radius,F=R*Math.PI/180,E=180/(R*Math.PI)},91218(e,t,n){n.r(t),n.d(t,{canProjectWithoutEngine:()=>J,initializeProjection:()=>B,isEqualBaseGCS:()=>V,isLoaded:()=>R,isLoadedOrLoad:()=>F,isLoadedOrLoadFor:()=>E,load:()=>N,project:()=>k,projectAsync:()=>K,projectExtent:()=>ie,projectMany:()=>L,projectMultipoint:()=>Q,projectOrLoad:()=>G,projectOrLoadMany:()=>D,projectPoint:()=>Y,projectPolygon:()=>ne,projectPolyline:()=>ee,projectWithoutEngine:()=>H,requiresLoad:()=>_,test:()=>$,tryProject:()=>U,unload:()=>q});var r=n(49186),i=n(17676),o=n(62788),s=n(95488),a=n(51850),l=n(21276),u=n(73941),c=n(5443),p=n(91075),d=n(48526),f=n(86738),h=n(39829),m=n(82799),g=n(16930),y=n(98764),v=n(159),M=n(9762),w=n(49208);function b(e,t,n,r,i,o){return I[0]=e,I[1]=t,I[2]=n,(0,M.projectBuffer)(I,r,0,i,o,0)}const I=(0,a.vt)();var x=n(60408),C=n(21325),A=n(52006);let S=null,T=null,j=null,O=null,P={};const Z=new s.I;function R(){return!!(T?.isLoaded()&&j?.isLoaded()&&O?.isLoaded())}function F(){return!!R()||((0,o.gc)(Z),N(),!1)}function E(e,t){return!e||!t||J(e,t)||F()}function _(e,t){return!J(e,t)&&!R()}async function N(e){null==S&&(S=Promise.all([n.e(3276).then(n.bind(n,83276)).then(e=>(T=e,T.load())),n.e(8377).then(n.bind(n,8377)).then(e=>(j=e,j.load())),n.e(2158).then(n.bind(n,12158)).then(e=>(O=e,O.load()))])),await S,(0,i.Te)(e),Z.notify()}function k(e,t,n){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),L(e,e[0].spatialReference,t,n)):((0,l.f)(e),L([e],e.spatialReference,t,n)[0])}function L(e,t,n,r){if(null==t||null==n)return e;if(J(t,n,r))return e.map(e=>H(e,t,n));if(null==r?.geographicTransformation&&(0,u.jA)(t))return L(e.map(e=>H(e,t,g.A.WGS84)),g.A.WGS84,n,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(n))return L(e,t,g.A.WGS84).map(e=>H(e,g.A.WGS84,n));if(!R())throw new z;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:O.getTransformation(t,n,r.areaOfInterestExtent)||new v.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,n);let i=P[e];i||(i=O.getTransformation(t,n)||new v.A,P[e]=i),r={geographicTransformation:i,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?T.executeMany(e,n,r):j.executeMany(e,n,r)}function U(e,t,n){try{return k(e,t,n)}catch(e){return null}}function G(e,t){const n=D([e],t);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function D(e,t,n){if(!R())for(const n of e)if(null!=n&&!(0,C.aI)(n.spatialReference,t)&&(0,C.fn)(n.spatialReference)&&(0,C.fn)(t)&&!J(n.spatialReference,t))return(0,o.gc)(Z),{pending:N(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?k(e,t,n):null)}}class z extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function q(){S=null,T=null,j=null,O=null,P={}}const $={get loadPromise(){return S}};async function K(e,t,n){if((0,i.Te)(n),!e)return e;const r=D(Array.isArray(e)?e:[e],t,n);if(r.pending)return await r.pending,(0,i.Te)(n),K(e,t,n);const o=r.geometries??[];return Array.isArray(e)?o:o[0]}function J(e,t,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,w.jd)(e,t))}function V(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const n=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),r=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return n&&r}async function B(e,t,n,r){if(R())return(0,i.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:n,options:i}of e)if(t&&n&&!J(t,n,i))return N(r)}else if(e&&t&&!J(e,t,n))return N(r);return(0,i.NO)(r)}function H(e,t,n){return e?(0,x.fT)(e)?W(e,t,new f.A,n,0):(0,x.ZC)(e)?oe(e,t,new c.A,n,0):(0,x.Bi)(e)?re(e,t,new h.A,n,0):(0,x.Rg)(e)?te(e,t,new m.A,n,0):(0,x.U9)(e)?X(e,t,new d.A,n,0):null:null}function Y(e,t,n=t.spatialReference,r=0){return null!=n&&null!=e.spatialReference&&null!=W(e,e.spatialReference,t,n,r)}function W(e,t,n,r,i){ue[0]=e.x,ue[1]=e.y;const o=e.z;return ue[2]=void 0!==o?o:i,(0,M.projectBuffer)(ue,t,0,ue,r,0)?(n.x=ue[0],n.y=ue[1],n.spatialReference=r,void 0!==o||(0,u.xP)(r)?(n.z=ue[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===e.m?(n.m=void 0,n.hasM=!1):(n.m=e.m,n.hasM=!0),n):null}function Q(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=X(e,e.spatialReference,t,n,r)}function X(e,t,n,r,i){const{points:o,hasZ:s,hasM:a}=e,l=[],u=o.length,c=[];for(const e of o)c.push(e[0],e[1],s?e[2]:i);if(!(0,M.projectBuffer)(c,t,0,c,r,0,u))return null;const p=le(s,r);for(let e=0;e<u;++e){const t=3*e,n=c[t],r=c[t+1];p&&a?l.push([n,r,c[t+2],o[e][3]]):p?l.push([n,r,c[t+2]]):a?l.push([n,r,o[e][2]]):l.push([n,r])}return n.points=l,n.spatialReference=r,n.hasZ=s,n.hasM=a,n}function ee(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=te(e,e.spatialReference,t,n,r)}function te(e,t,n,r,i){const{curvePaths:o,paths:s,hasZ:a,hasM:l}=e;if(!(o?ae(o,a??!1,l??!1,t,n.curvePaths=[],r,i):se(s,a??!1,l??!1,t,n.paths,r,i)))return null;const u=le(a,r);return n.spatialReference=r,n.hasZ=u,n.hasM=l,n}function ne(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=re(e,e.spatialReference,t,n,r)}function re(e,t,n,r,i){const{curveRings:o,rings:s,hasZ:a,hasM:l}=e;return(o?ae(o,a??!1,l??!1,t,n.curveRings=[],r,i):se(s,a??!1,l??!1,t,n.rings,r,i))?(n.spatialReference=r,n.hasZ=le(a,r),n.hasM=l,n):null}function ie(e,t,n=t.spatialReference,r=0){return null!=e.spatialReference&&null!=n&&null!=oe(e,e.spatialReference,t,n,r)}function oe(e,t,n,r,i){const{xmin:o,ymin:s,xmax:a,ymax:l,hasZ:u,hasM:c}=e;if(!b(o,s,u?e.zmin:i,t,ue,r))return null;const p=le(u,r);return n.xmin=ue[0],n.ymin=ue[1],p&&(n.zmin=ue[2]),b(a,l,u?e.zmax:i,t,ue,r)?(n.xmax=ue[0],n.ymax=ue[1],p&&(n.zmax=ue[2]),c&&(n.mmin=e.mmin,n.mmax=e.mmax),n.spatialReference=r,n):null}function se(e,t,n,r,i,o,s=0){const a=new Array;for(const n of e)for(const e of n)a.push(e[0],e[1],t?e[2]:s);if(!(0,M.projectBuffer)(a,r,0,a,o,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,o);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(l,l+=3);c||t.pop(),n&&t.push(r[u]),e.push(t)}i.push(e)}return!0}function ae(e,t,n,r,i,o,s=0){const a=new Array;for(const n of e)for(const e of n){if((0,A.FG)(e))return!1;if((0,A.aO)(e)){const[n,r]=e.c;a.push(n[0],n[1],t?n[2]:s,r[0],r[1],s);continue}if((0,A.n1)(e)){const[n,r,i]=e.b;a.push(n[0],n[1],t?n[2]:s,r[0],r[1],s,i[0],i[1],s);continue}const n=e;a.push(n[0],n[1],t?n[2]:s)}if(!(0,M.projectBuffer)(a,r,0,a,o,0))return!1;let l=0;i.length=0;const u=t?3:2,c=le(t,o);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(l,l+=3);if(c||t.pop(),n&&t.push((0,A.yP)(r)[u]),(0,A.FG)(r))return!1;if((0,A.aO)(r)){const n=a[l++],r=a[l++];++l,e.push({c:[t,[n,r]]});continue}if((0,A.n1)(r)){const n=a[l++],r=a[l++];++l;const i=a[l++],o=a[l++];++l,e.push({b:[t,[n,r],[i,o]]});continue}e.push(t)}i.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,C.aI)(t,y.Y0)}const ue=(0,a.vt)()},98764(e,t,n){n.d(t,{GD:()=>s,Y0:()=>u,lO:()=>c});var r=n(73941),i=n(16930),o=n(21325);const s=new i.A(r.fv),a=new i.A(r.FY),l=new i.A(r.LJ),u=new i.A(r.Ro);function c(e){const t=p.get(e);if(t)return t;let n=s;if(e)if(e===a)n=a;else if(e===l)n=l;else{const t=e.wkid,r=e.latestWkid;if(null!=t||null!=r)(0,o.tl)(t)||(0,o.tl)(r)?n=a:((0,o.ZL)(t)||(0,o.ZL)(r))&&(n=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?n=a:e===f&&(n=l)}}}return p.set(e,n),n}const p=new Map,d=a.wkt.toUpperCase(),f=l.wkt.toUpperCase()},4197(e,t,n){n.d(t,{Vj:()=>l,cj:()=>a,jh:()=>o,l5:()=>s});var r=n(34275),i=n(9093);function o(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function s(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function l(e){const t=(0,i.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},70328(e,t,n){n.d(t,{BI:()=>M,DC:()=>p,Ej:()=>f,Ie:()=>y,Jt:()=>v,Ne:()=>h,RF:()=>c,aI:()=>b,fA:()=>s,gE:()=>l,hZ:()=>g,iT:()=>d,is:()=>w,qv:()=>I,vI:()=>m,vY:()=>a,v_:()=>x,vt:()=>o,w1:()=>u}),n(35522);var r=n(5443),i=(n(19419),n(4197));function o(e=x){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,n,r,i,s,a=o()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=i,a[5]=s,a}function a(e,t=o()){return function(e,t,n,r=o()){return g(r,I),function(e,t,n=0,r=t.length/3){let i=e[0],o=e[1],s=e[2],a=e[3],l=e[4],u=e[5];for(let e=0;e<r;e++)i=Math.min(i,t[n+3*e]),o=Math.min(o,t[n+3*e+1]),s=Math.min(s,t[n+3*e+2]),a=Math.max(a,t[n+3*e]),l=Math.max(l,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=i,e[1]=o,e[2]=s,e[3]=a,e[4]=l,e[5]=u}(r,e,t,n),r}(e,0,e.length/3,t)}function l(e,t=(0,i.jh)(24)){const[n,r,o,s,a,l]=e;return t[0]=n,t[1]=r,t[2]=o,t[3]=n,t[4]=r,t[5]=l,t[6]=n,t[7]=a,t[8]=o,t[9]=n,t[10]=a,t[11]=l,t[12]=s,t[13]=r,t[14]=o,t[15]=s,t[16]=r,t[17]=l,t[18]=s,t[19]=a,t[20]=o,t[21]=s,t[22]=a,t[23]=l,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function m(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?g(e,I):o(I)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function M(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function b(e,t,n){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];o()},34403(e,t,n){n.d(t,{TP:()=>s});var r=n(79258);Math.PI;const i=r.$O.radius,o=r.$O.eccentricitySquared,s={a1:i*o,a2:i*o*i*o,a3:i*o*o/2,a4:i*o*i*o*2.5,a5:i*o+i*o*o/2,a6:1-o};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},83960(e,t,n){n.d(t,{X_:()=>o,oW:()=>a,zx:()=>s});var r=n(34727),i=n(86211);function o(e,t){const n=t||e.extent,r=e.width,o=(0,i.GA)(n?.spatialReference);return n&&r?n.width/r*o*i.dy*96:0}function s(e,t,n){return function(e,t){return 0===t||(0,r.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,r.Sp)(e,t)||e>t}(e,n)}function a(e,t){return(0,r.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},50498(e,t,n){n.d(t,{Ye:()=>p,gy:()=>c,iI:()=>f,yR:()=>d});var r=n(66552),i=n(5443),o=n(91075),s=n(48526),a=n(86738),l=n(39829),u=n(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:o.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:a.A,polyline:u.A,polygon:l.A}},f=new r.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(e,t,n){n.d(t,{I:()=>i,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&r in t?e[r]:void 0;var t}},79457(e,t,n){n.r(t),n.d(t,{default:()=>le});var r=n(5482),i=n(37838),o=n(11254),s=n(69540),a=n(49186),l=n(36563),u=n(4718),c=n(53966),p=n(25728),d=n(17676),f=n(84952),h=n(91429),m=n(56507),g=n(5443),y=n(16930),v=n(50498),M=n(55156),w=n(60950),b=n(89808),I=n(99959);const x=Symbol("isStreamGraphicOrigin");var C;class A extends I.A{get[(C=x,w.ym)](){return this.layer}get[M.e](){return this.layer}get[b.Q](){return this.layer}constructor(e){super(),this[C]=!0,this.type="stream",this.layer=e}get id(){return this.layer.id}}var S,T=n(4146),j=n(18768),O=n(63074),P=n(69208),Z=n(6455),R=n(87718),F=n(56658),E=n(34287),_=n(8303),N=n(54310),k=n(25036),L=n(82935),U=n(63396),G=n(10873),D=n(25747),z=n(15426),q=n(20437),$=n(17036),K=n(30524),J=n(9916),V=n(46499),B=n(39383),H=n(25482);let Y=class extends H.o{static{S=this}constructor(e){super(e),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}clone(){return new S({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,r.Cg)([(0,h.MZ)({type:Number,json:{write:!0}})],Y.prototype,"age",void 0),(0,r.Cg)([(0,h.MZ)({type:Number,json:{write:!0}})],Y.prototype,"ageReceived",void 0),(0,r.Cg)([(0,h.MZ)({type:Number,json:{write:!0}})],Y.prototype,"displayCount",void 0),(0,r.Cg)([(0,h.MZ)({type:Number,json:{write:!0}})],Y.prototype,"maxObservations",void 0),Y=S=(0,r.Cg)([(0,h.$K)("esri.layers.support.PurgeOptions")],Y);var W=n(72691),Q=n(65494),X=n(8947),ee=n(41214),te=n(61956),ne=n(30291),re=n(88625),ie=n(59923),oe=n(36005);const se=(0,$.p)();let ae=class extends((0,Z.FJ)((0,F.J)((0,R.F)((0,O.dM)((0,L.e)((0,U.d)((0,k.j)((0,N.J)((0,j.b)((0,E.q)((0,_.A)((0,p.M)((0,P.d)((0,s.OU)(T.A))))))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.graphicOrigin=new A(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.outFields=["*"],this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new Y,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.source=null,this.sourceJSON=null,this.spatialReference=y.A.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,r)=>{const{save:i,saveAs:o}=await n.e(7301).then(n.bind(n,87301));switch(e){case 0:return i(this,t);case 1:return o(this,r,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new a.A("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,K.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,n){t=t.layerDefinition||t;const r=t.drawingInfo?.renderer;if(r){const e=(0,Q.L)(r,t,n)||void 0;return e||c.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:n}),e}return(0,z.PD)(t,n)}async connect(e){const[{createConnection:t}]=await Promise.all([Promise.all([n.e(893),n.e(4401)]).then(n.bind(n,60986)),this.load()]),r=e?.spatialReference?.toJSON()??this.spatialReference.toJSON(),i=t(this.getStreamConnectionSource(e),r),o=(0,l.vE)([this.on("send-message-to-socket",e=>i.sendMessageToSocket(e)),this.on("send-message-to-client",e=>i.sendMessageToClient(e))]);return i.once("destroy",o.remove),i}getStreamConnectionSource(e){const{customParameters:t=null,definitionExpression:n=null,geometryDefinition:r=null,maxReconnectionAttempts:i=0,maxReconnectionInterval:o=20}=e||this.createConnectionParameters(),s=this.geometryType?v.gy.toJSON(this.geometryType):null,l=this.spatialReference.toJSON();if(this.source){if(!this.timeInfo?.trackIdField)throw new a.A("stream-layer:missing-metadata","TrackIdField required for Kusto data source.");return{type:"kusto",database:this.database,table:this.source.table,trackIdField:this.timeInfo.trackIdField,geometryEncoding:this.source.geometryEncoding.toJSON(),sourceSpatialReference:l,refreshInterval:this.source.refreshInterval}}return this.webSocketUrl?{type:"custom",url:(0,f.An)(this.webSocketUrl),customParameters:t,definitionExpression:n,geometryDefinition:r,geometryType:s,maxReconnectionAttempts:i,maxReconnectionInterval:o,sourceSpatialReference:l}:this.parsedUrl?{type:"geoevent",url:this.parsedUrl,customParameters:t,definitionExpression:n,geometryDefinition:r,geometryType:s,maxReconnectionAttempts:i,maxReconnectionInterval:o,sourceSpatialReference:l}:{type:"client",geometryType:s,sourceSpatialReference:this.spatialReference.toJSON()}}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,ne.tn)(this,e)}createQuery(){const e=new te.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let n=null;return this.fields.some(t=>(t.name===e&&(n=t.domain),!!n)),n}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){return this.webSocketUrl?((0,ie.U4)(t,this,"a custom websocket connection cannot be written to web scenes and web maps"),null):this.source?((0,ie.U4)(t,this,"a custom source cannot be written to web scenes and web maps"),null):this.parsedUrl?super.write(e,t):((0,ie.U4)(t,this,"a client-side only connection without a url cannot be written to web scenes and web maps"),null)}async _fetchService(e){if(this.source){const e=await(0,J.ZF)(this.source.workspace,this.source.database,this.source.table,{fields:this.fields,source:this.source,database:this.database});if(this.database=e.database,!e.fields)throw new a.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields=e.fields,!e.source)throw new a.A("stream-layer:missing-metadata","Unable to infer Kusto source.",{layerInfo:e});if(!e.source.geometryEncoding)throw new a.A("stream-layer:missing-metadata","Unable to infer Kusto geometry encoding.",{layerInfo:e});this.source=e.source}if(this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,o.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new a.A("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.fields)throw new a.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(!this.objectIdField){const e=this.fields.find(e=>"oid"===e.type)?.name;e&&(this.objectIdField=e)}if(this.fields.some(e=>e.name===this.objectIdField)||this.fields.push(new q.A({name:this.objectIdField,alias:this.objectIdField,type:"oid"})),!this.geometryType)throw new a.A("stream-layer:missing-metadata","The stream layer geometryType must be specified.")}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,K.yp)(this.renderer,this.fieldsIndex),(0,K.sv)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField=W.DN),(0,X.L)(this,{origin:"service"})}};(0,r.Cg)([(0,h.MZ)({type:String})],ae.prototype,"copyright",void 0),(0,r.Cg)([(0,h.MZ)()],ae.prototype,"database",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],ae.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,h.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ae.prototype,"definitionExpression",void 0),(0,r.Cg)([(0,h.MZ)({type:String})],ae.prototype,"displayField",void 0),(0,r.Cg)([(0,h.MZ)({type:re.A})],ae.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,h.MZ)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],ae.prototype,"featureReduction",null),(0,r.Cg)([(0,h.MZ)(se.fields)],ae.prototype,"fields",void 0),(0,r.Cg)([(0,h.MZ)(se.fieldsIndex)],ae.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,h.MZ)({type:g.A,json:{name:"layerDefinition.definitionGeometry",write:!0}})],ae.prototype,"geometryDefinition",void 0),(0,r.Cg)([(0,h.MZ)({type:v.gy.apiValues,json:{read:{reader:v.gy.read}}})],ae.prototype,"geometryType",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0,clonable:!1})],ae.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,h.MZ)(G.kF)],ae.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,h.MZ)({type:[V.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:B.w},write:!0}})],ae.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,h.MZ)(G.fV)],ae.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,h.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],ae.prototype,"listMode",void 0),(0,r.Cg)([(0,h.MZ)({type:m.jz})],ae.prototype,"maxReconnectionAttempts",void 0),(0,r.Cg)([(0,h.MZ)({type:m.jz})],ae.prototype,"maxReconnectionInterval",void 0),(0,r.Cg)([(0,h.MZ)(G.hG)],ae.prototype,"maxScale",void 0),(0,r.Cg)([(0,h.MZ)(G.hn)],ae.prototype,"minScale",void 0),(0,r.Cg)([(0,h.MZ)({type:String})],ae.prototype,"objectIdField",void 0),(0,r.Cg)([(0,h.MZ)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],ae.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,h.MZ)({readOnly:!0})],ae.prototype,"outFields",void 0),(0,r.Cg)([(0,h.MZ)(G.M6)],ae.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,h.MZ)({type:i.A,json:{name:"popupInfo",write:!0}})],ae.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,h.MZ)({type:Y})],ae.prototype,"purgeOptions",void 0),(0,r.Cg)([(0,h.MZ)({json:{read:!1,write:!1}})],ae.prototype,"refreshInterval",void 0),(0,r.Cg)([(0,h.MZ)({types:ee.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:ee.XJ,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],ae.prototype,"renderer",null),(0,r.Cg)([(0,oe.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,oe.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],ae.prototype,"readRenderer",null),(0,r.Cg)([(0,h.MZ)((()=>{const e=(0,u.o8)(G.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],ae.prototype,"screenSizePerspectiveEnabled",void 0),(0,r.Cg)([(0,h.MZ)({type:D.A,json:{write:!1}})],ae.prototype,"source",void 0),(0,r.Cg)([(0,h.MZ)()],ae.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,h.MZ)({type:y.A,json:{origins:{service:{read:{source:"spatialReference"}}}}})],ae.prototype,"spatialReference",void 0),(0,r.Cg)([(0,h.MZ)({json:{read:!1}})],ae.prototype,"type",void 0),(0,r.Cg)([(0,h.MZ)(G.OZ)],ae.prototype,"url",void 0),(0,r.Cg)([(0,h.MZ)({type:Number})],ae.prototype,"updateInterval",void 0),(0,r.Cg)([(0,h.MZ)({json:{read:!1,write:!1}})],ae.prototype,"useViewTime",void 0),(0,r.Cg)([(0,h.MZ)({type:String})],ae.prototype,"webSocketUrl",void 0),ae=(0,r.Cg)([(0,h.$K)("esri.layers.StreamLayer")],ae);const le=ae},54339(e,t,n){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const r of t.fieldNames)n.push(e.attributes[r]??null);return JSON.stringify(n)}}}function i(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>r,r:()=>i})},18768(e,t,n){n.d(t,{b:()=>a});var r=n(5482),i=n(53966),o=n(91429),s=n(60694);const a=e=>{const t=e;let n=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,s.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,s.Jf)(e,i.A.getLogger(this)))}};return(0,r.Cg)([(0,o.MZ)()],n.prototype,"title",null),(0,r.Cg)([(0,o.MZ)({type:String})],n.prototype,"url",null),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.ArcGISService")],n),n}},69208(e,t,n){n.d(t,{d:()=>o});var r=n(5482),i=n(91429);const o=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,r.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],n.prototype,"customParameters",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],n),n}},6455(e,t,n){n.d(t,{FJ:()=>y,Dp:()=>v,KV:()=>M});var r=n(5482),i=n(93637),o=n(91429),s=n(89317),a=n(69540),l=n(7762),u=n(25482),c=n(83960),p=n(13069);const d={write:{overridePolicy:(e,t,n)=>({enabled:!n||"scale"===n.filterMode})}};let f=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.id=(0,p.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"id",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:d})],f.prototype,"maxScale",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:d})],f.prototype,"minScale",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=(0,r.Cg)([(0,o.$K)("esri.layers.support.DisplayFilter")],f);var h=n(41560),m=n(43937);let g=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(l.A.ofType(f)),this.mode="manual"}writeFilters(e,t,n,r){const i=e.toArray();"scale"===this.mode&&i.sort((e,t)=>{const n=(0,c.oW)(t.minScale,e.minScale),r=e.maxScale-t.maxScale;return 0===n?r:n}),t[n]=i.map(e=>e.toJSON(r))}write(e,t){return super.write(e,(0,h.mW)(this,t))}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:{overridePolicy:(e,t,n)=>({enabled:"manual"===n.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,r.Cg)([(0,o.MZ)({type:l.A.ofType(f),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,r.Cg)([(0,m.K)("filters")],g.prototype,"writeFilters",null),(0,r.Cg)([(0,o.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,r.Cg)([(0,o.$K)("esri.layers.support.DisplayFilterInfo")],g);const y=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,r.Cg)([(0,o.MZ)(v)],n.prototype,"displayFilterEnabled",void 0),(0,r.Cg)([(0,o.MZ)(M)],n.prototype,"displayFilterInfo",void 0),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.DisplayFilteredLayer")],n),n},v={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:s.K,writer(e,t,n){(0,i.sM)(n,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},M={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:s.K},origins:{"web-scene":{write:!1,read:!1}}}}},8303(e,t,n){n.d(t,{A:()=>b});var r=n(5482),i=n(92602),o=n(70333),s=n(11254),a=n(60999),l=n(49186),u=n(53966),c=n(97768),p=n(17676),d=n(84952),f=n(91429),h=n(77548),m=n(20655),g=n(80812),y=n(41318),v=n(10407),M=n(36005),w=n(43937);const b=e=>{const t=e;let b=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,n){if(t.itemId)return new g.default({id:t.itemId,portal:n?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await n.e(1204).then(n.bind(n,41204));return(0,p.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let n=this.portalItem;if(!e||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!o.id?.findCredential(this.url),i=e===n.id;if(i&&n.portal.user)return this._getUserPrivileges(n,r);let s,a;if(i)s=n.portal.url;else try{s=await(0,h.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!s||!(0,d.b8)(s,n.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await n.reload():(n=new g.default({id:e,portal:{url:s}}),await n.load(t)),n.portal.user)return this._getUserPrivileges(n,r)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const n=(0,v.It)(e);return t&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const n=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const n=o.id?.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,i=m.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(r))return i.user;const l=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?y.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const n=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return n&&r&&!(0,d.ut)(r.restUrl,n.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,f.MZ)({type:g.default})],b.prototype,"portalItem",null),(0,r.Cg)([(0,M.w)("web-document","portalItem",["itemId"])],b.prototype,"readPortalItem",null),(0,r.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],b.prototype,"writePortalItem",null),(0,r.Cg)([(0,f.MZ)({clonable:!1})],b.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasUpdateItemPrivileges",void 0),b=(0,r.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],b),b},I={credential:null,user:null}},82935(e,t,n){n.d(t,{B:()=>d,e:()=>f});var r=n(5482),i=n(91429),o=n(89317),s=n(30524),a=n(96184),l=n(73133),u=n(79677),c=n(10184),p=n(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}},f=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const r=n.timeOffset,i=l.j.fromJSON(n.timeOffsetUnits);return r&&i?new c.A({value:r,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],n.prototype,"timeExtent",void 0),(0,r.Cg)([(0,i.MZ)({type:c.A})],n.prototype,"timeOffset",void 0),(0,r.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],n.prototype,"readOffset",null),(0,r.Cg)([(0,i.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],n.prototype,"timeInfo",null),(0,r.Cg)([(0,i.MZ)(d)],n.prototype,"useViewTime",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],n),n}},63396(e,t,n){n.d(t,{d:()=>I});var r=n(5482),i=n(91429),o=n(60950),s=n(99959);class a extends s.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}}var l=n(37838),u=n(69540),c=n(25482),p=n(93637),d=n(50820),f=n(10873),h=n(46499),m=n(41214);let g=class extends((0,u.OU)(c.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,r.Cg)([(0,i.MZ)({type:[h.A],json:{write:!0}})],g.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,i.MZ)(f.kF)],g.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,i.MZ)({types:m.Hg,json:{write:!0}})],g.prototype,"renderer",void 0),(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"visible",void 0),g=(0,r.Cg)([(0,i.$K)("esri.layers.support.TrackPartInfo")],g);var y=n(96576),v=n(59868),M=n(10184),w=n(43937);let b=class extends((0,u.OU)(c.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new g({renderer:new y.A({symbol:v.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new g({renderer:new y.A({symbol:v.UK.clone()})}),this.trackLines=new g({renderer:new y.A({symbol:v.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,n){const r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,p.sM)(n,r,t)}};(0,r.Cg)([(0,i.MZ)({type:Boolean,json:{write:!0}})],b.prototype,"enabled",void 0),(0,r.Cg)([(0,i.MZ)({type:[d.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,r.Cg)([(0,w.K)("fields")],b.prototype,"writeFields",null),(0,r.Cg)([(0,i.MZ)({type:g,json:{write:!0}})],b.prototype,"latestObservations",void 0),(0,r.Cg)([(0,i.MZ)({type:M.A,json:{write:!0}})],b.prototype,"maxDisplayDuration",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,json:{write:!0}})],b.prototype,"maxDisplayObservationsPerTrack",void 0),(0,r.Cg)([(0,i.MZ)(f.M6)],b.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,i.MZ)({type:l.A,json:{name:"popupInfo",write:!0}})],b.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,i.MZ)({type:g,json:{write:!0}})],b.prototype,"previousObservations",void 0),(0,r.Cg)([(0,i.MZ)({type:g,json:{write:!0}})],b.prototype,"trackLines",void 0),(0,r.Cg)([(0,i.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],b.prototype,"timeField",void 0),b=(0,r.Cg)([(0,i.$K)("esri.layers.support.TrackInfo")],b);const I=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,r.Cg)([(0,i.MZ)({readOnly:!0,clonable:!1})],n.prototype,"trackGraphicOrigin",void 0),(0,r.Cg)([(0,i.MZ)({type:b})],n.prototype,"trackInfo",void 0),n=(0,r.Cg)([(0,i.$K)("esri.layers.mixins.TrackableLayer")],n),n}},30279(e,t,n){n.d(t,{A:()=>u});var r=n(5482),i=n(69540),o=n(25482),s=n(10107),a=n(64108),l=n(62044);let u=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,r.Cg)([(0,s.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({types:l.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,r.Cg)([(0,a.$)("esri.layers.support.FieldConfiguration")],u)},9075(e,t,n){n.d(t,{A:()=>a});var r=n(5482),i=n(69540),o=n(25482),s=n(91429);let a=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.type="location",this.xField=null,this.yField=null}};(0,r.Cg)([(0,s.MZ)({type:["location"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"xField",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"yField",void 0),a=(0,r.Cg)([(0,s.$K)("esri.layers.support.GeometryEncodingLocation")],a)},96184(e,t,n){n.d(t,{A:()=>f});var r=n(5482),i=n(69540),o=n(25482),s=n(91429),a=n(79677),l=n(10184),u=n(56400),c=n(36005),p=n(43937);function d(e,t){return l.A.fromJSON({value:e,unit:t})}let f=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],f.prototype,"cumulative",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"endField",void 0),(0,r.Cg)([(0,s.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,p.K)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,r.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,r.Cg)([(0,p.K)("interval")],f.prototype,"writeInterval",null),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"startField",void 0),(0,r.Cg)([(0,s.MZ)((0,u.P6)("timeReference",!0))],f.prototype,"timeZone",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],f.prototype,"useTime",void 0),(0,r.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],f.prototype,"stops",void 0),f=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],f)},16194(e,t,n){n.d(t,{QX:()=>l,sS:()=>c,xY:()=>u});var r=n(4718),i=n(30279),o=n(62044),s=n(30524),a=n(41227);function l(e){const{popupTemplate:t,fieldsIndex:n}=e,r=t?.fieldInfos;if(!r?.length||!n)return;const s=[];for(const e of r){const{fieldName:t,label:r}=e,a=n.get(t);if(!a)continue;const l=r&&r!==a.alias?r:null,u=(0,o.iu)(e,a);(l||u)&&s.push(new i.A({name:a.name,alias:l,fieldFormat:u}))}return s.length?s:null}function u(e){const{fields:t}=e;if(!t?.length)return;const n=[];for(const e of t){const t=(0,o.qH)(e)?(0,o.$P)(e):null;t&&n.push(new i.A({name:e.name,fieldFormat:t}))}return n.length?n:null}function c(e,t){const{popupTemplate:n,fieldsIndex:i}=e;if(!n||!i)return;const s=function(e,t,n){t??=[],n=(0,r.o8)(n)??[];let i=!1;const s=new Map;for(const n of t){const t=e.fieldsIndex.get(n.name);t&&s.set(t.name,n)}for(const t of n){const n=e.fieldsIndex.get(t.fieldName);if(!n)continue;const r=s.get(n.name);t.label=r?.alias||n.alias,t.format=(0,o.qH)(n)&&r?.fieldFormat?(0,o.PK)(r.fieldFormat,n):null,i=!0,s.delete(n.name)}for(const t of s.values()){const r=p(e,t);r&&(n.push(r),i=!0)}return i?n:null}(e,t,n.fieldInfos);if(!s)return;const a=n.clone();return a.fieldInfos=s,a}function p(e,t){const{name:n,alias:r,fieldFormat:i}=t,l=e.fieldsIndex.get(n);if(!l||!r&&!i)return;const u=r||l.alias,c=(0,o.qH)(l)&&i?(0,o.PK)(i,l):null;return new a.A({fieldName:l.name,label:u,format:c,visible:!1,isEditable:(0,s.R$)(l,e)})}},17036(e,t,n){n.d(t,{p:()=>l});var r=n(44208),i=n(53966),o=n(20437),s=n(95466),a=n(30524);function l(){return{fields:{type:[o.A],value:null,set:function(e){if(e&&(0,r.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");i.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const n=this.fieldsIndex?.has(t);n||i.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},54625(e,t,n){n.d(t,{i_:()=>i});var r=n(30524);function i(e,t,n){t=(0,r.rS)(t)?.toLowerCase(),n=(0,r.rS)(n)?.toLowerCase();const i=e.map(e=>e.toLowerCase()),a=t?e[i.indexOf(t)]:null,l=n?e[i.indexOf(n)]:null;return{longitudeFieldName:a||e[i.indexOf(s.find(e=>i.includes(e)))],latitudeFieldName:l||e[i.indexOf(o.find(e=>i.includes(e)))]}}const o=["lat","lat83","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],s=["lon","lng","lng83","long","long83","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"]},5757(e,t,n){n.d(t,{B:()=>i,P:()=>r});const r=Symbol("PopupTemplateInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}},10407(e,t,n){n.d(t,{It:()=>f,LG:()=>s,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>p});var r=n(91218),i=n(16930),o=n(28735);function s(e,t){if(!a(e,t)){const n=e.typeKeywords;n?n.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const n=e.typeKeywords;if(n){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}function c(e,t,n){n?s(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let n;if(t.length>1)for(const e of t)n?e.width>n.width&&(n=e):n=e;else n=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const n=i.A.WGS84;return await(0,r.initializeProjection)(t,n),(0,r.project)(e,n)}(n)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function f(e){const{portal:t,isOrgItem:n,itemControl:r}=e,i=t.user?.privileges;let o=!i||i.includes("features:user:edit"),s=!!n&&!!i?.includes("features:user:fullEdit");const a="update"===r||"admin"===r;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}},8947(e,t,n){n.d(t,{L:()=>s});var r=n(60999),i=n(17676),o=n(67076);async function s(e,t,n){const s=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(s&&"unique-value"===s.type&&s.styleOrigin){const a=await(0,r.Ke)(s.populateFromStyle());if((0,i.Te)(n),!1===a.ok){const n=a.error;t?.messages&&t.messages.push(new o.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${n.message}`,{error:n,context:t})),e.clear("renderer",t?.origin)}}}},98205(e,t,n){n.d(t,{KZ:()=>a,eh:()=>s,gf:()=>o,of:()=>i,uY:()=>r});const r=Symbol("SizeVariableInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const n=t||s(e),r=e.valueUnit||"unknown";return"unknown"===n?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},41366(e,t,n){n.d(t,{K:()=>p,Q:()=>l});var r=n(5482),i=n(66552),o=n(53966),s=n(91429),a=n(93223);const l=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",p=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&c||n&&u||null,t&&n&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],n.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],n.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],n.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],n.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],n.prototype,"normalizationType",null),n=(0,r.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],n),n}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5217],{25217(e,t,i){i.r(t),i.d(t,{default:()=>w});var a=i(49186),s=i(17676),c=i(57634),l=i(16930),o=i(19211),n=i(35063),r=i(28208),h=i(66655);class w{constructor(e,t,i,c,w,u,d,f,m,p){this.level=e,this.row=t,this.column=i,this.horizontalFieldOfView=c,this.verticalFieldOfView=w,this.yaw=u,this.pitch=d,this.distance=f,this.horizonAngles=m,this.getPixelBlock=p,this._cache=null,this.loadMesh=async e=>{const{level:t,row:i,column:c,horizontalFieldOfView:w,verticalFieldOfView:u,yaw:d,pitch:f,distance:m}=this,{Mesh:p,MeshComponent:v,MeshVertexAttributes:g,panoramicMeshManager:A}=await(0,h.Zg)(),{faces:x,...M}=await A.getFacesWithVertexAttributes({distance:m,yaw:d,horizontalFieldOfView:w,pitch:f,verticalFieldOfView:u});(0,s.Te)(e);const V=await this.getPixelBlock(t,i,c,e);if((0,s.Te)(e),!V)throw new a.A("panoramic-viewer:missing-tile-data",`Tile data for level ${t}, row ${i}, column ${c} is missing`,{level:t,row:i,column:c});const b=await A.convertPixelBlockToImageData(V);(0,s.Te)(e);const k=new p({vertexAttributes:new g(M),components:[new v({faces:x,trustSourceNormals:!0,material:new o.default({colorTexture:new n.default({data:b})})})],spatialReference:l.A.WebMercator});return k.rotate(...this.horizonAngles,{origin:r.ZH}),await k.load(e),this._cache=k,this._cache},this.loadMeshAtDistance=async(e,t)=>{const i=this.distance;return this.distance=e,Math.abs(i-e)>1e-6&&this._cache?this._cache:await this.loadMesh(t)}}get loaded(){return null!==this._cache}get key(){return`${this.level}/${this.row}/${this.column}`}clone(){const{level:e,row:t,column:i,horizontalFieldOfView:a,verticalFieldOfView:s,yaw:l,pitch:o,distance:n,getPixelBlock:r,horizonAngles:h}=this,u=new w(e,t,i,a,s,l,o,n,h,r);if(this._cache){const{vertexAttributes:e,components:t,spatialReference:i}=this._cache,a=t?.map(({material:e,faces:t,trustSourceNormals:i})=>({material:e,faces:t?.slice(),trustSourceNormals:i}));u._cache=new c.default({components:a,vertexAttributes:e.clone(),spatialReference:i})}return u}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5217],{25217(e,t,i){i.r(t),i.d(t,{default:()=>w});var a=i(49186),s=i(17676),c=i(27925),l=i(16930),o=i(19211),n=i(35063),r=i(28208),h=i(66655);class w{constructor(e,t,i,c,w,u,d,f,m,p){this.level=e,this.row=t,this.column=i,this.horizontalFieldOfView=c,this.verticalFieldOfView=w,this.yaw=u,this.pitch=d,this.distance=f,this.horizonAngles=m,this.getPixelBlock=p,this._cache=null,this.loadMesh=async e=>{const{level:t,row:i,column:c,horizontalFieldOfView:w,verticalFieldOfView:u,yaw:d,pitch:f,distance:m}=this,{Mesh:p,MeshComponent:v,MeshVertexAttributes:g,panoramicMeshManager:A}=await(0,h.Zg)(),{faces:x,...M}=await A.getFacesWithVertexAttributes({distance:m,yaw:d,horizontalFieldOfView:w,pitch:f,verticalFieldOfView:u});(0,s.Te)(e);const V=await this.getPixelBlock(t,i,c,e);if((0,s.Te)(e),!V)throw new a.A("panoramic-viewer:missing-tile-data",`Tile data for level ${t}, row ${i}, column ${c} is missing`,{level:t,row:i,column:c});const b=await A.convertPixelBlockToImageData(V);(0,s.Te)(e);const k=new p({vertexAttributes:new g(M),components:[new v({faces:x,trustSourceNormals:!0,material:new o.default({colorTexture:new n.default({data:b})})})],spatialReference:l.A.WebMercator});return k.rotate(...this.horizonAngles,{origin:r.ZH}),await k.load(e),this._cache=k,this._cache},this.loadMeshAtDistance=async(e,t)=>{const i=this.distance;return this.distance=e,Math.abs(i-e)>1e-6&&this._cache?this._cache:await this.loadMesh(t)}}get loaded(){return null!==this._cache}get key(){return`${this.level}/${this.row}/${this.column}`}clone(){const{level:e,row:t,column:i,horizontalFieldOfView:a,verticalFieldOfView:s,yaw:l,pitch:o,distance:n,getPixelBlock:r,horizonAngles:h}=this,u=new w(e,t,i,a,s,l,o,n,h,r);if(this._cache){const{vertexAttributes:e,components:t,spatialReference:i}=this._cache,a=t?.map(({material:e,faces:t,trustSourceNormals:i})=>({material:e,faces:t?.slice(),trustSourceNormals:i}));u._cache=new c.default({components:a,vertexAttributes:e.clone(),spatialReference:i})}return u}}}}]);