@arcgis/core 5.0.0-next.53 → 5.0.0-next.55

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 (812) hide show
  1. package/Basemap.d.ts +1 -1
  2. package/Color.js +1 -1
  3. package/Ground.d.ts +4 -6
  4. package/Ground.js +1 -1
  5. package/PopupTemplate.d.ts +2 -2
  6. package/WebLinkChart.d.ts +1 -1
  7. package/WebScene.js +1 -1
  8. package/applications/Components/QuantityFormatter.d.ts +7 -7
  9. package/applications/Components/analysisUtils.d.ts +28 -53
  10. package/applications/Components/baUtils.d.ts +8 -0
  11. package/applications/Components/drawUtils.d.ts +8 -1
  12. package/applications/Components/featureUtils.d.ts +1 -1
  13. package/applications/Components/imageryUtils.d.ts +2 -2
  14. package/applications/Components/layerOriginUtils.d.ts +3 -3
  15. package/applications/Components/reactiveUtils.d.ts +24 -5
  16. package/applications/Excalibur/videoViewUtils.d.ts +2 -2
  17. package/applications/ExperienceBuilder/sketchUtils.d.ts +6 -6
  18. package/applications/KnowledgeStudio/generalSdkInternalAccess.d.ts +7 -13
  19. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +7 -7
  20. package/applications/KnowledgeStudio/reshape.d.ts +6 -15
  21. package/applications/MapViewer/mediaUtils.d.ts +4 -4
  22. package/applications/MapViewer/templateUtils.d.ts +3 -3
  23. package/applications/PortalApp/layerUtils.d.ts +10 -0
  24. package/applications/PortalApp/layerUtils.js +5 -0
  25. package/applications/SceneViewer/sceneViewerUtils.d.ts +1 -2
  26. package/arcade/featureSetUtils.js +1 -1
  27. package/arcade/featureset/support/shared.js +1 -1
  28. package/arcade.d.ts +33 -17
  29. package/assets/esri/core/workers/RemoteClient.js +1 -1
  30. package/assets/esri/core/workers/chunks/{5aa354854219361f722b.js → 0099f4729c94c779ba35.js} +1 -1
  31. package/assets/esri/core/workers/chunks/00e407d262c49890afa8.js +1 -0
  32. package/assets/esri/core/workers/chunks/{15a0750c10b510564a42.js → 01d38a9ca9e88c38aab9.js} +1 -1
  33. package/assets/esri/core/workers/chunks/087cf25ca211836a084a.js +1 -0
  34. package/assets/esri/core/workers/chunks/{a3f23f08337e101e4e64.js → 097001462d93b78b64f4.js} +1 -1
  35. package/assets/esri/core/workers/chunks/0a39c6dc57bd60d5587e.js +1 -0
  36. package/assets/esri/core/workers/chunks/0d1e8d5d9abee38e275e.js +316 -0
  37. package/assets/esri/core/workers/chunks/{cef873da468668eb95cb.js → 14765f98b8ea447498a1.js} +6 -7
  38. package/assets/esri/core/workers/chunks/{da922e861d5845ae0979.js → 1ab98591d2f2bc604505.js} +1 -1
  39. package/assets/esri/core/workers/chunks/1b2e17c04c34cfa671a1.js +1 -0
  40. package/assets/esri/core/workers/chunks/211837df0edada4414c5.js +1 -0
  41. package/assets/esri/core/workers/chunks/22b07c54a5fcc27771b0.js +1 -0
  42. package/assets/esri/core/workers/chunks/{cd8fec3500e6503ae020.js → 23a9dd9454d5249bbd59.js} +1 -1
  43. package/assets/esri/core/workers/chunks/311c4914a4f69f3c1525.js +1 -0
  44. package/assets/esri/core/workers/chunks/{108675a17e432a02cf66.js → 35cbc61a006351620ead.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{1bf4b5e5402790ccb450.js → 369f37060608342a4262.js} +1 -1
  46. package/assets/esri/core/workers/chunks/3b5e71b156244789f624.js +1 -0
  47. package/assets/esri/core/workers/chunks/3f0959b1abafe516146e.js +1 -0
  48. package/assets/esri/core/workers/chunks/{308fb48d080e01499a26.js → 436f206898306df019ac.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{553ca1e55e9f1359839c.js → 44c228388a95fa958827.js} +1 -1
  50. package/assets/esri/core/workers/chunks/454c15367cccbf63af7a.js +1 -0
  51. package/assets/esri/core/workers/chunks/{11ab10668632648b2ba7.js → 492d575894c7905bb70c.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{f3d8d5fe15501220792d.js → 495b11fdecc3ba90d454.js} +1 -1
  53. package/assets/esri/core/workers/chunks/4f33a2ecb154a2c2449c.js +1 -0
  54. package/assets/esri/core/workers/chunks/{b1d3d2c93c189e215f67.js → 5047acfd66539eefe353.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{cddce67919e13e2f365e.js → 51fd6662245b920af652.js} +1 -1
  56. package/assets/esri/core/workers/chunks/52726458f590e726d52c.js +1 -0
  57. package/assets/esri/core/workers/chunks/5873c7b65d0fb04998fb.js +1 -0
  58. package/assets/esri/core/workers/chunks/{d677b378449257103ec4.js → 58cf5b9a6aa685fc3367.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{395a0773ccafd1f24c4d.js → 5d31fbabaa875f8627c0.js} +1 -1
  60. package/assets/esri/core/workers/chunks/67a45faa80316f43c51b.js +1 -0
  61. package/assets/esri/core/workers/chunks/6d09965ab2bff9da88b6.js +1 -0
  62. package/assets/esri/core/workers/chunks/{521aac8a665e98e4ca78.js → 700122f775b98a7ed353.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{a92c1171314a68504c1b.js → 7353d78feba7e6302b6e.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{13ce8e8d45779b11ee12.js → 7f4fa2f2e85863d3cfb9.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{a4f89568205d78d91cfe.js → 80c36f1786ae0be00962.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{549f4ab9e285deaf04fb.js → 81d89107ff82604a3ea0.js} +1 -1
  67. package/assets/esri/core/workers/chunks/8208c073e606973ea1ad.js +1 -0
  68. package/assets/esri/core/workers/chunks/{62ed6b45482e39d67785.js → 893a5ab0c2df9262efd8.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{1f0c7ab33e466a37c7f9.js → 8c1f1eb36198ce40ef13.js} +1 -1
  70. package/assets/esri/core/workers/chunks/92928c56b312e1514600.js +1 -0
  71. package/assets/esri/core/workers/chunks/94929cf2b9fc66a93882.js +1 -0
  72. package/assets/esri/core/workers/chunks/94f02082a006003ef5a9.js +1 -0
  73. package/assets/esri/core/workers/chunks/951e3c911a3486b1e609.js +1 -0
  74. package/assets/esri/core/workers/chunks/{54666586754949bfa584.js → 983356eb4fd0a0dcf3fd.js} +1 -1
  75. package/assets/esri/core/workers/chunks/a16e75ff5cd9b22be197.js +1 -0
  76. package/assets/esri/core/workers/chunks/{36d9208895abd1ba4ff1.js → a623676c74745e040a2a.js} +1 -1
  77. package/assets/esri/core/workers/chunks/{1065fd655bb7cee243fd.js → a624dd283d264dce35a8.js} +1 -1
  78. package/assets/esri/core/workers/chunks/{2dfaead2ec6434513d45.js → a6742abe3ebe371e85f1.js} +1 -1
  79. package/assets/esri/core/workers/chunks/acc7ff44bfcb5c195114.js +1 -0
  80. package/assets/esri/core/workers/chunks/ad92427bf597a6e0a299.js +1 -0
  81. package/assets/esri/core/workers/chunks/{640085b5ade5c7f16228.js → b285de471ca90f38ec25.js} +1 -1
  82. package/assets/esri/core/workers/chunks/b8f83a272fc41765031d.js +1 -0
  83. package/assets/esri/core/workers/chunks/{19270a2de33f2662005b.js → b93f2bd6429879f92143.js} +1 -1
  84. package/assets/esri/core/workers/chunks/be6cc8a1485961f22372.js +1 -0
  85. package/assets/esri/core/workers/chunks/{bf5a120bc0c4851dbb69.js → bef2a70d382515b3c84e.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{e2973e5626e5039209f9.js → c448540065690cac0744.js} +1 -1
  87. package/assets/esri/core/workers/chunks/{95057105f1b3bf805140.js → cd2ea924cb91cdb6dde9.js} +1 -1
  88. package/assets/esri/core/workers/chunks/d199deff988eaefe18b4.js +1 -0
  89. package/assets/esri/core/workers/chunks/{2ef4c0092c59a98a5532.js → d54988c21ea5667d00b7.js} +1 -1
  90. package/assets/esri/core/workers/chunks/d94a2ad5a91de7086fbe.js +1 -0
  91. package/assets/esri/core/workers/chunks/d9736c783513e9c9b22f.js +1 -0
  92. package/assets/esri/core/workers/chunks/{23396a6318edf9264c1f.js → dcf6f7001f470f76bd3e.js} +1 -1
  93. package/assets/esri/core/workers/chunks/dd99b77a7c0a052507bb.js +33 -0
  94. package/assets/esri/core/workers/chunks/{cd39a53ef74f47604977.js → e03c706e327f4989280a.js} +1 -1
  95. package/assets/esri/core/workers/chunks/e47535f795b15608a6cb.js +1 -0
  96. package/assets/esri/core/workers/chunks/e572ffc1d000e4e6325f.js +1 -0
  97. package/assets/esri/core/workers/chunks/ed38c1043e6a83f49f93.js +1 -0
  98. package/assets/esri/core/workers/chunks/f44f358db5c56d5bbc0c.js +1 -0
  99. package/assets/esri/core/workers/chunks/fa95c9248fbfab338f2e.js +1 -0
  100. package/chunks/ChapmanAtmosphere.glsl.js +12 -9
  101. package/chunks/ComponentShader.glsl.js +29 -29
  102. package/chunks/GlowComposition.glsl.js +1 -1
  103. package/chunks/Haze.glsl.js +15 -21
  104. package/chunks/RasterColorizer.glsl.js +10 -10
  105. package/chunks/Viewshed.glsl.js +1 -1
  106. package/config.d.ts +1 -1
  107. package/config.js +1 -1
  108. package/core/Collection.d.ts +1 -1
  109. package/core/Error.d.ts +1 -1
  110. package/core/Evented.d.ts +1 -1
  111. package/core/accessorSupport/decorators.d.ts +1 -1
  112. package/core/colorUtils.js +1 -1
  113. package/editing/sharedTemplates/SharedTemplate.d.ts +1 -1
  114. package/editing/sharedTemplates/SharedTemplateMetadata.d.ts +1 -1
  115. package/geometry/Mesh.d.ts +1 -2
  116. package/geometry/coordinateFormatter.d.ts +1 -1
  117. package/geometry/projection/projectPointToVector.js +1 -1
  118. package/geometry/projectionUtils.js +1 -1
  119. package/geometry/support/MeshMaterial.d.ts +1 -1
  120. package/geometry/support/MeshMaterialMetallicRoughness.d.ts +1 -1
  121. package/geometry/support/MeshTexture.d.ts +1 -1
  122. package/geometry/support/meshUtils/{interfaces.d.ts → types.d.ts} +10 -1
  123. package/geometry/support/meshUtils.d.ts +1 -1
  124. package/geometry/support/normalizeUtils.d.ts +1 -1
  125. package/geometry/support/typeUtils.d.ts +3 -1
  126. package/geometry/support/typeUtils.js +1 -1
  127. package/{views/3d/glTF/internal/resourceUtils.d.ts → geometry/types.d.ts} +5 -1
  128. package/interfaces.d.ts +779 -812
  129. package/intl/date.d.ts +1 -1
  130. package/kernel.js +1 -1
  131. package/layers/CSVLayer.d.ts +3 -3
  132. package/layers/CatalogLayer.d.ts +1 -1
  133. package/layers/FeatureLayer.d.ts +7 -4
  134. package/layers/GaussianSplatLayer.d.ts +22 -0
  135. package/layers/GeoJSONLayer.d.ts +3 -3
  136. package/layers/ImageryTileLayer.d.ts +9 -9
  137. package/layers/MapImageLayer.d.ts +2 -2
  138. package/layers/OrientedImageryLayer.d.ts +2 -2
  139. package/layers/ParquetLayer.d.ts +1 -1
  140. package/layers/RouteLayer.d.ts +3 -3
  141. package/layers/SceneLayer.d.ts +3 -3
  142. package/layers/SubtypeGroupLayer.d.ts +1 -1
  143. package/layers/VectorTileLayer.d.ts +3 -3
  144. package/layers/VideoLayer.d.ts +2 -2
  145. package/layers/WCSLayer.d.ts +1 -1
  146. package/layers/WFSLayer.d.ts +3 -3
  147. package/layers/catalog/CatalogFootprintLayer.d.ts +3 -3
  148. package/layers/graphics/sources/OGCFeatureSource.js +1 -1
  149. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  150. package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
  151. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +2 -2
  152. package/layers/knowledgeGraph/layerUtils.js +1 -1
  153. package/layers/mixins/ArcGISImageService.d.ts +7 -7
  154. package/layers/mixins/BlendLayer.d.ts +2 -2
  155. package/layers/mixins/EditBusLayer.d.ts +6 -0
  156. package/layers/mixins/FeatureLayerBase.d.ts +2 -2
  157. package/layers/mixins/ImageryTileMixin.d.ts +4 -4
  158. package/layers/mixins/properties/ILayerWithGetFeatureTitle.d.ts +1 -1
  159. package/layers/ogc/wcsUtils.d.ts +1 -1
  160. package/layers/orientedImagery/transformations/imageToWorld.d.ts +2 -2
  161. package/layers/orientedImagery/transformations/{interfaces.d.ts → types.d.ts} +1 -1
  162. package/layers/orientedImagery/transformations/worldToImage.d.ts +2 -2
  163. package/layers/raster/datasets/wcsCapabilitiesParser.d.ts +1 -1
  164. package/layers/raster/datasets/wcsCoverageParser.d.ts +1 -1
  165. package/layers/raster/functions/creators/createAppearenceFunctions.d.ts +2 -2
  166. package/layers/raster/functions/creators/createBandIndexFunctions.d.ts +1 -1
  167. package/layers/raster/functions/creators/createChangeFunctions.d.ts +1 -1
  168. package/layers/raster/functions/creators/createConversionFunctions.d.ts +1 -1
  169. package/layers/raster/functions/creators/createDataManagementFunctions.d.ts +2 -2
  170. package/layers/raster/functions/creators/createLocalFunctions.d.ts +1 -1
  171. package/layers/raster/functions/creators/createMultiRasterAnalysisFunctions.d.ts +1 -1
  172. package/layers/raster/functions/creators/createStatisticsFunctions.d.ts +1 -1
  173. package/layers/raster/functions/creators/createSurfaceFunctions.d.ts +1 -1
  174. package/layers/support/ControlPoint.d.ts +3 -3
  175. package/layers/support/ControlPointsGeoreference.d.ts +6 -6
  176. package/layers/support/EditingCapabilities.d.ts +2 -2
  177. package/layers/support/FeatureEffect.d.ts +3 -3
  178. package/layers/support/LabelClass.d.ts +1 -1
  179. package/layers/support/RasterInfo.d.ts +1 -1
  180. package/layers/support/SpriteSource.d.ts +1 -1
  181. package/layers/support/StreamConnection.d.ts +1 -1
  182. package/layers/support/Sublayer.d.ts +1 -1
  183. package/layers/support/SubtypeSublayer.d.ts +15 -2
  184. package/layers/support/TimeInfo.d.ts +1 -1
  185. package/layers/support/capabilities.js +1 -1
  186. package/layers/support/layerUtils.js +1 -1
  187. package/layers/support/rasterFunctionUtils.d.ts +1 -1
  188. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  189. package/layers/support/{interfaces.d.ts → types.d.ts} +6 -6
  190. package/layers/{interfaces.d.ts → types.d.ts} +18 -1
  191. package/linkChart/ChronologicalLayoutSettings.d.ts +1 -1
  192. package/linkChart/OrganicLayoutSettings.d.ts +1 -1
  193. package/networks/Network.d.ts +4 -4
  194. package/networks/UtilityNetwork.d.ts +8 -8
  195. package/networks/support/TopologyValidationJobInfo.d.ts +1 -1
  196. package/networks/support/TraceJobInfo.d.ts +1 -1
  197. package/package.json +1 -1
  198. package/popup/content/CustomContent.d.ts +1 -1
  199. package/portal/PortalItem.d.ts +1 -1
  200. package/portal/PortalItemResource.d.ts +1 -1
  201. package/portal/PortalUser.d.ts +2 -2
  202. package/renderers/FlowRenderer.d.ts +1 -1
  203. package/renderers/RasterStretchRenderer.d.ts +2 -2
  204. package/renderers/Renderer.d.ts +1 -1
  205. package/renderers/VectorFieldRenderer.d.ts +1 -1
  206. package/renderers/mixins/VisualVariablesMixin.d.ts +3 -3
  207. package/renderers/support/AuthoringInfo.d.ts +1 -1
  208. package/renderers/support/rasterRendererHelper.d.ts +1 -1
  209. package/renderers/support/renderingInfoUtils.js +1 -1
  210. package/renderers/{interfaces.d.ts → types.d.ts} +3 -1
  211. package/renderers/visualVariables/SizeVariable.d.ts +1 -1
  212. package/renderers/visualVariables/VisualVariable.d.ts +1 -1
  213. package/request/{interfaces.d.ts → types.d.ts} +10 -10
  214. package/request.d.ts +4 -4
  215. package/rest/closestFacility.d.ts +1 -1
  216. package/rest/featureService/FeatureService.d.ts +1 -1
  217. package/rest/featureService/FeatureService.js +1 -1
  218. package/rest/featureService/{interfaces.d.ts → types.d.ts} +16 -3
  219. package/rest/featureService/utils.d.ts +1 -1
  220. package/rest/find.d.ts +1 -1
  221. package/rest/geometryService.d.ts +1 -1
  222. package/rest/geoprocessor.d.ts +1 -1
  223. package/rest/identify.d.ts +1 -1
  224. package/rest/imageService.d.ts +5 -5
  225. package/rest/knowledgeGraphService.d.ts +19 -19
  226. package/rest/lastMileDelivery.d.ts +1 -1
  227. package/rest/locator.d.ts +1 -1
  228. package/rest/networkService.d.ts +1 -1
  229. package/rest/networks/queryAssociations.d.ts +1 -1
  230. package/rest/networks/synthesizeAssociationGeometries.d.ts +1 -1
  231. package/rest/networks/trace.d.ts +1 -1
  232. package/rest/places.d.ts +1 -1
  233. package/rest/print.d.ts +2 -2
  234. package/rest/query.d.ts +2 -2
  235. package/rest/route.d.ts +1 -1
  236. package/rest/serviceArea.d.ts +1 -1
  237. package/rest/support/AddressToLocationsParameters.d.ts +1 -1
  238. package/rest/support/AddressesToLocationsParameters.d.ts +1 -1
  239. package/rest/support/AttributeBinsQuery.d.ts +3 -3
  240. package/rest/support/JobInfo.d.ts +2 -2
  241. package/rest/support/LastMileDeliveryParameters.d.ts +1 -1
  242. package/rest/support/LocationToAddressParameters.d.ts +1 -1
  243. package/rest/support/ParameterValue.d.ts +1 -1
  244. package/rest/support/ProjectParameters.d.ts +1 -1
  245. package/rest/symbolService.d.ts +3 -3
  246. package/smartMapping/heuristics/binLevel.d.ts +1 -1
  247. package/smartMapping/heuristics/scaleRange.d.ts +1 -1
  248. package/smartMapping/heuristics/sizeRange.d.ts +1 -1
  249. package/smartMapping/heuristics/{interfaces.d.ts → types.d.ts} +1 -1
  250. package/smartMapping/labels/clusters.d.ts +1 -1
  251. package/smartMapping/popup/clusters.d.ts +1 -1
  252. package/smartMapping/popup/templates.d.ts +1 -1
  253. package/smartMapping/raster/renderers/classBreaks.d.ts +2 -2
  254. package/smartMapping/raster/renderers/colormap.d.ts +1 -1
  255. package/smartMapping/raster/renderers/flow.d.ts +4 -4
  256. package/smartMapping/raster/renderers/rgb.d.ts +2 -2
  257. package/smartMapping/raster/renderers/shadedRelief.d.ts +1 -1
  258. package/smartMapping/raster/renderers/stretch.d.ts +2 -2
  259. package/smartMapping/raster/renderers/{interfaces.d.ts → types.d.ts} +1 -1
  260. package/smartMapping/raster/renderers/uniqueValue.d.ts +1 -1
  261. package/smartMapping/raster/renderers/vectorField.d.ts +1 -1
  262. package/smartMapping/raster/support/utils.d.ts +1 -1
  263. package/smartMapping/renderers/color.d.ts +4 -4
  264. package/smartMapping/renderers/dotDensity.d.ts +3 -3
  265. package/smartMapping/renderers/heatmap.d.ts +3 -3
  266. package/smartMapping/renderers/location.d.ts +2 -2
  267. package/smartMapping/renderers/opacity.d.ts +3 -3
  268. package/smartMapping/renderers/pieChart.d.ts +3 -3
  269. package/smartMapping/renderers/predominance.d.ts +2 -2
  270. package/smartMapping/renderers/relationship.d.ts +4 -4
  271. package/smartMapping/renderers/size.d.ts +4 -4
  272. package/smartMapping/renderers/support/rendererUtils.d.ts +1 -1
  273. package/smartMapping/renderers/type.d.ts +3 -3
  274. package/smartMapping/renderers/univariateColorSize.d.ts +4 -4
  275. package/smartMapping/statistics/classBreaks.d.ts +2 -2
  276. package/smartMapping/statistics/heatmapStatistics.d.ts +2 -2
  277. package/smartMapping/statistics/histogram.d.ts +1 -2
  278. package/smartMapping/statistics/predominantCategories.d.ts +2 -2
  279. package/smartMapping/statistics/summaryStatistics.d.ts +2 -2
  280. package/smartMapping/statistics/summaryStatisticsForAge.d.ts +1 -1
  281. package/smartMapping/statistics/support/ageUtils.d.ts +1 -1
  282. package/smartMapping/statistics/types.d.ts +571 -0
  283. package/smartMapping/statistics/uniqueValues.d.ts +2 -2
  284. package/smartMapping/symbology/color.d.ts +1 -1
  285. package/smartMapping/symbology/dotDensity.d.ts +1 -1
  286. package/smartMapping/symbology/flow.d.ts +1 -1
  287. package/smartMapping/symbology/heatmap.d.ts +1 -1
  288. package/smartMapping/symbology/location.d.ts +1 -1
  289. package/smartMapping/symbology/pieChart.d.ts +1 -1
  290. package/smartMapping/symbology/predominance.d.ts +1 -1
  291. package/smartMapping/symbology/relationship.d.ts +1 -1
  292. package/smartMapping/symbology/size.d.ts +1 -1
  293. package/smartMapping/symbology/support/colorRamps.d.ts +1 -1
  294. package/smartMapping/symbology/type.d.ts +1 -1
  295. package/smartMapping/types.d.ts +18 -0
  296. package/support/groundUtils.js +1 -1
  297. package/support/revision.js +1 -1
  298. package/support/tests/setupServiceMocksMesh.js +1 -1
  299. package/support/timeUtils.d.ts +1 -1
  300. package/symbols/LineStyleMarker3D.d.ts +1 -1
  301. package/symbols/LineSymbol3DLayer.d.ts +1 -1
  302. package/symbols/LineSymbolMarker.d.ts +1 -1
  303. package/symbols/PathSymbol3DLayer.d.ts +1 -1
  304. package/symbols/SimpleLineSymbol.d.ts +1 -1
  305. package/symbols/patterns/LineStylePattern3D.d.ts +1 -1
  306. package/symbols/patterns/StylePattern3D.d.ts +1 -1
  307. package/symbols/support/ElevationInfo.d.ts +1 -1
  308. package/symbols/support/Symbol3DOutline.d.ts +1 -1
  309. package/symbols/support/symbolUtils.d.ts +2 -2
  310. package/time/TimeExtent.d.ts +1 -1
  311. package/unionTypes.d.ts +3 -3
  312. package/versionManagement/VersionManagementService.d.ts +1 -1
  313. package/versionManagement/VersionManager.d.ts +3 -3
  314. package/versionManagement/VersioningState.d.ts +1 -1
  315. package/versionManagement/utils.d.ts +1 -1
  316. package/versionManagement/versionAdapters/utils.d.ts +7 -7
  317. package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +1 -1
  318. package/views/2d/analysis/ElevationProfile/ElevationProfileVisualization2D.js +1 -1
  319. package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +1 -2
  320. package/views/2d/engine/vectorTiles/style/StyleProperty.js +1 -1
  321. package/views/2d/layers/BaseLayerView2D.d.ts +2 -2
  322. package/views/2d/layers/BaseLayerViewGL2D.d.ts +9 -9
  323. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  324. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  325. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  326. package/views/2d/layers/types.d.ts +6 -0
  327. package/views/2d/{layers/support/interfaces.d.ts → types.d.ts} +71 -2
  328. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  329. package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
  330. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  331. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  332. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
  333. package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization3D.js +1 -1
  334. package/views/3d/analysis/ElevationProfile/ElevationProfileVisualization3D.js +1 -1
  335. package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +1 -2
  336. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  337. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  338. package/views/3d/analysis/LineOfSight/LineOfSightVisualization.js +1 -1
  339. package/views/3d/analysis/ShadowCastAnalysisView3D.d.ts +2 -2
  340. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  341. package/views/3d/analysis/Slice/ResizeManipulator.js +1 -1
  342. package/views/3d/analysis/Slice/RotateManipulator.js +1 -1
  343. package/views/3d/analysis/Slice/ShiftManipulator.js +1 -1
  344. package/views/3d/analysis/Viewshed/ViewshedArrowManipulator.js +1 -1
  345. package/views/3d/analysis/Viewshed/ViewshedConfiguration.js +1 -1
  346. package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
  347. package/views/3d/analysis/Viewshed/ViewshedSubVisualization.js +1 -1
  348. package/views/3d/analysis/Viewshed/viewshedToolManipulatorUtils.js +1 -1
  349. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  350. package/views/3d/environment/ChapmanApproximation.glsl.js +9 -10
  351. package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
  352. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  353. package/views/3d/environment/ChapmanAtmosphereTechnique.js +1 -1
  354. package/views/3d/environment/ChapmanRaymarching.glsl.js +7 -9
  355. package/views/3d/environment/CloudsParameters.js +1 -1
  356. package/views/3d/environment/EnvironmentManager.js +1 -1
  357. package/views/3d/environment/PrecipitationTechnique.js +1 -1
  358. package/views/3d/environment/SceneViewEnvironment.d.ts +1 -1
  359. package/views/3d/environment/SimpleAtmosphereTechnique.js +1 -1
  360. package/views/3d/environment/types.d.ts +13 -0
  361. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  362. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  363. package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
  364. package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
  365. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  366. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  367. package/views/3d/interactive/editingTools/settings.js +1 -1
  368. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  369. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  370. package/views/3d/layers/I3SMeshView3D.js +1 -1
  371. package/views/3d/layers/ImageryLayerView3D.js +1 -1
  372. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  373. package/views/3d/layers/SceneLayerWorker.js +1 -1
  374. package/views/3d/layers/{I3SMeshWorkerHandle.js → SceneLayerWorkerHandle.js} +1 -1
  375. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  376. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  377. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  378. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  379. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  380. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  381. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  382. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  383. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  384. package/views/3d/layers/graphics/pipeline/symbolization/IconSymbolLayerRenderer.js +1 -1
  385. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  386. package/views/3d/layers/support/edgeUtils.js +1 -1
  387. package/views/3d/support/flow/geometryUtils.js +1 -1
  388. package/views/3d/support/viewpointUtils.js +1 -1
  389. package/views/3d/terrain/BlendLayersTechnique.js +1 -1
  390. package/views/3d/terrain/RasterColorizerTechnique.js +1 -1
  391. package/views/3d/terrain/TerrainRenderer.js +1 -1
  392. package/views/3d/webgl/ManagedFBO.d.ts +4 -5
  393. package/views/3d/webgl/RenderNode.d.ts +1 -1
  394. package/views/3d/{webgl-engine/lighting/SceneLighting.d.ts → webgl/types.d.ts} +4 -6
  395. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  396. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  397. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  398. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  399. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +2 -2
  400. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +1 -1
  401. package/views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js +1 -2
  402. package/views/3d/webgl-engine/core/shaderLibrary/raster/RasterColorizer.glsl.js +1 -1
  403. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +1 -1
  404. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +18 -27
  405. package/views/3d/webgl-engine/core/shaderModules/Float4sPassUniform.js +1 -1
  406. package/views/3d/webgl-engine/core/shaderModules/FloatsPassUniform.js +1 -1
  407. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechnique.js +1 -1
  408. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  409. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  410. package/views/3d/webgl-engine/effects/focusArea/FocusAreaOutlineItem.js +1 -1
  411. package/views/3d/webgl-engine/effects/haze/Haze.glsl.js +1 -1
  412. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  413. package/views/3d/webgl-engine/effects/haze/HazeTechnique.js +1 -1
  414. package/views/3d/webgl-engine/effects/highlight/HighlightApplyTechnique.js +1 -1
  415. package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
  416. package/views/3d/webgl-engine/effects/highlight/HighlightToSingleTechnique.js +1 -1
  417. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  418. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathData.js +1 -1
  419. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathTechnique.js +1 -1
  420. package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
  421. package/views/3d/webgl-engine/lib/CutFillColor.js +1 -1
  422. package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
  423. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  424. package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
  425. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  426. package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
  427. package/views/3d/webgl-engine/materials/DefaultLayouts.js +1 -1
  428. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  429. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  430. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  431. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  432. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  433. package/views/3d/webgl-engine/shaders/CutFillMaskTechnique.js +1 -1
  434. package/views/3d/webgl-engine/shaders/CutFillTargetDepthTechnique.js +1 -1
  435. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  436. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  437. package/views/3d/webgl-engine/shaders/HeatmapDensityTechnique.js +1 -1
  438. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  439. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  440. package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
  441. package/views/3d/webgl-engine/shaders/MeasurementArrowTechnique.js +1 -1
  442. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
  443. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  444. package/views/3d/webgl-engine/shaders/PointRendererTechnique.js +1 -1
  445. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  446. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  447. package/views/3d/webgl-engine/shaders/SlicePlaneMaterialTechnique.js +1 -1
  448. package/views/3d/webgl-engine/shaders/SphereDepthInterpolate.glsl.js +5 -5
  449. package/views/3d/webgl-engine/shaders/TerrainTechnique.js +1 -1
  450. package/views/LinkChartView.d.ts +5 -5
  451. package/views/Magnifier.d.ts +1 -1
  452. package/views/MapView.d.ts +11 -12
  453. package/views/PopupView.d.ts +1 -1
  454. package/views/SceneView.d.ts +19 -23
  455. package/views/VideoView.d.ts +1 -2
  456. package/views/View.d.ts +2 -3
  457. package/views/View2D.d.ts +8 -9
  458. package/views/analysis/ElevationProfile/ElevationProfileHoveredPointVisualization.js +1 -1
  459. package/views/analysis/ElevationProfile/ElevationProfileResult.d.ts +1 -1
  460. package/views/analysis/ElevationProfile/types.d.ts +68 -0
  461. package/views/analysis/types.d.ts +2 -2
  462. package/views/draw/Draw.d.ts +1 -1
  463. package/views/draw/DrawAction.d.ts +1 -1
  464. package/views/draw/DrawOperation.js +1 -1
  465. package/views/draw/PolygonDrawAction.d.ts +1 -1
  466. package/views/draw/PolygonDrawAction.js +1 -1
  467. package/views/draw/PolylineDrawAction.d.ts +1 -1
  468. package/views/draw/PolylineDrawAction.js +1 -1
  469. package/views/draw/support/GraphicMover.js +1 -1
  470. package/views/draw/{interfaces.d.ts → types.d.ts} +3 -1
  471. package/views/input/IViewEvents.d.ts +1 -1
  472. package/views/interactive/Tooltip.d.ts +1 -1
  473. package/views/interactive/sketch/SketchValueOptions.d.ts +1 -1
  474. package/views/interactive/sketch/Units.d.ts +5 -1
  475. package/views/interactive/tooltip/types.d.ts +4 -0
  476. package/views/layers/BuildingComponentSublayerView.d.ts +1 -1
  477. package/views/layers/BuildingSceneLayerView.d.ts +1 -1
  478. package/views/layers/ImageryLayerViewMixin.d.ts +3 -4
  479. package/views/layers/PointCloudLayerView.d.ts +1 -1
  480. package/views/layers/support/highlightUtils.js +1 -1
  481. package/views/navigation/NavigationActionMap.d.ts +1 -1
  482. package/views/support/colorUtils.d.ts +1 -1
  483. package/views/{interfaces.d.ts → types.d.ts} +160 -6
  484. package/views/ui/DefaultUI.d.ts +1 -1
  485. package/views/ui/UI.d.ts +1 -1
  486. package/views/ui/{interfaces.d.ts → types.d.ts} +12 -1
  487. package/webdoc/widgets/FloorFilter.d.ts +2 -2
  488. package/webdoc/widgets/TimeSlider.d.ts +5 -5
  489. package/webmap/InitialViewProperties.d.ts +2 -2
  490. package/webscene/Environment.d.ts +5 -5
  491. package/webscene/InitialViewProperties.d.ts +0 -1
  492. package/webscene/Slide.d.ts +36 -4
  493. package/webscene/Slide.js +1 -1
  494. package/webscene/support/FeatureReference.d.ts +1 -1
  495. package/webscene/support/SlidePopupInfo.d.ts +2 -2
  496. package/webscene/types.d.ts +5 -1
  497. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +1 -1
  498. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.d.ts +7 -1
  499. package/widgets/AreaMeasurement3D.d.ts +1 -0
  500. package/widgets/Attachments/AttachmentsViewModel.d.ts +1 -1
  501. package/widgets/Attachments.d.ts +1 -1
  502. package/widgets/Attribution/AttributionViewModel.d.ts +2 -2
  503. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +1 -1
  504. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +1 -1
  505. package/widgets/BasemapGallery.d.ts +1 -1
  506. package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +3 -3
  507. package/widgets/BasemapLayerList.d.ts +2 -2
  508. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +4 -4
  509. package/widgets/BatchAttributeForm/inputs/BatchFormInputs.d.ts +1 -1
  510. package/widgets/BatchAttributeForm/inputs/EditableInput.d.ts +1 -1
  511. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +1 -1
  512. package/widgets/BatchAttributeForm/inputs/GroupInput.d.ts +1 -1
  513. package/widgets/BatchAttributeForm/inputs/InputBase.d.ts +1 -1
  514. package/widgets/BatchAttributeForm/inputs/SingleFeatureInput.d.ts +1 -1
  515. package/widgets/BatchAttributeForm.d.ts +2 -2
  516. package/widgets/Bookmarks/BookmarksViewModel.d.ts +5 -5
  517. package/widgets/Bookmarks/{interfaces.d.ts → types.d.ts} +1 -1
  518. package/widgets/Bookmarks.d.ts +6 -7
  519. package/widgets/BuildingExplorer/BuildingExplorerViewModel.d.ts +1 -0
  520. package/widgets/BuildingExplorer/BuildingLevel.d.ts +1 -0
  521. package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.d.ts +1 -0
  522. package/widgets/BuildingExplorer/BuildingPhase.d.ts +1 -0
  523. package/widgets/BuildingExplorer.d.ts +4 -1
  524. package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +3 -3
  525. package/widgets/CatalogLayerList.d.ts +2 -2
  526. package/widgets/Compass/CompassViewModel.d.ts +1 -1
  527. package/widgets/Compass.d.ts +1 -1
  528. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +4 -4
  529. package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -1
  530. package/widgets/CoordinateConversion/support/Format.d.ts +2 -2
  531. package/widgets/CoordinateConversion.d.ts +2 -3
  532. package/widgets/Daylight/DaylightViewModel.d.ts +3 -1
  533. package/widgets/Daylight/VisibleElements.d.ts +3 -0
  534. package/widgets/Daylight/types.d.ts +6 -0
  535. package/widgets/Daylight.d.ts +5 -3
  536. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.d.ts +7 -1
  537. package/widgets/DirectLineMeasurement3D.d.ts +1 -0
  538. package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +1 -2
  539. package/widgets/DirectionalPad/{utils.d.ts → types.d.ts} +3 -1
  540. package/widgets/Directions/DirectionsViewModel.d.ts +3 -3
  541. package/widgets/Directions.d.ts +4 -5
  542. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +1 -1
  543. package/widgets/Editor/CreateFeaturesWorkflow.d.ts +1 -1
  544. package/widgets/Editor/CreateFeaturesWorkflowData.d.ts +2 -2
  545. package/widgets/Editor/EditorViewModel.d.ts +5 -6
  546. package/widgets/Editor/MergeFeaturesWorkflow.d.ts +1 -1
  547. package/widgets/Editor/SplitFeatureWorkflow.d.ts +1 -2
  548. package/widgets/Editor/SplitFeatureWorkflowData.d.ts +2 -2
  549. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  550. package/widgets/Editor/UpdateFeaturesWorkflow.d.ts +1 -1
  551. package/widgets/Editor/UpdateFeaturesWorkflowData.d.ts +1 -1
  552. package/widgets/Editor/UpdateWorkflow.d.ts +1 -1
  553. package/widgets/Editor/Workflow.d.ts +1 -1
  554. package/widgets/Editor/support/EditorEditingCapabilities.d.ts +9 -9
  555. package/widgets/Editor/support/EditorItem.d.ts +4 -4
  556. package/widgets/Editor/support/SketchController.js +1 -1
  557. package/widgets/Editor/{interfaces.d.ts → types.d.ts} +9 -2
  558. package/widgets/Editor/workflowUtils.js +1 -1
  559. package/widgets/Editor.d.ts +10 -11
  560. package/widgets/ElevationProfile/ElevationProfileLine.d.ts +2 -1
  561. package/widgets/ElevationProfile/ElevationProfileLineGround.d.ts +1 -0
  562. package/widgets/ElevationProfile/ElevationProfileLineInput.d.ts +1 -0
  563. package/widgets/ElevationProfile/ElevationProfileLineQuery.d.ts +2 -1
  564. package/widgets/ElevationProfile/ElevationProfileLineView.d.ts +2 -0
  565. package/widgets/ElevationProfile/ElevationProfileViewModel.d.ts +3 -5
  566. package/widgets/ElevationProfile/ElevationProfileVisibleElements.d.ts +3 -0
  567. package/widgets/ElevationProfile/support/ProfileLines3D.js +1 -1
  568. package/widgets/ElevationProfile/types.d.ts +149 -0
  569. package/widgets/ElevationProfile.d.ts +6 -5
  570. package/widgets/Expand/ExpandViewModel.d.ts +1 -1
  571. package/widgets/Expand.d.ts +2 -2
  572. package/widgets/Feature/FeatureViewModel.d.ts +5 -5
  573. package/widgets/Feature/{interfaces.d.ts → types.d.ts} +5 -1
  574. package/widgets/Feature.d.ts +3 -3
  575. package/widgets/FeatureForm/EditableInput.d.ts +1 -1
  576. package/widgets/FeatureForm/FeatureFormViewModel.d.ts +3 -3
  577. package/widgets/FeatureForm/FieldInput.d.ts +1 -1
  578. package/widgets/FeatureForm/GroupInput.d.ts +1 -1
  579. package/widgets/FeatureForm.d.ts +3 -3
  580. package/widgets/FeatureTable/AttachmentsColumn.d.ts +1 -1
  581. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +3 -4
  582. package/widgets/FeatureTable/Grid/Column.d.ts +2 -3
  583. package/widgets/FeatureTable/Grid/{support/interfaces.d.ts → types.d.ts} +57 -0
  584. package/widgets/FeatureTable/RelationshipColumn.d.ts +1 -1
  585. package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +2 -3
  586. package/widgets/FeatureTable/support/interfaces.d.ts +2 -3
  587. package/widgets/FeatureTable.d.ts +3 -4
  588. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.d.ts +4 -4
  589. package/widgets/FeatureTemplates/TemplateItem.d.ts +1 -1
  590. package/widgets/FeatureTemplates/{interfaces.d.ts → types.d.ts} +1 -1
  591. package/widgets/FeatureTemplates.d.ts +4 -4
  592. package/widgets/Features/FeaturesViewModel.d.ts +12 -12
  593. package/widgets/Features.d.ts +11 -12
  594. package/widgets/FloorFilter.d.ts +1 -1
  595. package/widgets/Histogram/HistogramViewModel.d.ts +3 -3
  596. package/widgets/Histogram.d.ts +3 -3
  597. package/widgets/HistogramRangeSlider/HistogramRangeSliderViewModel.d.ts +3 -3
  598. package/widgets/HistogramRangeSlider.d.ts +11 -11
  599. package/widgets/Home.d.ts +1 -1
  600. package/widgets/LayerList/LayerListViewModel.d.ts +1 -1
  601. package/widgets/LayerList/ListItem.d.ts +1 -1
  602. package/widgets/LayerList/ListItemPanel.d.ts +1 -1
  603. package/widgets/LayerList/{interfaces.d.ts → types.d.ts} +2 -2
  604. package/widgets/LayerList.d.ts +2 -2
  605. package/widgets/Legend/LegendViewModel.d.ts +1 -1
  606. package/widgets/Legend/support/ActiveLayerInfo.d.ts +1 -1
  607. package/widgets/Legend.d.ts +2 -2
  608. package/widgets/LineOfSight/LineOfSightTarget.d.ts +1 -0
  609. package/widgets/LineOfSight/LineOfSightViewModel.d.ts +1 -0
  610. package/widgets/LineOfSight.d.ts +1 -0
  611. package/widgets/Locate/LocateViewModel.d.ts +1 -1
  612. package/widgets/Locate.d.ts +2 -2
  613. package/widgets/Measurement/MeasurementViewModel.d.ts +2 -2
  614. package/widgets/Measurement.d.ts +1 -1
  615. package/widgets/Popup/{interfaces.d.ts → types.d.ts} +2 -0
  616. package/widgets/Popup.d.ts +8 -9
  617. package/widgets/Print/CustomTemplate.d.ts +1 -1
  618. package/widgets/Print/PrintViewModel.d.ts +2 -2
  619. package/widgets/Print.d.ts +2 -2
  620. package/widgets/ScaleRangeSlider.d.ts +2 -2
  621. package/widgets/Search/LocatorSearchSource.d.ts +2 -2
  622. package/widgets/Search/SearchSource.d.ts +3 -3
  623. package/widgets/Search/types.d.ts +64 -0
  624. package/widgets/Search.d.ts +2 -2
  625. package/widgets/ShadowCast/DurationOptions.d.ts +1 -1
  626. package/widgets/ShadowCast/ShadowCastViewModel.d.ts +2 -2
  627. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  628. package/widgets/ShadowCast/{ShadowVisualizationType.d.ts → types.d.ts} +4 -1
  629. package/widgets/ShadowCast.d.ts +1 -1
  630. package/widgets/Sketch/SketchViewModel.d.ts +5 -5
  631. package/widgets/Sketch/{support/interfaces.d.ts → types.d.ts} +17 -17
  632. package/widgets/Sketch.d.ts +1 -1
  633. package/widgets/Slice/SliceViewModel.d.ts +1 -0
  634. package/widgets/Slice.d.ts +2 -1
  635. package/widgets/Slider/SliderViewModel.d.ts +3 -3
  636. package/widgets/Slider/{interfaces.d.ts → types.d.ts} +2 -2
  637. package/widgets/Slider.d.ts +4 -4
  638. package/widgets/Swipe/SwipeViewModel.d.ts +1 -1
  639. package/widgets/Swipe.d.ts +1 -1
  640. package/widgets/TableList/ListItem.d.ts +1 -1
  641. package/widgets/TableList/TableListViewModel.d.ts +2 -2
  642. package/widgets/TableList.d.ts +2 -2
  643. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +5 -5
  644. package/widgets/TimeSlider.d.ts +14 -15
  645. package/widgets/TimeZoneLabel.d.ts +1 -2
  646. package/widgets/Track/TrackViewModel.d.ts +1 -1
  647. package/widgets/Track.d.ts +1 -1
  648. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  649. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.d.ts +3 -3
  650. package/widgets/UtilityNetworkTrace/{support/ResultAreaHandler.d.ts → types.d.ts} +2 -2
  651. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +1 -1
  652. package/widgets/ValuePicker/ValuePickerSlider.d.ts +1 -1
  653. package/widgets/ValuePicker.d.ts +2 -2
  654. package/widgets/VersionManagement/VersionManagementViewModel.d.ts +3 -3
  655. package/widgets/Weather/VisibleElements.d.ts +3 -0
  656. package/widgets/Weather/WeatherViewModel.d.ts +4 -3
  657. package/widgets/Weather/types.d.ts +9 -0
  658. package/widgets/Weather.d.ts +2 -1
  659. package/widgets/Widget.d.ts +2 -1
  660. package/widgets/smartMapping/BinaryColorSizeSlider.d.ts +0 -3
  661. package/widgets/smartMapping/ClassedColorSlider/ClassedColorSliderViewModel.d.ts +1 -3
  662. package/widgets/smartMapping/ClassedColorSlider.d.ts +2 -2
  663. package/widgets/smartMapping/ClassedSizeSlider/ClassedSizeSliderViewModel.d.ts +1 -2
  664. package/widgets/smartMapping/ClassedSizeSlider.d.ts +2 -2
  665. package/widgets/smartMapping/ColorSizeSlider/ColorSizeSliderViewModel.d.ts +5 -5
  666. package/widgets/smartMapping/ColorSizeSlider.d.ts +3 -2
  667. package/widgets/smartMapping/ColorSlider/ColorSliderViewModel.d.ts +1 -1
  668. package/widgets/smartMapping/ColorSlider.d.ts +1 -1
  669. package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.d.ts +2 -4
  670. package/widgets/smartMapping/HeatmapSlider.d.ts +2 -4
  671. package/widgets/smartMapping/OpacitySlider/OpacitySliderViewModel.d.ts +1 -1
  672. package/widgets/smartMapping/OpacitySlider.d.ts +1 -1
  673. package/widgets/smartMapping/SizeSlider.d.ts +2 -2
  674. package/widgets/smartMapping/SmartMappingPrimaryHandleSliderViewModel.d.ts +2 -2
  675. package/widgets/smartMapping/SmartMappingSliderBase.d.ts +11 -14
  676. package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +5 -6
  677. package/widgets/smartMapping/{support/interfaces.d.ts → types.d.ts} +52 -5
  678. package/widgets/support/GeolocationPositioning.d.ts +1 -1
  679. package/widgets/support/GoTo.d.ts +1 -1
  680. package/widgets/support/GridControls/GridControlsViewModel.d.ts +1 -1
  681. package/widgets/support/forms/types.d.ts +4 -0
  682. package/widgets/support/{goToUtils.d.ts → types.d.ts} +9 -2
  683. package/widgets/{interfaces.d.ts → types.d.ts} +71 -15
  684. package/arcade/featureset/support/shared.d.ts +0 -16
  685. package/assets/esri/core/workers/chunks/0359ac6d938e0df936d0.js +0 -1
  686. package/assets/esri/core/workers/chunks/1db058f91a8e17b24db6.js +0 -1
  687. package/assets/esri/core/workers/chunks/1e286fb7bb833f00dd88.js +0 -1
  688. package/assets/esri/core/workers/chunks/262232437d37a7460b11.js +0 -1
  689. package/assets/esri/core/workers/chunks/2d6fa00273a73d44297d.js +0 -1
  690. package/assets/esri/core/workers/chunks/2fae37f34b28a46841e3.js +0 -1
  691. package/assets/esri/core/workers/chunks/3b1471f908fdecec2815.js +0 -1
  692. package/assets/esri/core/workers/chunks/48b3906ac3ec57253d90.js +0 -1
  693. package/assets/esri/core/workers/chunks/49b581782f63abb6dd9f.js +0 -1
  694. package/assets/esri/core/workers/chunks/4abe2c56aecc9e9b8e86.js +0 -1
  695. package/assets/esri/core/workers/chunks/51b78eca012eac92dd07.js +0 -1
  696. package/assets/esri/core/workers/chunks/5ce524e0060053f35592.js +0 -316
  697. package/assets/esri/core/workers/chunks/5d244fcf5c075afccdc6.js +0 -1
  698. package/assets/esri/core/workers/chunks/6b8c15f3970289e73a47.js +0 -1
  699. package/assets/esri/core/workers/chunks/6cfcfebe9a4c491e453a.js +0 -1
  700. package/assets/esri/core/workers/chunks/710b29729f252f11115d.js +0 -1
  701. package/assets/esri/core/workers/chunks/72a520802b8accfd4512.js +0 -1
  702. package/assets/esri/core/workers/chunks/73892ac79b24b05e6863.js +0 -33
  703. package/assets/esri/core/workers/chunks/75d8244b725a2aee2003.js +0 -1
  704. package/assets/esri/core/workers/chunks/93b139be6488a1b4ba19.js +0 -1
  705. package/assets/esri/core/workers/chunks/a5e7c9517939f762c518.js +0 -1
  706. package/assets/esri/core/workers/chunks/a63ff3e9a9f3853d12f3.js +0 -1
  707. package/assets/esri/core/workers/chunks/a81a7cba815adb575c36.js +0 -1
  708. package/assets/esri/core/workers/chunks/a8fd635d1165db8616ab.js +0 -1
  709. package/assets/esri/core/workers/chunks/b638ce18b93d3cfb9967.js +0 -1
  710. package/assets/esri/core/workers/chunks/ba7e97b1e324118b8156.js +0 -1
  711. package/assets/esri/core/workers/chunks/c0d6336c10b4081c4e32.js +0 -1
  712. package/assets/esri/core/workers/chunks/cc4ae105e727d9211d82.js +0 -1
  713. package/assets/esri/core/workers/chunks/d7a62504e00989202c45.js +0 -1
  714. package/assets/esri/core/workers/chunks/e25be3b6b67ce6b03011.js +0 -1
  715. package/assets/esri/core/workers/chunks/e5ac9b048b16fef9840c.js +0 -1
  716. package/assets/esri/core/workers/chunks/ec7e6427d99cf3148a61.js +0 -1
  717. package/assets/esri/core/workers/chunks/efa95c50d1ed8e74219f.js +0 -1
  718. package/assets/esri/core/workers/chunks/f379fd459a103f42d447.js +0 -1
  719. package/assets/esri/core/workers/chunks/ffcdc7ae03b0570e0db8.js +0 -1
  720. package/geometry/interfaces.d.ts +0 -2
  721. package/geometry/support/interfaces.d.ts +0 -3
  722. package/geometry/support/meshUtils/exporters/gltf/interfaces.d.ts +0 -11
  723. package/renderers/support/interfaces.d.ts +0 -2
  724. package/smartMapping/statistics/interfaces.d.ts +0 -571
  725. package/smartMapping/support/adapters/interfaces.d.ts +0 -18
  726. package/views/2d/ViewStateManager.d.ts +0 -2
  727. package/views/2d/interfaces.d.ts +0 -67
  728. package/views/2d/layers/support/clusterUtils.d.ts +0 -6
  729. package/views/3d/environment/lightingUtils.d.ts +0 -4
  730. package/views/3d/environment/weather.d.ts +0 -9
  731. package/views/3d/interactive/visualElements/DrapedVisualElementResources.d.ts +0 -2
  732. package/views/3d/support/QualityProfile.d.ts +0 -2
  733. package/views/SceneViewHitTestResult.d.ts +0 -64
  734. package/views/ViewingMode.d.ts +0 -2
  735. package/views/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +0 -5
  736. package/views/analysis/ElevationProfile/interfaces.d.ts +0 -73
  737. package/views/draw/DrawingMode.d.ts +0 -2
  738. package/views/draw/support/drawUtils.d.ts +0 -7
  739. package/views/interactive/sketch/interfaces.d.ts +0 -2
  740. package/views/interactive/tooltip/interfaces.d.ts +0 -2
  741. package/views/support/interfaces.d.ts +0 -87
  742. package/views/ui/Padding.d.ts +0 -11
  743. package/views/viewType.d.ts +0 -2
  744. package/views/webgl/enums.d.ts +0 -38
  745. package/webscene/support/featureReferenceUtils.d.ts +0 -4
  746. package/widgets/Daylight/support/daylightUtils.d.ts +0 -4
  747. package/widgets/DirectionalPad/constants.d.ts +0 -2
  748. package/widgets/Editor/support/splitFeatureUtils.d.ts +0 -7
  749. package/widgets/ElevationProfile/ElevationProfileInteraction.d.ts +0 -13
  750. package/widgets/ElevationProfile/elevationProfileLineTypes.d.ts +0 -6
  751. package/widgets/ElevationProfile/interfaces.d.ts +0 -103
  752. package/widgets/ElevationProfile/support/constants.d.ts +0 -14
  753. package/widgets/Feature/support/arcadeFeatureUtils.d.ts +0 -4
  754. package/widgets/FeatureTable/Grid/interfaces.d.ts +0 -57
  755. package/widgets/Popup/actions.d.ts +0 -4
  756. package/widgets/Search/support/interfaces.d.ts +0 -67
  757. package/widgets/ShadowCast/DurationMode.d.ts +0 -3
  758. package/widgets/Weather/enums.d.ts +0 -9
  759. package/widgets/smartMapping/ClassedColorSlider/interfaces.d.ts +0 -19
  760. package/widgets/smartMapping/ClassedSizeSlider/interfaces.d.ts +0 -18
  761. package/widgets/smartMapping/interfaces.d.ts +0 -13
  762. package/widgets/support/Heading.d.ts +0 -7
  763. package/widgets/support/forms/formUtils.d.ts +0 -2
  764. package/widgets/support/forms/interfaces.d.ts +0 -2
  765. package/widgets/support/interfaces.d.ts +0 -56
  766. /package/analysis/{interfaces.d.ts → types.d.ts} +0 -0
  767. /package/core/accessorSupport/{interfaces.d.ts → types.d.ts} +0 -0
  768. /package/core/{interfaces.d.ts → types.d.ts} +0 -0
  769. /package/editing/sharedTemplates/{interfaces.d.ts → types.d.ts} +0 -0
  770. /package/editing/{interfaces.d.ts → types.d.ts} +0 -0
  771. /package/layers/effects/{interfaces.d.ts → types.d.ts} +0 -0
  772. /package/layers/orientedImagery/{interfaces.d.ts → types.d.ts} +0 -0
  773. /package/layers/raster/datasets/{interfaces.d.ts → types.d.ts} +0 -0
  774. /package/layers/raster/functions/{interfaces.d.ts → types.d.ts} +0 -0
  775. /package/linkChart/{interfaces.d.ts → types.d.ts} +0 -0
  776. /package/popup/{interfaces.d.ts → types.d.ts} +0 -0
  777. /package/rest/lastMileDelivery/{interfaces.d.ts → types.d.ts} +0 -0
  778. /package/rest/{interfaces.d.ts → types.d.ts} +0 -0
  779. /package/smartMapping/popup/{interfaces.d.ts → types.d.ts} +0 -0
  780. /package/smartMapping/raster/support/adapters/{interfaces.d.ts → types.d.ts} +0 -0
  781. /package/smartMapping/symbology/{interfaces.d.ts → types.d.ts} +0 -0
  782. /package/statistics/{interfaces.d.ts → types.d.ts} +0 -0
  783. /package/symbols/support/{interfaces.d.ts → types.d.ts} +0 -0
  784. /package/symbols/{interfaces.d.ts → types.d.ts} +0 -0
  785. /package/time/{interfaces.d.ts → types.d.ts} +0 -0
  786. /package/versionManagement/versionAdapters/{interfaces.d.ts → types.d.ts} +0 -0
  787. /package/views/2d/analysis/{interfaces.d.ts → types.d.ts} +0 -0
  788. /package/views/3d/analysis/{interfaces.d.ts → types.d.ts} +0 -0
  789. /package/views/3d/{interfaces.d.ts → types.d.ts} +0 -0
  790. /package/views/animation/{easing.d.ts → types.d.ts} +0 -0
  791. /package/views/draw/{DrawingMode.js → drawingModes.js} +0 -0
  792. /package/views/input/{interfaces.d.ts → types.d.ts} +0 -0
  793. /package/views/navigation/{interfaces.d.ts → types.d.ts} +0 -0
  794. /package/widgets/Attachments/{interfaces.d.ts → types.d.ts} +0 -0
  795. /package/widgets/BasemapGallery/{interfaces.d.ts → types.d.ts} +0 -0
  796. /package/widgets/BasemapLayerList/{interfaces.d.ts → types.d.ts} +0 -0
  797. /package/widgets/BatchAttributeForm/inputs/{interfaces.d.ts → types.d.ts} +0 -0
  798. /package/widgets/BatchAttributeForm/{interfaces.d.ts → types.d.ts} +0 -0
  799. /package/widgets/CatalogLayerList/{interfaces.d.ts → types.d.ts} +0 -0
  800. /package/widgets/FeatureForm/{interfaces.d.ts → types.d.ts} +0 -0
  801. /package/widgets/Histogram/{interfaces.d.ts → types.d.ts} +0 -0
  802. /package/widgets/HistogramRangeSlider/{interfaces.d.ts → types.d.ts} +0 -0
  803. /package/widgets/Measurement/{interfaces.d.ts → types.d.ts} +0 -0
  804. /package/widgets/OrientedImageryViewer/{interfaces.d.ts → types.d.ts} +0 -0
  805. /package/widgets/Print/{interfaces.d.ts → types.d.ts} +0 -0
  806. /package/widgets/ScaleRangeSlider/{interfaces.d.ts → types.d.ts} +0 -0
  807. /package/widgets/Swipe/{interfaces.d.ts → types.d.ts} +0 -0
  808. /package/widgets/TableList/{interfaces.d.ts → types.d.ts} +0 -0
  809. /package/widgets/TimeSlider/{interfaces.d.ts → types.d.ts} +0 -0
  810. /package/widgets/Track/{interfaces.d.ts → types.d.ts} +0 -0
  811. /package/widgets/ValuePicker/{interfaces.d.ts → types.d.ts} +0 -0
  812. /package/widgets/support/GridControls/{interfaces.d.ts → types.d.ts} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1005,5804],{159:(e,t,r)=>{r.d(t,{A:()=>l});var n,i=r(31635),s=r(69622),o=r(91429),a=r(99157);let l=n=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],l.prototype,"steps",void 0),l=n=(0,i.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformation")],l)},8303:(e,t,r)=>{r.d(t,{A:()=>S});var n=r(31635),i=r(92602),s=r(70333),o=r(11254),a=r(60999),l=r(49186),u=r(53966),c=r(97768),p=r(74887),d=r(84952),h=r(91429),f=r(77548),y=r(20655),g=r(80812),m=r(41318),v=r(10407),b=r(36005),w=r(43937);const S=e=>{const t=e;let S=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let o,a;if(i)o=r.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new g.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=y.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(n))return i.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?m.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||y.A.getDefault());return r&&n&&!(0,d.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,h.MZ)({type:g.default})],S.prototype,"portalItem",null),(0,n.Cg)([(0,b.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,n.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,n.Cg)([(0,h.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,n.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],S),S},M={credential:null,user:null}},9762:(e,t,r)=>{r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(37539);function i(e,t,r,i,s,o,a=Math.floor(e.length/3)){const l=(0,n.jd)(t,s);if(null==l)return!1;if(l===n.pO){if(e===i&&r===o)return!0;const t=r+3*a;for(let n=r,s=o;n<t;n++,s++)i[s]=e[n]??0;return!0}const u=r+3*a;for(let t=r,n=o;t<u;t+=3,n+=3)l(e,t,i,n);return!0}},10184:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(31635),i=r(69540),s=r(25482),o=r(88930),a=r(91429),l=r(73133),u=r(93223);let c=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,u.e)(l.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,n.Cg)([(0,a.$K)("esri.time.TimeInterval")],c)},10407:(e,t,r)=>{r.d(t,{It:()=>h,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>p});var n=r(91218),i=r(16930),s=r(28735);function o(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function h(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit");const a="update"===n||"admin"===n;return a?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:a}}}},13069:(e,t,r)=>{r.d(t,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>s});const n="randomUUID"in crypto;function i(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},15804:(e,t,r)=>{r.d(t,{addOrUpdateResources:()=>a,bg:()=>d,cL:()=>p,fetchResources:()=>o,removeAllResources:()=>u,removeResource:()=>l});var n=r(11254),i=r(49186),s=r(84952);async function o(e,t={},r){await e.load(r);const n=(0,s.fj)(e.itemUrl,"resources"),{start:i=1,num:o=10,sortOrder:a="asc",sortField:l="resource"}=t,u={query:{start:i,num:o,sortOrder:a,sortField:l,token:e.apiKey},signal:r?.signal},c=await e.portal.request(n,u);return{total:c.total,nextStart:c.nextStart,resources:c.resources.map(({created:t,size:r,resource:n})=>({created:new Date(t),size:r,resource:e.resourceFromPath(n)}))}}async function a(e,t,r,n){const o=new Map;for(const{resource:e,content:n,compress:s,access:a}of t){if(!e.hasPath())throw new i.A(`portal-item-resource-${r}:invalid-path`,"Resource does not have a valid path");const[t,l]=c(e.path),u=`${t}/${s??""}/${a??""}`;o.has(u)||o.set(u,{prefix:t,compress:s,access:a,files:[]}),o.get(u).files.push({fileName:l,content:n})}await e.load(n);const a=(0,s.fj)(e.userItemUrl,"add"===r?"addResources":"updateResources");for(const{prefix:t,compress:r,access:i,files:s}of o.values()){const o=25;for(let l=0;l<s.length;l+=o){const u=s.slice(l,l+o),c=new FormData;t&&"."!==t&&c.append("resourcesPrefix",t),r&&c.append("compress","true"),i&&c.append("access",i);let p=0;for(const{fileName:e,content:t}of u)c.append("file"+ ++p,t,e);c.append("f","json"),await e.portal.request(a,{method:"post",body:c,signal:n?.signal})}}}async function l(e,t,r){if(!t.hasPath())throw new i.A("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);const n=(0,s.fj)(e.userItemUrl,"removeResources");await e.portal.request(n,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function u(e,t){await e.load(t);const r=(0,s.fj)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function c(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function p(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,n.A)(e.url,{responseType:"blob"})).data}function d(e,t){if(!e.hasPath())return null;const[r,,n]=function(e){const[t,r]=function(e){const t=(0,s.Zo)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[n,i]=c(t);return[n,i,r]}(e.path);return e.portalItem.resourceFromPath((0,s.fj)(r,t+n))}},18768:(e,t,r)=>{r.d(t,{b:()=>a});var n=r(31635),i=r(53966),s=r(91429),o=r(60694);const a=e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.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,o.Jf)(e,i.A.getLogger(this)))}};return(0,n.Cg)([(0,s.MZ)()],r.prototype,"title",null),(0,n.Cg)([(0,s.MZ)({type:String})],r.prototype,"url",null),r=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISService")],r),r}},21005:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ke});var n=r(31635),i=r(37838),s=r(7762),o=r(49186),a=r(53966),l=r(25728),u=r(74887),c=r(91429),p=r(56507),d=r(38954),h=r(51850),f=r(5443),y=r(60950),g=r(89808),m=r(99959);const v=Symbol("isVoxelGraphicOrigin");var b;class w extends m.A{get[(b=v,y.ym)](){return this.layer}get[g.Q](){return this.layer}constructor(e){super(),this[b]=!0,this.type="voxel",this.layer=e}get id(){return this.layer.id}}var S=r(4146),M=r(52136),x=r(18768),C=r(69208),A=r(16131),I=r(8303),j=r(25036),R=r(58947),Z=r(60694),T=r(10873),P=r(20437),N=r(95466),_=r(96184),V=r(69540),O=r(69052),z=r(25482),F=r(87024),U=r(67026),q=r(82534),L=r(34304);const E=(0,h.vt)(),$=(0,q.vt)(),D=(0,q.vt)(),k=(0,q.vt)(),K=(0,h.fA)(0,0,1),B=(0,h.fA)(0,1,0),H=(0,h.fA)(1,0,0);function G(e){(0,d.d)(E,e),(0,d.n)(E,E);const t=Math.atan2(E[1],E[0]),r=(0,U.x8)((0,q.vt)(),K,-t);(0,d.r)(E,E,r);const n=-1*Math.atan2(E[2],E[0]);return[(0,L.ct)(t)+270,(0,L.ct)(n)+90]}function J(e,t){return(0,U.x8)(D,K,(0,L.DF)(e-270)),(0,U.x8)(k,B,(0,L.DF)(t-90)),(0,U.lw)($,D,k),(0,d.d)(E,H),(0,d.r)(E,E,$),(0,d.n)(E,E),[E[0],E[1],E[2]]}let W=class extends((0,V.OU)(z.o)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return O.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=J(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return O.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=J(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],W.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>O.ie.normalize((0,p.GB)(e),0,!0))],W.prototype,"orientation",null),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>O.ie.normalize((0,p.GB)(e),0,!0))],W.prototype,"tilt",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],W.prototype,"normal",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],W.prototype,"point",void 0),W=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSlice")],W);var Y=r(97159);let Q=class extends((0,V.OU)(z.o)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return O.ie.normalize((0,p.GB)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return O.ie.normalize((0,p.GB)(t),0,!0)}};(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],Q.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{origins:{service:{read:Y.r},"web-scene":{write:{isRequired:!0}}},write:!0}}),(0,F.P)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],Q.prototype,"href",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Q.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Q.prototype,"orientation",null),(0,n.Cg)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Q.prototype,"tilt",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"normal",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"point",void 0),(0,n.Cg)([(0,c.MZ)({type:[p.jz],json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"sizeInPixel",void 0),(0,n.Cg)([(0,c.MZ)({type:[W],json:{write:!0}})],Q.prototype,"slices",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{default:0,write:!0}})],Q.prototype,"timeId",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"variableId",void 0),Q=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSection")],Q);let X=class extends z.o{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,n.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],X.prototype,"diffuseFactor",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],X.prototype,"specularFactor",void 0),X=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSimpleShading")],X);let ee=class extends z.o{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,n.Cg)([(0,c.MZ)({type:["discrete","continuous"],json:{write:!0}})],ee.prototype,"continuity",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],ee.prototype,"hasNoData",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"noData",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"offset",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"scale",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"type",void 0),ee=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelFormat")],ee);const te=ee;let re=class extends z.o{constructor(e){super(e),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],re.prototype,"description",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"name",void 0),(0,n.Cg)([(0,c.MZ)({type:te,json:{write:!0}})],re.prototype,"originalFormat",void 0),(0,n.Cg)([(0,c.MZ)({type:te,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"renderingFormat",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],re.prototype,"unit",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],re.prototype,"volumeId",void 0),(0,n.Cg)([(0,c.MZ)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],re.prototype,"type",void 0),re=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVariable")],re);const ne=re;var ie=r(4718),se=r(68197);let oe=class extends((0,V.OU)(z.o)){constructor(){super(...arguments),this.color=se.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,n.Cg)([(0,c.MZ)({type:se.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],oe.prototype,"color",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],oe.prototype,"value",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],oe.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],oe.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],oe.prototype,"colorLocked",void 0),oe=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelIsosurface")],oe);var ae=r(62885),le=r(34727);let ue=class extends((0,V.OU)(z.o)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,n.Cg)([(0,c.MZ)({type:se.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],ue.prototype,"color",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ue.prototype,"position",void 0),ue=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelColorStop")],ue);const ce=ue;let pe=class extends((0,V.OU)(z.o)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,n.Cg)([(0,c.MZ)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],pe.prototype,"opacity",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],pe.prototype,"position",void 0),pe=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelOpacityStop")],pe);const de=pe;let he=class extends((0,V.OU)(z.o)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],he.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],he.prototype,"range",void 0),he=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelRangeFilter")],he);const fe=he;let ye=class extends((0,V.OU)(z.o)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(s.A.ofType(ce)),this.opacityStops=new(s.A.ofType(de))}set colorStops(e){this._set("colorStops",(0,ae.V)(e,this._get("colorStops"),s.A.ofType(ce)))}set opacityStops(e){this._set("opacityStops",(0,ae.V)(e,this._get("opacityStops"),s.A.ofType(de)))}getPreviousNext(e,t,r){let n=e;for(;--n>0&&t[n].type!==r&&3!==t[n].type;);let i=e;const s=t.length;for(;++i<s&&t[i].type!==r&&3!==t[i].type;);return[n,i]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],r=[];for(const t of this.colorStops){if(!t.color)return e;r.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:1})}if(0===this.opacityStops.length)for(const e of r)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,le.qE)(e.position,0,1),n=Math.round(255*(0,le.qE)(1-e.opacity,0,1));let i=!1;for(const e of r)if(1===e.type&&Math.abs(e.position-t)<1e-5){e.color.a=n,e.type=3,i=!0;break}i||r.push({color:{r:0,g:0,b:0,a:n},position:e.position,type:2})}r.sort((e,t)=>e.position<t.position?-1:1);const e=r.length;for(let t=0;t<e;++t){const n=r[t];if(3!==n.type)if(1===n.type){const[i,s]=this.getPreviousNext(t,r,2);if(-1!==i&&s!==e){const e=(n.position-r[i].position)/(r[s].position-r[i].position);n.color.a=Math.round((0,le.Cc)(r[i].color.a,r[s].color.a,e))}else n.color.a=-1!==i?r[i].color.a:r[s].color.a}else{const[i,s]=this.getPreviousNext(t,r,1);if(-1!==i&&s!==e){const e=(n.position-r[i].position)/(r[s].position-r[i].position),t=r[i].color,o=r[s].color;me.forEach(r=>{n.color[r]=Math.round((0,le.Cc)(t[r],o[r],e))})}else-1!==i?me.forEach(e=>{n.color[e]=r[i].color[e]}):me.forEach(e=>{n.color[e]=r[s].color[e]})}}for(const e of r)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let n=0,i=1;for(let r=0;r<this._colorMapSize;++r){const s=r/this._colorMapSize;for(;s>t[i].position;)n=i++;const o=(s-t[n].position)/(t[i].position-t[n].position),a=t[n].color,l=t[i].color,u=new se.A;me.forEach(e=>{u[e]=Math.round((0,le.Cc)(a[e],l[e],o))}),u.a=(0,le.qE)(1-(0,le.Cc)(a.a,l.a,o)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const r=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||r.length<256)return null;let n=this.stretchRange[0],i=this.stretchRange[1];if(n>i){const e=n;n=i,i=e}e=(0,le.qE)(e,n,i);const s=r[Math.round((e-n)/(i-n)*(this._colorMapSize-1))].clone();return t||(s.a=1),s}};(0,n.Cg)([(0,c.MZ)({type:["linear","nearest"],json:{write:!0}})],ye.prototype,"interpolation",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],ye.prototype,"stretchRange",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(ce),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],ye.prototype,"colorStops",null),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(de),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],ye.prototype,"opacityStops",null),(0,n.Cg)([(0,c.MZ)({type:fe,json:{write:!0}})],ye.prototype,"rangeFilter",void 0),(0,n.Cg)([(0,c.MZ)({type:[se.A],clonable:!1,json:{read:!1}})],ye.prototype,"rasterizedTransferFunction",null),ye=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelTransferFunctionStyle")],ye);const ge=ye,me=["r","g","b"];let ve=class extends((0,V.OU)(z.o)){constructor(){super(...arguments),this.color=se.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};var be;(0,n.Cg)([(0,c.MZ)({type:se.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],ve.prototype,"color",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],ve.prototype,"value",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ve.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ve.prototype,"label",void 0),ve=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelUniqueValue")],ve);let we=be=class extends z.o{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(s.A.ofType(ve)),this.isosurfaces=new(s.A.ofType(oe))}clone(){return new be({variableId:this.variableId,label:this.label,transferFunction:(0,ie.o8)(this.transferFunction),uniqueValues:(0,ie.o8)(this.uniqueValues),isosurfaces:(0,ie.o8)(this.isosurfaces)})}};(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],we.prototype,"variableId",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],we.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:ge,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],we.prototype,"transferFunction",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(ve),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],we.prototype,"uniqueValues",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(oe),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],we.prototype,"isosurfaces",void 0),we=be=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVariableStyle")],we);var Se=r(88930),Me=r(86738),xe=r(16930),Ce=r(21325);function Ae(e){const t=/^(days?|hours?|minutes?|seconds?|d|h|m|s) since (\d{1,4})-(\d{1,2})-(\d{1,2})[ |T](\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[\s|Z]?(([+|\-\s?])(\d{1,2}):(\d{1,2}))?$/i.exec(e);if(null==t)return{didParse:!1};const[,r,n,i,s,o,a,l,u,c,p,d,h]=t;let f="seconds";const y=r.charAt(0).toLowerCase();"d"===y?f="days":"h"===y?f="hours":"m"===y&&(f="minutes");const g=parseInt(n,10);if(Number.isNaN(g))return{didParse:!1};const m=parseInt(i,10);if(Number.isNaN(m)||m<1||m>12)return{didParse:!1};const v=parseInt(s,10);if(Number.isNaN(v)||v<1||v>31)return{didParse:!1};if(2===m){const e=g%4==0&&(g%100!=0||g%400==0);if(e&&v>29||!e&&v>28)return{didParse:!1}}else if((4===m||6===m||9===m||11===m)&&v>30)return{didParse:!1};const b=parseInt(o,10);if(Number.isNaN(b)||b<0||b>23)return{didParse:!1};const w=parseInt(a,10);if(Number.isNaN(w)||w<0||w>59)return{didParse:!1};const S=parseInt(l,10);if(Number.isNaN(S)||S<0||S>59)return{didParse:!1};let M=1,x=0,C=0;if(p&&(M="-"===p?-1:1),d){if(x=parseInt(d,10),Number.isNaN(x)||x<0)return{didParse:!1};if(0!==x){const e=M*x;if(e<-12||e>14)return{didParse:!1}}}if(h&&(C=parseInt(h,10),Number.isNaN(C)||C<0||C>59))return{didParse:!1};const A=`${g}`.padStart(4,"0"),I=`${m}`.padStart(2,"0"),j=`${v}`.padStart(2,"0"),R=`${b}`.padStart(2,"0"),Z=`${w}`.padStart(2,"0"),T=`${S}`.padStart(2,"0");let P="Z";return 0===x&&0===C||(P=M>0?"+":"-",P+=`${x}`.padStart(2,"0"),P+=":",P+=`${C}`.padStart(2,"0")),{didParse:!0,unit:f,reference:new Date(`${A}-${I}-${j}T${R}:${Z}:${T}.000${P}`)}}let Ie=class extends z.o{constructor(){super(...arguments),this.values=null}};(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:!0}})],Ie.prototype,"values",void 0),Ie=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelIrregularSpacing")],Ie);const je=Ie;let Re=class extends z.o{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Re.prototype,"scale",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Re.prototype,"offset",void 0),Re=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelRegularSpacing")],Re);const Ze=Re;let Te=class extends z.o{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,n.Cg)([(0,c.MZ)({type:je,json:{write:!0}})],Te.prototype,"irregularSpacing",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isPositiveUp",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isWrappedDateLine",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"name",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"quantity",void 0),(0,n.Cg)([(0,c.MZ)({type:Ze,json:{write:!0}})],Te.prototype,"regularSpacing",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Te.prototype,"size",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"unit",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1}})],Te.prototype,"isRegular",null),Te=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelDimension")],Te);const Pe=Te;let Ne=class extends z.o{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=xe.A.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],n=r.isRegular?r.getRange():[0,r.size];return[e[0],t[0],n[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],n=r.isRegular?r.getRange():[0,r.size],i=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)i[e]<2?i[e]=1:i[e]-=1;return r.isRegular&&!r.isPositiveUp&&(i[2]*=-1),[(e[1]-e[0])/i[0],(t[1]-t[0])/i[1],(n[1]-n[0])/i[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0;let t=this.dimensions[3].size>0;if(t){const e=this.dimensions[3];t="time"===e.quantity,t&&null!==e.unit&&(t=Ae(e.unit).didParse)}if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}get timeStops(){if("xyzt"!==this.volumeType)return[];const e=this.dimensions[3],t=[],r=Ae(e.unit);if(r.didParse)if(e.isRegular){const n=e.regularSpacing?.offset??0,i=e.regularSpacing?.scale||1;for(let s=0;s<e.size;++s){const e=n+i*s;t.push((0,Se.mi)(r.reference,e,r.unit))}}else if(Array.isArray(e.irregularSpacing?.values)&&e.irregularSpacing.values.length>0)for(let n=0;n<e.irregularSpacing.values.length;++n){const i=e.irregularSpacing.values[n];t.push((0,Se.mi)(r.reference,i,r.unit))}return t}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return a.A.getLogger(this).error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,Ce.aI)(this.spatialReference,e.spatialReference))return a.A.getLogger(this).error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,h.fA)(e.x,e.y,e.z??0);(0,d.e)(t,t,this.originInLayerSpace3D),(0,d.C)(t,t,this.voxelSizeInLayerSpaceSigned);const r=this.dimensions[this.zDimension];if(!r.isRegular&&Array.isArray(r.irregularSpacing?.values)&&r.irregularSpacing.values.length>1){const n=e.z??0,i=r.irregularSpacing.values,s=r.isPositiveUp?1:-1,o=i.reduce((e,t)=>Math.abs(s*t-n)<Math.abs(s*e-n)?t:e);for(let e=0;e<i.length;++e)if(i[e]===o){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new Me.A({x:0,y:0,spatialReference:this.spatialReference});const t=(0,h.ci)(e);if((0,d.B)(t,t,this.voxelSizeInLayerSpaceSigned),(0,d.i)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new Me.A({x:t[0],y:t[1],spatialReference:this.spatialReference});const r=this.dimensions[this.zDimension];return r.isRegular||Array.isArray(r.irregularSpacing?.values)&&(e[2]<0?t[2]=r.irregularSpacing.values[0]:e[2]<r.irregularSpacing.values.length?t[2]=r.irregularSpacing.values[e[2]]:t[2]=r.irregularSpacing.values[r.irregularSpacing.values.length-1],r.isPositiveUp||(t[2]*=-1)),new Me.A({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};var _e;(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ne.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:[Pe],json:{write:{enabled:!0,isRequired:!0}}})],Ne.prototype,"dimensions",void 0),(0,n.Cg)([(0,c.MZ)({type:xe.A,json:{read:{enabled:!1}}})],Ne.prototype,"spatialReference",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1}})],Ne.prototype,"zDimension",null),(0,n.Cg)([(0,c.MZ)({type:[Boolean],json:{read:!1}})],Ne.prototype,"isValid",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ne.prototype,"originInLayerSpace3D",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ne.prototype,"voxelSizeInLayerSpaceSigned",null),(0,n.Cg)([(0,c.MZ)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Ne.prototype,"volumeType",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ne.prototype,"sizeInVoxels",null),(0,n.Cg)([(0,c.MZ)({type:[Date],json:{read:!1,write:!1}})],Ne.prototype,"timeStops",null),Ne=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolume")],Ne);let Ve=_e=class extends z.o{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new _e;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"apronWidth",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"brickSize",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"maxLodLevel",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"nodeSize",void 0),Ve=_e=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolumeIndex")],Ve);const Oe=Ve;let ze=class extends((0,V.OU)(z.o)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return O.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=J(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return O.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=J(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};var Fe;(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ze.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ze.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>O.ie.normalize((0,p.GB)(e),0,!0))],ze.prototype,"orientation",null),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>O.ie.normalize((0,p.GB)(e),0,!0))],ze.prototype,"tilt",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],ze.prototype,"normal",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],ze.prototype,"point",void 0),ze=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelDynamicSection")],ze);let Ue=Fe=class extends z.o{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(s.A.ofType(W)),this.dynamicSections=new(s.A.ofType(ze))}set slices(e){this._set("slices",(0,ae.V)(e,this._get("slices"),s.A.ofType(W)))}set dynamicSections(e){this._set("dynamicSections",(0,ae.V)(e,this._get("dynamicSections"),s.A.ofType(ze)))}clone(){return new Fe({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,ie.o8)(this.slices),dynamicSections:(0,ie.o8)(this.dynamicSections)})}};(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Ue.prototype,"volumeId",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{default:1,write:!0}})],Ue.prototype,"verticalExaggeration",void 0),(0,n.Cg)([(0,c.MZ)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Ue.prototype,"exaggerationMode",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{default:0,write:!0}})],Ue.prototype,"verticalOffset",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(W),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Ue.prototype,"slices",null),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(ze),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Ue.prototype,"dynamicSections",null),Ue=Fe=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolumeStyle")],Ue);var qe=r(30291),Le=r(79677),Ee=r(10184),$e=r(36005);let De=class extends((0,R.w6)((0,x.b)((0,A.q)((0,I.A)((0,j.j)((0,l.P)((0,C.d)((0,M.p)(S.A))))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.graphicOrigin=new w(this),this.shading=new X,this.opacity=1,this.variables=new s.A,this.volumes=new s.A,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.popupTemplate=null,this.test=null,this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0,this.volumeStyles=new(s.A.ofType(Ue)),this.variableStyles=new(s.A.ofType(we)),this.sections=new(s.A.ofType(Q))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,Z.Jf)(e,a.A.getLogger(this)))}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then(()=>this._fetchService(t)).then(()=>this.serviceRoot=this.url);return this.addResolvingPromise(r),Promise.resolve(this)}read(e,t){super.read(e,t),"service"===t?.origin&&this.version.major<=3&&this.version.minor<=0&&!this.getAtOrigin("popupTemplate","service")&&this.setAtOrigin("popupTemplate",this.createPopupTemplate(),"service");for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new o.A("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const n=f.A.fromJSON(e,r);if(0===n.zmin&&0===n.zmax&&Array.isArray(t.volumes)){const e=Ne.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,r=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>r){const t=e;e=r,r=t}n.zmin=e,n.zmax=r}}}return n}return null}get fields(){const e=[new P.A({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"}),new P.A({name:"Voxel.CurrentVariable",alias:"Current Variable",domain:null,editable:!1,length:128,type:"string"})];for(const t of this.variables){const r=new P.A({name:t.name,alias:t.description,domain:null,editable:!1,length:128,type:"discrete"===t.renderingFormat.continuity?"string":"double"});e.push(r)}const t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new P.A({name:"Voxel.LocalTime",alias:"Local Time",domain:null,editable:!1,length:256,type:"date"});e.push(t);const r=new P.A({name:"Voxel.SourceTime",alias:"Source Time",domain:null,editable:!1,length:256,type:"string"});e.push(r)}if("xyt"!==t.volumeType){const t=new P.A({name:"Voxel.Depth",alias:"Depth",domain:null,editable:!1,length:128,type:"double"});e.push(t)}}return e}get fieldsIndex(){return this.loaded?new N.A(this.fields):null}getField(e){return this.fieldsIndex?.get(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.fields;return(0,qe.tn)({fields:t,title:"{Voxel.Position}"},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const r=this.variableStyles.findIndex(e=>e.variableId===t);return r<0?null:this.variableStyles.at(r)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const r=this.variables.findIndex(e=>e.id===t);return r<0?null:this.variables.at(r)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find(({id:e})=>e===t.volumeId):null}get timeInfo(){const e=this.getVolume(null);if("xyzt"!==e?.volumeType)return null;const t=e.timeStops;if(!t?.length)return null;const r=new Le.A({start:t[0],end:t.at(-1)});return new _.A({fullTimeExtent:r,stops:t})}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find(({volumeId:e})=>e===t.volumeId):null}getColorForContinuousDataValue(e,t,r){const n=this.getVariable(e);if(null==n||"continuous"!==n.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const i=this.variableStyles.findIndex(t=>t.variableId===e);if(i<0)return null;const s=this.variableStyles.at(i);return s?.transferFunction?s.transferFunction.getColorForContinuousDataValue(t,r):null}getSections(){const e=[];for(const t of this.sections)e.push(new Q({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const r=this._getVariable(t);if(null!=r){const n=t.clone();n.isosurfaces.length>4&&(n.isosurfaces=n.isosurfaces.slice(0,3),a.A.getLogger(this).error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of n.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(n.variableId,e.value,!1);null==t||t.equals(e.color)||(e.color=t)}if("continuous"===r.renderingFormat.continuity)(null===n.transferFunction||n.transferFunction.colorStops.length<2)&&a.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==n.transferFunction&&(Array.isArray(n.transferFunction.stretchRange)&&2===n.transferFunction.stretchRange.length||(a.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),n.transferFunction.stretchRange=[0,1],n.transferFunction.colorStops.removeAll()));else if("discrete"===r.renderingFormat.continuity)if(0===t.uniqueValues.length)a.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(n)}else a.A.getLogger(this).error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const r=this._getVolumeFromVolumeId(t.volumeId);if(null!=r){const n=t.clone();for(const e of n.slices)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of n.dynamicSections)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");e.push(n)}else a.A.getLogger(this).error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,r){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const n=(0,h.fA)(e.normal[0],e.normal[1],e.normal[2]);return(0,d.n)(n,n),!(Math.abs(n[0])+Math.abs(n[1])+Math.abs(n[2])<1e-6||(e.normal[0]=n[0],e.normal[1]=n[1],e.normal[2]=n[2],0))}};(0,n.Cg)([(0,c.MZ)({type:["Voxel"]})],De.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,c.MZ)(T.fV)],De.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,c.MZ)({json:{write:!0}})],De.prototype,"title",void 0),(0,n.Cg)([(0,c.MZ)(T.OZ)],De.prototype,"url",null),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(Q),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],De.prototype,"sections",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],De.prototype,"currentVariableId",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(Ue),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],De.prototype,"volumeStyles",void 0),(0,n.Cg)([(0,c.MZ)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],De.prototype,"renderMode",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(we),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],De.prototype,"variableStyles",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],De.prototype,"enableSlices",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],De.prototype,"enableSections",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],De.prototype,"enableDynamicSections",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],De.prototype,"enableIsosurfaces",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],De.prototype,"graphicOrigin",void 0),(0,n.Cg)([(0,c.MZ)({type:X,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],De.prototype,"shading",void 0),(0,n.Cg)([(0,c.MZ)({type:["show","hide"]})],De.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],De.prototype,"opacity",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(ne)})],De.prototype,"variables",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(Ne)})],De.prototype,"volumes",void 0),(0,n.Cg)([(0,c.MZ)({type:Oe})],De.prototype,"index",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],De.prototype,"minScale",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],De.prototype,"maxScale",void 0),(0,n.Cg)([(0,c.MZ)({json:{read:!1},readOnly:!0})],De.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{name:"serviceVersion"}})],De.prototype,"version",void 0),(0,n.Cg)([(0,$e.w)("service","version")],De.prototype,"readVersion",null),(0,n.Cg)([(0,c.MZ)({type:f.A})],De.prototype,"fullExtent",void 0),(0,n.Cg)([(0,$e.w)("service","fullExtent",["fullExtent"])],De.prototype,"readFullExtent",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],De.prototype,"fields",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],De.prototype,"fieldsIndex",null),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,r){t[r]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],De.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:i.A,json:{name:"popupInfo",write:!0}})],De.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],De.prototype,"defaultPopupTemplate",null),(0,n.Cg)([(0,c.MZ)({type:_.A,readOnly:!0,json:{read:!1}})],De.prototype,"timeInfo",null),(0,n.Cg)([(0,c.MZ)({type:Le.A,json:{read:!1}})],De.prototype,"timeExtent",void 0),(0,n.Cg)([(0,c.MZ)({type:Ee.A,json:{read:!1}})],De.prototype,"timeOffset",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0,json:{origins:{"web-scene":{name:"timeAnimation",write:!0},service:{read:!1}}}})],De.prototype,"useViewTime",void 0),De=(0,n.Cg)([(0,c.$K)("esri.layers.VoxelLayer")],De);const ke=De},25036:(e,t,r)=>{r.d(t,{j:()=>s});var n=r(31635),i=r(91429);const s=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}},26121:(e,t,r)=>{r.d(t,{ci:()=>o,dL:()=>i});var n=r(49186);async function i(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}r(77548);const s=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function o(e,t,r){let i=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new n.A(e,t,r));if(e.blockedRelativeUrls&&(i=i.concat(e.blockedRelativeUrls.map(e=>new n.A("url:unsupported",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:n}=r;e&&(i=i.filter(({name:e})=>!(s.has(e)||t.includes(e)))),n&&(i=i.filter(e=>"web-document-write:property-required"!==e.name))}if(i.length>0)throw new n.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:i})}},30291:(e,t,r)=>{r.d(t,{tn:()=>u});var n=r(37838),i=r(30524),s=r(41227),o=r(89893),a=r(66159),l=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},h){if(!r)return null;const y=function(e,t){const r=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:r}){const n=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===n&&(e=e.slice()),!0!==r&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||f,sortDisabled:t?.sortDisabled}).map(t=>new s.A({fieldName:t.name,isEditable:(0,i.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:r})}))}({editFieldsInfo:t,fields:r,objectIdField:l},h);if(!y.length)return null;const g=function(e){const t=(0,i.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),m=[new a.A,new o.A];return new n.A({title:g,content:m,fieldInfos:y})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,i.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":return new l.A({digitSeparator:!0,places:0});case"single":case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,i.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function h(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const f=["geometry","blob","raster","guid","xml"]},37539:(e,t,r)=>{r.d(t,{pO:()=>y,jd:()=>d,Tp:()=>h,w5:()=>p});var n=r(34727),i=r(86211),s=r(73941),o=r(79258);Math.PI;const a=o.$O.radius,l=o.$O.eccentricitySquared,u={a1:a*l,a2:a*l*a*l,a3:a*l*l/2,a4:a*l*a*l*2.5,a5:a*l+a*l*l/2,a6:1-l};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=r(21325);const p={2:{5:y,7:null,9:null,10:y,1:x,6:null,8:null,0:null,3:m,11:v,2:y,4:R},5:{5:y,7:null,9:null,10:y,1:x,6:null,8:null,0:null,3:m,11:v,2:y,4:R},7:{5:null,7:y,9:null,10:y,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:S,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(e,t,r,n){const i=e[t]/V,s=_-2*Math.atan(Math.exp(-e[t+1]/V)),o=V+(e[t+2]??0),a=Math.cos(s)*o;r[n]=Math.cos(i)*a,r[n+1]=Math.sin(i)*a,r[n+2]=Math.sin(s)*o},6:null,8:null,0:null,3:y,11:function(e,t,r,n){g(e,t,r,n),v(r,n,r,n)},2:g,4:function(e,t,r,n){g(e,t,r,n),R(r,n,r,n)}},4:{5:Z,7:null,9:null,10:Z,1:function(e,t,r,n){Z(e,t,r,n),x(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){Z(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){Z(e,t,r,n),v(r,n,r,n)},2:Z,4:y},1:{5:j,7:null,9:null,10:j,1:y,6:null,8:null,0:null,3:function(e,t,r,n){j(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){j(e,t,r,n),v(r,n,r,n)},2:j,4:function(e,t,r,n){j(e,t,r,n),R(r,n,r,n)}},6:{5:null,7:I,9:null,10:I,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:y,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:x,6:M,8:S,0:null,3:m,11:v,2:y,4:R},11:{5:b,7:null,9:null,10:b,1:function(e,t,r,n){b(e,t,r,n),x(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){b(e,t,r,n),m(r,n,r,n)},11:y,2:b,4:function(e,t,r,n){b(e,t,r,n),R(r,n,r,n)}}};function d(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(T.source.spatialReference===e&&T.dest.spatialReference===t)return T;const r=f(e,T.source),n=f(t,T.dest);return 0===r&&0===n?(0,c.aI)(e,t)?T.projector=y:T.projector=null:T.projector=p[r][n],T}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function y(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function g(e,t,r,n){r[n]=N*(e[t]/V),r[n+1]=N*(_-2*Math.atan(Math.exp(-e[t+1]/V))),r[n+2]=e[t+2]??0}function m(e,t,r,i){!function(e,t,r,i,s){const o=.4999999*Math.PI,a=(0,n.qE)(P*e[t+1],-o,o),l=Math.sin(a);r[i++]=P*e[t]*s.radius,r[i++]=s.halfSemiMajorAxis*Math.log((1+l)/(1-l)),r[i]=e[t+2]??0}(e,t,r,i,o.$O)}function v(e,t,r,n){r[n]=e[t]*O,r[n+1]=e[t+1]*O,r[n+2]=e[t+2]??0}function b(e,t,r,n){r[n]=e[t]*z,r[n+1]=e[t+1]*z,r[n+2]=e[t+2]??0}function w(e,t,r,n,i){const s=i+(e[t+2]??0),o=P*e[t],a=P*e[t+1],l=Math.cos(a)*s;r[n]=Math.cos(o)*l,r[n+1]=Math.sin(o)*l,r[n+2]=Math.sin(a)*s}function S(e,t,r,n){w(e,t,r,n,o.Sw.radius)}function M(e,t,r,n){w(e,t,r,n,o.sH.radius)}function x(e,t,r,n){w(e,t,r,n,o.$O.radius)}function C(e,t,r,i,s){const o=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(o*o+a*a+l*l),c=(0,n.YN)(l/(0===u?1:u)),p=Math.atan2(a,o);r[i++]=N*p,r[i++]=N*c,r[i]=u-s}function A(e,t,r,n){C(e,t,r,n,o.Sw.radius)}function I(e,t,r,n){C(e,t,r,n,o.sH.radius)}function j(e,t,r,n){C(e,t,r,n,o.$O.radius)}function R(e,t,r,n){!function(e,t,r,n,i){const s=P*e[t],o=P*e[t+1],a=e[t+2]??0,l=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);r[n++]=(c+a)*u*Math.cos(s),r[n++]=(c+a)*u*Math.sin(s),r[n++]=(c*(1-i.eccentricitySquared)+a)*l}(e,t,r,n,o.$O)}function Z(e,t,r,n){const i=u,s=e[t],a=e[t+1],l=e[t+2]??0;let c,p,d,h,f,y,g,m,v,b,w,S,M,x,C,A,I,j,R,Z,T;c=Math.abs(l),p=s*s+a*a,d=Math.sqrt(p),h=p+l*l,f=Math.sqrt(h),Z=Math.atan2(a,s),y=l*l/h,g=p/h,x=i.a2/f,C=i.a3-i.a4/f,g>.3?(m=c/f*(1+g*(i.a1+x+y*C)/f),R=Math.asin(m),b=m*m,v=Math.sqrt(1-b)):(v=d/f*(1-y*(i.a5-x-g*C)/f),R=Math.acos(v),b=1-v*v,m=Math.sqrt(b)),w=1-o.$O.eccentricitySquared*b,S=o.$O.radius/Math.sqrt(w),M=i.a6*S,x=d-S*v,C=c-M*m,I=v*x+m*C,A=v*C-m*x,j=A/(M/w+I),R+=j,T=I+A*j/2,l<0&&(R=-R),r[n++]=N*Z,r[n++]=N*R,r[n]=T}const T={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},P=(0,n.kU)(1),N=(0,n.KJ)(1),_=.5*Math.PI,V=o.$O.radius,O=V*Math.PI/180,z=180/(V*Math.PI)},38954:(e,t,r)=>{r.d(t,{A:()=>h,B:()=>c,C:()=>p,D:()=>v,E:()=>V,F:()=>w,G:()=>_,H:()=>U,a:()=>O,b:()=>s,c:()=>m,d:()=>o,e:()=>u,f:()=>A,g:()=>C,h:()=>a,i:()=>l,j:()=>g,l:()=>I,m:()=>N,n:()=>x,o:()=>M,p:()=>j,q:()=>S,r:()=>Z,s:()=>b,t:()=>R,u:()=>L,v:()=>d,w:()=>q,x:()=>E,y:()=>y,z:()=>f});var n=r(51850),i=r(34304);function s(e){const t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function p(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function y(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function g(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function m(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function v(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function b(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function w(e){const t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function M(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function x(e,t){const r=t[0],n=t[1],i=t[2];let s=r*r+n*n+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){const n=t[0],i=t[1],s=t[2],o=r[0],a=r[1],l=r[2];return e[0]=i*l-s*a,e[1]=s*o-n*l,e[2]=n*a-i*o,e}function I(e,t,r,n){const i=t[0],s=t[1],o=t[2];return e[0]=i+n*(r[0]-i),e[1]=s+n*(r[1]-s),e[2]=o+n*(r[2]-o),e}function j(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*s+r[12],e[1]=r[1]*n+r[5]*i+r[9]*s+r[13],e[2]=r[2]*n+r[6]*i+r[10]*s+r[14],e}function R(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=n*r[0]+i*r[3]+s*r[6],e[1]=n*r[1]+i*r[4]+s*r[7],e[2]=n*r[2]+i*r[5]+s*r[8],e}function Z(e,t,r){const n=r[0],i=r[1],s=r[2],o=r[3],a=t[0],l=t[1],u=t[2],c=i*u-s*l,p=s*a-n*u,d=n*l-i*a,h=i*d-s*p,f=s*c-n*d,y=n*p-i*c,g=2*o;return e[0]=a+c*g+2*h,e[1]=l+p*g+2*f,e[2]=u+d*g+2*y,e}const T=(0,n.vt)(),P=(0,n.vt)();function N(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function _(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,i.FD)();return Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function V(e,t,r){const n=r[0]-t[0],i=r[1]-t[1],s=r[2]-t[2];let o=n*n+i*i+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=i*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,z=c,F=p,U=v,q=b,L=s,E=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){x(T,e),x(P,t);const r=C(T,P);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,n,i,s){const o=1-s,a=o*o,l=s*s,u=a*o,c=3*s*a,p=3*l*o,d=l*s;return e[0]=t[0]*u+r[0]*c+n[0]*p+i[0]*d,e[1]=t[1]*u+r[1]*c+n[1]*p+i[1]*d,e[2]=t[2]*u+r[2]*c+n[2]*p+i[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:o,cross:A,crossAndNormalize:function(e,t,r){const n=t[0],i=t[1],s=t[2],o=r[0],a=r[1],l=r[2],u=i*l-s*a,c=s*o-n*l,p=n*a-i*o,d=Math.sqrt(u*u+c*c+p*p);return e[0]=u/d,e[1]=c/d,e[2]=p/d,e},direction:V,dist:U,distance:v,div:F,divide:p,dot:C,equals:_,exactEquals:N,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,n,i,s){const o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*a+r[0]*l+n[0]*u+i[0]*c,e[1]=t[1]*a+r[1]*l+n[1]*u+i[1]*c,e[2]=t[2]*a+r[2]*l+n[2]*u+i[2]*c,e},inverse:M,len:L,length:s,lerp:I,max:y,min:f,mul:z,multiply:c,negate:S,normalize:x,random:function(e,t=1){const r=i.Ov,n=2*r()*Math.PI,s=2*r()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=s*t,e},rotateX:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:g,scaleAndAdd:m,set:a,sign:h,sqrDist:q,sqrLen:E,squaredDistance:b,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:u,transformMat3:R,transformMat4:j,transformQuat:Z},Symbol.toStringTag,{value:"Module"}))},46130:(e,t,r)=>{r.d(t,{v:()=>i});var n=r(76553);function i(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,n.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},52136:(e,t,r)=>{r.d(t,{p:()=>s});var n=r(31635),i=r(91429);const s=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,n.Cg)([(0,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},54239:(e,t,r)=>{r.d(t,{A:()=>g});var n,i=r(31635),s=r(4576),o=r(66552),a=r(25482),l=r(86211),u=r(67076),c=r(91429),p=r(43937),d=r(36005);const h=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=h.jsonValues.slice();(0,s.Xy)(f,"orthometric");const y=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=n=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(m(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||y.read(e)||(r?.messages&&r.messages.push(m(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new n({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function m(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i.Cg)([(0,c.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],g.prototype,"heightModel",void 0),(0,i.Cg)([(0,p.K)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,i.Cg)([(0,d.w)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,i.Cg)([(0,c.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y.jsonValues,write:{writer:y.write,isRequired:!0}}}}})],g.prototype,"heightUnit",void 0),(0,i.Cg)([(0,d.w)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,i.Cg)([(0,d.w)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,i.Cg)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=n=(0,i.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],g)},58947:(e,t,r)=>{r.d(t,{w6:()=>x,qM:()=>I});var n=r(31635),i=r(11254),s=r(49186),o=r(53966),a=r(74887),l=r(91429),u=r(46130),c=r(5443),p=r(54239),d=r(16930),h=r(60694),f=r(10873),y=r(83898),g=r(73179);var m=r(20655),v=r(80812),b=r(88788),w=r(91682),S=r(26121),M=r(36005);const x=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.spatialReference=null,this.fullExtent=null,this.heightModelInfo=null,this.minScale=0,this.maxScale=0,this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.url=null,this.indexInfo=null,this._debouncedSaveOperations=(0,a.sg)(async(e,t,r)=>{switch(e){case 0:return this._save(t);case 1:return this._saveAs(r,t)}})}readSpatialReference(e,t){return A(t)}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const n=null==e.spatialReference?{...e,spatialReference:A(t)}:e;return c.A.fromJSON(n,r)}const n=t.store,i=A(t);return null==i||null==n?.extent||!Array.isArray(n.extent)||n.extent.some(e=>e<C)?null:new c.A({xmin:n.extent[0],ymin:n.extent[1],xmax:n.extent[2],ymax:n.extent[3],spatialReference:i})}parseVersionString(e){const t={major:Number.NaN,minor:Number.NaN,versionString:e},r=e.split(".");return r.length>=2&&(t.major=parseInt(r[0],10),t.minor=parseInt(r[1],10)),t}readVersion(e,t){const r=t.store,n=null!=r.version?r.version.toString():"";return this.parseVersionString(n)}readTitlePortalItem(e){return"item-title"!==this.sublayerTitleMode?void 0:e}readTitleService(e,t){const r=this.portalItem?.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,h.yG)(this.url,t.name):t.name;let n=t.name;if(!n&&this.url){const e=(0,h.qg)(this.url);null!=e&&(n=e.title)}return"item-title-and-service-name"===this.sublayerTitleMode&&r&&(n=r+" - "+n),(0,h.cr)(n)}get parsedUrl(){return(0,g.h)(this,{separator:"layers"})}async _fetchIndexAndUpdateExtent(e,t){this.indexInfo=(0,y.F)(this.parsedUrl?.path??"",this.rootNode,e,this.customParameters,this.apiKey,o.A.getLogger(this),t);const{fullExtent:r}=this;null==r||r.hasZ||this._updateExtent(r,await this.indexInfo)}_updateExtent(e,t){if("page"===t?.type){const r=t.rootIndex%t.pageSize,n=t.rootPage?.nodes?.[r];I(e,n?.obb)}else if("node"===t?.type){const r=t.rootNode?.mbs;if(!Array.isArray(r)||4!==r.length||r[0]<C)return;const n=r[2],i=r[3];e.zmin=n-i,e.zmax=n+i}}async _fetchService(e){if(null==this.url)throw new s.A("sceneservice:url-not-set","Scene service can not be loaded without valid portal item or url");if(null==this.layerId&&/SceneServer\/*$/i.test(this.url)){const t=await this._fetchFirstLayerId(e);null!=t&&(this.layerId=t)}return this._fetchServiceLayer(e)}async _fetchFirstLayerId(e){const t=await(0,i.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(t.data&&Array.isArray(t.data.layers)&&t.data.layers.length>0)return t.data.layers[0].id}async _fetchServiceLayer(e){const t=await(0,i.A)(this.parsedUrl?.path??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});t.ssl&&this.url&&(this.url=this.url.replace(/^http:/i,"https:"));let r=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(r=!0),r)return this._fetchVoxelServiceLayer();const n=t.data;this.read(n,this._getServiceContext()),this.validateLayer(n)}async _fetchVoxelServiceLayer(e){const t=(await(0,i.A)(this.parsedUrl?.path+"/layer",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,this._getServiceContext()),this.validateLayer(t)}_getServiceContext(){return{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}}async _ensureLoadBeforeSave(){await this.load(),"beforeSave"in this&&"function"==typeof this.beforeSave&&await this.beforeSave()}validateLayer(e){}async _saveAs(e,t){const r={...Z,...t};let n=v.default.from(e);if(!n)throw new s.A("sceneservice:portal-item-required","_saveAs() requires a portal item to save to");n.id&&(n=n.clone(),n.id=null);const i=n.portal||m.A.getDefault();await this._ensureLoadBeforeSave(),n.type=R,n.portal=i;const o=(0,b.m)(n,"portal-item",!0),a={layers:[this.write({},o)]};return await Promise.all(o.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(a,o,r),this.url&&(n.url=this.url),n.title||(n.title=this.title),j(n,r,1),await i.signIn(),await i.user.addItem({item:n,folder:r?.folder,data:a}),await(0,w.r)(this.resourceReferences,o),this.portalItem=n,(0,u.v)(o),o.portalItem=n,n}async _save(e){const t={...Z,...e};if(!this.portalItem)throw new s.A("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService");if(this.portalItem.type!==R)throw new s.A("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${R}"`);await this._ensureLoadBeforeSave();const r=(0,b.m)(this.portalItem,"portal-item",!0),n={layers:[this.write({},r)]};return await Promise.all(r.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(n,r,t),this.url&&(this.portalItem.url=this.url),this.portalItem.title||(this.portalItem.title=this.title),j(this.portalItem,t,0),await(0,w.S)(this.portalItem,n,this.resourceReferences,r),(0,u.v)(r),this.portalItem}async _validateAgainstJSONSchema(e,t,r){const n=r?.validationOptions;(0,S.ci)(t,{errorName:"sceneservice:save"},{ignoreUnsupported:n?.ignoreUnsupported,supplementalUnsupportedErrors:["scenemodification:unsupported"]});const i=n?.enabled,a=null;if(i&&a){const t=(await a()).validate(e,r.portalItemLayerType);if(!t.length)return;const i=`Layer item did not validate:\n${t.join("\n")}`;if(o.A.getLogger(this).error(`_validateAgainstJSONSchema(): ${i}`),"throw"===n.failPolicy){const e=t.map(e=>new s.A("sceneservice:schema-validation",e));throw new s.A("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{validationErrors:e})}}}};return(0,n.Cg)([(0,l.MZ)(f.id)],r.prototype,"id",void 0),(0,n.Cg)([(0,l.MZ)({type:d.A})],r.prototype,"spatialReference",void 0),(0,n.Cg)([(0,M.w)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readSpatialReference",null),(0,n.Cg)([(0,l.MZ)({type:c.A})],r.prototype,"fullExtent",void 0),(0,n.Cg)([(0,M.w)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readFullExtent",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,type:p.A})],r.prototype,"heightModelInfo",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],r.prototype,"minScale",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],r.prototype,"maxScale",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,n.Cg)([(0,M.w)("version",["store.version"])],r.prototype,"readVersion",null),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:!1}})],r.prototype,"sublayerTitleMode",void 0),(0,n.Cg)([(0,l.MZ)({type:String})],r.prototype,"title",void 0),(0,n.Cg)([(0,M.w)("portal-item","title")],r.prototype,"readTitlePortalItem",null),(0,n.Cg)([(0,M.w)("service","title",["name"])],r.prototype,"readTitleService",null),(0,n.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],r.prototype,"layerId",void 0),(0,n.Cg)([(0,l.MZ)((0,g.b)({separator:"layers"}))],r.prototype,"url",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"store",void 0),(0,n.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],r.prototype,"rootNode",void 0),r=(0,n.Cg)([(0,l.$K)("esri.layers.mixins.SceneService")],r),r},C=-1e38;function A(e){if(null!=e.spatialReference)return d.A.fromJSON(e.spatialReference);const t=e.store,r=t.indexCRS||t.geographicCRS,n=r&&parseInt(r.slice(r.lastIndexOf("/")+1),10);return null!=n?new d.A(n):null}function I(e,t){if(null==t?.center||null==t.halfSize)throw new s.A("sceneservice:invalid-node-page","Invalid node page.");if(t.center[0]<C)return;const r=t.halfSize,n=t.center[2],i=Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);e.zmin=n-i,e.zmax=n+i}function j(e,t,r){e.typeKeywords||(e.typeKeywords=[]);const n=t.getTypeKeywords();for(const t of n)e.typeKeywords.push(t);e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t),1===r&&(e.typeKeywords=e.typeKeywords.filter(e=>"Hosted Service"!==e)))}const R="Scene Service",Z={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}}},60999:(e,t,r)=>{r.d(t,{DZ:()=>f,Ke:()=>h,Tj:()=>c,UT:()=>y,aD:()=>m,jJ:()=>u});var n=r(31635),i=r(69622),s=r(97768),o=r(74887),a=r(10107),l=r(64108);function u(e,t,r){return(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function c(e,t,r){return(await(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return d(e)}}async function f(e){try{return p(await e)}catch(e){return(0,o.QP)(e),d(e)}}function y(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class m{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},62885:(e,t,r)=>{r.d(t,{H:()=>s,V:()=>i});var n=r(7762);function i(e,t,r=n.A){return t||(t=new r),t===e||t.destroyed||(t.removeAll(),(i=e)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?t.addMany(e):e&&t.add(e)),t;var i}function s(e){return e}},67026:(e,t,r)=>{r.d(t,{A6:()=>y,Xd:()=>c,Xr:()=>h,hZ:()=>m,lw:()=>p,t2:()=>R,x8:()=>u});var n=r(29242),i=r(82534),s=r(51850),o=r(34304),a=r(38954),l=r(87317);function u(e,t,r){r*=.5;const n=Math.sin(r);return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(r),e}function c(e,t){const r=2*Math.acos(t[3]),n=Math.sin(r/2);return n>(0,o.FD)()?(e[0]=t[0]/n,e[1]=t[1]/n,e[2]=t[2]/n):(e[0]=1,e[1]=0,e[2]=0),r}function p(e,t,r){const n=t[0],i=t[1],s=t[2],o=t[3],a=r[0],l=r[1],u=r[2],c=r[3];return e[0]=n*c+o*a+i*u-s*l,e[1]=i*c+o*l+s*a-n*u,e[2]=s*c+o*u+n*l-i*a,e[3]=o*c-n*a-i*l-s*u,e}function d(e,t,r,n){const i=t[0],s=t[1],a=t[2],l=t[3];let u,c,p,d,h,f=r[0],y=r[1],g=r[2],m=r[3];return c=i*f+s*y+a*g+l*m,c<0&&(c=-c,f=-f,y=-y,g=-g,m=-m),1-c>(0,o.FD)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-n)*u)/p,h=Math.sin(n*u)/p):(d=1-n,h=n),e[0]=d*i+h*f,e[1]=d*s+h*y,e[2]=d*a+h*g,e[3]=d*l+h*m,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function f(e,t){const r=t[0]+t[4]+t[8];let n;if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{let r=0;t[4]>t[0]&&(r=1),t[8]>t[3*r+r]&&(r=2);const i=(r+1)%3,s=(r+2)%3;n=Math.sqrt(t[3*r+r]-t[3*i+i]-t[3*s+s]+1),e[r]=.5*n,n=.5/n,e[3]=(t[3*i+s]-t[3*s+i])*n,e[i]=(t[3*i+r]+t[3*r+i])*n,e[s]=(t[3*s+r]+t[3*r+s])*n}return e}function y(e,t,r,n){const i=.5*Math.PI/180;t*=i,r*=i,n*=i;const s=Math.sin(t),o=Math.cos(t),a=Math.sin(r),l=Math.cos(r),u=Math.sin(n),c=Math.cos(n);return e[0]=s*l*c-o*a*u,e[1]=o*a*c+s*l*u,e[2]=o*l*u-s*a*c,e[3]=o*l*c+s*a*u,e}const g=l.f,m=l.c,v=l.i,b=p,w=l.s,S=l.h,M=l.l,x=l.j,C=x,A=l.d,I=A,j=l.n,R=l.a,Z=l.e,T=(0,s.vt)(),P=(0,s.fA)(1,0,0),N=(0,s.fA)(0,1,0),_=(0,i.vt)(),V=(0,i.vt)(),O=(0,n.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){const r=t[0],n=t[1],i=t[2];return e[0]=r,e[1]=n,e[2]=i,e[3]=Math.sqrt(Math.abs(1-r*r-n*n-i*i)),e},conjugate:h,copy:g,dot:S,equals:Z,exactEquals:R,fromEuler:y,fromMat3:f,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const r=t[0],n=t[1],i=t[2],s=t[3],o=r*r+n*n+i*i+s*s,a=o?1/o:0;return e[0]=-r*a,e[1]=-n*a,e[2]=-i*a,e[3]=s*a,e},len:C,length:x,lerp:M,mul:b,multiply:p,normalize:j,random:function(e){const t=o.Ov,r=t(),n=t(),i=t(),s=Math.sqrt(1-r),a=Math.sqrt(r);return e[0]=s*Math.sin(2*Math.PI*n),e[1]=s*Math.cos(2*Math.PI*n),e[2]=a*Math.sin(2*Math.PI*i),e[3]=a*Math.cos(2*Math.PI*i),e},rotateX:function(e,t,r){r*=.5;const n=t[0],i=t[1],s=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=n*l+o*a,e[1]=i*l+s*a,e[2]=s*l-i*a,e[3]=o*l-n*a,e},rotateY:function(e,t,r){r*=.5;const n=t[0],i=t[1],s=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=n*l-s*a,e[1]=i*l+o*a,e[2]=s*l+n*a,e[3]=o*l-i*a,e},rotateZ:function(e,t,r){r*=.5;const n=t[0],i=t[1],s=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=n*l+i*a,e[1]=i*l-n*a,e[2]=s*l+o*a,e[3]=o*l-s*a,e},rotationTo:function(e,t,r){const n=(0,a.g)(t,r);return n<-.999999?((0,a.f)(T,P,t),(0,a.u)(T)<1e-6&&(0,a.f)(T,N,t),(0,a.n)(T,T),u(e,T,Math.PI),e):n>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,a.f)(T,t,r),e[0]=T[0],e[1]=T[1],e[2]=T[2],e[3]=1+n,j(e,e))},scale:w,set:m,setAxes:function(e,t,r,n){const i=O;return i[0]=r[0],i[3]=r[1],i[6]=r[2],i[1]=n[0],i[4]=n[1],i[7]=n[2],i[2]=-t[0],i[5]=-t[1],i[8]=-t[2],j(e,f(e,i))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,r,n,i,s){return d(_,t,i,s),d(V,r,n,s),d(e,_,V,2*s*(1-s)),e},sqrLen:I,squaredLength:A,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},68197:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(40876),i=r(4576),s=r(34727),o=r(56507);function a(e){return(0,s.qE)((0,o.Vr)(e),0,255)}function l(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class u{static blendColors(e,t,r,n=new u){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=(0,n.lT)(e);return r?u.fromArray(r,t):null}static fromHex(e,t=new u){const r=(0,n.oW)(e);return r?u.fromArray(r,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.Eq)(e);return r?u.fromArray(r,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e,t){return null==e?null:(t??=[0,0,0,0],t[0]=e.r/255,t[1]=e.g/255,t[2]=e.b/255,t[3]=null!=e.a?e.a:1,t)}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,i.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,s=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=a(this.r),r=a(this.g),n=a(this.b);return 0===e||1!==this.a?[t,r,n,a(255*this.a)]:[t,r,n]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}u.prototype.declaredClass="esri.Color"},69052:(e,t,r)=>{r.d(t,{hr:()=>i,ie:()=>l,uC:()=>a});var n=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,n,i=0,s=!1){return(n-=i)<t?n+=o(e,t-n):n>r&&(n-=o(e,n-r)),s&&n===r&&(n=t),n+i}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new i(0,2*Math.PI),l=(new i(-Math.PI,Math.PI),new i(0,360))},69208:(e,t,r)=>{r.d(t,{d:()=>s});var n=r(31635),i=r(91429);const s=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}},69540:(e,t,r)=>{r.d(t,{OU:()=>c,Pw:()=>p});var n=r(31635),i=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),a=r(88620),l=r(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const r=e;let i=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,n=t.store,i={},l=new Map;for(const t in r){const o=r[t],a=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let p=null;if("function"==typeof u)p=u(c,e);else if("reference"===u)p=c;else if(p=(0,s.TU)(c,e),null!=c&&null==p)continue;0===a?l.set(t,p):i[t]=p}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,r]of l)e.set(t,r,0)}return u}};return i=(0,n.Cg)([(0,l.$)("esri.core.Clonable")],i),i},p=c(i.A)},73133:(e,t,r)=>{r.d(t,{j:()=>n});const n=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73179:(e,t,r)=>{r.d(t,{b:()=>l,h:()=>u});var n=r(4718),i=r(53966),s=r(84952),o=r(60694),a=r(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},s=(0,n.o8)(a.OZ),l=s.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,n,i){(0,o.LS)(this,e,r,t,i)}),{...s,set:function(e){if(null==e)return void this._set("url",e);const r=(0,o.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:i.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){const{separator:r}=t??{},n=(0,s.An)(e.url);return null!=n&&(null!=e.dynamicDataSource?n.path=(0,s.fj)(n.path,"dynamicLayer"):null!=e.layerId&&(n.path=(0,s.fj)(n.path,r??"",e.layerId.toString()))),n}},76553:(e,t,r)=>{function n(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>n})},80200:(e,t,r)=>{r.d(t,{T:()=>n,d:()=>y});const n={Base64:0,Hex:1,String:2,Raw:3},i=8,s=(1<<i)-1;function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e){const t=[];for(let r=0,n=e.length*i;r<n;r+=i)t[r>>5]|=(e.charCodeAt(r/i)&s)<<r%32;return t}function l(e){const t=[];for(let r=0,n=32*e.length;r<n;r+=i)t.push(String.fromCharCode(e[r>>5]>>>r%32&s));return t.join("")}function u(e,t,r,n,i,s){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(n,s)),i),r)}function c(e,t,r,n,i,s,o){return u(t&r|~t&n,e,t,i,s,o)}function p(e,t,r,n,i,s,o){return u(t&n|r&~n,e,t,i,s,o)}function d(e,t,r,n,i,s,o){return u(t^r^n,e,t,i,s,o)}function h(e,t,r,n,i,s,o){return u(r^(t|~n),e,t,i,s,o)}function f(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,n=-271733879,i=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=n,u=i,f=s;r=c(r,n,i,s,e[t],7,-680876936),s=c(s,r,n,i,e[t+1],12,-389564586),i=c(i,s,r,n,e[t+2],17,606105819),n=c(n,i,s,r,e[t+3],22,-1044525330),r=c(r,n,i,s,e[t+4],7,-176418897),s=c(s,r,n,i,e[t+5],12,1200080426),i=c(i,s,r,n,e[t+6],17,-1473231341),n=c(n,i,s,r,e[t+7],22,-45705983),r=c(r,n,i,s,e[t+8],7,1770035416),s=c(s,r,n,i,e[t+9],12,-1958414417),i=c(i,s,r,n,e[t+10],17,-42063),n=c(n,i,s,r,e[t+11],22,-1990404162),r=c(r,n,i,s,e[t+12],7,1804603682),s=c(s,r,n,i,e[t+13],12,-40341101),i=c(i,s,r,n,e[t+14],17,-1502002290),n=c(n,i,s,r,e[t+15],22,1236535329),r=p(r,n,i,s,e[t+1],5,-165796510),s=p(s,r,n,i,e[t+6],9,-1069501632),i=p(i,s,r,n,e[t+11],14,643717713),n=p(n,i,s,r,e[t],20,-373897302),r=p(r,n,i,s,e[t+5],5,-701558691),s=p(s,r,n,i,e[t+10],9,38016083),i=p(i,s,r,n,e[t+15],14,-660478335),n=p(n,i,s,r,e[t+4],20,-405537848),r=p(r,n,i,s,e[t+9],5,568446438),s=p(s,r,n,i,e[t+14],9,-1019803690),i=p(i,s,r,n,e[t+3],14,-187363961),n=p(n,i,s,r,e[t+8],20,1163531501),r=p(r,n,i,s,e[t+13],5,-1444681467),s=p(s,r,n,i,e[t+2],9,-51403784),i=p(i,s,r,n,e[t+7],14,1735328473),n=p(n,i,s,r,e[t+12],20,-1926607734),r=d(r,n,i,s,e[t+5],4,-378558),s=d(s,r,n,i,e[t+8],11,-2022574463),i=d(i,s,r,n,e[t+11],16,1839030562),n=d(n,i,s,r,e[t+14],23,-35309556),r=d(r,n,i,s,e[t+1],4,-1530992060),s=d(s,r,n,i,e[t+4],11,1272893353),i=d(i,s,r,n,e[t+7],16,-155497632),n=d(n,i,s,r,e[t+10],23,-1094730640),r=d(r,n,i,s,e[t+13],4,681279174),s=d(s,r,n,i,e[t],11,-358537222),i=d(i,s,r,n,e[t+3],16,-722521979),n=d(n,i,s,r,e[t+6],23,76029189),r=d(r,n,i,s,e[t+9],4,-640364487),s=d(s,r,n,i,e[t+12],11,-421815835),i=d(i,s,r,n,e[t+15],16,530742520),n=d(n,i,s,r,e[t+2],23,-995338651),r=h(r,n,i,s,e[t],6,-198630844),s=h(s,r,n,i,e[t+7],10,1126891415),i=h(i,s,r,n,e[t+14],15,-1416354905),n=h(n,i,s,r,e[t+5],21,-57434055),r=h(r,n,i,s,e[t+12],6,1700485571),s=h(s,r,n,i,e[t+3],10,-1894986606),i=h(i,s,r,n,e[t+10],15,-1051523),n=h(n,i,s,r,e[t+1],21,-2054922799),r=h(r,n,i,s,e[t+8],6,1873313359),s=h(s,r,n,i,e[t+15],10,-30611744),i=h(i,s,r,n,e[t+6],15,-1560198380),n=h(n,i,s,r,e[t+13],21,1309151649),r=h(r,n,i,s,e[t+4],6,-145523070),s=h(s,r,n,i,e[t+11],10,-1120210379),i=h(i,s,r,n,e[t+2],15,718787259),n=h(n,i,s,r,e[t+9],21,-343485551),r=o(r,a),n=o(n,l),i=o(i,u),s=o(s,f)}return[r,n,i,s]}function y(e,t=n.Hex){const r=t||n.Base64,s=f(a(e),e.length*i);switch(r){case n.Raw:return s;case n.Hex:return function(e){const t="0123456789abcdef",r=[];for(let n=0,i=4*e.length;n<i;n++)r.push(t.charAt(e[n>>2]>>n%4*8+4&15)+t.charAt(e[n>>2]>>n%4*8&15));return r.join("")}(s);case n.String:return l(s);case n.Base64:return function(e){const t=[];for(let r=0,n=4*e.length;r<n;r+=3){const n=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let i=0;i<4;i++)8*r+6*i>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-i)&63))}return t.join("")}(s)}}},82534:(e,t,r)=>{function n(){return[0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>i,vt:()=>n,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:n,fromValues:function(e,t,r,n){return[e,t,r,n]}},Symbol.toStringTag,{value:"Module"}))},83898:(e,t,r)=>{r.d(t,{F:()=>s});var n=r(11254),i=r(49186);async function s(e,t,r,s,o,a,l){let u=null;if(null!=r){const t=`${e}/nodepages/`,i=t+Math.floor(r.rootIndex/r.nodesPerPage);try{return{type:"page",rootPage:(await(0,n.A)(i,{query:{f:"json",...s,token:o},responseType:"json",signal:l})).data,rootIndex:r.rootIndex,pageSize:r.nodesPerPage,lodMetric:r.lodSelectionMetricType,urlPrefix:t}}catch(e){null!=a&&a.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",i,e),u=e}}if(!t)return null;const c=t?.split("/").pop(),p=`${e}/nodes/`,d=p+c;try{return{type:"node",rootNode:(await(0,n.A)(d,{query:{f:"json",...s,token:o},responseType:"json",signal:l})).data,urlPrefix:p}}catch(e){throw new i.A("sceneservice:root-node-missing","Root node missing.",{pageError:u,nodeError:e,url:d})}}},85648:(e,t,r)=>{r.d(t,{n:()=>i});var n=r(84952);function i(e){return s[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,n.Zo)(e);return l[t]||o}(e.url)}(e)]||a}const s={},o="text/plain",a=s[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)s[l[e]]=e},87024:(e,t,r)=>{r.d(t,{P:()=>h});var n=r(49186),i=r(80200),s=r(76553),o=r(84952),a=r(13069),l=r(96156),u=r(35666),c=r(10107),p=r(85648),d=r(97159);function h(e){const t=e?.origins??[void 0];return(r,n)=>{const i=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const n=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const i=(0,d.r)(e,t,r);return n.type===String?i:"function"==typeof n.type?new n.type({url:i}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(t,i,a,l){if(!l?.resources)return"string"==typeof t?void(i[a]=(0,d.t)(t,l)):void(i[a]=t.write({},l));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(c,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),m=n.type!==String&&(!(0,s.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:i,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,o.oP)(h)?m&&e?.contentAddressed?f(v):m?function(e){const{context:t,targetUrl:r,params:n,value:i,dest:s,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=g(i,r,t),c=(0,p.n)(u),d=(0,o.Zo)(l.path),h=n?.compress??!1;c===d?(t.resources&&y({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),s[a]=r):f(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:n}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[n]=t)}(v):l?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,o.w8)(h)||m)?f(v):i[a]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.b;return{read:e,write:t}}}}(e,r,n);for(const e of t){const t=(0,c.rM)(r,e,n);for(const e in i)t[e]=i[e]}}}function f(e){const{targetUrl:t,params:r,value:s,context:l,dest:u,targetPropertyName:c}=e;if(!l.portalItem)return;const h=(0,d.p)(t),f=g(s,t,l);if(r?.contentAddressed&&"json"!==f.type)return void l.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${f.type} with content addressing. Content addressing is only supported for json resources.`,{content:f}));const m=r?.contentAddressed&&"json"===f.type?(0,i.d)(f.jsonString):h?.filename??(0,a.lk)(),v=(0,o.fj)(r?.prefix??h?.prefix,m),b=`${v}.${(0,p.n)(f)}`;if(r?.contentAddressed&&l.resources&&"json"===f.type){const e=l.resources.toKeep.find(({resource:e})=>e.path===b)??l.resources.toAdd.find(({resource:e})=>e.path===b);if(e)return void(u[c]=e.resource.itemRelativeUrl)}const w=l.portalItem.resourceFromPath(b);(0,o.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.tk)(t).then(e=>{w.path=`${v}.${(0,p.n)({type:"blob",blob:e})}`,u[c]=w.itemRelativeUrl}).catch(()=>{}));const S=r?.compress??!1;l.resources&&y({...e,resource:w,content:f,compress:S,updates:l.resources.toAdd}),u[c]=w.itemRelativeUrl}function y({object:e,propertyName:t,updates:r,resource:n,content:i,compress:s}){r.push({resource:n,content:i,compress:s,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function g(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},88788:(e,t,r)=>{r.d(t,{m:()=>o,v:()=>s});var n=r(84952),i=r(20655);function s(e,t){return{...a(e,t),readResourcePaths:[]}}function o(e,t,r){const i=(0,n.An)(e.itemUrl);return{...a(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:i?{rootPath:i.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function a(e,t){return{origin:t,url:(0,n.An)(e.itemUrl),portal:e.portal||i.A.getDefault(),portalItem:e}}},89808:(e,t,r)=>{r.d(t,{Q:()=>n});const n=Symbol("getSliceableSymbol")},91218:(e,t,r)=>{r.r(t),r.d(t,{canProjectWithoutEngine:()=>D,initializeProjection:()=>K,isEqualBaseGCS:()=>k,isLoaded:()=>Z,isLoadedOrLoad:()=>T,isLoadedOrLoadFor:()=>P,load:()=>_,project:()=>V,projectAsync:()=>$,projectExtent:()=>te,projectMany:()=>O,projectMultipoint:()=>J,projectOrLoad:()=>F,projectOrLoadMany:()=>U,projectPoint:()=>H,projectPolygon:()=>X,projectPolyline:()=>Y,projectWithoutEngine:()=>B,requiresLoad:()=>N,test:()=>E,tryProject:()=>z,unload:()=>L});var n=r(49186),i=r(74887),s=r(62788),o=r(95488),a=r(51850),l=r(21276),u=r(73941),c=r(5443),p=r(91075),d=r(48526),h=r(86738),f=r(39829),y=r(82799),g=r(16930),m=r(159),v=r(9762),b=r(37539);function w(e,t,r,n,i,s){return S[0]=e,S[1]=t,S[2]=r,(0,v.projectBuffer)(S,n,0,i,s,0)}const S=(0,a.vt)();var M=r(21325);let x=null,C=null,A=null,I=null,j={};const R=new o.I;function Z(){return!!(C?.isLoaded()&&A?.isLoaded()&&I?.isLoaded())}function T(){return!!Z()||((0,s.gc)(R),_(),!1)}function P(e,t){return!e||!t||D(e,t)||T()}function N(e,t){return!D(e,t)&&!Z()}async function _(e){null==x&&(x=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(C=e,C.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(A=e,A.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(I=e,I.load()))])),await x,(0,i.Te)(e),R.notify()}function V(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),O(e,e[0].spatialReference,t,r)):((0,l.f)(e),O([e],e.spatialReference,t,r)[0])}function O(e,t,r,n){if(null==t||null==r)return e;if(D(t,r,n))return e.map(e=>B(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return O(e.map(e=>B(e,t,g.A.WGS84)),g.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return O(e,t,g.A.WGS84).map(e=>B(e,g.A.WGS84,r));if(!Z())throw new q;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:I.getTransformation(t,r,n.areaOfInterestExtent)||new m.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let i=j[e];i||(i=I.getTransformation(t,r)||new m.A,j[e]=i),n={geographicTransformation:i,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?C.executeMany(e,r,n):A.executeMany(e,r,n)}function z(e,t,r){try{return V(e,t,r)}catch(e){if(e instanceof q)return null;throw e}}function F(e,t){const r=U([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function U(e,t,r){if(!Z())for(const r of e)if(null!=r&&!(0,M.aI)(r.spatialReference,t)&&(0,M.fn)(r.spatialReference)&&(0,M.fn)(t)&&!D(r.spatialReference,t))return(0,s.gc)(R),{pending:_(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,M.aI)(e.spatialReference,t)?e:(0,M.fn)(e.spatialReference)&&(0,M.fn)(t)?V(e,t,r):null)}}class q extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function L(){x=null,C=null,A=null,I=null,j={}}const E={get loadPromise(){return x}};async function $(e,t,r){if((0,i.Te)(r),!e)return e;const n=U(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,i.Te)(r),$(e,t,r);const s=n.geometries??[];return Array.isArray(e)?s:s[0]}function D(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,M.aI)(e,t)||(0,M.fn)(e)&&(0,M.fn)(t)&&!!(0,b.jd)(e,t))}function k(e,t){if((0,M.aI)(e,t))return!0;if(!(0,M.fn)(e)||!(0,M.fn)(t))return!1;const r=(0,M.oT)(e)||(0,M.K8)(e)||(0,M.x1)(e),n=(0,M.oT)(t)||(0,M.K8)(t)||(0,M.x1)(t);return r&&n}async function K(e,t,r,n){if(Z())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!D(t,r,i))return _(n)}else if(e&&t&&!D(e,t,r))return _(n);return(0,i.NO)(n)}function B(e,t,r){return e?"x"in e?G(e,t,new h.A,r,0):"xmin"in e?re(e,t,new c.A,r,0):"rings"in e?ee(e,t,new f.A,r,0):"paths"in e?Q(e,t,new y.A,r,0):"points"in e?W(e,t,new d.A,r,0):null:null}function H(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=G(e,e.spatialReference,t,r,n)}function G(e,t,r,n,i){ie[0]=e.x,ie[1]=e.y;const s=e.z;return ie[2]=void 0!==s?s:i,(0,v.projectBuffer)(ie,t,0,ie,n,0)?(r.x=ie[0],r.y=ie[1],r.spatialReference=n,void 0!==s||(0,u.xP)(n)?(r.z=ie[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function J(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=W(e,e.spatialReference,t,r,n)}function W(e,t,r,n,i){const{points:s,hasZ:o,hasM:a}=e,l=[],c=s.length,p=[];for(const e of s)p.push(e[0],e[1],o?e[2]:i);if(!(0,v.projectBuffer)(p,t,0,p,n,0,c))return null;const d=o||(0,u.xP)(n);for(let e=0;e<c;++e){const t=3*e,r=p[t],n=p[t+1];d&&a?l.push([r,n,p[t+2],s[e][3]]):d?l.push([r,n,p[t+2]]):a?l.push([r,n,s[e][2]]):l.push([r,n])}return r.points=l,r.spatialReference=n,r.hasZ=o,r.hasM=a,r}function Y(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=Q(e,e.spatialReference,t,r,n)}function Q(e,t,r,n,i){const{paths:s,hasZ:o,hasM:a}=e,l=[];if(!ne(s,o??!1,a??!1,t,l,n,i))return null;const c=o||(0,u.xP)(n);return r.paths=l,r.spatialReference=n,r.hasZ=c,r.hasM=a,r}function X(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ee(e,e.spatialReference,t,r,n)}function ee(e,t,r,n,i){const{rings:s,hasZ:o,hasM:a}=e,l=[];if(!ne(s,o??!1,a??!1,t,l,n,i))return null;const c=o||(0,u.xP)(n);return r.rings=l,r.spatialReference=n,r.hasZ=c,r.hasM=a,r}function te(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=re(e,e.spatialReference,t,r,n)}function re(e,t,r,n,i){const{xmin:s,ymin:o,xmax:a,ymax:l,hasZ:c,hasM:p}=e;if(!w(s,o,c?e.zmin:i,t,ie,n))return null;const d=c||(0,u.xP)(n);return r.xmin=ie[0],r.ymin=ie[1],d&&(r.zmin=ie[2]),w(a,l,c?e.zmax:i,t,ie,n)?(r.xmax=ie[0],r.ymax=ie[1],d&&(r.zmax=ie[2]),p&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function ne(e,t,r,n,i,s,o=0){const a=new Array;for(const r of e)for(const e of r)a.push(e[0],e[1],t?e[2]:o);if(!(0,v.projectBuffer)(a,n,0,a,s,0))return!1;let l=0;i.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const n of t)c&&r?e.push([a[l++],a[l++],a[l++],n[3]]):c?e.push([a[l++],a[l++],a[l++]]):r?(e.push([a[l++],a[l++],n[2]]),l++):(e.push([a[l++],a[l++]]),l++);i.push(e)}return!0}const ie=(0,a.vt)()},91682:(e,t,r)=>{r.d(t,{S:()=>l,r:()=>a});var n=r(49186),i=r(74887),s=r(13069),o=r(15804);async function a(e,t,r){const n=await u(e,t,r);await c(n,t,r)}async function l(e,t,r,n,i){const s=await u(r,n,i);await e.update({data:t}),await c(s,n,i)}async function u(e,t,a){if(!t?.resources)return;const l=t.portalItem===e.portalItem?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem;const u=new Set(t.resources.toKeep.map(e=>e.resource.path)),c=new Set,p=[];u.forEach(t=>{l.delete(t),e.paths.push(t)});const d=[],h=[],f=[];for(const r of t.resources.toUpdate)if(l.delete(r.resource.path),u.has(r.resource.path)||c.has(r.resource.path)){const{resource:t,content:n,finish:i}=r,a=(0,o.bg)(t,(0,s.lk)());e.paths.push(a.path),d.push({resource:a,content:await(0,o.cL)(n),compress:r.compress}),i&&f.push(()=>i(a))}else{e.paths.push(r.resource.path),h.push({resource:r.resource,content:await(0,o.cL)(r.content),compress:r.compress});const t=r.finish;t&&f.push(()=>t(r.resource)),c.add(r.resource.path)}for(const r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{d.push({resource:r.resource,content:await(0,o.cL)(r.content),compress:r.compress});const e=r.finish;e&&f.push(()=>e(r.resource))}if(d.length||h.length){const{addOrUpdateResources:e}=await Promise.resolve().then(r.bind(r,15804));await e(t.portalItem,d,"add",a),await e(t.portalItem,h,"update",a)}if(f.forEach(e=>e()),0===p.length)return l;const y=await(0,i.Ol)(p);if((0,i.Te)(a),y.length>0)throw new n.A("save:resources","Failed to save one or more resources",{errors:y});return l}async function c(e,t,r){if(!e||!t.portalItem)return;const n=[];for(const i of e){const e=t.portalItem.resourceFromPath(i);n.push(e.portalItem.removeResource(e,r))}await(0,i.Lx)(n)}},95466:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(49186),i=r(53966),s=r(91869),o=r(3330),a=r(12195),l=r(30524),u=r(98623),c=r(56400),p=r(28097);const d=new Map;class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],m(e))}static fromLayerJSON(e){return new h(e.fields??[],m(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 r=[];for(const e of this.fields){const t=e?.name,n=y(t);if(t&&n){const i=f(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(n,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(f(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):g.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.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,a.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function f(e){return e.trim().toLowerCase()}function y(e){return(0,l.rS)(e)?.toLowerCase()??""}const g=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function m(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:i}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",o=(n?"endField"in n?n.endField:n.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,l=i?function(e){return"timeZone"in e}(i)?i.timeZone??a:i.dateFieldsTimeReference?(0,c.ZS)(i.dateFieldsTimeReference):a??u.n$:null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??a:n.timeReference?(0,c.ZS)(n.timeReference):a:null,d=new Map([[f(i?.creationDateField??""),l],[f(i?.editDateField??""),l],[f(s),p],[f(o),p]]);for(const{name:n,type:i}of e.fields)if(g.has(i))t.set(n,u.L5);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(n,null);else if(r)t.set(n,u.L5);else{const e=d.get(f(n??""))??a;t.set(n,e)}return t}},96184:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(31635),i=r(69540),s=r(25482),o=r(91429),a=r(79677),l=r(10184),u=r(56400),c=r(36005),p=r(43937);function d(e,t){return l.A.fromJSON({value:e,unit:t})}let h=class extends((0,i.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?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,p.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,n.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,n.Cg)([(0,p.K)("interval")],h.prototype,"writeInterval",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,n.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,n.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,n.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],h)},99157:(e,t,r)=>{r.d(t,{A:()=>a});var n,i=r(31635),s=r(69622),o=r(91429);let a=n=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=n=(0,i.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},99959:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(31635),i=r(91429);let s=class{};s=(0,n.Cg)([(0,i.$K)("esri.graphic.GraphicOrigin")],s)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1005,5804],{159:(e,t,r)=>{r.d(t,{A:()=>l});var n,i=r(31635),s=r(69622),o=r(91429),a=r(99157);let l=n=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,i.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],l.prototype,"steps",void 0),l=n=(0,i.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformation")],l)},8303:(e,t,r)=>{r.d(t,{A:()=>S});var n=r(31635),i=r(92602),s=r(70333),o=r(11254),a=r(60999),l=r(49186),u=r(53966),c=r(97768),p=r(74887),d=r(84952),h=r(91429),f=r(77548),y=r(20655),g=r(80812),m=r(41318),v=r(10407),b=r(36005),w=r(43937);const S=e=>{const t=e;let S=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let o,a;if(i)o=r.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await r.reload():(r=new g.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,p.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=y.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(n))return i.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?m.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||y.A.getDefault());return r&&n&&!(0,d.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,h.MZ)({type:g.default})],S.prototype,"portalItem",null),(0,n.Cg)([(0,b.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,n.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,n.Cg)([(0,h.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,n.Cg)([(0,h.$K)("esri.layers.mixins.PortalLayer")],S),S},M={credential:null,user:null}},9762:(e,t,r)=>{r.r(t),r.d(t,{projectBuffer:()=>i});var n=r(37539);function i(e,t,r,i,s,o,a=Math.floor(e.length/3)){const l=(0,n.jd)(t,s);if(null==l)return!1;if(l===n.pO){if(e===i&&r===o)return!0;const t=r+3*a;for(let n=r,s=o;n<t;n++,s++)i[s]=e[n]??0;return!0}const u=r+3*a;for(let t=r,n=o;t<u;t+=3,n+=3)l(e,t,i,n);return!0}},10184:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(31635),i=r(69540),s=r(25482),o=r(88930),a=r(91429),l=r(73133),u=r(93223);let c=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,u.e)(l.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,n.Cg)([(0,a.$K)("esri.time.TimeInterval")],c)},10407:(e,t,r)=>{r.d(t,{It:()=>h,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>p});var n=r(91218),i=r(16930),s=r(28735);function o(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function c(e,t,r){r?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.project)(e,r)}(r)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function h(e){const{portal:t,isOrgItem:r,itemControl:n}=e,i=t.user?.privileges;let s=!i||i.includes("features:user:edit"),o=!!r&&!!i?.includes("features:user:fullEdit");const a="update"===n||"admin"===n;return a?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:a}}}},13069:(e,t,r)=>{r.d(t,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>s});const n="randomUUID"in crypto;function i(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},15804:(e,t,r)=>{r.d(t,{addOrUpdateResources:()=>a,bg:()=>d,cL:()=>p,fetchResources:()=>o,removeAllResources:()=>u,removeResource:()=>l});var n=r(11254),i=r(49186),s=r(84952);async function o(e,t={},r){await e.load(r);const n=(0,s.fj)(e.itemUrl,"resources"),{start:i=1,num:o=10,sortOrder:a="asc",sortField:l="resource"}=t,u={query:{start:i,num:o,sortOrder:a,sortField:l,token:e.apiKey},signal:r?.signal},c=await e.portal.request(n,u);return{total:c.total,nextStart:c.nextStart,resources:c.resources.map(({created:t,size:r,resource:n})=>({created:new Date(t),size:r,resource:e.resourceFromPath(n)}))}}async function a(e,t,r,n){const o=new Map;for(const{resource:e,content:n,compress:s,access:a}of t){if(!e.hasPath())throw new i.A(`portal-item-resource-${r}:invalid-path`,"Resource does not have a valid path");const[t,l]=c(e.path),u=`${t}/${s??""}/${a??""}`;o.has(u)||o.set(u,{prefix:t,compress:s,access:a,files:[]}),o.get(u).files.push({fileName:l,content:n})}await e.load(n);const a=(0,s.fj)(e.userItemUrl,"add"===r?"addResources":"updateResources");for(const{prefix:t,compress:r,access:i,files:s}of o.values()){const o=25;for(let l=0;l<s.length;l+=o){const u=s.slice(l,l+o),c=new FormData;t&&"."!==t&&c.append("resourcesPrefix",t),r&&c.append("compress","true"),i&&c.append("access",i);let p=0;for(const{fileName:e,content:t}of u)c.append("file"+ ++p,t,e);c.append("f","json"),await e.portal.request(a,{method:"post",body:c,signal:n?.signal})}}}async function l(e,t,r){if(!t.hasPath())throw new i.A("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);const n=(0,s.fj)(e.userItemUrl,"removeResources");await e.portal.request(n,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function u(e,t){await e.load(t);const r=(0,s.fj)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function c(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function p(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,n.A)(e.url,{responseType:"blob"})).data}function d(e,t){if(!e.hasPath())return null;const[r,,n]=function(e){const[t,r]=function(e){const t=(0,s.Zo)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[n,i]=c(t);return[n,i,r]}(e.path);return e.portalItem.resourceFromPath((0,s.fj)(r,t+n))}},18768:(e,t,r)=>{r.d(t,{b:()=>a});var n=r(31635),i=r(53966),s=r(91429),o=r(60694);const a=e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.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,o.Jf)(e,i.A.getLogger(this)))}};return(0,n.Cg)([(0,s.MZ)()],r.prototype,"title",null),(0,n.Cg)([(0,s.MZ)({type:String})],r.prototype,"url",null),r=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISService")],r),r}},21005:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ke});var n=r(31635),i=r(37838),s=r(7762),o=r(49186),a=r(53966),l=r(25728),u=r(74887),c=r(91429),p=r(56507),d=r(38954),h=r(51850),f=r(5443),y=r(60950),g=r(89808),m=r(99959);const v=Symbol("isVoxelGraphicOrigin");var b;class w extends m.A{get[(b=v,y.ym)](){return this.layer}get[g.Q](){return this.layer}constructor(e){super(),this[b]=!0,this.type="voxel",this.layer=e}get id(){return this.layer.id}}var S=r(4146),M=r(52136),x=r(18768),C=r(69208),A=r(16131),I=r(8303),j=r(25036),R=r(58947),Z=r(60694),T=r(10873),P=r(20437),N=r(95466),_=r(96184),V=r(69540),O=r(69052),z=r(25482),F=r(87024),U=r(67026),q=r(82534),L=r(34304);const E=(0,h.vt)(),$=(0,q.vt)(),D=(0,q.vt)(),k=(0,q.vt)(),K=(0,h.fA)(0,0,1),B=(0,h.fA)(0,1,0),H=(0,h.fA)(1,0,0);function G(e){(0,d.d)(E,e),(0,d.n)(E,E);const t=Math.atan2(E[1],E[0]),r=(0,U.x8)((0,q.vt)(),K,-t);(0,d.r)(E,E,r);const n=-1*Math.atan2(E[2],E[0]);return[(0,L.ct)(t)+270,(0,L.ct)(n)+90]}function J(e,t){return(0,U.x8)(D,K,(0,L.DF)(e-270)),(0,U.x8)(k,B,(0,L.DF)(t-90)),(0,U.lw)($,D,k),(0,d.d)(E,H),(0,d.r)(E,E,$),(0,d.n)(E,E),[E[0],E[1],E[2]]}let W=class extends((0,V.OU)(z.o)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return O.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=J(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return O.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=J(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],W.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],W.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>O.ie.normalize((0,p.GB)(e),0,!0))],W.prototype,"orientation",null),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>O.ie.normalize((0,p.GB)(e),0,!0))],W.prototype,"tilt",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],W.prototype,"normal",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],W.prototype,"point",void 0),W=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSlice")],W);var Y=r(97159);let Q=class extends((0,V.OU)(z.o)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return O.ie.normalize((0,p.GB)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return O.ie.normalize((0,p.GB)(t),0,!0)}};(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],Q.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{origins:{service:{read:Y.r},"web-scene":{write:{isRequired:!0}}},write:!0}}),(0,F.P)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],Q.prototype,"href",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Q.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Q.prototype,"orientation",null),(0,n.Cg)([(0,c.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Q.prototype,"tilt",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"normal",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"point",void 0),(0,n.Cg)([(0,c.MZ)({type:[p.jz],json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"sizeInPixel",void 0),(0,n.Cg)([(0,c.MZ)({type:[W],json:{write:!0}})],Q.prototype,"slices",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{default:0,write:!0}})],Q.prototype,"timeId",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"variableId",void 0),Q=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSection")],Q);let X=class extends z.o{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,n.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],X.prototype,"diffuseFactor",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],X.prototype,"specularFactor",void 0),X=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelSimpleShading")],X);let ee=class extends z.o{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,n.Cg)([(0,c.MZ)({type:["discrete","continuous"],json:{write:!0}})],ee.prototype,"continuity",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],ee.prototype,"hasNoData",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"noData",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"offset",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],ee.prototype,"scale",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"type",void 0),ee=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelFormat")],ee);const te=ee;let re=class extends z.o{constructor(e){super(e),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],re.prototype,"description",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"name",void 0),(0,n.Cg)([(0,c.MZ)({type:te,json:{write:!0}})],re.prototype,"originalFormat",void 0),(0,n.Cg)([(0,c.MZ)({type:te,json:{write:{enabled:!0,isRequired:!0}}})],re.prototype,"renderingFormat",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],re.prototype,"unit",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],re.prototype,"volumeId",void 0),(0,n.Cg)([(0,c.MZ)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],re.prototype,"type",void 0),re=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVariable")],re);const ne=re;var ie=r(4718),se=r(68197);let oe=class extends((0,V.OU)(z.o)){constructor(){super(...arguments),this.color=se.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,n.Cg)([(0,c.MZ)({type:se.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],oe.prototype,"color",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],oe.prototype,"value",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],oe.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],oe.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],oe.prototype,"colorLocked",void 0),oe=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelIsosurface")],oe);var ae=r(62885),le=r(34727);let ue=class extends((0,V.OU)(z.o)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,n.Cg)([(0,c.MZ)({type:se.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],ue.prototype,"color",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ue.prototype,"position",void 0),ue=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelColorStop")],ue);const ce=ue;let pe=class extends((0,V.OU)(z.o)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,n.Cg)([(0,c.MZ)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],pe.prototype,"opacity",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],pe.prototype,"position",void 0),pe=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelOpacityStop")],pe);const de=pe;let he=class extends((0,V.OU)(z.o)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!1,write:!0}})],he.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],he.prototype,"range",void 0),he=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelRangeFilter")],he);const fe=he;let ye=class extends((0,V.OU)(z.o)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(s.A.ofType(ce)),this.opacityStops=new(s.A.ofType(de))}set colorStops(e){this._set("colorStops",(0,ae.V)(e,this._get("colorStops"),s.A.ofType(ce)))}set opacityStops(e){this._set("opacityStops",(0,ae.V)(e,this._get("opacityStops"),s.A.ofType(de)))}getPreviousNext(e,t,r){let n=e;for(;--n>0&&t[n].type!==r&&3!==t[n].type;);let i=e;const s=t.length;for(;++i<s&&t[i].type!==r&&3!==t[i].type;);return[n,i]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],r=[];for(const t of this.colorStops){if(!t.color)return e;r.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:1})}if(0===this.opacityStops.length)for(const e of r)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,le.qE)(e.position,0,1),n=Math.round(255*(0,le.qE)(1-e.opacity,0,1));let i=!1;for(const e of r)if(1===e.type&&Math.abs(e.position-t)<1e-5){e.color.a=n,e.type=3,i=!0;break}i||r.push({color:{r:0,g:0,b:0,a:n},position:e.position,type:2})}r.sort((e,t)=>e.position<t.position?-1:1);const e=r.length;for(let t=0;t<e;++t){const n=r[t];if(3!==n.type)if(1===n.type){const[i,s]=this.getPreviousNext(t,r,2);if(-1!==i&&s!==e){const e=(n.position-r[i].position)/(r[s].position-r[i].position);n.color.a=Math.round((0,le.Cc)(r[i].color.a,r[s].color.a,e))}else n.color.a=-1!==i?r[i].color.a:r[s].color.a}else{const[i,s]=this.getPreviousNext(t,r,1);if(-1!==i&&s!==e){const e=(n.position-r[i].position)/(r[s].position-r[i].position),t=r[i].color,o=r[s].color;me.forEach(r=>{n.color[r]=Math.round((0,le.Cc)(t[r],o[r],e))})}else-1!==i?me.forEach(e=>{n.color[e]=r[i].color[e]}):me.forEach(e=>{n.color[e]=r[s].color[e]})}}for(const e of r)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let n=0,i=1;for(let r=0;r<this._colorMapSize;++r){const s=r/this._colorMapSize;for(;s>t[i].position;)n=i++;const o=(s-t[n].position)/(t[i].position-t[n].position),a=t[n].color,l=t[i].color,u=new se.A;me.forEach(e=>{u[e]=Math.round((0,le.Cc)(a[e],l[e],o))}),u.a=(0,le.qE)(1-(0,le.Cc)(a.a,l.a,o)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const r=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||r.length<256)return null;let n=this.stretchRange[0],i=this.stretchRange[1];if(n>i){const e=n;n=i,i=e}e=(0,le.qE)(e,n,i);const s=r[Math.round((e-n)/(i-n)*(this._colorMapSize-1))].clone();return t||(s.a=1),s}};(0,n.Cg)([(0,c.MZ)({type:["linear","nearest"],json:{write:!0}})],ye.prototype,"interpolation",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],ye.prototype,"stretchRange",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(ce),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],ye.prototype,"colorStops",null),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(de),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],ye.prototype,"opacityStops",null),(0,n.Cg)([(0,c.MZ)({type:fe,json:{write:!0}})],ye.prototype,"rangeFilter",void 0),(0,n.Cg)([(0,c.MZ)({type:[se.A],clonable:!1,json:{read:!1}})],ye.prototype,"rasterizedTransferFunction",null),ye=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelTransferFunctionStyle")],ye);const ge=ye,me=["r","g","b"];let ve=class extends((0,V.OU)(z.o)){constructor(){super(...arguments),this.color=se.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};var be;(0,n.Cg)([(0,c.MZ)({type:se.A,json:{type:[p.jz],write:{enabled:!0,isRequired:!0}}})],ve.prototype,"color",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],ve.prototype,"value",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ve.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ve.prototype,"label",void 0),ve=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelUniqueValue")],ve);let we=be=class extends z.o{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(s.A.ofType(ve)),this.isosurfaces=new(s.A.ofType(oe))}clone(){return new be({variableId:this.variableId,label:this.label,transferFunction:(0,ie.o8)(this.transferFunction),uniqueValues:(0,ie.o8)(this.uniqueValues),isosurfaces:(0,ie.o8)(this.isosurfaces)})}};(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],we.prototype,"variableId",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],we.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:ge,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],we.prototype,"transferFunction",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(ve),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],we.prototype,"uniqueValues",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(oe),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],we.prototype,"isosurfaces",void 0),we=be=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVariableStyle")],we);var Se=r(88930),Me=r(86738),xe=r(16930),Ce=r(21325);function Ae(e){const t=/^(days?|hours?|minutes?|seconds?|d|h|m|s) since (\d{1,4})-(\d{1,2})-(\d{1,2})[ |T](\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[\s|Z]?(([+|\-\s?])(\d{1,2}):(\d{1,2}))?$/i.exec(e);if(null==t)return{didParse:!1};const[,r,n,i,s,o,a,l,u,c,p,d,h]=t;let f="seconds";const y=r.charAt(0).toLowerCase();"d"===y?f="days":"h"===y?f="hours":"m"===y&&(f="minutes");const g=parseInt(n,10);if(Number.isNaN(g))return{didParse:!1};const m=parseInt(i,10);if(Number.isNaN(m)||m<1||m>12)return{didParse:!1};const v=parseInt(s,10);if(Number.isNaN(v)||v<1||v>31)return{didParse:!1};if(2===m){const e=g%4==0&&(g%100!=0||g%400==0);if(e&&v>29||!e&&v>28)return{didParse:!1}}else if((4===m||6===m||9===m||11===m)&&v>30)return{didParse:!1};const b=parseInt(o,10);if(Number.isNaN(b)||b<0||b>23)return{didParse:!1};const w=parseInt(a,10);if(Number.isNaN(w)||w<0||w>59)return{didParse:!1};const S=parseInt(l,10);if(Number.isNaN(S)||S<0||S>59)return{didParse:!1};let M=1,x=0,C=0;if(p&&(M="-"===p?-1:1),d){if(x=parseInt(d,10),Number.isNaN(x)||x<0)return{didParse:!1};if(0!==x){const e=M*x;if(e<-12||e>14)return{didParse:!1}}}if(h&&(C=parseInt(h,10),Number.isNaN(C)||C<0||C>59))return{didParse:!1};const A=`${g}`.padStart(4,"0"),I=`${m}`.padStart(2,"0"),j=`${v}`.padStart(2,"0"),R=`${b}`.padStart(2,"0"),Z=`${w}`.padStart(2,"0"),T=`${S}`.padStart(2,"0");let P="Z";return 0===x&&0===C||(P=M>0?"+":"-",P+=`${x}`.padStart(2,"0"),P+=":",P+=`${C}`.padStart(2,"0")),{didParse:!0,unit:f,reference:new Date(`${A}-${I}-${j}T${R}:${Z}:${T}.000${P}`)}}let Ie=class extends z.o{constructor(){super(...arguments),this.values=null}};(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:!0}})],Ie.prototype,"values",void 0),Ie=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelIrregularSpacing")],Ie);const je=Ie;let Re=class extends z.o{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Re.prototype,"scale",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Re.prototype,"offset",void 0),Re=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelRegularSpacing")],Re);const Ze=Re;let Te=class extends z.o{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,n.Cg)([(0,c.MZ)({type:je,json:{write:!0}})],Te.prototype,"irregularSpacing",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isPositiveUp",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Te.prototype,"isWrappedDateLine",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"name",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"quantity",void 0),(0,n.Cg)([(0,c.MZ)({type:Ze,json:{write:!0}})],Te.prototype,"regularSpacing",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Te.prototype,"size",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],Te.prototype,"unit",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1}})],Te.prototype,"isRegular",null),Te=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelDimension")],Te);const Pe=Te;let Ne=class extends z.o{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=xe.A.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],n=r.isRegular?r.getRange():[0,r.size];return[e[0],t[0],n[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],n=r.isRegular?r.getRange():[0,r.size],i=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)i[e]<2?i[e]=1:i[e]-=1;return r.isRegular&&!r.isPositiveUp&&(i[2]*=-1),[(e[1]-e[0])/i[0],(t[1]-t[0])/i[1],(n[1]-n[0])/i[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0;let t=this.dimensions[3].size>0;if(t){const e=this.dimensions[3];t="time"===e.quantity,t&&null!==e.unit&&(t=Ae(e.unit).didParse)}if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}get timeStops(){if("xyzt"!==this.volumeType)return[];const e=this.dimensions[3],t=[],r=Ae(e.unit);if(r.didParse)if(e.isRegular){const n=e.regularSpacing?.offset??0,i=e.regularSpacing?.scale||1;for(let s=0;s<e.size;++s){const e=n+i*s;t.push((0,Se.mi)(r.reference,e,r.unit))}}else if(Array.isArray(e.irregularSpacing?.values)&&e.irregularSpacing.values.length>0)for(let n=0;n<e.irregularSpacing.values.length;++n){const i=e.irregularSpacing.values[n];t.push((0,Se.mi)(r.reference,i,r.unit))}return t}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return a.A.getLogger(this).error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,Ce.aI)(this.spatialReference,e.spatialReference))return a.A.getLogger(this).error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,h.fA)(e.x,e.y,e.z??0);(0,d.e)(t,t,this.originInLayerSpace3D),(0,d.C)(t,t,this.voxelSizeInLayerSpaceSigned);const r=this.dimensions[this.zDimension];if(!r.isRegular&&Array.isArray(r.irregularSpacing?.values)&&r.irregularSpacing.values.length>1){const n=e.z??0,i=r.irregularSpacing.values,s=r.isPositiveUp?1:-1,o=i.reduce((e,t)=>Math.abs(s*t-n)<Math.abs(s*e-n)?t:e);for(let e=0;e<i.length;++e)if(i[e]===o){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new Me.A({x:0,y:0,spatialReference:this.spatialReference});const t=(0,h.ci)(e);if((0,d.B)(t,t,this.voxelSizeInLayerSpaceSigned),(0,d.i)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new Me.A({x:t[0],y:t[1],spatialReference:this.spatialReference});const r=this.dimensions[this.zDimension];return r.isRegular||Array.isArray(r.irregularSpacing?.values)&&(e[2]<0?t[2]=r.irregularSpacing.values[0]:e[2]<r.irregularSpacing.values.length?t[2]=r.irregularSpacing.values[e[2]]:t[2]=r.irregularSpacing.values[r.irregularSpacing.values.length-1],r.isPositiveUp||(t[2]*=-1)),new Me.A({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};var _e;(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ne.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:[Pe],json:{write:{enabled:!0,isRequired:!0}}})],Ne.prototype,"dimensions",void 0),(0,n.Cg)([(0,c.MZ)({type:xe.A,json:{read:{enabled:!1}}})],Ne.prototype,"spatialReference",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1}})],Ne.prototype,"zDimension",null),(0,n.Cg)([(0,c.MZ)({type:[Boolean],json:{read:!1}})],Ne.prototype,"isValid",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ne.prototype,"originInLayerSpace3D",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ne.prototype,"voxelSizeInLayerSpaceSigned",null),(0,n.Cg)([(0,c.MZ)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Ne.prototype,"volumeType",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{read:!1}})],Ne.prototype,"sizeInVoxels",null),(0,n.Cg)([(0,c.MZ)({type:[Date],json:{read:!1,write:!1}})],Ne.prototype,"timeStops",null),Ne=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolume")],Ne);let Ve=_e=class extends z.o{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new _e;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"apronWidth",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"brickSize",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"maxLodLevel",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Ve.prototype,"nodeSize",void 0),Ve=_e=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolumeIndex")],Ve);const Oe=Ve;let ze=class extends((0,V.OU)(z.o)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return O.ie.normalize((0,p.GB)(e),0,!0)}set orientation(e){const t=J(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=G(this.normal);return O.ie.normalize((0,p.GB)(t),0,!0)}set tilt(e){const t=J(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};var Fe;(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{default:!0,write:!0}})],ze.prototype,"enabled",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ze.prototype,"label",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>O.ie.normalize((0,p.GB)(e),0,!0))],ze.prototype,"orientation",null),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,c.wg)(e=>O.ie.normalize((0,p.GB)(e),0,!0))],ze.prototype,"tilt",null),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],ze.prototype,"normal",void 0),(0,n.Cg)([(0,c.MZ)({type:[Number],json:{write:{isRequired:!0}}})],ze.prototype,"point",void 0),ze=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelDynamicSection")],ze);let Ue=Fe=class extends z.o{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(s.A.ofType(W)),this.dynamicSections=new(s.A.ofType(ze))}set slices(e){this._set("slices",(0,ae.V)(e,this._get("slices"),s.A.ofType(W)))}set dynamicSections(e){this._set("dynamicSections",(0,ae.V)(e,this._get("dynamicSections"),s.A.ofType(ze)))}clone(){return new Fe({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,ie.o8)(this.slices),dynamicSections:(0,ie.o8)(this.dynamicSections)})}};(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{write:{enabled:!0,isRequired:!0}}})],Ue.prototype,"volumeId",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{default:1,write:!0}})],Ue.prototype,"verticalExaggeration",void 0),(0,n.Cg)([(0,c.MZ)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Ue.prototype,"exaggerationMode",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{default:0,write:!0}})],Ue.prototype,"verticalOffset",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(W),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Ue.prototype,"slices",null),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(ze),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Ue.prototype,"dynamicSections",null),Ue=Fe=(0,n.Cg)([(0,c.$K)("esri.layers.voxel.VoxelVolumeStyle")],Ue);var qe=r(30291),Le=r(79677),Ee=r(10184),$e=r(36005);let De=class extends((0,R.w6)((0,x.b)((0,A.q)((0,I.A)((0,j.j)((0,l.P)((0,C.d)((0,M.p)(S.A))))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.graphicOrigin=new w(this),this.shading=new X,this.opacity=1,this.variables=new s.A,this.volumes=new s.A,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.popupTemplate=null,this.test=null,this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0,this.volumeStyles=new(s.A.ofType(Ue)),this.variableStyles=new(s.A.ofType(we)),this.sections=new(s.A.ofType(Q))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,Z.Jf)(e,a.A.getLogger(this)))}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then(()=>this._fetchService(t)).then(()=>this.serviceRoot=this.url);return this.addResolvingPromise(r),Promise.resolve(this)}read(e,t){super.read(e,t),"service"===t?.origin&&this.version.major<=3&&this.version.minor<=0&&!this.getAtOrigin("popupTemplate","service")&&this.setAtOrigin("popupTemplate",this.createPopupTemplate(),"service");for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new o.A("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const n=f.A.fromJSON(e,r);if(0===n.zmin&&0===n.zmax&&Array.isArray(t.volumes)){const e=Ne.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,r=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>r){const t=e;e=r,r=t}n.zmin=e,n.zmax=r}}}return n}return null}get fields(){const e=[new P.A({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"}),new P.A({name:"Voxel.CurrentVariable",alias:"Current Variable",domain:null,editable:!1,length:128,type:"string"})];for(const t of this.variables){const r=new P.A({name:t.name,alias:t.description,domain:null,editable:!1,length:128,type:"discrete"===t.renderingFormat.continuity?"string":"double"});e.push(r)}const t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new P.A({name:"Voxel.LocalTime",alias:"Local Time",domain:null,editable:!1,length:256,type:"date"});e.push(t);const r=new P.A({name:"Voxel.SourceTime",alias:"Source Time",domain:null,editable:!1,length:256,type:"string"});e.push(r)}if("xyt"!==t.volumeType){const t=new P.A({name:"Voxel.Depth",alias:"Depth",domain:null,editable:!1,length:128,type:"double"});e.push(t)}}return e}get fieldsIndex(){return this.loaded?new N.A(this.fields):null}getField(e){return this.fieldsIndex?.get(e)}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.fields;return(0,qe.tn)({fields:t,title:"{Voxel.Position}"},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const r=this.variableStyles.findIndex(e=>e.variableId===t);return r<0?null:this.variableStyles.at(r)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const r=this.variables.findIndex(e=>e.id===t);return r<0?null:this.variables.at(r)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find(({id:e})=>e===t.volumeId):null}get timeInfo(){const e=this.getVolume(null);if("xyzt"!==e?.volumeType)return null;const t=e.timeStops;if(!t?.length)return null;const r=new Le.A({start:t[0],end:t.at(-1)});return new _.A({fullTimeExtent:r,stops:t})}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find(({volumeId:e})=>e===t.volumeId):null}getColorForContinuousDataValue(e,t,r){const n=this.getVariable(e);if(null==n||"continuous"!==n.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const i=this.variableStyles.findIndex(t=>t.variableId===e);if(i<0)return null;const s=this.variableStyles.at(i);return s?.transferFunction?s.transferFunction.getColorForContinuousDataValue(t,r):null}getSections(){const e=[];for(const t of this.sections)e.push(new Q({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const r=this._getVariable(t);if(null!=r){const n=t.clone();n.isosurfaces.length>4&&(n.isosurfaces=n.isosurfaces.slice(0,3),a.A.getLogger(this).error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of n.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(n.variableId,e.value,!1);null==t||t.equals(e.color)||(e.color=t)}if("continuous"===r.renderingFormat.continuity)(null===n.transferFunction||n.transferFunction.colorStops.length<2)&&a.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==n.transferFunction&&(Array.isArray(n.transferFunction.stretchRange)&&2===n.transferFunction.stretchRange.length||(a.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),n.transferFunction.stretchRange=[0,1],n.transferFunction.colorStops.removeAll()));else if("discrete"===r.renderingFormat.continuity)if(0===t.uniqueValues.length)a.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(n)}else a.A.getLogger(this).error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const r=this._getVolumeFromVolumeId(t.volumeId);if(null!=r){const n=t.clone();for(const e of n.slices)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of n.dynamicSections)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");e.push(n)}else a.A.getLogger(this).error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,r){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const n=(0,h.fA)(e.normal[0],e.normal[1],e.normal[2]);return(0,d.n)(n,n),!(Math.abs(n[0])+Math.abs(n[1])+Math.abs(n[2])<1e-6||(e.normal[0]=n[0],e.normal[1]=n[1],e.normal[2]=n[2],0))}};(0,n.Cg)([(0,c.MZ)({type:["Voxel"]})],De.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,c.MZ)(T.fV)],De.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,c.MZ)({json:{write:!0}})],De.prototype,"title",void 0),(0,n.Cg)([(0,c.MZ)(T.OZ)],De.prototype,"url",null),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(Q),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],De.prototype,"sections",void 0),(0,n.Cg)([(0,c.MZ)({type:p.jz,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],De.prototype,"currentVariableId",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(Ue),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],De.prototype,"volumeStyles",void 0),(0,n.Cg)([(0,c.MZ)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],De.prototype,"renderMode",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(we),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],De.prototype,"variableStyles",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],De.prototype,"enableSlices",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],De.prototype,"enableSections",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],De.prototype,"enableDynamicSections",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],De.prototype,"enableIsosurfaces",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],De.prototype,"graphicOrigin",void 0),(0,n.Cg)([(0,c.MZ)({type:X,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],De.prototype,"shading",void 0),(0,n.Cg)([(0,c.MZ)({type:["show","hide"]})],De.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],De.prototype,"opacity",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(ne)})],De.prototype,"variables",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A.ofType(Ne)})],De.prototype,"volumes",void 0),(0,n.Cg)([(0,c.MZ)({type:Oe})],De.prototype,"index",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],De.prototype,"minScale",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],De.prototype,"maxScale",void 0),(0,n.Cg)([(0,c.MZ)({json:{read:!1},readOnly:!0})],De.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{name:"serviceVersion"}})],De.prototype,"version",void 0),(0,n.Cg)([(0,$e.w)("service","version")],De.prototype,"readVersion",null),(0,n.Cg)([(0,c.MZ)({type:f.A})],De.prototype,"fullExtent",void 0),(0,n.Cg)([(0,$e.w)("service","fullExtent",["fullExtent"])],De.prototype,"readFullExtent",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],De.prototype,"fields",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],De.prototype,"fieldsIndex",null),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,r){t[r]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],De.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:i.A,json:{name:"popupInfo",write:!0}})],De.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],De.prototype,"defaultPopupTemplate",null),(0,n.Cg)([(0,c.MZ)({type:_.A,readOnly:!0,json:{read:!1}})],De.prototype,"timeInfo",null),(0,n.Cg)([(0,c.MZ)({type:Le.A,json:{read:!1}})],De.prototype,"timeExtent",void 0),(0,n.Cg)([(0,c.MZ)({type:Ee.A,json:{read:!1}})],De.prototype,"timeOffset",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0,json:{origins:{"web-scene":{name:"timeAnimation",write:!0},service:{read:!1}}}})],De.prototype,"useViewTime",void 0),De=(0,n.Cg)([(0,c.$K)("esri.layers.VoxelLayer")],De);const ke=De},25036:(e,t,r)=>{r.d(t,{j:()=>s});var n=r(31635),i=r(91429);const s=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}},26121:(e,t,r)=>{r.d(t,{ci:()=>o,dL:()=>i});var n=r(49186);async function i(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}r(77548);const s=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function o(e,t,r){let i=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new n.A(e,t,r));if(e.blockedRelativeUrls&&(i=i.concat(e.blockedRelativeUrls.map(e=>new n.A("url:unsupported",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:n}=r;e&&(i=i.filter(({name:e})=>!(s.has(e)||t.includes(e)))),n&&(i=i.filter(e=>"web-document-write:property-required"!==e.name))}if(i.length>0)throw new n.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:i})}},30291:(e,t,r)=>{r.d(t,{tn:()=>u});var n=r(37838),i=r(30524),s=r(41227),o=r(89893),a=r(66159),l=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},h){if(!r)return null;const y=function(e,t){const r=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:r}){const n=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===n&&(e=e.slice()),!0!==r&&e.sort(p),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||f,sortDisabled:t?.sortDisabled}).map(t=>new s.A({fieldName:t.name,isEditable:(0,i.R$)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:r})}))}({editFieldsInfo:t,fields:r,objectIdField:l},h);if(!y.length)return null;const g=function(e){const t=(0,i.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),m=[new a.A,new o.A];return new n.A({title:g,content:m,fieldInfos:y})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,i.Bz)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":return new l.A({digitSeparator:!0,places:0});case"single":case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,i.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function h(e){if("name"===(e.name&&e.name.toLowerCase()))return!0;const t=e.alias?.toLowerCase();return"name"===t}const f=["geometry","blob","raster","guid","xml"]},37539:(e,t,r)=>{r.d(t,{pO:()=>y,jd:()=>d,Tp:()=>h,w5:()=>p});var n=r(34727),i=r(86211),s=r(73941),o=r(79258);Math.PI;const a=o.$O.radius,l=o.$O.eccentricitySquared,u={a1:a*l,a2:a*l*a*l,a3:a*l*l/2,a4:a*l*a*l*2.5,a5:a*l+a*l*l/2,a6:1-l};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=r(21325);const p={2:{5:y,7:null,9:null,10:y,1:x,6:null,8:null,0:null,3:m,11:v,2:y,4:R},5:{5:y,7:null,9:null,10:y,1:x,6:null,8:null,0:null,3:m,11:v,2:y,4:R},7:{5:null,7:y,9:null,10:y,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:S,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(e,t,r,n){const i=e[t]/V,s=_-2*Math.atan(Math.exp(-e[t+1]/V)),o=V+(e[t+2]??0),a=Math.cos(s)*o;r[n]=Math.cos(i)*a,r[n+1]=Math.sin(i)*a,r[n+2]=Math.sin(s)*o},6:null,8:null,0:null,3:y,11:function(e,t,r,n){g(e,t,r,n),v(r,n,r,n)},2:g,4:function(e,t,r,n){g(e,t,r,n),R(r,n,r,n)}},4:{5:Z,7:null,9:null,10:Z,1:function(e,t,r,n){Z(e,t,r,n),x(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){Z(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){Z(e,t,r,n),v(r,n,r,n)},2:Z,4:y},1:{5:j,7:null,9:null,10:j,1:y,6:null,8:null,0:null,3:function(e,t,r,n){j(e,t,r,n),m(r,n,r,n)},11:function(e,t,r,n){j(e,t,r,n),v(r,n,r,n)},2:j,4:function(e,t,r,n){j(e,t,r,n),R(r,n,r,n)}},6:{5:null,7:I,9:null,10:I,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:y,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:x,6:M,8:S,0:null,3:m,11:v,2:y,4:R},11:{5:b,7:null,9:null,10:b,1:function(e,t,r,n){b(e,t,r,n),x(r,n,r,n)},6:null,8:null,0:null,3:function(e,t,r,n){b(e,t,r,n),m(r,n,r,n)},11:y,2:b,4:function(e,t,r,n){b(e,t,r,n),R(r,n,r,n)}}};function d(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(T.source.spatialReference===e&&T.dest.spatialReference===t)return T;const r=f(e,T.source),n=f(t,T.dest);return 0===r&&0===n?(0,c.aI)(e,t)?T.projector=y:T.projector=null:T.projector=p[r][n],T}function f(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,i.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function y(e,t,r,n){e!==r&&(r[n++]=e[t++],r[n++]=e[t++],r[n]=e[t]??0)}function g(e,t,r,n){r[n]=N*(e[t]/V),r[n+1]=N*(_-2*Math.atan(Math.exp(-e[t+1]/V))),r[n+2]=e[t+2]??0}function m(e,t,r,i){!function(e,t,r,i,s){const o=.4999999*Math.PI,a=(0,n.qE)(P*e[t+1],-o,o),l=Math.sin(a);r[i++]=P*e[t]*s.radius,r[i++]=s.halfSemiMajorAxis*Math.log((1+l)/(1-l)),r[i]=e[t+2]??0}(e,t,r,i,o.$O)}function v(e,t,r,n){r[n]=e[t]*O,r[n+1]=e[t+1]*O,r[n+2]=e[t+2]??0}function b(e,t,r,n){r[n]=e[t]*z,r[n+1]=e[t+1]*z,r[n+2]=e[t+2]??0}function w(e,t,r,n,i){const s=i+(e[t+2]??0),o=P*e[t],a=P*e[t+1],l=Math.cos(a)*s;r[n]=Math.cos(o)*l,r[n+1]=Math.sin(o)*l,r[n+2]=Math.sin(a)*s}function S(e,t,r,n){w(e,t,r,n,o.Sw.radius)}function M(e,t,r,n){w(e,t,r,n,o.sH.radius)}function x(e,t,r,n){w(e,t,r,n,o.$O.radius)}function C(e,t,r,i,s){const o=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(o*o+a*a+l*l),c=(0,n.YN)(l/(0===u?1:u)),p=Math.atan2(a,o);r[i++]=N*p,r[i++]=N*c,r[i]=u-s}function A(e,t,r,n){C(e,t,r,n,o.Sw.radius)}function I(e,t,r,n){C(e,t,r,n,o.sH.radius)}function j(e,t,r,n){C(e,t,r,n,o.$O.radius)}function R(e,t,r,n){!function(e,t,r,n,i){const s=P*e[t],o=P*e[t+1],a=e[t+2]??0,l=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*l*l);r[n++]=(c+a)*u*Math.cos(s),r[n++]=(c+a)*u*Math.sin(s),r[n++]=(c*(1-i.eccentricitySquared)+a)*l}(e,t,r,n,o.$O)}function Z(e,t,r,n){const i=u,s=e[t],a=e[t+1],l=e[t+2]??0;let c,p,d,h,f,y,g,m,v,b,w,S,M,x,C,A,I,j,R,Z,T;c=Math.abs(l),p=s*s+a*a,d=Math.sqrt(p),h=p+l*l,f=Math.sqrt(h),Z=Math.atan2(a,s),y=l*l/h,g=p/h,x=i.a2/f,C=i.a3-i.a4/f,g>.3?(m=c/f*(1+g*(i.a1+x+y*C)/f),R=Math.asin(m),b=m*m,v=Math.sqrt(1-b)):(v=d/f*(1-y*(i.a5-x-g*C)/f),R=Math.acos(v),b=1-v*v,m=Math.sqrt(b)),w=1-o.$O.eccentricitySquared*b,S=o.$O.radius/Math.sqrt(w),M=i.a6*S,x=d-S*v,C=c-M*m,I=v*x+m*C,A=v*C-m*x,j=A/(M/w+I),R+=j,T=I+A*j/2,l<0&&(R=-R),r[n++]=N*Z,r[n++]=N*R,r[n]=T}const T={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},P=(0,n.kU)(1),N=(0,n.KJ)(1),_=.5*Math.PI,V=o.$O.radius,O=V*Math.PI/180,z=180/(V*Math.PI)},38954:(e,t,r)=>{r.d(t,{A:()=>h,B:()=>c,C:()=>p,D:()=>v,E:()=>V,F:()=>w,G:()=>_,H:()=>U,a:()=>O,b:()=>s,c:()=>m,d:()=>o,e:()=>u,f:()=>A,g:()=>C,h:()=>a,i:()=>l,j:()=>g,l:()=>I,m:()=>N,n:()=>x,o:()=>M,p:()=>j,q:()=>S,r:()=>Z,s:()=>b,t:()=>R,u:()=>L,v:()=>d,w:()=>q,x:()=>E,y:()=>y,z:()=>f});var n=r(51850),i=r(34304);function s(e){const t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function l(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function p(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function d(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function h(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function f(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function y(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function g(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function m(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function v(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function b(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function w(e){const t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function S(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function M(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function x(e,t){const r=t[0],n=t[1],i=t[2];let s=r*r+n*n+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function C(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function A(e,t,r){const n=t[0],i=t[1],s=t[2],o=r[0],a=r[1],l=r[2];return e[0]=i*l-s*a,e[1]=s*o-n*l,e[2]=n*a-i*o,e}function I(e,t,r,n){const i=t[0],s=t[1],o=t[2];return e[0]=i+n*(r[0]-i),e[1]=s+n*(r[1]-s),e[2]=o+n*(r[2]-o),e}function j(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*s+r[12],e[1]=r[1]*n+r[5]*i+r[9]*s+r[13],e[2]=r[2]*n+r[6]*i+r[10]*s+r[14],e}function R(e,t,r){const n=t[0],i=t[1],s=t[2];return e[0]=n*r[0]+i*r[3]+s*r[6],e[1]=n*r[1]+i*r[4]+s*r[7],e[2]=n*r[2]+i*r[5]+s*r[8],e}function Z(e,t,r){const n=r[0],i=r[1],s=r[2],o=r[3],a=t[0],l=t[1],u=t[2],c=i*u-s*l,p=s*a-n*u,d=n*l-i*a,h=i*d-s*p,f=s*c-n*d,y=n*p-i*c,g=2*o;return e[0]=a+c*g+2*h,e[1]=l+p*g+2*f,e[2]=u+d*g+2*y,e}const T=(0,n.vt)(),P=(0,n.vt)();function N(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function _(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],o=t[0],a=t[1],l=t[2],u=(0,i.FD)();return Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-a)<=u*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function V(e,t,r){const n=r[0]-t[0],i=r[1]-t[1],s=r[2]-t[2];let o=n*n+i*i+s*s;return o>0?(o=1/Math.sqrt(o),e[0]=n*o,e[1]=i*o,e[2]=s*o,e):(e[0]=0,e[1]=0,e[2]=0,e)}const O=u,z=c,F=p,U=v,q=b,L=s,E=w;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(e,t){x(T,e),x(P,t);const r=C(T,P);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,n,i,s){const o=1-s,a=o*o,l=s*s,u=a*o,c=3*s*a,p=3*l*o,d=l*s;return e[0]=t[0]*u+r[0]*c+n[0]*p+i[0]*d,e[1]=t[1]*u+r[1]*c+n[1]*p+i[1]*d,e[2]=t[2]*u+r[2]*c+n[2]*p+i[2]*d,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},clamp:function(e,t=0,r=1){return e[0]=Math.min(Math.max(e[0],t),r),e[1]=Math.min(Math.max(e[1],t),r),e[2]=Math.min(Math.max(e[2],t),r),e},copy:o,cross:A,crossAndNormalize:function(e,t,r){const n=t[0],i=t[1],s=t[2],o=r[0],a=r[1],l=r[2],u=i*l-s*a,c=s*o-n*l,p=n*a-i*o,d=Math.sqrt(u*u+c*c+p*p);return e[0]=u/d,e[1]=c/d,e[2]=p/d,e},direction:V,dist:U,distance:v,div:F,divide:p,dot:C,equals:_,exactEquals:N,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,n,i,s){const o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,u=o*(s-1),c=o*(3-2*s);return e[0]=t[0]*a+r[0]*l+n[0]*u+i[0]*c,e[1]=t[1]*a+r[1]*l+n[1]*u+i[1]*c,e[2]=t[2]*a+r[2]*l+n[2]*u+i[2]*c,e},inverse:M,len:L,length:s,lerp:I,max:y,min:f,mul:z,multiply:c,negate:S,normalize:x,random:function(e,t=1){const r=i.Ov,n=2*r()*Math.PI,s=2*r()-1,o=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=s*t,e},rotateX:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,n){const i=[],s=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:g,scaleAndAdd:m,set:a,sign:h,sqrDist:q,sqrLen:E,squaredDistance:b,squaredLength:w,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:O,subtract:u,transformMat3:R,transformMat4:j,transformQuat:Z},Symbol.toStringTag,{value:"Module"}))},46130:(e,t,r)=>{r.d(t,{v:()=>i});var n=r(76553);function i(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,n.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},52136:(e,t,r)=>{r.d(t,{p:()=>s});var n=r(31635),i=r(91429);const s=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,n.Cg)([(0,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},54239:(e,t,r)=>{r.d(t,{A:()=>g});var n,i=r(31635),s=r(4576),o=r(66552),a=r(25482),l=r(86211),u=r(67076),c=r(91429),p=r(43937),d=r(36005);const h=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=h.jsonValues.slice();(0,s.Xy)(f,"orthometric");const y=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let g=n=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(m(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.LA)(e)||y.read(e)||(r?.messages&&r.messages.push(m(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.k1)(t);return new n({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new n;return t.read(e,{origin:"web-scene"}),t}};function m(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,i.Cg)([(0,c.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],g.prototype,"heightModel",void 0),(0,i.Cg)([(0,p.K)("web-scene","heightModel")],g.prototype,"writeHeightModel",null),(0,i.Cg)([(0,d.w)(["web-scene","service"],"heightModel")],g.prototype,"readHeightModel",null),(0,i.Cg)([(0,c.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y.jsonValues,write:{writer:y.write,isRequired:!0}}}}})],g.prototype,"heightUnit",void 0),(0,i.Cg)([(0,d.w)("web-scene","heightUnit")],g.prototype,"readHeightUnit",null),(0,i.Cg)([(0,d.w)("service","heightUnit")],g.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],g.prototype,"vertCRS",void 0),(0,i.Cg)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],g.prototype,"readVertCRS",null),g=n=(0,i.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],g)},58947:(e,t,r)=>{r.d(t,{w6:()=>x,qM:()=>I});var n=r(31635),i=r(11254),s=r(49186),o=r(53966),a=r(74887),l=r(91429),u=r(46130),c=r(5443),p=r(54239),d=r(16930),h=r(60694),f=r(10873),y=r(83898),g=r(73179);var m=r(20655),v=r(80812),b=r(88788),w=r(91682),S=r(26121),M=r(36005);const x=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.spatialReference=null,this.fullExtent=null,this.heightModelInfo=null,this.minScale=0,this.maxScale=0,this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.url=null,this.indexInfo=null,this._debouncedSaveOperations=(0,a.sg)(async(e,t,r)=>{switch(e){case 0:return this._save(t);case 1:return this._saveAs(r,t)}})}readSpatialReference(e,t){return A(t)}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const n=null==e.spatialReference?{...e,spatialReference:A(t)}:e;return c.A.fromJSON(n,r)}const n=t.store,i=A(t);return null==i||null==n?.extent||!Array.isArray(n.extent)||n.extent.some(e=>e<C)?null:new c.A({xmin:n.extent[0],ymin:n.extent[1],xmax:n.extent[2],ymax:n.extent[3],spatialReference:i})}parseVersionString(e){const t={major:Number.NaN,minor:Number.NaN,versionString:e},r=e.split(".");return r.length>=2&&(t.major=parseInt(r[0],10),t.minor=parseInt(r[1],10)),t}readVersion(e,t){const r=t.store,n=null!=r.version?r.version.toString():"";return this.parseVersionString(n)}readTitlePortalItem(e){return"item-title"!==this.sublayerTitleMode?void 0:e}readTitleService(e,t){const r=this.portalItem?.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,h.yG)(this.url,t.name):t.name;let n=t.name;if(!n&&this.url){const e=(0,h.qg)(this.url);null!=e&&(n=e.title)}return"item-title-and-service-name"===this.sublayerTitleMode&&r&&(n=r+" - "+n),(0,h.cr)(n)}get parsedUrl(){return(0,g.h)(this,{separator:"layers"})}async _fetchIndexAndUpdateExtent(e,t){this.indexInfo=(0,y.F)(this.parsedUrl?.path??"",this.rootNode,e,this.customParameters,this.apiKey,o.A.getLogger(this),t);const{fullExtent:r}=this;null==r||r.hasZ||this._updateExtent(r,await this.indexInfo)}_updateExtent(e,t){if("page"===t?.type){const r=t.rootIndex%t.pageSize,n=t.rootPage?.nodes?.[r];I(e,n?.obb)}else if("node"===t?.type){const r=t.rootNode?.mbs;if(!Array.isArray(r)||4!==r.length||r[0]<C)return;const n=r[2],i=r[3];e.zmin=n-i,e.zmax=n+i}}async _fetchService(e){if(null==this.url)throw new s.A("sceneservice:url-not-set","Scene service can not be loaded without valid portal item or url");if(null==this.layerId&&/SceneServer\/*$/i.test(this.url)){const t=await this._fetchFirstLayerId(e);null!=t&&(this.layerId=t)}return this._fetchServiceLayer(e)}async _fetchFirstLayerId(e){const t=await(0,i.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(t.data&&Array.isArray(t.data.layers)&&t.data.layers.length>0)return t.data.layers[0].id}async _fetchServiceLayer(e){const t=await(0,i.A)(this.parsedUrl?.path??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});t.ssl&&this.url&&(this.url=this.url.replace(/^http:/i,"https:"));let r=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(r=!0),r)return this._fetchVoxelServiceLayer();const n=t.data;this.read(n,this._getServiceContext()),this.validateLayer(n)}async _fetchVoxelServiceLayer(e){const t=(await(0,i.A)(this.parsedUrl?.path+"/layer",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,this._getServiceContext()),this.validateLayer(t)}_getServiceContext(){return{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}}async _ensureLoadBeforeSave(){await this.load(),"beforeSave"in this&&"function"==typeof this.beforeSave&&await this.beforeSave()}validateLayer(e){}async _saveAs(e,t){const r={...Z,...t};let n=v.default.from(e);if(!n)throw new s.A("sceneservice:portal-item-required","_saveAs() requires a portal item to save to");n.id&&(n=n.clone(),n.id=null);const i=n.portal||m.A.getDefault();await this._ensureLoadBeforeSave(),n.type=R,n.portal=i;const o=(0,b.m)(n,"portal-item",!0),a={layers:[this.write({},o)]};return await Promise.all(o.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(a,o,r),this.url&&(n.url=this.url),n.title||(n.title=this.title),j(n,r,1),await i.signIn(),await i.user.addItem({item:n,folder:r?.folder,data:a}),await(0,w.r)(this.resourceReferences,o),this.portalItem=n,(0,u.v)(o),o.portalItem=n,n}async _save(e){const t={...Z,...e};if(!this.portalItem)throw new s.A("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService");if(this.portalItem.type!==R)throw new s.A("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${R}"`);await this._ensureLoadBeforeSave();const r=(0,b.m)(this.portalItem,"portal-item",!0),n={layers:[this.write({},r)]};return await Promise.all(r.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(n,r,t),this.url&&(this.portalItem.url=this.url),this.portalItem.title||(this.portalItem.title=this.title),j(this.portalItem,t,0),await(0,w.S)(this.portalItem,n,this.resourceReferences,r),(0,u.v)(r),this.portalItem}async _validateAgainstJSONSchema(e,t,r){const n=r?.validationOptions;(0,S.ci)(t,{errorName:"sceneservice:save"},{ignoreUnsupported:n?.ignoreUnsupported,supplementalUnsupportedErrors:["scenemodification:unsupported"]});const i=n?.enabled,a=null;if(i&&a){const t=(await a()).validate(e,r.portalItemLayerType);if(!t.length)return;const i=`Layer item did not validate:\n${t.join("\n")}`;if(o.A.getLogger(this).error(`_validateAgainstJSONSchema(): ${i}`),"throw"===n.failPolicy){const e=t.map(e=>new s.A("sceneservice:schema-validation",e));throw new s.A("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{validationErrors:e})}}}};return(0,n.Cg)([(0,l.MZ)(f.id)],r.prototype,"id",void 0),(0,n.Cg)([(0,l.MZ)({type:d.A})],r.prototype,"spatialReference",void 0),(0,n.Cg)([(0,M.w)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readSpatialReference",null),(0,n.Cg)([(0,l.MZ)({type:c.A})],r.prototype,"fullExtent",void 0),(0,n.Cg)([(0,M.w)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readFullExtent",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,type:p.A})],r.prototype,"heightModelInfo",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],r.prototype,"minScale",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],r.prototype,"maxScale",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,n.Cg)([(0,M.w)("version",["store.version"])],r.prototype,"readVersion",null),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:!1}})],r.prototype,"sublayerTitleMode",void 0),(0,n.Cg)([(0,l.MZ)({type:String})],r.prototype,"title",void 0),(0,n.Cg)([(0,M.w)("portal-item","title")],r.prototype,"readTitlePortalItem",null),(0,n.Cg)([(0,M.w)("service","title",["name"])],r.prototype,"readTitleService",null),(0,n.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],r.prototype,"layerId",void 0),(0,n.Cg)([(0,l.MZ)((0,g.b)({separator:"layers"}))],r.prototype,"url",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"store",void 0),(0,n.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],r.prototype,"rootNode",void 0),r=(0,n.Cg)([(0,l.$K)("esri.layers.mixins.SceneService")],r),r},C=-1e38;function A(e){if(null!=e.spatialReference)return d.A.fromJSON(e.spatialReference);const t=e.store,r=t.indexCRS||t.geographicCRS,n=r&&parseInt(r.slice(r.lastIndexOf("/")+1),10);return null!=n?new d.A(n):null}function I(e,t){if(null==t?.center||null==t.halfSize)throw new s.A("sceneservice:invalid-node-page","Invalid node page.");if(t.center[0]<C)return;const r=t.halfSize,n=t.center[2],i=Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);e.zmin=n-i,e.zmax=n+i}function j(e,t,r){e.typeKeywords||(e.typeKeywords=[]);const n=t.getTypeKeywords();for(const t of n)e.typeKeywords.push(t);e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t),1===r&&(e.typeKeywords=e.typeKeywords.filter(e=>"Hosted Service"!==e)))}const R="Scene Service",Z={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}}},60999:(e,t,r)=>{r.d(t,{DZ:()=>f,Ke:()=>h,Tj:()=>c,UT:()=>y,aD:()=>m,jJ:()=>u});var n=r(31635),i=r(69622),s=r(97768),o=r(74887),a=r(10107),l=r(64108);function u(e,t,r){return(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))}async function c(e,t,r){return(await(0,o.Lx)(e.map((e,n)=>t.apply(r,[e,n])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function h(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return d(e)}}async function f(e){try{return p(await e)}catch(e){return(0,o.QP)(e),d(e)}}function y(e,t){return new g(e,t)}let g=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,a.MZ)()],g.prototype,"value",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"error",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"finished",null),(0,n.Cg)([(0,a.MZ)()],g.prototype,"promise",void 0),(0,n.Cg)([(0,a.MZ)()],g.prototype,"_result",void 0),g=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],g);class m{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,n.hk)(t)}}}},62885:(e,t,r)=>{r.d(t,{H:()=>s,V:()=>i});var n=r(7762);function i(e,t,r=n.A){return t||(t=new r),t===e||t.destroyed||(t.removeAll(),(i=e)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?t.addMany(e):e&&t.add(e)),t;var i}function s(e){return e}},67026:(e,t,r)=>{r.d(t,{A6:()=>y,Xd:()=>c,Xr:()=>h,hZ:()=>m,lw:()=>p,t2:()=>R,x8:()=>u});var n=r(29242),i=r(82534),s=r(51850),o=r(34304),a=r(38954),l=r(87317);function u(e,t,r){r*=.5;const n=Math.sin(r);return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(r),e}function c(e,t){const r=2*Math.acos(t[3]),n=Math.sin(r/2);return n>(0,o.FD)()?(e[0]=t[0]/n,e[1]=t[1]/n,e[2]=t[2]/n):(e[0]=1,e[1]=0,e[2]=0),r}function p(e,t,r){const n=t[0],i=t[1],s=t[2],o=t[3],a=r[0],l=r[1],u=r[2],c=r[3];return e[0]=n*c+o*a+i*u-s*l,e[1]=i*c+o*l+s*a-n*u,e[2]=s*c+o*u+n*l-i*a,e[3]=o*c-n*a-i*l-s*u,e}function d(e,t,r,n){const i=t[0],s=t[1],a=t[2],l=t[3];let u,c,p,d,h,f=r[0],y=r[1],g=r[2],m=r[3];return c=i*f+s*y+a*g+l*m,c<0&&(c=-c,f=-f,y=-y,g=-g,m=-m),1-c>(0,o.FD)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-n)*u)/p,h=Math.sin(n*u)/p):(d=1-n,h=n),e[0]=d*i+h*f,e[1]=d*s+h*y,e[2]=d*a+h*g,e[3]=d*l+h*m,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function f(e,t){const r=t[0]+t[4]+t[8];let n;if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{let r=0;t[4]>t[0]&&(r=1),t[8]>t[3*r+r]&&(r=2);const i=(r+1)%3,s=(r+2)%3;n=Math.sqrt(t[3*r+r]-t[3*i+i]-t[3*s+s]+1),e[r]=.5*n,n=.5/n,e[3]=(t[3*i+s]-t[3*s+i])*n,e[i]=(t[3*i+r]+t[3*r+i])*n,e[s]=(t[3*s+r]+t[3*r+s])*n}return e}function y(e,t,r,n){const i=.5*Math.PI/180;t*=i,r*=i,n*=i;const s=Math.sin(t),o=Math.cos(t),a=Math.sin(r),l=Math.cos(r),u=Math.sin(n),c=Math.cos(n);return e[0]=s*l*c-o*a*u,e[1]=o*a*c+s*l*u,e[2]=o*l*u-s*a*c,e[3]=o*l*c+s*a*u,e}const g=l.f,m=l.c,v=l.i,b=p,w=l.s,S=l.h,M=l.l,x=l.j,C=x,A=l.d,I=A,j=l.n,R=l.a,Z=l.e,T=(0,s.vt)(),P=(0,s.fA)(1,0,0),N=(0,s.fA)(0,1,0),_=(0,i.vt)(),V=(0,i.vt)(),O=(0,n.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){const r=t[0],n=t[1],i=t[2];return e[0]=r,e[1]=n,e[2]=i,e[3]=Math.sqrt(Math.abs(1-r*r-n*n-i*i)),e},conjugate:h,copy:g,dot:S,equals:Z,exactEquals:R,fromEuler:y,fromMat3:f,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const r=t[0],n=t[1],i=t[2],s=t[3],o=r*r+n*n+i*i+s*s,a=o?1/o:0;return e[0]=-r*a,e[1]=-n*a,e[2]=-i*a,e[3]=s*a,e},len:C,length:x,lerp:M,mul:b,multiply:p,normalize:j,random:function(e){const t=o.Ov,r=t(),n=t(),i=t(),s=Math.sqrt(1-r),a=Math.sqrt(r);return e[0]=s*Math.sin(2*Math.PI*n),e[1]=s*Math.cos(2*Math.PI*n),e[2]=a*Math.sin(2*Math.PI*i),e[3]=a*Math.cos(2*Math.PI*i),e},rotateX:function(e,t,r){r*=.5;const n=t[0],i=t[1],s=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=n*l+o*a,e[1]=i*l+s*a,e[2]=s*l-i*a,e[3]=o*l-n*a,e},rotateY:function(e,t,r){r*=.5;const n=t[0],i=t[1],s=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=n*l-s*a,e[1]=i*l+o*a,e[2]=s*l+n*a,e[3]=o*l-i*a,e},rotateZ:function(e,t,r){r*=.5;const n=t[0],i=t[1],s=t[2],o=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=n*l+i*a,e[1]=i*l-n*a,e[2]=s*l+o*a,e[3]=o*l-s*a,e},rotationTo:function(e,t,r){const n=(0,a.g)(t,r);return n<-.999999?((0,a.f)(T,P,t),(0,a.u)(T)<1e-6&&(0,a.f)(T,N,t),(0,a.n)(T,T),u(e,T,Math.PI),e):n>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,a.f)(T,t,r),e[0]=T[0],e[1]=T[1],e[2]=T[2],e[3]=1+n,j(e,e))},scale:w,set:m,setAxes:function(e,t,r,n){const i=O;return i[0]=r[0],i[3]=r[1],i[6]=r[2],i[1]=n[0],i[4]=n[1],i[7]=n[2],i[2]=-t[0],i[5]=-t[1],i[8]=-t[2],j(e,f(e,i))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,r,n,i,s){return d(_,t,i,s),d(V,r,n,s),d(e,_,V,2*s*(1-s)),e},sqrLen:I,squaredLength:A,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},68197:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(40876),i=r(4576),s=r(34727),o=r(56507);function a(e){return(0,s.qE)((0,o.Vr)(e),0,255)}function l(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class u{static blendColors(e,t,r,n=new u){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=(0,n.lT)(e);return r?u.fromArray(r,t):null}static fromHex(e,t=new u){const r=(0,n.oW)(e);return r?u.fromArray(r,t):null}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.Eq)(e);return r?u.fromArray(r,t):null}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)u.fromString(e,this);else if((0,i.yc)(e))u.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,s=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=a(this.r),r=a(this.g),n=a(this.b);return 0===e||1!==this.a?[t,r,n,a(255*this.a)]:[t,r,n]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}u.prototype.declaredClass="esri.Color"},69052:(e,t,r)=>{r.d(t,{hr:()=>i,ie:()=>l,uC:()=>a});var n=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,n,i=0,s=!1){return(n-=i)<t?n+=o(e,t-n):n>r&&(n-=o(e,n-r)),s&&n===r&&(n=t),n+i}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new i(0,2*Math.PI),l=(new i(-Math.PI,Math.PI),new i(0,360))},69208:(e,t,r)=>{r.d(t,{d:()=>s});var n=r(31635),i=r(91429);const s=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}},69540:(e,t,r)=>{r.d(t,{OU:()=>c,Pw:()=>p});var n=r(31635),i=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),a=r(88620),l=r(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const r=e;let i=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,n=t.store,i={},l=new Map;for(const t in r){const o=r[t],a=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let p=null;if("function"==typeof u)p=u(c,e);else if("reference"===u)p=c;else if(p=(0,s.TU)(c,e),null!=c&&null==p)continue;0===a?l.set(t,p):i[t]=p}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,r]of l)e.set(t,r,0)}return u}};return i=(0,n.Cg)([(0,l.$)("esri.core.Clonable")],i),i},p=c(i.A)},73133:(e,t,r)=>{r.d(t,{j:()=>n});const n=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73179:(e,t,r)=>{r.d(t,{b:()=>l,h:()=>u});var n=r(4718),i=r(53966),s=r(84952),o=r(60694),a=r(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:r}=e??{},s=(0,n.o8)(a.OZ),l=s.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,n,i){(0,o.LS)(this,e,r,t,i)}),{...s,set:function(e){if(null==e)return void this._set("url",e);const r=(0,o.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:i.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){const{separator:r}=t??{},n=(0,s.An)(e.url);return null!=n&&(null!=e.dynamicDataSource?n.path=(0,s.fj)(n.path,"dynamicLayer"):null!=e.layerId&&(n.path=(0,s.fj)(n.path,r??"",e.layerId.toString()))),n}},76553:(e,t,r)=>{function n(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>n})},80200:(e,t,r)=>{r.d(t,{T:()=>n,d:()=>y});const n={Base64:0,Hex:1,String:2,Raw:3},i=8,s=(1<<i)-1;function o(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e){const t=[];for(let r=0,n=e.length*i;r<n;r+=i)t[r>>5]|=(e.charCodeAt(r/i)&s)<<r%32;return t}function l(e){const t=[];for(let r=0,n=32*e.length;r<n;r+=i)t.push(String.fromCharCode(e[r>>5]>>>r%32&s));return t.join("")}function u(e,t,r,n,i,s){return o(function(e,t){return e<<t|e>>>32-t}(o(o(t,e),o(n,s)),i),r)}function c(e,t,r,n,i,s,o){return u(t&r|~t&n,e,t,i,s,o)}function p(e,t,r,n,i,s,o){return u(t&n|r&~n,e,t,i,s,o)}function d(e,t,r,n,i,s,o){return u(t^r^n,e,t,i,s,o)}function h(e,t,r,n,i,s,o){return u(r^(t|~n),e,t,i,s,o)}function f(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,n=-271733879,i=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=n,u=i,f=s;r=c(r,n,i,s,e[t],7,-680876936),s=c(s,r,n,i,e[t+1],12,-389564586),i=c(i,s,r,n,e[t+2],17,606105819),n=c(n,i,s,r,e[t+3],22,-1044525330),r=c(r,n,i,s,e[t+4],7,-176418897),s=c(s,r,n,i,e[t+5],12,1200080426),i=c(i,s,r,n,e[t+6],17,-1473231341),n=c(n,i,s,r,e[t+7],22,-45705983),r=c(r,n,i,s,e[t+8],7,1770035416),s=c(s,r,n,i,e[t+9],12,-1958414417),i=c(i,s,r,n,e[t+10],17,-42063),n=c(n,i,s,r,e[t+11],22,-1990404162),r=c(r,n,i,s,e[t+12],7,1804603682),s=c(s,r,n,i,e[t+13],12,-40341101),i=c(i,s,r,n,e[t+14],17,-1502002290),n=c(n,i,s,r,e[t+15],22,1236535329),r=p(r,n,i,s,e[t+1],5,-165796510),s=p(s,r,n,i,e[t+6],9,-1069501632),i=p(i,s,r,n,e[t+11],14,643717713),n=p(n,i,s,r,e[t],20,-373897302),r=p(r,n,i,s,e[t+5],5,-701558691),s=p(s,r,n,i,e[t+10],9,38016083),i=p(i,s,r,n,e[t+15],14,-660478335),n=p(n,i,s,r,e[t+4],20,-405537848),r=p(r,n,i,s,e[t+9],5,568446438),s=p(s,r,n,i,e[t+14],9,-1019803690),i=p(i,s,r,n,e[t+3],14,-187363961),n=p(n,i,s,r,e[t+8],20,1163531501),r=p(r,n,i,s,e[t+13],5,-1444681467),s=p(s,r,n,i,e[t+2],9,-51403784),i=p(i,s,r,n,e[t+7],14,1735328473),n=p(n,i,s,r,e[t+12],20,-1926607734),r=d(r,n,i,s,e[t+5],4,-378558),s=d(s,r,n,i,e[t+8],11,-2022574463),i=d(i,s,r,n,e[t+11],16,1839030562),n=d(n,i,s,r,e[t+14],23,-35309556),r=d(r,n,i,s,e[t+1],4,-1530992060),s=d(s,r,n,i,e[t+4],11,1272893353),i=d(i,s,r,n,e[t+7],16,-155497632),n=d(n,i,s,r,e[t+10],23,-1094730640),r=d(r,n,i,s,e[t+13],4,681279174),s=d(s,r,n,i,e[t],11,-358537222),i=d(i,s,r,n,e[t+3],16,-722521979),n=d(n,i,s,r,e[t+6],23,76029189),r=d(r,n,i,s,e[t+9],4,-640364487),s=d(s,r,n,i,e[t+12],11,-421815835),i=d(i,s,r,n,e[t+15],16,530742520),n=d(n,i,s,r,e[t+2],23,-995338651),r=h(r,n,i,s,e[t],6,-198630844),s=h(s,r,n,i,e[t+7],10,1126891415),i=h(i,s,r,n,e[t+14],15,-1416354905),n=h(n,i,s,r,e[t+5],21,-57434055),r=h(r,n,i,s,e[t+12],6,1700485571),s=h(s,r,n,i,e[t+3],10,-1894986606),i=h(i,s,r,n,e[t+10],15,-1051523),n=h(n,i,s,r,e[t+1],21,-2054922799),r=h(r,n,i,s,e[t+8],6,1873313359),s=h(s,r,n,i,e[t+15],10,-30611744),i=h(i,s,r,n,e[t+6],15,-1560198380),n=h(n,i,s,r,e[t+13],21,1309151649),r=h(r,n,i,s,e[t+4],6,-145523070),s=h(s,r,n,i,e[t+11],10,-1120210379),i=h(i,s,r,n,e[t+2],15,718787259),n=h(n,i,s,r,e[t+9],21,-343485551),r=o(r,a),n=o(n,l),i=o(i,u),s=o(s,f)}return[r,n,i,s]}function y(e,t=n.Hex){const r=t||n.Base64,s=f(a(e),e.length*i);switch(r){case n.Raw:return s;case n.Hex:return function(e){const t="0123456789abcdef",r=[];for(let n=0,i=4*e.length;n<i;n++)r.push(t.charAt(e[n>>2]>>n%4*8+4&15)+t.charAt(e[n>>2]>>n%4*8&15));return r.join("")}(s);case n.String:return l(s);case n.Base64:return function(e){const t=[];for(let r=0,n=4*e.length;r<n;r+=3){const n=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let i=0;i<4;i++)8*r+6*i>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-i)&63))}return t.join("")}(s)}}},82534:(e,t,r)=>{function n(){return[0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>i,vt:()=>n,zK:()=>s});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:n,fromValues:function(e,t,r,n){return[e,t,r,n]}},Symbol.toStringTag,{value:"Module"}))},83898:(e,t,r)=>{r.d(t,{F:()=>s});var n=r(11254),i=r(49186);async function s(e,t,r,s,o,a,l){let u=null;if(null!=r){const t=`${e}/nodepages/`,i=t+Math.floor(r.rootIndex/r.nodesPerPage);try{return{type:"page",rootPage:(await(0,n.A)(i,{query:{f:"json",...s,token:o},responseType:"json",signal:l})).data,rootIndex:r.rootIndex,pageSize:r.nodesPerPage,lodMetric:r.lodSelectionMetricType,urlPrefix:t}}catch(e){null!=a&&a.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",i,e),u=e}}if(!t)return null;const c=t?.split("/").pop(),p=`${e}/nodes/`,d=p+c;try{return{type:"node",rootNode:(await(0,n.A)(d,{query:{f:"json",...s,token:o},responseType:"json",signal:l})).data,urlPrefix:p}}catch(e){throw new i.A("sceneservice:root-node-missing","Root node missing.",{pageError:u,nodeError:e,url:d})}}},85648:(e,t,r)=>{r.d(t,{n:()=>i});var n=r(84952);function i(e){return s[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,n.Zo)(e);return l[t]||o}(e.url)}(e)]||a}const s={},o="text/plain",a=s[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)s[l[e]]=e},87024:(e,t,r)=>{r.d(t,{P:()=>h});var n=r(49186),i=r(80200),s=r(76553),o=r(84952),a=r(13069),l=r(96156),u=r(35666),c=r(10107),p=r(85648),d=r(97159);function h(e){const t=e?.origins??[void 0];return(r,n)=>{const i=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const n=(0,l.z4)(t,r);return{type:String,read:(e,t,r)=>{const i=(0,d.r)(e,t,r);return n.type===String?i:"function"==typeof n.type?new n.type({url:i}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(t,i,a,l){if(!l?.resources)return"string"==typeof t?void(i[a]=(0,d.t)(t,l)):void(i[a]=t.write({},l));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(c,{...l,verifyItemRelativeUrls:l?.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),m=n.type!==String&&(!(0,s.H)(this)||l?.origin&&this.originIdOf(r)>(0,u.aB)(l.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:i,targetPropertyName:a,context:l,params:e};l?.portalItem&&h&&!(0,o.oP)(h)?m&&e?.contentAddressed?f(v):m?function(e){const{context:t,targetUrl:r,params:n,value:i,dest:s,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=g(i,r,t),c=(0,p.n)(u),d=(0,o.Zo)(l.path),h=n?.compress??!1;c===d?(t.resources&&y({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),s[a]=r):f(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:n}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[n]=t)}(v):l?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,o.w8)(h)||m)?f(v):i[a]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.b;return{read:e,write:t}}}}(e,r,n);for(const e of t){const t=(0,c.rM)(r,e,n);for(const e in i)t[e]=i[e]}}}function f(e){const{targetUrl:t,params:r,value:s,context:l,dest:u,targetPropertyName:c}=e;if(!l.portalItem)return;const h=(0,d.p)(t),f=g(s,t,l);if(r?.contentAddressed&&"json"!==f.type)return void l.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${f.type} with content addressing. Content addressing is only supported for json resources.`,{content:f}));const m=r?.contentAddressed&&"json"===f.type?(0,i.d)(f.jsonString):h?.filename??(0,a.lk)(),v=(0,o.fj)(r?.prefix??h?.prefix,m),b=`${v}.${(0,p.n)(f)}`;if(r?.contentAddressed&&l.resources&&"json"===f.type){const e=l.resources.toKeep.find(({resource:e})=>e.path===b)??l.resources.toAdd.find(({resource:e})=>e.path===b);if(e)return void(u[c]=e.resource.itemRelativeUrl)}const w=l.portalItem.resourceFromPath(b);(0,o.w8)(t)&&l.resources&&l.resources.pendingOperations.push((0,o.tk)(t).then(e=>{w.path=`${v}.${(0,p.n)({type:"blob",blob:e})}`,u[c]=w.itemRelativeUrl}).catch(()=>{}));const S=r?.compress??!1;l.resources&&y({...e,resource:w,content:f,compress:S,updates:l.resources.toAdd}),u[c]=w.itemRelativeUrl}function y({object:e,propertyName:t,updates:r,resource:n,content:i,compress:s}){r.push({resource:n,content:i,compress:s,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function g(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},88788:(e,t,r)=>{r.d(t,{m:()=>o,v:()=>s});var n=r(84952),i=r(20655);function s(e,t){return{...a(e,t),readResourcePaths:[]}}function o(e,t,r){const i=(0,n.An)(e.itemUrl);return{...a(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:i?{rootPath:i.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function a(e,t){return{origin:t,url:(0,n.An)(e.itemUrl),portal:e.portal||i.A.getDefault(),portalItem:e}}},89808:(e,t,r)=>{r.d(t,{Q:()=>n});const n=Symbol("getSliceableSymbol")},91218:(e,t,r)=>{r.r(t),r.d(t,{canProjectWithoutEngine:()=>D,initializeProjection:()=>K,isEqualBaseGCS:()=>k,isLoaded:()=>Z,isLoadedOrLoad:()=>T,isLoadedOrLoadFor:()=>P,load:()=>_,project:()=>V,projectAsync:()=>$,projectExtent:()=>te,projectMany:()=>O,projectMultipoint:()=>J,projectOrLoad:()=>F,projectOrLoadMany:()=>U,projectPoint:()=>H,projectPolygon:()=>X,projectPolyline:()=>Y,projectWithoutEngine:()=>B,requiresLoad:()=>N,test:()=>E,tryProject:()=>z,unload:()=>L});var n=r(49186),i=r(74887),s=r(62788),o=r(95488),a=r(51850),l=r(21276),u=r(73941),c=r(5443),p=r(91075),d=r(48526),h=r(86738),f=r(39829),y=r(82799),g=r(16930),m=r(159),v=r(9762),b=r(37539);function w(e,t,r,n,i,s){return S[0]=e,S[1]=t,S[2]=r,(0,v.projectBuffer)(S,n,0,i,s,0)}const S=(0,a.vt)();var M=r(21325);let x=null,C=null,A=null,I=null,j={};const R=new o.I;function Z(){return!!(C?.isLoaded()&&A?.isLoaded()&&I?.isLoaded())}function T(){return!!Z()||((0,s.gc)(R),_(),!1)}function P(e,t){return!e||!t||D(e,t)||T()}function N(e,t){return!D(e,t)&&!Z()}async function _(e){null==x&&(x=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(C=e,C.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(A=e,A.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(I=e,I.load()))])),await x,(0,i.Te)(e),R.notify()}function V(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),O(e,e[0].spatialReference,t,r)):((0,l.f)(e),O([e],e.spatialReference,t,r)[0])}function O(e,t,r,n){if(null==t||null==r)return e;if(D(t,r,n))return e.map(e=>B(e,t,r));if(null==n?.geographicTransformation&&(0,u.jA)(t))return O(e.map(e=>B(e,t,g.A.WGS84)),g.A.WGS84,r,{zConversionDisabled:n?.zConversionDisabled});if(null==n?.geographicTransformation&&(0,u.jA)(r))return O(e,t,g.A.WGS84).map(e=>B(e,g.A.WGS84,r));if(!Z())throw new q;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:I.getTransformation(t,r,n.areaOfInterestExtent)||new m.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let i=j[e];i||(i=I.getTransformation(t,r)||new m.A,j[e]=i),n={geographicTransformation:i,zConversionDisabled:n?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?C.executeMany(e,r,n):A.executeMany(e,r,n)}function z(e,t,r){try{return V(e,t,r)}catch(e){return null}}function F(e,t){const r=U([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function U(e,t,r){if(!Z())for(const r of e)if(null!=r&&!(0,M.aI)(r.spatialReference,t)&&(0,M.fn)(r.spatialReference)&&(0,M.fn)(t)&&!D(r.spatialReference,t))return(0,s.gc)(R),{pending:_(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,M.aI)(e.spatialReference,t)?e:(0,M.fn)(e.spatialReference)&&(0,M.fn)(t)?V(e,t,r):null)}}class q extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function L(){x=null,C=null,A=null,I=null,j={}}const E={get loadPromise(){return x}};async function $(e,t,r){if((0,i.Te)(r),!e)return e;const n=U(Array.isArray(e)?e:[e],t,r);if(n.pending)return await n.pending,(0,i.Te)(r),$(e,t,r);const s=n.geometries??[];return Array.isArray(e)?s:s[0]}function D(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,M.aI)(e,t)||(0,M.fn)(e)&&(0,M.fn)(t)&&!!(0,b.jd)(e,t))}function k(e,t){if((0,M.aI)(e,t))return!0;if(!(0,M.fn)(e)||!(0,M.fn)(t))return!1;const r=(0,M.oT)(e)||(0,M.K8)(e)||(0,M.x1)(e),n=(0,M.oT)(t)||(0,M.K8)(t)||(0,M.x1)(t);return r&&n}async function K(e,t,r,n){if(Z())return(0,i.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:r,options:i}of e)if(t&&r&&!D(t,r,i))return _(n)}else if(e&&t&&!D(e,t,r))return _(n);return(0,i.NO)(n)}function B(e,t,r){return e?"x"in e?G(e,t,new h.A,r,0):"xmin"in e?re(e,t,new c.A,r,0):"rings"in e?ee(e,t,new f.A,r,0):"paths"in e?Q(e,t,new y.A,r,0):"points"in e?W(e,t,new d.A,r,0):null:null}function H(e,t,r=t.spatialReference,n=0){return null!=r&&null!=e.spatialReference&&null!=G(e,e.spatialReference,t,r,n)}function G(e,t,r,n,i){ie[0]=e.x,ie[1]=e.y;const s=e.z;return ie[2]=void 0!==s?s:i,(0,v.projectBuffer)(ie,t,0,ie,n,0)?(r.x=ie[0],r.y=ie[1],r.spatialReference=n,void 0!==s||(0,u.xP)(n)?(r.z=ie[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function J(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=W(e,e.spatialReference,t,r,n)}function W(e,t,r,n,i){const{points:s,hasZ:o,hasM:a}=e,l=[],c=s.length,p=[];for(const e of s)p.push(e[0],e[1],o?e[2]:i);if(!(0,v.projectBuffer)(p,t,0,p,n,0,c))return null;const d=o||(0,u.xP)(n);for(let e=0;e<c;++e){const t=3*e,r=p[t],n=p[t+1];d&&a?l.push([r,n,p[t+2],s[e][3]]):d?l.push([r,n,p[t+2]]):a?l.push([r,n,s[e][2]]):l.push([r,n])}return r.points=l,r.spatialReference=n,r.hasZ=o,r.hasM=a,r}function Y(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=Q(e,e.spatialReference,t,r,n)}function Q(e,t,r,n,i){const{paths:s,hasZ:o,hasM:a}=e,l=[];if(!ne(s,o??!1,a??!1,t,l,n,i))return null;const c=o||(0,u.xP)(n);return r.paths=l,r.spatialReference=n,r.hasZ=c,r.hasM=a,r}function X(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=ee(e,e.spatialReference,t,r,n)}function ee(e,t,r,n,i){const{rings:s,hasZ:o,hasM:a}=e,l=[];if(!ne(s,o??!1,a??!1,t,l,n,i))return null;const c=o||(0,u.xP)(n);return r.rings=l,r.spatialReference=n,r.hasZ=c,r.hasM=a,r}function te(e,t,r=t.spatialReference,n=0){return null!=e.spatialReference&&null!=r&&null!=re(e,e.spatialReference,t,r,n)}function re(e,t,r,n,i){const{xmin:s,ymin:o,xmax:a,ymax:l,hasZ:c,hasM:p}=e;if(!w(s,o,c?e.zmin:i,t,ie,n))return null;const d=c||(0,u.xP)(n);return r.xmin=ie[0],r.ymin=ie[1],d&&(r.zmin=ie[2]),w(a,l,c?e.zmax:i,t,ie,n)?(r.xmax=ie[0],r.ymax=ie[1],d&&(r.zmax=ie[2]),p&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=n,r):null}function ne(e,t,r,n,i,s,o=0){const a=new Array;for(const r of e)for(const e of r)a.push(e[0],e[1],t?e[2]:o);if(!(0,v.projectBuffer)(a,n,0,a,s,0))return!1;let l=0;i.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const n of t)c&&r?e.push([a[l++],a[l++],a[l++],n[3]]):c?e.push([a[l++],a[l++],a[l++]]):r?(e.push([a[l++],a[l++],n[2]]),l++):(e.push([a[l++],a[l++]]),l++);i.push(e)}return!0}const ie=(0,a.vt)()},91682:(e,t,r)=>{r.d(t,{S:()=>l,r:()=>a});var n=r(49186),i=r(74887),s=r(13069),o=r(15804);async function a(e,t,r){const n=await u(e,t,r);await c(n,t,r)}async function l(e,t,r,n,i){const s=await u(r,n,i);await e.update({data:t}),await c(s,n,i)}async function u(e,t,a){if(!t?.resources)return;const l=t.portalItem===e.portalItem?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem;const u=new Set(t.resources.toKeep.map(e=>e.resource.path)),c=new Set,p=[];u.forEach(t=>{l.delete(t),e.paths.push(t)});const d=[],h=[],f=[];for(const r of t.resources.toUpdate)if(l.delete(r.resource.path),u.has(r.resource.path)||c.has(r.resource.path)){const{resource:t,content:n,finish:i}=r,a=(0,o.bg)(t,(0,s.lk)());e.paths.push(a.path),d.push({resource:a,content:await(0,o.cL)(n),compress:r.compress}),i&&f.push(()=>i(a))}else{e.paths.push(r.resource.path),h.push({resource:r.resource,content:await(0,o.cL)(r.content),compress:r.compress});const t=r.finish;t&&f.push(()=>t(r.resource)),c.add(r.resource.path)}for(const r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{d.push({resource:r.resource,content:await(0,o.cL)(r.content),compress:r.compress});const e=r.finish;e&&f.push(()=>e(r.resource))}if(d.length||h.length){const{addOrUpdateResources:e}=await Promise.resolve().then(r.bind(r,15804));await e(t.portalItem,d,"add",a),await e(t.portalItem,h,"update",a)}if(f.forEach(e=>e()),0===p.length)return l;const y=await(0,i.Ol)(p);if((0,i.Te)(a),y.length>0)throw new n.A("save:resources","Failed to save one or more resources",{errors:y});return l}async function c(e,t,r){if(!e||!t.portalItem)return;const n=[];for(const i of e){const e=t.portalItem.resourceFromPath(i);n.push(e.portalItem.removeResource(e,r))}await(0,i.Lx)(n)}},95466:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(49186),i=r(53966),s=r(91869),o=r(3330),a=r(12195),l=r(30524),u=r(98623),c=r(56400),p=r(28097);const d=new Map;class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],m(e))}static fromLayerJSON(e){return new h(e.fields??[],m(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 r=[];for(const e of this.fields){const t=e?.name,n=y(t);if(t&&n){const i=f(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(n,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(f(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):g.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.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,a.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function f(e){return e.trim().toLowerCase()}function y(e){return(0,l.rS)(e)?.toLowerCase()??""}const g=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function m(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:i}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",o=(n?"endField"in n?n.endField:n.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,l=i?function(e){return"timeZone"in e}(i)?i.timeZone??a:i.dateFieldsTimeReference?(0,c.ZS)(i.dateFieldsTimeReference):a??u.n$:null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??a:n.timeReference?(0,c.ZS)(n.timeReference):a:null,d=new Map([[f(i?.creationDateField??""),l],[f(i?.editDateField??""),l],[f(s),p],[f(o),p]]);for(const{name:n,type:i}of e.fields)if(g.has(i))t.set(n,u.L5);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(n,null);else if(r)t.set(n,u.L5);else{const e=d.get(f(n??""))??a;t.set(n,e)}return t}},96184:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(31635),i=r(69540),s=r(25482),o=r(91429),a=r(79677),l=r(10184),u=r(56400),c=r(36005),p=r(43937);function d(e,t){return l.A.fromJSON({value:e,unit:t})}let h=class extends((0,i.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?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,c.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,p.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,n.Cg)([(0,c.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,n.Cg)([(0,p.K)("interval")],h.prototype,"writeInterval",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,n.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,n.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,n.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],h)},99157:(e,t,r)=>{r.d(t,{A:()=>a});var n,i=r(31635),s=r(69622),o=r(91429);let a=n=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=n=(0,i.Cg)([(0,o.$K)("esri.geometry.operators.support.GeographicTransformationStep")],a)},99959:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(31635),i=r(91429);let s=class{};s=(0,n.Cg)([(0,i.$K)("esri.graphic.GraphicOrigin")],s)}}]);