@arcgis/core 6.0.0-next.40 → 6.0.0-next.41

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 (403) hide show
  1. package/Camera.js +1 -1
  2. package/applications/Components/arcadeFeatureUtils.d.ts +12 -0
  3. package/applications/Components/arcadeFeatureUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/00d43f02119167531d1b.js +1 -0
  6. package/assets/esri/core/workers/chunks/059cda6f11a91dbc9e28.js +1 -0
  7. package/assets/esri/core/workers/chunks/{1c406ab2bf99ac563316.js → 0696fa44a04b99738d7b.js} +1 -1
  8. package/assets/esri/core/workers/chunks/073f0232135f71b6c7a5.js +1 -0
  9. package/assets/esri/core/workers/chunks/098ac10877d92fde1006.js +1 -0
  10. package/assets/esri/core/workers/chunks/0a29d87b6e58a3c6df8f.js +1 -0
  11. package/assets/esri/core/workers/chunks/0bf43d80cb40c2b43333.js +1 -0
  12. package/assets/esri/core/workers/chunks/0d04353843ccb7440342.js +1 -0
  13. package/assets/esri/core/workers/chunks/1866f832e5f52958bc97.js +1 -0
  14. package/assets/esri/core/workers/chunks/19e51cbb354954ddafbd.js +1 -0
  15. package/assets/esri/core/workers/chunks/1c7096eb48a3a7f27d4f.js +1 -0
  16. package/assets/esri/core/workers/chunks/1cc03067f8405285057c.js +1 -0
  17. package/assets/esri/core/workers/chunks/23f3692c7426173e8352.js +1 -0
  18. package/assets/esri/core/workers/chunks/24bdeafbb16ae83bb8c3.js +1 -0
  19. package/assets/esri/core/workers/chunks/2b27d3bc492e000bbe58.js +1 -0
  20. package/assets/esri/core/workers/chunks/2d64a13c2303e9cae613.js +1 -0
  21. package/assets/esri/core/workers/chunks/2dfe6af28cd1b29d5ebc.js +1 -0
  22. package/assets/esri/core/workers/chunks/2e760d04641755d1820d.js +1 -0
  23. package/assets/esri/core/workers/chunks/{0b21d0e2e5a91c34a108.js → 2f54e4feb554c1a7b9c4.js} +1 -1
  24. package/assets/esri/core/workers/chunks/305eeaac0b4d5b79ebde.js +1 -0
  25. package/assets/esri/core/workers/chunks/353976c812ebf0c98549.js +1 -0
  26. package/assets/esri/core/workers/chunks/45aaefbdffe5e15dfb24.js +1 -0
  27. package/assets/esri/core/workers/chunks/{592b5db1459c02cf6a0c.js → 46504fc81f357bc7465a.js} +1 -1
  28. package/assets/esri/core/workers/chunks/4caebb64a365da18453f.js +1 -0
  29. package/assets/esri/core/workers/chunks/{2fcd7db1e192858a650e.js → 503ee206e7de1f65e291.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{76e80381fa6d1e084796.js → 54de7dc0597fc80d7a52.js} +1 -1
  31. package/assets/esri/core/workers/chunks/55c0c074e4afe05f5d4d.js +1 -0
  32. package/assets/esri/core/workers/chunks/598ba405e93ebccf7b2d.js +1 -0
  33. package/assets/esri/core/workers/chunks/5bfb962ca192f90a2724.js +1 -0
  34. package/assets/esri/core/workers/chunks/6699fac01ccd842851ba.js +1 -0
  35. package/assets/esri/core/workers/chunks/672a5390182b20d632be.js +1 -0
  36. package/assets/esri/core/workers/chunks/{00311d1b18d5952a014b.js → 6738b3d6bce34a1e8be2.js} +1 -1
  37. package/assets/esri/core/workers/chunks/67c2e5953087dadfd245.js +1 -0
  38. package/assets/esri/core/workers/chunks/67caef2ecf0dc5f2eed3.js +1 -0
  39. package/assets/esri/core/workers/chunks/68fd7b314377d27aaa54.js +1 -0
  40. package/assets/esri/core/workers/chunks/6d863761f29f31a030eb.js +1 -0
  41. package/assets/esri/core/workers/chunks/{ce8ef2eec290e1df6b2a.js → 7390af96250e89194332.js} +1 -1
  42. package/assets/esri/core/workers/chunks/7452b5ae971a9ff2e6e9.js +1 -0
  43. package/assets/esri/core/workers/chunks/7672c123cfb960f4ddad.js +1 -0
  44. package/assets/esri/core/workers/chunks/{9934e8e19f94e9169eea.js → 776b64a1e1a57878c34c.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{58716a3a6106a1b0fb9d.js → 832c887fdc5af4c08cf2.js} +1 -1
  46. package/assets/esri/core/workers/chunks/84fb27e3425515cd0e3f.js +1 -0
  47. package/assets/esri/core/workers/chunks/8b0be232723424dda320.js +1 -0
  48. package/assets/esri/core/workers/chunks/{7023651ed6398dcf8efb.js → 8b0efcc30184593a0812.js} +21 -21
  49. package/assets/esri/core/workers/chunks/8b38fad017c4c0d9e1ec.js +1 -0
  50. package/assets/esri/core/workers/chunks/{b2d6b1ac9fbb50c7c8ab.js → 929ca32ddbb43328ef31.js} +1 -1
  51. package/assets/esri/core/workers/chunks/98958203a5ca45b24d72.js +1 -0
  52. package/assets/esri/core/workers/chunks/a03f15f2cbc3fed291c2.js +1 -0
  53. package/assets/esri/core/workers/chunks/{22e73501e1435a896826.js → a5f17e9a025ac2b6e1bf.js} +1 -1
  54. package/assets/esri/core/workers/chunks/a6e846361bf5dd3a11c7.js +1 -0
  55. package/assets/esri/core/workers/chunks/af2087b75225d7d7dbd8.js +1 -0
  56. package/assets/esri/core/workers/chunks/afe3e89737fb45189a99.js +1 -0
  57. package/assets/esri/core/workers/chunks/b18459c1bed75dbdec08.js +1 -0
  58. package/assets/esri/core/workers/chunks/{f07fb9b3fa30d7ee1681.js → b386e921c273de3ac7a5.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{d03b82e962c70a3fd377.js → b4928831a2a13b2da745.js} +1 -1
  60. package/assets/esri/core/workers/chunks/b7205620ca248f4efc88.js +1 -0
  61. package/assets/esri/core/workers/chunks/{dae2036faa28dade2119.js → beccbfff549902733c4e.js} +1 -1
  62. package/assets/esri/core/workers/chunks/c5364ff8dd1358af3603.js +1 -0
  63. package/assets/esri/core/workers/chunks/{9e2c30b67bab5795306e.js → cb2329d1ea72ce5cc057.js} +1 -1
  64. package/assets/esri/core/workers/chunks/cd46d9b4a8de644e7332.js +1 -0
  65. package/assets/esri/core/workers/chunks/d0172d31389dbfaaa848.js +1 -0
  66. package/assets/esri/core/workers/chunks/da1e6962ba0c85c37953.js +1 -0
  67. package/assets/esri/core/workers/chunks/dff845574c0037a1dca6.js +1 -0
  68. package/assets/esri/core/workers/chunks/e0864ca82ffa3c9a0776.js +1 -0
  69. package/assets/esri/core/workers/chunks/e0cf6e1e21d0ee739009.js +1 -0
  70. package/assets/esri/core/workers/chunks/e69cd62f824ce7a22fa0.js +1 -0
  71. package/assets/esri/core/workers/chunks/{396299c22994c502e41c.js → efc1a90742813b55602e.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{c9feffb9884cfed52c4b.js → f190a3124d6d03417d73.js} +1 -1
  73. package/assets/esri/core/workers/chunks/f4135779bfdaf349352a.js +1 -0
  74. package/assets/esri/core/workers/chunks/f6f5937a1308f28bb959.js +1 -0
  75. package/assets/esri/core/workers/chunks/fd17c4a9e13bf77aa86a.js +1 -0
  76. package/assets/esri/core/workers/chunks/fdd2b35388f9fe42b623.js +1 -0
  77. package/assets/esri/core/workers/chunks/fe24e039385473bf77f9.js +1 -0
  78. package/chunks/cameraUtilsPlanar.js +1 -1
  79. package/chunks/cameraUtilsSpherical.js +1 -1
  80. package/config.js +1 -1
  81. package/core/Accessor.d.ts +1 -1
  82. package/core/Accessor.js +1 -1
  83. package/core/accessorSupport/DefaultsStore.js +1 -1
  84. package/core/accessorSupport/Properties.js +1 -1
  85. package/core/accessorSupport/Property.js +1 -1
  86. package/core/accessorSupport/watch.js +1 -1
  87. package/core/has.js +1 -1
  88. package/core/libs/gl-matrix-2/math/mat4.js +1 -1
  89. package/core/workers/workers.js +1 -6
  90. package/core/workers.d.ts +1 -2
  91. package/geometry/Extent.js +1 -1
  92. package/geometry/Geometry.js +1 -1
  93. package/geometry/Multipoint.js +1 -1
  94. package/geometry/Point.js +1 -1
  95. package/geometry/Polygon.js +1 -1
  96. package/geometry/Polyline.js +1 -1
  97. package/geometry/coordinateFormatter.js +1 -1
  98. package/geometry/operators/gx/operatorRelate.js +2 -0
  99. package/geometry/operators/relateOperator.js +1 -1
  100. package/identity/IdentityModal.js +1 -1
  101. package/kernel.js +1 -1
  102. package/layers/BaseElevationLayer.js +1 -1
  103. package/layers/BaseTileLayer.js +1 -1
  104. package/layers/CatalogLayer.js +1 -1
  105. package/layers/ElevationLayer.js +1 -1
  106. package/layers/FeatureLayer.js +1 -1
  107. package/layers/GeoRSSLayer.js +1 -1
  108. package/layers/ImageryLayer.js +1 -1
  109. package/layers/ImageryTileLayer.js +1 -1
  110. package/layers/IntegratedMeshLayer.js +1 -1
  111. package/layers/KMLLayer.js +1 -1
  112. package/layers/Layer.js +1 -1
  113. package/layers/LinkChartLayer.js +1 -1
  114. package/layers/MapImageLayer.js +1 -1
  115. package/layers/OpenStreetMapLayer.js +1 -1
  116. package/layers/PointCloudLayer.js +1 -1
  117. package/layers/SceneLayer.js +1 -1
  118. package/layers/StreamLayer.js +1 -1
  119. package/layers/SubtypeGroupLayer.js +1 -1
  120. package/layers/TileLayer.js +1 -1
  121. package/layers/VectorTileLayer.js +1 -1
  122. package/layers/WCSLayer.js +1 -1
  123. package/layers/WMSLayer.js +1 -1
  124. package/layers/WMTSLayer.js +1 -1
  125. package/layers/WebTileLayer.js +1 -1
  126. package/layers/graphics/sources/CSVSource.js +1 -1
  127. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  128. package/layers/graphics/sources/GeoJSONSource.js +1 -1
  129. package/layers/graphics/sources/MemorySource.js +1 -1
  130. package/layers/graphics/sources/WFSSource.js +1 -1
  131. package/layers/graphics/sources/support/QueryTask.js +1 -1
  132. package/layers/mixins/ArcGISImageService.js +1 -1
  133. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  134. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  135. package/layers/raster/datasets/BaseRaster.js +1 -1
  136. package/layers/raster/datasets/MRFRaster.js +1 -1
  137. package/layers/raster/formats/tiffParser.js +1 -1
  138. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  139. package/layers/support/GeometryDescriptor.js +1 -1
  140. package/layers/support/KMLSublayer.js +1 -1
  141. package/layers/support/TileInfo.js +1 -1
  142. package/layers/support/featureLayerUtils.js +1 -1
  143. package/layers/support/tiles3DUtils.js +1 -1
  144. package/layers/support/wmtsUtils.js +1 -1
  145. package/layers/video/videoUtils.js +1 -1
  146. package/package.json +3 -3
  147. package/portal/PortalItem.js +1 -1
  148. package/rest/query/executePivotQuery.js +1 -1
  149. package/rest/query/operations/queryPivot.js +1 -1
  150. package/rest/query/operations/queryUtils.js +1 -1
  151. package/rest/support/PivotQuery.js +1 -1
  152. package/rest/support/Query.js +1 -1
  153. package/smartMapping/raster/support/adapters/ImageryLayerAdapter.js +1 -1
  154. package/symbols/PictureFillSymbol.js +1 -1
  155. package/symbols/PictureMarkerSymbol.js +1 -1
  156. package/symbols/SimpleFillSymbol.js +1 -1
  157. package/symbols/SimpleLineSymbol.js +1 -1
  158. package/symbols/SimpleMarkerSymbol.js +1 -1
  159. package/symbols/TextSymbol.js +1 -1
  160. package/symbols/cim/Rasterizer.js +1 -1
  161. package/symbols/cim/utils.js +1 -1
  162. package/views/2d/PaddedViewState.js +1 -1
  163. package/views/2d/ViewState.js +1 -1
  164. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  165. package/views/2d/engine/webgl/TextureManager.js +1 -1
  166. package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
  167. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  168. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  169. package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
  170. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  171. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  172. package/views/3d/analysis/Viewshed/ViewshedComputedData.js +1 -1
  173. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  174. package/views/3d/layers/DrapedSubView3D.js +1 -1
  175. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  176. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  177. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  178. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  179. package/views/3d/layers/SceneLayerView3D.js +1 -1
  180. package/views/3d/layers/WMSLayerView3D.js +1 -1
  181. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  182. package/views/3d/layers/graphics/Graphics3DObjectStateSet.js +1 -1
  183. package/views/3d/layers/graphics/Graphics3DObjectStates.js +1 -1
  184. package/views/3d/layers/i3s/Highlights.js +1 -1
  185. package/views/3d/layers/support/SceneLayerViewRequiredFields.js +1 -1
  186. package/views/3d/layers/support/createFeatureFilterHighlight.js +2 -0
  187. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  188. package/views/3d/layers/support/highlightUtils.js +1 -1
  189. package/views/3d/layers/support/selectTiles3DSpatialReference.js +2 -0
  190. package/views/3d/support/cameraUtils.js +1 -1
  191. package/views/3d/support/earthUtils.js +1 -1
  192. package/views/3d/support/engineContent/line.js +1 -1
  193. package/views/3d/support/flow/geometryUtils.js +1 -1
  194. package/views/3d/support/hitTest.js +1 -1
  195. package/views/3d/terrain/TextureFader.js +1 -1
  196. package/views/3d/webgl-engine/Stage.js +1 -1
  197. package/views/3d/webgl-engine/createWebGLContext.js +2 -0
  198. package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
  199. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  200. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  201. package/views/3d/webgl-engine/materials/internal/ribbonLineBufferUtils.js +1 -1
  202. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  203. package/views/3d/webgl.d.ts +2 -1
  204. package/views/3d/webgl.js +1 -1
  205. package/views/SceneView.d.ts +7 -1
  206. package/views/SceneView.js +1 -1
  207. package/views/VideoView.js +1 -1
  208. package/views/draw/support/Box.js +1 -1
  209. package/views/layers/FeatureLikeLayerView.d.ts +3 -1
  210. package/views/layers/FeatureLikeLayerView.js +1 -1
  211. package/views/layers/GraphicsLayerView.d.ts +3 -1
  212. package/views/layers/ImageryLayerView.js +1 -1
  213. package/views/layers/ImageryTileLayerView.js +1 -1
  214. package/views/layers/SceneLayerView.d.ts +3 -2
  215. package/views/layers/SceneLayerView.js +1 -1
  216. package/views/support/Scheduler.js +1 -1
  217. package/views/types.d.ts +1 -0
  218. package/webscene/version.js +1 -1
  219. package/widgets/AreaMeasurement2D.js +1 -1
  220. package/widgets/AreaMeasurement3D.js +1 -1
  221. package/widgets/Attachments.js +1 -1
  222. package/widgets/Attribution.js +1 -1
  223. package/widgets/BasemapGallery.js +1 -1
  224. package/widgets/BasemapLayerList.js +1 -1
  225. package/widgets/BasemapToggle.js +1 -1
  226. package/widgets/BatchAttributeForm.js +1 -1
  227. package/widgets/Bookmarks.js +1 -1
  228. package/widgets/BuildingExplorer/BuildingLevelPicker/BuildingLevelPicker.js +1 -1
  229. package/widgets/BuildingExplorer/BuildingLevelPicker/Label.js +1 -1
  230. package/widgets/BuildingExplorer/BuildingLevelPicker/LevelItem.js +1 -1
  231. package/widgets/BuildingExplorer/BuildingPhasePicker/BuildingPhasePicker.js +1 -1
  232. package/widgets/BuildingExplorer.js +1 -1
  233. package/widgets/CatalogLayerList.js +1 -1
  234. package/widgets/Compass.js +1 -1
  235. package/widgets/CoordinateConversion.js +1 -1
  236. package/widgets/Daylight/support/SliderWithDropdown.js +1 -1
  237. package/widgets/Daylight.js +1 -1
  238. package/widgets/DirectLineMeasurement3D.js +1 -1
  239. package/widgets/Directions.js +1 -1
  240. package/widgets/DistanceMeasurement2D.js +1 -1
  241. package/widgets/Editor.js +1 -1
  242. package/widgets/ElevationProfile/components/LegendItem.js +1 -1
  243. package/widgets/ElevationProfile/components/Statistics.js +1 -1
  244. package/widgets/ElevationProfile.js +1 -1
  245. package/widgets/Expand.js +1 -1
  246. package/widgets/Feature/FeatureAttachments.js +1 -1
  247. package/widgets/Feature/FeatureContent.js +1 -1
  248. package/widgets/Feature/FeatureExpression.js +1 -1
  249. package/widgets/Feature/FeatureFields.js +1 -1
  250. package/widgets/Feature/FeatureMedia.js +1 -1
  251. package/widgets/Feature/FeatureRelationship.js +1 -1
  252. package/widgets/Feature/FeatureUtilityNetworkAssociationList.js +1 -1
  253. package/widgets/Feature/FeatureUtilityNetworkAssociations.js +1 -1
  254. package/widgets/Feature/support/FeatureElementInfo.js +1 -1
  255. package/widgets/Feature.js +1 -1
  256. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  257. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  258. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationSettings.js +1 -1
  259. package/widgets/FeatureForm.js +1 -1
  260. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  261. package/widgets/FeatureTable.js +1 -1
  262. package/widgets/FeatureTemplates.js +1 -1
  263. package/widgets/Features/FeaturesDrillIn.js +1 -1
  264. package/widgets/Features.js +1 -1
  265. package/widgets/FloorFilter.js +1 -1
  266. package/widgets/Fullscreen.js +1 -1
  267. package/widgets/Histogram.js +1 -1
  268. package/widgets/HistogramRangeSlider.js +1 -1
  269. package/widgets/Home.js +1 -1
  270. package/widgets/LayerList/ListItemPanel.js +1 -1
  271. package/widgets/LayerList.js +1 -1
  272. package/widgets/Legend/styles/card/CardView.js +1 -1
  273. package/widgets/Legend/styles/card/ColorRamp.js +1 -1
  274. package/widgets/Legend/styles/card/LegendElement.js +1 -1
  275. package/widgets/Legend/styles/card/SizeRamp.js +1 -1
  276. package/widgets/Legend/styles/card/UnivariateAboveAndBelowRamp.js +1 -1
  277. package/widgets/Legend/styles/card/UnivariateColorSizeRamp.js +1 -1
  278. package/widgets/Legend/styles/classic/ClassicView.js +1 -1
  279. package/widgets/Legend/styles/classic/ColorRamp.js +1 -1
  280. package/widgets/Legend/styles/classic/LegendElement.js +1 -1
  281. package/widgets/Legend/styles/classic/SizeRamp.js +1 -1
  282. package/widgets/Legend/styles/classic/UnivariateAboveAndBelowRamp.js +1 -1
  283. package/widgets/Legend/styles/classic/UnivariateColorSizeRamp.js +1 -1
  284. package/widgets/Legend.js +1 -1
  285. package/widgets/LineOfSight.js +1 -1
  286. package/widgets/Locate.js +1 -1
  287. package/widgets/Measurement.js +1 -1
  288. package/widgets/NavigationToggle.js +1 -1
  289. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  290. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  291. package/widgets/OrientedImageryViewer/support/geometryUtils.js +1 -1
  292. package/widgets/OrientedImageryViewer.js +1 -1
  293. package/widgets/Popup.js +1 -1
  294. package/widgets/Print.js +1 -1
  295. package/widgets/ScaleBar/ScaleBarViewModel.js +1 -1
  296. package/widgets/ScaleBar.js +1 -1
  297. package/widgets/ScaleRangeSlider.js +1 -1
  298. package/widgets/Search/SearchResultRenderer.js +1 -1
  299. package/widgets/Search.js +1 -1
  300. package/widgets/ShadowCast/components/ShadowTooltip.js +1 -1
  301. package/widgets/ShadowCast/components/ShadowTooltipContent.js +1 -1
  302. package/widgets/ShadowCast.js +1 -1
  303. package/widgets/Sketch.js +1 -1
  304. package/widgets/Slice.js +1 -1
  305. package/widgets/Slider.js +1 -1
  306. package/widgets/Spinner.js +1 -1
  307. package/widgets/Swipe.js +1 -1
  308. package/widgets/TableList/ListItemPanel.js +1 -1
  309. package/widgets/TableList.js +1 -1
  310. package/widgets/TimeSlider.js +1 -1
  311. package/widgets/TimeZoneLabel.js +1 -1
  312. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsLineSymbolPicker.js +1 -1
  313. package/widgets/UtilityNetworkAssociations.js +1 -1
  314. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  315. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
  316. package/widgets/UtilityNetworkTrace.js +1 -1
  317. package/widgets/UtilityNetworkValidateTopology.js +1 -1
  318. package/widgets/ValuePicker/ValuePickerBaseComponent.js +1 -1
  319. package/widgets/ValuePicker/ValuePickerCollection.js +1 -1
  320. package/widgets/ValuePicker/ValuePickerCombobox.js +1 -1
  321. package/widgets/ValuePicker/ValuePickerLabel.js +1 -1
  322. package/widgets/ValuePicker/ValuePickerSlider.js +1 -1
  323. package/widgets/ValuePicker.js +1 -1
  324. package/widgets/Widget.js +1 -1
  325. package/widgets/Zoom.js +1 -1
  326. package/widgets/smartMapping/BinaryColorSizeSlider.js +1 -1
  327. package/widgets/smartMapping/ClassedColorSlider.js +1 -1
  328. package/widgets/smartMapping/ClassedSizeSlider.js +1 -1
  329. package/widgets/smartMapping/ColorSizeSlider.js +1 -1
  330. package/widgets/smartMapping/ColorSlider.js +1 -1
  331. package/widgets/smartMapping/HeatmapSlider.js +1 -1
  332. package/widgets/smartMapping/OpacitySlider.js +1 -1
  333. package/widgets/smartMapping/SizeSlider.js +1 -1
  334. package/widgets/smartMapping/SmartMappingSliderBase.js +1 -1
  335. package/widgets/support/ColorPicker.js +1 -1
  336. package/widgets/support/FilterBuilder.js +1 -1
  337. package/widgets/support/FilterCondition.js +1 -1
  338. package/widgets/support/GridControls.js +1 -1
  339. package/widgets/support/MeasurementWidgetContent.js +1 -1
  340. package/widgets/support/PluginSettingsControls.js +1 -1
  341. package/widgets/support/SelectionList.js +1 -1
  342. package/widgets/support/SelectionToolbar.d.ts +1 -1
  343. package/widgets/support/SelectionToolbar.js +1 -1
  344. package/widgets/support/SketchTooltipControls.js +1 -1
  345. package/widgets/support/SnappingControls.js +1 -1
  346. package/widgets/support/TimezonePicker.js +1 -1
  347. package/widgets/support/UnitSelect.js +1 -1
  348. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationList.js +1 -1
  349. package/assets/esri/core/workers/chunks/01803f76bc0d9f2cd566.js +0 -1
  350. package/assets/esri/core/workers/chunks/02940f7ddaf98e69521e.js +0 -1
  351. package/assets/esri/core/workers/chunks/07e5482e1fc69be5de09.js +0 -1
  352. package/assets/esri/core/workers/chunks/0c893837f67829757df7.js +0 -1
  353. package/assets/esri/core/workers/chunks/15950c2fb173b62ee0ec.js +0 -1
  354. package/assets/esri/core/workers/chunks/1a91443970d64a59521d.js +0 -1
  355. package/assets/esri/core/workers/chunks/20a2124cbe43e5527c40.js +0 -1
  356. package/assets/esri/core/workers/chunks/26ea39dfdf887f357fce.js +0 -1
  357. package/assets/esri/core/workers/chunks/276a0b549acf048e8673.js +0 -1
  358. package/assets/esri/core/workers/chunks/2c3612379111457c3221.js +0 -1
  359. package/assets/esri/core/workers/chunks/34467f7d84baffd772a3.js +0 -1
  360. package/assets/esri/core/workers/chunks/398ec098fffe6abceedd.js +0 -1
  361. package/assets/esri/core/workers/chunks/3b32a24488b3068f0cb7.js +0 -1
  362. package/assets/esri/core/workers/chunks/427d929dc7f89b0a1ea9.js +0 -1
  363. package/assets/esri/core/workers/chunks/432728c557be5dfa26b5.js +0 -1
  364. package/assets/esri/core/workers/chunks/4c240ca50f70bf30813f.js +0 -1
  365. package/assets/esri/core/workers/chunks/514cc15acb77dc85035c.js +0 -1
  366. package/assets/esri/core/workers/chunks/585ae43c7bcb86a26762.js +0 -1
  367. package/assets/esri/core/workers/chunks/5e48898cebb6dbaf09b5.js +0 -1
  368. package/assets/esri/core/workers/chunks/5ec5a6cef9ee9a8cc400.js +0 -1
  369. package/assets/esri/core/workers/chunks/601e1d020b8115497944.js +0 -1
  370. package/assets/esri/core/workers/chunks/687deb918eb48a963c8f.js +0 -1
  371. package/assets/esri/core/workers/chunks/6a21dc13a465757ba007.js +0 -1
  372. package/assets/esri/core/workers/chunks/6e910342ada398c98e30.js +0 -1
  373. package/assets/esri/core/workers/chunks/78818c2a898444f7e890.js +0 -1
  374. package/assets/esri/core/workers/chunks/7d2cbc767c336d15e4d5.js +0 -1
  375. package/assets/esri/core/workers/chunks/7d497df6e13162156342.js +0 -1
  376. package/assets/esri/core/workers/chunks/7dbf4c7480bf9c72820d.js +0 -1
  377. package/assets/esri/core/workers/chunks/80c234ee5276ea1645db.js +0 -1
  378. package/assets/esri/core/workers/chunks/966204d6dedc8149c3e9.js +0 -1
  379. package/assets/esri/core/workers/chunks/9ab0735e86cf8932bf9d.js +0 -1
  380. package/assets/esri/core/workers/chunks/a0356702f2d3f787aeac.js +0 -1
  381. package/assets/esri/core/workers/chunks/a6f969851d4278865cc5.js +0 -1
  382. package/assets/esri/core/workers/chunks/ab0ea4042f4e13874aed.js +0 -1
  383. package/assets/esri/core/workers/chunks/ab98ade3257360015d6c.js +0 -1
  384. package/assets/esri/core/workers/chunks/b13d8f4e4e80ef00b1bd.js +0 -1
  385. package/assets/esri/core/workers/chunks/b15a8d4322f3b7819d2f.js +0 -1
  386. package/assets/esri/core/workers/chunks/b472c0a21ae29e653f7d.js +0 -1
  387. package/assets/esri/core/workers/chunks/b90271ce38522bcf813b.js +0 -1
  388. package/assets/esri/core/workers/chunks/ba91df9835cdea7698a9.js +0 -1
  389. package/assets/esri/core/workers/chunks/bd812dd75d2a3d7d0441.js +0 -1
  390. package/assets/esri/core/workers/chunks/bfe13ac9fa1aafb190a1.js +0 -1
  391. package/assets/esri/core/workers/chunks/c1cf3edce15f09648eb4.js +0 -1
  392. package/assets/esri/core/workers/chunks/c31830ee897d5a7f2582.js +0 -1
  393. package/assets/esri/core/workers/chunks/c48d97c38e821be17dc5.js +0 -1
  394. package/assets/esri/core/workers/chunks/c7ad62f54d2abe1d17a0.js +0 -1
  395. package/assets/esri/core/workers/chunks/cf21b217b13770757cb8.js +0 -1
  396. package/assets/esri/core/workers/chunks/d42a4f47843e075c56a8.js +0 -1
  397. package/assets/esri/core/workers/chunks/deb408bee61ca192b2ce.js +0 -1
  398. package/assets/esri/core/workers/chunks/e121d15b883184ee83e7.js +0 -1
  399. package/assets/esri/core/workers/chunks/e4042e43f0081fe49f7b.js +0 -1
  400. package/assets/esri/core/workers/chunks/e932951598499befabf5.js +0 -1
  401. package/assets/esri/core/workers/chunks/eaab787a5f2445be5e5a.js +0 -1
  402. package/assets/esri/core/workers/chunks/f06ef153e106b26a6748.js +0 -1
  403. package/assets/esri/core/workers/chunks/faae3c43048b42341536.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7],{69052(e,t,r){r.d(t,{hr:()=>i});var s=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return a(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,s.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+n(this.range,e-t,r)}minimalMonotonic(e,t,r){return a(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);let r=(t=this.normalize(t))-e,s=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(s)?r:s}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function a(e,t,r,s,i=0,a=!1){return(s-=i)<t?s+=n(e,t-s):s>r&&(s-=n(e,s-r)),a&&s===r&&(s=t),s+i}function n(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const o=new i(0,2*Math.PI),u=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,u,"uC",0,o])},18370(e,t,r){r.d(t,{z:()=>i});class s{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function i(e){return new s(e)}},82534(e,t,r){function s(){return[0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>i,vt:()=>s});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:s,fromValues:function(e,t,r,s){return[e,t,r,s]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,a])},67026(e,t,r){r.d(t,{A6:()=>f,Xd:()=>p,Xr:()=>d,lw:()=>c,x8:()=>l});var s=r(29242),i=r(82534),a=r(51850),n=r(34304),o=r(35522),u=r(78955);function l(e,t,r){r*=.5;let s=Math.sin(r);return e[0]=s*t[0],e[1]=s*t[1],e[2]=s*t[2],e[3]=Math.cos(r),e}function p(e,t){let r=2*Math.acos(t[3]),s=Math.sin(r/2);return s>(0,n.FD)()?(e[0]=t[0]/s,e[1]=t[1]/s,e[2]=t[2]/s):(e[0]=1,e[1]=0,e[2]=0),r}function c(e,t,r){let s=t[0],i=t[1],a=t[2],n=t[3],o=r[0],u=r[1],l=r[2],p=r[3];return e[0]=s*p+n*o+i*l-a*u,e[1]=i*p+n*u+a*o-s*l,e[2]=a*p+n*l+s*u-i*o,e[3]=n*p-s*o-i*u-a*l,e}function h(e,t,r,s){let i,a,o,u,l,p=t[0],c=t[1],h=t[2],d=t[3],y=r[0],f=r[1],m=r[2],g=r[3];return a=p*y+c*f+h*m+d*g,a<0&&(a=-a,y=-y,f=-f,m=-m,g=-g),1-a>(0,n.FD)()?(i=Math.acos(a),o=Math.sin(i),u=Math.sin((1-s)*i)/o,l=Math.sin(s*i)/o):(u=1-s,l=s),e[0]=u*p+l*y,e[1]=u*c+l*f,e[2]=u*h+l*m,e[3]=u*d+l*g,e}function d(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){let r,s=t[0]+t[4]+t[8];if(s>0)r=Math.sqrt(s+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let s=0;t[4]>t[0]&&(s=1),t[8]>t[3*s+s]&&(s=2);let i=(s+1)%3,a=(s+2)%3;r=Math.sqrt(t[3*s+s]-t[3*i+i]-t[3*a+a]+1),e[s]=.5*r,r=.5/r,e[3]=(t[3*i+a]-t[3*a+i])*r,e[i]=(t[3*i+s]+t[3*s+i])*r,e[a]=(t[3*a+s]+t[3*s+a])*r}return e}function f(e,t,r,s){let i=.5*Math.PI/180;t*=i,r*=i,s*=i;let a=Math.sin(t),n=Math.cos(t),o=Math.sin(r),u=Math.cos(r),l=Math.sin(s),p=Math.cos(s);return e[0]=a*u*p-n*o*l,e[1]=n*o*p+a*u*l,e[2]=n*u*l-a*o*p,e[3]=n*u*p+a*o*l,e}const m=u.C,g=u.hZ,v=u.WQ,S=c,_=u.hs,A=u.Om,x=u.Cc,b=u.Bw,M=b,w=u.m3,q=w,I=u.S8,R=u.t2,F=u.aI,C=(0,a.vt)(),O=(0,a.fA)(1,0,0),T=(0,a.fA)(0,1,0),P=(0,i.vt)(),E=(0,i.vt)(),N=(0,s.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){let r=t[0],s=t[1],i=t[2];return e[0]=r,e[1]=s,e[2]=i,e[3]=Math.sqrt(Math.abs(1-r*r-s*s-i*i)),e},conjugate:d,copy:m,dot:A,equals:F,exactEquals:R,fromEuler:f,fromMat3:y,getAxisAngle:p,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){let r=t[0],s=t[1],i=t[2],a=t[3],n=r*r+s*s+i*i+a*a,o=n?1/n:0;return e[0]=-r*o,e[1]=-s*o,e[2]=-i*o,e[3]=a*o,e},len:M,length:b,lerp:x,mul:S,multiply:c,normalize:I,random:function(e){let t=n.Ov,r=t(),s=t(),i=t(),a=Math.sqrt(1-r),o=Math.sqrt(r);return e[0]=a*Math.sin(2*Math.PI*s),e[1]=a*Math.cos(2*Math.PI*s),e[2]=o*Math.sin(2*Math.PI*i),e[3]=o*Math.cos(2*Math.PI*i),e},rotateX:function(e,t,r){r*=.5;let s=t[0],i=t[1],a=t[2],n=t[3],o=Math.sin(r),u=Math.cos(r);return e[0]=s*u+n*o,e[1]=i*u+a*o,e[2]=a*u-i*o,e[3]=n*u-s*o,e},rotateY:function(e,t,r){r*=.5;let s=t[0],i=t[1],a=t[2],n=t[3],o=Math.sin(r),u=Math.cos(r);return e[0]=s*u-a*o,e[1]=i*u+n*o,e[2]=a*u+s*o,e[3]=n*u-i*o,e},rotateZ:function(e,t,r){r*=.5;let s=t[0],i=t[1],a=t[2],n=t[3],o=Math.sin(r),u=Math.cos(r);return e[0]=s*u+i*o,e[1]=i*u-s*o,e[2]=a*u+n*o,e[3]=n*u-a*o,e},rotationTo:function(e,t,r){let s=(0,o.Om)(t,r);return s<-.999999?((0,o.$A)(C,O,t),(0,o.Il)(C)<1e-6&&(0,o.$A)(C,T,t),(0,o.S8)(C,C),l(e,C,Math.PI),e):s>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,o.$A)(C,t,r),e[0]=C[0],e[1]=C[1],e[2]=C[2],e[3]=1+s,I(e,e))},scale:_,set:g,setAxes:function(e,t,r,s){let i=N;return i[0]=r[0],i[3]=r[1],i[6]=r[2],i[1]=s[0],i[4]=s[1],i[7]=s[2],i[2]=-t[0],i[5]=-t[1],i[8]=-t[2],I(e,y(e,i))},setAxisAngle:l,slerp:h,sqlerp:function(e,t,r,s,i,a){return h(P,t,i,a),h(E,r,s,a),h(e,P,E,2*a*(1-a)),e},sqrLen:q,squaredLength:w,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"})),r.d(t,["hZ",0,g,"t2",0,R])},95696(e,t,r){r.d(t,{A:()=>l});var s,i=r(32198),a=r(69540),n=r(25482),o=r(91429),u=r(93223);let l=class extends((0,a.OU)(n.o)){static{s=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new s}};(0,i.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=s=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},18251(e,t,r){r.d(t,{A:()=>l});var s=r(32198),i=r(69540),a=r(25482),n=r(91429),o=r(51850),u=r(93223);let l=class extends((0,i.OU)(a.o)){constructor(e){super(e),this.type="local",this.origin=(0,o.vt)()}};(0,s.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,s.Cg)([(0,n.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},73836(e,t,r){r.d(t,{A:()=>d});var s=r(32198),i=r(69540),a=r(25482),n=r(91429),o=r(58083),u=r(9093),l=r(67026),p=r(82534),c=r(51850),h=r(24770);let d=class extends((0,i.OU)(a.o)){constructor(e){super(e),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(h.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,c.o8)((0,h.yo)(e)),this.rotationAngle=(0,h.g7)(e)}get localMatrix(){let e=(0,u.vt)();return(0,l.x8)(y,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,o.o1)(e,y,this.translation,this.scale),e}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,o.t2)(this.localMatrix,e.localMatrix)}};(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,s.Cg)([(0,n.MZ)()],d.prototype,"rotation",null),(0,s.Cg)([(0,n.MZ)()],d.prototype,"localMatrix",null),(0,s.Cg)([(0,n.MZ)()],d.prototype,"localMatrixInverse",null),d=(0,s.Cg)([(0,n.$K)("esri.geometry.support.MeshTransform")],d);const y=(0,p.vt)()},24770(e,t,r){r.d(t,{$I:()=>m,AU:()=>d,g7:()=>f,i4:()=>p,ui:()=>c,vt:()=>l,yo:()=>y});var s=r(34727),i=r(58083),a=r(67026),n=r(82534),o=r(35522),u=r(51850);function l(e=v){return[e[0],e[1],e[2],e[3]]}function p(e,t,r=l()){return(0,o.C)(r,e),r[3]=t,r}function c(e,t=l()){let r=(0,i.l)(S,e);return g(t,(0,s.KJ)((0,a.Xd)(t,r))),t}function h(e,t,r=l()){return(0,a.x8)(S,e,m(e)),(0,a.x8)(_,t,m(t)),(0,a.lw)(S,_,S),g(r,(0,s.KJ)((0,a.Xd)(r,S)))}function d(e,t,r,s=l()){return p(u.Cw,e,A),p(u.JP,t,x),p(u.Cb,r,b),h(A,x,A),h(A,b,s),s}function y(e){return e}function f(e){return e[3]}function m(e){return(0,s.kU)(e[3])}function g(e,t){return e[3]=t,e}const v=[0,0,1,0],S=(0,n.vt)(),_=(0,n.vt)(),A=(l(),l()),x=l(),b=l();r.d(t,["up",0,v])},63579(e,t,r){r.d(t,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>d,fH:()=>f,in:()=>y,yr:()=>l});var s=r(56507),i=r(4576),a=r(17676),n=r(20557);class o{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,i.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(let t of this.parts)e+=t.partHash;return e}async toBlob(e){let{parts:t}=this;if(1===t.length)return t[0].toBlob(e);let r=await Promise.all(t.map(t=>t.toBlob(e)));return(0,a.Te)(e),new Blob(r)}}class u{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){let{data:t}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,a.Te)(e),t}}function l(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(h):h(e.files);case"service":return e.assets.some(h);case"loadable":return!0;default:return!1}}(e?.source)}const p=/^(model\/gltf\+json)|(model\/gltf-binary)$/,c=/\.(gltf|glb)/i;function h(e){if(e instanceof File){let{type:t,name:r}=e;return p.test(t)||c.test(r)}return p.test(e.assetMimeType)||c.test(e.assetName)}function d(e,t){if(!e)return!1;let{source:r}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(r,t)}function y(e,t){if(e===t)return!0;let{source:r}=e,{source:s}=t;if(r===s)return!0;if("service"===r.type&&"service"===s.type){if(r.assets.length!==s.assets.length)return!1;let e=(e,t)=>e.assetName<t.assetName?-1:+(e.assetName>t.assetName),t=[...r.assets].sort(e),i=[...s.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(i[e]))return!1;return!0}return!1}function f(e,t){return e instanceof File?(0,n.rq)(e,t):(0,n.z$)(e.assetMimeType,e.assetName,t)}function m(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function g(e){return!!e.original}},27615(e,t,r){r.d(t,{CK:()=>u,Hq:()=>o,MW:()=>l,TE:()=>p,yJ:()=>c});var s=r(35522),i=r(86738),a=r(95696),n=r(18251);function o(e){return null!=e.origin}function u(e){return o(e.vertexSpace)}function l(e,t){if(!o(e))return null;let[r,s,a]=e.origin;return new i.A({x:r,y:s,z:a,spatialReference:t})}function p(e,t){let{x:r,y:s,z:i,spatialReference:o}=e,u=[r,s,i??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(o))?new n.A({origin:u}):new a.A({origin:u})}function c(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,s.t2)(e.origin,t.origin))}},52039(e,t,r){r.d(t,{O7:()=>h,el:()=>l});var s=r(69052),i=(r(49186),r(18370)),a=r(17676),n=(r(5443),r(39829)),o=(r(82799),r(16930)),u=(r(80754),r(21325));async function l(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let s=null;for(let t of e)s??=t?.spatialReference;if(!s)return e;let i=(0,u.Vp)(s);if(!i)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(i);return["xmin"in t?t:new n.A(t)]}let[o,l]=i.valid,h=!1;for(let t of e){if(!t)continue;if("point"===t.type){h||=t.x>=l,h||=t.x<=o;continue}let{extent:e}=t;if(null==e){h=!0;break}h||=e.xmin>=l,h||=e.xmin<=o,h||=e.xmax>=l,h||=e.xmax<=o}if(!h)return e;let[{foldInto360Range:d},y]=await(0,a.qr)(Promise.all([p.getImportPromise(),c.getImportPromise()]),r),f=y.fromSpatialReference(s);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=y.fromGeometry(e),r=y.toGeometry(d(t,f),s);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const p=(0,i.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),c=(0,i.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function h(e,t,r){let s=(0,u.Vp)(r);if(null==s)return e;let[i,a]=s.valid,n=2*a,o=0,l=0;t>a?o=Math.ceil(Math.abs(t-a)/n):t<i&&(o=-Math.ceil(Math.abs(t-i)/n)),e>a?l=Math.ceil(Math.abs(e-a)/n):e<i&&(l=-Math.ceil(Math.abs(e-i)/n));let p=e+(o-l)*n,c=p-t;return c>a?p-=n:c<i&&(p+=n),p}function d(e){let t=(0,u.Vp)(e);if(null==t)return null;let[r,i]=t.valid;return new s.hr(r,i)}const y=d(o.A.WGS84);d(o.A.WebMercator),r.d(t,["Y_",0,y])},80754(e,t,r){r.d(t,{kS:()=>l,kd:()=>u});var s=r(82799),i=r(16930),a=r(60408),n=r(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function u(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){if((0,n.Ed)(e))for(let r of function(e){return(0,a.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,n.aO)(e)){let[r,s]=e.c;r[0]+=t,s[0]+=t}else if((0,n.FG)(e)){let[r,s]=e.a;r[0]+=t,s[0]+=t}else if((0,n.n1)(e)){let[r,s,i]=e.b;r[0]+=t,s[0]+=t,i[0]+=t}else e[0]+=t;for(let r of function(e){return(0,a.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}r.d(t,["j7",0,o])},99352(e,t,r){r.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},60845(e,t,r){r.r(t),r.d(t,{default:()=>ie});var s=r(32198),i=r(92602),a=r(56507),n=r(4576),o=r(49186),u=r(44208),l=r(66552),p=r(92474),c=r(53966),h=r(93637),d=r(17676),y=r(36708),f=r(84952),m=r(13069),g=r(91429),v=r(5443),S=r(16930),_=r(95696),A=r(27615),x=r(63579),b=r(52106),M=r(86211);function w(e){return"object"==typeof e&&!!e&&"objectId"in e&&!!e.objectId}function q(e){return e.every(w)}function I(e){return"object"==typeof e&&!!e&&"globalId"in e&&!!e.globalId}function R(e){return e.every(I)}var F=r(99917),C=r(65864),O=r(73836),T=r(21325);async function P(e,t,r){let{geometry:s}=t,i={...t.attributes};if(null!=r&&"mesh"===s?.type){let{transformFieldRoles:t}=r,{origin:a,spatialReference:n,vertexSpace:o}=s,u=s.transform??new O.A,l="local"===o.type,p=e.spatialReference,c=p.isGeographic,h=(0,T.aI)(p,n),d=(0,F.isEqualBaseGCS)(n,p)&&(0,F.canProjectWithoutEngine)(n,p);if(!(l&&c&&d||!l&&!c&&h))return null;let y=(0,F.projectWithoutEngine)(a,n,p);if(null==y)return null;if(i[t.originX]=y.x,i[t.originY]=y.y,i[t.originZ]=y.z??0,null!=u){let{translation:e,scale:r,rotation:s}=u,a=l?1:(0,M.KX)(n)/(0,M.KX)(p);i[t.translationX]=e[0]*a,i[t.translationY]=e[2]*a,i[t.translationZ]=-e[1]*a,i[t.scaleX]=r[0],i[t.scaleY]=r[2],i[t.scaleZ]=r[1],i[t.rotationX]=s[0],i[t.rotationY]=s[2],i[t.rotationZ]=-s[1],i[t.rotationDeg]=s[3]}return{attributes:i}}return null==s?{attributes:i}:"mesh"===s.type||"extent"===s.type?null:{geometry:s.toJSON(),attributes:i}}async function E(e,t){let r=await Promise.all((t.addAttachments??[]).map(t=>N(e,t))),s=await Promise.all((t.updateAttachments??[]).map(t=>N(e,t))),i=t.deleteAttachments??[];return r.length||s.length||i.length?{adds:r,updates:s,deletes:[...i]}:null}async function N(e,t){let{feature:r,attachment:s}=t,{globalId:i,name:a,contentType:n,data:o,keywords:u,uploadId:l}=s,p={globalId:i};if(r&&("attributes"in r?p.parentGlobalId=r.attributes?.[e.globalIdField]:r.globalId&&(p.parentGlobalId=r.globalId)),l)p.uploadId=l;else if(o){let e=await(0,f._0)(o);e&&(p.contentType=e.mediaType,p.data=e.data),o instanceof File&&(p.name=o.name)}return a&&(p.name=a),n&&(p.contentType=n),u&&(p.keywords=u),p}function D(e){let t=!0===e.success?null:e.error||{code:void 0,description:"Feature edit failed"};return{objectId:e.objectId,globalId:e.globalId,error:t?new o.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}function Q(e,t){return new b.A({attributes:e.attributes,geometry:(0,C.rS)({...e.geometry,spatialReference:t})})}function Z(e,t){return{adds:e?.adds?.map(e=>Q(e,t))||[],updates:e?.updates?.map(e=>({original:Q(e[0],t),current:Q(e[1],t)}))||[],deletes:e?.deletes?.map(e=>Q(e,t))||[],spatialReference:t}}var V=r(64714),J=r(64314),j=r(60694),G=r(15426),U=r(20557),k=r(69622),B=r(76553),z=r(10107),L=r(64108),X=r(36003),$=r(2991);let W=class extends k.A{constructor(e){super(e),this.fieldsIndex=null,this.layer=null}getExpression(e){let{layer:t}=this;if(!t)return;let r=t.timeInfo;if(!(0,B.H)(t))return{type:"where",value:(0,$.RZ)(e,r,this.fieldsIndex)};let s=t.getAtOrigin("timeInfo","service");return s?r?r===s||(0,X.L)(r,s)?{type:"time",value:(0,$.G9)(e)}:{type:"where",value:(0,$.RZ)(e,r,this.fieldsIndex)}:void 0:r?{type:"where",value:(0,$.RZ)(e,r,this.fieldsIndex)}:void 0}};(0,s.Cg)([(0,z.MZ)({constructOnly:!0})],W.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,z.MZ)({constructOnly:!0})],W.prototype,"layer",void 0),W=(0,s.Cg)([(0,L.$)("esri.layers.support.TimeInformation")],W);var Y=r(99199),H=r(96520),K=r(97552),ee=r(79677),te=r(20816);const re=new l.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),se=new l.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let ie=class extends p.x_{constructor(e){super(e),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer","Annotation Layer","Dimension Layer"]),this.refresh=(0,d.sg)(async()=>{await this.load();let e=this.sourceJSON.editingInfo?.lastEditDate;if(null==e)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}let t=e!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:t,updates:t?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(e){let t=this.layer.sourceJSON,r=this._fetchService(t,{...e}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,e)).then(()=>this._ensureLatestMetadata(e));return this.addResolvingPromise(r),Promise.resolve(this)}async reload(e){let t=this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0;await this._fetchService(null,{...e,cacheBust:t})}initialize(){this.addHandles([(0,y.wB)(()=>{let e=this.layer;return e&&"lastEditsEventDate"in e?e.lastEditsEventDate:null},e=>this._handleLastEditsEventChange(e))])}destroy(){this._removeEditInterceptor()}get queryTask(){let{layer:e}=this,{capabilities:t,parsedUrl:r,gdbVersion:s,spatialReference:i,fieldsIndex:a,uniqueIdFields:n}=e,o="infoFor3D"in e?e.infoFor3D:null,l="dynamicDataSource"in e?e.dynamicDataSource:null,p=(0,u.A)("featurelayer-pbf")&&t?.query.supportsFormatPBF&&null==o,c=p&&t?.query.supportsFormatPBFWithCurves,h=t?.operations?.supportsQueryAttachments??!1,d=t?.query?.relativeTimeBinWindow??0,y=new W({fieldsIndex:a,layer:e}),f=r.path;return new J.A({dynamicDataSource:l,encodingCapabilities:t?.query,fieldsIndex:a,gdbVersion:s,infoFor3D:o,pbfSupported:p,pbfSupportedWithCurves:c,queryAttachmentsSupported:h,relativeTimeBinWindow:d,sourceSpatialReference:i,timeInformation:y,uniqueIdFields:n,url:f})}async addAttachment(e,t,r){await this.load();let{layer:s}=this;await(0,G.VA)(s,"editing");let i=e.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+i+"/addAttachment",o=this._getLayerRequestOptions({query:r}),u=this._getFormDataForAttachment(t,o.query);try{return D((await(0,a.A)(n,{body:u})).data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(i,e)}}async updateAttachment(e,t,r,s){await this.load();let{layer:i}=this;await(0,G.VA)(i,"editing");let n=e.attributes[i.objectIdField],o=i.parsedUrl.path+"/"+n+"/updateAttachment",u=this._getLayerRequestOptions({query:{attachmentId:t,...s}}),l=this._getFormDataForAttachment(r,u.query);try{return D((await(0,a.A)(o,{body:l})).data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(n,e)}}async applyEdits(e,t){await this.load();let{layer:r}=this;await(0,G.VA)(r,"editing");let s="infoFor3D"in r?r.infoFor3D:null,i=null!=s,u=i||(t?.globalIdUsed??!1),l=i?await this._uploadMeshesAndGetAssetMapEditsJSON(e):null,p=e.addFeatures?.map(e=>P(this.layer,e,s))??[],c=(await Promise.all(p)).filter(n.Ru),h=e.updateFeatures?.map(e=>P(this.layer,e,s))??[],d=(await Promise.all(h)).filter(n.Ru),y=function(e,t,r){if(!t||0===t.length)return[];if(r&&R(t))return t.map(e=>e.globalId);if(q(t))return t.map(e=>e.objectId);let s=r?e.globalIdField:e.objectIdField;return s?t.map(e=>e.getAttribute(s)):[]}(this.layer,e.deleteFeatures,u);(0,H.u)(c,d,r.spatialReference);let f=await E(this.layer,e),m=r.capabilities.editing.supportsAsyncApplyEdits&&i,g=t?.gdbVersion||r.gdbVersion,v={gdbVersion:g,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:t?.returnEditMoment,trueCurveClient:t?.editsRespectTrueCurves,usePreviousEditMoment:t?.usePreviousEditMoment,async:m};await(0,te.ZJ)(this.layer.url,g,!0);let S=(0,te.w5)(this.layer.url,g||null);if(await(0,te.We)(r.url,g,r.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");t?.returnServiceEditsOption?(v.edits=JSON.stringify([{id:r.layerId,adds:c.length?c:null,updates:d.length?d:null,deletes:y.length?y:null,attachments:f,assetMaps:l}]),v.returnServiceEditsOption=re.toJSON(t?.returnServiceEditsOption),v.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(v.adds=c.length?JSON.stringify(c):null,v.updates=d.length?JSON.stringify(d):null,v.deletes=y.length?u?JSON.stringify(y):y.join(","):null,v.attachments=f&&JSON.stringify(f),v.assetMaps=null==l?void 0:JSON.stringify(l));let _=this._getLayerRequestOptions({method:"post",query:v});S&&(_.authMode="immediate",_.query.returnEditMoment=!0,_.query.sessionId=te.TA);let A,x=t?.returnServiceEditsOption?r.url:r.parsedUrl.path;try{A=m?await this._asyncApplyEdits(x+"/applyEdits",_):await(0,a.A)(x+"/applyEdits",_)}catch(e){if(!function(e){let t=e.details.raw,r=+t.code,s=+t.extendedCode;return 500===r&&(-2147217144===s||-2147467261===s)}(e))throw e;_.authMode="immediate",A=m?await this._asyncApplyEdits(x+"/applyEdits",_):await(0,a.A)(x+"/applyEdits",_)}return this._createEditsResult(A)}async deleteAttachments(e,t,r){await this.load();let{layer:s}=this;await(0,G.VA)(s,"editing");let i=e.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+i+"/deleteAttachments";try{return(await(0,a.A)(n,this._getLayerRequestOptions({query:{attachmentIds:t.join(","),...r},method:"post"}))).data.deleteAttachmentResults.map(D)}catch(e){throw this._createAttachmentErrorResult(i,e)}}fetchRecomputedExtents(e={}){let t=e.signal;return this.load({signal:t}).then(async()=>{let t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:i}=await(0,a.A)(`${s}/${r}`,t),{id:n,extent:o,fullExtent:u,timeExtent:l}=i,p=o||u;return{id:n,fullExtent:p&&v.A.fromJSON(p),timeExtent:l&&ee.A.fromJSON({start:l[0],end:l[1]})}})}async queryAttachments(e,t={}){await this.load();let r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){await this.load();let r=await this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)});if(e.outStatistics?.length&&r.features.length){let t=new Map;if(r.features.forEach(r=>{let s=r.attributes;e.outStatistics?.forEach(({outStatisticFieldName:e})=>{if(e){let r=e.toLowerCase();r&&r in s&&e!==r&&(s[e]=s[r],delete s[r],t.set(r,e))}})}),null!=r.fields)for(let e of r.fields){let r=t.get(e.name.toLowerCase());null!=r&&(e.name=r)}}return r}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryPivot(e,t){return await this.load(),this.queryTask.executePivotQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryAttributeBins(e,t){return await this.load(),this.queryTask.executeAttributeBinsQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}async fetchPublishingStatus(){if(!(0,j.Wo)(this.layer.url))return"unavailable";let e=(0,f.fj)(this.layer.url,"status"),t=await(0,a.A)(e,{query:{f:"json"}});return se.fromJSON(t.data.status)}async uploadAssets(e,t){let{uploadAssets:s}=await r.e(1384).then(()=>r(31384));return s(e,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},t)}_handleLastEditsEventChange(e){let t=this.layer;if(null==e||!("capabilities"in t)||!("effectiveCapabilities"in t)||t.capabilities?.operations?.supportsEditing||!t.effectiveCapabilities?.operations?.supportsEditing)return;let r=t.url;null!=r&&("layerId"in t&&(r=(0,f.fj)(r,t.layerId.toString())),this._getOrCreateEditInterceptor(r).before=t=>{let r=t.requestOptions.method??"auto";if("auto"===r||"head"===r){let r=t.requestOptions.query??{};r._ts=e.getTime(),t.requestOptions.query=r}})}_getOrCreateEditInterceptor(e){return this._editInterceptor??(this._editInterceptor={urls:e},i.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,n.TF)(i.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(e,t){let r=(await(0,a.A)(e,t)).data.statusUrl;for(;;){let e=(await(0,a.A)(r,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,a.A)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,d.Pl)(ae)}}_createRequestQueryOptions(e){let t={...this.layer.customParameters,token:this.layer.apiKey,...e?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){let r={};(0,u.A)("featurelayer-advanced-symbols")&&(r.returnAdvancedSymbols=!0),t?.cacheBust&&(r._ts=Date.now());let{data:s}=await(0,a.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:r,signal:t?.signal}));e=s}this.layer.applyPreferredHost(e),this.sourceJSON=await this._patchServiceJSON(e,t?.signal);let r=e.type;if(!this.supportedSourceTypes.has(r))throw new o.A("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}async _patchServiceJSON(e,t){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){let t=(0,V.F0)(e.geometryType).renderer;(0,h.sM)("drawingInfo.renderer",t,e)}if("esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),null==e.extent)try{let{data:r}=await(0,a.A)(this.layer.url,this._getLayerRequestOptions({signal:t}));r.spatialReference&&(e.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:r.spatialReference})}catch(e){(0,d.QP)(e)}return e}async _ensureLatestMetadata(e){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...e,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(e){let{addAssetFeatures:t}=e;if(!t?.length||await this._areAllAssetsAlreadyMapped(t))return null;let s=e.addFeatures.filter(e=>e.geometry);if(t.length!==s.length+e.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");let i=[],a=new Map;for(let e of t){let{geometry:t}=e,{vertexSpace:s}=t;if((0,A.Hq)(s))i.push(t);else{let s=t.origin,{convertMeshVertexSpace:n}=await Promise.all([r.e(2258),r.e(4548)]).then(()=>r(28846)),o=await n(t,new _.A({origin:[s.x,s.y,s.z??0]}));a.set(o,t),e.geometry=o,i.push(o)}}await this.uploadAssets(i);for(let[e,t]of a)t.addExternalSources(e.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(t),updates:[],deletes:[]}}_getAssetMapEditsJSON(e){let t=[],r=this.layer.globalIdField,s=this.layer.parsedUrl;for(let i of e){let{metadata:e}=i.geometry,a=e.getExternalSourcesOnService(s),n=i.getAttribute(r);if(0===a.length){c.A.getLogger(this).error(`Skipping feature ${n}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}let{source:o}=a.find(x.dK)??a[0];for(let e of o.assets)1===e.parts.length?t.push({globalId:(0,m.yS)(),parentGlobalId:n,assetName:e.assetName,assetHash:e.parts[0].partHash,flags:[]}):c.A.getLogger(this).error(`Skipping asset ${e.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return t}_createEditsResult(e){let t=e.data,{layerId:r}=this.layer,s=[],i=null;if(Array.isArray(t))for(let e of t)null!=e.editedFeatures&&s.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(i={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else i=t;let a=function(e){let t=e?.assetMaps;if(t){for(let e of t.addResults)e.success||c.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${e.globalId}.`);for(let e of t.updateResults)e.success||c.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${e.globalId}.`)}let r=e?.attachments,s={addFeatureResults:e?.addResults?.map(D)??[],updateFeatureResults:e?.updateResults?.map(D)??[],deleteFeatureResults:e?.deleteResults?.map(D)??[],addAttachmentResults:r?.addResults?r.addResults.map(D):[],updateAttachmentResults:r?.updateResults?r.updateResults.map(D):[],deleteAttachmentResults:r?.deleteResults?r.deleteResults.map(D):[]};return e?.editMoment&&(s.editMoment=e.editMoment),s}(i);if(s.length>0){a.editedFeatureResults=[];for(let e of s){let{editedFeatures:t}=e,r=t?.spatialReference?new S.A(t.spatialReference):null;a.editedFeatureResults.push({layerId:e.id,editedFeatures:Z(t,r)})}}return a}_createAttachmentErrorResult(e,t){let r=t.details.messages?.[0]||t.message,s=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new o.A("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(e,t){let r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(let e in t){let s=t[e];null!=s&&(r.set?r.set(e,s):r.append(e,s))}return r}_getLayerRequestOptions(e={}){let{layer:t,layer:{parsedUrl:r,gdbVersion:s}}=this;return{...e,query:{gdbVersion:s,layer:"dynamicDataSource"in t&&t.dynamicDataSource?JSON.stringify(t.dynamicDataSource.toLayerSourceJSON()):void 0,...r.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}async _areAllAssetsAlreadyMapped(e){let{layer:t}=this,{globalIdField:r,parsedUrl:s}=t,i="infoFor3D"in t?t.infoFor3D:null;if(null==i||null==r)return!1;let a=(0,U.JZ)(i);if(null==a)return!1;let o=(0,f.fj)(s.path,`../${a.id}`),u=[];for(let t of e){if(!(t.geometry.metadata.getExternalSourcesOnService(s).length>0))return!1;u.push(t)}let l=u.map(e=>e.getAttribute(r)).filter(n.Ru);if(0===l.length)return!1;let{assetMapFieldRoles:{parentGlobalId:p,assetHash:c}}=i,h=new K.A({where:`${p} IN (${l.map(e=>`'${e}'`)})`,outFields:[c,p],returnGeometry:!1}),{features:d}=await(0,Y.s)(o,h);return 0!==d.length&&!u.some(e=>{let t=e.getAttribute(r);if(!t)return!0;let{metadata:i}=e.geometry,a=d.filter(e=>e.getAttribute(p)===t);if(0===a.length)return!0;let n=a.map(e=>e.getAttribute(c));return i.getExternalSourcesOnService(s).flatMap(({source:e})=>e.assets.flatMap(e=>e.parts.map(e=>e.partHash))).some(e=>n.every(t=>e!==t))})}};(0,s.Cg)([(0,g.MZ)()],ie.prototype,"type",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],ie.prototype,"layer",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],ie.prototype,"supportedSourceTypes",void 0),(0,s.Cg)([(0,g.MZ)({readOnly:!0})],ie.prototype,"queryTask",null),ie=(0,s.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],ie);const ae=1e3},64314(e,t,r){r.d(t,{A:()=>M});var s=r(32198),i=r(69622),a=r(49186),n=r(44208),o=r(17676),u=r(84952),l=r(91429),p=r(21325),c=r(20557),h=r(2272),d=r(99614),y=r(20615),f=r(74910),m=r(78286),g=r(99199),v=r(62815),S=r(63746);class _{constructor(e){this._options=e,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=_._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(e){"string"==typeof e&&(this.featureSet.objectIdFieldName=e)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);let{spatialReference:e,features:t}=this.featureSet;if(e)for(let{geometry:r}of t)r&&(r.spatialReference=e)}feature(){this._attributesClass??=(0,S._)(this.featureSet.fields?.map(e=>e.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([e,t]){this.featureSet.features.at(-1).centroid={x:e,y:t}}geometry(e,t,r){this._previousX=this._previousY=0,this._lengths=r;let s,{hasZ:i,hasM:a}=this.featureSet;switch(i??=!1,a??=!1,this._i=0,this._vertex=[0,0],i&&this._vertex.push(0),a&&this._vertex.push(0),this._finishVertex=_._finishVertexNonPoint,t){case"esriGeometryPoint":this._point={x:0,y:0},s=this._point,this._finishVertex=i?a?_._finishVertexPointXYZM:_._finishVertexPointXYZ:a?_._finishVertexPointXYM:_._finishVertexPointXY;break;case"esriGeometryMultipoint":s={points:[],hasZ:i,hasM:a},this._part=s.points,this._parts=[];break;case"esriGeometryPolyline":s={paths:[],hasZ:i,hasM:a},this._parts=s.paths,this._part=[];break;case"esriGeometryPolygon":s={rings:[],hasZ:i,hasM:a},this._parts=s.rings,this._part=[]}1===e?(this.featureSet.queryGeometry=s,this.featureSet.queryGeometryType=t,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=s}coord(e){let t=this._vertex;t[this._i++]=e,this._i<t.length||(this._i=0,this._transformInPlace&&(t[0]+=this._previousX,t[1]+=this._previousY,[this._previousX,this._previousY]=t,this._transformInPlace(t)),this._finishVertex(this))}curvedGeometry(e,t,r,s){let i,{hasZ:a,hasM:n}=this.featureSet;switch(a??=!1,n??=!1,e){case"esriGeometryPoint":case"esriGeometryMultipoint":throw Error(`Curved ${e} does not make sense`);case"esriGeometryPolyline":i={paths:[],curvePaths:[],hasZ:a,hasM:n},this._parts=i.curvePaths,this._part=[];break;case"esriGeometryPolygon":i={rings:[],curveRings:[],hasZ:a,hasM:n},this._parts=i.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=i}startCurvedPart(e){this._part.push(this._transform(e))}finishCurvedPart(e){this._parts.push(this._part),this._part=[]}lineSegment(e,t){this._part.push(this._transform(t))}bezierSegment(e,t,r,s){this._part.push({b:[this._transform(t),this._transformXY(r),this._transformXY(s)]})}circularArcSegment(e,t,r){this._part.push({c:[this._transform(t),this._transformXY(r)]})}ellipticArcSegment(e,t,r,s,i,a,n,o){this._part.push({a:[this._transform(t),this._transformXY(r),s,i,a,n,o]})}static _finishVertexPointXY({_point:e,_vertex:t}){[e.x,e.y]=t}static _finishVertexPointXYZ({_point:e,_vertex:t}){[e.x,e.y,e.z]=t}static _finishVertexPointXYM({_point:e,_vertex:t}){[e.x,e.y,e.m]=t}static _finishVertexPointXYZM({_point:e,_vertex:t}){[e.x,e.y,e.z,e.m]=t}static _finishVertexNonPoint(e){let{_part:t,_parts:r,_lengths:s,_vertex:i}=e;t.push([...i]),t.length<s[r.length]||(e._previousX=e._previousY=0,e._part=[],r.push(t))}_setVertexTransformer(){let{sourceSpatialReference:e}=this._options,{spatialReference:t,hasZ:r,transform:s}=this.featureSet,i=r?(0,v.d)(e,t):1;this._transformInPlace??=(0,S.M)(this.featureSet,i),this._transformInPlaceXY??=(0,S.M)({transform:s})}_transform(e){let t=[...e];return this._transformInPlace?.(t),t}_transformXY(e){let t=[e[0],e[1]];return this._transformInPlaceXY?.(t),t}}var A=r(80893),x=r(22671),b=r(97552);let M=class extends i.A{constructor(e){super(e),this.dynamicDataSource=null,this.encodingCapabilities=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.timeInformation=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}get _layerMetadata(){return{encodingCapabilities:this.encodingCapabilities,timeInformation:this.timeInformation,uniqueIdFields:this.uniqueIdFields}}async execute(e,t){let r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){let r,s=this._normalizeQuery(e),i=null!=e.outStatistics?.[0],a=(0,n.A)("featurelayer-pbf-statistics");if(this.pbfSupported&&(!i||a)&&(!e.returnTrueCurves||this.pbfSupportedWithCurves))try{r=await async function(e,t,r,s){let i=(0,h.Dl)(e),a={...r},n=b.A.from(t),o=!n.quantizationParameters;return await(0,A.IJ)(i,n,new _({sourceSpatialReference:n.sourceSpatialReference,applyTransform:o}),a,s)}(this.url,s,t,this._layerMetadata)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return r??=await(0,g.e)(this.url,s,t,this._layerMetadata),this._normalizeFields(r.fields),r}async featureSetFromJSON(e,t,s){if(!this._queryGet3DObjectFormat(e)||null==this.infoFor3D||!t.features)return x.A.fromJSON(t);let{meshFeatureSetFromJSON:i}=await(0,o.qr)(Promise.all([r.e(2258),r.e(8331),r.e(9855)]).then(()=>r(40050)),s);return i(e,this.infoFor3D,t)}executeForCount(e,t){return(0,y.I)(this.url,this._normalizeQuery(e),t,this._layerMetadata)}executeForExtent(e,t){return(0,f.L)(this.url,this._normalizeQuery(e),t,this._layerMetadata)}executeForIds(e,t){return(0,m.V)(this.url,this._normalizeQuery(e),t,this._layerMetadata)}async executeRelationshipQuery(e,t){let[{default:s},{executeRelationshipQuery:i}]=await(0,o.qr)(Promise.all([Promise.resolve().then(()=>r(26591)),r.e(1763).then(()=>r(71763))]),t),a=s.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(a=a.clone(),a.gdbVersion=a.gdbVersion||this.gdbVersion,a.dynamicDataSource=a.dynamicDataSource||this.dynamicDataSource),i(this.url,a,t)}async executeRelationshipQueryForCount(e,t){let[{default:s},{executeRelationshipQueryForCount:i}]=await(0,o.qr)(Promise.all([Promise.resolve().then(()=>r(26591)),r.e(1763).then(()=>r(71763))]),t),a=s.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(a=a.clone(),a.gdbVersion=a.gdbVersion||this.gdbVersion,a.dynamicDataSource=a.dynamicDataSource||this.dynamicDataSource),i(this.url,a,t)}async executeAttachmentQuery(e,t){let{executeAttachmentQuery:s,fetchAttachments:i,processAttachmentQueryResult:a}=await(0,o.qr)(r.e(9239).then(()=>r(9239)),t),n=(0,h.Dl)(this.url);return a(n,await(this.queryAttachmentsSupported?s(n,e,t):i(n,e,t)))}async executeAttributeBinsQuery(e,t){let{executeAttributeBinsQuery:s}=await(0,o.qr)(r.e(3103).then(()=>r(33103)),t);return s(this.parsedUrl,e,t,this._layerMetadata)}async executePivotQuery(e,t){let{executePivotQuery:s}=await(0,o.qr)(r.e(566).then(()=>r(80566)),t);return s(this.parsedUrl,e,t,this._layerMetadata)}async executeTopFeaturesQuery(e,t){let{executeTopFeaturesQuery:s}=await(0,o.qr)(r.e(1273).then(()=>r(11273)),t);return s(this.parsedUrl,e,this.sourceSpatialReference,t,this._layerMetadata)}async executeForTopIds(e,t){let{executeForTopIds:s}=await(0,o.qr)(r.e(1277).then(()=>r(21277)),t);return s(this.parsedUrl,e,t,this._layerMetadata)}async executeForTopExtents(e,t){let{executeForTopExtents:s}=await(0,o.qr)(r.e(8018).then(()=>r(8018)),t);return s(this.parsedUrl,e,t,this._layerMetadata)}async executeForTopCount(e,t){let{executeForTopCount:s}=await(0,o.qr)(r.e(980).then(()=>r(10980)),t);return s(this.parsedUrl,e,t,this._layerMetadata)}_normalizeQuery(e){let t=b.A.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource);let{infoFor3D:r}=this,s=this._queryGet3DObjectFormat(e);if(null!=r&&s){if(t=t===e?t.clone():t,t.formatOf3DObjects=s,t.outSpatialReference&&!(0,p.aI)(t.outSpatialReference,this.sourceSpatialReference))throw new a.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,t.outFields??(t.outFields=[]);let{originX:s,originY:i,originZ:a,translationX:n,translationY:o,translationZ:u,scaleX:l,scaleY:p,scaleZ:c,rotationX:h,rotationY:d,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(s,i,a,n,o,u,l,p,c,h,d,y,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(let t of e){let e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryGet3DObjectFormat({returnGeometry:e,multipatchOption:t,outStatistics:r}){return!0!==e||"xyFootprint"===t||r?null:(0,c.Hz)(this.infoFor3D)}};(0,s.Cg)([(0,l.MZ)({types:d.e})],M.prototype,"dynamicDataSource",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"encodingCapabilities",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"gdbVersion",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"infoFor3D",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],M.prototype,"parsedUrl",null),(0,s.Cg)([(0,l.MZ)()],M.prototype,"pbfSupported",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"pbfSupportedWithCurves",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"queryAttachmentsSupported",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"relativeTimeBinWindow",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"sourceSpatialReference",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"timeInformation",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"uniqueIdFields",void 0),(0,s.Cg)([(0,l.MZ)({type:String})],M.prototype,"url",void 0),(0,s.Cg)([(0,l.MZ)()],M.prototype,"_layerMetadata",null),M=(0,s.Cg)([(0,l.$K)("esri.layers.graphics.sources.support.QueryTask")],M)},64714(e,t,r){r.d(t,{F0:()=>o,Vx:()=>p,e2:()=>h,f:()=>f});var s=r(44208),i=r(4718),a=r(99352),n=r(93470);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?n.Cb:"esriGeometryPolyline"===e?n.yM:n.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function p(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${c(t)} = null;`);for(let t in e)r+=`this${c(t)} = ${JSON.stringify(e[t])};`;let s=Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch{return()=>t?{[t]:null,...e}:{...e}}}function c(e){return u.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function h(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}const d={...a.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},y={...a.P,supportedStatistics:{...a.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function f(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?d:a.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?y:a.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},20615(e,t,r){r.d(t,{I:()=>n});var s=r(2272),i=r(80893),a=r(97552);function n(e,t,r,n){return(0,i.gW)((0,s.Dl)(e),a.A.from(t),r,n)}},74910(e,t,r){r.d(t,{L:()=>o});var s=r(5443),i=r(2272),a=r(80893),n=r(97552);async function o(e,t,r,o){let u=(0,i.Dl)(e),l=await(0,a.Jf)(u,n.A.from(t),{...r},o),p=l.extent;return!p||isNaN(p.xmin)||isNaN(p.ymin)||isNaN(p.xmax)||isNaN(p.ymax)?{count:l.count,extent:null}:{count:l.count,extent:s.A.fromJSON(p)}}},78286(e,t,r){r.d(t,{V:()=>n});var s=r(2272),i=r(80893),a=r(97552);async function n(e,t,r,n){let o=(0,s.Dl)(e),u=await(0,i.Pk)(o,a.A.from(t),r,n);return u.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(u.uniqueIds)??[]}},99199(e,t,r){r.d(t,{e:()=>u,s:()=>o});var s=r(2272),i=r(80893),a=r(22671),n=r(97552);async function o(e,t,r,s){let i=await u(e,t,r,s);return a.A.fromJSON(i)}function u(e,t,r,a){let o=(0,s.Dl)(e),u={...r},l=n.A.from(t);return(0,i.eW)(o,l,l.sourceSpatialReference,u,a)}},63746(e,t,r){function s(e){return class{constructor(){for(let t of e)this[t]=null}}}function i(e,t=1){let{transform:r,hasZ:s,hasM:i}=e;if(null==r)return s&&1!==t?e=>{e[2]*=t}:null;let[a,n]=function(e,t,r,s){let{scale:i,translate:a,originPosition:n}=e;return"upperLeft"===n&&(i=i.map((e,t)=>1===t?-e:e)),t&&(i=i.map((e,t)=>2===t?e*s:e),a=a.map((e,t)=>2===t?e*s:e)),!t&&r&&(i=i.filter((e,t)=>2!==t),a=a.filter((e,t)=>2!==t)),[i,a]}(r,s,i,t),o=e.hasZ?3:2;return e=>{for(let t=0;t<e.length&&(t!==o||0!==e[t]);++t)e[t]=e[t]*a[t]+n[t]}}r.d(t,{M:()=>i,_:()=>s})},2272(e,t,r){r.d(t,{Dl:()=>l,gf:()=>c,jV:()=>u,lF:()=>p});var s=r(92602),i=r(70333),a=r(4718),n=r(84952),o=r(926);function u(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function l(e){return"string"==typeof e?(0,n.An)(e):(0,a.o8)(e)}function p(e,t,r){let s={};for(let i in e){if("declaredClass"===i)continue;let a=e[i];if(null!=a&&"function"!=typeof a)if(Array.isArray(a))s[i]=a.map(e=>p(e));else if("object"==typeof a)if(a.toJSON){let e=a.toJSON(r?.[i]);s[i]=t?e:JSON.stringify(e)}else s[i]=t?a:JSON.stringify(a);else s[i]=a}return s}async function c(e,t,a){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t)||(!i.id&&s.A.request.useIdentity&&await Promise.all([r.e(8673),r.e(7956),r.e(4189)]).then(()=>r(98232)),(await i.id.getCredential(e,a))?.token)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9177],{60999(t,e,r){r.d(e,{DZ:()=>p,Ke:()=>f,QA:()=>m,Tj:()=>h,UT:()=>g,aD:()=>y,jJ:()=>u});var n=r(32198),a=r(69622),i=r(97768),s=r(17676),o=r(10107),l=r(64108);function u(t,e,r){return(0,s.Lx)(t.map((t,n)=>e.apply(r,[t,n])))}async function h(t,e,r){return(await(0,s.Lx)(t.map((t,n)=>e.apply(r,[t,n])))).map(t=>t.value)}function c(t){return{ok:!0,value:t}}function d(t){return{ok:!1,error:t}}async function f(t){if(null==t)return{ok:!1,error:Error("no promise provided")};try{return c(await t)}catch(t){return d(t)}}async function p(t){try{return c(await t)}catch(t){return(0,s.QP)(t),d(t)}}function m(t){if(!0===t.ok)return t.value;throw t.error}function g(t,e){return new M(t,e)}let M=class extends a.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,i.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=t(r),this.promise.then(t=>{this._result=c(t),this._cleanup()},t=>{this._result=d(t),this._cleanup()}),this._abortHandle=(0,s.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,i.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,o.MZ)()],M.prototype,"value",null),(0,n.Cg)([(0,o.MZ)()],M.prototype,"error",null),(0,n.Cg)([(0,o.MZ)()],M.prototype,"finished",null),(0,n.Cg)([(0,o.MZ)()],M.prototype,"promise",void 0),(0,n.Cg)([(0,o.MZ)()],M.prototype,"_result",void 0),M=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],M);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});let e=await t;return{[Symbol.dispose]:e}}async run(t){let e={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}}},9093(t,e,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}r.d(e,{o8:()=>a,vt:()=>n});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:n,fromValues:function(t,e,r,n,a,i,s,o,l,u,h,c,d,f,p,m){return[t,e,r,n,a,i,s,o,l,u,h,c,d,f,p,m]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},58083(t,e,r){r.d(e,{$0:()=>M,$h:()=>I,B8:()=>h,C:()=>i,D_:()=>o,N9:()=>b,O7:()=>x,Qw:()=>u,Tl:()=>d,X_:()=>_,e$:()=>p,eL:()=>m,hM:()=>y,hZ:()=>s,hs:()=>f,kN:()=>g,l:()=>A,lw:()=>c,mg:()=>l,o1:()=>R,sC:()=>S,t2:()=>P,t5:()=>C,tZ:()=>L,ut:()=>U});var n=r(51850),a=r(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function s(t,e,r,n,a,i,s,o,l,u,h,c,d,f,p,m,g){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=s,t[6]=o,t[7]=l,t[8]=u,t[9]=h,t[10]=c,t[11]=d,t[12]=f,t[13]=p,t[14]=m,t[15]=g,t}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function l(t,e){if(t===e){let r=e[1],n=e[2],a=e[3],i=e[6],s=e[7],o=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=i,t[11]=e[14],t[12]=a,t[13]=s,t[14]=o}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function u(t,e){return h(t,e)||o(t),t}function h(t,e){let r=e[0],n=e[1],a=e[2],i=e[3],s=e[4],o=e[5],l=e[6],u=e[7],h=e[8],c=e[9],d=e[10],f=e[11],p=e[12],m=e[13],g=e[14],M=e[15],y=r*o-n*s,b=r*l-a*s,v=r*u-i*s,w=n*l-a*o,S=n*u-i*o,_=a*u-i*l,A=h*m-c*p,R=h*g-d*p,x=h*M-f*p,I=c*g-d*m,C=c*M-f*m,E=d*M-f*g,P=y*E-b*C+v*I+w*x-S*R+_*A;return P?(P=1/P,t[0]=(o*E-l*C+u*I)*P,t[1]=(a*C-n*E-i*I)*P,t[2]=(m*_-g*S+M*w)*P,t[3]=(d*S-c*_-f*w)*P,t[4]=(l*x-s*E-u*R)*P,t[5]=(r*E-a*x+i*R)*P,t[6]=(g*v-p*_-M*b)*P,t[7]=(h*_-d*v+f*b)*P,t[8]=(s*C-o*x+u*A)*P,t[9]=(n*x-r*C-i*A)*P,t[10]=(p*S-m*v+M*y)*P,t[11]=(c*v-h*S-f*y)*P,t[12]=(o*R-s*I-l*A)*P,t[13]=(r*I-n*R+a*A)*P,t[14]=(m*b-p*w-g*y)*P,t[15]=(h*w-c*b+d*y)*P,t):null}function c(t,e,r){let n=e[0],a=e[1],i=e[2],s=e[3],o=e[4],l=e[5],u=e[6],h=e[7],c=e[8],d=e[9],f=e[10],p=e[11],m=e[12],g=e[13],M=e[14],y=e[15],b=r[0],v=r[1],w=r[2],S=r[3];return t[0]=b*n+v*o+w*c+S*m,t[1]=b*a+v*l+w*d+S*g,t[2]=b*i+v*u+w*f+S*M,t[3]=b*s+v*h+w*p+S*y,b=r[4],v=r[5],w=r[6],S=r[7],t[4]=b*n+v*o+w*c+S*m,t[5]=b*a+v*l+w*d+S*g,t[6]=b*i+v*u+w*f+S*M,t[7]=b*s+v*h+w*p+S*y,b=r[8],v=r[9],w=r[10],S=r[11],t[8]=b*n+v*o+w*c+S*m,t[9]=b*a+v*l+w*d+S*g,t[10]=b*i+v*u+w*f+S*M,t[11]=b*s+v*h+w*p+S*y,b=r[12],v=r[13],w=r[14],S=r[15],t[12]=b*n+v*o+w*c+S*m,t[13]=b*a+v*l+w*d+S*g,t[14]=b*i+v*u+w*f+S*M,t[15]=b*s+v*h+w*p+S*y,t}function d(t,e,r){let n=r[0],a=r[1],i=r[2];if(e===t)t[12]=e[0]*n+e[4]*a+e[8]*i+e[12],t[13]=e[1]*n+e[5]*a+e[9]*i+e[13],t[14]=e[2]*n+e[6]*a+e[10]*i+e[14],t[15]=e[3]*n+e[7]*a+e[11]*i+e[15];else{let r=e[0],s=e[1],o=e[2],l=e[3],u=e[4],h=e[5],c=e[6],d=e[7],f=e[8],p=e[9],m=e[10],g=e[11];t[0]=r,t[1]=s,t[2]=o,t[3]=l,t[4]=u,t[5]=h,t[6]=c,t[7]=d,t[8]=f,t[9]=p,t[10]=m,t[11]=g,t[12]=r*n+u*a+f*i+e[12],t[13]=s*n+h*a+p*i+e[13],t[14]=o*n+c*a+m*i+e[14],t[15]=l*n+d*a+g*i+e[15]}return t}function f(t,e,r){let n=r[0],a=r[1],i=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function p(t,e,r,n){let s=n[0],o=n[1],l=n[2],u=Math.sqrt(s*s+o*o+l*l);if(u<=(0,a.FD)())return void i(t,e);u=1/u,s*=u,o*=u,l*=u;let h=Math.sin(r),c=Math.cos(r),d=1-c,f=e[0],p=e[1],m=e[2],g=e[3],M=e[4],y=e[5],b=e[6],v=e[7],w=e[8],S=e[9],_=e[10],A=e[11],R=s*s*d+c,x=o*s*d+l*h,I=l*s*d-o*h,C=s*o*d-l*h,E=o*o*d+c,P=l*o*d+s*h,U=s*l*d+o*h,L=o*l*d-s*h,T=l*l*d+c;t[0]=f*R+M*x+w*I,t[1]=p*R+y*x+S*I,t[2]=m*R+b*x+_*I,t[3]=g*R+v*x+A*I,t[4]=f*C+M*E+w*P,t[5]=p*C+y*E+S*P,t[6]=m*C+b*E+_*P,t[7]=g*C+v*E+A*P,t[8]=f*U+M*L+w*T,t[9]=p*U+y*L+S*T,t[10]=m*U+b*L+_*T,t[11]=g*U+v*L+A*T,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function m(t,e,r){let n=Math.sin(r),a=Math.cos(r),i=e[4],s=e[5],o=e[6],l=e[7],u=e[8],h=e[9],c=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*a+u*n,t[5]=s*a+h*n,t[6]=o*a+c*n,t[7]=l*a+d*n,t[8]=u*a-i*n,t[9]=h*a-s*n,t[10]=c*a-o*n,t[11]=d*a-l*n,t}function g(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function M(t,e,r){if(0===e)return o(t);let n=r[0],i=r[1],s=r[2],l=Math.sqrt(n*n+i*i+s*s);if(l<=(0,a.FD)())return null;l=1/l,n*=l,i*=l,s*=l;let u=Math.sin(e),h=Math.cos(e),c=1-h;return t[0]=n*n*c+h,t[1]=i*n*c+s*u,t[2]=s*n*c-i*u,t[3]=0,t[4]=n*i*c-s*u,t[5]=i*i*c+h,t[6]=s*i*c+n*u,t[7]=0,t[8]=n*s*c+i*u,t[9]=i*s*c-n*u,t[10]=s*s*c+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,e){let r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e){let r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function v(t,e,r){let n=e[0],a=e[1],i=e[2],s=e[3],o=n+n,l=a+a,u=i+i,h=n*o,c=n*l,d=n*u,f=a*l,p=a*u,m=i*u,g=s*o,M=s*l,y=s*u;return t[0]=1-(f+m),t[1]=c+y,t[2]=d-M,t[3]=0,t[4]=c-y,t[5]=1-(h+m),t[6]=p+g,t[7]=0,t[8]=d+M,t[9]=p-g,t[10]=1-(h+f),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}const w=(0,n.vt)();function S(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function _(t,e){let r=e[0],n=e[1],a=e[2],i=e[4],s=e[5],o=e[6],l=e[8],u=e[9],h=e[10];return t[0]=Math.sqrt(r*r+n*n+a*a),t[1]=Math.sqrt(i*i+s*s+o*o),t[2]=Math.sqrt(l*l+u*u+h*h),t}function A(t,e){let r=e[0]+e[5]+e[10],n=0;return r>0?(n=2*Math.sqrt(r+1),t[3]=.25*n,t[0]=(e[6]-e[9])/n,t[1]=(e[8]-e[2])/n,t[2]=(e[1]-e[4])/n):e[0]>e[5]&&e[0]>e[10]?(n=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/n,t[0]=.25*n,t[1]=(e[1]+e[4])/n,t[2]=(e[8]+e[2])/n):e[5]>e[10]?(n=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/n,t[0]=(e[1]+e[4])/n,t[1]=.25*n,t[2]=(e[6]+e[9])/n):(n=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/n,t[0]=(e[8]+e[2])/n,t[1]=(e[6]+e[9])/n,t[2]=.25*n),t}function R(t,e,r,n){let a=e[0],i=e[1],s=e[2],o=e[3],l=a+a,u=i+i,h=s+s,c=a*l,d=a*u,f=a*h,p=i*u,m=i*h,g=s*h,M=o*l,y=o*u,b=o*h,v=n[0],w=n[1],S=n[2];return t[0]=(1-(p+g))*v,t[1]=(d+b)*v,t[2]=(f-y)*v,t[3]=0,t[4]=(d-b)*w,t[5]=(1-(c+g))*w,t[6]=(m+M)*w,t[7]=0,t[8]=(f+y)*S,t[9]=(m-M)*S,t[10]=(1-(c+p))*S,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function x(t,e,r,n,a){let i=e[0],s=e[1],o=e[2],l=e[3],u=i+i,h=s+s,c=o+o,d=i*u,f=i*h,p=i*c,m=s*h,g=s*c,M=o*c,y=l*u,b=l*h,v=l*c,w=n[0],S=n[1],_=n[2],A=a[0],R=a[1],x=a[2],I=(1-(m+M))*w,C=(f+v)*w,E=(p-b)*w,P=(f-v)*S,U=(1-(d+M))*S,L=(g+y)*S,T=(p+b)*_,k=(g-y)*_,q=(1-(d+m))*_;return t[0]=I,t[1]=C,t[2]=E,t[3]=0,t[4]=P,t[5]=U,t[6]=L,t[7]=0,t[8]=T,t[9]=k,t[10]=q,t[11]=0,t[12]=r[0]+A-(I*A+P*R+T*x),t[13]=r[1]+R-(C*A+U*R+k*x),t[14]=r[2]+x-(E*A+L*R+q*x),t[15]=1,t}function I(t,e,r,n,a,i,s){let o=1/(r-e),l=1/(a-n),u=1/(i-s);return t[0]=2*i*o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*l,t[6]=0,t[7]=0,t[8]=(r+e)*o,t[9]=(a+n)*l,t[10]=(s+i)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*i*2*u,t[15]=0,t}function C(t,e,r,n){let i=e[0],s=e[1],l=e[2],u=i-r[0],h=s-r[1],c=l-r[2],d=(0,a.FD)();if(Math.abs(u)<d&&Math.abs(h)<d&&Math.abs(c)<d)return void o(t);let f=1/Math.sqrt(u*u+h*h+c*c);u*=f,h*=f,c*=f;let p=n[0],m=n[1],g=n[2],M=m*c-g*h,y=g*u-p*c,b=p*h-m*u;f=Math.sqrt(M*M+y*y+b*b),f?(f=1/f,M*=f,y*=f,b*=f):(M=0,y=0,b=0);let v=h*b-c*y,w=c*M-u*b,S=u*y-h*M;f=Math.sqrt(v*v+w*w+S*S),f?(f=1/f,v*=f,w*=f,S*=f):(v=0,w=0,S=0),t[0]=M,t[1]=v,t[2]=u,t[3]=0,t[4]=y,t[5]=w,t[6]=h,t[7]=0,t[8]=b,t[9]=S,t[10]=c,t[11]=0,t[12]=-(M*i+y*s+b*l),t[13]=-(v*i+w*s+S*l),t[14]=-(u*i+h*s+c*l),t[15]=1}function E(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function U(t){let e=(0,a.FD)(),r=t[0],n=t[1],i=t[2],s=t[4],o=t[5],l=t[6],u=t[8],h=t[9],c=t[10];return Math.abs(1-(r*r+s*s+u*u))<=e&&Math.abs(1-(n*n+o*o+h*h))<=e&&Math.abs(1-(i*i+l*l+c*c))<=e}function L(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const T=c,k=E;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t},adjoint:function(t,e){let r=e[0],n=e[1],a=e[2],i=e[3],s=e[4],o=e[5],l=e[6],u=e[7],h=e[8],c=e[9],d=e[10],f=e[11],p=e[12],m=e[13],g=e[14],M=e[15];return t[0]=o*(d*M-f*g)-c*(l*M-u*g)+m*(l*f-u*d),t[1]=-(n*(d*M-f*g)-c*(a*M-i*g)+m*(a*f-i*d)),t[2]=n*(l*M-u*g)-o*(a*M-i*g)+m*(a*u-i*l),t[3]=-(n*(l*f-u*d)-o*(a*f-i*d)+c*(a*u-i*l)),t[4]=-(s*(d*M-f*g)-h*(l*M-u*g)+p*(l*f-u*d)),t[5]=r*(d*M-f*g)-h*(a*M-i*g)+p*(a*f-i*d),t[6]=-(r*(l*M-u*g)-s*(a*M-i*g)+p*(a*u-i*l)),t[7]=r*(l*f-u*d)-s*(a*f-i*d)+h*(a*u-i*l),t[8]=s*(c*M-f*m)-h*(o*M-u*m)+p*(o*f-u*c),t[9]=-(r*(c*M-f*m)-h*(n*M-i*m)+p*(n*f-i*c)),t[10]=r*(o*M-u*m)-s*(n*M-i*m)+p*(n*u-i*o),t[11]=-(r*(o*f-u*c)-s*(n*f-i*c)+h*(n*u-i*o)),t[12]=-(s*(c*g-d*m)-h*(o*g-l*m)+p*(o*d-l*c)),t[13]=r*(c*g-d*m)-h*(n*g-a*m)+p*(n*d-a*c),t[14]=-(r*(o*g-l*m)-s*(n*g-a*m)+p*(n*l-a*o)),t[15]=r*(o*d-l*c)-s*(n*d-a*c)+h*(n*l-a*o),t},copy:i,determinant:function(t){let e=t[0],r=t[1],n=t[2],a=t[3],i=t[4],s=t[5],o=t[6],l=t[7],u=t[8],h=t[9],c=t[10],d=t[11],f=t[12],p=t[13],m=t[14],g=t[15];return(e*s-r*i)*(c*g-d*m)-(e*o-n*i)*(h*g-d*p)+(e*l-a*i)*(h*m-c*p)+(r*o-n*s)*(u*g-d*f)-(r*l-a*s)*(u*m-c*f)+(n*l-a*o)*(u*p-h*f)},equals:function(t,e){if(t===e)return!0;let r=t[0],n=t[1],i=t[2],s=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=t[8],d=t[9],f=t[10],p=t[11],m=t[12],g=t[13],M=t[14],y=t[15],b=e[0],v=e[1],w=e[2],S=e[3],_=e[4],A=e[5],R=e[6],x=e[7],I=e[8],C=e[9],E=e[10],P=e[11],U=e[12],L=e[13],T=e[14],k=e[15],q=(0,a.FD)();return Math.abs(r-b)<=q*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(n-v)<=q*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(i-w)<=q*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(s-S)<=q*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(o-_)<=q*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(l-A)<=q*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(u-R)<=q*Math.max(1,Math.abs(u),Math.abs(R))&&Math.abs(h-x)<=q*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(c-I)<=q*Math.max(1,Math.abs(c),Math.abs(I))&&Math.abs(d-C)<=q*Math.max(1,Math.abs(d),Math.abs(C))&&Math.abs(f-E)<=q*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(p-P)<=q*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(m-U)<=q*Math.max(1,Math.abs(m),Math.abs(U))&&Math.abs(g-L)<=q*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(M-T)<=q*Math.max(1,Math.abs(M),Math.abs(T))&&Math.abs(y-k)<=q*Math.max(1,Math.abs(y),Math.abs(k))},exactEquals:P,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let r=e[0],n=e[1],a=e[2],i=e[3],s=r+r,o=n+n,l=a+a,u=r*s,h=n*s,c=n*o,d=a*s,f=a*o,p=a*l,m=i*s,g=i*o,M=i*l;return t[0]=1-c-p,t[1]=h+M,t[2]=d-g,t[3]=0,t[4]=h-M,t[5]=1-u-p,t[6]=f+m,t[7]=0,t[8]=d+g,t[9]=f-m,t[10]=1-u-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let r=w,n=-e[0],a=-e[1],i=-e[2],s=e[3],o=e[4],l=e[5],u=e[6],h=e[7],c=n*n+a*a+i*i+s*s;return c>0?(r[0]=2*(o*s+h*n+l*i-u*a)/c,r[1]=2*(l*s+h*a+u*n-o*i)/c,r[2]=2*(u*s+h*i+o*a-l*n)/c):(r[0]=2*(o*s+h*n+l*i-u*a),r[1]=2*(l*s+h*a+u*n-o*i),r[2]=2*(u*s+h*i+o*a-l*n)),v(t,e,r),t},fromRotation:M,fromRotationTranslation:v,fromRotationTranslationScale:R,fromRotationTranslationScaleOrigin:x,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:g,fromXRotation:y,fromYRotation:function(t,e){let r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:b,frustum:I,getRotation:A,getScale:_,getTranslation:S,hasIdentityRotation:L,identity:o,invert:h,invertOrIdentity:u,isOrthoNormal:U,lookAt:C,mul:T,multiply:c,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t},ortho:function(t,e,r,n,a,i,s){let o=1/(e-r),l=1/(n-a),u=1/(i-s);return t[0]=-2*o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+r)*o,t[13]=(a+n)*l,t[14]=(s+i)*u,t[15]=1,t},perspective:function(t,e,r,n,a){let i,s=1/Math.tan(e/2);return t[0]=s/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=a&&a!==1/0?(i=1/(n-a),t[10]=(a+n)*i,t[14]=2*a*n*i):(t[10]=-1,t[14]=-2*n),t},perspectiveFromFieldOfView:function(t,e,r,n){let a=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),o=Math.tan(e.rightDegrees*Math.PI/180),l=2/(s+o),u=2/(a+i);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(s-o)*l*.5,t[9]=(a-i)*u*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t},rotate:p,rotateX:m,rotateY:function(t,e,r){let n=Math.sin(r),a=Math.cos(r),i=e[0],s=e[1],o=e[2],l=e[3],u=e[8],h=e[9],c=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*a-u*n,t[1]=s*a-h*n,t[2]=o*a-c*n,t[3]=l*a-d*n,t[8]=i*n+u*a,t[9]=s*n+h*a,t[10]=o*n+c*a,t[11]=l*n+d*a,t},rotateZ:function(t,e,r){let n=Math.sin(r),a=Math.cos(r),i=e[0],s=e[1],o=e[2],l=e[3],u=e[4],h=e[5],c=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*a+u*n,t[1]=s*a+h*n,t[2]=o*a+c*n,t[3]=l*a+d*n,t[4]=u*a-i*n,t[5]=h*a-s*n,t[6]=c*a-o*n,t[7]=d*a-l*n,t},scale:f,set:s,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:k,subtract:E,targetTo:function(t,e,r,n){let a=e[0],i=e[1],s=e[2],o=n[0],l=n[1],u=n[2],h=a-r[0],c=i-r[1],d=s-r[2],f=h*h+c*c+d*d;f>0&&(f=1/Math.sqrt(f),h*=f,c*=f,d*=f);let p=l*d-u*c,m=u*h-o*d,g=o*c-l*h;return f=p*p+m*m+g*g,f>0&&(f=1/Math.sqrt(f),p*=f,m*=f,g*=f),t[0]=p,t[1]=m,t[2]=g,t[3]=0,t[4]=c*g-d*m,t[5]=d*p-h*g,t[6]=h*m-c*p,t[7]=0,t[8]=h,t[9]=c,t[10]=d,t[11]=0,t[12]=a,t[13]=i,t[14]=s,t[15]=1,t},translate:d,translateAffine:function(t,e,r){let n=r[0],a=r[1],s=r[2];return t!==e&&i(t,e),t[12]+=n,t[13]+=a,t[14]+=s,t},transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,r){r.d(e,{$A:()=>R,Bw:()=>i,C:()=>s,Cc:()=>x,DI:()=>S,Io:()=>y,Ln:()=>M,Om:()=>A,Qr:()=>c,Re:()=>u,S8:()=>_,T9:()=>m,WQ:()=>l,Z0:()=>I,_S:()=>f,aI:()=>k,ei:()=>C,fw:()=>P,gL:()=>E,hG:()=>b,hZ:()=>o,hs:()=>g,jk:()=>p,lw:()=>h,m3:()=>v,oW:()=>q,t2:()=>T,tn:()=>d,ze:()=>w});var n=r(51850),a=r(34304);function i(t){let e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function l(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function u(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function h(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function d(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function m(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function g(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function M(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function y(t,e){let r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return Math.sqrt(r*r+n*n+a*a)}function b(t,e){let r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return r*r+n*n+a*a}function v(t){let e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function _(t,e=t){let r=e[0],n=e[1],a=e[2],i=r*r+n*n+a*a;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function R(t,e,r){let n=e[0],a=e[1],i=e[2],s=r[0],o=r[1],l=r[2];return t[0]=a*l-i*o,t[1]=i*s-n*l,t[2]=n*o-a*s,t}function x(t,e,r,n){let a=e[0],i=e[1],s=e[2];return t[0]=a+n*(r[0]-a),t[1]=i+n*(r[1]-i),t[2]=s+n*(r[2]-s),t}function I(t,e,r){let n=e[0],a=e[1],i=e[2];return t[0]=r[0]*n+r[4]*a+r[8]*i+r[12],t[1]=r[1]*n+r[5]*a+r[9]*i+r[13],t[2]=r[2]*n+r[6]*a+r[10]*i+r[14],t}function C(t,e,r){let n=e[0],a=e[1],i=e[2];return t[0]=n*r[0]+a*r[3]+i*r[6],t[1]=n*r[1]+a*r[4]+i*r[7],t[2]=n*r[2]+a*r[5]+i*r[8],t}function E(t,e,r){return P(t,e,r[0],r[1],r[2],r[3])}function P(t,e,r,n,a,i){let s=e[0],o=e[1],l=e[2],u=n*l-a*o,h=a*s-r*l,c=r*o-n*s,d=n*c-a*h,f=a*u-r*c,p=r*h-n*u,m=2*i;return t[0]=s+u*m+2*d,t[1]=o+h*m+2*f,t[2]=l+c*m+2*p,t}const U=(0,n.vt)(),L=(0,n.vt)();function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function k(t,e){if(t===e)return!0;let r=t[0],n=t[1],i=t[2],s=e[0],o=e[1],l=e[2],u=(0,a.FD)();return Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-l)<=u*Math.max(1,Math.abs(i),Math.abs(l))}function q(t,e,r){let n=r[0]-e[0],a=r[1]-e[1],i=r[2]-e[2],s=n*n+a*a+i*i;return s>0?(s=1/Math.sqrt(s),t[0]=n*s,t[1]=a*s,t[2]=i*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const j=u,O=h,D=c,H=y,Z=b,G=i,N=v;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(t,e){_(U,t),_(L,e);let r=A(U,L);return r>1?0:r<-1?Math.PI:Math.acos(r)},applyTranslation:function(t,e,r){return t[0]=e[0]+r[12],t[1]=e[1]+r[13],t[2]=e[2]+r[14],t},bezier:function(t,e,r,n,a,i){let s=1-i,o=s*s,l=i*i,u=o*s,h=3*i*o,c=3*l*s,d=l*i;return t[0]=e[0]*u+r[0]*h+n[0]*c+a[0]*d,t[1]=e[1]*u+r[1]*h+n[1]*c+a[1]*d,t[2]=e[2]*u+r[2]*h+n[2]*c+a[2]*d,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:s,cross:R,crossAndNormalize:function(t,e,r){let n=e[0],a=e[1],i=e[2],s=r[0],o=r[1],l=r[2],u=a*l-i*o,h=i*s-n*l,c=n*o-a*s,d=Math.sqrt(u*u+h*h+c*c);return t[0]=u/d,t[1]=h/d,t[2]=c/d,t},direction:q,dist:H,distance:y,div:D,divide:c,dot:A,equals:k,exactEquals:T,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,a,i){let s=i*i,o=s*(2*i-3)+1,l=s*(i-2)+i,u=s*(i-1),h=s*(3-2*i);return t[0]=e[0]*o+r[0]*l+n[0]*u+a[0]*h,t[1]=e[1]*o+r[1]*l+n[1]*u+a[1]*h,t[2]=e[2]*o+r[2]*l+n[2]*u+a[2]*h,t},inverse:S,len:G,length:i,lerp:x,max:m,min:p,mul:O,multiply:h,negate:w,normalize:_,random:function(t,e=1){let r=a.Ov,n=2*r()*Math.PI,i=2*r()-1,s=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*s,t[1]=Math.sin(n)*s,t[2]=i*e,t},rotateX:function(t,e,r,n){let a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[0],i[1]=a[1]*Math.cos(n)-a[2]*Math.sin(n),i[2]=a[1]*Math.sin(n)+a[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){let a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[2]*Math.sin(n)+a[0]*Math.cos(n),i[1]=a[1],i[2]=a[2]*Math.cos(n)-a[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){let a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[0]*Math.cos(n)-a[1]*Math.sin(n),i[1]=a[0]*Math.sin(n)+a[1]*Math.cos(n),i[2]=a[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:M,scaleTo:function(t,e){return g(t,t,e/G(t))},set:o,sign:f,sqrDist:Z,sqrLen:N,squaredDistance:b,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:j,subtract:u,transformMat3:C,transformMat4:I,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:E,transformQuatValues:P},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,G,"jb",0,j,"lo",0,Z,"uE",0,N])},54239(t,e,r){r.d(e,{A:()=>M});var n,a=r(32198),i=r(4576),s=r(66552),o=r(25482),l=r(86211),u=r(67076),h=r(91429),c=r(97348),d=r(43937),f=r(36005);const p=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=p.jsonValues.slice();(0,i.Xy)(m,"orthometric");const g=(0,s.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let M=n=class extends o.o{constructor(t){super(t),this.origin=0,this.associatedSpatialReference=null,this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}read(t,e){super.read(t,e),("service"===e?.origin||"web-scene"===e?.origin)&&(this.origin="service"===e.origin?2:1,this.associatedSpatialReference=null)}writeHeightModel(t,e,r){return p.write(t,e,r)}readHeightModel(t,e,r){return p.read(t)||(r?.messages&&r.messages.push(function(t,e){return new u.A("height-model:unsupported",`Height model of value '${t}' is not supported`,e)}(t,{context:r})),null)}readHeightUnit(t,e,r){return g.read(t)||(r?.messages&&r.messages.push(y(t,{context:r})),null)}readHeightUnitService(t,e,r){return(0,l.LA)(t)||g.read(t)||(r?.messages&&r.messages.push(y(t,{context:r})),null)}readVertCRS(t,e){return e.vertCRS||e.ellipsoid||e.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS,origin:this.origin,associatedSpatialReference:this.associatedSpatialReference})}equals(t){return!!t&&(this===t||this.heightModel===t.heightModel&&this.heightUnit===t.heightUnit&&this.vertCRS===t.vertCRS)}static fromSpatialReference(t){let{latestVcsWkid:e,vcsWkid:r}=t;if(!r)return null;let a=(null==e?null:c.B.get(e))??c.B.get(r);return a?new n({heightModel:0===a.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(a.unit.name),vertCRS:a.datum,origin:3,associatedSpatialReference:t}):null}write(t,e){return e={origin:"web-scene",...e},super.write(t,e)}static fromJSON(t){if(!t)return null;let e=new n;return e.read(t,{origin:"web-scene"}),e}};function y(t,e){return new u.A("height-unit:unsupported",`Height unit of value '${t}' is not supported`,e)}(0,a.Cg)([(0,h.MZ)()],M.prototype,"origin",void 0),(0,a.Cg)([(0,h.MZ)()],M.prototype,"associatedSpatialReference",void 0),(0,a.Cg)([(0,h.MZ)({type:p.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal",write:{isRequired:!0,alwaysWriteDefaults:!0}}}}})],M.prototype,"heightModel",void 0),(0,a.Cg)([(0,d.K)("web-scene","heightModel")],M.prototype,"writeHeightModel",null),(0,a.Cg)([(0,f.w)(["web-scene","service"],"heightModel")],M.prototype,"readHeightModel",null),(0,a.Cg)([(0,h.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],M.prototype,"heightUnit",void 0),(0,a.Cg)([(0,f.w)("web-scene","heightUnit")],M.prototype,"readHeightUnit",null),(0,a.Cg)([(0,f.w)("service","heightUnit")],M.prototype,"readHeightUnitService",null),(0,a.Cg)([(0,h.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],M.prototype,"vertCRS",void 0),(0,a.Cg)([(0,f.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],M.prototype,"readVertCRS",null),M=n=(0,a.Cg)([(0,h.$K)("esri.geometry.HeightModelInfo")],M)},18768(t,e,r){var n=r(32198),a=r(53966),i=r(91429),s=r(60694);r.d(e,["b",0,t=>{let e=t,r=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){let t=(0,s.qg)(this.url);if(t?.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",(0,s.Jf)(t,a.A.getLogger(this)))}};return(0,n.Cg)([(0,i.MZ)()],r.prototype,"title",null),(0,n.Cg)([(0,i.MZ)({type:String})],r.prototype,"url",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(t,e,r){var n=r(32198),a=r(91429);r.d(e,["d",0,t=>{let e=t,r=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,a.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,n.Cg)([(0,a.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},8303(t,e,r){var n=r(32198),a=r(92602),i=r(70333),s=r(56507),o=r(60999),l=r(49186),u=r(36563),h=r(53966),c=r(97768),d=r(17676),f=r(84952),p=r(91429),m=r(77548),g=r(20655),M=r(80812),y=r(41318),b=r(10407),v=r(26121),w=r(36005),S=r(43937);const _={credential:null,user:null};r.d(e,["A",0,t=>{let e=t,A=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.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(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new M.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{let{load:n}=await r.e(1204).then(()=>r(41204));return(0,d.Te)(e),await n({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,d.zf)(t)||h.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async reloadFromPortal(t,e){if(!this.loaded||!this.portalItem?.id)return!1;let n=e?.signal?null:new AbortController;try{let{reload:a}=await r.e(1204).then(()=>r(41204));return n&&this.addHandles((0,u.rE)(n),"reloadFromPortal"),await a({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e?.signal?e:{signal:n.signal})}catch(t){throw(0,d.zf)(t)||h.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}finally{n&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,d.QP)(t),!0)))}async setUserPrivileges(t,e){if(!a.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{let{features:{edit:r,fullEdit:n},content:{updateItem:a}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",a)}catch(t){(0,d.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);let n,a,s=!i.id?.findCredential(this.url),o=t===r.id;if(o&&r.portal.user)return this._getUserPrivileges(r,s);if(o)n=r.portal.url;else try{n=await(0,m.wI)(this.url,e)}catch(t){(0,d.QP)(t)}if(!n||!(0,f.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{let t=null==e?null:e.signal;a=await(i.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,d.QP)(t)}if(!a)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(o?await r.reload():(r=new M.default({id:t,portal:{url:n}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,s)}catch(t){(0,d.QP)(t)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(t,e){let r=(0,b.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,d.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){let e=this.url?i.id?.findCredential(this.url):null;if(!e)return!0;let r=_.credential===e?_.user:await this._fetchEditingUser(t);return _.credential=e,_.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){let e=this.portalItem?.portal?.user;if(e)return e;let r=i.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let n=`${r.owningSystemUrl}/sharing/rest`,a=g.A.getDefault();if(a&&a.loaded&&(0,f.S8)(a.restUrl)===(0,f.S8)(n))return a.user;let l=`${n}/community/self`,u=null==t?null:t.signal,h=await(0,o.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?y.A.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){return(0,v.wN)(this.portalItem,e)?(e?.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(t,{...e,layer:this})}};return(0,n.Cg)([(0,p.MZ)({type:M.default})],A.prototype,"portalItem",null),(0,n.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],A.prototype,"readPortalItem",null),(0,n.Cg)([(0,S.K)("web-document","portalItem",{itemId:{type:String}})],A.prototype,"writePortalItem",null),(0,n.Cg)([(0,p.MZ)({clonable:!1})],A.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],A.prototype,"userHasUpdateItemPrivileges",void 0),A=(0,n.Cg)([(0,p.$K)("esri.layers.mixins.PortalLayer")],A),A}])},25036(t,e,r){var n=r(32198),a=r(91429),i=r(83960);r.d(e,["j",0,t=>{let e=t,r=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){let t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;void 0!==e?.effectiveScaleRange&&(0,i.RH)(t,e.effectiveScaleRange);let r=this._get("effectiveScaleRange");return r&&r.minScale===t.minScale&&r.maxScale===t.maxScale?r:t}};return(0,n.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,n.Cg)([(0,a.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},88546(t,e,r){r.d(e,{_8:()=>y,uB:()=>w});var n=r(34727),a=r(58083),i=r(9093),s=r(35522),o=r(51850),l=r(73941),u=r(5443),h=r(54239),c=r(16930),d=r(9762);const f=new c.A({wkid:4326,vcsWkid:115700}),p=new u.A({xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:f});function m(t,e){if(!Array.isArray(t)||t.length<e)return!1;for(let e of t)if("number"!=typeof e)return!1;return!0}const g=7645211,M={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function y(t){return!!(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt||t.extensions?.ESRI_crs?.wkt2)}new Map([[5773,new h.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new h.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new h.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new h.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new h.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new h.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height)"})],[5709,new h.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"NAP"})]]);const b=(0,i.vt)(),v=(0,a.D_)(b);function w(t,e=!1){let r=new c.A({wkid:4326,vcsWkid:115700}),a=t.root?.boundingVolume,i=!1,h=t?.root?.transform;if(e&&y(t)&&(i=!0,r=new c.A(t.extensions?.ESRI_crs),(t.root?.extensions?.ESRI_crs?.boundingVolume?.box||t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)&&(a=t.root?.extensions?.ESRI_crs?.boundingVolume),h=t.root?.extensions?.ESRI_crs?.transform?t.root?.extensions?.ESRI_crs?.transform:v),!a)return p;if(a.box){let t=a?.box;if(t[3]>g&&t[7]>g&&t[11]>g)return new u.A({...M,spatialReference:r})}let f=(0,o.vt)();if(!i&&a.region&&m(a.region,6)){let t=a.region,e=(0,n.KJ)(t[0]),i=(0,n.KJ)(t[1]),s=t[4],o=(0,n.KJ)(t[2]),l=(0,n.KJ)(t[3]),h=t[5];return new u.A({xmin:e,ymin:i,zmin:s,xmax:o,ymax:l,zmax:h,spatialReference:r})}if(a.sphere&&m(a.sphere,4)){let t=a.sphere,e=(0,o.fA)(t[0],t[1],t[2]),n=t[3]/Math.sqrt(3),p=(0,o.vt)();(0,s.Re)(p,e,(0,o.fA)(n,n,n));let g=(0,o.vt)();if((0,s.WQ)(g,e,(0,o.fA)(n,n,n)),h&&m(h,16)){let t=h;(0,s.Z0)(f,p,t),(0,s.C)(p,f),(0,s.Z0)(f,g,t),(0,s.C)(g,f)}i||((0,d.projectBuffer)(p,l.Ro,0,p,c.A.WGS84,0),(0,d.projectBuffer)(g,l.Ro,0,g,c.A.WGS84,0));let M=(0,o.vt)(),y=(0,o.vt)();return(0,s.jk)(M,p,g),(0,s.T9)(y,p,g),new u.A({xmin:M[0],ymin:M[1],zmin:M[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:r})}if(a.box&&m(a.box,12)){let t=a.box,e=(0,o.fA)(t[0],t[1],t[2]),n=(0,o.fA)(t[3],t[4],t[5]),f=(0,o.fA)(t[6],t[7],t[8]),p=(0,o.fA)(t[9],t[10],t[11]),g=[];for(let t=0;t<8;++t)g.push((0,o.vt)());if((0,s.WQ)(g[0],e,n),(0,s.WQ)(g[0],g[0],f),(0,s.WQ)(g[0],g[0],p),(0,s.jb)(g[1],e,n),(0,s.WQ)(g[1],g[1],f),(0,s.WQ)(g[1],g[1],p),(0,s.WQ)(g[2],e,n),(0,s.jb)(g[2],g[2],f),(0,s.WQ)(g[2],g[2],p),(0,s.jb)(g[3],e,n),(0,s.jb)(g[3],g[3],f),(0,s.WQ)(g[3],g[3],p),(0,s.WQ)(g[4],e,n),(0,s.WQ)(g[4],g[4],f),(0,s.jb)(g[4],g[4],p),(0,s.jb)(g[5],e,n),(0,s.WQ)(g[5],g[5],f),(0,s.jb)(g[5],g[5],p),(0,s.WQ)(g[6],e,n),(0,s.jb)(g[6],g[6],f),(0,s.jb)(g[6],g[6],p),(0,s.jb)(g[7],e,n),(0,s.jb)(g[7],g[7],f),(0,s.jb)(g[7],g[7],p),h&&m(h,16)){let t=h;for(let e=0;e<8;++e)(0,s.Z0)(g[e],g[e],t)}let M=(0,o.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),y=(0,o.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)i||(0,d.projectBuffer)(g[t],l.Ro,0,g[t],c.A.WGS84,0),(0,s.jk)(y,y,g[t]),(0,s.T9)(M,M,g[t]);return new u.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:M[0],ymax:M[1],zmax:M[2],spatialReference:r})}return p}r.d(e,["Zx",0,f,"zq",0,p])},10407(t,e,r){r.d(e,{It:()=>f,LG:()=>s,OM:()=>u,Sm:()=>h,Y:()=>o,bK:()=>l,sQ:()=>c});var n=r(99917),a=r(16930),i=r(28735);function s(t,e){if(!o(t,e)){let r=t.typeKeywords;r?r.push(e):t.typeKeywords=[e]}}function o(t,e){return!!t.typeKeywords?.includes(e)}function l(t){return o(t,d.HOSTED_SERVICE)}function u(t,e){let r=t.typeKeywords;if(r){let t=r.indexOf(e);t>-1&&r.splice(t,1)}}function h(t,e,r){r?s(t,e):u(t,e)}async function c(t){let e,r=t.clone().normalize();if(r.length>1)for(let t of r)e?t.width>e.width&&(e=t):e=t;else e=r[0];return async function(t){let e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,i.ci)(t);let r=a.A.WGS84;return await(0,n.initializeProjection)(e,r),(0,n.project)(t,r)}(e)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",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",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function f(t){let{portal:e,isOrgItem:r,itemControl:n}=t,a=e.user?.privileges,i=!a||a.includes("features:user:edit"),s=!!r&&!!a?.includes("features:user:fullEdit"),o="update"===n||"admin"===n;return o?s=i=!0:s&&(i=!0),{features:{edit:i,fullEdit:s},content:{updateItem:o}}}r.d(e,["mm",0,d])},78553(t,e,r){r.d(e,{D:()=>i,p:()=>a});var n=r(78888);function a(t){let e=(0,n.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function i(t){let e=1-t/100;return Math.max(0,Math.min(e,1))}},26121(t,e,r){r.d(e,{I6:()=>h,ci:()=>u,dL:()=>l,wN:()=>c});var n=r(49186),a=r(84952),i=r(77548),s=r(20655),o=r(59923);async function l(t){let e=[];for(let r of t.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let t=r.beforeSave();t&&e.push(t)}await Promise.allSettled(e)}function u(t,e,r){let a=(t.messages??[]).filter(({type:t})=>"error"===t).map(({name:t,message:e,details:r})=>new n.A(t,e,r));if(t.blockedRelativeUrls&&(a=a.concat(t.blockedRelativeUrls.map(t=>(0,o.GL)("url",`Relative url '${t}' is not supported`)))),r){let{ignoreUnsupported:t,supplementalUnsupportedErrors:e=[],requiredPropertyChecksDisabled:n}=r;t&&(a=a.filter(({name:t})=>!(o.MG.has(t)||e.includes(t)))),n&&(a=a.filter(t=>"web-document-write:property-required"!==t.name))}if(a.length>0)throw new n.A(e.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:a})}function h(t){return(0,i.qd)(t).some(t=>!!t.charts?.length)}function c(t,e){let r=e?.portal,n=t?.id&&(t.portal||s.A.getDefault());return!!r&&!!n&&!(0,a.ut)(n.restUrl,r.restUrl)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5992],{32198(t,e,n){function r(t,e,n,r){var o,a=arguments.length,u=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(u=(a<3?o(u):a>3?o(e,n,u):o(e,n))||u);return a>3&&u&&Object.defineProperty(e,n,u),u}function o(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>u,mS:()=>o}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function u(t){function e(e){t.error=t.hasError?new a(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function o(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(o);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(o,function(t){return e(t),o()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69540(t,e,n){var r=n(32198),o=n(69622),a=(n(44208),n(4718)),u=(n(53966),n(97768)),i=n(88620),l=n(64108);const c=Symbol("ClonableMixin"),s=t=>{var e;let n=t,o=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){let e=(0,i.oY)(this);(0,u.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,o={},l=new Map;for(let e in n){let u=n[e],i=r?.originOf(e),c=u.clonable;if(u.readOnly||!1===c||7!==i&&0!==i&&5!==i&&4!==i)continue;let s=this[e],f=null;if("function"==typeof c)f=c(s,t);else if("reference"===c)f=s;else if(f=(0,a.TU)(s,t),null!=s&&null==f)continue;0===i?l.set(e,f):o[e]=f}let c=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){let t=(0,i.oY)(c)?.store;if(t)for(let[e,n]of l)t.set(e,n,0)}return c}};return o=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],o),o},f=s(o.A);n.d(e,["OU",0,s,"Pw",0,f])},29242(t,e,n){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,a,u,i,l){return[t,e,n,r,o,a,u,i,l]}n.d(e,{fA:()=>o,vt:()=>r});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b){return[t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},48163(t,e,n){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function a(t,e){return[t,e]}function u(){return a(1,1)}function i(){return a(-1,-1)}function l(){return a(1,0)}function c(){return a(0,1)}n.d(e,{fA:()=>a,o8:()=>o,vt:()=>r});const s=u(),f=i(),h=l(),M=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,UNIT_X:h,UNIT_Y:M,ZEROS:[0,0],clone:o,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:a,negativeOnes:i,ones:u,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,f,"Un",0,s])},51850(t,e,n){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function u(t,e,n){return[t,e,n]}function i(t,e=[0,0,0]){let n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return a(1,1,1)}function c(){return a(1,0,0)}function s(){return a(0,1,0)}function f(){return a(0,0,1)}n.d(e,{CN:()=>u,ci:()=>i,fA:()=>a,o8:()=>o,vt:()=>r});const h=[0,0,0],M=l(),d=c(),b=s(),m=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:M,UNIT_X:d,UNIT_Y:b,UNIT_Z:m,ZEROS:h,clone:o,create:r,freeze:u,fromArray:i,fromValues:a,ones:l,unitX:c,unitY:s,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,m,"Cw",0,d,"JP",0,b,"Un",0,M,"uY",0,h])},91829(t,e,n){function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function i(){return o(0,1,0,0)}function l(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}n.d(e,{_Y:()=>c,fA:()=>o,vt:()=>r});const s=[0,0,0,0],f=a(),h=u(),M=i(),d=l(),b=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:b,UNIT_X:h,UNIT_Y:M,UNIT_Z:d,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,e,n,r){return[t,e,n,r]},fromArray:function(t,e=[0,0,0,0]){let n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:a,unitW:c,unitX:u,unitY:i,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,f,"uY",0,s])},34304(t,e,n){n.d(e,{DF:()=>l,FD:()=>o,ct:()=>c});let r=1e-6;function o(){return r}const a=Math.random,u=Math.PI/180,i=180/Math.PI;function l(t){return t*u}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:l},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,a])},77690(t,e,n){n.d(e,{B8:()=>i,Ge:()=>M,I0:()=>h,KC:()=>l,a4:()=>c,hZ:()=>a,hs:()=>f,lw:()=>s,mg:()=>u,z0:()=>o});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function a(t,e,n,r,o,a,u,i,l,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=l,t[8]=c,t}function u(t,e){if(t===e){let n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function i(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=s*u-i*c,h=-s*a+i*l,M=c*a-u*l,d=n*f+r*h+o*M;return d?(d=1/d,t[0]=f*d,t[1]=(-s*r+o*c)*d,t[2]=(i*r-o*u)*d,t[3]=h*d,t[4]=(s*n-o*l)*d,t[5]=(-i*n+o*a)*d,t[6]=M*d,t[7]=(-c*n+r*l)*d,t[8]=(u*n-r*a)*d,t):null}function l(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8];return t[0]=u*s-i*c,t[1]=o*c-r*s,t[2]=r*i-o*u,t[3]=i*l-a*s,t[4]=n*s-o*l,t[5]=o*a-n*i,t[6]=a*c-u*l,t[7]=r*l-n*c,t[8]=n*u-r*a,t}function c(t){let e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],l=t[7],c=t[8];return e*(c*a-u*l)+n*(-c*o+u*i)+r*(l*o-a*i)}function s(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=n[0],M=n[1],d=n[2],b=n[3],m=n[4],p=n[5],g=n[6],y=n[7],w=n[8];return t[0]=h*r+M*u+d*c,t[1]=h*o+M*i+d*s,t[2]=h*a+M*l+d*f,t[3]=b*r+m*u+p*c,t[4]=b*o+m*i+p*s,t[5]=b*a+m*l+p*f,t[6]=g*r+y*u+w*c,t[7]=g*o+y*i+w*s,t[8]=g*a+y*l+w*f,t}function f(t,e,n){let r=n[0],o=n[1],a=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=a*e[6],t[7]=a*e[7],t[8]=a*e[8],t}function h(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n+n,i=r+r,l=o+o,c=n*u,s=r*u,f=r*i,h=o*u,M=o*i,d=o*l,b=a*u,m=a*i,p=a*l;return t[0]=1-f-d,t[3]=s-p,t[6]=h+m,t[1]=s+p,t[4]=1-c-d,t[7]=M-b,t[2]=h-m,t[5]=M+b,t[8]=1-c-f,t}function M(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15],g=n*i-r*u,y=n*l-o*u,w=n*c-a*u,v=r*l-o*i,A=r*c-a*i,S=o*c-a*l,I=s*b-f*d,C=s*m-h*d,O=s*p-M*d,T=f*m-h*b,U=f*p-M*b,x=h*p-M*m,E=g*x-y*U+w*T+v*O-A*C+S*I;return E?(E=1/E,t[0]=(i*x-l*U+c*T)*E,t[1]=(l*O-u*x-c*C)*E,t[2]=(u*U-i*O+c*I)*E,t[3]=(o*U-r*x-a*T)*E,t[4]=(n*x-o*O+a*C)*E,t[5]=(r*O-n*U-a*I)*E,t[6]=(b*S-m*A+p*v)*E,t[7]=(m*w-d*S-p*y)*E,t[8]=(d*A-b*w+p*g)*E,t):null}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const b=s,m=d;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:c,equals:function(t,e){let n=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8],h=e[0],M=e[1],d=e[2],b=e[3],m=e[4],p=e[5],g=e[6],y=e[7],w=e[8],v=(0,r.FD)();return Math.abs(n-h)<=v*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(o-M)<=v*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-d)<=v*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(u-b)<=v*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(i-m)<=v*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(l-p)<=v*Math.max(1,Math.abs(l),Math.abs(p))&&Math.abs(c-g)<=v*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(s-y)<=v*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:i,isOrthoNormal:function(t){let e=(0,r.FD)(),n=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8];return Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(o*o+i*i+s*s))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e},mul:b,multiply:s,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:M,normalFromMat4Legacy:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[4],u=e[5],i=e[6],l=e[8],c=e[9],s=e[10],f=s*u-i*c,h=-s*a+i*l,M=c*a-u*l,d=n*f+r*h+o*M;if(!d)return null;let b=1/d;return t[0]=f*b,t[1]=(-s*r+o*c)*b,t[2]=(i*r-o*u)*b,t[3]=h*b,t[4]=(s*n-o*l)*b,t[5]=(-i*n+o*a)*b,t[6]=M*b,t[7]=(-c*n+r*l)*b,t[8]=(u*n-r*a)*b,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=Math.sin(n),M=Math.cos(n);return t[0]=M*r+h*u,t[1]=M*o+h*i,t[2]=M*a+h*l,t[3]=M*u-h*r,t[4]=M*i-h*o,t[5]=M*l-h*a,t[6]=c,t[7]=s,t[8]=f,t},scale:f,scaleByVec2:function(t,e,n){let r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:d,translate:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=n[0],M=n[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=i,t[5]=l,t[6]=h*r+M*u+c,t[7]=h*o+M*i+s,t[8]=h*a+M*l+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,e,n){n.d(e,{$0:()=>p,$h:()=>T,B8:()=>s,C:()=>a,D_:()=>i,N9:()=>y,O7:()=>O,Qw:()=>c,Tl:()=>h,X_:()=>S,e$:()=>d,eL:()=>b,hM:()=>g,hZ:()=>u,hs:()=>M,kN:()=>m,l:()=>I,lw:()=>f,mg:()=>l,o1:()=>C,sC:()=>A,t2:()=>E,t5:()=>U,tZ:()=>_,ut:()=>F});var r=n(51850),o=n(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function u(t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b,m){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=l,t[8]=c,t[9]=s,t[10]=f,t[11]=h,t[12]=M,t[13]=d,t[14]=b,t[15]=m,t}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function l(t,e){if(t===e){let n=e[1],r=e[2],o=e[3],a=e[6],u=e[7],i=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=o,t[13]=u,t[14]=i}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){return s(t,e)||i(t),t}function s(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15],g=n*i-r*u,y=n*l-o*u,w=n*c-a*u,v=r*l-o*i,A=r*c-a*i,S=o*c-a*l,I=s*b-f*d,C=s*m-h*d,O=s*p-M*d,T=f*m-h*b,U=f*p-M*b,x=h*p-M*m,E=g*x-y*U+w*T+v*O-A*C+S*I;return E?(E=1/E,t[0]=(i*x-l*U+c*T)*E,t[1]=(o*U-r*x-a*T)*E,t[2]=(b*S-m*A+p*v)*E,t[3]=(h*A-f*S-M*v)*E,t[4]=(l*O-u*x-c*C)*E,t[5]=(n*x-o*O+a*C)*E,t[6]=(m*w-d*S-p*y)*E,t[7]=(s*S-h*w+M*y)*E,t[8]=(u*U-i*O+c*I)*E,t[9]=(r*O-n*U-a*I)*E,t[10]=(d*A-b*w+p*g)*E,t[11]=(f*w-s*A-M*g)*E,t[12]=(i*C-u*T-l*I)*E,t[13]=(n*T-r*C+o*I)*E,t[14]=(b*y-d*v-m*g)*E,t[15]=(s*v-f*y+h*g)*E,t):null}function f(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=e[9],M=e[10],d=e[11],b=e[12],m=e[13],p=e[14],g=e[15],y=n[0],w=n[1],v=n[2],A=n[3];return t[0]=y*r+w*i+v*f+A*b,t[1]=y*o+w*l+v*h+A*m,t[2]=y*a+w*c+v*M+A*p,t[3]=y*u+w*s+v*d+A*g,y=n[4],w=n[5],v=n[6],A=n[7],t[4]=y*r+w*i+v*f+A*b,t[5]=y*o+w*l+v*h+A*m,t[6]=y*a+w*c+v*M+A*p,t[7]=y*u+w*s+v*d+A*g,y=n[8],w=n[9],v=n[10],A=n[11],t[8]=y*r+w*i+v*f+A*b,t[9]=y*o+w*l+v*h+A*m,t[10]=y*a+w*c+v*M+A*p,t[11]=y*u+w*s+v*d+A*g,y=n[12],w=n[13],v=n[14],A=n[15],t[12]=y*r+w*i+v*f+A*b,t[13]=y*o+w*l+v*h+A*m,t[14]=y*a+w*c+v*M+A*p,t[15]=y*u+w*s+v*d+A*g,t}function h(t,e,n){let r=n[0],o=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*a+e[12],t[13]=e[1]*r+e[5]*o+e[9]*a+e[13],t[14]=e[2]*r+e[6]*o+e[10]*a+e[14],t[15]=e[3]*r+e[7]*o+e[11]*a+e[15];else{let n=e[0],u=e[1],i=e[2],l=e[3],c=e[4],s=e[5],f=e[6],h=e[7],M=e[8],d=e[9],b=e[10],m=e[11];t[0]=n,t[1]=u,t[2]=i,t[3]=l,t[4]=c,t[5]=s,t[6]=f,t[7]=h,t[8]=M,t[9]=d,t[10]=b,t[11]=m,t[12]=n*r+c*o+M*a+e[12],t[13]=u*r+s*o+d*a+e[13],t[14]=i*r+f*o+b*a+e[14],t[15]=l*r+h*o+m*a+e[15]}return t}function M(t,e,n){let r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let u=r[0],i=r[1],l=r[2],c=Math.sqrt(u*u+i*i+l*l);if(c<=(0,o.FD)())return void a(t,e);c=1/c,u*=c,i*=c,l*=c;let s=Math.sin(n),f=Math.cos(n),h=1-f,M=e[0],d=e[1],b=e[2],m=e[3],p=e[4],g=e[5],y=e[6],w=e[7],v=e[8],A=e[9],S=e[10],I=e[11],C=u*u*h+f,O=i*u*h+l*s,T=l*u*h-i*s,U=u*i*h-l*s,x=i*i*h+f,E=l*i*h+u*s,F=u*l*h+i*s,_=i*l*h-u*s,P=l*l*h+f;t[0]=M*C+p*O+v*T,t[1]=d*C+g*O+A*T,t[2]=b*C+y*O+S*T,t[3]=m*C+w*O+I*T,t[4]=M*U+p*x+v*E,t[5]=d*U+g*x+A*E,t[6]=b*U+y*x+S*E,t[7]=m*U+w*x+I*E,t[8]=M*F+p*_+v*P,t[9]=d*F+g*_+A*P,t[10]=b*F+y*_+S*P,t[11]=m*F+w*_+I*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function b(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[4],u=e[5],i=e[6],l=e[7],c=e[8],s=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*o+c*r,t[5]=u*o+s*r,t[6]=i*o+f*r,t[7]=l*o+h*r,t[8]=c*o-a*r,t[9]=s*o-u*r,t[10]=f*o-i*r,t[11]=h*o-l*r,t}function m(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function p(t,e,n){if(0===e)return i(t);let r=n[0],a=n[1],u=n[2],l=Math.sqrt(r*r+a*a+u*u);if(l<=(0,o.FD)())return null;l=1/l,r*=l,a*=l,u*=l;let c=Math.sin(e),s=Math.cos(e),f=1-s;return t[0]=r*r*f+s,t[1]=a*r*f+u*c,t[2]=u*r*f-a*c,t[3]=0,t[4]=r*a*f-u*c,t[5]=a*a*f+s,t[6]=u*a*f+r*c,t[7]=0,t[8]=r*u*f+a*c,t[9]=a*u*f-r*c,t[10]=u*u*f+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function w(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=r+r,l=o+o,c=a+a,s=r*i,f=r*l,h=r*c,M=o*l,d=o*c,b=a*c,m=u*i,p=u*l,g=u*c;return t[0]=1-(M+b),t[1]=f+g,t[2]=h-p,t[3]=0,t[4]=f-g,t[5]=1-(s+b),t[6]=d+m,t[7]=0,t[8]=h+p,t[9]=d-m,t[10]=1-(s+M),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function A(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],o=e[2],a=e[4],u=e[5],i=e[6],l=e[8],c=e[9],s=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(a*a+u*u+i*i),t[2]=Math.sqrt(l*l+c*c+s*s),t}function I(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function C(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=e[3],l=o+o,c=a+a,s=u+u,f=o*l,h=o*c,M=o*s,d=a*c,b=a*s,m=u*s,p=i*l,g=i*c,y=i*s,w=r[0],v=r[1],A=r[2];return t[0]=(1-(d+m))*w,t[1]=(h+y)*w,t[2]=(M-g)*w,t[3]=0,t[4]=(h-y)*v,t[5]=(1-(f+m))*v,t[6]=(b+p)*v,t[7]=0,t[8]=(M+g)*A,t[9]=(b-p)*A,t[10]=(1-(f+d))*A,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function O(t,e,n,r,o){let a=e[0],u=e[1],i=e[2],l=e[3],c=a+a,s=u+u,f=i+i,h=a*c,M=a*s,d=a*f,b=u*s,m=u*f,p=i*f,g=l*c,y=l*s,w=l*f,v=r[0],A=r[1],S=r[2],I=o[0],C=o[1],O=o[2],T=(1-(b+p))*v,U=(M+w)*v,x=(d-y)*v,E=(M-w)*A,F=(1-(h+p))*A,_=(m+g)*A,P=(d+y)*S,q=(m-g)*S,D=(1-(h+b))*S;return t[0]=T,t[1]=U,t[2]=x,t[3]=0,t[4]=E,t[5]=F,t[6]=_,t[7]=0,t[8]=P,t[9]=q,t[10]=D,t[11]=0,t[12]=n[0]+I-(T*I+E*C+P*O),t[13]=n[1]+C-(U*I+F*C+q*O),t[14]=n[2]+O-(x*I+_*C+D*O),t[15]=1,t}function T(t,e,n,r,o,a,u){let i=1/(n-e),l=1/(o-r),c=1/(a-u);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(n+e)*i,t[9]=(o+r)*l,t[10]=(u+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*a*2*c,t[15]=0,t}function U(t,e,n,r){let a=e[0],u=e[1],l=e[2],c=a-n[0],s=u-n[1],f=l-n[2],h=(0,o.FD)();if(Math.abs(c)<h&&Math.abs(s)<h&&Math.abs(f)<h)return void i(t);let M=1/Math.sqrt(c*c+s*s+f*f);c*=M,s*=M,f*=M;let d=r[0],b=r[1],m=r[2],p=b*f-m*s,g=m*c-d*f,y=d*s-b*c;M=Math.sqrt(p*p+g*g+y*y),M?(M=1/M,p*=M,g*=M,y*=M):(p=0,g=0,y=0);let w=s*y-f*g,v=f*p-c*y,A=c*g-s*p;M=Math.sqrt(w*w+v*v+A*A),M?(M=1/M,w*=M,v*=M,A*=M):(w=0,v=0,A=0),t[0]=p,t[1]=w,t[2]=c,t[3]=0,t[4]=g,t[5]=v,t[6]=s,t[7]=0,t[8]=y,t[9]=A,t[10]=f,t[11]=0,t[12]=-(p*a+g*u+y*l),t[13]=-(w*a+v*u+A*l),t[14]=-(c*a+s*u+f*l),t[15]=1}function x(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function E(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function F(t){let e=(0,o.FD)(),n=t[0],r=t[1],a=t[2],u=t[4],i=t[5],l=t[6],c=t[8],s=t[9],f=t[10];return Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(r*r+i*i+s*s))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e}function _(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const P=f,q=x;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15];return t[0]=i*(h*p-M*m)-f*(l*p-c*m)+b*(l*M-c*h),t[1]=-(r*(h*p-M*m)-f*(o*p-a*m)+b*(o*M-a*h)),t[2]=r*(l*p-c*m)-i*(o*p-a*m)+b*(o*c-a*l),t[3]=-(r*(l*M-c*h)-i*(o*M-a*h)+f*(o*c-a*l)),t[4]=-(u*(h*p-M*m)-s*(l*p-c*m)+d*(l*M-c*h)),t[5]=n*(h*p-M*m)-s*(o*p-a*m)+d*(o*M-a*h),t[6]=-(n*(l*p-c*m)-u*(o*p-a*m)+d*(o*c-a*l)),t[7]=n*(l*M-c*h)-u*(o*M-a*h)+s*(o*c-a*l),t[8]=u*(f*p-M*b)-s*(i*p-c*b)+d*(i*M-c*f),t[9]=-(n*(f*p-M*b)-s*(r*p-a*b)+d*(r*M-a*f)),t[10]=n*(i*p-c*b)-u*(r*p-a*b)+d*(r*c-a*i),t[11]=-(n*(i*M-c*f)-u*(r*M-a*f)+s*(r*c-a*i)),t[12]=-(u*(f*m-h*b)-s*(i*m-l*b)+d*(i*h-l*f)),t[13]=n*(f*m-h*b)-s*(r*m-o*b)+d*(r*h-o*f),t[14]=-(n*(i*m-l*b)-u*(r*m-o*b)+d*(r*l-o*i)),t[15]=n*(i*h-l*f)-u*(r*h-o*f)+s*(r*l-o*i),t},copy:a,determinant:function(t){let e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],l=t[7],c=t[8],s=t[9],f=t[10],h=t[11],M=t[12],d=t[13],b=t[14],m=t[15];return(e*u-n*a)*(f*m-h*b)-(e*i-r*a)*(s*m-h*d)+(e*l-o*a)*(s*b-f*d)+(n*i-r*u)*(c*m-h*M)-(n*l-o*u)*(c*b-f*M)+(r*l-o*i)*(c*d-s*M)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8],h=t[9],M=t[10],d=t[11],b=t[12],m=t[13],p=t[14],g=t[15],y=e[0],w=e[1],v=e[2],A=e[3],S=e[4],I=e[5],C=e[6],O=e[7],T=e[8],U=e[9],x=e[10],E=e[11],F=e[12],_=e[13],P=e[14],q=e[15],D=(0,o.FD)();return Math.abs(n-y)<=D*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-w)<=D*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-v)<=D*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-A)<=D*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(i-S)<=D*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(l-I)<=D*Math.max(1,Math.abs(l),Math.abs(I))&&Math.abs(c-C)<=D*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(s-O)<=D*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(f-T)<=D*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(h-U)<=D*Math.max(1,Math.abs(h),Math.abs(U))&&Math.abs(M-x)<=D*Math.max(1,Math.abs(M),Math.abs(x))&&Math.abs(d-E)<=D*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(b-F)<=D*Math.max(1,Math.abs(b),Math.abs(F))&&Math.abs(m-_)<=D*Math.max(1,Math.abs(m),Math.abs(_))&&Math.abs(p-P)<=D*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(g-q)<=D*Math.max(1,Math.abs(g),Math.abs(q))},exactEquals:E,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n+n,i=r+r,l=o+o,c=n*u,s=r*u,f=r*i,h=o*u,M=o*i,d=o*l,b=a*u,m=a*i,p=a*l;return t[0]=1-f-d,t[1]=s+p,t[2]=h-m,t[3]=0,t[4]=s-p,t[5]=1-c-d,t[6]=M+b,t[7]=0,t[8]=h+m,t[9]=M-b,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=v,r=-e[0],o=-e[1],a=-e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=r*r+o*o+a*a+u*u;return f>0?(n[0]=2*(i*u+s*r+l*a-c*o)/f,n[1]=2*(l*u+s*o+c*r-i*a)/f,n[2]=2*(c*u+s*a+i*o-l*r)/f):(n[0]=2*(i*u+s*r+l*a-c*o),n[1]=2*(l*u+s*o+c*r-i*a),n[2]=2*(c*u+s*a+i*o-l*r)),w(t,e,n),t},fromRotation:p,fromRotationTranslation:w,fromRotationTranslationScale:C,fromRotationTranslationScaleOrigin:O,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:m,fromXRotation:g,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:y,frustum:T,getRotation:I,getScale:S,getTranslation:A,hasIdentityRotation:_,identity:i,invert:s,invertOrIdentity:c,isOrthoNormal:F,lookAt:U,mul:P,multiply:f,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,a,u){let i=1/(e-n),l=1/(r-o),c=1/(a-u);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*i,t[13]=(o+r)*l,t[14]=(u+a)*c,t[15]=1,t},perspective:function(t,e,n,r,o){let a,u=1/Math.tan(e/2);return t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(a=1/(r-o),t[10]=(o+r)*a,t[14]=2*o*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),u=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),l=2/(u+i),c=2/(o+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(u-i)*l*.5,t[9]=(o-a)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:b,rotateY:function(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[0],u=e[1],i=e[2],l=e[3],c=e[8],s=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o-c*r,t[1]=u*o-s*r,t[2]=i*o-f*r,t[3]=l*o-h*r,t[8]=a*r+c*o,t[9]=u*r+s*o,t[10]=i*r+f*o,t[11]=l*r+h*o,t},rotateZ:function(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[0],u=e[1],i=e[2],l=e[3],c=e[4],s=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o+c*r,t[1]=u*o+s*r,t[2]=i*o+f*r,t[3]=l*o+h*r,t[4]=c*o-a*r,t[5]=s*o-u*r,t[6]=f*o-i*r,t[7]=h*o-l*r,t},scale:M,set:u,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:q,subtract:x,targetTo:function(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=r[0],l=r[1],c=r[2],s=o-n[0],f=a-n[1],h=u-n[2],M=s*s+f*f+h*h;M>0&&(M=1/Math.sqrt(M),s*=M,f*=M,h*=M);let d=l*h-c*f,b=c*s-i*h,m=i*f-l*s;return M=d*d+b*b+m*m,M>0&&(M=1/Math.sqrt(M),d*=M,b*=M,m*=M),t[0]=d,t[1]=b,t[2]=m,t[3]=0,t[4]=f*m-h*b,t[5]=h*d-s*m,t[6]=s*b-f*d,t[7]=0,t[8]=s,t[9]=f,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=u,t[15]=1,t},translate:h,translateAffine:function(t,e,n){let r=n[0],o=n[1],u=n[2];return t!==e&&a(t,e),t[12]+=r,t[13]+=o,t[14]+=u,t},transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>C,Bw:()=>a,C:()=>u,Cc:()=>O,DI:()=>A,Io:()=>g,Ln:()=>p,Om:()=>I,Qr:()=>f,Re:()=>c,S8:()=>S,T9:()=>b,WQ:()=>l,Z0:()=>T,_S:()=>M,aI:()=>q,ei:()=>U,fw:()=>E,gL:()=>x,hG:()=>y,hZ:()=>i,hs:()=>m,jk:()=>d,lw:()=>s,m3:()=>w,oW:()=>D,t2:()=>P,tn:()=>h,ze:()=>v});var r=n(51850),o=n(34304);function a(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function M(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function b(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function p(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function g(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function y(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function w(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e=t){let n=e[0],r=e[1],o=e[2],a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2];return t[0]=o*l-a*i,t[1]=a*u-r*l,t[2]=r*i-o*u,t}function O(t,e,n,r){let o=e[0],a=e[1],u=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t}function T(t,e,n){let r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function U(t,e,n){let r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function x(t,e,n){return E(t,e,n[0],n[1],n[2],n[3])}function E(t,e,n,r,o,a){let u=e[0],i=e[1],l=e[2],c=r*l-o*i,s=o*u-n*l,f=n*i-r*u,h=r*f-o*s,M=o*c-n*f,d=n*s-r*c,b=2*a;return t[0]=u+c*b+2*h,t[1]=i+s*b+2*M,t[2]=l+f*b+2*d,t}const F=(0,r.vt)(),_=(0,r.vt)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],u=e[0],i=e[1],l=e[2],c=(0,o.FD)();return Math.abs(n-u)<=c*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))}function D(t,e,n){let r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2],u=r*r+o*o+a*a;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=o*u,t[2]=a*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const k=c,j=s,R=f,z=g,N=y,B=a,L=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:l,angle:function(t,e){S(F,t),S(_,e);let n=I(F,_);return n>1?0:n<-1?Math.PI:Math.acos(n)},applyTranslation:function(t,e,n){return t[0]=e[0]+n[12],t[1]=e[1]+n[13],t[2]=e[2]+n[14],t},bezier:function(t,e,n,r,o,a){let u=1-a,i=u*u,l=a*a,c=i*u,s=3*a*i,f=3*l*u,h=l*a;return t[0]=e[0]*c+n[0]*s+r[0]*f+o[0]*h,t[1]=e[1]*c+n[1]*s+r[1]*f+o[1]*h,t[2]=e[2]*c+n[2]*s+r[2]*f+o[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:u,cross:C,crossAndNormalize:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],c=o*l-a*i,s=a*u-r*l,f=r*i-o*u,h=Math.sqrt(c*c+s*s+f*f);return t[0]=c/h,t[1]=s/h,t[2]=f/h,t},direction:D,dist:z,distance:g,div:R,divide:f,dot:I,equals:q,exactEquals:P,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,a){let u=a*a,i=u*(2*a-3)+1,l=u*(a-2)+a,c=u*(a-1),s=u*(3-2*a);return t[0]=e[0]*i+n[0]*l+r[0]*c+o[0]*s,t[1]=e[1]*i+n[1]*l+r[1]*c+o[1]*s,t[2]=e[2]*i+n[2]*l+r[2]*c+o[2]*s,t},inverse:A,len:B,length:a,lerp:O,max:b,min:d,mul:j,multiply:s,negate:v,normalize:S,random:function(t,e=1){let n=o.Ov,r=2*n()*Math.PI,a=2*n()-1,u=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*e,t},rotateX:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:p,scaleTo:function(t,e){return m(t,t,e/B(t))},set:i,sign:M,sqrDist:N,sqrLen:L,squaredDistance:y,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:k,subtract:c,transformMat3:U,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:x,transformQuatValues:E},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,B,"jb",0,k,"lo",0,N,"uE",0,L])},78955(t,e,n){n.d(e,{Bw:()=>m,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>y,S8:()=>g,T9:()=>f,WQ:()=>u,Z0:()=>v,aI:()=>S,hG:()=>b,hZ:()=>a,hs:()=>M,jk:()=>s,m3:()=>p,t2:()=>A});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function s(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function f(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function h(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function M(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function d(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+o*o+a*a)}function b(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+o*o+a*a}function m(t){let e=t[0],n=t[1],r=t[2],o=t[3];return Math.sqrt(e*e+n*n+r*r+o*o)}function p(t){let e=t[0],n=t[1],r=t[2],o=t[3];return e*e+n*n+r*r+o*o}function g(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n*n+r*r+o*o+a*a;return u>0&&(u=1/Math.sqrt(u),t[0]=n*u,t[1]=r*u,t[2]=o*u,t[3]=a*u),t}function y(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function w(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=e[3];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t[3]=i+r*(n[3]-i),t}function v(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12]*u,t[1]=n[1]*r+n[5]*o+n[9]*a+n[13]*u,t[2]=n[2]*r+n[6]*o+n[10]*a+n[14]*u,t[3]=n[3]*r+n[7]*o+n[11]*a+n[15]*u,t}function A(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function S(t,e){let n=t[0],o=t[1],a=t[2],u=t[3],i=e[0],l=e[1],c=e[2],s=e[3],f=(0,r.FD)();return Math.abs(n-i)<=f*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-l)<=f*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(a-c)<=f*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-s)<=f*Math.max(1,Math.abs(u),Math.abs(s))}const I=i,C=l,O=c,T=d,U=b,x=m,E=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:o,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:T,distance:d,div:O,divide:c,dot:y,equals:S,exactEquals:A,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:x,length:m,lerp:w,max:f,min:s,mul:C,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:g,random:function(t,e=1){let n,o,a,u,i,l,c=r.Ov;do{n=2*c()-1,o=2*c()-1,i=n*n+o*o}while(i>=1);do{a=2*c()-1,u=2*c()-1,l=a*a+u*u}while(l>=1);let s=Math.sqrt((1-i)/l);return t[0]=e*n,t[1]=e*o,t[2]=e*a*s,t[3]=e*u*s,t},round:h,scale:M,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},set:a,sqrDist:U,sqrLen:E,squaredDistance:b,squaredLength:p,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:i,transformMat4:v,transformQuat:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],c=n[3],s=c*r+i*a-l*o,f=c*o+l*r-u*a,h=c*a+u*o-i*r,M=-u*r-i*o-l*a;return t[0]=s*c+M*-u+f*-l-h*-i,t[1]=f*c+M*-i+h*-u-s*-l,t[2]=h*c+M*-l+s*-i-f*-u,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,e,n){n.d(e,{$8:()=>S,Cc:()=>u,Hx:()=>b,Io:()=>v,KJ:()=>c,OS:()=>O,Sp:()=>h,XM:()=>s,YN:()=>f,ZH:()=>d,b6:()=>A,cU:()=>o,gg:()=>M,hs:()=>i,kU:()=>l,or:()=>C,pF:()=>U,qE:()=>a});const r=new Float32Array(1);function o(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function a(t,e,n){return Math.min(Math.max(t,e),n)}function u(t,e,n){return t+(e-t)*n}function i(t,e,n,r,o){return u(r,o,(t-e)/(n-e))}function l(t){return t*Math.PI/180}function c(t){return 180*t/Math.PI}function s(t){return Math.acos(a(t,-1,1))}function f(t){return Math.asin(a(t,-1,1))}function h(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}function M(t,e,n=1e-6){return!h(t,e,n)&&t>e}function d(t,e,n=1e-6){return!h(t,e,n)&&t<e}function b(t,e,n=1e-6){return h(t,e,n)||t>e}const m=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function p(t){return m.setFloat64(0,t),m.getBigInt64(0)}const g=1000000n,y=w(1);function w(t){let e=p(t=Math.abs(t)),n=function(t){return m.setBigInt64(0,t),m.getFloat64(0)}(e<=g?g:e-g);return Math.abs(t-n)}function v(t,e,n=y){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&w(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;let r=p(t),o=p(e);return!(r<0!=o<0||(r<o?o-r:r-o)>g)}function A(t,e,n=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let r=Math.abs(t-e),o=Math.abs(t),a=Math.abs(e);if(0===t||0===e||o<1e-12&&a<1e-12){if(r>.01*n)return!1}else if(r/(o+a)>n)return!1;return!0}function S(t){return I(Math.max(-T,Math.min(t,T)))}function I(t){return r[0]=t,r[0]}function C(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(h(e,1)&&h(n,1)&&h(r,1))}function O(t,e){return(t%e+e)%e}const T=I(34028234663852886e22);function U(t,e,n){if(void 0===n||0==+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let r=e.toString().split("e");return r=(e=Math[t](+(r[0]+"e"+(r[1]?+r[1]-n:-n)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+n:n))}n.d(e,["pq",0,T])},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>o});var r=n(37539);function o(t,e,n,o,a,u,i=Math.floor(t.length/3)){let l=(0,r.jd)(e,a);if(null==l)return!1;if(l===r.pO){if(t===o&&n===u)return!0;let e=n+3*i;for(let r=n,a=u;r<e;r++,a++)o[a]=t[r]??0;return!0}let c=n+3*i;for(let e=n,r=u;e<c;e+=3,r+=3)l(t,e,o,r);return!0}},37539(t,e,n){n.d(e,{pO:()=>m,jd:()=>h,Tp:()=>M,wy:()=>d,w5:()=>f,s7:()=>w});var r=n(34727),o=n(86211),a=n(73941),u=n(79258);Math.PI;const i=u.$O.radius,l=u.$O.eccentricitySquared,c={a1:i*l,a2:i*l*i*l,a3:i*l*l/2,a4:i*l*i*l*2.5,a5:i*l+i*l*l/2,a6:1-l};u.$O.radius,u.$O.flattening,u.Sw.radius,u.Sw.flattening,u.sH.radius,u.sH.flattening,u.sH.radius;var s=n(21325);const f={2:{5:m,7:null,9:null,10:m,1:T,6:null,8:null,0:null,3:w,11:v,2:m,4:q},5:{5:m,7:null,9:null,10:m,1:T,6:null,8:null,0:null,3:w,11:v,2:m,4:q},7:{5:null,7:m,9:null,10:m,1:null,6:O,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:C,0:null,3:null,11:null,2:null,4:null},3:{5:p,7:null,9:null,10:p,1:g,6:null,8:null,0:null,3:m,11:S,2:p,4:y},4:{5:D,7:null,9:null,10:D,1:k,6:null,8:null,0:null,3:j,11:function(t,e,n,r){D(t,e,n,r),v(n,r,n,r)},2:D,4:m},1:{5:F,7:null,9:null,10:F,1:m,6:null,8:null,0:null,3:_,11:function(t,e,n,r){F(t,e,n,r),v(n,r,n,r)},2:F,4:P},6:{5:null,7:E,9:null,10:E,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:x,10:x,1:null,6:null,8:m,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:T,6:O,8:C,0:null,3:w,11:v,2:m,4:q},11:{5:A,7:null,9:null,10:A,1:function(t,e,n,r){A(t,e,n,r),T(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){A(t,e,n,r),w(n,r,n,r)},11:m,2:A,4:function(t,e,n,r){A(t,e,n,r),q(n,r,n,r)}}};function h(t,e){return M(t,e)?.projector}function M(t,e){if(null==t||null==e)return null;if(R.source.spatialReference===t&&R.dest.spatialReference===e)return R;let n=b(t,R.source),r=b(e,R.dest);return 0===n&&0===r?(0,s.aI)(t,e)?R.projector=m:R.projector=null:R.projector=f[n][r],R}function d(t,e){switch(h(t,e)){case m:return"copy3";case T:return"wgs84ToSphericalECEF";case w:return"wgs84ToWebMercator";case v:return"wgs84ToPlateCarree";case q:return"wgs84ToWGS84ECEF";case p:return"webMercatorToWGS84";case g:return"webMercatorToSphericalECEF";case y:return"webMercatorToWGS84ECEF";case S:return"webMercatorToPlateCarree";case D:return"wgs84ECEFToWGS84";case k:return"wgs84ECEFToSphericalECEF";case j:return"wgs84ECEFToWebMercator";case F:return"sphericalECEFToWGS84";case _:return"sphericalECEFToWebMercator";case E:return"sphericalMarsPCPFToMars2000";case x:return"sphericalMoonPCPFToMoon2000";case P:return"sphericalECEFToWGS84ECEF";case O:return"mars2000ToSphericalPCPF";case C:return"moon2000ToSphericalPCPF";default:return null}}function b(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,s.EA)(t)?1:(0,o.GA)(t,1)),e.spatialReferenceId=(0,a.jA)(t)?1:(0,s.oT)(t)?2:(0,s.K8)(t)?3:(0,s.r1)(t)?11:t.wkt===a.Ro.wkt?4:4490===t.wkid?5:t.wkt===a.FY.wkt?6:t.wkt===a.LJ.wkt?8:(0,a.q8)(t)?7:(0,a.KQ)(t)?9:0):0}function m(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function p(t,e,n,r){n[r]=N*(t[e]/L),n[r+1]=N*(B-2*Math.atan(Math.exp(-t[e+1]/L))),n[r+2]=t[e+2]??0}function g(t,e,n,r){let o=t[e]/L,a=B-2*Math.atan(Math.exp(-t[e+1]/L)),u=L+(t[e+2]??0),i=Math.cos(a)*u;n[r]=Math.cos(o)*i,n[r+1]=Math.sin(o)*i,n[r+2]=Math.sin(a)*u}function y(t,e,n,r){p(t,e,n,r),q(n,r,n,r)}function w(t,e,n,o){!function(t,e,n,o,a){let u=.4999999*Math.PI,i=(0,r.qE)(z*t[e+1],-u,u),l=Math.sin(i);n[o++]=z*t[e]*a.radius,n[o++]=a.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=t[e+2]??0}(t,e,n,o,u.$O)}function v(t,e,n,r){n[r]=t[e]*Y,n[r+1]=t[e+1]*Y,n[r+2]=t[e+2]??0}function A(t,e,n,r){n[r]=t[e]*Z,n[r+1]=t[e+1]*Z,n[r+2]=t[e+2]??0}function S(t,e,n,r){p(t,e,n,r),v(n,r,n,r)}function I(t,e,n,r,o){let a=o+(t[e+2]??0),u=z*t[e],i=z*t[e+1],l=Math.cos(i)*a;n[r]=Math.cos(u)*l,n[r+1]=Math.sin(u)*l,n[r+2]=Math.sin(i)*a}function C(t,e,n,r){I(t,e,n,r,u.Sw.radius)}function O(t,e,n,r){I(t,e,n,r,u.sH.radius)}function T(t,e,n,r){I(t,e,n,r,u.$O.radius)}function U(t,e,n,o,a){let u=t[e],i=t[e+1],l=t[e+2]??0,c=Math.sqrt(u*u+i*i+l*l),s=(0,r.YN)(l/(0===c?1:c)),f=Math.atan2(i,u);n[o++]=N*f,n[o++]=N*s,n[o]=c-a}function x(t,e,n,r){U(t,e,n,r,u.Sw.radius)}function E(t,e,n,r){U(t,e,n,r,u.sH.radius)}function F(t,e,n,r){U(t,e,n,r,u.$O.radius)}function _(t,e,n,r){F(t,e,n,r),w(n,r,n,r)}function P(t,e,n,r){F(t,e,n,r),q(n,r,n,r)}function q(t,e,n,r){!function(t,e,n,r,o){let a=z*t[e],u=z*t[e+1],i=t[e+2]??0,l=Math.sin(u),c=Math.cos(u),s=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(s+i)*c*Math.cos(a),n[r++]=(s+i)*c*Math.sin(a),n[r++]=(s*(1-o.eccentricitySquared)+i)*l}(t,e,n,r,u.$O)}function D(t,e,n,r){let o,a,i,l,s,f,h,M,d,b,m,p,g,y,w,v,A,S,I,C,O,T=c,U=t[e],x=t[e+1],E=t[e+2]??0;o=Math.abs(E),a=U*U+x*x,i=Math.sqrt(a),l=a+E*E,s=Math.sqrt(l),C=Math.atan2(x,U),f=E*E/l,h=a/l,y=T.a2/s,w=T.a3-T.a4/s,h>.3?(M=o/s*(1+h*(T.a1+y+f*w)/s),I=Math.asin(M),b=M*M,d=Math.sqrt(1-b)):(d=i/s*(1-f*(T.a5-y-h*w)/s),I=Math.acos(d),b=1-d*d,M=Math.sqrt(b)),m=1-u.$O.eccentricitySquared*b,p=u.$O.radius/Math.sqrt(m),g=T.a6*p,y=i-p*d,w=o-g*M,A=d*y+M*w,v=d*w-M*y,S=v/(g/m+A),I+=S,O=A+v*S/2,E<0&&(I=-I),n[r++]=N*C,n[r++]=N*I,n[r]=O}function k(t,e,n,r){D(t,e,n,r),T(n,r,n,r)}function j(t,e,n,r){D(t,e,n,r),w(n,r,n,r)}const R={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},z=(0,r.kU)(1),N=(0,r.KJ)(1),B=.5*Math.PI,L=u.$O.radius,Y=L*Math.PI/180,Z=180/(L*Math.PI)},98764(t,e,n){n.d(e,{lO:()=>s});var r=n(73941),o=n(16930),a=n(21325);const u=new o.A(r.fv),i=new o.A(r.FY),l=new o.A(r.LJ),c=new o.A(r.Ro);function s(t){let e=f.get(t);if(e)return e;let n=u;if(t)if(t===i)n=i;else if(t===l)n=l;else{let e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,a.tl)(e)||(0,a.tl)(r)?n=i:((0,a.ZL)(e)||(0,a.ZL)(r))&&(n=l);else{let e=t.wkt2??t.wkt;if(e){let t=e.toUpperCase();t===h?n=i:t===M&&(n=l)}}}return f.set(t,n),n}const f=new Map,h=i.wkt.toUpperCase(),M=l.wkt.toUpperCase();n.d(e,["GD",0,u,"Y0",0,c])},64798(t,e,n){n.r(e),n.d(e,{default:()=>q});var r=n(4576),o=n(34275),a=n(82534),u=n(35522);function i(){return new Float32Array(3)}function l(t){let e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function c(t,e,n){let r=new Float32Array(3);return r[0]=t,r[1]=e,r[2]=n,r}function s(){return i()}function f(){return c(1,1,1)}function h(){return c(1,0,0)}function M(){return c(0,1,0)}function d(){return c(0,0,1)}const b=s(),m=f(),p=h(),g=M(),y=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:p,UNIT_Y:g,UNIT_Z:y,ZEROS:b,clone:l,create:i,fromValues:c,ones:f,unitX:h,unitY:M,unitZ:d,zeros:s},Symbol.toStringTag,{value:"Module"}));var w=n(51850),v=n(16930),A=n(9762),S=n(63531),I=n(69846),C=n(48425),O=n(59418),T=n(37203);function U(t,e,n){return t?.attributeInfo.useElevation?e?function(t,e){let n=new Float64Array(e);for(let r=0;r<e;r++)n[r]=t[3*r+2];return n}(e,n):null:t?.attributeInfo.storageInfo?(0,O.m0)(t.attributeInfo.storageInfo,t.buffer,n,!0):null}function x(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function E(t){let e=0;for(let n of t||[])e|=1<<n;return e}var F=n(57005);class _{transform(t){let e=this._transform(t),n=[e.points.buffer,e.rgb.buffer];null!=e.pointIdFilterMap&&n.push(e.pointIdFilterMap.buffer);for(let t of e.attributes)"buffer"in t.values&&(0,o.mw)(t.values.buffer)&&t.values.buffer!==e.rgb.buffer&&n.push(t.values.buffer);return Promise.resolve({result:e,transferList:n})}_transform(t){let e=function(t,e){if(null==t.encoding||""===t.encoding){let n=(0,O.wH)(e,t);if(null==n.vertexAttributes.position)return;let r=(0,O.MA)(e,n.vertexAttributes.position),o=n.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],u=[o.scaleX,o.scaleY,o.scaleZ],i=r.length/3,l=new Float64Array(3*i);for(let t=0;t<i;t++)l[3*t]=r[3*t]*u[0]+a[0],l[3*t+1]=r[3*t+1]*u[1]+a[1],l[3*t+2]=r[3*t+2]*u[2]+a[2];return l}if("lepcc-xyz"===t.encoding)return(0,T.Me)(e).result}(t.schema,t.geometryBuffer),n=e.length/3,o=null,a=[],s=U(t.primaryAttributeData,e,n);null!=t.primaryAttributeData&&s&&a.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:s});let f=U(t.modulationAttributeData,e,n);null!=t.modulationAttributeData&&f&&a.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:f});let h=function(t,e,n,r){let{rendererJSON:o,isRGBRenderer:a}=t,u=null,i=null;if(e&&a)u=e;else if(e&&"pointCloudUniqueValueRenderer"===o?.type){i=C.A.fromJSON(o);let t=i.colorUniqueValueInfos;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=(n?n(e[o]):e[o])+"";for(let e=0;e<t.length;e++)if(t[e].values.includes(r)){u[3*o]=t[e].color.r,u[3*o+1]=t[e].color.g,u[3*o+2]=t[e].color.b;break}}}else if(e&&"pointCloudStretchRenderer"===o?.type){i=I.A.fromJSON(o);let t=i.stops;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=n?n(e[o]):e[o],a=t.length-1;if(r<t[0].value)u[3*o]=t[0].color.r,u[3*o+1]=t[0].color.g,u[3*o+2]=t[0].color.b;else if(r>=t[a].value)u[3*o]=t[a].color.r,u[3*o+1]=t[a].color.g,u[3*o+2]=t[a].color.b;else for(let e=1;e<t.length;e++)if(r<t[e].value){let n=(r-t[e-1].value)/(t[e].value-t[e-1].value);u[3*o]=t[e].color.r*n+t[e-1].color.r*(1-n),u[3*o+1]=t[e].color.g*n+t[e-1].color.g*(1-n),u[3*o+2]=t[e].color.b*n+t[e-1].color.b*(1-n);break}}}else if(e&&"pointCloudClassBreaksRenderer"===o?.type){i=S.A.fromJSON(o);let t=i.colorClassBreakInfos;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=n?n(e[o]):e[o];for(let e=0;e<t.length;e++)if(r>=t[e].minValue&&r<=t[e].maxValue){u[3*o]=t[e].color.r,u[3*o+1]=t[e].color.g,u[3*o+2]=t[e].color.b;break}}}else u=new Uint8Array(3*r).fill(255);if(n&&i?.colorModulation){let t=i.colorModulation.minValue,e=i.colorModulation.maxValue,o=.3;for(let a=0;a<r;a++){let r=n[a],i=r>=e?1:r<=t?o:o+.7*(r-t)/(e-t);u[3*a]=i*u[3*a],u[3*a+1]=i*u[3*a+1],u[3*a+2]=i*u[3*a+2]}}return u}(t.rendererInfo,s,f,n);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){let u=t.filterAttributesData.filter(r.Ru).map(t=>{let r=U(t,e,n),o={attributeInfo:t.attributeInfo,values:r};return a.push(o),o});o=new Uint32Array(n),n=function(t,e,n,r,o){let a=t.length/3,u=function(t){return t.map(t=>{let{filterJSON:e}=t;switch(e.type){case"pointCloudValueFilter":return{...t,valuesSet:new Set(e.values)};case"pointCloudBitfieldFilter":return{...t,clearMask:E(e.requiredClearBits),requiredMask:E(e.requiredSetBits)};default:return t}})}(r),i=0;for(let r=0;r<a;r++){let a=!0;for(let t=0;t<u.length&&a;t++){let{clearMask:e,filterJSON:n,requiredMask:i,valuesSet:l}=u[t],c=o[t].values[r];switch(n.type){case"pointCloudValueFilter":{let t="exclude"===n.mode;l.has(c)===t&&(a=!1);break}case"pointCloudBitfieldFilter":((c&i)!==i||0!==(c&e))&&(a=!1);break;case"pointCloudReturnFilter":{let t=15&c,e=c>>>4&15,r=e>1,o=1===t,u=t===e,i=!1;for(let t of n.includedReturns)if("last"===t&&u||"firstOfMany"===t&&o&&r||"lastOfMany"===t&&u&&r||"single"===t&&!r){i=!0;break}i||(a=!1);break}}}a&&(n[i]=r,t[3*i]=t[3*r],t[3*i+1]=t[3*r+1],t[3*i+2]=t[3*r+2],e[3*i]=e[3*r],e[3*i+1]=e[3*r+1],e[3*i+2]=e[3*r+2],i++)}return i}(e,h,o,t.filterInfo,u)}for(let r of t.userAttributesData){let t=U(r,e,n);a.push({attributeInfo:r.attributeInfo,values:t})}3*n<h.length&&(h=h.slice(0,3*n)),function(t,e,n){if(0!==n)for(let r=0;r<e;r++)t[3*r+2]+=n}(e,n,t.elevationOffset);let M=function(t,e,n,r,o){if(!(0,A.projectBuffer)(t,r,0,t,o,0,e))throw Error("Can't reproject");let a=l(n.getCenter((0,w.vt)())),s=i(),f=i(),h=c(n.halfSizeX,n.halfSizeY,n.halfSizeZ);n.getQuaternionConjugate(P);let M=new Float32Array(3*e);for(let n=0;n<e;n++){let e=3*n;s[0]=t[e]-a[0],s[1]=t[e+1]-a[1],s[2]=t[e+2]-a[2],(0,u.gL)(f,s,P),h[0]=Math.max(h[0],Math.abs(f[0])),h[1]=Math.max(h[1],Math.abs(f[1])),h[2]=Math.max(h[2],Math.abs(f[2])),M[e++]=s[0],M[e++]=s[1],M[e]=s[2]}return n.setHalfSize(h),M}(e,n,F.ab.fromData(t.obbData),v.A.fromJSON(t.inSR),v.A.fromJSON(t.outSR));return{obbData:t.obbData,points:M,rgb:h,attributes:a,pointIdFilterMap:o}}}const P=(0,a.vt)();function q(){return new _}},59418(t,e,n){n.d(e,{qs:()=>m,wH:()=>b,MA:()=>h,E5:()=>M,m0:()=>g});var r=n(49186),o=n(4718),a=n(53966),u=n(34275),i=n(37203);const l=()=>a.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(t,e,n){let o="",a=0;for(;a<n;){let u=t[e+a];if(u<128)o+=String.fromCharCode(u),a++;else if(u>=192&&u<224){if(a+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");let i=(31&u)<<6|63&t[e+a+1];o+=String.fromCharCode(i),a+=2}else if(u>=224&&u<240){if(a+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let i=(15&u)<<12|(63&t[e+a+1])<<6|63&t[e+a+2];o+=String.fromCharCode(i),a+=3}else{if(!(u>=240&&u<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let i=(7&u)<<18|(63&t[e+a+1])<<12|(63&t[e+a+2])<<6|63&t[e+a+3];if(i>=65536){let t=55296+(i-65536>>10),e=56320+(1023&i);o+=String.fromCharCode(t,e)}else o+=String.fromCharCode(i);a+=4}}}return o}function s(t,e){let n={byteOffset:0,byteCount:0,fields:Object.create(null)},r=0;for(let o=0;o<e.length;o++){let a=e[o],u=a.valueType||a.type,i=w[u];n.fields[a.property]=i(t,r),r+=y[u].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){let o,a=[],u=0,i=0;for(;i<t;i+=1){if(o=e[i],o>0){if(a.push(c(n,u,o-1)),0!==n[u+o-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else a.push(null);u+=o}return a}function h(t,e){return new(0,y[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function M(t,e){if(!t)return null;let n=t[e];return(0,u.IY)(t)?-32768===n?null:n:(0,u._G)(t)?n===u.h2?null:n:n==n?n:null}function d(t,e,n){if(e!==t&&l().error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function b(t,e){let n=s(t,e&&e.header),r=n.byteCount,o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},a=n.fields,u=null==a.vertexCount?a.count:a.vertexCount;for(let t of e.ordering){if(!e.vertexAttributes[t])continue;let n={...e.vertexAttributes[t],byteOffset:r,count:u},a=p[t]||"_"+t;o.vertexAttributes[a]=n,r+=A(n.valueType)*n.valuesPerElement*u}let i=a.faceCount;if(e.faces&&i){o.faces={};for(let t of e.ordering){if(!e.faces[t])continue;let n={...e.faces[t],byteOffset:r,count:i};o.faces[t]=n,r+=A(n.valueType)*n.valuesPerElement*i}}let l=a.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&l){o.featureAttributes={};for(let t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;let n={...e.featureAttributes[t],byteOffset:r,count:l};o.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:A(n.valueType))*n.valuesPerElement*l}}return d(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}function m(t,e){return t&&t.compressedAttributes&&"draco"===t.compressedAttributes.encoding?function(t){let e={isDraco:!0,isLegacy:!1,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let n of t)switch(n){case"position":break;case"normal":e.normal=!0;break;case"uv0":e.uv0=!0;break;case"color":e.color=!0;break;case"uv-region":e.uvRegion=!0;break;case"feature-index":e.featureIndex=!0}return e}(t.compressedAttributes.attributes):t?function(t){return{isDraco:!1,isLegacy:!1,color:null!=t.color,normal:null!=t.normal,uv0:null!=t.uv0,uvRegion:null!=t.uvRegion,featureIndex:null!=t.faceRange&&null!=t.featureId}}(t):function(t){let e={isDraco:!1,isLegacy:!0,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let n of t.ordering)if(t.vertexAttributes[n])switch(n){case"position":break;case"normal":e.normal=!0;break;case"color":e.color=!0;break;case"uv0":e.uv0=!0;break;case"region":e.uvRegion=!0}return t.featureAttributes&&t.featureAttributeOrder&&(e.featureIndex=!0),e}(e)}const p={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function g(t,e,n,a=!1){if("lepcc-rgb"===t.encoding)return a?(0,i.mb)(e):function(t){return Array.isArray(t)?t.length<1024?t:new Uint8Array(t):t.length<1024?Array.from(t):t}((0,i.mb)(e));if("lepcc-intensity"===t.encoding)return a?(0,i.Ax)(e):function(t){return Array.isArray(t)?t.length<1024?t:new Uint16Array(t):t.length<1024?Array.from(t):t}((0,i.Ax)(e));if(null!=t.encoding&&""!==t.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");let u=function(t,e,n){let a=null==e.header?{byteOffset:0,byteCount:0,fields:{count:n}}:s(t,e.header),u={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)},i=a.byteCount;for(let t=0;t<e.ordering.length;t++){let n=e.ordering[t],l=(0,o.o8)(e[n]);if(l.count=a.fields.count??0,"String"===l.valueType){if(l.byteOffset=i,l.byteCount=a.fields[n+"ByteCount"],"UTF-8"!==l.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!v(l.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{let t=A(l.valueType);i+=i%t===0?0:t-i%t,l.byteOffset=i,l.byteCount=t*l.valuesPerElement*l.count}}i+=l.byteCount??0,u.entries[n]=l}return u.byteCount=i-u.byteOffset,u}(e,t,n);d(u.byteOffset+u.byteCount,e.byteLength,"attribute");let c=u.entries.attributeValues||u.entries.objectIds;if(c){if("String"===c.valueType){let t=u.entries.attributeByteCounts,n=h(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,c);return c.timeEncoding?function(t,e,n){return f(t,e,n).map(t=>{let e=t?Date.parse(t):null;return null==e||Number.isNaN(e)?null:e})}(t.count,n,r):f(t.count,n,r)}return a?h(e,c):function(t,e){let n=h(t,e);if(n.length>=1024)return n;let r=[];return n.forEach((t,e)=>r.push(M(n,e))),r}(e,c)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function v(t){return y.hasOwnProperty(t)}function A(t){return v(t)?y[t].BYTES_PER_ELEMENT:0}},37203(t,e,n){n.d(e,{Ax:()=>c,Me:()=>a,mb:()=>l});var r=n(49186);function o(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+0,10)),version:e.getUint16(n+10,!0),checksum:e.getUint32(n+12,!0)}}function a(t){let e=new DataView(t,0),n=0,{identifier:a,version:i}=o(t,e,n);if(n+=16,"LEPCC "!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(i>1)throw new r.A("lepcc-decode-error","Unknown version");let l=(s=n,{sizeLo:(c=e).getUint32(s+0,!0),sizeHi:c.getUint32(s+4,!0),minX:c.getFloat64(s+8,!0),minY:c.getFloat64(s+16,!0),minZ:c.getFloat64(s+24,!0),maxX:c.getFloat64(s+32,!0),maxY:c.getFloat64(s+40,!0),maxZ:c.getFloat64(s+48,!0),errorX:c.getFloat64(s+56,!0),errorY:c.getFloat64(s+64,!0),errorZ:c.getFloat64(s+72,!0),count:c.getUint32(s+80,!0),reserved:c.getUint32(s+84,!0)});var c,s;if(n+=88,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let f=new Float64Array(3*l.count),h=[],M=[],d=[],b=[];if(n=u(t,n,h),n=u(t,n,M),n=u(t,n,d),n=u(t,n,b),n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad length");let m=0,p=0;for(let t=0;t<h.length;t++){p+=h[t];let e=0;for(let n=0;n<M[t];n++){e+=d[m];let t=b[m];f[3*m]=Math.min(l.maxX,l.minX+2*l.errorX*e),f[3*m+1]=Math.min(l.maxY,l.minY+2*l.errorY*p),f[3*m+2]=Math.min(l.maxZ,l.minZ+2*l.errorZ*t),m++}}return{errorX:l.errorX,errorY:l.errorY,errorZ:l.errorZ,result:f}}function u(t,e,n){let r=[];e=i(t,e,r);let o=[];for(let a=0;a<r.length;a++){o.length=0,e=i(t,e,o);for(let t=0;t<o.length;t++)n.push(o[t]+r[a])}return e}function i(t,e,n){let o=new DataView(t,e),a=o.getUint8(0),u=31&a,i=!!(32&a),l=(192&a)>>6,c=0;if(0===l)c=o.getUint32(1,!0),e+=5;else if(1===l)c=o.getUint16(1,!0),e+=3;else{if(2!==l)throw new r.A("lepcc-decode-error","Bad count type");c=o.getUint8(1),e+=2}if(i)throw new r.A("lepcc-decode-error","LUT not implemented");let s=Math.ceil(c*u/8),f=new Uint8Array(t,e,s),h=0,M=0,d=0,b=-1>>>32-u;for(let t=0;t<c;t++){for(;M<u;)h|=f[d]<<M,M+=8,d+=1;n[t]=h&b,h>>>=u,M-=u,M+u>32&&(h|=f[d-1]>>8-M)}return e+d}function l(t){let e=new DataView(t,0),n=0,{identifier:a,version:u}=o(t,e,n);if(n+=16,"ClusterRGB"!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");let i=(c=n,{sizeLo:(l=e).getUint32(c+0,!0),sizeHi:l.getUint32(c+4,!0),count:l.getUint32(c+8,!0),colorMapCount:l.getUint16(c+12,!0),lookupMethod:l.getUint8(c+14),compressionMethod:l.getUint8(c+15)});var l,c;if(n+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===i.lookupMethod||1===i.lookupMethod)&&0===i.compressionMethod){if(3*i.colorMapCount+i.count+n!==t.byteLength||i.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");let e=new Uint8Array(t,n,3*i.colorMapCount),o=new Uint8Array(t,n+3*i.colorMapCount,i.count),a=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++){let n=o[t];a[3*t]=e[3*n],a[3*t+1]=e[3*n+1],a[3*t+2]=e[3*n+2]}return a}if(0===i.lookupMethod&&0===i.compressionMethod){if(3*i.count+n!==t.byteLength||0!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(i.lookupMethod<=2&&1===i.compressionMethod){if(n+3!==t.byteLength||1!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");let o=e.getUint8(n),a=e.getUint8(n+1),u=e.getUint8(n+2),l=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++)l[3*t]=o,l[3*t+1]=a,l[3*t+2]=u;return l}throw new r.A("lepcc-decode-error","Bad method "+i.lookupMethod+","+i.compressionMethod)}function c(t){let e=new DataView(t,0),n=0,{identifier:a,version:u}=o(t,e,n);if(n+=16,"Intensity "!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");let l=(s=n,{sizeLo:(c=e).getUint32(s+0,!0),sizeHi:c.getUint32(s+4,!0),count:c.getUint32(s+8,!0),scaleFactor:c.getUint16(s+12,!0),bitsPerPoint:c.getUint8(s+14),reserved:c.getUint8(s+15)});var c,s;if(n+=16,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let f=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let e=new Uint8Array(t,n,l.count);for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let e=new Uint16Array(t,n,l.count);for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}else{let e=[];if(i(t,n,e)!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}return f}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,8747,9031],{46140(e,t,r){r.d(t,{A:()=>n});var i=r(49186);class n{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new n(this.major,this.minor,this._context)}static parse(e,t=""){let[r,l]=e.split("."),o=/^\s*\d+\s*$/;if(!r?.match||!o.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!l?.match||!o.test(l)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new n(parseInt(r,10),parseInt(l,10),t)}}},83508(e,t,r){r.r(t),r.d(t,{default:()=>be});var i=r(32198),n=r(56507),l=r(7762),o=r(49186),a=r(91869),s=r(25728),u=r(17676),d=r(84952),p=r(91429),c=r(4146),y=r(36563),f=r(66344),h=r(32587),m=r(36708),g=r(44794),v=r(78888),w=r(63074),b=r(25036),C=r(10873),M=r(91880),x=r(1873);let F=class extends((0,b.j)((0,w.dM)((0,s.M)(c.A)))){constructor(e){super(e),this._layerCache=new f.q(20,e=>e.destroy()),this._oidToReference=new h.A,this._layerToReference=new Map,this.legendEnabled=!0,this.layers=new l.A,this.maximumVisibleSublayers=10,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.title="Layers in view",this.type="catalog-dynamic-group",this.visible=!0}initialize(){this.addHandles([this.layers.on("after-add",({item:e})=>{e.parent=this}),this.layers.on("after-remove",({item:e})=>{e.parent=null}),(0,m.wB)(()=>this._orderBy,()=>{this._updateLayerSortValues(),this._sortAllLayers()})])}load(e){return this.addResolvingPromise(this.parent.load()),Promise.resolve(this)}destroy(){this._layerCache.destroy(),this._oidToReference.clear(),this._layerToReference.clear()}get _orderBy(){return this.parent?this.parent.orderBy?.find(e=>!e.valueExpression&&e.field)??new M.A({field:this.parent.objectIdField}):null}get _referenceComparator(){let e=this._orderBy;if(!this.parent||!e)return()=>0;let t=this.parent.fieldsIndex.get(e.field),r=(0,x.FM)(t?.toJSON().type,"descending"===e.order,"case-sensitive"),i=(0,x.FM)("esriFieldTypeOID","descending"===e.order);return(e,t)=>r(t.sortValue,e.sortValue)||i(t.objectId,e.objectId)}get fullExtent(){return this.parent?.fullExtent??null}get updating(){return(0,a.Bs)(this._oidToReference,({pending:e})=>null!=e)}acquireLayer(e){if(this.destroyed)return(0,y.hA)();let t=this._getLayerReference(e);return t.count++,(0,y.hA)(()=>{t.count--,t.count||this._destroyLayerReference(t)})}_getLayerReference(e){let t=e.getObjectId();return(0,a.tE)(this._oidToReference,t,()=>{let t=e.getObjectId(),r=`${t}`,i=e.getAttribute(this.parent.itemSourceField),n=new S(e,t,i),l=this._layerCache.pop(r);return l?(this._addLayer(n,l),n):(n.pending=this.parent.createLayerFromFootprint(e).then(e=>{n.count?this._addLayer(n,e):(!this.destroyed&&!this._layerCache.get(r)&&this._layerCache.put(r,e),n.layer=null)}).catch(()=>{}).finally(()=>{n.pending=null}),n)})}_destroyLayerReference(e){e.layer&&=(this._layerToReference.delete(e.layer),this.layers.remove(e.layer),this.destroyed?e.layer.destroy():this._layerCache.put(`${e.objectId}`,e.layer),null),this._oidToReference.delete(e.objectId)}_addLayer(e,t){e.layer=t,t.persistenceEnabled=!1,this._layerToReference.set(t,e),this._updateLayerSortValue(e),this.layers.add(t),this._sortAllLayers()}_updateLayerSortValues(){for(let e of this._layerToReference.values())this._updateLayerSortValue(e)}_updateLayerSortValue(e){this._orderBy&&(e.sortValue=e.footprint.getAttribute(this._orderBy.field))}_sortAllLayers(){this.layers.sort((e,t)=>this._referenceComparator(this._layerToReference.get(e),this._layerToReference.get(t)))}};(0,i.Cg)([(0,p.MZ)()],F.prototype,"_orderBy",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"_referenceComparator",null),(0,i.Cg)([(0,p.MZ)(C.fV)],F.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{write:!0}})],F.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"fullExtent",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],F.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({type:v.jz,range:{min:0,max:50},json:{write:!0,default:10}})],F.prototype,"maximumVisibleSublayers",void 0),(0,i.Cg)([(0,p.MZ)(C.ke)],F.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],F.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],F.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],F.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"updating",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],F.prototype,"visible",void 0),F=(0,i.Cg)([(0,p.$K)("esri.layers.catalog.CatalogDynamicGroupLayer")],F);class S{constructor(e,t,r){this.footprint=e,this.objectId=t,this.itemSource=r,this.count=0,this.layer=null,this.sortValue=void 0,this._pending=(0,g.v)(null)}get pending(){return this._pending.value}set pending(e){this._pending.value=e}}var Z=r(40124),I=r(4718),T=r(78247),E=r(41910),j=r(55156),L=r(60950),A=r(89808),O=r(99959);const _=Symbol("isCatalogGraphicOrigin");var P;class V extends O.A{get[(P=_,L.ym)](){return this.layer}get[j.e](){return this.layer}get[A.Q](){return this.layer}get[E.e7](){return this.layer}constructor(e){super(),this[P]=!0,this.type="catalog",this.layer=e}get id(){return this.layer.id}}var R=r(87718),D=r(30279),N=r(16194),q=r(30524),z=r(46499),B=r(39383),$=r(96576),k=r(41214),U=r(30291),G=r(94985),K=r(43937);let J=class extends((0,b.j)((0,R.F)((0,w.dM)((0,s.M)(c.A))))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.editingEnabled=!0,this.elevationInfo=null,this.formTemplate=null,this.graphicOrigin=new V(this),this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.title="Footprints",this.type="catalog-footprint",this.visible=!0}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.parent.load(e),(0,q.yp)(this.renderer,this.fieldsIndex),this.addHandles([this.parent.on("apply-edits",e=>this.emit("apply-edits",e)),this.parent.on("edits",e=>this.emit("edits",e)),this.parent.on("refresh",e=>this.emit("refresh",e))])}get apiKey(){return this.parent?.apiKey}get capabilities(){return this.parent?.capabilities}get customParameters(){return this.parent?.customParameters}get dateFieldsTimeZone(){return this.parent?.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this.parent?.datesInUnknownTimezone??!1}get definitionExpression(){return this.parent?.definitionExpression}get editingInfo(){return this.parent?.editingInfo}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get createQueryVersion(){return this.parent?.createQueryVersion}get defaultPopupTemplate(){return this.createPopupTemplate()}get displayField(){return this.parent?.displayField}get displayFilterEnabled(){return this.parent?.displayFilterEnabled??!0}get displayFilterInfo(){return this.parent?.displayFilterInfo??null}get effectiveEditingEnabled(){return!1}set fieldConfigurations(e){if(this._override("fieldConfigurations",e),!this.parent?.loaded)return;let t=(0,N.sS)(this,e);t&&this._set("popupTemplate",t)}get fieldConfigurations(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):(0,N.QX)(this)||null}get fields(){return this.parent?.fields}get fieldsIndex(){return this.parent?.fieldsIndex}get fullExtent(){return this.parent?.fullExtent}get geometryFieldsInfo(){return this.parent?.geometryFieldsInfo}get geometryType(){return this.parent?.geometryType}get globalIdField(){return this.parent?.globalIdField}get hasM(){return this.parent?.hasM??!1}get hasZ(){return this.parent?.hasZ??!1}get objectIdField(){return this.parent?.objectIdField}get orderBy(){return this.parent?.orderBy??null}get outFields(){return this.parent?.outFields}get parsedUrl(){return this.parent?.parsedUrl??null}writePopupTemplate(e,t,r,i){e&&(t[r]=e.toJSON({...i,writeFieldFormat:!0}))}get preferredTimeZone(){return this.parent?.preferredTimeZone??null}set renderer(e){(0,q.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){return this._isOverridden("renderer")?this._get("renderer"):function(){let e=new G.A({style:"solid",color:[0,0,0,0],outline:{style:"solid",color:[96,96,96,.75],width:.75}});return new $.A({symbol:e})}()}get returnM(){return this.parent?.returnM}get returnZ(){return this.parent?.returnZ}get source(){return this.parent?.source}get timeExtent(){return this.parent?.timeExtent}get timeInfo(){return this.parent?.timeInfo}get timeOffset(){return this.parent?.timeOffset}get typeIdField(){return this.parent?.typeIdField}get types(){return this.parent?.types}get useViewTime(){return this.parent?.useViewTime??!0}get version(){return this.parent?.version}async applyEdits(e,t){return await this.load(),this.parent.applyEdits(e,t)}createFieldConfigurations(){return(0,N.xY)(this)}createPopupTemplate(e){let t={fields:this.fields,objectIdField:this.objectIdField,title:this.title};return(0,U.tn)(t,e)}createQuery(){return this.parent?.createQuery()}getField(e){return this.parent?.getField(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}getFieldDomain(e,t){return this.parent?.getFieldDomain(e,t)}async queryExtent(e,t){return await this.load(),this.parent.queryExtent(e,t)}async queryFeatures(e,t){return await this.load(),this.parent.queryFeatures(e,t)}async queryFeatureCount(e,t){return await this.load(),this.parent.queryFeatureCount(e,t)}async queryObjectIds(e,t){return await this.load(),this.parent.queryObjectIds(e,t)}async queryAttributeBins(e,t){return await this.load(),this.parent.queryAttributeBins(e,t)}};(0,i.Cg)([(0,p.MZ)(C.zQ)],J.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"apiKey",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"capabilities",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"customParameters",null),(0,i.Cg)([(0,p.MZ)()],J.prototype,"dateFieldsTimeZone",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"definitionExpression",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"editingInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],J.prototype,"charts",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"displayField",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],J.prototype,"editingEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)((()=>{let e=(0,I.o8)(C.Yj);return e.json.origins["web-map"]={read:!1,write:!1},e})())],J.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:[D.A],json:{name:"layerDefinition.fieldConfigurations",write:{overridePolicy(e,t){return{enabled:!0,ignoreOrigin:this.originIdOf(t)<3}}}}})],J.prototype,"fieldConfigurations",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"fields",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"fieldsIndex",null),(0,i.Cg)([(0,p.MZ)({type:T.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],J.prototype,"formTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"fullExtent",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"geometryFieldsInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"geometryType",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"globalIdField",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],J.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"hasM",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"hasZ",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],J.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:[z.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:B.w,write:!0}})],J.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,p.MZ)(C.kF)],J.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,p.MZ)(C.fV)],J.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide"],json:{write:!0}})],J.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)((()=>{let e=(0,I.o8)(C.hG);return e.json.origins.service.read=!1,e})())],J.prototype,"maxScale",void 0),(0,i.Cg)([(0,p.MZ)((()=>{let e=(0,I.o8)(C.hn);return e.json.origins.service.read=!1,e})())],J.prototype,"minScale",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"objectIdField",null),(0,i.Cg)([(0,p.MZ)(C.ke)],J.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"orderBy",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"outFields",null),(0,i.Cg)([(0,p.MZ)({clonable:!1})],J.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"parsedUrl",null),(0,i.Cg)([(0,p.MZ)(C.M6)],J.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Z.A,json:{name:"popupInfo",write:!0}})],J.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,K.K)("popupTemplate")],J.prototype,"writePopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"preferredTimeZone",null),(0,i.Cg)([(0,p.MZ)({types:k.Hg,json:{origins:{"web-scene":{types:k.XJ}},name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(e,t){return{ignoreOrigin:this.originIdOf(t)<3}}}}})],J.prototype,"renderer",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"returnM",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"returnZ",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"source",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"timeExtent",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"timeInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"timeOffset",null),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],J.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],J.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"typeIdField",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"types",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],J.prototype,"useViewTime",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],J.prototype,"visible",void 0),J=(0,i.Cg)([(0,p.$K)("esri.layers.catalog.CatalogFootprintLayer")],J);var H=r(60845),Q=r(52136),W=r(18768),Y=r(69208),X=r(6455),ee=r(47685),te=r(10086),re=r(34287),ie=r(32756),ne=r(8303),le=r(54310),oe=r(23502),ae=r(82935),se=r(15426),ue=r(33143),de=r(17036),pe=r(91908),ce=r(20655),ye=r(80812),fe=r(39131),he=r(97552);const me=(0,de.p)();function ge(e,t,r,i){let n=e.write({},i);(function(e){if(null==e)return!0;let t=Object.keys(e);return!t.length||1===t.length&&"id"===t[0]})(n)||(t[r]=n)}let ve=class extends((0,oe.Z)((0,X.FJ)((0,te.j)((0,ee.w6)((0,w.dM)((0,ie.fY)((0,ae.e)((0,b.j)((0,le.J)((0,W.b)((0,re.q)((0,ne.A)((0,s.M)((0,Y.d)((0,Q.p)(c.A)))))))))))))))){constructor(e){super(e),this.legendEnabled=!0,this._portals=new Map,this._layerToFootprint=new WeakMap,this.drawOrderField="cd_draworder",this.dynamicGroupLayer=new F({parent:this}),this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.footprintLayer=new J({parent:this}),this.itemNameField="cd_itemname",this.itemSourceField="cd_itemsource",this.itemTypeField="cd_itemtype",this.layers=new l.A([this.dynamicGroupLayer,this.footprintLayer]),this.maxScaleField="cd_maxscale",this.minScaleField="cd_minscale",this.orderBy=null,this.outFields=null,this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Catalog Layer"]),this.source=new H.default({layer:this,supportedSourceTypes:this.supportedSourceTypes}),this.type="catalog",this.typeIdField=null,this.types=null}load(e){let t=null==e?null:e.signal,r=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(u.QP).then(async()=>{let{url:e,source:r}=this;if(!e)throw new o.A("catalog-layer:missing-url","Catalog layer must be created with a url");if(null==this.layerId){let r=await this._fetchFirstValidLayerId(t);if(null==r)throw new o.A("catalog-layer:missing-layerId","There is no Catalog Layer in the service",{service:e});this.layerId=r}await r.load({signal:t}),this._initLayerProperties(),this._verifyFields()}).then(()=>(0,se.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.footprintLayer.destroy(),this.dynamicGroupLayer.destroy();for(let e of this._portals.values())e.destroy();this._portals.clear()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return!1}async applyEdits(e,t){return(0,se.ct)(this,e,t)}async createLayerFromFootprint(e){let t=await this._createLayer(e);return this._configureLayer(t,e),this._layerToFootprint.set(t,e),t}createFootprintFromLayer(e){return this._layerToFootprint.get(e)?.clone()}createQuery(){let e=new he.A;e.returnGeometry=!0,e.outFields=["*"];let{timeOffset:t,timeExtent:r}=this;return e.timeExtent=null!=t&&null!=r?r.offset(-t.value,t.unit):r||null,e.where=this.definitionExpression||"1=1",e}getFeatureType(e){return(0,se.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){let r=t?.feature,i=this.getFeatureType(r);if(i){let t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this.getField(e)?.domain}async reloadFromService(e){await this.source.reload({signal:e}),this._initLayerProperties(),this._verifyFields()}async hasDataChanged(){return(0,se.jp)(this)}async queryFeatures(e,t){let r=await this.load(),i=await r.source.queryFeatures(he.A.from(e)??r.createQuery(),t),n=r.footprintLayer.graphicOrigin;if(i?.features)for(let e of i.features)e.layer=e.sourceLayer=r.footprintLayer,e.origin=n;return i}async queryObjectIds(e,t){return(await this.load()).source.queryObjectIds(he.A.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){return(await this.load()).source.queryFeatureCount(he.A.from(e)??this.createQuery(),t)}async queryExtent(e,t){return(await this.load()).source.queryExtent(he.A.from(e)??this.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,pe.D)(this,e)}read(e,t){if(super.read(e,t),e){let{footprintLayer:r,dynamicGroupLayer:i}=e;r&&this.footprintLayer.read(r,t),i&&this.dynamicGroupLayer.read(i,t)}}async queryAttributeBins(e,t){let{source:i,capabilities:n}=await this.load();(0,se.ZJ)(e,n,"CatalogLayer");let l=await r.e(6956).then(()=>r(14575)),o=await i.queryAttributeBins(l.default.from(e),t);if(o.features)for(let e of o.features)e.layer=e.sourceLayer=this.footprintLayer;return o}_initLayerProperties(){let{portalItem:e,source:t}=this,{sourceJSON:r}=t;r&&(this.sourceJSON=r,this.read(r,{origin:"service",portalItem:e,portal:e?.portal,url:this.parsedUrl}))}_verifyFields(){let e=[this.itemNameField,this.itemSourceField,this.itemTypeField,this.minScaleField,this.maxScaleField],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new o.A("catalog-layer:missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}async _fetchFirstValidLayerId(e){let{data:t}=await(0,n.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(this.applyPreferredHost(t),Array.isArray(t?.layers))return t.layers.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}async _createLayer(e){let t=e.getAttribute(this.itemSourceField);if(!t)throw new o.A("catalog-layer:item-source-missing",`The footprint is missing the "${this.itemSourceField}" attribute`);let i=JSON.parse(t);if(function(e){return"object"==typeof e&&!!e&&"itemId"in e&&"portalUrl"in e}(i)){let e,{itemId:t,portalUrl:r}=i,n=(0,fe.qG)(r),l=this.portalItem?.portal,o=ce.A.getDefault(),s=!0;l&&(0,d.ut)(r,l.url)?e=l:(0,d.ut)(r,o.url)?e=o:(e=(0,a.tE)(this._portals,n,()=>new ce.A({url:n})),s=!1);let u=await c.A.fromPortalItem(new ye.default({id:t,portal:e}));return s||await we(u),u}if(function(e){return"object"==typeof e&&!!e&&"url"in e}(i))return c.A.fromArcGISServerUrl({url:i.url});let{default:n}=await r.e(7546).then(()=>r(45165));return new n}_configureLayer(e,t){let r=t.getAttribute(this.itemNameField);r&&(e.title=r);let i=t.getAttribute(this.maxScaleField);null!=i&&"maxScale"in e&&(e.maxScale=i);let n=t.getAttribute(this.minScaleField);null!=n&&"minScale"in e&&(e.minScale=n)}};async function we(e){if("portalItem"in e&&e.portalItem){try{await e.load()}catch{}e.portalItem=null,"group"===e.type&&await Promise.allSettled([...e.layers.map(e=>we(e)),...e.tables.map(e=>we(e))])}}(0,i.Cg)([(0,p.MZ)(C.fV)],ve.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"drawOrderField",void 0),(0,i.Cg)([(0,p.MZ)({type:F,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:ge}}})],ve.prototype,"dynamicGroupLayer",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"editingEnabled",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.elevationInfo",read:!1,write:!1}}}})],ve.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({...me.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],ve.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(me.fieldsIndex)],ve.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.floorInfo",read:!1,write:!1}}}})],ve.prototype,"floorInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:J,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:ge}}})],ve.prototype,"footprintLayer",void 0),(0,i.Cg)([(0,p.MZ)(C.id)],ve.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"itemNameField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"itemSourceField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"itemTypeField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],ve.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"maxScaleField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"minScaleField",void 0),(0,i.Cg)([(0,p.MZ)({value:"CatalogLayer",type:["CatalogLayer"]})],ve.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.orderBy",write:!0,read:!0}}}})],ve.prototype,"orderBy",void 0),(0,i.Cg)([(0,p.MZ)(me.outFields)],ve.prototype,"outFields",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],ve.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],ve.prototype,"typeIdField",void 0),(0,i.Cg)([(0,p.MZ)({type:[ue.A]})],ve.prototype,"types",void 0),ve=(0,i.Cg)([(0,p.$K)("esri.layers.CatalogLayer")],ve);const be=ve},6455(e,t,r){r.d(t,{FJ:()=>g,Dp:()=>v,KV:()=>w});var i=r(32198),n=r(93637),l=r(91429),o=r(89317),a=r(69540),s=r(7762),u=r(25482),d=r(83960),p=r(13069);const c={write:{overridePolicy:(e,t,r)=>({enabled:!r||"scale"===r.filterMode})}};let y=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.id=(0,p.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:c})],y.prototype,"maxScale",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:c})],y.prototype,"minScale",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"where",void 0),y=(0,i.Cg)([(0,l.$K)("esri.layers.support.DisplayFilter")],y);var f=r(41560),h=r(43937);let m=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(s.A.ofType(y)),this.mode="manual"}writeFilters(e,t,r,i){let n=e.toArray();"scale"===this.mode&&n.sort((e,t)=>{let r=(0,d.oW)(t.minScale,e.minScale),i=e.maxScale-t.maxScale;return 0===r?i:r}),t[r]=n.map(e=>e.toJSON(i))}write(e,t){return super.write(e,(0,f.mW)(this,t))}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:{overridePolicy:(e,t,r)=>({enabled:"manual"===r.filterMode,isRequired:!0})}}})],m.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,l.MZ)({type:s.A.ofType(y),nonNullable:!0,json:{write:!0}})],m.prototype,"filters",void 0),(0,i.Cg)([(0,h.K)("filters")],m.prototype,"writeFilters",null),(0,i.Cg)([(0,l.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],m.prototype,"mode",void 0),m=(0,i.Cg)([(0,l.$K)("esri.layers.support.DisplayFilterInfo")],m);const g=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,i.Cg)([(0,l.MZ)(v)],r.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,l.MZ)(w)],r.prototype,"displayFilterInfo",void 0),r=(0,i.Cg)([(0,l.$K)("esri.layers.mixins.DisplayFilteredLayer")],r),r},v={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:o.K,writer(e,t,r){(0,n.sM)(r,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},w={type:m,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:o.K},origins:{"web-scene":{write:!1,read:!1}}}}},47685(e,t,r){r.d(t,{Mk:()=>y,Zk:()=>p});var i=r(32198),n=r(65529),l=r(4718),o=r(91429),a=r(20816);const s=new n.bk;function u(e){return s.on("apply-edits",new WeakRef(e))}function d(e){return s.on("update-moment",new WeakRef(e))}function p(e,t,r=null,i=!1){let n=Promise.withResolvers();return i=null==t||i,s.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:n.promise}),n}const c=Symbol();function y(e){return"object"==typeof e&&!!e&&c in e}function f(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function h(e,t,r){let i=new URL(e).host,n=a.Z3.get(i),l=e=>!e||e===n;return l(t)&&l(r)||t===r}r.d(t,["w6",0,e=>{var t;let r=e,n=class extends r{static{t=c}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:n,result:o}=e,a=t===this.url,s=null!=r&&null!=this.layerId&&r===this.layerId,u=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),d=f(this),p=f(this)&&h(t,i,this.gdbVersion);if(!a||d&&!p||!s&&!u&&!n)return;let c=o.then(e=>{if(this.lastEditsEventDate=new Date,s&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,l.o8)(e)),e;let r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){let{adds:t,updates:i,deletes:n}=r.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:n?n.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,l.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,l.o8)(e.historicMoment)};return this.emit("edits",o),o}let n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,l.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,l.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,n.historicMoment)&&this.emit("edits",n),n}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));c.catch(()=>{}),this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:r,moment:i}=e,n=t===this.url,l=f(this),o=f(this)&&h(t,r,this.gdbVersion),a=f(this)&&!h(t,this.gdbVersion,null);n&&l&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,a.w5)(e,t)}};return(0,i.Cg)([(0,o.MZ)()],n.prototype,"lastEditsEventDate",void 0),n=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],n),n}])},87718(e,t,r){r.d(t,{F:()=>Z,Y:()=>S});var i,n=r(32198),l=r(91429),o=r(49186),a=r(25482),s=r(93637),u=r(76369),d=r(66552),p=r(4718),c=r(50498),y=r(97552),f=r(79677);const h=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),m=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let g=i=class extends a.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){let{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:l,units:o,distance:a}=this;return new y.A({geometry:(0,p.o8)(r),objectIds:(0,p.o8)(l),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:t,units:o,distance:a,...e})}clone(){let{where:e,geometry:t,spatialRelationship:r,timeExtent:n,objectIds:l,units:o,distance:a}=this;return new i({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(l),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:e,units:o,distance:a})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],g.prototype,"where",void 0),(0,n.Cg)([(0,l.MZ)({types:c.yR,json:{write:!0}})],g.prototype,"geometry",void 0),(0,n.Cg)([(0,l.MZ)({type:h.apiValues,json:{name:"spatialRel",read:{reader:h.read},write:{allowNull:!1,writer:h.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],g.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],g.prototype,"distance",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],g.prototype,"objectIds",void 0),(0,n.Cg)([(0,l.MZ)({type:m.apiValues,json:{read:m.read,write:{writer:m.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],g.prototype,"units",void 0),(0,n.Cg)([(0,l.MZ)({type:f.A,json:{write:!0}})],g.prototype,"timeExtent",void 0),g=i=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureFilter")],g);const v=g;var w;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},M={name:"showExcludedLabels",default:!0};let x=w=class extends a.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){let r=super.write(e,t);if(t?.origin){if(r.filter){let e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new w({filter:null==this.filter?null:this.filter.clone(),includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,l.MZ)({type:v,json:{write:{allowNull:!0,writer(e,t,r,i){let n=e?.write({},i);n&&0!==Object.keys(n).length?(0,s.sM)(r,n,t):(0,s.sM)(r,null,t)}}}})],x.prototype,"filter",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":b,"portal-item":b}}})],x.prototype,"includedEffect",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedLabelsVisible",void 0),x=w=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureEffect")],x);const F={write:{allowNull:!0}},S={type:x,json:{origins:{"web-map":F,"portal-item":F}}},Z=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,l.MZ)(S)],r.prototype,"featureEffect",void 0),r=(0,n.Cg)([(0,l.$K)("esri.layers.mixins.FeatureEffectLayer")],r),r}},32756(e,t,r){r.d(t,{Rr:()=>a});var i=r(32198),n=r(93637),l=r(91429),o=r(91880);function a(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let n=new o.A;return n.read(i,r),[n]}const s={type:[o.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){let l=e.find(e=>!!e.field);l&&(0,n.sM)(r,[l.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,l.MZ)(s)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,l.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,s])},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(69540),l=r(66552),o=r(25482),a=r(91429);const s=new l.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:s.read,write:s.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>p});var i=r(32198),n=r(69540),l=r(25482),o=r(91429),a=r(8631),s=r(29005),u=r(36005),d=r(43937);let p=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],p.prototype,"readDomains",null),(0,i.Cg)([(0,d.K)("domains")],p.prototype,"writeDomains",null),(0,i.Cg)([(0,o.MZ)({type:[s.A],json:{write:!0}})],p.prototype,"templates",void 0),p=(0,i.Cg)([(0,o.$K)("esri.layers.support.FeatureType")],p)},30279(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(69540),l=r(25482),o=r(10107),a=r(64108),s=r(39663);let u=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,i.Cg)([(0,o.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({types:s.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,i.Cg)([(0,a.$)("esri.layers.support.FieldConfiguration")],u)},46499(e,t,r){var i,n,l=r(32198),o=(r(44208),r(66552)),a=r(25482),s=r(4718),u=r(90629),d=r(91429),p=r(90360),c=r(73913),y=r(32730),f=r(77548),h=r(59868),m=r(73838),g=r(33910),v=r(36005),w=r(43937);const b=new o.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function C(e,t,r){return{enabled:!(0,f.TU)(r?.layer)}}function M(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let F=class extends a.o{static{i=y.vK}static{n=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),n=i[3],l=r(t[i[4]],i[5],i[6]);switch(n){case"AND":return e&&l;case"OR":return e||l}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=h.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,y.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&M(i))e=new c.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let n=e.toJSON(i);n.expression&&(t[r]=n)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,y.XJ)(this)}getLabelExpressionArcade(){return(0,y.BI)(this)}getLabelExpressionSingleField(){return(0,y.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new n({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,s.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,s.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,l.Cg)([(0,d.MZ)({type:String,json:{write:!0}})],F.prototype,"name",void 0),(0,l.Cg)([(0,d.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:C}}}}})],F.prototype,"allowOverrun",void 0),(0,l.Cg)([(0,d.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:C}}}}})],F.prototype,"deconflictionStrategy",void 0),(0,l.Cg)([(0,d.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],F.prototype,"labelExpression",void 0),(0,l.Cg)([(0,v.w)("labelExpression")],F.prototype,"readLabelExpression",null),(0,l.Cg)([(0,w.K)("labelExpression")],F.prototype,"writeLabelExpression",null),(0,l.Cg)([(0,d.MZ)({type:c.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return M(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],F.prototype,"labelExpressionInfo",void 0),(0,l.Cg)([(0,w.K)("labelExpressionInfo")],F.prototype,"writeLabelExpressionInfo",null),(0,l.Cg)([(0,d.MZ)({type:b.apiValues,json:{type:b.jsonValues,read:b.read,write:b.write}})],F.prototype,"labelPlacement",void 0),(0,l.Cg)([(0,d.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],F.prototype,"offsetDistance",void 0),(0,l.Cg)([(0,d.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],F.prototype,"labelPosition",void 0),(0,l.Cg)([(0,d.MZ)({type:Number})],F.prototype,"maxScale",void 0),(0,l.Cg)([(0,w.K)("maxScale")],F.prototype,"writeMaxScale",null),(0,l.Cg)([(0,d.MZ)({type:Number})],F.prototype,"minScale",void 0),(0,l.Cg)([(0,w.K)("minScale")],F.prototype,"writeMinScale",null),(0,l.Cg)([(0,d.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],F.prototype,"repeatLabel",void 0),(0,l.Cg)([(0,d.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],F.prototype,"repeatLabelDistance",null),(0,l.Cg)([(0,d.MZ)({types:g.em,json:{types:g.em,origins:{"portal-item":{types:g.em,read:{reader:(0,p.C)({types:g.em})},default:null},"web-scene":{types:g.Rv,read:{reader:(0,p.C)({types:g.Rv})},write:m.oO,default:null}},write:m.oO,default:null}})],F.prototype,"symbol",void 0),(0,l.Cg)([(0,d.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"useCodedValues",void 0),(0,l.Cg)([(0,d.MZ)({type:String,json:{write:!0}})],F.prototype,"where",void 0),F=n=(0,l.Cg)([(0,d.$K)("esri.layers.support.LabelClass")],F);const S=F;r.d(t,["A",0,S])},73913(e,t,r){var i,n=r(32198),l=r(25482),o=r(91429),a=r(32730),s=r(36005),u=r(43937);let d=class extends l.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],d.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],d.prototype,"expression",void 0),(0,n.Cg)([(0,s.w)("expression",["expression","value"])],d.prototype,"readExpression",null),(0,n.Cg)([(0,u.K)("expression")],d.prototype,"writeExpression",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],d.prototype,"title",void 0),(0,n.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],d.prototype,"value",void 0),d=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.LabelExpressionInfo")],d);const p=d;r.d(t,["A",0,p])},91880(e,t,r){r.d(t,{A:()=>u});var i,n=r(32198),l=r(66552),o=r(25482),a=r(91429);const s=new l.J({asc:"ascending",desc:"descending"});let u=class extends o.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,a.MZ)({type:s.apiValues,json:{type:s.jsonValues,read:s.read,write:s.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},41560(e,t,r){r.d(t,{Ch:()=>o,mW:()=>l});var i=r(34727),n=r(39516);function l(e,t){return{...t,filterMode:e.mode}}function o(e,t,r){let l=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],d(r)),t[1]=Math.min(t[1],p(i));return t}(e);if(l&&((0,i.gg)(t,l[0])||(0,i.ZH)(r,l[1])))return"";let o=Array.from(a(e,t,r)),s=function(e,t,r){if(0===e.length)return!0;let n=d(e.at(0)?.minScale),l=p(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(l,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],n=e[t+1];if((0,i.ZH)(d(n.minScale),p(r.maxScale)))return!0}return!1}(o,t,r)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return s&&"1=1"!==s?s:""}function*a(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)s(i.minScale,i.maxScale,t,r)&&(yield i)}}function s(e,t,r,n){return e=d(e),r=d(r),t=p(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function d(e){return e||1/0}function p(e){return e||0}},16194(e,t,r){r.d(t,{QX:()=>s,sS:()=>d,xY:()=>u});var i=r(4718),n=r(30279),l=r(39663),o=r(30524),a=r(41227);function s(e){let{popupTemplate:t,fieldsIndex:r}=e,i=t?.fieldInfos;if(!i?.length||!r)return;let o=[];for(let e of i){let{fieldName:t,label:i}=e,a=r.get(t);if(!a)continue;let s=i&&i!==a.alias?i:null,u=(0,l.iu)(e,a);(s||u)&&o.push(new n.A({name:a.name,alias:s,fieldFormat:u}))}return o.length?o:null}function u(e){let{fields:t}=e;if(!t?.length)return;let r=[];for(let e of t){let t=(0,l.qH)(e)?(0,l.$P)(e):null;t&&r.push(new n.A({name:e.name,fieldFormat:t}))}return r.length?r:null}function d(e,t){let{popupTemplate:r,fieldsIndex:n}=e;if(!r||!n)return;let o=function(e,t,r){t??=[],r=(0,i.o8)(r)??[];let n=!1,o=new Map;for(let r of t){let t=e.fieldsIndex.get(r.name);t&&o.set(t.name,r)}for(let t of r){let r=e.fieldsIndex.get(t.fieldName);if(!r)continue;let i=o.get(r.name);t.label=i?.alias||r.alias,t.format=(0,l.qH)(r)&&i?.fieldFormat?(0,l.PK)(i.fieldFormat,r):null,n=!0,o.delete(r.name)}for(let t of o.values()){let i=p(e,t);i&&(r.push(i),n=!0)}return n?r:null}(e,t,r.fieldInfos);if(!o)return;let a=r.clone();return a.fieldInfos=o,a}function p(e,t){let{name:r,alias:i,fieldFormat:n}=t,s=e.fieldsIndex.get(r);if(!s||!i&&!n)return;let u=i||s.alias,d=(0,l.qH)(s)&&n?(0,l.PK)(n,s):null;return new a.A({fieldName:s.name,label:u,format:d,visible:!1,isEditable:(0,o.R$)(s,e)})}},39383(e,t,r){r.d(t,{w:()=>s,z:()=>p});var i=r(49186),n=r(53966),l=r(46499);const o=()=>n.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function s(e,t,r){return e?e.map(e=>{let i=new l.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],d={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function p(e,t){let r=[];for(let n of e){let e=n.labelPlacement,l=d[t];if(!n.symbol)return o().warn("No ILabelClass symbol specified."),[];if(!l)return o().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(l.includes(e))r.push(n);else{let i=l[0];e&&o().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let a=n.clone();a.labelPlacement=i,r.push(a)}}return r}},36003(e,t,r){function i(e,t){let r=e.startField===t.startField||!e.startField&&!t.startField,i=e.endField===t.endField||!e.endField&&!t.endField;return r&&i}r.d(t,{L:()=>i})},73681(e,t,r){r.d(t,{n:()=>s});var i=r(49186),n=r(53966),l=r(46140),o=r(95466),a=r(55674);class s{static async from(e,t,r){let o=e.dictionary_version?l.A.parse(e.dictionary_version):null,d=new Set(e.itemsNames),p={};if(t)for(let e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);let c=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))c.delete(e);c.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});let y=await(0,a.xR)(e.expression,null,p);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let f=!o||!o.greaterEqual(4,0);f&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});let h=new u(r,f);return new s(f,d,y,h)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},96520(e,t,r){r.d(t,{u:()=>s});var i=r(86211),n=r(21325),l=r(52006);function o(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e)t.length>2&&(t[2]*=r)}function a(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e){let e=(0,l.yP)(t);e.length>2&&(e[2]*=r)}}function s(e,t,r){if(!e&&!t||!r)return;let n=(0,i.G9)(r);u(e,r,n),u(t,r,n)}function u(e,t,r){if(e)for(let i of e)d(i.geometry,t,r)}function d(e,t,r){if(!e?.spatialReference||(0,n.aI)(e.spatialReference,t))return;let l=(0,i.G9)(e.spatialReference)/r;if(1!==l)if("x"in e)null!=e.z&&(e.z*=l);else if("curveRings"in e)a(e,e.curveRings,l);else if("curvePaths"in e)a(e,e.curvePaths,l);else if("rings"in e)o(e,e.rings,l);else if("paths"in e)o(e,e.paths,l);else if("points"in e&&(null==e.hasM||e.hasZ))for(let t of e.points)t.length>2&&(t[2]*=l)}},9760(e,t,r){r.d(t,{A:()=>d});var i=r(32198),n=r(66552),l=r(25482),o=r(91429),a=r(93223);const s=new n.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new n.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let d=class extends l.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,i.Cg)([(0,a.e)({classBreaksDef:"class-breaks-definition"})],d.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"breakCount",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"classificationField",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{read:s.read,write:s.write}})],d.prototype,"classificationMethod",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"normalizationType",void 0),(0,i.Cg)([(0,o.MZ)({value:null,json:{write:!0}})],d.prototype,"standardDeviationInterval",null),(0,i.Cg)([(0,o.MZ)({value:null,json:{write:!0}})],d.prototype,"definedInterval",null),d=(0,i.Cg)([(0,o.$K)("esri.rest.support.ClassBreaksDefinition")],d)},22671(e,t,r){r.d(t,{A:()=>v});var i,n=r(32198),l=r(52106),o=r(66552),a=r(25482),s=r(4718),u=r(91429),d=r(16930),p=r(60408),c=r(65864),y=r(50498),f=r(20437),h=r(36005),m=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);let{features:n}=this;if(n)for(let e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,c.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=d.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,s.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,n]}=e,l=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=l.length;e<t;e++)o?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,n],scale:[l,o]}=r,a=null,s=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;s=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+i,e=>n-e*o,a,s);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=d.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){let l=e[t],o=r.fromJSON(l),a=l.geometry?.spatialReference;null!=o.geometry&&!a&&(o.geometry.spatialReference=i);let s=l.aggregateGeometries,u=o.aggregateGeometries;if(s&&null!=u)for(let e in u){let t=u[e],r=s[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}n.push(o)}return n}_quantizePoints(e,t,r){let i,n,l=[];for(let o=0,a=e.length;o<a;o++){let a=e[o];if(o>0){let e=t(a[0]),o=r(a[1]);(e!==i||o!==n)&&(l.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),l.push([i,n])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,p.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,l=i.length;e<l;e++){let l=i[e],o=this._quantizePoints(l,t,r);o&&n.push(o)}return n.length>0?((0,p.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,o,a=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,i=a.length;e<i;e++){let i=a[e];for(let e=0,n=i.length;e<n;e++){let n=i[e];e>0?(l+=n[0],o+=n[1]):(l=n[0],o=n[1]),n[0]=t(l),n[1]=r(o)}}if(i&&n)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{let l,o,a=e.points;for(let e=0,i=a.length;e<i;e++){let i=a[e];e>0?(l+=i[0],o+=i[1]):(l=i[0],o=i[1]),i[0]=t(l),i[1]=r(o)}if(i&&n)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=i(t[2])}else if(n)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[l.A],json:{write:!0}})],v.prototype,"features",void 0),(0,n.Cg)([(0,h.w)("features")],v.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[f.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,h.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:d.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},84892(e,t,r){r.d(t,{t:()=>l});var i=r(53966);function n(e,t){return Number(e.toFixed(t))}function l(e,t){let{normalizationTotal:r}=e;return{classBreaks:o(e,t),normalizationTotal:r}}function o(e,t){let r=e.definition,{classificationMethod:i,normalizationType:l,definedInterval:o}=r,u=r.breakCount??1,d=[],p=e.values;if(0===p.length)return[];p=p.sort((e,t)=>e-t);let[c,y]=t??[p.at(0),p.at(-1)];if("equal-interval"===i)if(p.length>=u){let e=(y-c)/u,t=c;for(let r=1;r<u;r++){let i=n(c+r*e,6);d.push({minValue:t,maxValue:i,label:a(t,i,l)}),t=i}d.push({minValue:t,maxValue:y,label:a(t,y,l)})}else p.forEach(e=>{d.push({minValue:e,maxValue:e,label:a(e,e,l)})});else if("natural-breaks"===i){let t=function(e){let t=[],r=[],i=Number.MIN_VALUE,n=1,l=-1;for(let o=0;o<e.length;o++){let a=e[o];a===i?(n++,r[l]=n):null!==a&&(t.push(a),i=a,n=1,r.push(n),l++)}return{uniqueValues:t,valueFrequency:r}}(p),r=e.valueFrequency||t.valueFrequency,i=s(t.uniqueValues,r,u),o=c;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){let r=n(t.uniqueValues[i[e]],6);d.push({minValue:o,maxValue:r,label:a(o,r,l)}),o=r}d.push({minValue:o,maxValue:y,label:a(o,y,l)})}else if("quantile"===i)if(p.length>=u&&c!==y){let e=c,t=Math.ceil(p.length/u),r=0;for(let i=1;i<u;i++){let n=t+r-1;n>p.length&&(n=p.length-1),n<0&&(n=0),d.push({minValue:e,maxValue:p[n],label:a(e,p[n],l)}),e=p[n],r+=t,t=Math.ceil((p.length-r)/(u-i))}d.push({minValue:e,maxValue:y,label:a(e,y,l)})}else{let e=-1;for(let t=0;t<p.length;t++){let r=p[t];r!==e&&(e=r,d.push({minValue:e,maxValue:r,label:a(e,r,l)}),e=r)}}else if("standard-deviation"===i){let e=function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/=e.length,t}(p),t=function(e,t){let r=0;for(let i=0;i<e.length;i++){let n=e[i];r+=(n-t)*(n-t)}return r/=e.length,Math.sqrt(r)}(p,e);if(0===t)d.push({minValue:p[0],maxValue:p[0],label:a(p[0],p[0],l)});else{let r=function(e,t,r,i,n){let l=Math.max(i-e,t-i)/n/r;return l=l>=1?1:l>=.5?.5:.25,l}(c,y,u,e,t)*t,i=0,o=c;for(let t=u;t>=1;t--){let s=n(e-(t-.5)*r,6);d.push({minValue:o,maxValue:s,label:a(o,s,l)}),o=s,i++}let s=n(e+.5*r,6);d.push({minValue:o,maxValue:s,label:a(o,s,l)}),o=s,i++;for(let t=1;t<=u;t++)s=i===2*u?y:n(e+(t+.5)*r,6),d.push({minValue:o,maxValue:s,label:a(o,s,l)}),o=s,i++}}else if("defined-interval"===i){if(!o)return d;let[e,r]=t??[p.at(0),p.at(-1)],i=Math.ceil((r-e)/o),s=e;for(let t=1;t<i;t++){let r=n(e+t*o,6);d.push({minValue:s,maxValue:r,label:a(s,r,l)}),s=r}d.push({minValue:s,maxValue:r,label:a(s,r,l)})}return d}function a(e,t,r){let i=null;return i=e===t?r&&"percent-of-total"===r?e+"%":e.toString():r&&"percent-of-total"===r?e+"% - "+t+"%":e+" - "+t,i}function s(e,t,r){let i=e.length,n=[];r>i&&(r=i);for(let e=0;e<r;e++)n.push(Math.round(e*i/r-1));n.push(i-1);let l=u(n,e,t,r);return function(e,t,r,i,n,l){let o=0,a=0,s=0,u=0,p=!0;for(let c=0;c<2&&p;c++){0===c&&(p=!1);for(let c=0;c<l-1;c++)for(;r[c+1]+1!==r[c+2];){r[c+1]=r[c+1]+1;let l=d(c,r,i,n);s=l.sbMean,o=l.sbSdcm;let y=d(c+1,r,i,n);if(u=y.sbMean,a=y.sbSdcm,!(o+a<t[c]+t[c+1])){r[c+1]=r[c+1]-1;break}t[c]=o,t[c+1]=a,e[c]=s,e[c+1]=u,p=!0}for(let c=l-1;c>0;c--)for(;r[c]!==r[c-1]+1;){r[c]=r[c]-1;let l=d(c-1,r,i,n);s=l.sbMean,o=l.sbSdcm;let y=d(c,r,i,n);if(u=y.sbMean,a=y.sbSdcm,!(o+a<t[c-1]+t[c])){r[c]=r[c]+1;break}t[c-1]=o,t[c]=a,e[c-1]=s,e[c]=u,p=!0}}return p}(l.mean,l.sdcm,n,e,t,r)&&(l=u(n,e,t,r)),n}function u(e,t,r,i){let n=[],l=[],o=[],a=0,s=[],u=[];for(let n=0;n<i;n++){let i=d(n,e,t,r);s.push(i.sbMean),u.push(i.sbSdcm),a+=u[n]}let p,c=a,y=!0;for(;y||a<c;){y=!1,n=[];for(let t=0;t<i;t++)n.push(e[t]);for(let r=0;r<i;r++)for(let n=e[r]+1;n<=e[r+1];n++)if(p=t[n],r>0&&n!==e[r+1]&&Math.abs(p-s[r])>Math.abs(p-s[r-1]))e[r]=n;else if(r<i-1&&e[r]!==n-1&&Math.abs(p-s[r])>Math.abs(p-s[r+1])){e[r+1]=n-1;break}c=a,a=0,l=[],o=[];for(let n=0;n<i;n++){l.push(s[n]),o.push(u[n]);let i=d(n,e,t,r);s[n]=i.sbMean,u[n]=i.sbSdcm,a+=u[n]}}if(a>c){for(let t=0;t<i;t++)e[t]=n[t],s[t]=l[t],u[t]=o[t];a=c}return{mean:s,sdcm:u}}function d(e,t,r,n){let l=0,o=0;for(let i=t[e]+1;i<=t[e+1];i++){let e=n[i];l+=r[i]*e,o+=e}o<=0&&i.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");let a=l/o,s=0;for(let i=t[e]+1;i<=t[e+1];i++)s+=n[i]*(r[i]-a)**2;return{sbMean:a,sbSdcm:s}}},2991(e,t,r){r.d(t,{G9:()=>u,RZ:()=>s});var i=r(39516);const n="=",l=">=",o="<=";function a(e,t,r,n){let l=n.get(e)?.type,o=n.getTimeZone(e);return`${(0,i.iA)(e)} ${t} ${(0,i.YG)(r,{type:"date"},{type:l,timeZone:o})}`}function s(e,t,r,s){if(!t||!r)return;let{startField:u,endField:d}=t,{start:p,end:c}=e;if(!p&&!c||!u&&!d)return;let y=u??d,f=d??u;if(y&&f){if(p&&c){if(p.getTime()===c.getTime())return(0,i.mA)(s,a(y,n,p,r));if(!u||!d){let e=a(y,l,p,r),t=a(y,o,c,r);return(0,i.mA)(s,(0,i.mA)(e,t))}let e=a(u,l,p,r),t=a(d,o,c,r);return(0,i.mA)(s,(0,i.mA)(e,t))}if(p)return(0,i.mA)(s,a(y,l,p,r));if(c)return(0,i.mA)(s,a(f,o,c,r))}}function u(e){let{start:t,end:r}=e;if(t||r){if(!t&&r)return`null,${r.getTime()}`;if(!r&&t)return`${t.getTime()},null`;if(r&&t)return t.getTime()===r.getTime()?`${t.getTime()}`:`${t.getTime()},${r.getTime()}`}}},1873(e,t,r){r.d(t,{$y:()=>_,Ak:()=>V,FM:()=>f,G_:()=>c,Rw:()=>A,Vb:()=>d,b3:()=>T,gJ:()=>u,jM:()=>O,lv:()=>j,oZ:()=>I,qg:()=>y,sU:()=>P,z9:()=>p,zS:()=>L});var i=r(9760),n=r(84892);const l=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,o=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),a=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),s=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function d(e){let t=null!=e.normalizationField||null!=e.normalizationType,r=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!r&&!i}function p(e){let{outStatisticTypes:t}=e,r=e.returnDistinct?[...new Set(e.values)]:e.values,i=r.filter(e=>null!=e).sort(),n=i.length,l={count:n,min:i[0],max:i[n-1]};return e.supportsNullCount&&(l.nullcount=r.length-n),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(l.median=y(r,e.percentileParams)),l}function c(e){let{values:t,useSampleStdDev:r,supportsNullCount:i,outStatisticTypes:n}=e,l=1/0,o=-1/0,a=null,s=null,u=null,d=null,p=0,c=null==e.minValue?-1/0:e.minValue,f=null==e.maxValue?1/0:e.maxValue;for(let e of t)Number.isFinite(e)?e>=c&&e<=f&&(a=null===a?e:a+e,l=Math.min(l,e),o=Math.max(o,e),p++):"string"==typeof e&&p++;if(p&&null!=a){s=a/p;let e=0;for(let r of t)Number.isFinite(r)&&r>=c&&r<=f&&(e+=(r-s)**2);d=r?p>1?e/(p-1):0:p>0?e/p:0,u=Math.sqrt(d)}else l=null,o=null;let h={avg:s,count:p,max:o,min:l,stddev:u,sum:a,variance:d};return i&&(h.nullcount=t.length-p),!e.percentileParams||n?.include?.length&&!n.include.includes("median")||n?.exclude?.length&&n.exclude.includes("median")||(h.median=y(t,e.percentileParams)),h}function y(e,t){let{fieldType:r,value:i,orderBy:n,isDiscrete:l}=t,o=f(r,"desc"===n,"case-insensitive");if(e=[...e].filter(e=>null!=e).sort((e,t)=>o(e,t)),0===e.length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];let a=(e.length-1)*i,s=Math.floor(a),u=s+1,d=a%1,p=e[s],c=e[u];return u>=e.length||l||"string"==typeof p||"string"==typeof c?p:p*(1-d)+c*d}function f(e,t,r="case-sensitive"){if(e){if(o.has(e))return S(t);if(a.has(e))return M(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?w:v}(t);let i=M(t,"case-sensitive"===r);if("esriFieldTypeString"===e)return i;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>i(Z(e),Z(t))}let i=t?1:-1,n=S(t),l=M(t,"case-sensitive"===r),s=g(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?n(e,t):"string"==typeof e&&"string"==typeof t?l(e,t):s(e,t)??i}const h=(e,t)=>null==e?null==t?0:1:null==t?-1:null,m=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function g(e){return e?h:m}const v=(e,t)=>m(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),w=(e,t)=>h(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),b=(e,t)=>m(e,t)??(e===t?0:e<t?-1:1),C=(e,t)=>h(e,t)??(e===t?0:e<t?1:-1);function M(e,t){if(t)return e?C:b;let r=g(e);return e?(e,t)=>r(e,t)??((e=e.toUpperCase())>(t=t.toUpperCase())?-1:+(e<t)):(e,t)=>r(e,t)??((e=e.toUpperCase())<(t=t.toUpperCase())?-1:+(e>t))}const x=(e,t)=>h(e,t)??t-e,F=(e,t)=>m(e,t)??e-t;function S(e){return e?x:F}function Z(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function I(e,t,r){let i;for(i in e)t?.include?.length&&!t.include.includes(i)||t?.exclude?.length&&t.exclude.includes(i)?delete e[i]:s.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return r&&["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e}function T(e){let t={};for(let r of e)(null==r||"string"==typeof r&&""===r.trim())&&(r=null),null==t[r]?t[r]={count:1,data:r}:t[r].count++;return{count:t}}function E(e){return"coded-value"===e?.type?e.codedValues.map(e=>e.code):[]}function j(e,t,r,i){let n=e.count,l=[];if(r&&t){let e=[],r=E(t[0]);for(let n of r)if(t[1]){let r=E(t[1]);for(let l of r)if(t[2]){let r=E(t[2]);for(let t of r)e.push(`${u(n)}${i}${u(l)}${i}${u(t)}`)}else e.push(`${u(n)}${i}${u(l)}`)}else e.push(n);for(let t of e)n.hasOwnProperty(t)||(n[t]={data:t,count:0})}for(let e in n){let t=n[e];l.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:l}}function L(e,t,r,i){let n=null;switch(t){case"log":0!==e&&(n=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(n=e/i*100);break;case"field":Number.isFinite(r)&&0!==r&&(n=e/r);break;case"natural-log":e>0&&(n=Math.log(e));break;case"square-root":e>0&&(n=e**.5)}return n}function A(e,t,r){let l=function(e){let{breakCount:t,field:r,normalizationField:n,normalizationType:l}=e,o=e.classificationMethod||"equal-interval",a="standard-deviation"===o?e.standardDeviationInterval||1:void 0,s="defined-interval"===o?e.definedInterval:void 0;return new i.A({breakCount:t,classificationField:r,classificationMethod:o,normalizationField:"field"===l?n:void 0,normalizationType:l,standardDeviationInterval:a,definedInterval:s})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,r){let i=t??-1/0,n=r??1/0;return e.filter(e=>Number.isFinite(e)&&e>=i&&e<=n)}(e,t.minValue,t.maxValue),(0,n.t)({definition:l,values:e,normalizationTotal:t.normalizationTotal},r)}function O(e,t){let r=e.classBreaks,i=r.length,n=r[0]?.minValue,o=r[i-1]?.maxValue,a="standard-deviation"===t,s=l;return r=r.map(e=>{let t=e.label,r={minValue:e.minValue,maxValue:e.maxValue,label:t};if(a&&t){let e=t.match(s)?.map(e=>+e.trim())??[];2===e.length?(r.minStdDev=e[0],r.maxStdDev=e[1],e[0]<0&&e[1]>0&&(r.hasAvg=!0)):1===e.length&&(t.includes("<")?(r.minStdDev=null,r.maxStdDev=e[0]):t.includes(">")&&(r.minStdDev=e[0],r.maxStdDev=null))}return r}),{minValue:n,maxValue:o,classBreakInfos:r,normalizationTotal:e.normalizationTotal}}function _(e,t){let r=P(e,t);if(null==r.min&&null==r.max)return{bins:[],minValue:r.min,maxValue:r.max,normalizationTotal:t.normalizationTotal};let i=r.intervals,n=r.min??0,l=r.max??0,o=i.map((e,t)=>({minValue:i[t][0],maxValue:i[t][1],count:0}));for(let t of e)if(null!=t&&t>=n&&t<=l){let e=V(i,t);e>-1&&o[e].count++}return{bins:o,minValue:n,maxValue:l,normalizationTotal:t.normalizationTotal}}function P(e,t,r=!1){let{field:i,classificationMethod:n,standardDeviationInterval:l,definedInterval:o,normalizationType:a,normalizationField:s,normalizationTotal:u,minValue:p,maxValue:y}=t,f=t.numBins||10,h=null,m=null,g=null;if(n&&"equal-interval"!==n||a){let{classBreaks:t}=A(e,{field:i,normalizationType:a,normalizationField:s,normalizationTotal:u,classificationMethod:n,standardDeviationInterval:l,definedInterval:o,minValue:p,maxValue:y,numClasses:f},null!=p&&null!=y?[p,y]:void 0);h=t[0]?.minValue,m=t[t.length-1]?.maxValue,g=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=p&&null!=y)h=p,m=y;else{let t=c({values:e,minValue:p,maxValue:y,useSampleStdDev:!a,supportsNullCount:d({normalizationType:a,normalizationField:s,minValue:p,maxValue:y})});h=t.min??null,m=t.max??null}g=function(e,t,r){let i,n=(t-e)/r,l=[],o=e;for(let e=1;e<=r;e++)i=o+n,i=Number(i.toFixed(16)),l.push([o,e===r?t:i]),o=i;return l}(h??0,m??0,f)}if(r&&g.length){let e=g.at(-1)[1];g.push([e,e])}return{min:h,max:m,intervals:g}}function V(e,t){let r=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){r=i;break}return r}},20816(e,t,r){r.d(t,{We:()=>a,ZJ:()=>s,w5:()=>u});var i=r(56507);const n=(0,r(13069).vD)(),l=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;let n=new URL(e).host,o=l.get(n);if(!o){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function s(e,t,i=!1){if(!e||!t)return!0;let l=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(l)?.entries();if(a)for(let[e,o]of a)if(o.name===t){let t=!o.stack?.hasForwardEdits();if(!t&&i){let[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(()=>r(32186)),r.e(2558).then(()=>r(32558))]),a=await t(l,e,new i({sessionId:n,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function u(e,t){if(!e)return!1;let r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(let[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,n,"Z3",0,l])}}]);