@arcgis/core 5.1.0-next.80 → 5.1.0-next.82

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 (277) hide show
  1. package/analysis/ShadowCast/DiscreteOptions.d.ts +12 -0
  2. package/analysis/ShadowCast/TotalDurationOptions.d.ts +12 -0
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/040884cec4b84dd1bb17.js +1 -0
  5. package/assets/esri/core/workers/chunks/05c5f68e117fc58ae801.js +1 -0
  6. package/assets/esri/core/workers/chunks/074f5e6aaeafca13bf72.js +1 -0
  7. package/assets/esri/core/workers/chunks/{7bd1d624f4f4a11a31e8.js → 086d7cdfa92a649c9f7b.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{0eed2b1b06355ab89013.js → 0c074c46d106ca4d3bad.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{d7324a00ed576e7a37b1.js → 1768f1a7e3caa6074d91.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{85d3475667c503ec4fc6.js → 186bfde8c552e3b42302.js} +1 -1
  11. package/assets/esri/core/workers/chunks/1a35121a0c2595a41fdb.js +1 -0
  12. package/assets/esri/core/workers/chunks/1ab66600579fa4232d7b.js +1 -0
  13. package/assets/esri/core/workers/chunks/{d5fd99ee40bba9b48a54.js → 1e2c0c6d724f7639d4c1.js} +27 -27
  14. package/assets/esri/core/workers/chunks/1e3fe89970c57a883fe5.js +1 -0
  15. package/assets/esri/core/workers/chunks/{824051af00e7a1f05ed0.js → 230e0e43f8e771950397.js} +1 -1
  16. package/assets/esri/core/workers/chunks/26f804c92077c11c626d.js +1 -0
  17. package/assets/esri/core/workers/chunks/28a45bd26eb5c9b3ec7c.js +1 -0
  18. package/assets/esri/core/workers/chunks/38f1a86b8dd9ee684ee5.js +596 -0
  19. package/assets/esri/core/workers/chunks/{c1d4110aa494a1dba3c4.js → 455d08294e0f5c5509ff.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{71fe127734f33d020a44.js → 475394218caaa4cd3e86.js} +1 -1
  21. package/assets/esri/core/workers/chunks/475409026288f0981ce2.js +1 -0
  22. package/assets/esri/core/workers/chunks/4e206957b28253ddc1a3.js +1 -0
  23. package/assets/esri/core/workers/chunks/{87d2021e91d025a2a142.js → 5c7ba4b8a9ec2e2e02b5.js} +1 -1
  24. package/assets/esri/core/workers/chunks/5cc38ac051d3d0557920.js +1 -0
  25. package/assets/esri/core/workers/chunks/{992cd87ba0ab6346f692.js → 64e268ebac0b62076f81.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{003fd7745966fe03510c.js → 65ac73de5bb133c6bf89.js} +1 -1
  27. package/assets/esri/core/workers/chunks/6675d56f49d07a97dc40.js +1 -0
  28. package/assets/esri/core/workers/chunks/{1f82a0f134ea912fc686.js → 66fe1634c6e8f72fc653.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{96b13b6042cdf5833d39.js → 67abbe81c16de26f61d8.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{484d6c1b0fe1633515b7.js → 72f8f4cfa0842d325fb0.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{283d39dfb1625b5a74db.js → 747e258f57f0543c836e.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{dd4f431511edd975a53b.js → 7acf82763aeba44049d0.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{5d8e944b192aad4cf986.js → 7b505112c7e6d9b7a239.js} +1 -1
  34. package/assets/esri/core/workers/chunks/7b8466f892a38a53c600.js +1 -0
  35. package/assets/esri/core/workers/chunks/{6a0352d20596ca3f4b64.js → 88eb1e4320c4ada01711.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{77dd719516138afb1a2a.js → 8af9a78cf316581ea482.js} +1 -1
  37. package/assets/esri/core/workers/chunks/97719271a3e4c9f2b2c9.js +1 -0
  38. package/assets/esri/core/workers/chunks/988e91cc6cf88c34c2de.js +1 -0
  39. package/assets/esri/core/workers/chunks/9c402657f63a4d5668d0.js +1 -0
  40. package/assets/esri/core/workers/chunks/9cac70164d8528c283af.js +1 -0
  41. package/assets/esri/core/workers/chunks/9ea23cd4b2664c08b670.js +1 -0
  42. package/assets/esri/core/workers/chunks/9f51a69b8f1937a8794a.js +1 -0
  43. package/assets/esri/core/workers/chunks/a28124bba6b43efd74cc.js +1 -0
  44. package/assets/esri/core/workers/chunks/ac5999c88c27b49cd760.js +1 -0
  45. package/assets/esri/core/workers/chunks/af762422a65c551dcd54.js +1 -0
  46. package/assets/esri/core/workers/chunks/{056fd7847caaff2c9514.js → af8bc56cf1404afc3028.js} +1 -1
  47. package/assets/esri/core/workers/chunks/b811d62284be95f4beb6.js +1 -0
  48. package/assets/esri/core/workers/chunks/b9e163f4a898e50cc854.js +1 -0
  49. package/assets/esri/core/workers/chunks/{444f0f51b3ee0b9845a5.js → bb2f6b0fcdfb8b158e26.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{3b9100c59a8050f4834e.js → bbc27d9285162696d089.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{5da2051f548c2942e01a.js → bc8a74da48b08309875f.js} +1 -1
  52. package/assets/esri/core/workers/chunks/bd8cb64b6e08839398f3.js +1 -0
  53. package/assets/esri/core/workers/chunks/{026d3fa331caec1ea3d2.js → bf4dd8e50704e4040966.js} +1 -1
  54. package/assets/esri/core/workers/chunks/c19e3f6027b6526de359.js +1 -0
  55. package/assets/esri/core/workers/chunks/c8ef80a7c46d7d2c5172.js +1 -0
  56. package/assets/esri/core/workers/chunks/cbf1a03f54bd8d2a2b47.js +1 -0
  57. package/assets/esri/core/workers/chunks/ce4dfc3a470230ddc9e4.js +1 -0
  58. package/assets/esri/core/workers/chunks/{8ea4584e07ccc85caabd.js → d11de13537b623739e14.js} +1 -1
  59. package/assets/esri/core/workers/chunks/d897412b99b9fba44bb4.js +1 -0
  60. package/assets/esri/core/workers/chunks/d9c3f14eee4db7a7137b.js +1 -0
  61. package/assets/esri/core/workers/chunks/{035dbb0217f83108fa89.js → db86a1119e4e58ecfbda.js} +1 -1
  62. package/assets/esri/core/workers/chunks/dcb7a3ff59677b1cf0f1.js +1 -0
  63. package/assets/esri/core/workers/chunks/{5fe97253f80c797fad7f.js → df8a3d3cac454d42e14d.js} +1 -1
  64. package/assets/esri/core/workers/chunks/dfe1139124fda0d6c059.js +1 -0
  65. package/assets/esri/core/workers/chunks/{8b8f391f27774aec6db9.js → e0b27bceb397482bd0e8.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{fb9e3e7cd532ac4353f1.js → e89dc473f46a5584d2ef.js} +32 -32
  67. package/assets/esri/core/workers/chunks/{01ee18782a50279f907e.js → f4220b6eab0865318033.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{42336e0d1ef88737b078.js → f468c6ea2818a1f97e19.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{3f242f8d092f601c3abf.js → f77d23ee60c876b01e4b.js} +1 -1
  70. package/assets/esri/core/workers/chunks/fce2306a1b31c6680f90.js +1 -0
  71. package/assets/esri/core/workers/chunks/fcf51697c361e0075cc2.js +1 -0
  72. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  73. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  74. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +15 -0
  75. package/assets/esri/themes/dark/main.css +1 -1
  76. package/assets/esri/themes/light/main.css +1 -1
  77. package/assets/esri/themes/light/view.css +1 -1
  78. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable.json +1 -1
  79. package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_en.json +1 -1
  80. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
  81. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
  82. package/chunks/ShadowCastVisualize.glsl.js +33 -15
  83. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  84. package/chunks/arcgis-knowledge-client-core.js +1 -1
  85. package/config.js +1 -1
  86. package/core/workers/registry.js +1 -1
  87. package/form/elements/inputs/MultipleChoiceInput.d.ts +6 -6
  88. package/form/elements/inputs/MultipleChoiceInput.js +1 -1
  89. package/form/elements/inputs.js +1 -1
  90. package/geometry/SpatialReference.js +1 -1
  91. package/geometry/support/coordsUtils.js +1 -1
  92. package/kernel.js +1 -1
  93. package/layers/BaseDynamicLayer.js +1 -1
  94. package/layers/BaseTileLayer.js +1 -1
  95. package/layers/ElevationLayer.js +1 -1
  96. package/layers/FeatureLayer.d.ts +2 -2
  97. package/layers/FeatureLayer.js +1 -1
  98. package/layers/MapImageLayer.js +1 -1
  99. package/layers/TileLayer.js +1 -1
  100. package/layers/WMSLayer.js +1 -1
  101. package/layers/WMTSLayer.js +1 -1
  102. package/layers/WebTileLayer.js +1 -1
  103. package/layers/graphics/data/QueryEngine.js +1 -1
  104. package/layers/graphics/data/QueryEngineResult.js +1 -1
  105. package/layers/graphics/sources/MemorySource.js +1 -1
  106. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  107. package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
  108. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  109. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  110. package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
  111. package/layers/mixins/ArcGISImageService.js +1 -1
  112. package/layers/mixins/FeatureLayerBase.js +1 -1
  113. package/layers/mixins/TiledImagery.js +1 -1
  114. package/layers/support/imageBitmapUtils.js +1 -1
  115. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  116. package/package.json +1 -1
  117. package/request/process.js +1 -1
  118. package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +37 -0
  119. package/rest/knowledgeGraph/CreateReplicaResponse.js +2 -0
  120. package/rest/knowledgeGraph/ReplicaDefinition.d.ts +91 -0
  121. package/rest/knowledgeGraph/ReplicaDefinition.js +2 -0
  122. package/rest/knowledgeGraph/ReplicasInformationResponse.d.ts +24 -0
  123. package/rest/knowledgeGraph/ReplicasInformationResponse.js +2 -0
  124. package/rest/knowledgeGraph/UnregisterReplicaResponse.d.ts +44 -0
  125. package/rest/knowledgeGraph/UnregisterReplicaResponse.js +2 -0
  126. package/rest/knowledgeGraph/wasmInterface/replicaToWasmEncodedFactories.js +2 -0
  127. package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +2 -0
  128. package/rest/knowledgeGraphService.d.ts +50 -1
  129. package/rest/knowledgeGraphService.js +1 -1
  130. package/support/revision.js +1 -1
  131. package/views/2d/engine/vectorTiles/RenderBucket.js +1 -1
  132. package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
  133. package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
  134. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  135. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  136. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
  137. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
  138. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  139. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
  140. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
  141. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  142. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueCircle.js +1 -1
  143. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
  144. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
  145. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueSymbol.js +1 -1
  146. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  147. package/views/2d/input/MapViewInputManager.js +1 -1
  148. package/views/2d/layers/BaseDynamicLayerView2D.js +1 -1
  149. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  150. package/views/2d/layers/MediaLayerView2D.js +1 -1
  151. package/views/2d/layers/TileLayerView2D.js +1 -1
  152. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  153. package/views/2d/layers/WMSLayerView2D.js +1 -1
  154. package/views/2d/layers/WMTSLayerView2D.js +1 -1
  155. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  156. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  157. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  158. package/views/3d/input/SceneInputManager.js +1 -1
  159. package/views/3d/layers/ElevationLayerView3D.js +1 -1
  160. package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
  161. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  162. package/views/3d/layers/IntegratedMesh3DTilesLayerWorker.js +2 -0
  163. package/views/3d/layers/IntegratedMesh3DTilesLayerWorkerHandle.js +2 -0
  164. package/views/3d/layers/TileLayerView3D.js +1 -1
  165. package/views/3d/layers/WMTSLayerView3D.js +1 -1
  166. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  167. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  168. package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +2 -0
  169. package/views/3d/layers/support/makeScheduleFunction.js +1 -1
  170. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  171. package/views/3d/terrain/TerrainData.js +1 -1
  172. package/views/3d/terrain/TerrainSurface.js +1 -1
  173. package/views/3d/terrain/Tile.js +1 -1
  174. package/views/3d/terrain/TileRenderer.js +1 -1
  175. package/views/3d/terrain/terrainUtils.js +1 -1
  176. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  177. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  178. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  179. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialInitParameters.js +2 -0
  180. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
  181. package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +1 -1
  182. package/views/3d/webgl-engine/effects/atmosphere/LocalAtmosphere.js +1 -1
  183. package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
  184. package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
  185. package/views/3d/webgl-engine/effects/clouds/CloudsRenderer.js +1 -1
  186. package/views/3d/webgl-engine/effects/clouds/NoiseTextureAtlas.js +1 -1
  187. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  188. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  189. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  190. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  191. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
  192. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  193. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  194. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  195. package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBuffer.js +1 -1
  196. package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
  197. package/views/3d/webgl-engine/effects/precipitation/Precipitation.js +1 -1
  198. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  199. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  200. package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
  201. package/views/3d/webgl-engine/lib/CutFillComputationRenderNode.js +1 -1
  202. package/views/3d/webgl-engine/lib/CutFillVisualizationRenderNode.js +1 -1
  203. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  204. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  205. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  206. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  207. package/views/3d/webgl-engine/lib/StencilUtils.js +1 -1
  208. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  209. package/views/3d/webgl-engine/materials/VisualVariablePassParameters.js +1 -1
  210. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechnique.js +1 -1
  211. package/views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js +1 -1
  212. package/views/3d/webgl-engine/shaders/ShadowCastMaskTechnique.js +2 -0
  213. package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
  214. package/views/3d/webgl-engine/shaders/colorRampParameters.js +2 -0
  215. package/views/VideoView.js +1 -1
  216. package/views/analysis/ElevationProfile/elevationProfileGenerationUtils.js +1 -1
  217. package/views/draw/support/createUtils.js +1 -1
  218. package/views/input/BrowserEventSource.js +1 -1
  219. package/views/input/InputManager.js +1 -1
  220. package/views/input/handlers/LatestPen.js +2 -0
  221. package/views/input/handlers/LatestPointer.js +1 -1
  222. package/views/input/types.d.ts +1 -1
  223. package/views/interactive/Tooltip.js +1 -1
  224. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  225. package/views/support/TextureCompressionWorker.js +1 -1
  226. package/views/support/TextureCompressionWorkerHandle.js +1 -1
  227. package/views/support/unnormalizationUtils.js +2 -0
  228. package/views/webgl/RenderingContext.js +1 -1
  229. package/views/webgl/Texture.js +1 -1
  230. package/views/webgl/renderState.js +1 -1
  231. package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
  232. package/widgets/ElevationProfile/support/profileUtils.js +1 -1
  233. package/widgets/FeatureTable.js +1 -1
  234. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  235. package/widgets/OrientedImageryViewer/css.js +1 -1
  236. package/widgets/OrientedImageryViewer.js +1 -1
  237. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  238. package/assets/esri/core/workers/chunks/05c3146d87d917606193.js +0 -1
  239. package/assets/esri/core/workers/chunks/0b77c124b743067e4155.js +0 -1
  240. package/assets/esri/core/workers/chunks/11241781baaed346af52.js +0 -1
  241. package/assets/esri/core/workers/chunks/1d9560eb8b21b9e76616.js +0 -1
  242. package/assets/esri/core/workers/chunks/2c87c3112a43db8624f6.js +0 -1
  243. package/assets/esri/core/workers/chunks/2da62687ff678b690839.js +0 -1
  244. package/assets/esri/core/workers/chunks/3a58708217a9c11836ab.js +0 -1
  245. package/assets/esri/core/workers/chunks/3bbf684ee2484eb44c9f.js +0 -1
  246. package/assets/esri/core/workers/chunks/49fb9c47070641bce9a9.js +0 -1
  247. package/assets/esri/core/workers/chunks/4eed175277eb0df3c821.js +0 -1
  248. package/assets/esri/core/workers/chunks/4f9d027055f3a616173c.js +0 -1
  249. package/assets/esri/core/workers/chunks/5417308eba30e668b1ee.js +0 -1
  250. package/assets/esri/core/workers/chunks/62b3e933f548ce354b99.js +0 -1
  251. package/assets/esri/core/workers/chunks/63381d81adce0a0d2089.js +0 -1
  252. package/assets/esri/core/workers/chunks/6dbddf5ab1867ac2ac80.js +0 -1
  253. package/assets/esri/core/workers/chunks/6e70e922331704b92a08.js +0 -1
  254. package/assets/esri/core/workers/chunks/7c7c11c0fde8b63e330b.js +0 -1
  255. package/assets/esri/core/workers/chunks/7f55eef696e9ed717bfc.js +0 -1
  256. package/assets/esri/core/workers/chunks/89dbea6f436d45a3b185.js +0 -1
  257. package/assets/esri/core/workers/chunks/8f6f5dad52747d252aac.js +0 -596
  258. package/assets/esri/core/workers/chunks/99c189e1de2b1f14799b.js +0 -1
  259. package/assets/esri/core/workers/chunks/9aa6b32cb65fbaa93218.js +0 -1
  260. package/assets/esri/core/workers/chunks/9d216e30d04ea21fc8a2.js +0 -1
  261. package/assets/esri/core/workers/chunks/9d434360dfce1e49b7b9.js +0 -1
  262. package/assets/esri/core/workers/chunks/a5d8d6f3c0c8de474efd.js +0 -1
  263. package/assets/esri/core/workers/chunks/a809b811121099a87a98.js +0 -1
  264. package/assets/esri/core/workers/chunks/c02ba921c0a32d2021e3.js +0 -1
  265. package/assets/esri/core/workers/chunks/c3c19b62d948d53118a8.js +0 -1
  266. package/assets/esri/core/workers/chunks/c46a4adea39636a96d03.js +0 -1
  267. package/assets/esri/core/workers/chunks/c5507480344176fad241.js +0 -1
  268. package/assets/esri/core/workers/chunks/c6030271bd6d39b6e1db.js +0 -1
  269. package/assets/esri/core/workers/chunks/d1a7d13e1d48abcd7bf1.js +0 -1
  270. package/assets/esri/core/workers/chunks/dcbc4072c18278c2b67d.js +0 -1
  271. package/assets/esri/core/workers/chunks/e610d24539a675fb054b.js +0 -1
  272. package/assets/esri/core/workers/chunks/ecb7ede6a8e6c05e4c6c.js +0 -1
  273. package/assets/esri/core/workers/chunks/f227b34cce6843df0fb6.js +0 -1
  274. package/assets/esri/core/workers/chunks/fb5a2205f05afc396119.js +0 -1
  275. package/request/ImageWithType.js +0 -2
  276. package/views/3d/layers/support/fetchTile.js +0 -2
  277. package/views/interactive/editGeometry/unnormalizationHelper.js +0 -2
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8050,8815],{65529(e,t,n){n.d(t,{Zt:()=>r,a$:()=>o,bk:()=>s,nJ:()=>l});var i=n(69622),a=n(36563);const r=e=>{const t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let n=this._listenersMap?.get(e);if(!n)return!1;let i=!1;for(const e of n.slice()){const n="deref"in e?e.deref():e;n?n?.call(this,t):i=!0}return i&&(n=n.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,n)),n.length>0}on(e,t){if(Array.isArray(e)){const n=e.map(e=>this.on(e,t));return(0,a.vE)(n)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const n=this._listenersMap.get(e)||[];return n.push(t),this._listenersMap.set(e,n),(0,a.hA)(()=>{const n=this._listenersMap?.get(e),i=n?.indexOf(t)??-1;i>=0&&n.splice(i,1)})}once(e,t){const n=this.on(e,e=>{n.remove();const i="deref"in t?t.deref():t;i?.call(null,e)});return n}hasEventListener(e){const t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},o=r(class{}),s=o,l=r(i.A)},3483(e,t,n){function i(e,t){for(const n of e.values())if(t(n))return!0;return!1}function a(e,t){if(t)for(const n of t)null!=n&&e.add(n)}function r(e,t){null!=t&&e.add(t)}function o(e,t){const n=new Set;return a(n,e),a(n,t),n}function s(e,t){const n=new Set;for(const i of t)e.has(i)&&n.add(i);return n}function l(e,t){if(!e||!t)return!1;if(e===t)return!0;for(const n of e)if(!t.has(n))return!1;return!0}function u(e,t){if(null==e&&null==t)return!0;if(null==e||null==t||e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function d(e,t){const n=new Set(e);for(const e of t)n.delete(e);return n}n.d(t,{E$:()=>s,FB:()=>a,KC:()=>o,Yy:()=>l,aI:()=>u,bw:()=>i,iv:()=>d,kb:()=>r})},95488(e,t,n){n.d(t,{I:()=>a});var i=n(11406);class a extends i.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},51850(e,t,n){function i(){return[0,0,0]}function a(e){return[e[0],e[1],e[2]]}function r(e,t,n){return[e,t,n]}function o(e,t,n){return[e,t,n]}function s(e,t=[0,0,0]){const n=Math.min(3,e.length);for(let i=0;i<n;++i)t[i]=e[i];return t}function l(){return[0,0,0]}function u(){return r(1,1,1)}function d(){return r(1,0,0)}function c(){return r(0,1,0)}function m(){return r(0,0,1)}n.d(t,{CN:()=>o,Cb:()=>g,Cw:()=>p,JP:()=>y,S:()=>u,Ul:()=>l,Un:()=>h,ci:()=>s,fA:()=>r,o8:()=>a,uY:()=>f,vt:()=>i});const f=[0,0,0],h=u(),p=d(),y=c(),g=m();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:p,UNIT_Y:y,UNIT_Z:g,ZEROS:f,clone:a,create:i,freeze:o,fromArray:s,fromValues:r,ones:u,unitX:d,unitY:c,unitZ:m,zeros:l},Symbol.toStringTag,{value:"Module"}))},34304(e,t,n){n.d(t,{DF:()=>l,FD:()=>a,Ov:()=>r,ct:()=>u});let i=1e-6;function a(){return i}const r=Math.random,o=Math.PI/180,s=180/Math.PI;function l(e){return e*o}function u(e){return e*s}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:r,equals:function(e,t){return Math.abs(e-t)<=i*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:a,setEpsilon:function(e){i=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"}))},39516(e,t,n){let i;async function a(e,t){const a=await async function(){return null==i&&(i=Promise.all([n.e(9696),n.e(4800),n.e(5)]).then(n.bind(n,44123)).then(e=>new e.WhereClauseCache(500,500))),i}(),r=a.get(e,t);if(null==r)throw a.getError(e,t);return r}function r(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function o(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}n.d(t,{GP:()=>a,IW:()=>o,mA:()=>r}),n(3330),n(56400)},3330(e,t,n){n.d(t,{GB:()=>a,Qo:()=>o,Y4:()=>r});var i=n(92647);class a{static{this.instance=i.mQ.parseSpecifier("UTC")}}function r(e){return e instanceof i.bo?e===a.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return r(e)?a.instance:e}},88930(e,t,n){n.d(t,{S1:()=>l,lL:()=>d,mi:()=>u,rb:()=>c,t:()=>m});var i=n(97770),a=n(98623),r=n(92647);const o=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function l(e,t,n,o=a.qU){if("unknown"===n)return e;const s=new r.oh((0,i.wj)(o)),l=r.c9.fromJSDate(e,{zone:s}),u="decades"===n||"centuries"===n?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(n);return"decades"===n&&(t*=10),"centuries"===n&&(t*=100),l.plus({[u]:t}).toJSDate()}function u(e,t,n="milliseconds"){const i=e.getTime(),a=m(t,n,"milliseconds");return new Date(i+a)}function d(e,t,n=a.qU){const{unit:o}=t,s=Math.max(1,Math.trunc(t.value)),l=new r.oh((0,i.wj)(n)),u=r.c9.fromJSDate(e,{zone:l}),d=e=>e-e%s;switch(o){case"milliseconds":return u.startOf("second").plus({millisecond:d(u.millisecond)}).toJSDate();case"seconds":return u.startOf("minute").plus({second:d(u.second)}).toJSDate();case"minutes":return u.startOf("hour").plus({minute:d(u.minute)}).toJSDate();case"hours":return u.startOf("day").plus({hour:d(u.hour)}).toJSDate();case"days":return u.startOf("month").plus({day:d(u.day-1)}).toJSDate();case"weeks":{const e=u.startOf("year").startOf("week"),t=Math.floor(u.diff(e,"weeks").weeks);return e.plus({week:d(t)}).toJSDate()}case"months":return u.startOf("year").plus({month:d(u.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=u.startOf("year"),t=("decades"===o?10:"centuries"===o?100:1)*s,n=e.year-e.year%t;return e.set({year:n}).toJSDate()}case"unknown":return e}}function c(e){const t=o.exec(e);if(!t)return null;const{hh:n,mm:i,ss:a,ms:r}=t.groups;return Number(n)*s.hours+Number(i)*s.minutes+Number(a||0)*s.seconds+Number(r||0)}function m(e,t,n){return 0===e?0:e*s[t]/s[n]}},91075(e,t,n){n.d(t,{A:()=>l});var i=n(5482),a=n(25482),r=n(91429),o=n(16930),s=n(36005);let l=class extends a.o{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=o.A.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof o.A)return e;if(null!=e){const n=new o.A;return n.read(e,t),n}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,i.Cg)([(0,r.MZ)()],l.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],l.prototype,"cache",null),(0,i.Cg)([(0,r.MZ)({readOnly:!0})],l.prototype,"extent",null),(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasM",void 0),(0,i.Cg)([(0,r.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],l.prototype,"hasZ",void 0),(0,i.Cg)([(0,r.MZ)({type:o.A,json:{write:!0},value:o.A.WGS84})],l.prototype,"spatialReference",void 0),(0,i.Cg)([(0,s.w)("spatialReference")],l.prototype,"readSpatialReference",null),l=(0,i.Cg)([(0,r.$K)("esri.geometry.Geometry")],l)},86738(e,t,n){n.d(t,{A:()=>S});var i=n(5482),a=n(69622),r=n(53966),o=n(91429),s=n(56507),l=n(91075),u=n(16930),d=n(21325),c=n(28735);function m({x:e,y:t,spatialReference:n},i=[0,0]){if(n){if((0,d.K8)(n))return(0,c.tD)(e,t,i);if((0,d.EA)(n))return i[0]=e,i[1]=t,i}return null}const f=[0,0];var h,p=n(43937),y=n(36005);const g=[0,0];function T(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let S=h=class extends l.A{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const n=e._get("spatialReference");t._set("spatialReference",a.A.isFrozen(n)?n:n.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,n,i,a){let o;if(Array.isArray(e))o=e,a=t,e=o[0],t=o[1],n=o[2],i=o[3];else if(e&&"object"==typeof e){if(o=e,e=null!=o.x?o.x:o.longitude,t=null!=o.y?o.y:o.latitude,n=o.z,i=o.m,(a=o.spatialReference)&&"esri.geometry.SpatialReference"!==a.declaredClass&&(a=new u.A(a)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)r.A.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)r.A.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&a?.isWebMercator){const n=(0,c.je)(o.longitude,o.latitude,g);e=n[0],t=n[1]}}else T(n)?(a=n,n=null):T(i)&&(a=i,i=null);const s={x:e,y:t};return null==s.x&&null!=s.y?r.A.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==s.y&&null!=s.x&&r.A.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=a&&(s.spatialReference=a),null!=n&&(s.z=n),null!=i&&(s.m=i),s}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return m(this,f)?.[1]??null}set latitude(e){const{spatialReference:t,x:n}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,c.je)(n,e,g)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return m(this,f)?.[0]??null}set longitude(e){const{y:t,spatialReference:n}=this;null!=e&&n&&(n.isWebMercator?this._set("x",(0,c.je)(e,t,g)[0]):n.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,n){t[n]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new h;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return h.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:n,z:i,m:a,spatialReference:r}=this,{z:o,m:s}=e;let{x:l,y:u,spatialReference:d}=e;if(!r.equals(d))if(r.isWebMercator&&d.isWGS84)[l,u]=(0,c.je)(l,u),d=r;else{if(!r.isWGS84||!d.isWebMercator)return!1;[l,u]=(0,c.tD)(l,u),d=r}return t===l&&n===u&&i===o&&a===s&&r.wkid===d.wkid}offset(e,t,n){return this.x+=e,this.y+=t,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const e=(0,d.Vp)(this.spatialReference);if(!e)return this;let t=this.x;const[n,i]=e.valid,a=2*i;let r;return t>i?(r=Math.ceil(Math.abs(t-i)/a),t-=r*a):t<n&&(r=Math.ceil(Math.abs(t-n)/a),t+=r*a),this._set("x",t),this}distance(e){return function(e,t){const n=e.x-t.x,i=e.y-t.y,a=null!=e.z&&null!=t.z?e.z-t.z:0;return Math.sqrt(n*n+i*i+a*a)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],S.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],S.prototype,"hasM",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],S.prototype,"hasZ",null),(0,i.Cg)([(0,o.MZ)({type:Number})],S.prototype,"latitude",null),(0,i.Cg)([(0,o.MZ)({type:Number})],S.prototype,"longitude",null),(0,i.Cg)([(0,o.MZ)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,o.wg)(e=>isNaN(e)?e:(0,s.GB)(e))],S.prototype,"x",void 0),(0,i.Cg)([(0,p.K)("x")],S.prototype,"writeX",null),(0,i.Cg)([(0,y.w)("x")],S.prototype,"readX",null),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],S.prototype,"y",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],S.prototype,"z",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],S.prototype,"m",void 0),S=h=(0,i.Cg)([(0,o.$K)("esri.geometry.Point")],S),S.prototype.toJSON.isDefaultToJSON=!0},21276(e,t,n){n.d(t,{H:()=>r,f:()=>a});var i=n(49186);function a(e){if(e&&"object"==typeof e&&"type"in e&&"mesh"===e.type)throw new i.A("internal:mesh","Mesh geometries are not supported for this operation")}function r(e){e.forEach(a)}},28735(e,t,n){n.d(t,{Cv:()=>y,Gh:()=>S,ci:()=>M,je:()=>g,jg:()=>c,tD:()=>T,y7:()=>p,yw:()=>d});var i=n(4718),a=n(21276),r=n(16930),o=n(79258),s=n(21325);function l(e){return 57.29577951308232*e}function u(e){return.017453292519943*e}function d(e){return e/o.$O.radius}function c(e){return Math.PI/2-2*Math.atan(Math.exp(-e/o.$O.radius))}function m(e){return null!=e.wkid||null!=e.wkt}const f=[0,0];function h(e,t,n,i,a){const r=e,o=a;if(o.spatialReference=n,"x"in r&&"x"in o)[o.x,o.y]=t(r.x,r.y,f,i);else if("xmin"in r&&"xmin"in o)[o.xmin,o.ymin]=t(r.xmin,r.ymin,f,i),[o.xmax,o.ymax]=t(r.xmax,r.ymax,f,i);else if("paths"in r&&"paths"in o||"rings"in r&&"rings"in o){const e="paths"in r?r.paths:r.rings,n=[];let a;for(let r=0;r<e.length;r++){const o=e[r];a=[],n.push(a);for(let e=0;e<o.length;e++)a.push(t(o[e][0],o[e][1],[0,0],i)),o[e].length>2&&a[e].push(o[e][2]),o[e].length>3&&a[e].push(o[e][3])}"paths"in o?o.paths=n:o.rings=n}else if("points"in r&&"points"in o){const e=r.points,n=[];for(let a=0;a<e.length;a++)n[a]=t(e[a][0],e[a][1],[0,0],i),e[a].length>2&&n[a].push(e[a][2]),e[a].length>3&&n[a].push(e[a][3]);o.points=n}return a}function p(e,t){const n=e&&(m(e)?e:e.spatialReference),i=t&&(m(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!n||!i)&&(!!(0,s.aI)(i,n)||(0,s.K8)(i)&&(0,s.oT)(n)||(0,s.K8)(n)&&(0,s.oT)(i))}function y(e,t){if(null==e)return null;const n=e.spatialReference,a=t&&(m(t)?t:t.spatialReference);return p(n,a)?(0,s.aI)(n,a)?(0,i.o8)(e):(0,s.K8)(a)?h(e,g,r.A.WebMercator,!1,(0,i.o8)(e)):(0,s.oT)(a)?h(e,T,r.A.WGS84,!1,(0,i.o8)(e)):null:null}function g(e,t,n=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const i=u(t);return n[0]=u(e)*o.$O.radius,n[1]=o.$O.halfSemiMajorAxis*Math.log((1+Math.sin(i))/(1-Math.sin(i))),n}function T(e,t,n=[0,0],i=!1){if(e===s.Mc[0])n[0]=-180;else if(e===s.Mc[1])n[0]=180;else{const t=l(e/o.$O.radius);n[0]=i?t:t-360*Math.floor((t+180)/360)}return n[1]=l(Math.PI/2-2*Math.atan(Math.exp(-t/o.$O.radius))),n}function S(e,t=!1,n=(0,i.o8)(e)){return(0,a.f)(e),(0,a.f)(n),h(e,g,r.A.WebMercator,t,n)}function M(e,t=!1,n=(0,i.o8)(e)){return(0,a.f)(e),(0,a.f)(n),h(e,T,r.A.WGS84,t,n)}},97770(e,t,n){n.d(t,{Ey:()=>D,F8:()=>k,J2:()=>x,Yq:()=>_,_m:()=>E,_v:()=>M,iS:()=>N,wj:()=>I});var i=n(66552),a=n(73444),r=n(98623),o=(n(56400),n(92647));const s={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:r.n$},d={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},m={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},h={hour:"numeric",minute:"numeric"},p={...h,second:"numeric"},y={hourCycle:"h23"},g={...h,...y},T={...p,...y},S={"short-date":d,"short-date-short-time":{...d,...h},"short-date-short-time-24":{...d,...g},"short-date-long-time":{...d,...p},"short-date-long-time-24":{...d,...T},"short-date-le":d,"short-date-le-short-time":{...d,...h},"short-date-le-short-time-24":{...d,...g},"short-date-le-long-time":{...d,...p},"short-date-le-long-time-24":{...d,...T},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...h},"long-month-day-year-short-time-24":{...c,...g},"long-month-day-year-long-time":{...c,...p},"long-month-day-year-long-time-24":{...c,...T},"day-short-month-year":m,"day-short-month-year-short-time":{...m,...h},"day-short-month-year-short-time-24":{...m,...g},"day-short-month-year-long-time":{...m,...p},"day-short-month-year-long-time-24":{...m,...T},"long-date":f,"long-date-short-time":{...f,...h},"long-date-short-time-24":{...f,...g},"long-date-long-time":{...f,...p},"long-date-long-time-24":{...f,...T},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":h,"long-time":p},M=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),A={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},b=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),w=b.find(({type:e})=>"month"===e)?.value.toLowerCase();function v(){const e=(0,a.lR)();return(e&&A[e])??(0,a.QC)()}"mart"!==w&&(A.bs="sr-Latn-CS");let F=new WeakMap;const C=S["short-date-short-time"];function x(e){return S[e]}function E(e){const{dateStyle:t,timeStyle:n,hour12:i,year:a,month:r}=e,o={};return t?o.dateStyle=t:a&&(o.year=a,o.month=r||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===i?void 0:"always"===i),o}function _(e,t=C){return function(e){let t=F.get(e);if(!t){const n=v(),i=I(e.timeZone??r.qU),a={...e,timeZone:i};t=new Intl.DateTimeFormat(n,a),F.set(e,t)}return t}(t).format(e)}function N(e,t=C){return _(new Date(e),{...t,...u,...l})}function k(e,t=C){return _(new Date(`1970-01-01T${e}Z`),{...t,...u,...s})}function D(e,t=C){const n=o.c9.fromISO(e,{setZone:!0});if(!n.isValid)return e;if(t.timeZone)return _(n.toJSDate(),t);const i=0===n.offset?r.n$:t.timeZone,a={...t,timeZone:i};return n.toLocaleString(a,{locale:v()})}function I(e){switch(e){case r.qU:return r.N5;case r.L5:return r.n$;default:return e}}(0,a.Ml)(()=>{F=new WeakMap})},73444(e,t,n){n.d(t,{JK:()=>l,Ml:()=>y,QC:()=>c,lR:()=>d,oQ:()=>h});var i=n(36563);let a;n(44208);const r=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function s(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return r??e??t??"en"}function l(){return void 0===a&&(a=s()),a}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function d(e=l()){return m(e)?.language}function c(e=l()){const t=m(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function m(e=l()){return u.exec(e)?.groups}const f=[];function h(e){return f.push(e),(0,i.hA)(()=>{f.splice(f.indexOf(e),1)})}new Map;const p=[];function y(e){return p.push(e),(0,i.hA)(()=>p.splice(p.indexOf(e),1))}function g(){const e=s();a!==e&&([...p].forEach(t=>t(e)),a=e,[...f].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},95466(e,t,n){n.d(t,{A:()=>u});var i=n(49186),a=n(53966),r=n(12195),o=n(30524),s=n(98623),l=n(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,i=(0,o.GZ)(t);if(t&&i){const a=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(a,e),this._normalizedFieldsMap.set(i,e),n.push(`${a}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,o.te)(e)||(0,o.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,o.te)(e)||(0,o.Xz)(e)||e.nullable||void 0!==(0,o.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(a.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),s.n$):d.has(t.type)?s.L5:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,r.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const d=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:a}=e,r=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,m=a?function(e){return"timeZone"in e}(a)?a.timeZone??c:a.dateFieldsTimeReference?(0,l.ZS)(a.dateFieldsTimeReference):c??s.n$:null,f=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.timeReference?(0,l.ZS)(i.timeReference):c:null,h=new Map([[(0,o.NF)(a?.creationDateField??""),m],[(0,o.NF)(a?.editDateField??""),m],[(0,o.NF)(r),f],[(0,o.NF)(u),f]]);for(const{name:i,type:a}of e.fields)if(d.has(a))t.set(i,s.L5);else if("date"!==a&&"esriFieldTypeDate"!==a)t.set(i,null);else if(n)t.set(i,s.L5);else{const e=h.get((0,o.NF)(i??""))??c;t.set(i,e)}return t}},68463(e,t,n){n.d(t,{A5:()=>g});var i=n(3483),a=n(97768),r=n(54218),o=n(92647);const s=["HH:mm:ss.SSS","HH:mm:ss","HH:mm","TT"];function l(e){if(!e||!(0,r.Kg)(e))return null;const t=o.c9.fromFormat(e,"yyyy-MM-dd");return t.isValid?t:null}function u(e){return e&&(0,r.Kg)(e)?(0,a.Pb)(s,t=>{const n=o.c9.fromFormat(e,t);return n.isValid?n:null})??null:null}function d(e){if(!e||!(0,r.Kg)(e))return null;const t=o.c9.fromISO(e);return t.isValid?t:null}const c=new Set(["integer","small-integer","long","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]);function m(e){return null!=e&&c.has(e.type)}function f(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function h(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function p(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}const y=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]);function g(e,t){const n=t??e?.domain;if(!n||"range"!==n.type)return;const i="range"in n?n.range[0]:n.minValue,a="range"in n?n.range[1]:n.maxValue,r=m(e);return f(e)||p(e)||h(e)?{...T(e,a,i),isInteger:r}:{min:null!=i&&"number"==typeof i?i:null,max:null!=a&&"number"==typeof a?a:null,rawMin:i,rawMax:a,isInteger:r}}function T(e,t,n){return f(e)?{min:l(n)?.toMillis(),max:l(t)?.toMillis(),rawMin:n,rawMax:t}:p(e)?{min:u(n)?.toMillis(),max:u(t)?.toMillis(),rawMin:n,rawMax:t}:h(e)?{min:d(n)?.toMillis(),max:d(t)?.toMillis(),rawMin:n,rawMax:t}:{max:null,min:null}}(0,i.KC)(c,y)},30524(e,t,n){n.d(t,{Ah:()=>W,Bz:()=>D,CJ:()=>ee,DB:()=>g,Dx:()=>A,GZ:()=>pe,JL:()=>de,Jl:()=>N,Kl:()=>ue,NF:()=>he,OG:()=>H,OH:()=>K,R$:()=>k,R3:()=>U,Vb:()=>fe,WA:()=>B,WX:()=>Q,Xz:()=>X,_b:()=>Z,_w:()=>T,e7:()=>me,eX:()=>v,hL:()=>M,lD:()=>I,mB:()=>b,nw:()=>ce,rS:()=>d,rq:()=>S,sv:()=>p,te:()=>Y,uo:()=>le,vE:()=>q,yM:()=>j,yp:()=>f,zD:()=>J}),n(49186);var i=n(93637),a=n(3483),r=(n(39516),n(68463),n(69309)),o=n(54218),s=n(43668);const l=/^([0-9_])/,u=/[^a-z0-9_\u0080-\uffff]+/gi;function d(e){return null==e?null:e.trim().replaceAll(u,"_").replace(l,"F$1")||null}const c=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],m=["field","normalizationField"];function f(e,t){if(null!=e&&null!=t)for(const n of Array.isArray(e)?e:[e])if(h(c,n,t),"visualVariables"in n&&n.visualVariables)for(const e of n.visualVariables)h(m,e,t)}function h(e,t,n){if(e)for(const a of e){const e=(0,i.wc)(a,t),r=e&&"function"!=typeof e&&n.get(e);r&&(0,i.sM)(a,r.name,t)}}function p(e,t){if(null!=e&&t?.fields?.length)if("startField"in e){const n=t.get(e.startField),i=t.get(e.endField);e.startField=n?.name??null,e.endField=i?.name??null}else{const n=t.get(e.startTimeField),i=t.get(e.endTimeField);e.startTimeField=n?.name??null,e.endTimeField=i?.name??null}}const y=new Set;function g(e,t){return e&&t?(y.clear(),T(y,e,t),Array.from(y).sort()):[]}function T(e,t,n){if(n)if(t?.fields?.length)if(n.includes("*"))for(const{name:n}of t.fields)e.add(n);else for(const i of n)S(e,t,i);else{if(n.includes("*"))return e.clear(),void e.add("*");for(const t of n)null!=t&&e.add(t)}}function S(e,t,n){if("string"==typeof n)if(t){const i=t.get(n);i&&e.add(i.name)}else e.add(n)}function M(e,t){return null==t||null==e?[]:t.includes("*")?(e.fields??[]).map(e=>e.name):t}async function A(e,t,n,i){if(!i)return;const a=(0,r.o)(i);if(a)S(e,t,a);else{const{arcadeUtils:a}=await(0,s.l)(),r=a.extractFieldNames(i,n?.partitions??t?.fields?.map(e=>e.name));for(const i of r)S(e,n?.index??t,i)}}function b({displayField:e,fields:t}){return e||(t?.length?function(e){return w(e,"name-or-title")||w(e,"unique-identifier")||w(e,"type-or-category")||function(e){for(const t of e){if(!t?.name)continue;const e=t.name.toLowerCase();if(e.includes("name")||e.includes("title"))return t.name}return null}(e)}(t):null)}function w(e,t){for(const n of e)if(n?.valueType&&n.valueType===t)return n.name;return null}function v(e){return e?g(e.fieldsIndex,E(e)):[]}const F=new Set(["oid","global-id","guid"]),C=new Set(["oid","global-id"]),x=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/objectid/i,/^perimeter_/i,/_perimeter$/i,/_i$/i];function E(e){if(!e)return[];const t="editFieldsInfo"in e&&e.editFieldsInfo;if(!t)return[];const{creationDateField:n,creatorField:i,editDateField:a,editorField:r}=t;return[n,i,a,r].filter(Boolean)}function _(e){return E(e).map(e=>e.toLowerCase())}function N(e){return!!e.type}function k(e,t){return!!e.editable&&N(e)&&!F.has(e.type)&&!_(t).includes(e.name?.toLowerCase()??"")}function D(e,t){const n=e.name?.toLowerCase()??"";return!(null!=t?.objectIdField&&n===t.objectIdField.toLowerCase()||null!=t?.globalIdField&&n===t.globalIdField.toLowerCase()||function(e){const t=new Set;_(e).forEach(e=>t.add(e)),function(e){if(!e)return[];const t=e.geometryFieldsInfo;return t?g(e.fieldsIndex,[t.shapeAreaField,t.shapeLengthField]):[]}(e).forEach(e=>t.add(e.toLowerCase()));const n=e&&"infoFor3D"in e?e.infoFor3D:void 0;return n&&(Object.values(n.assetMapFieldRoles).forEach(e=>t.add(e.toLowerCase())),Object.values(n.transformFieldRoles).forEach(e=>t.add(e.toLowerCase()))),Array.from(t)}(t).includes(n)||C.has(e.type)||x.some(e=>e.test(n)))}function I(e){const t=e.defaultValue;return void 0!==t&&V(e,t)?t:e.nullable?null:void 0}function Z(e){const t="string"==typeof e?{type:e}:e;return j(t)?255:"esriFieldTypeDate"===t.type||"date"===t.type?8:void 0}function L(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function z(e){return null===e||L(e)}function O(e){return null===e||Number.isInteger(e)}function $(){return!0}function V(e,t){let n;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":n=e.nullable?O:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":n=e.nullable?z:L;break;case"string":case"esriFieldTypeString":n=e.nullable?o.CO:o.Kg;break;default:n=$}return 1===arguments.length?n:n(t)}const P=new Set(["integer","small-integer","big-integer","long","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]),G=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),R=(0,a.KC)(P,G);function U(e){return null!=e&&P.has(e.type)}function B(e){return null!=e&&R.has(e.type)}function j(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function q(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function J(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function W(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function K(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function Y(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function X(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function H(e,t){return null===ee(e,t)}function Q(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function ee(e,t){return null==e||e.nullable&&null===t?null:V(e,t)?B(e)&&!function(e,t){const n="string"==typeof e?te(e):e;if(!n)return!1;const i=n.min,a=n.max;return n.isInteger?Number.isInteger(t)&&t>=i&&t<=a:t>=i&&t<=a}(e.type,Number(t))?"numeric-range-validation-error::out-of-range":null:"type-validation-error::invalid-type"}function te(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return ne;case"esriFieldTypeInteger":case"esriFieldTypeLong":case"integer":case"long":return ie;case"esriFieldTypeBigInteger":case"big-integer":return ae;case"esriFieldTypeSingle":case"single":return oe;case"esriFieldTypeDouble":case"double":return se}}const ne={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},ie={min:-2147483648,max:2147483647,isInteger:!0,rawMin:-2147483648,rawMax:2147483647},ae={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},re=(2-2**-23)*2**127,oe={min:-re,max:re,isInteger:!1,rawMin:-re,rawMax:re},se={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function le(e,t,n){switch(e){case"domain-validation-error::invalid-coded-value":return`Value ${n} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case"domain-validation-error::value-out-of-range":return`Value ${n} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case"type-validation-error::invalid-type":return`Value ${n} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case"numeric-range-validation-error::out-of-range":{const{min:e,max:i}=te(t.type);return`Value ${n} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${i}`}}}function ue(e,t){return!function(e,t){if(!e?.attributes||!t)return!0;const n=new Set(Object.keys(e.attributes));let i=!1;for(const e of t)if(!n.has(e)){i=!0;break}return i}(e,t)}function de(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some(t=>e.toLowerCase().startsWith(t))}function ce(e){const t=e?.match(/{[^}]+}/g);return t?t.map(e=>e.slice(1,-1).split(":")[0].trim()):[]}function me(e,t){const{statisticType:n,onStatisticField:i,onStatisticExpression:a}=e,r=t.get(i),o=B(r),s=a?.returnType;switch(n){case"avg":case"avg_angle":return r?o||q(r)?"double":null:s&&"number"===s?"double":null;case"count":return"integer";case"min":case"max":return r?o||function(e){return null!=e&&("date"===e.type||"date-only"===e.type||"time-only"===e.type||"timestamp-offset"===e.type)}(r)?r?.type??null:null:s&&"number"===s?"double":null;case"sum":return r?o?r?.type??null:null:s&&"number"===s?"double":null;case"mode":return r?r?.type??null:s?"number"===s?"double":"string":null;default:return null}}function fe(e){const{fieldName:t,fieldsMap:n,normalizedFieldsMap:i}=e;if(!t)return;let a=n.get(t);return a||(a=n.get(he(t))??i.get(pe(t)),a&&n.set(t,a),a)}function he(e){return e.trim().toLowerCase()}function pe(e){return d(e)?.toLowerCase()??""}},9760(e,t,n){n.d(t,{A:()=>d});var i=n(5482),a=n(66552),r=n(25482),o=n(91429),s=n(93223);const l=new a.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new a.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let d=class extends r.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,i.Cg)([(0,s.e)({classBreaksDef:"class-breaks-definition"})],d.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"breakCount",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"classificationField",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{read:l.read,write:l.write}})],d.prototype,"classificationMethod",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"normalizationType",void 0),(0,i.Cg)([(0,o.MZ)({value:null,json:{write:!0}})],d.prototype,"standardDeviationInterval",null),(0,i.Cg)([(0,o.MZ)({value:null,json:{write:!0}})],d.prototype,"definedInterval",null),d=(0,i.Cg)([(0,o.$K)("esri.rest.support.ClassBreaksDefinition")],d)},84892(e,t,n){n.d(t,{t:()=>r});var i=n(53966);function a(e,t){return Number(e.toFixed(t))}function r(e,t){const{normalizationTotal:n}=e;return{classBreaks:o(e,t),normalizationTotal:n}}function o(e,t){const n=e.definition,{classificationMethod:i,normalizationType:r,definedInterval:o}=n,u=n.breakCount??1,d=[];let c=e.values;if(0===c.length)return[];c=c.sort((e,t)=>e-t);const[m,f]=t??[c.at(0),c.at(-1)];if("equal-interval"===i)if(c.length>=u){const e=(f-m)/u;let t=m;for(let n=1;n<u;n++){const i=a(m+n*e,6);d.push({minValue:t,maxValue:i,label:s(t,i,r)}),t=i}d.push({minValue:t,maxValue:f,label:s(t,f,r)})}else c.forEach(e=>{d.push({minValue:e,maxValue:e,label:s(e,e,r)})});else if("natural-breaks"===i){const t=function(e){const t=[],n=[];let i=Number.MIN_VALUE,a=1,r=-1;for(let o=0;o<e.length;o++){const s=e[o];s===i?(a++,n[r]=a):null!==s&&(t.push(s),i=s,a=1,n.push(a),r++)}return{uniqueValues:t,valueFrequency:n}}(c),n=e.valueFrequency||t.valueFrequency,i=l(t.uniqueValues,n,u);let o=m;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){const n=a(t.uniqueValues[i[e]],6);d.push({minValue:o,maxValue:n,label:s(o,n,r)}),o=n}d.push({minValue:o,maxValue:f,label:s(o,f,r)})}else if("quantile"===i)if(c.length>=u&&m!==f){let e=m,t=Math.ceil(c.length/u),n=0;for(let i=1;i<u;i++){let a=t+n-1;a>c.length&&(a=c.length-1),a<0&&(a=0),d.push({minValue:e,maxValue:c[a],label:s(e,c[a],r)}),e=c[a],n+=t,t=Math.ceil((c.length-n)/(u-i))}d.push({minValue:e,maxValue:f,label:s(e,f,r)})}else{let e=-1;for(let t=0;t<c.length;t++){const n=c[t];n!==e&&(e=n,d.push({minValue:e,maxValue:n,label:s(e,n,r)}),e=n)}}else if("standard-deviation"===i){const e=function(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/=e.length,t}(c),t=function(e,t){let n=0;for(let i=0;i<e.length;i++){const a=e[i];n+=(a-t)*(a-t)}return n/=e.length,Math.sqrt(n)}(c,e);if(0===t)d.push({minValue:c[0],maxValue:c[0],label:s(c[0],c[0],r)});else{const n=function(e,t,n,i,a){let r=Math.max(i-e,t-i)/a/n;return r=r>=1?1:r>=.5?.5:.25,r}(m,f,u,e,t)*t;let i=0,o=m;for(let t=u;t>=1;t--){const l=a(e-(t-.5)*n,6);d.push({minValue:o,maxValue:l,label:s(o,l,r)}),o=l,i++}let l=a(e+.5*n,6);d.push({minValue:o,maxValue:l,label:s(o,l,r)}),o=l,i++;for(let t=1;t<=u;t++)l=i===2*u?f:a(e+(t+.5)*n,6),d.push({minValue:o,maxValue:l,label:s(o,l,r)}),o=l,i++}}else if("defined-interval"===i){if(!o)return d;const[e,n]=t??[c.at(0),c.at(-1)],i=Math.ceil((n-e)/o);let l=e;for(let t=1;t<i;t++){const n=a(e+t*o,6);d.push({minValue:l,maxValue:n,label:s(l,n,r)}),l=n}d.push({minValue:l,maxValue:n,label:s(l,n,r)})}return d}function s(e,t,n){let i=null;return i=e===t?n&&"percent-of-total"===n?e+"%":e.toString():n&&"percent-of-total"===n?e+"% - "+t+"%":e+" - "+t,i}function l(e,t,n){const i=e.length,a=[];n>i&&(n=i);for(let e=0;e<n;e++)a.push(Math.round(e*i/n-1));a.push(i-1);let r=u(a,e,t,n);return function(e,t,n,i,a,r){let o=0,s=0,l=0,u=0,c=!0;for(let m=0;m<2&&c;m++){0===m&&(c=!1);for(let m=0;m<r-1;m++)for(;n[m+1]+1!==n[m+2];){n[m+1]=n[m+1]+1;const r=d(m,n,i,a);l=r.sbMean,o=r.sbSdcm;const f=d(m+1,n,i,a);if(u=f.sbMean,s=f.sbSdcm,!(o+s<t[m]+t[m+1])){n[m+1]=n[m+1]-1;break}t[m]=o,t[m+1]=s,e[m]=l,e[m+1]=u,c=!0}for(let m=r-1;m>0;m--)for(;n[m]!==n[m-1]+1;){n[m]=n[m]-1;const r=d(m-1,n,i,a);l=r.sbMean,o=r.sbSdcm;const f=d(m,n,i,a);if(u=f.sbMean,s=f.sbSdcm,!(o+s<t[m-1]+t[m])){n[m]=n[m]+1;break}t[m-1]=o,t[m]=s,e[m-1]=l,e[m]=u,c=!0}}return c}(r.mean,r.sdcm,a,e,t,n)&&(r=u(a,e,t,n)),a}function u(e,t,n,i){let a=[],r=[],o=[],s=0;const l=[],u=[];for(let a=0;a<i;a++){const i=d(a,e,t,n);l.push(i.sbMean),u.push(i.sbSdcm),s+=u[a]}let c,m=s,f=!0;for(;f||s<m;){f=!1,a=[];for(let t=0;t<i;t++)a.push(e[t]);for(let n=0;n<i;n++)for(let a=e[n]+1;a<=e[n+1];a++)if(c=t[a],n>0&&a!==e[n+1]&&Math.abs(c-l[n])>Math.abs(c-l[n-1]))e[n]=a;else if(n<i-1&&e[n]!==a-1&&Math.abs(c-l[n])>Math.abs(c-l[n+1])){e[n+1]=a-1;break}m=s,s=0,r=[],o=[];for(let a=0;a<i;a++){r.push(l[a]),o.push(u[a]);const i=d(a,e,t,n);l[a]=i.sbMean,u[a]=i.sbSdcm,s+=u[a]}}if(s>m){for(let t=0;t<i;t++)e[t]=a[t],l[t]=r[t],u[t]=o[t];s=m}return{mean:l,sdcm:u}}function d(e,t,n,a){let r=0,o=0;for(let i=t[e]+1;i<=t[e+1];i++){const e=a[i];r+=n[i]*e,o+=e}o<=0&&i.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");const s=r/o;let l=0;for(let i=t[e]+1;i<=t[e+1];i++)l+=a[i]*(n[i]-s)**2;return{sbMean:s,sbSdcm:l}}},69309(e,t,n){function i(e){if(!e)return;const t=e.match(a);return t?.groups?t.groups.doubleQuoted??t.groups.singleQuoted??t.groups.dotNotation:void 0}n.d(t,{D:()=>r,o:()=>i});const a=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-z_][a-z0-9_]*))$/i;function r(e){return e.match(o)?.[1]?.replaceAll("\\'","'")??null}const o=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},54218(e,t,n){function i(e){return"number"==typeof e}function a(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function r(e){return"boolean"==typeof e}function o(e){return"string"==typeof e||e instanceof String}function s(e){return null==e||o(e)}function l(e){return Array.isArray(e)}function u(e){return e instanceof Date}n.d(t,{$P:()=>u,CO:()=>s,Et:()=>i,Fq:()=>a,Kg:()=>o,Lm:()=>r,cy:()=>l})},43668(e,t,n){let i;function a(){return i||(i=(async()=>{const[e,t,i]=await Promise.all([Promise.all([n.e(8902),n.e(1882),n.e(708),n.e(9696),n.e(4800),n.e(1695),n.e(5098)]).then(n.bind(n,25098)),n.e(8010).then(n.bind(n,8010)),Promise.all([n.e(8902),n.e(1882),n.e(4800),n.e(1695),n.e(6343)]).then(n.bind(n,76343))]);return{arcade:e.arcade,arcadeUtils:e,batchExec:t,aiServices:i,Dictionary:e.Dictionary,Feature:e.arcadeFeature,Voxel:e.Voxel,Pixel:e.Pixel}})()),i}n.d(t,{l:()=>a})},98623(e,t,n){n.d(t,{L5:()=>a,N5:()=>o,n$:()=>r,qU:()=>i});const i="system",a="unknown",r="UTC",o=Intl.DateTimeFormat().resolvedOptions().timeZone},56400(e,t,n){n.d(t,{ZS:()=>u,S3:()=>f,hv:()=>d,wr:()=>c,P6:()=>l});var i=n(91869),a=n(3330),r=n(98623);const o=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var s=n(92647);function l(e,t=!1){return{json:{read:{source:e,reader:(t,n)=>n[e]?u(n[e]):null},write:!!t&&{allowNull:!0,writer(t,n){n[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function u(e,t=r.qU){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t=r.qU){if(!e||!o.has(e.timeZone))return t;const n=o.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?n:function(e){const t=s.c9.local().setZone(e),n=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===n?"Etc/UTC":`Etc/GMT${s.mQ.instance(-n).formatOffset(0,"narrow")}`}(n)}(e,t):t}function d(e,t,n,i,a){if(t&&"date"===a)return{timeZone:r.n$,timeZoneName:void 0};const o=i.hour,s=n===r.L5;return{timeZone:s?"timestamp-offset"===a?void 0:e??r.n$:n,timeZoneName:s&&o?"shortOffset":void 0}}function c(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),n=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return e===r.qU||e===r.L5||t.has(e.toLowerCase())||n.has(e.toLowerCase())}const m=new Map;function f(e){return e===r.L5?a.GB.instance:e===r.n$||"Etc/UTC"===e?s.mQ.utcInstance:(0,i.tE)(m,e,()=>s.oh.create(e))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5902],{95902(e,t,n){n.r(t),n.d(t,{TextureCompressionWorkerOutput:()=>T,compress:()=>u,compressRGBADataToKTX2:()=>G,createTextureDataKTX2:()=>C,destroy:()=>S,initializeBasisEncoder:()=>c,initializeDXTEncoder:()=>o});var r=n(2741);let a,l;var _=n(63907);let s,R,i=null,E=null;class T{constructor(e,t){this.internalFormat=e,this.compressedTexture=t}}function S(){i=null,s=null,E=null,R=null,a=null,l=null}async function u(e){let t;t=e.data instanceof ImageBitmap?function(e){const t=new OffscreenCanvas(e.width,e.height),n=t.getContext("2d");return n.drawImage(e,0,0),n.getImageData(0,0,t.width,t.height).data}(e.data):function(e,t,n,r,a){const l=new Uint8ClampedArray(e).subarray(0,t*n*r);if(!a)return l;const _=new Uint8ClampedArray(l.length),s=t*r;for(let e=0;e<n;e++){const t=e*s,r=(n-e-1)*s;_.set(l.subarray(t,t+s),r)}return _}(e.data,e.width,e.height,e.components,e.needsFlip);try{if(e.hasS3TC){E||await o();const n=new Uint8Array(t.length);if(E?.encode(t,e.width,e.height,e.preMultiplyAlpha,n)){const e=function(e){const t=new Int32Array(e.buffer,e.byteOffset,31);let n,r;switch(t[21]){case N:n=8,r=_.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case B:n=16,r=_.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case D:n=16,r=_.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}let a=1,l=t[4],s=t[3];(3&l||3&s)&&(l=l+3&-4,s=s+3&-4);const R=l,i=s;let E,T;t[2]&I&&(a=Math.max(1,t[7]));let S=e.byteOffset+t[1]+4;const u=[];for(let t=0;t<a;++t)T=(l+3>>2)*(s+3>>2)*n,E=new Uint8Array(e.buffer,S,T),u.push(E),S+=T,l=Math.max(1,l>>1),s=Math.max(1,s>>1);return{textureData:{type:"compressed",levels:u},internalFormat:r,width:R,height:i}}(n),t=[n.buffer];return{result:new T(e?.internalFormat??null,e?.textureData??null),transferList:t}}return{result:new T(null,null)}}if(e.hasETC){if(i||await c(),e.preMultiplyAlpha&&!E&&await o(),e.preMultiplyAlpha){const n=new Uint8ClampedArray(t.length);E?.premultiply(new Uint8Array(t),e.width,e.height,n),t=n}const n=G(t,e.width,e.height,e.hasMipmap),r=n?C(n):null,a=r?.compressedTexture?.levels.map(e=>e.buffer)||[];return{result:new T(r?.internalFormat??null,r?.compressedTexture??null),transferList:a}}return{result:new T(null,null)}}finally{t instanceof ImageBitmap&&t.close()}}async function c(){i||(i=await(s??=(a??=(async()=>{const e=await n.e(2372).then(n.bind(n,62372)),t=await e.default({locateFile:e=>(0,r.s)(`esri/libs/basisu/${e}`)});return t.initializeBasis(),t})(),a)),s=null)}async function o(){E||(E=await(R??=(l??=(async()=>{const e=await n.e(8714).then(n.bind(n,98714));return await e.default({locateFile:e=>(0,r.s)(`esri/libs/dxtEncoder/${e}`)})})(),l)),R=null)}function G(e,t,n,r,a=255,l=0,_=!1,s=!1){if(!i)return null;const R=new i.BasisEncoder;R.setPerceptual(!s),R.setCheckForAlpha(!0),R.setForceAlpha(!1),R.setRenormalize(s),R.setMipGen(r),R.setMipSRGB(!s),R.setCreateKTX2File(!0),R.setKTX2SRGBTransferFunc(!s),R.setQualityLevel(a),R.setCompressionLevel(l);const E=new Uint8Array(e.byteLength);R.setSliceSourceImage(0,new Uint8Array(e),t,n,_);const T=R.encode(E),S=new Uint8Array(E.buffer,0,T),u=new i.KTX2File(new Uint8Array(S));return u.isValid()?(R.delete(),S):(u.close(),u.delete(),R.delete(),null)}function C(e){if(!i)return new T(null,null);const t=new i.KTX2File(new Uint8Array(e));t.startTranscoding();const[n,r]=t.getHasAlpha()?[1,_.CQ.COMPRESSED_RGBA8_ETC2_EAC]:[0,_.CQ.COMPRESSED_RGB8_ETC2],a=t.getLevels(),l=[];for(let e=0;e<a;e++)l.push(new Uint8Array(t.getImageTranscodedSizeInBytes(e,0,0,n))),t.transcodeImage(l[e],e,0,0,n,0,-1,-1);return t.close(),t.delete(),{internalFormat:r,compressedTexture:{type:"compressed",levels:l}}}const I=131072;function A(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}const N=A("DXT1"),B=A("DXT3"),D=A("DXT5")},63907(e,t,n){n.d(t,{$0:()=>S,C5:()=>T,CQ:()=>I,H0:()=>l,SB:()=>R,WR:()=>r,XN:()=>_,iE:()=>s,ld:()=>i,nI:()=>o,pe:()=>a,r6:()=>u,uH:()=>C,vt:()=>E,xL:()=>G,yI:()=>c});const r={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},a={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},l={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},_=Object.values(l),s={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},R={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},i={FLOAT:a.FLOAT,UNSIGNED_BYTE:a.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:a.BYTE,UNSIGNED_SHORT:a.UNSIGNED_SHORT,SHORT:a.SHORT,UNSIGNED_INT:a.UNSIGNED_INT,INT:a.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},E={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},T=1029,S=0,u=36064,c=36065,o=33306,G=36096,C=36128,I={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2733],{83960(e,t,r){r.d(t,{X_:()=>s,oW:()=>o,zx:()=>a});var i=r(34727),n=r(86211);function s(e,t){const r=t||e.extent,i=e.width,s=(0,n.GA)(r?.spatialReference);return r&&i?r.width/i*s*n.dy*96:0}function a(e,t,r){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,r)}function o(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},4146(e,t,r){r.d(t,{A:()=>v});var i=r(5482),n=r(11254),s=r(49186),a=r(65529),o=r(4902),l=r(92474),u=r(53966),p=r(17676),d=r(84952),y=r(91429),c=r(5443),m=r(16930),h=r(92602),f=r(79677);let g=0,v=class extends((0,a.Zt)((0,o.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new c.A(-180,-90,180,90,m.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=m.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:i}=await Promise.all([r.e(812),r.e(5613),r.e(909)]).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||h.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",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 s.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,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,y.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,i.Cg)([(0,y.MZ)({type:c.A})],v.prototype,"fullExtent",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i.Cg)([(0,y.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i.Cg)([(0,y.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i.Cg)([(0,y.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,y.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.MZ)({type:String})],v.prototype,"title",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i.Cg)([(0,y.MZ)()],v.prototype,"url",void 0),(0,i.Cg)([(0,y.MZ)({type:f.A})],v.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i.Cg)([(0,y.$K)("esri.layers.Layer")],v)},7656(e,t,r){r.r(t),r.d(t,{default:()=>q});var i=r(5482),n=r(11254),s=r(7762),a=r(49186),o=r(81583),l=r(25728),u=r(17676),p=r(86211),d=r(91429),y=r(56507),c=r(35666),m=r(5443),h=r(83960),f=r(21325),g=r(4146),v=r(52136),b=r(98534),w=r(18768),C=r(63074),S=r(69208),I=r(34287),M=r(8303),x=r(54310),T=r(25036),A=r(91921),Z=r(82935),E=r(10873),O=r(69622),L=r(39516);function j(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var N=r(63389);const D={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let P=class extends O.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=j(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,N.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(D[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=j(this.floors,t),i=(0,L.mA)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,h.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t?.forEach(i);const n=this._get("visibleSublayers");return!n||n.length!==e.length||n.some((t,r)=>e[r]!==t)?e:n}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"dynamicLayers",null),(0,i.Cg)([(0,d.MZ)()],P.prototype,"floors",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"hasDynamicLayers",null),(0,i.Cg)([(0,d.MZ)()],P.prototype,"layer",null),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"layers",null),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"layerDefs",null),(0,i.Cg)([(0,d.MZ)({type:Number})],P.prototype,"scale",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"version",null),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],P.prototype,"visibleSublayers",null),P=(0,i.Cg)([(0,d.$K)("esri.layers.support.ExportImageParameters")],P);var F=r(33446),U=r(15775),_=r(91908),k=r(88625),R=r(79677),V=r(56400),B=r(36005),$=r(43937);let J=class extends((0,C.dM)((0,Z.e)((0,T.j)((0,A.I)((0,b.V)((0,w.b)((0,I.q)((0,M.A)((0,l.M)((0,x.J)((0,v.p)((0,S.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new P({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new k.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,u.sg)(async(e,t,i)=>{const{save:n,saveAs:s}=await r.e(390).then(r.bind(r,10390));switch(e){case 0:return n(this,t);case 1:return s(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(u.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const n=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let s=!1;const a=(0,c.aB)(i.origin);let o;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===a){const e=this.createSublayersForOrigin("service").sublayers;s=(0,N.Zx)(n,e,2)}else if(a>3){const e=this.createSublayersForOrigin("portal-item");s=(0,N.Zx)(n,e.sublayers,(0,c.aB)(e.origin)),o=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:s,...i,minimumWritableOrigin:o};let p=s||this.hasVisibleLayersForOrigin(a);n.forEach(e=>{const t=e.write({},u);l.push(t),p=p||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),p&&(t.visibleLayers=n.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio||1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=i?.floors??null,this._exportImageParameters.scale=i?.scale||(0,h.X_)({extent:e,width:t})*n;const s=this._exportImageParameters.toJSON(),a=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},o=e?.spatialReference,l=(0,f.YX)(o);if(i?.scale&&e){const r=e.width/t*((0,p.GA)(e?.spatialReference)*p.dy);s.dpi=i.scale/r}s.dpi*=n;const u={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();u.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(u.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:l,imageSR:l,size:t+","+r,...s,...a,...u}}async fetchImage(e,t,r,i){const{data:n}=await this._fetchImage("image",e,t,r,i);return n}async fetchImageBitmap(e,t,r,i){const{data:n,url:s}=await this._fetchImage("blob",e,t,r,i);return(0,F.m)(n,s,i?.signal)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,n.A)(this.url,t),{extent:i,fullExtent:s,timeExtent:a}=r,o=i||s;return{fullExtent:o&&m.A.fromJSON(o),timeExtent:a&&R.A.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,o.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,_.D)(this,e)}async _fetchImage(e,t,r,i,s){const o={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=o.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:o.query});try{const{data:e}=await(0,n.A)(l,o);return{data:e,url:l}}catch(e){if((0,u.zf)(e))throw e;throw new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,n.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,i.Cg)([(0,d.MZ)((0,V.P6)("dateFieldsTimeReference"))],J.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],J.prototype,"datesInUnknownTimezone",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"dpi",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"imageFormat",void 0),(0,i.Cg)([(0,B.w)("imageFormat",["supportedImageFormatTypes"])],J.prototype,"readImageFormat",null),(0,i.Cg)([(0,d.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],J.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,d.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],J.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],J.prototype,"isReference",void 0),(0,i.Cg)([(0,d.MZ)({json:{read:!1,write:!1}})],J.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,d.MZ)({type:["ArcGISMapServiceLayer"]})],J.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,d.MZ)({json:{read:!1,write:!1}})],J.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,d.MZ)((0,V.P6)("preferredTimeReference"))],J.prototype,"preferredTimeZone",void 0),(0,i.Cg)([(0,d.MZ)()],J.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,d.MZ)({type:s.A.ofType(U.A),json:{write:{ignoreOrigin:!0}}})],J.prototype,"sublayers",void 0),(0,i.Cg)([(0,$.K)("sublayers",{layers:{type:[U.A]},visibleLayers:{type:[y.jz]}})],J.prototype,"writeSublayers",null),(0,i.Cg)([(0,d.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],J.prototype,"listMode",void 0),(0,i.Cg)([(0,d.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],J.prototype,"type",void 0),(0,i.Cg)([(0,d.MZ)(E.OZ)],J.prototype,"url",void 0),J=(0,i.Cg)([(0,d.$K)("esri.layers.MapImageLayer")],J);const q=J},82935(e,t,r){r.d(t,{B:()=>y,e:()=>c});var i=r(5482),n=r(91429),s=r(89317),a=r(30524),o=r(96184),l=r(73133),u=r(79677),p=r(10184),d=r(36005);const y={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}},c=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=l.j.fromJSON(r.timeOffsetUnits);return i&&n?new p.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,d.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:o.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(y)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}},96184(e,t,r){r.d(t,{A:()=>c});var i=r(5482),n=r(69540),s=r(25482),a=r(91429),o=r(79677),l=r(10184),u=r(56400),p=r(36005),d=r(43937);function y(e,t){return l.A.fromJSON({value:e,unit:t})}let c=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?o.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?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],c.prototype,"cumulative",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"endField",void 0),(0,i.Cg)([(0,a.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,p.w)("fullTimeExtent",["timeExtent"])],c.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,d.K)("fullTimeExtent")],c.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,a.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"interval",void 0),(0,i.Cg)([(0,p.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],c.prototype,"readInterval",null),(0,i.Cg)([(0,d.K)("interval")],c.prototype,"writeInterval",null),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],c.prototype,"startField",void 0),(0,i.Cg)([(0,a.MZ)((0,u.P6)("timeReference",!0))],c.prototype,"timeZone",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],c.prototype,"trackIdField",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],c.prototype,"useTime",void 0),(0,i.Cg)([(0,a.MZ)({type:[Date],json:{read:!1}})],c.prototype,"stops",void 0),c=(0,i.Cg)([(0,a.$K)("esri.layers.support.TimeInfo")],c)},77548(e,t,r){r.d(t,{Gh:()=>L,tk:()=>T,BR:()=>x,p2:()=>I,qd:()=>A,wI:()=>M,G$:()=>E,$x:()=>Z,Ov:()=>b,cM:()=>y,UC:()=>c,W_:()=>w,Qz:()=>m,OP:()=>O,TU:()=>v,F2:()=>h,XX:()=>g,jy:()=>C});var i=r(70333),n=r(11254),s=r(7762),a=(r(84952),r(36563)),o=r(36708),l=r(4146);const u=new WeakMap;function p(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,o.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||p(t))},t=>u.set(e,t),o.pc),(0,a.hA)(()=>u.delete(e))]),u.get(e))}function d(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function y(e){return d(e,"knowledge-graph")&&"layers"in e}function c(e){return d(e,"knowledge-graph-sublayer")}function m(e){return d(e,"link-chart")&&"layers"in e}function h(e){return d(e,"subtype-group")&&"sublayers"in e}function f(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 v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function b(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function C(e){return 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 S(e){const t=e?.type;return"binning"===t||"cluster"===t}function I(e,t){if(!C(e))return;const r=t?.graphic,i=e.featureReduction;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&i?S(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?S(i)?i:null:e}async function M(e,t){const r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;const a=`${e.slice(0,s)}/rest/info`,o=null!=t?t.signal:null,{data:l}=await(0,n.A)(a,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function x(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 T(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 s.A;for(const r of e.allLayers.concat(e.allTables))p(r)||f(r)||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function Z(e,t){return null}function E(e){return null}function O(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function L(e,t){if(!t||!O(e))return;const r=(e.url,null);r&&(e.url=r)}},91908(e,t,r){r.d(t,{D:()=>s});var i=r(60694);const n=[];function s(e,t){if((0,i.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of n){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}n.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),n.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),n.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),n.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),n.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},16215(e,t,r){r.d(t,{S:()=>n,Y:()=>i});const i=Symbol("BasemapInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}},79677(e,t,r){r.d(t,{A:()=>y});var i,n=r(5482),s=r(25482),a=r(88930),o=r(91429),l=r(98623),u=r(10184),p=r(36005),d=r(43937);let y=class extends s.o{static{i=this}static get allTime(){return c}static get empty(){return m}static fromArray(e){return new i({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(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({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,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,a.lL)(r,new u.A({value:1,unit:e}),t));let n=this.end;if(n){const r=(0,a.lL)(n,new u.A({value:1,unit:e}),t);n=n.getTime()===r.getTime()?r:(0,a.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.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,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,o;return n>=t&&n<=r?a=n:t>=n&&t<=s&&(a=t),r>=n&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==a||null==o||isNaN(a)||isNaN(o)?i.empty:new i({start:a===-1/0?null:new Date(a),end:o===1/0?null:new Date(o)})}offset(e,t,r=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const n=new i,{start:s,end:o}=this;return null!=s&&(n.start=(0,a.S1)(s,e,t,r)),null!=o&&(n.end=(0,a.S1)(o,e,t,r)),n}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 c.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 i({start:t,end:r})}};(0,n.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"end",void 0),(0,n.Cg)([(0,p.w)("end")],y.prototype,"readEnd",null),(0,n.Cg)([(0,d.K)("end")],y.prototype,"writeEnd",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],y.prototype,"isAllTime",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],y.prototype,"isEmpty",null),(0,n.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"start",void 0),(0,n.Cg)([(0,p.w)("start")],y.prototype,"readStart",null),(0,n.Cg)([(0,d.K)("start")],y.prototype,"writeStart",null),y=i=(0,n.Cg)([(0,o.$K)("esri.time.TimeExtent")],y);const c=new y,m=new y({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>p});var i=r(5482),n=r(69540),s=r(25482),a=r(88930),o=r(91429),l=r(73133),u=r(93223);let p=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,u.e)(l.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i.Cg)([(0,o.$K)("esri.time.TimeInterval")],p)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8692],{28692(e,t,i){i.r(t),i.d(t,{default:()=>G});var a=i(5482),s=i(67996),r=i(7762),n=i(49186),o=i(53966),l=i(91869),d=i(25728),h=i(17676),p=i(36708),u=i(84952),y=i(13069),c=i(91429),g=i(35666),f=i(4146),m=i(24137),w=i(62796),M=i(40736),b=i(18768),T=i(63074),v=i(69208),_=i(34287),D=i(8303),I=i(54310),A=i(25036),C=i(10873),L=i(2555),S=i(97159),P=i(56400),k=i(36005),E=i(43937);let N=class extends((0,T.dM)((0,A.j)((0,I.J)((0,b.b)((0,_.q)((0,D.A)((0,d.M)((0,v.d)(f.A))))))))){constructor(e){super(e),this._graphTypeLookup=new Map,this._namedTypesModified=!1,this.dataManager=null,this.definitionSetMap=null,this.knowledgeGraph=null,this.layers=new(r.A.ofType(w.A)),this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.operationalLayerType="KnowledgeGraphLayer",this.sublayerIdsCache=new Map,this.tables=new(r.A.ofType(w.A)),this.type="knowledge-graph",this.url=null,!e?.title&&e?.url&&(this.title=(0,M.$L)(e.url)),this.addHandles((0,p.wB)(()=>this.layers.concat(this.tables),(e,t)=>this._handleSublayersChange(e,t),p.OH))}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){try{await this.loadFromPortal({supportedTypes:["Knowledge Graph Layer"]},e)}catch(e){(0,h.QP)(e)}await this._fetchMetadata(e),await this._initializeLayerProperties(e),this.loadLayerAssumingLocalCache(),this._layersLoadedFromAuthoritativeItem()||await(0,M.qN)(this)}async _fetchMetadata(e){if(!this.url)throw new n.A("knowledge-graph:missing-url","KnowledgeGraphLayer must be created with a url");const t=await(0,L.fetchKnowledgeGraph)(this.url);this.knowledgeGraph=t;const{edit:i,fullEdit:a,updateItem:s}=await(0,M.N1)(t.serviceDefinition.serviceItemId,this.url,e);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",s),this.read({dateFieldsTimeReference:t.serviceDefinition.dateFieldsTimeReference},{origin:"service"}),this._forEachGraphType(e=>{e.name&&this._graphTypeLookup.set(e.name,e)})}async _initializeLayerProperties(e){7===this.originIdOf("inclusionModeDefinition")?this._validateInclusionModeDefinition():await this._initializeInclusionModeDefinition(e),this._setMemberTypes(),this.dataManager=new m.P({knowledgeGraph:this.knowledgeGraph,inclusionModeDefinition:this.inclusionModeDefinition})}async _initializeInclusionModeDefinition(e){const t=this.definitionSetMap?await(0,s.cZ)(this.definitionSetMap,!0,e?.signal?{signal:e.signal}:void 0):{generateAllSublayers:!0,namedTypeDefinitions:new Map};[...this.layers.toArray(),...this.tables.toArray()].forEach(e=>{const i=this._graphTypeLookup.get(e.graphTypeName);i&&!t.namedTypeDefinitions.has(i.name)&&t.namedTypeDefinitions.set(i.name,{useAllData:!0})}),this.setAtOrigin("inclusionModeDefinition",t,(0,g.OL)(this.originIdOf("definitionSetMap")))}_validateInclusionModeDefinition(){const{inclusionModeDefinition:e}=this;if(!e)return;const{namedTypeDefinitions:t}=e;if(t?.size>0)t.forEach((e,i)=>{const a=this._graphTypeLookup.get(i);if(!a)return o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't in the data model and will be removed`),void t.delete(i);"relationship"!==a.type&&"entity"!==a.type&&(o.A.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't properly modeled and will be removed`),t.delete(i))});else if(!e.generateAllSublayers)throw new n.A("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined")}_setMemberTypes(){let e=[],t=[];const{inclusionModeDefinition:i}=this,a=i?.namedTypeDefinitions;!i||i.generateAllSublayers?(e=this.knowledgeGraph.dataModel?.entityTypes??[],t=this.knowledgeGraph.dataModel?.relationshipTypes??[]):a&&a.size>0&&a.forEach((i,a)=>{const s=this._graphTypeLookup.get(a);switch(s?.type){case"relationship":t.push(s);break;case"entity":e.push(s)}}),this.memberEntityTypes=e,this.memberRelationshipTypes=t}_forEachGraphType(e){[...this.knowledgeGraph.dataModel?.entityTypes??[],...this.knowledgeGraph.dataModel?.relationshipTypes??[]].forEach(t=>{e(t)})}_refreshNamedTypes(){this._namedTypesModified=!0;for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}async _handleNewRecords(e){const t=new Set,i=[];for(const a of e)this._graphTypeLookup.has(a.typeName)&&(!1===this.layers.concat(this.tables).some(e=>e.objectType.name===a.typeName)&&(this.dataManager.sublayerCaches.set(a.typeName,new Map),t.add(a.typeName)),(0,l.tE)(this.sublayerIdsCache,a.typeName,()=>new Set).add(a.id),i.push(a));this.dataManager.addToLayer(i);for(const e of t){const t=this._graphTypeLookup.get(e);t&&(this._addSublayer(t),"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e))}await(0,M.qN)(this,Array.from(t)),this._refreshNamedTypes()}_createSublayers(e,t,i){e.forEach(e=>{const a=this._createSublayer(e);i(a)&&t.push(a),this._updateSublayerCaches(e)})}_addSublayer(e){const t=this._createSublayer(e);return t.geometryType?this.layers.push(t):this.tables.push(t),t}_createSublayer(e){return new w.A({objectType:e,parentCompositeLayer:this,graphType:e.type})}_updateSublayers(e,t){t.forEach(t=>{t.parentCompositeLayer=this;const i=e.find(e=>e.type===t.graphType&&e.name===t.graphTypeName);i&&(t.objectType=i,this._updateSublayerCaches(i))})}_updateSublayerCaches({name:e}){if(!e)return;const t=this.dataManager.sublayerCaches;t.has(e)||t.set(e,new Map)}_saveUrlAsNewResource(e,t,i,a){e[t]="<pending>",i.pendingOperations.push(async function(e){const t=await(0,s.fe)(e);return new Blob([t],{type:"application/x-protobuf"})}(this.inclusionModeDefinition).then(s=>{const r=function(e){const t=`definitionSetMap-${(0,y.lk)()}.dat`,i=(0,u.fj)("knowledgeGraphLayer",t);return e.resourceFromPath(i)}(a);e[t]=r.itemRelativeUrl,i.toAdd.push({resource:r,content:{type:"blob",blob:s},compress:!1,finish:e=>{this.definitionSetMap=e.url}})}))}_displaysAllRecords(e){for(const[,{useAllData:t}]of e.namedTypeDefinitions)if(!t)return!1;return!0}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner")),e&&(e.forEach(e=>{e.parent=this}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this}),e.on("after-remove",({item:e})=>{e.parent=null})],"sublayers-owner"))}_layersLoadedFromAuthoritativeItem(){const e=this.originIdOf("layers");return e>=3&&e<7}readDefinitionSetMap(e,t,i){return(0,S.f)(e,i)}writeDefinitionSetMap(e,t,i,a){const s=a?.portalItem,r=a?.resources,n=(0,g.aB)(a?.origin);if(!s||!r||null==n)return void(e&&(t[i]=(0,S.t)(e,a)));const{inclusionModeDefinition:o}=this;if(!o||this._displaysAllRecords(o))return void(this.definitionSetMap=null);const l=this.originIdOf("inclusionModeDefinition");if(7===l||this._namedTypesModified||n<l)this._saveUrlAsNewResource(t,i,r,s);else if(n===l&&e){const n=(0,S.t)(e,a);(0,u.oP)(n)?this._saveUrlAsNewResource(t,i,r,s):t[i]=n}}set inclusionModeDefinition(e){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("inclusionModeDefinition",e):o.A.getLogger(this).error("#inclusionModeDefinition","inclusionModeDefinition cannot be changed after the layer is loaded.")}get sublayerCapabilities(){return(0,M.hZ)(this.knowledgeGraph)}loadLayerAssumingLocalCache(){const e=[...this.memberEntityTypes,...this.memberRelationshipTypes];this.layers.length||0===this.originIdOf("tables")?0===this.originIdOf("layers")?this._createSublayers(e,this.layers,e=>!!e.geometryType):this._updateSublayers(e,this.layers):this.layers=new r.A,this.tables.length||0===this.originIdOf("layers")?0===this.originIdOf("tables")?this._createSublayers(e,this.tables,e=>!e.geometryType):this._updateSublayers(e,this.tables):this.tables=new r.A,this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((e,t)=>{const i=(0,l.tE)(this.sublayerIdsCache,t,()=>new Set);e.members?.forEach(e=>{i.add(e.id)})})}async addRecords(e){await this.load(),await this._handleNewRecords(e)}async createSublayerForNamedType(e){await this.load();const t=this._graphTypeLookup.get(e);if(!t)throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type already exists as a sublayer.");this.dataManager.sublayerCaches.set(e,new Map),(0,l.tE)(this.sublayerIdsCache,e,()=>new Set);const i=this._addSublayer(t);return"entity"===t.type?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),await(0,M.qN)(this,[e]),this._refreshNamedTypes(),i}convertSublayerToDynamicData(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);t?.useAllData?o.A.getLogger(this).warn("This Knowledge Graph Layer already uses dynamic membership for the sublayer - no conversion was made"):(this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!0}),this.sublayerIdsCache.delete(e),this._refreshNamedTypes())}convertSublayerToExplicitMembership(e){if(!this.dataManager.inclusionModeDefinition)throw new n.A("knowledge-graph:fully-dynamic-membership","This Knowledge Graph Layer already uses fully dynamic membership, individual sublayers cannot be converted");if(!this._graphTypeLookup.get(e))throw new n.A("knowledge-graph:missing-type","The specified type does not exist in the layer's graph data model.");const t=this.dataManager.inclusionModeDefinition.namedTypeDefinitions.get(e);if(!t||t.useAllData){if(!this.dataManager.sublayerCaches.has(e))throw new n.A("knowledge-graph:duplicate-type","The specified type does not exist as a sublayer.");this.sublayerIdsCache.set(e,new Set),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),this._refreshNamedTypes()}else o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership for the sublayer - no conversion was made")}convertToFullyDynamicData(){this.dataManager.inclusionModeDefinition||o.A.getLogger(this).warn("This Knowledge Graph Layer already uses fully dynamic membership - no conversion was made"),this.sublayerIdsCache.clear(),this.dataManager.inclusionModeDefinition=null,this._refreshNamedTypes()}convertToExplicitMembership(){this.dataManager.inclusionModeDefinition&&this.dataManager.inclusionModeDefinition.namedTypeDefinitions.size>0&&o.A.getLogger(this).warn("This Knowledge Graph Layer already uses explicit membership - no conversion was made"),this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map};for(const e of this.dataManager.sublayerCaches.keys())(0,l.tE)(this.sublayerIdsCache,e,()=>new Set),this.dataManager.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map});this._refreshNamedTypes()}async removeRecords(e){await this.load();const t=[];for(const i of e)!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(i.typeName)?.members?.has(i.id)&&t.push(i);this.dataManager.removeFromLayer(t);for(const e of t)this.sublayerIdsCache.get(e.typeName)?.delete(e.id);return this._refreshNamedTypes(),t}};(0,a.Cg)([(0,c.MZ)()],N.prototype,"dataManager",void 0),(0,a.Cg)([(0,c.MZ)({json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0}}})],N.prototype,"definitionSetMap",void 0),(0,a.Cg)([(0,k.w)("definitionSetMap")],N.prototype,"readDefinitionSetMap",null),(0,a.Cg)([(0,E.K)("definitionSetMap")],N.prototype,"writeDefinitionSetMap",null),(0,a.Cg)([(0,c.MZ)()],N.prototype,"inclusionModeDefinition",null),(0,a.Cg)([(0,c.MZ)()],N.prototype,"knowledgeGraph",void 0),(0,a.Cg)([(0,c.MZ)({type:r.A.ofType(w.A),json:{write:{ignoreOrigin:!0}}})],N.prototype,"layers",void 0),(0,a.Cg)([(0,c.MZ)()],N.prototype,"memberEntityTypes",void 0),(0,a.Cg)([(0,c.MZ)()],N.prototype,"memberRelationshipTypes",void 0),(0,a.Cg)([(0,c.MZ)({type:["KnowledgeGraphLayer"]})],N.prototype,"operationalLayerType",void 0),(0,a.Cg)([(0,c.MZ)()],N.prototype,"sublayerCapabilities",null),(0,a.Cg)([(0,c.MZ)()],N.prototype,"sublayerIdsCache",void 0),(0,a.Cg)([(0,c.MZ)({type:r.A.ofType(w.A),json:{write:{ignoreOrigin:!0}}})],N.prototype,"tables",void 0),(0,a.Cg)([(0,c.MZ)({json:{read:!1}})],N.prototype,"type",void 0),(0,a.Cg)([(0,c.MZ)(C.OZ)],N.prototype,"url",void 0),(0,a.Cg)([(0,c.MZ)((0,P.P6)("dateFieldsTimeReference"))],N.prototype,"dateFieldsTimeZone",void 0),N=(0,a.Cg)([(0,c.$K)("esri.layers.KnowledgeGraphLayer")],N);const G=N},18768(e,t,i){i.d(t,{b:()=>o});var a=i(5482),s=i(53966),r=i(91429),n=i(60694);const o=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,n.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,n.Jf)(e,s.A.getLogger(this)))}};return(0,a.Cg)([(0,r.MZ)()],i.prototype,"title",null),(0,a.Cg)([(0,r.MZ)({type:String})],i.prototype,"url",null),i=(0,a.Cg)([(0,r.$K)("esri.layers.mixins.ArcGISService")],i),i}},69208(e,t,i){i.d(t,{d:()=>r});var a=i(5482),s=i(91429);const r=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,a.Cg)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,a.Cg)([(0,s.$K)("esri.layers.mixins.CustomParametersMixin")],i),i}},8303(e,t,i){i.d(t,{A:()=>T});var a=i(5482),s=i(92602),r=i(70333),n=i(11254),o=i(60999),l=i(49186),d=i(53966),h=i(97768),p=i(17676),u=i(84952),y=i(91429),c=i(77548),g=i(20655),f=i(80812),m=i(41318),w=i(10407),M=i(36005),b=i(43937);const T=e=>{const t=e;let T=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.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,i){if(t.itemId)return new f.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:a}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await a({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||d.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:a},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const a=!r.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,a);let n,o;if(s)n=i.portal.url;else try{n=await(0,c.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!n||!(0,u.b8)(n,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(r.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,d=!1,h=!1;if(!o)return{features:{edit:l,fullEdit:d},content:{updateItem:h}};try{if(s?await i.reload():(i=new f.default({id:e,portal:{url:n}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,a)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:d},content:{updateItem:h}}}_getUserPrivileges(e,t){const i=(0,w.It)(e);return t&&(i.features.edit=!0),i}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?r.id?.findCredential(this.url):null;if(!t)return!0;const i=v.credential===t?v.user:await this._fetchEditingUser(e);return v.credential=t,v.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=r.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const a=`${i.owningSystemUrl}/sharing/rest`,s=g.A.getDefault();if(s&&s.loaded&&(0,u.S8)(s.restUrl)===(0,u.S8)(a))return s.user;const l=`${a}/community/self`,d=null!=e?e.signal:null,h=await(0,o.Ke)((0,n.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:d}));return h.ok?m.A.fromJSON(h.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,a=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return i&&a&&!(0,u.ut)(a.restUrl,i.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,a.Cg)([(0,y.MZ)({type:f.default})],T.prototype,"portalItem",null),(0,a.Cg)([(0,M.w)("web-document","portalItem",["itemId"])],T.prototype,"readPortalItem",null),(0,a.Cg)([(0,b.K)("web-document","portalItem",{itemId:{type:String}})],T.prototype,"writePortalItem",null),(0,a.Cg)([(0,y.MZ)({clonable:!1})],T.prototype,"resourceReferences",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasEditingPrivileges",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasFullEditingPrivileges",void 0),(0,a.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasUpdateItemPrivileges",void 0),T=(0,a.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],T),T},v={credential:null,user:null}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4406],{48163(t,n,r){function e(){return[0,0]}function o(t){return[t[0],t[1]]}function a(t,n){return[t,n]}function u(){return a(1,1)}function i(){return a(1,0)}function s(){return a(0,1)}r.d(n,{Un:()=>c,fA:()=>a,o8:()=>o,vt:()=>e});const c=u(),l=i(),f=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:l,UNIT_Y:f,ZEROS:[0,0],clone:o,create:e,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const r=Math.min(2,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:a,ones:u,unitX:i,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},91829(t,n,r){function e(){return[0,0,0,0]}function o(t,n,r,e){return[t,n,r,e]}function a(t,n,r,e){return[t,n,r,e]}function u(){return o(1,1,1,1)}function i(){return o(1,0,0,0)}function s(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function l(){return o(0,0,0,1)}r.d(n,{CN:()=>a,Un:()=>h,fA:()=>o,uY:()=>f,vt:()=>e});const f=[0,0,0,0],h=u(),M=i(),m=s(),p=c(),g=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:g,UNIT_X:M,UNIT_Y:m,UNIT_Z:p,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:e,freeze:a,fromArray:function(t,n=[0,0,0,0]){const r=Math.min(4,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:o,ones:u,unitW:l,unitX:i,unitY:s,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},58083(t,n,r){r.d(n,{$0:()=>g,$h:()=>S,B8:()=>c,C:()=>a,D_:()=>i,N9:()=>d,O7:()=>q,Tl:()=>f,X_:()=>A,aI:()=>C,e$:()=>M,eL:()=>m,hM:()=>b,hZ:()=>u,hs:()=>h,kN:()=>p,l:()=>w,lw:()=>l,mg:()=>s,o1:()=>T,sC:()=>v,t2:()=>F,t5:()=>_,tZ:()=>I,ut:()=>O,v3:()=>R});var e=r(51850),o=r(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function u(t,n,r,e,o,a,u,i,s,c,l,f,h,M,m,p,g){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=s,t[8]=c,t[9]=l,t[10]=f,t[11]=h,t[12]=M,t[13]=m,t[14]=p,t[15]=g,t}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function s(t,n){if(t===n){const r=n[1],e=n[2],o=n[3],a=n[6],u=n[7],i=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=r,t[6]=n[9],t[7]=n[13],t[8]=e,t[9]=a,t[11]=n[14],t[12]=o,t[13]=u,t[14]=i}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=n[9],h=n[10],M=n[11],m=n[12],p=n[13],g=n[14],b=n[15],d=r*i-e*u,y=r*s-o*u,x=r*c-a*u,v=e*s-o*i,A=e*c-a*i,w=o*c-a*s,T=l*p-f*m,q=l*g-h*m,S=l*b-M*m,R=f*g-h*p,_=f*b-M*p,N=h*b-M*g;let F=d*N-y*_+x*R+v*S-A*q+w*T;return F?(F=1/F,t[0]=(i*N-s*_+c*R)*F,t[1]=(o*_-e*N-a*R)*F,t[2]=(p*w-g*A+b*v)*F,t[3]=(h*A-f*w-M*v)*F,t[4]=(s*S-u*N-c*q)*F,t[5]=(r*N-o*S+a*q)*F,t[6]=(g*x-m*w-b*y)*F,t[7]=(l*w-h*x+M*y)*F,t[8]=(u*_-i*S+c*T)*F,t[9]=(e*S-r*_-a*T)*F,t[10]=(m*A-p*x+b*d)*F,t[11]=(f*x-l*A-M*d)*F,t[12]=(i*q-u*R-s*T)*F,t[13]=(r*R-e*q+o*T)*F,t[14]=(p*y-m*v-g*d)*F,t[15]=(l*v-f*y+h*d)*F,t):null}function l(t,n,r){const e=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=n[9],M=n[10],m=n[11],p=n[12],g=n[13],b=n[14],d=n[15];let y=r[0],x=r[1],v=r[2],A=r[3];return t[0]=y*e+x*i+v*f+A*p,t[1]=y*o+x*s+v*h+A*g,t[2]=y*a+x*c+v*M+A*b,t[3]=y*u+x*l+v*m+A*d,y=r[4],x=r[5],v=r[6],A=r[7],t[4]=y*e+x*i+v*f+A*p,t[5]=y*o+x*s+v*h+A*g,t[6]=y*a+x*c+v*M+A*b,t[7]=y*u+x*l+v*m+A*d,y=r[8],x=r[9],v=r[10],A=r[11],t[8]=y*e+x*i+v*f+A*p,t[9]=y*o+x*s+v*h+A*g,t[10]=y*a+x*c+v*M+A*b,t[11]=y*u+x*l+v*m+A*d,y=r[12],x=r[13],v=r[14],A=r[15],t[12]=y*e+x*i+v*f+A*p,t[13]=y*o+x*s+v*h+A*g,t[14]=y*a+x*c+v*M+A*b,t[15]=y*u+x*l+v*m+A*d,t}function f(t,n,r){const e=r[0],o=r[1],a=r[2];if(n===t)t[12]=n[0]*e+n[4]*o+n[8]*a+n[12],t[13]=n[1]*e+n[5]*o+n[9]*a+n[13],t[14]=n[2]*e+n[6]*o+n[10]*a+n[14],t[15]=n[3]*e+n[7]*o+n[11]*a+n[15];else{const r=n[0],u=n[1],i=n[2],s=n[3],c=n[4],l=n[5],f=n[6],h=n[7],M=n[8],m=n[9],p=n[10],g=n[11];t[0]=r,t[1]=u,t[2]=i,t[3]=s,t[4]=c,t[5]=l,t[6]=f,t[7]=h,t[8]=M,t[9]=m,t[10]=p,t[11]=g,t[12]=r*e+c*o+M*a+n[12],t[13]=u*e+l*o+m*a+n[13],t[14]=i*e+f*o+p*a+n[14],t[15]=s*e+h*o+g*a+n[15]}return t}function h(t,n,r){const e=r[0],o=r[1],a=r[2];return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function M(t,n,r,e){let u=e[0],i=e[1],s=e[2],c=Math.sqrt(u*u+i*i+s*s);if(c<=(0,o.FD)())return void a(t,n);c=1/c,u*=c,i*=c,s*=c;const l=Math.sin(r),f=Math.cos(r),h=1-f,M=n[0],m=n[1],p=n[2],g=n[3],b=n[4],d=n[5],y=n[6],x=n[7],v=n[8],A=n[9],w=n[10],T=n[11],q=u*u*h+f,S=i*u*h+s*l,R=s*u*h-i*l,_=u*i*h-s*l,N=i*i*h+f,F=s*i*h+u*l,C=u*s*h+i*l,O=i*s*h-u*l,I=s*s*h+f;t[0]=M*q+b*S+v*R,t[1]=m*q+d*S+A*R,t[2]=p*q+y*S+w*R,t[3]=g*q+x*S+T*R,t[4]=M*_+b*N+v*F,t[5]=m*_+d*N+A*F,t[6]=p*_+y*N+w*F,t[7]=g*_+x*N+T*F,t[8]=M*C+b*O+v*I,t[9]=m*C+d*O+A*I,t[10]=p*C+y*O+w*I,t[11]=g*C+x*O+T*I,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function m(t,n,r){const e=Math.sin(r),o=Math.cos(r),a=n[4],u=n[5],i=n[6],s=n[7],c=n[8],l=n[9],f=n[10],h=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=a*o+c*e,t[5]=u*o+l*e,t[6]=i*o+f*e,t[7]=s*o+h*e,t[8]=c*o-a*e,t[9]=l*o-u*e,t[10]=f*o-i*e,t[11]=h*o-s*e,t}function p(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function g(t,n,r){if(0===n)return i(t);let e=r[0],a=r[1],u=r[2],s=Math.sqrt(e*e+a*a+u*u);if(s<=(0,o.FD)())return null;s=1/s,e*=s,a*=s,u*=s;const c=Math.sin(n),l=Math.cos(n),f=1-l;return t[0]=e*e*f+l,t[1]=a*e*f+u*c,t[2]=u*e*f-a*c,t[3]=0,t[4]=e*a*f-u*c,t[5]=a*a*f+l,t[6]=u*a*f+e*c,t[7]=0,t[8]=e*u*f+a*c,t[9]=a*u*f-e*c,t[10]=u*u*f+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function d(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,n,r){const e=n[0],o=n[1],a=n[2],u=n[3],i=e+e,s=o+o,c=a+a,l=e*i,f=e*s,h=e*c,M=o*s,m=o*c,p=a*c,g=u*i,b=u*s,d=u*c;return t[0]=1-(M+p),t[1]=f+d,t[2]=h-b,t[3]=0,t[4]=f-d,t[5]=1-(l+p),t[6]=m+g,t[7]=0,t[8]=h+b,t[9]=m-g,t[10]=1-(l+M),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const x=(0,e.vt)();function v(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function A(t,n){const r=n[0],e=n[1],o=n[2],a=n[4],u=n[5],i=n[6],s=n[8],c=n[9],l=n[10];return t[0]=Math.sqrt(r*r+e*e+o*o),t[1]=Math.sqrt(a*a+u*u+i*i),t[2]=Math.sqrt(s*s+c*c+l*l),t}function w(t,n){const r=n[0]+n[5]+n[10];let e=0;return r>0?(e=2*Math.sqrt(r+1),t[3]=.25*e,t[0]=(n[6]-n[9])/e,t[1]=(n[8]-n[2])/e,t[2]=(n[1]-n[4])/e):n[0]>n[5]&&n[0]>n[10]?(e=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/e,t[0]=.25*e,t[1]=(n[1]+n[4])/e,t[2]=(n[8]+n[2])/e):n[5]>n[10]?(e=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/e,t[0]=(n[1]+n[4])/e,t[1]=.25*e,t[2]=(n[6]+n[9])/e):(e=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/e,t[0]=(n[8]+n[2])/e,t[1]=(n[6]+n[9])/e,t[2]=.25*e),t}function T(t,n,r,e){const o=n[0],a=n[1],u=n[2],i=n[3],s=o+o,c=a+a,l=u+u,f=o*s,h=o*c,M=o*l,m=a*c,p=a*l,g=u*l,b=i*s,d=i*c,y=i*l,x=e[0],v=e[1],A=e[2];return t[0]=(1-(m+g))*x,t[1]=(h+y)*x,t[2]=(M-d)*x,t[3]=0,t[4]=(h-y)*v,t[5]=(1-(f+g))*v,t[6]=(p+b)*v,t[7]=0,t[8]=(M+d)*A,t[9]=(p-b)*A,t[10]=(1-(f+m))*A,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function q(t,n,r,e,o){const a=n[0],u=n[1],i=n[2],s=n[3],c=a+a,l=u+u,f=i+i,h=a*c,M=a*l,m=a*f,p=u*l,g=u*f,b=i*f,d=s*c,y=s*l,x=s*f,v=e[0],A=e[1],w=e[2],T=o[0],q=o[1],S=o[2],R=(1-(p+b))*v,_=(M+x)*v,N=(m-y)*v,F=(M-x)*A,C=(1-(h+b))*A,O=(g+d)*A,I=(m+y)*w,j=(g-d)*w,E=(1-(h+p))*w;return t[0]=R,t[1]=_,t[2]=N,t[3]=0,t[4]=F,t[5]=C,t[6]=O,t[7]=0,t[8]=I,t[9]=j,t[10]=E,t[11]=0,t[12]=r[0]+T-(R*T+F*q+I*S),t[13]=r[1]+q-(_*T+C*q+j*S),t[14]=r[2]+S-(N*T+O*q+E*S),t[15]=1,t}function S(t,n,r,e,o,a,u){const i=1/(r-n),s=1/(o-e),c=1/(a-u);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*s,t[6]=0,t[7]=0,t[8]=(r+n)*i,t[9]=(o+e)*s,t[10]=(u+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*a*2*c,t[15]=0,t}function R(t,n,r,e,o,a,u){const i=1/(n-r),s=1/(e-o),c=1/(a-u);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+r)*i,t[13]=(o+e)*s,t[14]=(u+a)*c,t[15]=1,t}function _(t,n,r,e){const a=n[0],u=n[1],s=n[2];let c=a-r[0],l=u-r[1],f=s-r[2];const h=(0,o.FD)();if(Math.abs(c)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void i(t);let M=1/Math.sqrt(c*c+l*l+f*f);c*=M,l*=M,f*=M;const m=e[0],p=e[1],g=e[2];let b=p*f-g*l,d=g*c-m*f,y=m*l-p*c;M=Math.sqrt(b*b+d*d+y*y),M?(M=1/M,b*=M,d*=M,y*=M):(b=0,d=0,y=0);let x=l*y-f*d,v=f*b-c*y,A=c*d-l*b;M=Math.sqrt(x*x+v*v+A*A),M?(M=1/M,x*=M,v*=M,A*=M):(x=0,v=0,A=0),t[0]=b,t[1]=x,t[2]=c,t[3]=0,t[4]=d,t[5]=v,t[6]=l,t[7]=0,t[8]=y,t[9]=A,t[10]=f,t[11]=0,t[12]=-(b*a+d*u+y*s),t[13]=-(x*a+v*u+A*s),t[14]=-(c*a+l*u+f*s),t[15]=1}function N(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t[9]=n[9]-r[9],t[10]=n[10]-r[10],t[11]=n[11]-r[11],t[12]=n[12]-r[12],t[13]=n[13]-r[13],t[14]=n[14]-r[14],t[15]=n[15]-r[15],t}function F(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function C(t,n){if(t===n)return!0;const r=t[0],e=t[1],a=t[2],u=t[3],i=t[4],s=t[5],c=t[6],l=t[7],f=t[8],h=t[9],M=t[10],m=t[11],p=t[12],g=t[13],b=t[14],d=t[15],y=n[0],x=n[1],v=n[2],A=n[3],w=n[4],T=n[5],q=n[6],S=n[7],R=n[8],_=n[9],N=n[10],F=n[11],C=n[12],O=n[13],I=n[14],j=n[15],E=(0,o.FD)();return Math.abs(r-y)<=E*Math.max(1,Math.abs(r),Math.abs(y))&&Math.abs(e-x)<=E*Math.max(1,Math.abs(e),Math.abs(x))&&Math.abs(a-v)<=E*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-A)<=E*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(i-w)<=E*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(s-T)<=E*Math.max(1,Math.abs(s),Math.abs(T))&&Math.abs(c-q)<=E*Math.max(1,Math.abs(c),Math.abs(q))&&Math.abs(l-S)<=E*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(f-R)<=E*Math.max(1,Math.abs(f),Math.abs(R))&&Math.abs(h-_)<=E*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(M-N)<=E*Math.max(1,Math.abs(M),Math.abs(N))&&Math.abs(m-F)<=E*Math.max(1,Math.abs(m),Math.abs(F))&&Math.abs(p-C)<=E*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(g-O)<=E*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(b-I)<=E*Math.max(1,Math.abs(b),Math.abs(I))&&Math.abs(d-j)<=E*Math.max(1,Math.abs(d),Math.abs(j))}function O(t){const n=(0,o.FD)(),r=t[0],e=t[1],a=t[2],u=t[4],i=t[5],s=t[6],c=t[8],l=t[9],f=t[10];return Math.abs(1-(r*r+u*u+c*c))<=n&&Math.abs(1-(e*e+i*i+l*l))<=n&&Math.abs(1-(a*a+s*s+f*f))<=n}function I(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const j=l,E=N;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t[9]=n[9]+r[9],t[10]=n[10]+r[10],t[11]=n[11]+r[11],t[12]=n[12]+r[12],t[13]=n[13]+r[13],t[14]=n[14]+r[14],t[15]=n[15]+r[15],t},adjoint:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=n[9],h=n[10],M=n[11],m=n[12],p=n[13],g=n[14],b=n[15];return t[0]=i*(h*b-M*g)-f*(s*b-c*g)+p*(s*M-c*h),t[1]=-(e*(h*b-M*g)-f*(o*b-a*g)+p*(o*M-a*h)),t[2]=e*(s*b-c*g)-i*(o*b-a*g)+p*(o*c-a*s),t[3]=-(e*(s*M-c*h)-i*(o*M-a*h)+f*(o*c-a*s)),t[4]=-(u*(h*b-M*g)-l*(s*b-c*g)+m*(s*M-c*h)),t[5]=r*(h*b-M*g)-l*(o*b-a*g)+m*(o*M-a*h),t[6]=-(r*(s*b-c*g)-u*(o*b-a*g)+m*(o*c-a*s)),t[7]=r*(s*M-c*h)-u*(o*M-a*h)+l*(o*c-a*s),t[8]=u*(f*b-M*p)-l*(i*b-c*p)+m*(i*M-c*f),t[9]=-(r*(f*b-M*p)-l*(e*b-a*p)+m*(e*M-a*f)),t[10]=r*(i*b-c*p)-u*(e*b-a*p)+m*(e*c-a*i),t[11]=-(r*(i*M-c*f)-u*(e*M-a*f)+l*(e*c-a*i)),t[12]=-(u*(f*g-h*p)-l*(i*g-s*p)+m*(i*h-s*f)),t[13]=r*(f*g-h*p)-l*(e*g-o*p)+m*(e*h-o*f),t[14]=-(r*(i*g-s*p)-u*(e*g-o*p)+m*(e*s-o*i)),t[15]=r*(i*h-s*f)-u*(e*h-o*f)+l*(e*s-o*i),t},copy:a,determinant:function(t){const n=t[0],r=t[1],e=t[2],o=t[3],a=t[4],u=t[5],i=t[6],s=t[7],c=t[8],l=t[9],f=t[10],h=t[11],M=t[12],m=t[13],p=t[14],g=t[15];return(n*u-r*a)*(f*g-h*p)-(n*i-e*a)*(l*g-h*m)+(n*s-o*a)*(l*p-f*m)+(r*i-e*u)*(c*g-h*M)-(r*s-o*u)*(c*p-f*M)+(e*s-o*i)*(c*m-l*M)},equals:C,exactEquals:F,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],u=r+r,i=e+e,s=o+o,c=r*u,l=e*u,f=e*i,h=o*u,M=o*i,m=o*s,p=a*u,g=a*i,b=a*s;return t[0]=1-f-m,t[1]=l+b,t[2]=h-g,t[3]=0,t[4]=l-b,t[5]=1-c-m,t[6]=M+p,t[7]=0,t[8]=h+g,t[9]=M-p,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const r=x,e=-n[0],o=-n[1],a=-n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=e*e+o*o+a*a+u*u;return f>0?(r[0]=2*(i*u+l*e+s*a-c*o)/f,r[1]=2*(s*u+l*o+c*e-i*a)/f,r[2]=2*(c*u+l*a+i*o-s*e)/f):(r[0]=2*(i*u+l*e+s*a-c*o),r[1]=2*(s*u+l*o+c*e-i*a),r[2]=2*(c*u+l*a+i*o-s*e)),y(t,n,r),t},fromRotation:g,fromRotationTranslation:y,fromRotationTranslationScale:T,fromRotationTranslationScaleOrigin:q,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:p,fromXRotation:b,fromYRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:d,frustum:S,getRotation:w,getScale:A,getTranslation:v,hasIdentityRotation:I,identity:i,invert:c,invertOrIdentity:function(t,n){return c(t,n)||i(t),t},isOrthoNormal:O,lookAt:_,mul:j,multiply:l,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t[9]=n[9]*r,t[10]=n[10]*r,t[11]=n[11]*r,t[12]=n[12]*r,t[13]=n[13]*r,t[14]=n[14]*r,t[15]=n[15]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t[9]=n[9]+r[9]*e,t[10]=n[10]+r[10]*e,t[11]=n[11]+r[11]*e,t[12]=n[12]+r[12]*e,t[13]=n[13]+r[13]*e,t[14]=n[14]+r[14]*e,t[15]=n[15]+r[15]*e,t},ortho:R,perspective:function(t,n,r,e,o){const a=1/Math.tan(n/2);let u;return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(u=1/(e-o),t[10]=(o+e)*u,t[14]=2*o*e*u):(t[10]=-1,t[14]=-2*e),t},perspectiveFromFieldOfView:function(t,n,r,e){const o=Math.tan(n.upDegrees*Math.PI/180),a=Math.tan(n.downDegrees*Math.PI/180),u=Math.tan(n.leftDegrees*Math.PI/180),i=Math.tan(n.rightDegrees*Math.PI/180),s=2/(u+i),c=2/(o+a);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(u-i)*s*.5,t[9]=(o-a)*c*.5,t[10]=e/(r-e),t[11]=-1,t[12]=0,t[13]=0,t[14]=e*r/(r-e),t[15]=0,t},rotate:M,rotateX:m,rotateY:function(t,n,r){const e=Math.sin(r),o=Math.cos(r),a=n[0],u=n[1],i=n[2],s=n[3],c=n[8],l=n[9],f=n[10],h=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=a*o-c*e,t[1]=u*o-l*e,t[2]=i*o-f*e,t[3]=s*o-h*e,t[8]=a*e+c*o,t[9]=u*e+l*o,t[10]=i*e+f*o,t[11]=s*e+h*o,t},rotateZ:function(t,n,r){const e=Math.sin(r),o=Math.cos(r),a=n[0],u=n[1],i=n[2],s=n[3],c=n[4],l=n[5],f=n[6],h=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=a*o+c*e,t[1]=u*o+l*e,t[2]=i*o+f*e,t[3]=s*o+h*e,t[4]=c*o-a*e,t[5]=l*o-u*e,t[6]=f*o-i*e,t[7]=h*o-s*e,t},scale:h,set:u,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:E,subtract:N,targetTo:function(t,n,r,e){const o=n[0],a=n[1],u=n[2],i=e[0],s=e[1],c=e[2];let l=o-r[0],f=a-r[1],h=u-r[2],M=l*l+f*f+h*h;M>0&&(M=1/Math.sqrt(M),l*=M,f*=M,h*=M);let m=s*h-c*f,p=c*l-i*h,g=i*f-s*l;return M=m*m+p*p+g*g,M>0&&(M=1/Math.sqrt(M),m*=M,p*=M,g*=M),t[0]=m,t[1]=p,t[2]=g,t[3]=0,t[4]=f*g-h*p,t[5]=h*m-l*g,t[6]=l*p-f*m,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=u,t[15]=1,t},translate:f,transpose:s},Symbol.toStringTag,{value:"Module"}))},78955(t,n,r){r.d(n,{Bw:()=>g,C:()=>o,Cc:()=>x,LI:()=>h,Om:()=>y,S8:()=>d,T9:()=>f,WQ:()=>u,Z0:()=>v,aI:()=>w,hG:()=>p,hZ:()=>a,hs:()=>M,jk:()=>l,m3:()=>b,t2:()=>A});var e=r(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function a(t,n,r,e,o){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t}function u(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t}function i(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t}function s(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t[3]=n[3]*r[3],t}function c(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t[3]=n[3]/r[3],t}function l(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t[3]=Math.min(n[3],r[3]),t}function f(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t[3]=Math.max(n[3],r[3]),t}function h(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function M(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t}function m(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return Math.sqrt(r*r+e*e+o*o+a*a)}function p(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return r*r+e*e+o*o+a*a}function g(t){const n=t[0],r=t[1],e=t[2],o=t[3];return Math.sqrt(n*n+r*r+e*e+o*o)}function b(t){const n=t[0],r=t[1],e=t[2],o=t[3];return n*n+r*r+e*e+o*o}function d(t,n){const r=n[0],e=n[1],o=n[2],a=n[3];let u=r*r+e*e+o*o+a*a;return u>0&&(u=1/Math.sqrt(u),t[0]=r*u,t[1]=e*u,t[2]=o*u,t[3]=a*u),t}function y(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function x(t,n,r,e){const o=n[0],a=n[1],u=n[2],i=n[3];return t[0]=o+e*(r[0]-o),t[1]=a+e*(r[1]-a),t[2]=u+e*(r[2]-u),t[3]=i+e*(r[3]-i),t}function v(t,n,r){const e=n[0],o=n[1],a=n[2],u=n[3];return t[0]=r[0]*e+r[4]*o+r[8]*a+r[12]*u,t[1]=r[1]*e+r[5]*o+r[9]*a+r[13]*u,t[2]=r[2]*e+r[6]*o+r[10]*a+r[14]*u,t[3]=r[3]*e+r[7]*o+r[11]*a+r[15]*u,t}function A(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function w(t,n){const r=t[0],o=t[1],a=t[2],u=t[3],i=n[0],s=n[1],c=n[2],l=n[3],f=(0,e.FD)();return Math.abs(r-i)<=f*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(o-s)<=f*Math.max(1,Math.abs(o),Math.abs(s))&&Math.abs(a-c)<=f*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-l)<=f*Math.max(1,Math.abs(u),Math.abs(l))}const T=i,q=s,S=c,R=m,_=p,N=g,F=b;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:R,distance:m,div:S,divide:c,dot:y,equals:w,exactEquals:A,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:N,length:g,lerp:x,max:f,min:l,mul:q,multiply:s,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:d,random:function(t,n=1){const r=e.Ov;let o,a,u,i,s,c;do{o=2*r()-1,a=2*r()-1,s=o*o+a*a}while(s>=1);do{u=2*r()-1,i=2*r()-1,c=u*u+i*i}while(c>=1);const l=Math.sqrt((1-s)/c);return t[0]=n*o,t[1]=n*a,t[2]=n*u*l,t[3]=n*i*l,t},round:h,scale:M,scaleAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t},set:a,sqrDist:_,sqrLen:F,squaredDistance:p,squaredLength:b,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:T,subtract:i,transformMat4:v,transformQuat:function(t,n,r){const e=n[0],o=n[1],a=n[2],u=r[0],i=r[1],s=r[2],c=r[3],l=c*e+i*a-s*o,f=c*o+s*e-u*a,h=c*a+u*o-i*e,M=-u*e-i*o-s*a;return t[0]=l*c+M*-u+f*-s-h*-i,t[1]=f*c+M*-i+h*-u-l*-s,t[2]=h*c+M*-s+l*-i-f*-u,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},48353(t,n,r){r.d(n,{l:()=>c});var e=r(34727),o=r(58083),a=r(51850);function u(t,n,r){const e=Math.sin(t),o=Math.cos(t),a=Math.sin(n),u=Math.cos(n),i=r;return i[0]=-e,i[4]=-a*o,i[8]=u*o,i[12]=0,i[1]=o,i[5]=-a*e,i[9]=u*e,i[13]=0,i[2]=0,i[6]=u,i[10]=a,i[14]=0,i[3]=0,i[7]=0,i[11]=0,i[15]=1,i}var i=r(49208),s=r(21325);function c(t,n,r,e){const a=(0,i.Tp)(t,e);if(null==a)return!1;const c=a.source.spatialReferenceId,m=a.dest.spatialReferenceId;if(c===m&&!l(m)&&(0!==c||(0,s.aI)(t,e)))return(0,o.kN)(r,n),!0;if(l(m)){const t=i.w5[c][10],e=i.w5[10][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),u(f*h[0],f*h[1],r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}const p=l(c);if((3===m||11===m||2===m||5===m)&&(2===c||p||3===c||5===c)){const t=i.w5[c][10],e=i.w5[10][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),p?function(t,n,r){u(t,n,r),(0,o.mg)(r,r)}(f*h[0],f*h[1],r):(0,o.D_)(r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}return!1}function l(t){return 1===t||6===t||8===t||4===t}const f=(0,e.kU)(1),h=(0,a.vt)(),M=(0,a.vt)()},74594(t,n,r){r.d(n,{projectMeshVertexPositions:()=>i});var e=r(9762),o=r(95696),a=r(21325),u=r(72258);function i(t,n){const r=(0,u.UR)(t,o.A.absolute);if(!r)return null;let i=r.position;return(0,a.aI)(t.spatialReference,n)||(i=new Float64Array(r.position.length),(0,e.projectBuffer)(r.position,t.spatialReference,0,i,n,0))?i:null}},22141(t,n,r){r.d(n,{$5:()=>w,CN:()=>y,JP:()=>d,KM:()=>q,Mv:()=>R,X4:()=>x,gr:()=>A,qs:()=>T,si:()=>v,xA:()=>S});var e=r(34727),o=r(77690),a=r(29242),u=r(58083),i=r(9093),s=r(35522),c=r(51850),l=r(73941),f=r(48353),h=r(9762),M=(r(79258),r(21325)),m=r(28735),p=r(13030),g=r(73354),b=r(50867);const d="Projection may be possible after calling projection.load().";function y(t,n,r,e){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${r.wkid}).${e?" ":""}${e}`)}function x(t,n,r,e,o,a){return N(0,p.xs.fromTypedArray(t),0,p.Xm.fromTypedArray(n),r,p.Xm.fromTypedArray(e),o,p.xs.fromTypedArray(a))?a:null}function v(t,n,r,e,o,a){return N(1,p.xs.fromTypedArray(t),0,p.Xm.fromTypedArray(n),r,p.Xm.fromTypedArray(e),o,p.xs.fromTypedArray(a))?a:null}function A(t,n,r,e){return(0,h.projectBuffer)(t,n,0,r,e,0)?r:null}function w(t,n,r,e){return(0,h.projectBuffer)(t,n,0,r,e,0)?r:null}function T(t,n,r){return(0,o.Ge)(I,r),(0,g.b)(n,t,I),(0,e.or)(I)&&(0,g.n)(n,n),n}function q(t,n,r){return(0,o.z0)(I,r),(0,b.t)(n,t,I),(0,e.or)(I)&&(0,g.n)(n,n,4),n}function S(t,n,r,e,o,a){if(!N(0,p.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,p.Xm.fromTypedArray(n),r,p.Xm.fromTypedArray(e),o,p.xs.fromTypedArray(a,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)a[n]=t[n];return a}function R(t,n,r,e,o,a){if(!N(1,p.xs.fromTypedArray(t,16),1,p.Xm.fromTypedArray(n),r,p.Xm.fromTypedArray(e),o,p.xs.fromTypedArray(a,16)))return null;for(let n=3;n<t.length;n+=4)a[n]=t[n];return a}function _(t,n,r,e,a){switch((0,f.l)(e,r,O,e),1===t&&(0,u.B8)(O,O),n){case 0:return(0,o.Ge)(a,O);case 1:return(0,o.z0)(a,O)}}function N(t,n,r,e,o,a,u,i){if(!n)return;const c=e.count;if(function(t){return t.isWGS84||(0,M.x1)(t)||(0,l.q8)(t)||(0,l.KQ)(t)}(o))for(let e=0;e<c;e++)a.getVec(e,F),n.getVec(e,C),(0,s.ei)(C,C,_(t,r,F,u,I)),i.setVec(e,C);else for(let o=0;o<c;o++){a.getVec(o,F),n.getVec(o,C);const c=(0,m.jg)(e.get(o,1));let l=Math.cos(c);1===r!=(0===t)&&(l=1/l),_(t,r,F,u,I),0===t?(I[0]*=l,I[1]*=l,I[2]*=l,I[3]*=l,I[4]*=l,I[5]*=l):(I[0]*=l,I[3]*=l,I[6]*=l,I[1]*=l,I[4]*=l,I[7]*=l),(0,s.ei)(C,C,I),(0,s.S8)(C,C),i.setVec(o,C)}return i}const F=(0,c.vt)(),C=(0,c.vt)(),O=(0,i.vt)(),I=(0,a.vt)()},72258(t,n,r){r.d(n,{UR:()=>v,p5:()=>x,xK:()=>R});var e=r(53966),o=r(34727),a=r(86211),u=r(77690),i=r(29242),s=r(58083),c=r(9093),l=r(35522),f=r(51850),h=r(73941),M=r(98764),m=r(48353),p=r(65806),g=r(27615),b=r(73354),d=r(22141);const y=()=>e.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function x(t,n,{vertexSpace:r,spatialReference:e}){if("georeferenced"===r.type){const o=t;if(!(0,p.g)(n,o,e))return!1;const{origin:a}=r;return(0,l.Re)(t,o,a),!0}const o=(0,M.lO)(e),a=t;if(!(0,p.g)(n,a,o))return!1;const{origin:u}=r,i=O;if(!(0,m.l)(e,u,i,o))return!1;const c=(0,s.B8)(O,i);return null!=c&&((0,l.Z0)(t,a,c),!0)}function v(t,n,r){const{vertexSpace:e,transform:o,vertexAttributes:a}=t,i=(0,g.Hq)(e)?o:null,f=q(t.spatialReference,r,3);if((0,g.yJ)(e,n)&&(!i||(0,s.t2)(i.localMatrix,c.zK))&&S(f)){const{position:t,normal:n,tangent:e}=a,o=r?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?e:e?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:r},{origin:e},o,a){const u=A(n,a);if(!(0,m.l)(n,e,_,u))return(0,d.CN)(y(),n,u),null;if(r&&(0,s.lw)(_,_,r.localMatrix),!(0,m.l)(n,o,N,u))return(0,d.CN)(y(),u,n),null;(0,s.B8)(N,N);const i=(0,s.lw)(_,N,_);return T(i,n,a,3),w(t,i)}(t,t.vertexSpace,n.origin,r):function({spatialReference:t,vertexAttributes:n,transform:r},{origin:e},o,a){const u=A(t,a);if(!(0,m.l)(t,e,_,u))return(0,d.CN)(y(),t,u),null;r&&(0,s.lw)(_,_,r.localMatrix),T(_,t,a,1);const i=new Float64Array(n.position.length),c=function(t,n,r,e,o){(0,b.t)(e,t,n);const a=new Float64Array(t.length);return(0,d.$5)(e,o,a,r)?a:((0,d.CN)(y(),o,r),null)}(n.position,_,t,i,u);if(!c)return null;const f=function(t,n,r,e,o,a){if(null==o)return null;const u=new Float32Array(o.length);return(0,d.qs)(o,u,a),(0,d.si)(u,t,n,r,e,u)?u:((0,d.CN)(y(),e,n),null)}(c,t,i,u,n.normal,_);if(n.normal&&!f)return null;const h=function(t,n,r,e,o,a){if(null==o)return null;const u=new Float32Array(o.length);return(0,d.KM)(o,u,a),(0,d.Mv)(u,t,n,r,e,u)?u:((0,d.CN)(y(),e,n),null)}(c,t,i,u,n.tangent,_);if(n.tangent&&!h)return null;if(o){const t=(0,l.ze)(C,o);(0,b.a)(c,c,t)}return{position:c,normal:f,tangent:h}}(t,t.vertexSpace,n.origin,r);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:r},{origin:e},o,a){const i=A(n,a);if(!(0,m.l)(n,o,_,i))return(0,d.CN)(y(),n,i),null;const c=1/q(n,a,2);(0,s.hs)(_,_,[c,c,c]);const l=(0,s.B8)(N,_),{position:f,normal:h,tangent:M}=function(t,n,r){if(!n)return t;if(!r){const{position:r,normal:e,tangent:o}=t;return{position:(0,b.a)(new Float64Array(r.length),r,n),tangent:o,normal:e}}const e=w(t,r.localMatrix);return(0,b.a)(e.position,e.position,n),e}(t,e,r),p=new Float64Array(f.length),g=function(t,n,r,e,o){const a=(0,d.gr)(t,n,e,o);if(!a)return(0,d.CN)(y(),n,o),null;const u=new Float64Array(a.length);return(0,b.t)(u,a,r),u}(f,n,l,p,i);if(!g)return null;const x=(0,u.Ge)(F,l),v=function(t,n,r,e,o,a,u){if(null==t)return null;const i=u??new Float32Array(t.length);return(0,d.X4)(t,n,r,e,o,i)?((0,b.b)(i,i,a),i):((0,d.CN)(y(),r,o),null)}(h,f,n,p,i,x,h!==t.normal?h:void 0);if(!v&&h)return null;const T=function(t,n,r,e,o,a,u){if(null==t)return null;const i=u??new Float32Array(t.length);return(0,d.xA)(t,n,r,e,o,i)?((0,b.b)(i,i,a,4),i):((0,d.CN)(y(),r,o),null)}(M,f,n,p,i,x,M!==t.tangent?M:void 0);return!T&&M?null:{position:g,normal:v,tangent:T}}(t,t.vertexSpace,n.origin,r):function({vertexAttributes:t,transform:n,spatialReference:r},{origin:e},o,a){const u=q(r,a,3),i=e||!S(u)?(0,s.C)(_,n?.localMatrix??c.zK):null;i&&T(i,r,a,3);const{position:f,normal:h,tangent:M}=i?w(t,i):t,m=a?.allowBufferReuse,p=m?f:new Float64Array(f.length);let g=f;if(e&&(g=(0,b.a)(p,g,e)),o){const t=(0,l.ze)(C,o);g=(0,b.a)(p,g,t)}return{position:g!==t.position||m?g:g.slice(),normal:h!==t.normal||m?h:h?.slice(),tangent:M!==t.tangent||m?M:M?.slice()}}(t,t.vertexSpace,n.origin,r)}}function A(t,n){return n?.useEllipsoid&&(0,h.B3)(t)?M.Y0:(0,M.lO)(t)}function w(t,n){const r=new Float64Array(t.position.length);(0,b.t)(r,t.position,n);const e=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return e&&t.normal&&(0,d.qs)(t.normal,e,n),o&&t.tangent&&(0,d.KM)(t.tangent,o,n),{position:r,normal:e,tangent:o}}function T(t,n,r,e){const o=q(n,r,e);S(o)||(0,s.hs)(t,t,[o,o,o])}function q(t,n,r){const e=!!(1&r),o=!!(2&r),a=n?.sourceUnit,u=n?.targetUnit;if(!a&&!u)return 1;let i=R(a,t);e||!a||S(i)||(y().warn("source unit conversion not supported"),i=1);let s=1/R(u,t);return o||!u||S(s)||(y().warn("target unit conversion not supported"),s=1),i*s}function S(t){return(0,o.Io)(t,1)}function R(t,n){if(null==t)return 1;const r=(0,a.KX)(n);return 1/(0,a.oU)(r,"meters",t)}const _=(0,c.vt)(),N=(0,c.vt)(),F=(0,i.vt)(),C=(0,f.vt)(),O=(0,c.vt)()},27615(t,n,r){r.d(n,{CK:()=>s,Hq:()=>i,MW:()=>c,TE:()=>l,yJ:()=>f});var e=r(35522),o=r(86738),a=r(95696),u=r(18251);function i(t){return null!=t.origin}function s(t){return i(t.vertexSpace)}function c(t,n){if(!i(t))return null;const[r,e,a]=t.origin;return new o.A({x:r,y:e,z:a,spatialReference:n})}function l(t,n){const{x:r,y:e,z:o,spatialReference:i}=t,s=[r,e,o??0];return"local"===(n?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(i))?new u.default({origin:s}):new a.A({origin:s})}function f(t,n){return t.type===n.type&&(t.origin===n.origin||null!=t.origin&&null!=n.origin&&(0,e.t2)(t.origin,n.origin))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2068],{15142(t,e,r){r.d(e,{A:()=>o});var i=r(4576),n=r(21818);const s=(t,e,r,i)=>{let n=e,s=e;const h=r>>>1,a=t[n-1];for(;s<=h;){s=n<<1,s<r&&i(t[s-1],t[s])<0&&++s;const e=t[s-1];if(i(e,a)<=0)break;t[n-1]=e,n=s}t[n-1]=a},h=(t,e)=>t<e?-1:t>e?1:0;function a(t,e,r,i){void 0===e&&(e=0),void 0===r&&(r=t.length),void 0===i&&(i=h);for(let n=r>>>1;n>e;n--)s(t,n,r,i);const n=e+1;for(let h=r-1;h>e;h--){const r=t[e];t[e]=t[h],t[h]=r,s(t,n,h,i)}}function*l(t,e,r,i){void 0===e&&(e=0),void 0===r&&(r=t.length),void 0===i&&(i=h);for(let n=r>>>1;n>e;n--)s(t,n,r,i),yield;const n=e+1;for(let h=r-1;h>e;h--){const r=t[e];t[e]=t[h],t[h]=r,s(t,n,h,i),yield}}class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new i.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>u(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const e=new Array;for(let r=0;r<this._length;r++){const i=this.data[r];t(i)&&e.push(i)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){const r=this.data.indexOf(t,e);return-1!==r&&r<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let r=0;r<e;r++)this.data[this._length++]=t[r]}pushAll(t){for(const e of t)this.data[this._length++]=e}fill(t,e){for(let r=0;r<e;r++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,u(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const e=(0,i.qh)(this.data,(0,n.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,i.qh)(this.data,(0,n.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,r){this.length=(0,i.mW)(this.data,t,this.length,e,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;const r=this.data[t];this.data[t]=this.data[e],this.data[e]=r}sort(t){a(this.data,0,this.length,t)}iterableSort(t){return l(this.data,0,this.length,t)}some(t,e){for(let r=0;r<this.length;++r)if(t.call(e,this.data[r],r,this.data))return!0;return!1}find(t,e){const{data:r,length:i}=this;for(let n=0;n<i;++n)if(t.call(e,r[n]))return r[n]}filterInPlace(t,e){let r=0;for(let i=0;i<this._length;++i){const n=this.data[i];t.call(e,n,i,this.data)&&(this.data[i]=this.data[r],this.data[r]=n,r++)}if(this._deallocator)for(let t=r;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=r,this._shrink(),this}forAll(t,e){const{data:r,length:i}=this;for(let n=0;n<i;++n)t.call(e,r[n],n,r)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){const r=new Array(this.length);for(let i=0;i<this.length;++i)r[i]=t.call(e,this.data[i],i,this.data);return r}reduce(t,e){let r=e;for(let e=0;e<this.length;++e)r=t(r,this.data[e],e,this.data);return r}has(t){const e=this.length,r=this.data;for(let i=0;i<e;++i)if(r[i]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}function u(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},97146(t,e,r){r.d(e,{Dg:()=>s,my:()=>h,tM:()=>u,uW:()=>n});var i=r(34275);function n(t){return s(t,!0)}function s(t,e){if(Array.isArray(t)){if(t.length<i.y9)return t}else if(t.length<i.y9)return Array.from(t);let r=!0,n=!0;return t.some((t,e)=>(r=r&&0===t,n=n&&t===e,!r&&!n)),r?function(t){if(1===t)return l;if(t<i.y9)return new Array(t).fill(0);if(t>d.length){const e=Math.max(2*d.length,t);d=new Uint8Array(e)}return new Uint8Array(d.buffer,0,t)}(t.length):n?u(t.length):(0,i.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const r of t){if(r>=65536)return(0,i.iu)(t)?t:new Uint32Array(t);r>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function h(t){return t<=i.y9?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let a=c(131072);const l=[0],o=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function u(t){return 1===t?l:t<i.y9?Array.from(new Uint16Array(o.buffer,0,t)):t<o.length?new Uint16Array(o.buffer,0,t):(t>a.length&&(a=c(Math.max(2*a.length,t))),new Uint32Array(a.buffer,0,t))}function c(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let d=new Uint8Array(65536)},90239(t,e,r){function i(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>i})},1843(t,e,r){r.d(e,{BP:()=>c,l5:()=>d});var i=r(20498),n=r(13030),s=r(90239),h=r(4431),a=r(620),l=r(85079);class o{constructor(t,e,r=0){this.layout=t,this.byteOffset=r,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const i=t.fields.get(e);this[e]=new i.constructor(this.buffer,r+i.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new o(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,i=t.count){const n=this.stride;if(n%4==0){const s=new Uint32Array(t.buffer,e*n,i*n/4);new Uint32Array(this.buffer,r*n,i*n/4).set(s)}else{const s=new Uint8Array(t.buffer,e*n,i*n);new Uint8Array(this.buffer,r*n,i*n).set(s)}return this}get usedMemory(){return this.byteLength}dispose(){}}class u{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:E(t[1].constructor)})))}freeze(){return this}get locations(){return(0,l.Xk)((0,h.U)(this))}vec2f16(t,e){return this._appendField(t,i.SX?n.ZD:n.gH,e),this}vec2f(t,e){return this._appendField(t,n.gH,e),this}vec2f64(t,e){return this._appendField(t,n.si,e),this}vec3f16(t,e){return this._appendField(t,i.SX?n.EC:n.xs,e),this}vec3f(t,e){return this._appendField(t,n.xs,e),this}vec3f64(t,e){return this._appendField(t,n.Xm,e),this}vec4f16(t,e){return this._appendField(t,i.SX?n.jz:n.Eq,e),this}vec4f(t,e){return this._appendField(t,n.Eq,e),this}vec4f64(t,e){return this._appendField(t,n.Aj,e),this}mat3f(t,e){return this._appendField(t,n.jZ,e),this}mat3f64(t,e){return this._appendField(t,n.j0,e),this}mat4f(t,e){return this._appendField(t,n.Sx,e),this}mat4f64(t,e){return this._appendField(t,n.E$,e),this}vec4u8(t,e){return this._appendField(t,n.XP,e),this}f16(t,e){return this._appendField(t,i.SX?n.XW:n.Y$,e),this}f32(t,e){return this._appendField(t,n.Y$,e),this}f64(t,e){return this._appendField(t,n.qB,e),this}u8(t,e){return this._appendField(t,n.SL,e),this}u16(t,e){return this._appendField(t,n.h,e),this}i8(t,e){return this._appendField(t,n.bf,e),this}vec2i8(t,e){return this._appendField(t,n.D6,e),this}vec2i16(t,e){return this._appendField(t,n.mJ,e),this}vec2u8(t,e){return this._appendField(t,n.LC,e),this}vec2u16(t,e){return this._appendField(t,n.Yi,e),this}vec4u16(t,e){return this._appendField(t,n.Uz,e),this}vec4i16(t,e){return this._appendField(t,n.E7,e),this}u32(t,e){return this._appendField(t,n.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,a.vA)(!1,`${t} already added to vertex buffer layout`);const i=e.ElementCount*(0,s.GJ)(e.ElementType),n=this._stride;this._fields.set(t,{constructor:e,size:i,offset:n,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const i=(0,s.GJ)(r.constructor.ElementType);t=Math.floor((t+i-1)/i)*i,r.offset=t,t+=r.size,e=Math.max(e,i)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new o(this,t)}createView(t,e){return new o(this,t,e)}clone(){const t=new u;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function c(){return new u}class d{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:_(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const f=[n.Y$,n.gH,n.xs,n.Eq,n.jZ,n.Sx,n.qB,n.si,n.Xm,n.Aj,n.j0,n.E$,n.SL,n.LC,n.eI,n.XP,n.h,n.Yi,n.nS,n.Uz,n.P,n.An,n.H$,n.ml,n.bf,n.D6,n.m8,n.TX,n.Qt,n.mJ,n.Vp,n.E7,n.My,n.UL,n.zD,n.Y4];function _(t){return`${t.ElementType}_${t.ElementCount}`}function E(t){return p.get(t)}const p=new Map;f.forEach(t=>p.set(_(t),t))},4431(t,e,r){r.d(e,{U:()=>s});var i=r(63907),n=r(74038);function s(t,e=0){const r=t.stride;return Array.from(t.fields.keys()).map(s=>{const h=t.fields.get(s),a=h.constructor.ElementCount,l=function(t){switch(t){case"u8":return i.pe.UNSIGNED_BYTE;case"u16":return i.pe.UNSIGNED_SHORT;case"u32":return i.pe.UNSIGNED_INT;case"i8":return i.pe.BYTE;case"i16":return i.pe.SHORT;case"i32":return i.pe.INT;case"f16":return i.pe.HALF_FLOAT;case"f32":return i.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(h.constructor.ElementType),o=h.offset,u=h.optional?.glNormalized??!1,c=h.optional?.integer??!1;return new n._(s,a,l,o,r,u,e,c)})}},71936(t,e,r){r.r(e),r.d(e,{default:()=>l});var i=r(1843);function n(t,e){return e.push(t.buffer),{buffer:t.buffer,layout:new i.l5(t.layout)}}var s=r(76216),h=r(93406),a=r(44801);class l{async extract(t){const e=o(t),r=(0,a.o6)(e),i=[e.data.buffer];return{result:u(r,i),transferList:i}}async extractComponentsEdgeLocations(t){const e=o(t),r=(0,a.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),i=[];return{result:n((0,h.K)(r,d).regular.instancesData,i),transferList:i}}async extractEdgeLocations(t){const e=o(t),r=(0,a.hx)(e.data,e.skipDeduplicate,e.indices,e.indicesLength),i=[];return{result:n((0,h.K)(r,c).regular.instancesData,i),transferList:i}}}function o(t){return{data:s.I$.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):"Uint8Array"===t.indicesType?new Uint8Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function u(t,e){return e.push(t.regular.lodInfo.lengths.buffer),e.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:n(t.regular.instancesData,e),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:n(t.silhouette.instancesData,e),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const c=new class{allocate(t){return a.Jb.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,r){t.position0.setVec(e,r.position0),t.position1.setVec(e,r.position1)}},d=new class{allocate(t){return a.HY.createBuffer(t)}trim(t,e){return t.slice(0,e)}write(t,e,r){t.position0.setVec(e,r.position0),t.position1.setVec(e,r.position1),t.componentIndex.set(e,r.componentIndex)}}},85079(t,e,r){r.d(e,{Sk:()=>h,Xk:()=>n,_u:()=>s});var i=r(21818);function n(t){let e=0;return(0,i.z)(new Map(t.map(({name:t,count:r})=>{const i=[t,e];return 16===r?e+=4:9===r?e+=3:++e,i})))}function s(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:i})=>{e.set(t,r),16===i?r+=4:9===i?r+=3:++r})),e}function h(t){return s(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>i});class i{constructor(t,e,r,i,n,s=!1,h=0,a=!1){this.name=t,this.count=e,this.type=r,this.offset=i,this.stride=n,this.normalized=s,this.divisor=h,this.integer=a}}},63907(t,e,r){r.d(e,{$0:()=>d,C5:()=>c,CQ:()=>R,H0:()=>s,SB:()=>l,WR:()=>i,XN:()=>h,iE:()=>a,ld:()=>o,nI:()=>E,pe:()=>n,r6:()=>f,uH:()=>g,vt:()=>u,xL:()=>p,yI:()=>_});const i={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},h=Object.values(s),a={DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},l={DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},o={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269},u={Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12},c=1029,d=0,f=36064,_=36065,E=33306,p=36096,g=36128,R={COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2369],{35982(e,t,i){i.d(t,{B:()=>c});var s=i(4576),r=i(71511),n=i(36563),l=i(53966),o=i(97768),a=i(17676),h=i(83027);class c{constructor(e,t,i,s,r={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(e,{...r,schedule:s}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{r.hasInitialize&&e.invoke("initialize",{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>l.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const i=new u(e,t);return this._listeners.push(i),this._connectListener(i),(0,n.hA)(()=>{(0,s.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,o.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,s){if(this._thread){const r=this._transferLists[e],n=r?r(t):[];return this._thread.invoke(e,t,{transferList:n,signal:i,jobPriority:s})}return this._promise?this._promise.then(()=>((0,a.Te)(i),this.invokeMethod(e,t,i))):Promise.reject((0,a.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(d):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class u{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new r.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function d(){}},54239(e,t,i){i.d(t,{A:()=>m});var s,r=i(5482),n=i(4576),l=i(66552),o=i(25482),a=i(86211),h=i(67076),c=i(91429),u=i(43937),d=i(36005);const p=(0,l.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=p.jsonValues.slice();(0,n.Xy)(g,"orthometric");const v=(0,l.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let m=s=class extends o.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return p.write(e,t,i)}readHeightModel(e,t,i){return p.read(e)||(i?.messages&&i.messages.push(function(e,t){return new h.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return v.read(e)||(i?.messages&&i.messages.push(y(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,a.LA)(e)||v.read(e)||(i?.messages&&i.messages.push(y(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new s({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,a.k1)(t);return new s({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new s;return t.read(e,{origin:"web-scene"}),t}};function y(e,t){return new h.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,r.Cg)([(0,c.MZ)({type:p.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],m.prototype,"heightModel",void 0),(0,r.Cg)([(0,u.K)("web-scene","heightModel")],m.prototype,"writeHeightModel",null),(0,r.Cg)([(0,d.w)(["web-scene","service"],"heightModel")],m.prototype,"readHeightModel",null),(0,r.Cg)([(0,c.MZ)({type:v.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:v.jsonValues,write:{writer:v.write,isRequired:!0}}}}})],m.prototype,"heightUnit",void 0),(0,r.Cg)([(0,d.w)("web-scene","heightUnit")],m.prototype,"readHeightUnit",null),(0,r.Cg)([(0,d.w)("service","heightUnit")],m.prototype,"readHeightUnitService",null),(0,r.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],m.prototype,"vertCRS",void 0),(0,r.Cg)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],m.prototype,"readVertCRS",null),m=s=(0,r.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],m)},62369(e,t,i){i.r(t),i.d(t,{default:()=>j});var s=i(5482),r=i(11254),n=i(49186),l=i(97768),o=i(25728),a=i(17676),h=i(84952),c=i(91429),u=i(54239),d=i(4146),p=i(89186),g=i(18768),v=i(34287),m=i(8303),y=i(10873),f=i(87378),w=i(35982);class _ extends w.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(M.forEach((e,t)=>{e===this&&M.delete(t)}),this.destroy())}}const M=new Map;var S=i(34727),C=i(19419),x=(i(44208),i(86211)),b=i(5443),A=i(86738),T=i(16930),k=i(21325),L=i(28735),R=i(91806),V=i(87045);class z{constructor(e){const t=z.checkUnsupported(e);if(null!=t)throw t;const i=e;this.spatialReference=i.spatialReference,this._isWebMercator=this.spatialReference.isWebMercator,this._isGCS=(0,k.EA)(this.spatialReference),this.origin=[i.origin.x,i.origin.y],this.pixelSize=i.size[0],this.dpi=i.dpi;const s=i.lods.reduce((e,t)=>(t.level<e.minLod.level&&(e.minLod=t),e.max=Math.max(e.max,t.level),e),{minLod:i.lods[0],max:-1/0}),r=s.minLod,n=2**r.level;let l=r.resolution*n,o=r.scale*n;this.levels=new Array(s.max+1);for(let e=0;e<this.levels.length;e++)this.levels[e]={resolution:l,scale:o,tileSize:[l*i.size[0],l*i.size[1]]},l/=2,o/=2}clone(){return new z(this.toTileInfo())}toTileInfo(){return new V.A({dpi:this.dpi,origin:new A.A({x:this.origin[0],y:this.origin[1],spatialReference:this.spatialReference}),size:[this.pixelSize,this.pixelSize],spatialReference:this.spatialReference,lods:this.levels.map((e,t)=>new R.A({level:t,scale:e.scale,resolution:e.resolution}))})}getExtent(e,t,i,s){const r=this.levels[e],n=r.tileSize[0],l=r.tileSize[1];s[0]=this.origin[0]+i*n,s[2]=this.origin[0]+(i+1)*n,s[3]=this.origin[1]-t*l,s[1]=this.origin[1]-(t+1)*l}convertExtentToRadians(e,t){this._isWebMercator?(t[0]=(0,L.yw)(e[0]),t[1]=(0,L.jg)(e[1]),t[2]=(0,L.yw)(e[2]),t[3]=(0,L.jg)(e[3])):this._isGCS&&(t[0]=(0,S.kU)(e[0]),t[1]=(0,S.kU)(e[1]),t[2]=(0,S.kU)(e[2]),t[3]=(0,S.kU)(e[3]))}getExtentGeometry(e,t,i,s=new b.A){return this.getExtent(e,t,i,U),s.spatialReference=this.spatialReference,s.xmin=U[0],s.ymin=U[1],s.xmax=U[2],s.ymax=U[3],s.zmin=void 0,s.zmax=void 0,s}ensureMaxLod(e){if(null==e)return!1;let t=!1;for(;this.levels.length<=e;){const{resolution:e,scale:i}=this.levels[this.levels.length-1],s=e/2*this.pixelSize;this.levels.push({resolution:e/2,scale:i/2,tileSize:[s,s]}),t=!0}return t}capMaxLod(e){this.levels.length>e+1&&(this.levels.length=e+1)}getMaxLod(){return this.levels.length-1}scaleAtLevel(e){return this.levels[0].scale/2**e}levelAtScale(e){const t=this.levels[0].scale;return e>=t?0:Math.log(t/e)*Math.LOG2E}resolutionAtLevel(e){return this.levels[0].resolution/2**e}compatibleWith(e,t=1/0){if(z.checkUnsupported(e))return!1;const i=new z(e);if(!i.spatialReference.equals(this.spatialReference))return!1;if(i.pixelSize!==this.pixelSize)return!1;const s=Math.min(this.levels.length-1,i.levels.length-1,t),r=this.levels[s].resolution;let n=.5*r;return!(!(0,S.Sp)(i.origin[0],this.origin[0],n)||!(0,S.Sp)(i.origin[1],this.origin[1],n))&&(n=.5*r/2**s/this.pixelSize*12,(0,S.Sp)(r,i.levels[s].resolution,n))}rootTilesInExtent(e,t=null,i=1/0){const s=new Array,r=this.levels[0].tileSize;if(null==e||0===r[0]||0===r[1])return s;z.computeRowColExtent(e,r,this.origin,U);let n=U[1],l=U[3],o=U[0],a=U[2];const h=a-o,c=l-n;if(h*c>i){const e=Math.floor(Math.sqrt(i));c>e&&(n=n+Math.floor(.5*c)-Math.floor(.5*e),l=n+e),h>e&&(o=o+Math.floor(.5*h)-Math.floor(.5*e),a=o+e)}for(let e=n;e<l;e++)for(let t=o;t<a;t++)s.push([0,e,t]);return null!=t&&(t[0]=this.origin[0]+o*r[0],t[1]=this.origin[1]-l*r[1],t[2]=this.origin[0]+a*r[0],t[3]=this.origin[1]-n*r[1]),s}static computeRowColExtent(e,t,i,s){const r=.001*(e[2]-e[0]+(e[3]-e[1]));s[0]=Math.max(0,Math.floor((e[0]+r-i[0])/t[0])),s[2]=Math.max(0,Math.ceil((e[2]-r-i[0])/t[0])),s[1]=Math.max(0,Math.floor((i[1]-e[3]+r)/t[1])),s[3]=Math.max(0,Math.ceil((i[1]-e[1]-r)/t[1]))}static isPowerOfTwo(e){const t=e.lods,i=t[0].resolution*2**t[0].level;return!t.some(e=>!(0,S.b6)(e.resolution,i/2**e.level))}static hasGapInLevels(e){const t=e.lods.map(e=>e.level);t.sort((e,t)=>e-t);for(let e=1;e<t.length;e++)if(t[e]!==t[0]+e)return!0;return!1}static tileSizeSupported(e){const t=e.size[1];return t===e.size[0]&&!(t&t-1)&&t>=128&&t<=512}static hasOriginPerLODs(e){const t=e.origin;return e.lods.some(e=>null!=e.origin&&(e.origin[0]!==t.x||e.origin[1]!==t.y))}static getMissingTileInfoError(){return new n.A("tilingscheme:tile-info-missing","Tiling scheme must have tiling information")}static checkUnsupported(e){return null==e?new n.A("tilingscheme:tile-info-missing","Tiling scheme must have tiling information"):e.lods.length<1?new n.A("tilingscheme:generic","Tiling scheme must have at least one level"):z.isPowerOfTwo(e)?z.hasGapInLevels(e)?new n.A("tilingscheme:gaps","Tiling scheme levels must not have gaps between min and max level"):z.tileSizeSupported(e)?z.hasOriginPerLODs(e)?new n.A("tilingscheme:multiple-origin","Tiling scheme levels must not have their own origin"):null:new n.A("tilingscheme:tile-size","Tiles must be square and size must be one of [128, 256, 512]"):new n.A("tilingscheme:power-of-two","Tiling scheme must be power of two")}static fromExtent(e,t){const i=e[2]-e[0],s=e[3]-e[1],r=(0,x.GA)(t),n=1.2*Math.max(i,s),l=n/256,o=l*r*(96/.0254),a=new z(new V.A({size:[256,256],origin:new A.A({x:e[0]-.5*(n-i),y:e[3]+.5*(n-s)}),lods:[new R.A({level:0,resolution:l,scale:o})],spatialReference:t}));return a.ensureMaxLod(20),a}static makeWebMercatorAuxiliarySphere(e){const t=new z(z.WebMercatorAuxiliarySphereTileInfo);return t.ensureMaxLod(e),t}static makeGCSWithTileSize(e,t=256,i=16){const s=256/t,r=new z(new V.A({size:[t,t],origin:new A.A({x:-180,y:90,spatialReference:e}),spatialReference:e,lods:[new R.A({level:0,resolution:.703125*s,scale:295497598.570834*s})]}));return r.ensureMaxLod(i),r}static{this.WebMercatorAuxiliarySphereTileInfo=new V.A({size:[256,256],origin:new A.A({x:-20037508.342787,y:20037508.342787,spatialReference:T.A.WebMercator}),spatialReference:T.A.WebMercator,lods:[new R.A({level:0,resolution:156543.03392800014,scale:591657527.591555})]})}static{this.WebMercatorAuxiliarySphere=z.makeWebMercatorAuxiliarySphere(19)}get test(){}}const U=(0,C.vt)(),D=(0,S.$8)(S.pq/10),O=(0,C.vt)();z.WebMercatorAuxiliarySphere.getExtent(0,0,0,O),(0,C.vt)([-180,-90,180,90]);var I=i(36005);let E=class extends((0,p.f)((0,g.b)((0,v.q)((0,m.A)((0,o.M)(d.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=M.get(e);return t||(null!=e?(t=new _(t=>e.immediate.schedule(t)),M.set(e,t)):(t=new _,M.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,l.Gz)(this._lercDecoder)}readCapabilities(e,t){const i=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}readVersion(e,t){let i=t.currentVersion;return i||(i=9.3),i}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(a.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}fetchTile(e,t,i,s){const n=s?.signal,l={responseType:"array-buffer",signal:n},o={noDataValue:s?.noDataValue,returnFileInfo:!0};return this.load().then(()=>this._fetchTileAvailability(e,t,i,s)).then(()=>(0,r.A)(this.getTileUrl(e,t,i),l)).then(e=>this._lercDecoder.decode(e.data,o,n)).then(e=>new f.A(e?new f.A({values:e.pixelData,width:e.width,height:e.height,noDataValue:e.noDataValue}):{values:[],width:0,height:0,noDataValue:s?.noDataValue??D}))}getTileUrl(e,t,i){const s=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,r=(0,h.x0)({...this.parsedUrl.query,blankTile:!s&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${r?"?"+r:""}`}async queryElevation(e,t){const{query:s}=await i.e(91).then(i.bind(i,90091));return(0,a.Te)(t),s(this,e,t)}async createElevationSampler(e,t){const{createSampler:s}=await i.e(91).then(i.bind(i,90091));return(0,a.Te)(t),s(this,e,t)}_fetchTileAvailability(e,t,i,s){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,s):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,r.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[Z]}};(0,s.Cg)([(0,c.MZ)({readOnly:!0})],E.prototype,"capabilities",void 0),(0,s.Cg)([(0,I.w)("service","capabilities",["capabilities"])],E.prototype,"readCapabilities",null),(0,s.Cg)([(0,c.MZ)({json:{read:{source:"copyrightText"}}})],E.prototype,"copyright",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,type:u.A})],E.prototype,"heightModelInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],E.prototype,"path",void 0),(0,s.Cg)([(0,c.MZ)({type:["show","hide"]})],E.prototype,"listMode",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],E.prototype,"minScale",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],E.prototype,"maxScale",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],E.prototype,"opacity",void 0),(0,s.Cg)([(0,c.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],E.prototype,"operationalLayerType",void 0),(0,s.Cg)([(0,c.MZ)()],E.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,c.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],E.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)(y.OZ)],E.prototype,"url",void 0),(0,s.Cg)([(0,c.MZ)()],E.prototype,"version",void 0),(0,s.Cg)([(0,I.w)("version",["currentVersion"])],E.prototype,"readVersion",null),E=(0,s.Cg)([(0,c.$K)("esri.layers.ElevationLayer")],E);const Z=Symbol("default-fetch-tile");E.prototype.fetchTile[Z]=!0;const j=E},18768(e,t,i){i.d(t,{b:()=>o});var s=i(5482),r=i(53966),n=i(91429),l=i(60694);const o=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Jf)(e,r.A.getLogger(this)))}};return(0,s.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,s.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,s.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}},87378(e,t,i){i.d(t,{A:()=>o});var s,r=i(34275),n=i(56507);const l=Symbol("ElevationTileDataClass");class o{static{s=l}constructor({values:e,width:t,height:i,noDataValue:n}){this[s]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,r.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=i,this.noDataValue=n}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let i=1/0,s=-1/0,r=!0;for(const n of t)n===e?this._hasNoDataValues=!0:(i=n<i?n:i,s=n>s?n:s,r=!1);r?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=s>-3e38?s:0)}static{this.from=(0,n.qf)(o)}}}}]);