@arcgis/core 5.0.0-next.14 → 5.0.0-next.16

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 (366) hide show
  1. package/PopupTemplate.js +1 -1
  2. package/applications/Components/QuantityFormatter.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/{5299ec59c86022ca37e2.js → 080268f78436a2f0d996.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{a6ee40dfc471d6612f3c.js → 1585298168c200d65c2f.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{34bb4852ebef0f529c96.js → 1a98e35837c6279fd8ee.js} +1 -1
  7. package/assets/esri/core/workers/chunks/5608e1eeec887295dc7c.js +1 -0
  8. package/assets/esri/core/workers/chunks/57262321c51096ef885f.js +1 -0
  9. package/assets/esri/core/workers/chunks/58d891779f04b6d12fc0.js +1 -0
  10. package/assets/esri/core/workers/chunks/{7c14f99e6cfff2a8ef4a.js → 5a7bb13ccb9188f90dfd.js} +1 -1
  11. package/assets/esri/core/workers/chunks/607beb12592f99871bf9.js +1 -0
  12. package/assets/esri/core/workers/chunks/71d9e9b0a7f8c0edd32d.js +1 -0
  13. package/assets/esri/core/workers/chunks/{8be16b03caa947ac7631.js → 79326e3ebd5081046f79.js} +1 -1
  14. package/assets/esri/core/workers/chunks/7c08c0824ad354177787.js +1 -0
  15. package/assets/esri/core/workers/chunks/{54c49a768147720c3c56.js → 8208dfa8f7fae7e616b9.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{d7755c4c8d1d3059efca.js → 847f4fc39100fac1df01.js} +1 -1
  17. package/assets/esri/core/workers/chunks/8b73db0f4d6714396eb0.js +1 -0
  18. package/assets/esri/core/workers/chunks/{9cdd087c43a601ec331d.js → 9a7f7de06dbc37661ffb.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{55adbd7481f8dfb1067e.js → a174c9f6bc687349e563.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{38fa50336983265c73a4.js → bc318b6fef192cee2a72.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{57806a01f33074b601e7.js → cdb4664fd59860ddeb5a.js} +1 -1
  22. package/assets/esri/core/workers/chunks/d98203c932a60f9f809d.js +1 -0
  23. package/assets/esri/core/workers/chunks/{5e08b19e6d7202ea38d7.js → db900e8949cc75e72b18.js} +1 -1
  24. package/assets/esri/core/workers/chunks/de831a9cb542a09db5c3.js +1 -0
  25. package/assets/esri/core/workers/chunks/{2166238a7ad63a2d43c7.js → e05ce6f91ca59e34da7c.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{f28ffda9a95c6568503d.js → e07dda45281439e6582e.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{d888ae5ac1810a486919.js → ff8752dbcb014ea66806.js} +1 -1
  28. package/chunks/GaussianSplat.glsl.js +2 -2
  29. package/config.js +1 -1
  30. package/copyright.txt +0 -60
  31. package/core/SetUtils.js +1 -1
  32. package/core/accessorSupport/ensureType.js +1 -1
  33. package/core/accessorSupport/extensions/serializableProperty/reader.js +1 -1
  34. package/core/workers/workerFactory.js +1 -1
  35. package/identity/IdentityModal.js +1 -1
  36. package/interfaces.d.ts +107 -11
  37. package/intl.js +1 -1
  38. package/kernel.js +1 -1
  39. package/layers/ImageryTileLayer.js +1 -1
  40. package/layers/ParquetLayer.js +1 -1
  41. package/layers/graphics/sources/ParquetSource.js +1 -1
  42. package/layers/graphics/sources/support/QueryTask.js +1 -1
  43. package/layers/mixins/ArcGISImageService.js +1 -1
  44. package/layers/mixins/ImageryTileMixin.js +1 -1
  45. package/layers/support/NumberFieldFormat.js +1 -1
  46. package/layers/support/Sublayer.js +1 -1
  47. package/layers/support/SubtypeSublayer.js +1 -1
  48. package/layers/support/featureLayerUtils.js +1 -1
  49. package/layers/support/fieldUtils.js +1 -1
  50. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  51. package/layers/support/rasterFunctionUtils.js +1 -1
  52. package/package.json +1 -1
  53. package/popup/content.js +1 -1
  54. package/portal/schemas/definitions.js +1 -1
  55. package/renderers/support/numberUtils.js +1 -1
  56. package/rest/geometryService.js +1 -1
  57. package/rest/geoprocessor.js +1 -1
  58. package/rest/imageService.js +1 -1
  59. package/rest/locator.js +1 -1
  60. package/rest/query.js +1 -1
  61. package/smartMapping/labels/bins.js +1 -1
  62. package/smartMapping/popup/support/clusterUtils.js +1 -1
  63. package/smartMapping/popup/support/utils.js +1 -1
  64. package/smartMapping/renderers/support/utils.js +1 -1
  65. package/support/BasemapStyle.js +1 -1
  66. package/support/actions/actionUtils.js +1 -1
  67. package/support/revision.js +1 -1
  68. package/symbols/support/svgUtils.js +1 -1
  69. package/tables/elements.js +1 -1
  70. package/views/2d/layers/features/FeatureSourceEventLog.js +1 -1
  71. package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
  72. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  73. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  74. package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
  75. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
  76. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  77. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  78. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  79. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  80. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  81. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  82. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  83. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  84. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +14 -32
  85. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBuffer.glsl.js +17 -0
  86. package/views/3d/webgl-engine/core/shaderLibrary/TextureBackedBufferFields.glsl.js +10 -0
  87. package/views/3d/webgl-engine/core/shaderLibrary/shading/PiUtils.glsl.js +1 -1
  88. package/views/3d/webgl-engine/core/shaderLibrary/util/FastApproximateTrigonometry.glsl.js +26 -0
  89. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  90. package/views/3d/webgl-engine/lib/TextureBackedBuffer/BufferManager.js +1 -1
  91. package/views/3d/webgl-engine/lib/TextureBackedBuffer/ManagedTextureBackedBuffer.js +1 -1
  92. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
  93. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferFields.js +5 -0
  94. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBufferLayout.js +5 -0
  95. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  96. package/views/analysis/ElevationProfile/ElevationProfileChart.js +1 -1
  97. package/views/draw/support/Reshape.js +1 -1
  98. package/views/input/gamepad/GamepadInputDevice.js +1 -1
  99. package/views/input/gamepad/GamepadSource.js +1 -1
  100. package/views/interactive/SegmentLabels.js +1 -1
  101. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  102. package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
  103. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  104. package/views/interactive/tooltip/components/TooltipField.js +1 -1
  105. package/views/interactive/tooltip/components/ValueByValue.js +1 -1
  106. package/views/interactive/tooltip/content/Fields.js +1 -1
  107. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  108. package/views/interactive/tooltip/content/TooltipContentDrawCircle.js +1 -1
  109. package/views/interactive/tooltip/content/TooltipContentDrawMesh.js +1 -1
  110. package/views/interactive/tooltip/content/TooltipContentDrawPoint.js +1 -1
  111. package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
  112. package/views/interactive/tooltip/content/TooltipContentDrawPolyline.js +1 -1
  113. package/views/interactive/tooltip/content/TooltipContentDrawRectangle.js +1 -1
  114. package/views/interactive/tooltip/content/TooltipContentElevation.js +1 -1
  115. package/views/interactive/tooltip/content/TooltipContentExtentRotate.js +1 -1
  116. package/views/interactive/tooltip/content/TooltipContentExtentScale.js +1 -1
  117. package/views/interactive/tooltip/content/TooltipContentMovePoint.js +1 -1
  118. package/views/interactive/tooltip/content/TooltipContentReshapeEdgeOffset.js +1 -1
  119. package/views/interactive/tooltip/content/TooltipContentSelectedVertex.js +1 -1
  120. package/views/interactive/tooltip/content/TooltipContentTransformMesh.js +1 -1
  121. package/views/interactive/tooltip/content/TooltipContentTransformPoint.js +1 -1
  122. package/views/interactive/tooltip/content/TooltipContentTranslate.js +1 -1
  123. package/views/interactive/tooltip/content/TooltipContentTranslateVertex.js +1 -1
  124. package/views/interactive/tooltip/content/TooltipContentTranslateXY.js +1 -1
  125. package/views/interactive/tooltip/content/TooltipContentTranslateZ.js +1 -1
  126. package/views/overlay/BoxOverlayItem.js +1 -1
  127. package/views/overlay/CrosshairOverlayItem.js +1 -1
  128. package/views/overlay/OutlineOverlayItem.js +1 -1
  129. package/views/ui/UI.js +1 -1
  130. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  131. package/widgets/AreaMeasurement2D.js +1 -1
  132. package/widgets/AreaMeasurement3D.js +1 -1
  133. package/widgets/Attachments.js +1 -1
  134. package/widgets/Attribution.js +1 -1
  135. package/widgets/BasemapGallery.js +1 -1
  136. package/widgets/BasemapLayerList.js +1 -1
  137. package/widgets/BasemapToggle.js +1 -1
  138. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  139. package/widgets/BatchAttributeForm/batchAttributeFormUtils.js +1 -1
  140. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  141. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  142. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  143. package/widgets/BatchAttributeForm.js +1 -1
  144. package/widgets/Bookmarks.js +1 -1
  145. package/widgets/BuildingExplorer/BuildingDisciplinesTree/BuildingDisciplinesNode.js +1 -1
  146. package/widgets/BuildingExplorer/BuildingDisciplinesTree/BuildingDisciplinesTree.js +1 -1
  147. package/widgets/BuildingExplorer/BuildingLevelPicker/BuildingLevelPicker.js +1 -1
  148. package/widgets/BuildingExplorer/BuildingLevelPicker/Label.js +1 -1
  149. package/widgets/BuildingExplorer/BuildingLevelPicker/LevelItem.js +1 -1
  150. package/widgets/BuildingExplorer/BuildingPhasePicker/BuildingPhasePicker.js +1 -1
  151. package/widgets/BuildingExplorer.js +1 -1
  152. package/widgets/CatalogLayerList.js +1 -1
  153. package/widgets/Compass.js +1 -1
  154. package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
  155. package/widgets/CoordinateConversion.js +1 -1
  156. package/widgets/Daylight/support/SliderWithDropdown.js +1 -1
  157. package/widgets/Daylight.js +1 -1
  158. package/widgets/DirectLineMeasurement3D.js +1 -1
  159. package/widgets/DirectionalPad.js +1 -1
  160. package/widgets/Directions.js +1 -1
  161. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  162. package/widgets/DistanceMeasurement2D.js +1 -1
  163. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  164. package/widgets/Editor/EditorViewModel.js +1 -1
  165. package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
  166. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  167. package/widgets/Editor/SplitFeatureWorkflowData.js +1 -1
  168. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  169. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  170. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  171. package/widgets/Editor/UpdateWorkflow.js +1 -1
  172. package/widgets/Editor/Workflow.js +1 -1
  173. package/widgets/Editor/components/CreateFeaturesPanelContent.js +1 -1
  174. package/widgets/Editor/components/FeatureList.js +1 -1
  175. package/widgets/Editor/components/FooterActions.js +1 -1
  176. package/widgets/Editor/components/MergeFeaturesList.js +1 -1
  177. package/widgets/Editor/components/Notices.js +1 -1
  178. package/widgets/Editor/components/PanelContent.js +1 -1
  179. package/widgets/Editor/components/PanelToolbar.js +1 -1
  180. package/widgets/Editor/components/PendingFeatureList.js +1 -1
  181. package/widgets/Editor/components/Prompt.js +1 -1
  182. package/widgets/Editor/components/Settings.js +1 -1
  183. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  184. package/widgets/Editor/components/UploadDetails.js +1 -1
  185. package/widgets/Editor/components/workflowAdapters/pendingFeatureList/SplitFeatureWorkflowPendingFeatureListAdapter.js +1 -1
  186. package/widgets/Editor/support/errors.js +1 -1
  187. package/widgets/Editor.js +1 -1
  188. package/widgets/ElevationProfile/components/Legend.js +1 -1
  189. package/widgets/ElevationProfile/components/LegendItem.js +1 -1
  190. package/widgets/ElevationProfile/components/SettingsButton.js +1 -1
  191. package/widgets/ElevationProfile/components/Statistics.js +1 -1
  192. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  193. package/widgets/ElevationProfile.js +1 -1
  194. package/widgets/Expand.js +1 -1
  195. package/widgets/Feature/FeatureAttachments.js +1 -1
  196. package/widgets/Feature/FeatureContent.js +1 -1
  197. package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
  198. package/widgets/Feature/FeatureExpression.js +1 -1
  199. package/widgets/Feature/FeatureFields.js +1 -1
  200. package/widgets/Feature/FeatureMedia.js +1 -1
  201. package/widgets/Feature/FeatureRelationship.js +1 -1
  202. package/widgets/Feature/FeatureUtilityNetworkAssociationList.js +1 -1
  203. package/widgets/Feature/FeatureUtilityNetworkAssociations.js +1 -1
  204. package/widgets/Feature/support/FeatureContentMixin.js +1 -1
  205. package/widgets/Feature/support/FeatureElementInfo.js +1 -1
  206. package/widgets/Feature.js +1 -1
  207. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/AssociationDetails.js +1 -1
  208. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  209. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  210. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationSettings.js +1 -1
  211. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  212. package/widgets/FeatureForm.js +1 -1
  213. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  214. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  215. package/widgets/FeatureTable.js +1 -1
  216. package/widgets/FeatureTemplates.js +1 -1
  217. package/widgets/Features/FeaturesDrillIn.js +1 -1
  218. package/widgets/Features.js +1 -1
  219. package/widgets/FloorFilter.js +1 -1
  220. package/widgets/FovOverlay.js +1 -1
  221. package/widgets/Fullscreen.js +1 -1
  222. package/widgets/Histogram.js +1 -1
  223. package/widgets/HistogramRangeSlider.js +1 -1
  224. package/widgets/Home.js +1 -1
  225. package/widgets/LayerList/LayerListItem.js +1 -1
  226. package/widgets/LayerList/ListItemPanel.js +1 -1
  227. package/widgets/LayerList.js +1 -1
  228. package/widgets/Legend/LegendViewModel.js +1 -1
  229. package/widgets/Legend/styles/card/CardView.js +1 -1
  230. package/widgets/Legend/styles/card/ColorRamp.js +1 -1
  231. package/widgets/Legend/styles/card/LegendElement.js +1 -1
  232. package/widgets/Legend/styles/card/SizeRamp.js +1 -1
  233. package/widgets/Legend/styles/card/UnivariateAboveAndBelowRamp.js +1 -1
  234. package/widgets/Legend/styles/card/UnivariateColorSizeRamp.js +1 -1
  235. package/widgets/Legend/styles/classic/ClassicView.js +1 -1
  236. package/widgets/Legend/styles/classic/ColorRamp.js +1 -1
  237. package/widgets/Legend/styles/classic/LegendElement.js +1 -1
  238. package/widgets/Legend/styles/classic/SizeRamp.js +1 -1
  239. package/widgets/Legend/styles/classic/UnivariateAboveAndBelowRamp.js +1 -1
  240. package/widgets/Legend/styles/classic/UnivariateColorSizeRamp.js +1 -1
  241. package/widgets/Legend/styles/support/relationshipUtils.js +1 -1
  242. package/widgets/Legend/styles/support/sizeRampUtils.js +1 -1
  243. package/widgets/Legend/styles/support/univariateUtils.js +1 -1
  244. package/widgets/Legend/styles/support/utils.js +1 -1
  245. package/widgets/Legend/support/sizeRampUtils.js +1 -1
  246. package/widgets/Legend/support/styleUtils.js +1 -1
  247. package/widgets/Legend/support/utils.js +1 -1
  248. package/widgets/Legend.js +1 -1
  249. package/widgets/LineOfSight.js +1 -1
  250. package/widgets/Locate/LocateViewModel.js +1 -1
  251. package/widgets/Locate.js +1 -1
  252. package/widgets/Measurement.js +1 -1
  253. package/widgets/NavigationToggle.js +1 -1
  254. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  255. package/widgets/OrientedImageryViewer/components/Alert.js +1 -1
  256. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
  257. package/widgets/OrientedImageryViewer/components/ImageMeasurementWidget.js +1 -1
  258. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  259. package/widgets/OrientedImageryViewer/components/ImageViewer.js +1 -1
  260. package/widgets/OrientedImageryViewer/components/NavigationActions.js +1 -1
  261. package/widgets/OrientedImageryViewer/components/NavigationSettings.js +1 -1
  262. package/widgets/OrientedImageryViewer/components/NavigationUI360.js +1 -1
  263. package/widgets/OrientedImageryViewer/components/SequentialNavigationUI.js +1 -1
  264. package/widgets/OrientedImageryViewer/components/SketchTools.js +1 -1
  265. package/widgets/OrientedImageryViewer/components/VideoEnhancementTools.js +1 -1
  266. package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
  267. package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
  268. package/widgets/OrientedImageryViewer.js +1 -1
  269. package/widgets/PanoramicVideoViewer.js +1 -1
  270. package/widgets/PanoramicViewer.js +1 -1
  271. package/widgets/Popup.js +1 -1
  272. package/widgets/Print/FileLink.js +1 -1
  273. package/widgets/Print.js +1 -1
  274. package/widgets/ScaleBar.js +1 -1
  275. package/widgets/ScaleRangeSlider.js +1 -1
  276. package/widgets/Search/SearchResultRenderer.js +1 -1
  277. package/widgets/Search/support/layerSearchUtils.js +1 -1
  278. package/widgets/Search.js +1 -1
  279. package/widgets/ShadowCast/components/DiscreteConfigurator.js +1 -1
  280. package/widgets/ShadowCast/components/DurationConfigurator.js +1 -1
  281. package/widgets/ShadowCast/components/ShadowTooltipContent.js +1 -1
  282. package/widgets/ShadowCast/components/ThresholdConfigurator.js +1 -1
  283. package/widgets/ShadowCast.js +1 -1
  284. package/widgets/Sketch/SketchViewModel.js +1 -1
  285. package/widgets/Sketch/support/ResponsiveToolbar/MeasuredContentGroup.js +1 -1
  286. package/widgets/Sketch/support/ResponsiveToolbar/OverflowGroup.js +1 -1
  287. package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
  288. package/widgets/Sketch/support/ResponsiveToolbar/SplitButton.js +1 -1
  289. package/widgets/Sketch.js +1 -1
  290. package/widgets/Slice.js +1 -1
  291. package/widgets/Slider.js +1 -1
  292. package/widgets/Spinner.js +1 -1
  293. package/widgets/Swipe.js +1 -1
  294. package/widgets/TableList/ListItemPanel.js +1 -1
  295. package/widgets/TableList.js +1 -1
  296. package/widgets/TimeSlider.js +1 -1
  297. package/widgets/TimeZoneLabel.js +1 -1
  298. package/widgets/Track.js +1 -1
  299. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsLineSymbolPicker.js +1 -1
  300. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  301. package/widgets/UtilityNetworkAssociations.js +1 -1
  302. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  303. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
  304. package/widgets/UtilityNetworkTrace.js +1 -1
  305. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +1 -1
  306. package/widgets/UtilityNetworkValidateTopology.js +1 -1
  307. package/widgets/ValuePicker/ValuePickerCollection.js +1 -1
  308. package/widgets/ValuePicker/ValuePickerCombobox.js +1 -1
  309. package/widgets/ValuePicker/ValuePickerLabel.js +1 -1
  310. package/widgets/ValuePicker/ValuePickerSlider.js +1 -1
  311. package/widgets/ValuePicker.js +1 -1
  312. package/widgets/VideoPlayer/components/MetadataSection.js +1 -1
  313. package/widgets/VideoPlayer/components/PlayerActionsGroup.js +1 -1
  314. package/widgets/VideoPlayer/components/PlayerControlsGroup.js +1 -1
  315. package/widgets/VideoPlayer/components/SettingsButton.js +1 -1
  316. package/widgets/VideoPlayer.js +1 -1
  317. package/widgets/Weather/LabeledSlider.js +1 -1
  318. package/widgets/Weather.js +1 -1
  319. package/widgets/Widget.js +1 -1
  320. package/widgets/Zoom.js +1 -1
  321. package/widgets/smartMapping/BinaryColorSizeSlider.js +1 -1
  322. package/widgets/smartMapping/ClassedColorSlider.js +1 -1
  323. package/widgets/smartMapping/ClassedSizeSlider.js +1 -1
  324. package/widgets/smartMapping/ColorSizeSlider.js +1 -1
  325. package/widgets/smartMapping/ColorSlider.js +1 -1
  326. package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.js +1 -1
  327. package/widgets/smartMapping/HeatmapSlider.js +1 -1
  328. package/widgets/smartMapping/OpacitySlider.js +1 -1
  329. package/widgets/smartMapping/SizeSlider.js +1 -1
  330. package/widgets/smartMapping/SmartMappingSliderBase.js +1 -1
  331. package/widgets/support/ColorPicker.js +1 -1
  332. package/widgets/support/FilterBuilder.js +1 -1
  333. package/widgets/support/FilterCondition.js +1 -1
  334. package/widgets/support/GridControls.js +1 -1
  335. package/widgets/support/Heading.js +1 -1
  336. package/widgets/support/ItemList.js +1 -1
  337. package/widgets/support/LabeledSwitch.js +1 -1
  338. package/widgets/support/MeasurementWidgetContent.js +1 -1
  339. package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
  340. package/widgets/support/SelectionList/LayerItem.js +1 -1
  341. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  342. package/widgets/support/SelectionList/selectionListUtils.js +1 -1
  343. package/widgets/support/SelectionList.js +1 -1
  344. package/widgets/support/SelectionToolbar.js +1 -1
  345. package/widgets/support/SketchTooltipControls.js +1 -1
  346. package/widgets/support/SnappingControls.js +1 -1
  347. package/widgets/support/TimezonePicker.js +1 -1
  348. package/widgets/support/UnitSelect.js +1 -1
  349. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationList.js +1 -1
  350. package/widgets/support/UtilityNetworkAssociations/utils/formatPercentAlong.js +1 -1
  351. package/widgets/support/chartUtilsAm5.js +1 -1
  352. package/widgets/support/dateUtils.js +1 -1
  353. package/widgets/support/iconUtils.js +1 -1
  354. package/widgets/support/widget.js +1 -1
  355. package/assets/esri/core/workers/chunks/097e5deb51ee7e25e654.js +0 -1
  356. package/assets/esri/core/workers/chunks/3edffdb0e282ed562ac7.js +0 -1
  357. package/assets/esri/core/workers/chunks/8fc82fe1fcbcedf35400.js +0 -1
  358. package/assets/esri/core/workers/chunks/af5fc5d6c1d072a27df1.js +0 -1
  359. package/assets/esri/core/workers/chunks/bc29c29bfa5be3ebafb1.js +0 -1
  360. package/assets/esri/core/workers/chunks/c4dfd897bcab20dee43b.js +0 -1
  361. package/assets/esri/core/workers/chunks/c68935ed44eb0702a6ba.js +0 -1
  362. package/assets/esri/core/workers/chunks/db54552def7bc6cef9bd.js +0 -1
  363. package/assets/esri/core/workers/chunks/fd88e07cba5964f80e9e.js +0 -1
  364. package/views/interactive/editGeometry/CheckpointingEditGeometryOperations.js +0 -5
  365. package/views/interactive/editGeometry/operations/ReplayableAppendVertex.js +0 -5
  366. package/widgets/support/jsxFactory.js +0 -5
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{37838:(t,e,o)=>{o.d(e,{A:()=>oe});var i,s=o(31635),r=o(69540),n=o(7762),l=o(25482),a=o(4718),p=o(53966),d=o(74887),c=o(10107),u=o(79901),y=o(36005),h=o(64108),m=o(43937),g=o(56507),f=o(30524),v=o(89893),w=o(84424);o(44208);let C=i=class extends w.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,a.o8)(this.outFields):null})}};(0,s.Cg)([(0,c.MZ)()],C.prototype,"creator",void 0),(0,s.Cg)([(0,c.MZ)()],C.prototype,"destroyer",void 0),(0,s.Cg)([(0,c.MZ)()],C.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)({type:["custom"],readOnly:!0})],C.prototype,"type",void 0),C=i=(0,s.Cg)([(0,h.$)("esri.popup.content.CustomContent")],C);const M=C;var x;o(87811);let F=x=class extends l.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new x({title:this.title,expression:this.expression})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],F.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],F.prototype,"expression",void 0),(0,s.Cg)([(0,c.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],F.prototype,"returnType",void 0),F=x=(0,s.Cg)([(0,h.$)("esri.popup.ElementExpressionInfo")],F);const Z=F;var I;let j=I=class extends w.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new I({expressionInfo:this.expressionInfo?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Z,json:{write:!0}})],j.prototype,"expressionInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],j.prototype,"type",void 0),j=I=(0,s.Cg)([(0,h.$)("esri.popup.content.ExpressionContent")],j);const b=j;var A=o(66159);let N=class extends l.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"altText",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"caption",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],N.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],N.prototype,"type",void 0),N=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.MediaInfo")],N);const S=N;var R,_=o(68197),O=o(69622);let T=R=class extends O.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new R({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],T.prototype,"color",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"fieldName",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"tooltip",void 0),(0,s.Cg)([(0,c.MZ)()],T.prototype,"value",void 0),T=R=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],T);const $=T;var E;let B=E=class extends l.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new E({colors:(0,a.o8)(this.colors),fields:(0,a.o8)(this.fields),normalizeField:this.normalizeField,series:(0,a.o8)(this.series),tooltipField:this.tooltipField})}};(0,s.Cg)([(0,c.MZ)({type:[_.A],json:{type:[[g.jz]],write:!0}})],B.prototype,"colors",void 0),(0,s.Cg)([(0,c.MZ)({type:[String],json:{write:{isRequired:!0}}})],B.prototype,"fields",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"normalizeField",void 0),(0,s.Cg)([(0,c.MZ)({type:[$],json:{read:!1}})],B.prototype,"series",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],B.prototype,"tooltipField",void 0),B=E=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValue")],B);const k=B;let J=class extends S{constructor(t){super(t),this.type=null,this.value=void 0}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],J.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:k,json:{write:{isRequired:!0}}})],J.prototype,"value",void 0),J=(0,s.Cg)([(0,h.$)("esri.popup.content.mixins.ChartMediaInfo")],J);const q=J,D=(0,o(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var U;let L=U=class extends q{constructor(t){super(t),this.type="bar-chart"}clone(){return new U({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:D.write,isRequired:!0}}})],L.prototype,"type",void 0),L=U=(0,s.Cg)([(0,h.$)("esri.popup.content.BarChartMediaInfo")],L);const W=L;var z;let P=z=class extends q{constructor(t){super(t),this.type="column-chart"}clone(){return new z({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:D.write,isRequired:!0}}})],P.prototype,"type",void 0),P=z=(0,s.Cg)([(0,h.$)("esri.popup.content.ColumnChartMediaInfo")],P);const K=P;var G;let V=G=class extends l.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new G({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],V.prototype,"linkURL",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:{isRequired:!0}}})],V.prototype,"sourceURL",void 0),V=G=(0,s.Cg)([(0,h.$)("esri.popup.content.support.ImageMediaInfoValue")],V);const H=V;var X;let Q=X=class extends S{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new X({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],Q.prototype,"refreshInterval",void 0),(0,s.Cg)([(0,c.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Q.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:H,json:{write:{isRequired:!0}}})],Q.prototype,"value",void 0),Q=X=(0,s.Cg)([(0,h.$)("esri.popup.content.ImageMediaInfo")],Q);const Y=Q;var tt;let et=tt=class extends q{constructor(t){super(t),this.type="line-chart"}clone(){return new tt({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:D.write,isRequired:!0}}})],et.prototype,"type",void 0),et=tt=(0,s.Cg)([(0,h.$)("esri.popup.content.LineChartMediaInfo")],et);const ot=et;var it;let st=it=class extends q{constructor(t){super(t),this.type="pie-chart"}clone(){return new it({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s.Cg)([(0,c.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:D.write,isRequired:!0}}})],st.prototype,"type",void 0),st=it=(0,s.Cg)([(0,h.$)("esri.popup.content.PieChartMediaInfo")],st);const rt=st,nt={base:S,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":W,"column-chart":K,"line-chart":ot,"pie-chart":rt,image:Y}};var lt;let at=lt=class extends w.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?Y.fromJSON(t):"barchart"===t.type?W.fromJSON(t):"columnchart"===t.type?K.fromJSON(t):"linechart"===t.type?ot.fromJSON(t):"piechart"===t.type?rt.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new lt((0,a.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,s.Cg)([(0,c.MZ)()],at.prototype,"activeMediaInfoIndex",void 0),(0,s.Cg)([(0,c.MZ)({type:Object,json:{write:!0}})],at.prototype,"attributes",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],at.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({types:[nt]})],at.prototype,"mediaInfos",void 0),(0,s.Cg)([(0,y.w)("mediaInfos")],at.prototype,"readMediaInfos",null),(0,s.Cg)([(0,m.K)("mediaInfos")],at.prototype,"writeMediaInfos",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],at.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],at.prototype,"type",void 0),at=lt=(0,s.Cg)([(0,h.$)("esri.popup.content.MediaContent")],at);const pt=at;var dt=o(49852);let ct=class extends((0,r.OU)(w.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:g.jz,write:!0}})],ct.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:["list"],json:{write:{isRequired:!0}}})],ct.prototype,"displayType",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],ct.prototype,"orderByFields",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:g.jz,write:{isRequired:!0}}})],ct.prototype,"relationshipId",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ct.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ct.prototype,"type",void 0),ct=(0,s.Cg)([(0,h.$)("esri.popup.content.RelationshipContent")],ct);const ut=ct;var yt;let ht=yt=class extends w.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new yt({text:this.text})}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ht.prototype,"text",void 0),(0,s.Cg)([(0,c.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ht.prototype,"type",void 0),ht=yt=(0,s.Cg)([(0,h.$)("esri.popup.content.TextContent")],ht);const mt=ht;var gt=o(93223),ft=o(83342);let vt=class extends((0,r.OU)(w.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],vt.prototype,"description",void 0),(0,s.Cg)([(0,c.MZ)({type:Number,json:{type:g.jz,write:!0}})],vt.prototype,"displayCount",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],vt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)({type:[ft.A],json:{write:!0}})],vt.prototype,"associationTypes",void 0),(0,s.Cg)([(0,gt.e)({utilityNetworkAssociations:"utility-network-associations"})],vt.prototype,"type",void 0),vt=(0,s.Cg)([(0,h.$)("esri.popup.content.UtilityNetworkAssociationsContent")],vt);const wt=vt,Ct=v.A,Mt=w.A,xt=M,Ft=b,Zt=A.A,It=pt,jt=ut,bt=mt,At=wt,Nt={base:null,key:"type",typeMap:{attachment:Ct,media:It,text:bt,expression:Ft,field:Zt,relationship:jt,utilityNetworkAssociations:At}},St={base:null,key:"type",typeMap:{attachment:Ct,media:It,text:bt,expression:Ft,field:Zt,relationship:jt}};var Rt,_t=o(93705),Ot=o(41227);let Tt=Rt=class extends l.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new Rt({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Tt.prototype,"returnTopmostRaster",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Tt.prototype,"showNoDataRecords",void 0),Tt=Rt=(0,s.Cg)([(0,h.$)("esri.popup.LayerOptions")],Tt);const $t=Tt;var Et;let Bt=Et=class extends l.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new Et({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,a.o8)(this.orderByFields):null})}};(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Bt.prototype,"showRelatedRecords",void 0),(0,s.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],Bt.prototype,"orderByFields",void 0),Bt=Et=(0,s.Cg)([(0,h.$)("esri.popup.RelatedRecordsInfo")],Bt);const kt=Bt;var Jt,qt=o(4902);let Dt=Jt=class extends((0,qt.s)(O.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new Jt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"active",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"className",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"disabled",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"icon",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"id",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"indicator",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"title",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)()],Dt.prototype,"visible",void 0),Dt=Jt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionBase")],Dt);const Ut=Dt;var Lt;let Wt=Lt=class extends Ut{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Lt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,s.Cg)([(0,c.MZ)()],Wt.prototype,"image",void 0),Wt=Lt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionButton")],Wt);const zt=Wt;var Pt;let Kt=Pt=class extends Ut{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Pt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,s.Cg)([(0,c.MZ)()],Kt.prototype,"image",void 0),(0,s.Cg)([(0,c.MZ)()],Kt.prototype,"value",void 0),Kt=Pt=(0,s.Cg)([(0,h.$)("esri.support.actions.ActionToggle")],Kt);const Gt=Kt,Vt="relationships/",Ht="expression/",Xt=n.A.ofType({key:"type",defaultKeyValue:"button",base:Ut,typeMap:{button:zt,toggle:Gt}}),Qt={base:Mt,key:"type",typeMap:{media:It,custom:xt,text:bt,attachments:Ct,fields:Zt,expression:Ft,relationship:jt,utilityNetworkAssociations:At}},Yt=new Set(["attachments","fields","media","text","expression","relationship"]),te=new Set([...Yt,"utility-network-associations"]);let ee=class extends((0,r.OU)(l.o)){constructor(t){super(t),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map(t=>(0,g.aq)(Qt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,d.$X)(t)?t:(p.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeWebSceneContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeWebMapContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeFieldInfos(t,e,o,i){const{content:s}=this,r=Array.isArray(s)?s:null,{writeFieldFormat:n,...l}=i||{};if(t){const o=r?r.filter(t=>"fields"===t.type):[],i=o.length&&o.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{const e=t.toJSON(l);return i&&(e.visible=!1),e})}if(r)for(const t of r)"fields"===t.type&&this._writeFieldsContent(t,e,l)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,o){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,o,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,f._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){const o=new Set;return await this.collectRequiredFields(o,t,e),[...o].sort()}_writePopupTemplateContent(t,e,o){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===o?.origin?Yt.has(t.type):te.has(t.type)).map(t=>t?.toJSON(o)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)})):e.description=t}_writeFieldsContent(t,e,o){const i=t.fieldInfos;if(!Array.isArray(i)||!i.length)return;const s=e.fieldInfos;if(Array.isArray(s))for(const t of i){const e=s.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());e?e.visible=!0:s.push(t.toJSON(o))}else e.fieldInfos=i.map(t=>t.toJSON(o))}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const o=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],i=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...i?.length&&{orderByFields:i}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=(0,a.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements(t,e,o){const i={description:!1,mediaInfos:!1};return o.map(o=>"media"===o.type?(o.mediaInfos||!e||i.mediaInfos||(o.mediaInfos=e,i.mediaInfos=!0),It.fromJSON(o)):"text"===o.type?(o.text||!t||i.description||(o.text=t,i.description=!0),bt.fromJSON(o)):"attachments"===o.type?Ct.fromJSON(o):"fields"===o.type?Zt.fromJSON(o):"expression"===o.type?Ft.fromJSON(o):"relationship"===o.type?jt.fromJSON(o):"utilityNetworkAssociations"===o.type?At.fromJSON(o):void 0).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:o}=t;if(!e?.startsWith(Vt))return null;const i=e.replace(Vt,"").split("/");if(2!==i.length)return null;const s=parseInt(i[0],10),r=i[1];return!Number.isNaN(s)&&r?jt.fromJSON({relationshipId:s,orderByFields:[{field:r,order:o}]}):null}_toFieldOrderJSON(t,e){const{order:o,field:i}=t;return{field:`${Vt}${e}/${i}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:i={showRelatedRecords:!1}}){const s=[];t?s.push(new bt({text:t})):s.push(new Zt),Array.isArray(e)&&e.length&&s.push(It.fromJSON({mediaInfos:e})),o&&s.push(Ct.fromJSON({displayType:"auto"}));const{showRelatedRecords:r,orderByFields:n}=i;return r&&n?.length&&n.forEach(t=>{const e=this._toRelationshipContent(t);e&&s.push(e)}),s.length?s:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:o,value:i}=t,s=i||{},{fields:r,normalizeField:n,tooltipField:l,sourceURL:a,linkURL:p}=s,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(a),...this._extractFieldNames(p),...r??[]];return n&&d.push(n),l&&d.push(l),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,o,i){i&&await Promise.all(i.map(i=>(0,f.Dx)(t,e,o,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(Vt)||t.startsWith(Ht))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){const{className:e,title:o,type:i}=t,s="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(s)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,f.nw)(t).filter(t=>!(t.startsWith(Vt)||t.startsWith(Ht)))}};(0,s.Cg)([(0,c.MZ)({type:Xt})],ee.prototype,"actions",void 0),(0,s.Cg)([(0,c.MZ)()],ee.prototype,"content",void 0),(0,s.Cg)([(0,u.w)("content")],ee.prototype,"castContent",null),(0,s.Cg)([(0,y.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],ee.prototype,"readContent",null),(0,s.Cg)([(0,m.K)("web-scene","content",{popupElements:{type:n.A.ofType(St)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:kt}})],ee.prototype,"writeWebSceneContent",null),(0,s.Cg)([(0,m.K)("content",{popupElements:{type:n.A.ofType(Nt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(nt)},description:{type:String},relatedRecordsInfo:{type:kt}})],ee.prototype,"writeWebMapContent",null),(0,s.Cg)([(0,c.MZ)({type:[_t.A],json:{write:!0}})],ee.prototype,"expressionInfos",void 0),(0,s.Cg)([(0,c.MZ)({type:[Ot.A]})],ee.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,m.K)("fieldInfos")],ee.prototype,"writeFieldInfos",null),(0,s.Cg)([(0,c.MZ)({type:$t})],ee.prototype,"layerOptions",void 0),(0,s.Cg)([(0,m.K)("layerOptions")],ee.prototype,"writeLayerOptions",null),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],ee.prototype,"lastEditInfoEnabled",void 0),(0,s.Cg)([(0,c.MZ)()],ee.prototype,"outFields",void 0),(0,s.Cg)([(0,c.MZ)()],ee.prototype,"overwriteActions",void 0),(0,s.Cg)([(0,c.MZ)()],ee.prototype,"returnGeometry",void 0),(0,s.Cg)([(0,c.MZ)({json:{type:String}})],ee.prototype,"title",void 0),(0,s.Cg)([(0,m.K)("title")],ee.prototype,"writeTitle",null),ee=(0,s.Cg)([(0,h.$)("esri.PopupTemplate")],ee);const oe=ee},39663:(t,e,o)=>{o.d(e,{$P:()=>J,HK:()=>x,PK:()=>_,fg:()=>M,qH:()=>F});var i=o(31635),s=o(10107),r=o(64108),n=o(69540),l=o(25482);let a=class extends((0,n.OU)(l.o)){constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,s.MZ)({type:["date-time","number"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,r.$)("esri.layers.support.FieldFormat")],a);const p=a,d="auto";let c=class extends p{constructor(t){super(t),this.dateStyle=null,this.hour12=d,this.month=null,this.timeStyle=null,this.type="date-time",this.year=null}};(0,i.Cg)([(0,s.MZ)({type:["full","long","medium","short"],json:{write:!0}})],c.prototype,"dateStyle",void 0),(0,i.Cg)([(0,s.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:d,write:!0}})],c.prototype,"hour12",void 0),(0,i.Cg)([(0,s.MZ)({type:["long","short"],json:{write:!0}})],c.prototype,"month",void 0),(0,i.Cg)([(0,s.MZ)({type:["full","long","medium","short"],json:{write:!0}})],c.prototype,"timeStyle",void 0),(0,i.Cg)([(0,s.MZ)({type:["date-time"]})],c.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:["numeric"],json:{write:!0}})],c.prototype,"year",void 0),c=(0,i.Cg)([(0,r.$)("esri.layers.support.DateTimeFieldFormat")],c);const u=c;var y=o(30524),h=o(56507);const m={min:0,max:20},g="decimal",f="auto";let v=class extends p{constructor(t){super(t),this.maximumFractionDigits=2,this.minimumFractionDigits=0,this.style=g,this.type="number",this.useGrouping=f}};(0,i.Cg)([(0,s.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:2,write:!0}})],v.prototype,"maximumFractionDigits",void 0),(0,i.Cg)([(0,s.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:0,write:!0}})],v.prototype,"minimumFractionDigits",void 0),(0,i.Cg)([(0,s.MZ)({type:["decimal"],nonNullable:!0,json:{default:g,write:!0}})],v.prototype,"style",void 0),(0,i.Cg)([(0,s.MZ)({type:["number"]})],v.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:f,write:!0}})],v.prototype,"useGrouping",void 0),v=(0,i.Cg)([(0,r.$)("esri.layers.support.NumberFieldFormat")],v);const w=v;var C=o(68780);const M={base:p,key:"type",errorContext:"field-configuration-field-format",typeMap:{"date-time":u,number:w}};function x(t,e){const{dateFormat:o}=t;if(!e)return o?j(t):I(t);if(!F(e))return;const i={hour12:"always"};switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return Z(t);case"single":case"double":return I(t);case"date":case"timestamp-offset":return o?j(t):J(e,i);case"date-only":return o?function(t){return new u({dateStyle:b(t),year:R(t),month:N(t)})}(t):J(e);case"time-only":return o?function(t){return new u({timeStyle:S(t),hour12:A(t)})}(t):J(e,i)}}function F(t){return(0,y.WA)(t)||(0,y.vE)(t)||(0,y.zD)(t)||(0,y.OH)(t)||(0,y.Ah)(t)}function Z(t){return new w({useGrouping:t.digitSeparator?"always":"never"})}function I(t){const e=Z(t),{places:o}=t;return e.minimumFractionDigits=o??0,e.maximumFractionDigits=o??2,e}function j(t){return new u({dateStyle:b(t),year:R(t),month:N(t),timeStyle:S(t),hour12:A(t)})}function b(t){const{dateFormat:e}=t;return e?e.startsWith("short-date")?"short":e.startsWith("day-short-month-year")?"medium":e.startsWith("long-month-day-year")?"long":e.startsWith("long-date")?"full":null:null}function A(t){return t.dateFormat?.endsWith("-24")?"never":"always"}function N(t){switch(t.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function S(t){const{dateFormat:e}=t;return e?e.includes("short-time")?"short":e.includes("long-time")?"medium":null:null}function R(t){switch(t.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function _(t,e){const o="number"===t.type,i="date-time"===t.type;if(!e)return o?T(t):i?$(t):null;if(F(e))switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return o?O(t):null;case"single":case"double":return o?T(t):null;case"date":case"timestamp-offset":return i?$(t):null;case"date-only":return i?function(t){let e;const o=E(t),i="numeric"===t.year?"year":null,s=k(t);return o?e=o:i&&s?e=`${s}-${i}`:i&&(e=i),e?new C.A({dateFormat:e}):null}(t):null;case"time-only":return i?function(t){let e;const o=B(t),i="never"===t.hour12?"24":null;return o&&i?e=`short-date-${o}-${i}`:o&&(e=`short-date-${o}`),e?new C.A({dateFormat:e}):null}(t):null}}function O(t){return new C.A({digitSeparator:"never"!==t.useGrouping})}function T(t){const e=O(t);return e.places=t.maximumFractionDigits,e}function $(t){let e;const o=E(t),i=B(t),s="never"===t.hour12?"24":null,r="numeric"===t.year?"year":null,n=k(t);return o&&i&&s?e=`${o}-${i}-${s}`:o&&i?e=`${o}-${i}`:o?e=o:r&&n?e=`${n}-${r}`:r&&(e=r),e?new C.A({dateFormat:e}):null}function E(t){switch(t.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function B(t){return t.timeStyle&&("short"===t.timeStyle?"short-time":"long-time")}function k(t){switch(t.month){case"short":return"short-month";case"long":return"long-month";default:return}}function J(t,e){if(!F(t))return;const o=e?.useGrouping??"auto",i=e?.hour12??"auto";switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return new w({minimumFractionDigits:0,maximumFractionDigits:0,useGrouping:o});case"single":case"double":return new w({minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:o});case"date":case"timestamp-offset":return new u({dateStyle:"short",timeStyle:"short",hour12:i});case"date-only":return new u({dateStyle:"short"});case"time-only":return new u({timeStyle:"short",hour12:i})}}},41227:(t,e,o)=>{o.d(e,{A:()=>h});var i=o(31635),s=o(69540),r=o(66552),n=o(25482),l=o(10107),a=(o(44208),o(53966),o(87811),o(93223)),p=o(36005),d=o(64108),c=o(39663),u=o(68780);let y=class extends((0,s.OU)(n.o)){constructor(t){super(t),this.fieldName=null,this.isEditable=!0,this.label=null,this.statisticType=null,this.stringFieldOption="text-box",this.tooltip=null,this.visible=!0}set fieldFormat(t){this._set("fieldFormat",t),this._set("format",t?(0,c.PK)(t):null)}set format(t){this._set("format",t),this._set("fieldFormat",t?(0,c.HK)(t):null)}readFormat(t,e){if(!e.fieldFormat)return t?u.A.fromJSON(t):null}clone(){const t=super.clone();return t._set("format",this.format?.clone()),t._set("fieldFormat",this.fieldFormat?.clone()),t}};(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,types:c.fg,json:{write:{overridePolicy(t,e,o){const{fieldName:i}=this;return{enabled:!(!i||i.startsWith("expression/")||i.startsWith("relationships/")||!o?.writeFieldFormat)}}}}})],y.prototype,"fieldFormat",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"fieldName",void 0),(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,type:u.A,json:{write:!0}})],y.prototype,"format",null),(0,i.Cg)([(0,p.w)("format")],y.prototype,"readFormat",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],y.prototype,"isEditable",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],y.prototype,"statisticType",void 0),(0,i.Cg)([(0,a.e)(new r.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],y.prototype,"stringFieldOption",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"tooltip",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"visible",void 0),y=(0,i.Cg)([(0,d.$)("esri.popup.FieldInfo")],y);const h=y},49852:(t,e,o)=>{o.d(e,{A:()=>p});var i,s=o(31635),r=o(25482),n=o(10107),l=(o(44208),o(53966),o(87811),o(64108));let a=i=class extends r.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"field",void 0),(0,s.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],a.prototype,"order",void 0),a=i=(0,s.Cg)([(0,l.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],a);const p=a},60950:(t,e,o)=>{o.d(e,{E_:()=>s,ym:()=>i});const i=Symbol("popupProvider");function s(t){return function(t){return!!t&&i in t}(t)?t[i]:null}},66159:(t,e,o)=>{o.d(e,{A:()=>c});var i,s=o(31635),r=o(4718),n=o(10107),l=(o(44208),o(53966),o(64108)),a=o(41227),p=o(84424);let d=i=class extends p.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}clone(){return new i((0,r.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,s.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],d.prototype,"attributes",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,s.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"fieldInfos",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],d.prototype,"type",void 0),d=i=(0,s.Cg)([(0,l.$)("esri.popup.content.FieldsContent")],d);const c=d},68780:(t,e,o)=>{o.d(e,{A:()=>u});var i=o(31635),s=o(69540),r=o(25482),n=o(10107),l=o(56507),a=(o(44208),o(87811),o(93223)),p=o(64108),d=o(97770);let c=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,i.Cg)([(0,a.e)(d._v)],c.prototype,"dateFormat",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"digitSeparator",void 0),(0,i.Cg)([(0,n.MZ)({type:l.jz,json:{write:!0}})],c.prototype,"places",void 0),c=(0,i.Cg)([(0,p.$)("esri.popup.support.FieldInfoFormat")],c);const u=c},78553:(t,e,o)=>{o.d(e,{D:()=>r,p:()=>s});var i=o(56507);function s(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function r(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83342:(t,e,o)=>{o.d(e,{A:()=>d});var i=o(31635),s=o(69540),r=o(25482),n=o(10107),l=o(56507),a=(o(44208),o(87811),o(64108));let p=class extends((0,s.OU)(r.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedNetworkSourceId",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedAssetGroup",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedAssetType",void 0),p=(0,i.Cg)([(0,a.$)("esri.popup.support.UtilityNetworkAssociationType")],p);const d=p},84424:(t,e,o)=>{o.d(e,{A:()=>a});var i=o(31635),s=o(25482),r=o(10107),n=(o(44208),o(53966),o(87811),o(64108));let l=class extends s.o{constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,r.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,i.Cg)([(0,n.$)("esri.popup.content.Content")],l);const a=l},89893:(t,e,o)=>{o.d(e,{A:()=>h});var i=o(31635),s=o(69540),r=o(10107),n=(o(44208),o(53966),o(87811),o(64108)),l=o(84424),a=o(66552),p=o(25482);const d=new a.J({asc:"ascending",desc:"descending"});let c=class extends((0,s.OU)(p.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i.Cg)([(0,r.MZ)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],c.prototype,"order",void 0),c=(0,i.Cg)([(0,n.$)("esri.popup.support.AttachmentsOrderByInfo")],c);const u=c;let y=class extends((0,s.OU)(l.A)){constructor(t){super(t),this.attachmentKeywords=null,this.attachmentTypes=null,this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,i.Cg)([(0,r.MZ)({type:[String],json:{write:!0}})],y.prototype,"attachmentKeywords",void 0),(0,i.Cg)([(0,r.MZ)({type:[["application","audio","image","model","text","video"]],json:{write:!0}})],y.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,i.Cg)([(0,r.MZ)({type:["auto","preview","list"],json:{write:!0}})],y.prototype,"displayType",void 0),(0,i.Cg)([(0,r.MZ)({type:[u],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,i.Cg)([(0,r.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,i.Cg)([(0,r.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),y=(0,i.Cg)([(0,n.$)("esri.popup.content.AttachmentsContent")],y);const h=y},93705:(t,e,o)=>{o.d(e,{A:()=>p});var i,s=o(31635),r=o(25482),n=o(10107),l=(o(44208),o(53966),o(87811),o(64108));let a=i=class extends r.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"name",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"expression",void 0),(0,s.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],a.prototype,"returnType",void 0),a=i=(0,s.Cg)([(0,l.$)("esri.popup.ExpressionInfo")],a);const p=a}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8969],{2272:(e,t,n)=>{n.d(t,{Dl:()=>u,gf:()=>h,jV:()=>l,lF:()=>c});var i=n(92602),s=n(70333),r=n(4718),o=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,r.o8)(e)}function c(e,t,n){const i={};for(const s in e){if("declaredClass"===s)continue;const r=e[s];if(null!=r&&"function"!=typeof r)if(Array.isArray(r))i[s]=r.map(e=>c(e));else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(n?.[s]);i[s]=t?e:JSON.stringify(e)}else i[s]=t?r:JSON.stringify(r);else i[s]=r}return i}async function h(e,t,r){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.CG)(e)??s.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!s.id&&i.A.request.useIdentity&&await Promise.all([n.e(7330),n.e(168),n.e(4272)]).then(n.bind(n,74272));const l=await s.id.getCredential(e,r);return l?.token}},6518:(e,t,n)=>{n.d(t,{F:()=>a});var i=n(44208),s=n(75503),r=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s.wq(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,i)=>{e[t++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},13043:(e,t,n)=>{function i(e,t){if(e&&t)for(const n of e.children)if(n.localName in t){const e=t[n.localName];if("function"==typeof e){const t=e(n);t&&i(n,t)}else i(n,e)}}function*s(e,t){for(const n of e.children)if(n.localName in t){const e=t[n.localName];"function"==typeof e?yield e(n):yield*s(n,e)}}n.d(t,{i:()=>s,p:()=>i})},20437:(e,t,n)=>{n.d(t,{A:()=>f});var i,s=n(31635),r=n(66552),o=n(25482),a=n(10107),l=n(56507),u=(n(44208),n(87811),n(93223)),c=n(36005),h=n(64108),d=n(80451),p=n(98453);const m=new r.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=class extends o.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?m.fromJSON(n.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,s.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,s.Cg)([(0,a.MZ)()],f.prototype,"description",void 0),(0,s.Cg)([(0,c.w)("description")],f.prototype,"readDescription",null),(0,s.Cg)([(0,a.MZ)({types:d.gK,json:{read:{reader:d.rS},write:!0}})],f.prototype,"domain",void 0),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,s.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,s.Cg)([(0,u.e)(p.m)],f.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)()],f.prototype,"valueType",void 0),(0,s.Cg)([(0,c.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=i=(0,s.Cg)([(0,h.$)("esri.layers.support.Field")],f)},33771:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x});var i=n(60999),s=n(49186),r=n(53966),o=n(34727),a=n(74887),l=n(67076),u=n(21325),c=n(90708),h=n(83221),d=n(31464),p=n(56390),m=n(85113),f=n(82832),y=n(34322),g=n(95466),_=n(54218),b=n(98623);const w="esri.layers.WFSLayer";class x{constructor(){this._customParameters=null,this._queryEngine=null,this._supportsPagination=!0}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){const{getFeatureUrl:n,getFeatureOutputFormat:i,fields:r,geometryType:o,featureType:l,maxRecordCount:u,maxTotalRecordCount:c,maxPageCount:m,objectIdField:f,customParameters:_}=e,{spatialReference:w,getFeatureSpatialReference:x}=(0,y.UH)(n,l,e.spatialReference);try{await(0,d.Nk)(x,w)}catch{throw new s.A("unsupported-projection","Projection not supported",{inSpatialReference:x,outSpatialReference:w})}(0,a.Te)(t),this._customParameters=_,this._featureType=l,this._fieldsIndex=g.A.fromLayerJSON({fields:r,dateFieldsTimeReference:r.some(e=>"esriFieldTypeDate"===e.type)?{timeZoneIANA:b.n$}:null}),this._geometryType=o,this._getFeatureUrl=n,this._getFeatureOutputFormat=i,this._getFeatureSpatialReference=x,this._maxRecordCount=u,this._maxTotalRecordCount=c,this._maxPageCount=m,this._objectIdField=f,this._spatialReference=w;let C=await this._snapshotFeatures(t);if(C.errors.length>0&&(this._supportsPagination=!1,C=await this._snapshotFeatures(t),C.errors.length>0))throw C.errors[0];const v={type:"object-id",fieldName:f};return this._queryEngine=new p.do({fieldsIndex:this._fieldsIndex,geometryType:o,hasM:!1,hasZ:!1,featureIdInfo:v,spatialReference:w,timeInfo:null,featureStore:new h.A({geometryType:o,hasM:!1,hasZ:!1})}),this._queryEngine.featureStore.addMany(C.features),{warnings:S(C),extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async applyEdits(){throw new s.A("wfs-source:editing-not-supported","applyEdits() is not supported on WFSLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),(await this._queryEngine.executeQueryForIds(e,t.signal)).filter(_.Et)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){return this._customParameters=e.customParameters,this._maxRecordCount=e.maxRecordCount,this._maxTotalRecordCount=e.maxTotalRecordCount,this._maxPageCount=e.maxPageCount,this._snapshotTask?.abort(),this._snapshotTask=(0,i.UT)(e=>this._snapshotFeatures({signal:e})),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._queryEngine.featureStore.addMany(e.features);for(const t of S(e))r.A.getLogger(w).warn(new l.A("wfs-layer:refresh-warning",t.message,t.details));e.errors?.length&&r.A.getLogger(w).warn(new l.A("wfs-layer:refresh-error","Refresh completed with errors",{errors:e.errors}))},()=>{this._queryEngine.featureStore.clear()}),await this._waitSnapshotComplete(),{extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _snapshotFeatures(e){const t=e?.signal,n=this._maxTotalRecordCount,i=this._maxPageCount,s=this._supportsPagination&&i>1?await(0,y.E)(this._getFeatureUrl,this._featureType.typeName,{customParameters:this._customParameters,signal:t}):void 0;let r=[];const l=[];if(null==s)try{r=await this._singleQuery(t)}catch(e){(0,a.zf)(e)||l.push(e)}else{const e=Math.min(s,n),u=function*(e,t,n){for(let i=0;i<t;i++)yield e._pageQuery(i,n)}(this,(0,o.qE)(Math.ceil(e/this._maxRecordCount),1,i),t);await Promise.allSettled(Array.from({length:10}).map(()=>async function(e,t,n){let i=e.next();for(;!i.done;){try{const e=await i.value;t.push(...e)}catch(e){(0,a.zf)(e)||n.push(e)}i=e.next()}}(u,r,l)))}return(0,a.Te)(t),{features:r,totalRecordCount:s,maxTotalRecordCount:n,maxPageCount:i,errors:l}}async _singleQuery(e){const t=Number.isFinite(this._maxRecordCount)&&this._maxRecordCount>0?this._maxRecordCount:void 0,n=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,count:t,signal:e});return this._processGeoJSON(n,{signal:e})}async _pageQuery(e,t){const n=e*this._maxRecordCount,i=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,startIndex:n,count:this._maxRecordCount,signal:t});return this._processGeoJSON(i,{startIndex:n,signal:t})}_processGeoJSON(e,t){(0,m.sO)(e,this._getFeatureSpatialReference.wkid);const{startIndex:n,signal:i}=t;(0,a.Te)(i);const s=(0,m.bd)(e,{geometryType:this._geometryType,hasZ:!1,objectIdField:this._objectIdField});if(!(0,u.aI)(this._spatialReference,this._getFeatureSpatialReference))for(const e of s)null!=e.geometry&&(e.geometry=(0,c.Ux)((0,d.Cv)((0,c.zv)(e.geometry,this._geometryType,!1,!1),this._getFeatureSpatialReference,this._spatialReference)));let r=n??1;for(const e of s){const t={};(0,f.MB)(this._fieldsIndex,t,e.attributes,!0),e.attributes=t,null==t[this._objectIdField]&&(e.objectId=t[this._objectIdField]=r++)}return s}}function S(e){const t=[];return null!=e.totalRecordCount&&(e.features.length<e.totalRecordCount&&t.push({name:"wfs-layer:maxRecordCount-too-low",message:`Could only fetch ${e.features.length} of ${e.totalRecordCount} in ${e.maxPageCount} queries. Try increasing the value of WFSLayer.maxRecordCount.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount}}),e.totalRecordCount>e.maxTotalRecordCount&&t.push({name:"wfs-layer:large-dataset",message:`The number of ${e.totalRecordCount} features exceeds the maximum allowed of ${e.maxTotalRecordCount}.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount,maxTotalRecordCount:e.maxTotalRecordCount}})),t}},34322:(e,t,n)=>{n.d(t,{E:()=>X,Fu:()=>I,O8:()=>k,UH:()=>$,YW:()=>j,i5:()=>b,mG:()=>N,x$:()=>Y});var i=n(11254),s=n(49186),r=n(5479),o=n(84952),a=n(5443),l=n(91218),u=n(16930),c=n(21325),h=n(50498),d=n(85113),p=n(13043),m=n(60694),f=n(20437),y=n(30524);const g="xlink:href",_="2.0.0",b="__esri_wfs_id__",w="wfs-layer:getWFSLayerTypeInfo-error",x="wfs-layer:empty-service",S="wfs-layer:feature-type-not-found",C="wfs-layer:geojson-not-supported",v="wfs-layer:kvp-encoding-not-supported",T="wfs-layer:malformed-json",F="wfs-layer:unknown-geometry-type",M="wfs-layer:unknown-field-type",A="wfs-layer:unsupported-spatial-reference",R="wfs-layer:unsupported-wfs-version";async function I(e,t){const n=function(e){const t=V(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==_)throw new s.A(R,`Unsupported WFS version ${t}. Supported version: ${_}`)})(t),U(t);const n=t.firstElementChild,i=(0,r.PP)(function(e){return(0,p.i)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},n=new Set;return(0,p.p)(e,{Name:e=>{const{name:n,prefix:i}=D(e.textContent);t.typeName=`${i}:${n}`,t.name=n,t.namespacePrefix=i,t.namespaceUri=e.lookupNamespaceURI(i)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=a.A.fromJSON(function(e){let t,n,i,s;for(const r of e.children)switch(r.localName){case"LowerCorner":[t,n]=r.textContent.split(" ").map(e=>Number.parseFloat(e));break;case"UpperCorner":[i,s]=r.textContent.split(" ").map(e=>Number.parseFloat(e))}return{xmin:t,ymin:n,xmax:i,ymax:s,spatialReference:c.KK}}(e))},DefaultCRS:e=>{const i=z(e);i&&(t.defaultSpatialReference=i,n.add(i))},OtherCRS:e=>{const t=z(e);t&&n.add(t)}}),t.title||(t.title=t.name),n.add(4326),t.supportedSpatialReferences.push(...n),t}}})}(n));return{operations:P(n),get featureTypes(){return Array.from(i())},readFeatureTypes:i}}((await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:_,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,o.m3)(e)&&((0,o.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,o.lM)(t.operations.DescribeFeatureType.url)),(0,o.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,o.lM)(t.operations.GetFeature.url)))}(e,n),n}const E=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function B(e){for(const t of E){const n=e.findIndex(e=>e.toLowerCase()===t);if(n>=0)return e[n]}return null}function P(e){let t=!0;const n={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},i=[],r=[];if((0,p.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&i.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{n.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{n.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{n.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&r.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{n.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),n.GetFeature.outputFormat=B(r)??B(i),!t)throw new s.A(v,"WFS service doesn't support key/value pair (KVP) encoding");if(null==n.GetFeature.outputFormat)throw new s.A(C,"WFS service doesn't support GeoJSON output format");return n}function z(e){const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function N(e,t,n){return(0,r.I6)(e,e=>n?e.name===t&&e.namespaceUri===n:e.typeName===t||e.name===t)}async function k(e,t,n,i={}){const{featureType:r,extent:o}=await async function(e,t,n,i={}){const r=e.readFeatureTypes(),o=t?N(r,t,n):r.next().value,{spatialReference:a=new u.A({wkid:o?.defaultSpatialReference})}=i;if(null==o)throw t?new s.A(S,`The type '${t}' could not be found in the service`):new s.A(x,"The service is empty");let h=o.extent;if(h&&!(0,c.aI)(h.spatialReference,a))try{await(0,l.initializeProjection)(h.spatialReference,a,void 0,i),h=(0,l.project)(h,a)}catch{throw new s.A(A,"Projection not supported")}return{extent:h,spatialReference:a,featureType:o}}(e,t,n,i),{spatialReference:a}=$(e.operations.GetFeature.url,r,i.spatialReference),{fields:h,geometryType:d,swapXY:p,objectIdField:m,geometryField:f}=await async function(e,t,n,i={}){const{typeName:r}=t,[o,a]=await Promise.allSettled([q(e.operations.DescribeFeatureType.url,r,i),O(e,r,n,i)]),l=e=>new s.A(w,`An error occurred while getting info about the feature type '${r}'`,{error:e});if("rejected"===o.status)throw l(o.reason);if("rejected"===a.status)throw l(a.reason);const{fields:u,errors:c}=o.value??{},h=o.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==h)throw new s.A(F,`The geometry type could not be determined for type '${r}`,{typeName:r,geometryType:h,fields:u,errors:c});return{...j(u??[]),geometryType:h,swapXY:d}}(e,r,a,i);return{url:e.operations.GetCapabilities.url,name:r.name,namespaceUri:r.namespaceUri,fields:h,geometryField:f,geometryType:d,objectIdField:m,spatialReference:i.spatialReference??new u.A({wkid:r.defaultSpatialReference}),extent:o,swapXY:p,wfsCapabilities:e,customParameters:i.customParameters}}function j(e){const t=e.find(e=>"geometry"===e.type);let n=e.find(e=>"oid"===e.type);return e=e.filter(e=>"geometry"!==e.type),n||(n=new f.A({name:b,type:"oid",alias:b}),e.unshift(n)),{geometryField:t?.name??null,objectIdField:n.name,fields:e}}async function O(e,t,n,s={}){let r,o=!1;const[a,l]=await Promise.all([Y(e.operations.GetFeature.url,t,n,e.operations.GetFeature.outputFormat,{...s,count:1}),(0,i.A)(e.operations.GetFeature.url,{responseType:"text",query:L(t,n,void 0,{...s,count:1}),signal:s?.signal})]),u="FeatureCollection"===a.type&&a.features[0]?.geometry;if(u){let e;switch(r=h.gy.fromJSON((0,d.xD)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){const n=e[0].toFixed(3),i=e[1].toFixed(3),s=parseFloat(t[1]).toFixed(3);n===parseFloat(t[2]).toFixed(3)&&i===s&&(o=!0)}}return{geometryType:r,swapXY:o}}async function q(e,t,n){return function(e,t){const{name:n}=D(e),i=V(t);U(i);const o=(0,r.I6)((0,p.i)(i.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===n);if(null!=o){const e=o.getAttribute("type"),t=e?(0,r.I6)((0,p.i)(i.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===D(e).name):(0,r.I6)((0,p.i)(o,{complexType:e=>e}),()=>!0);if(t)return function(e){const t=[],n=[];let i;const r=(0,p.i)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const o of r){const r=o.getAttribute("name");if(!r)continue;let a,l;if(o.hasAttribute("type")?a=D(o.getAttribute("type")).name:(0,p.p)(o,{simpleType:{restriction:e=>(a=D(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!a)continue;const u="true"===o.getAttribute("nillable");let c=!1;switch(a.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":n.push(new f.A({name:r,alias:r,type:"integer",nullable:u,length:(0,y._b)("integer")}));break;case"float":case"double":case"decimal":n.push(new f.A({name:r,alias:r,type:"double",nullable:u,length:(0,y._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":n.push(new f.A({name:r,alias:r,type:"string",nullable:u,length:l??(0,y._b)("string")}));break;case"datetime":case"date":n.push(new f.A({name:r,alias:r,type:"date",nullable:u,length:l??(0,y._b)("date")}));break;case"pointpropertytype":i="point",c=!0;break;case"multipointpropertytype":i="multipoint",c=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":i="polyline",c=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":i="polygon",c=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":c=!0,t.push(new s.A(F,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new s.A(M,`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}c&&n.push(new f.A({name:r,alias:r,type:"geometry",nullable:u}))}for(const e of n)if("integer"===e.type&&!e.nullable&&G.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:i,fields:n,errors:t}}(t)}throw new s.A(S,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(i)})}(t,(await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:_,TYPENAME:t,TYPENAMES:t,...n?.customParameters},signal:n?.signal})).data)}const G=new Set(["objectid","fid"]);async function Y(e,t,n,r,o){let{data:a}=await(0,i.A)(e,{responseType:"text",query:L(t,n,r,o),signal:o?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new s.A(T,"Error while parsing the response",{response:a,error:e})}}function L(e,t,n,i){const s="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:e,OUTPUTFORMAT:n,SRSNAME:"EPSG:"+s,STARTINDEX:i?.startIndex,COUNT:i?.count,...i?.customParameters}}async function X(e,t,n){const s=await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:t,RESULTTYPE:"hits",...n?.customParameters},signal:n?.signal}),r=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(s.data);if(r?.groups)return+r.groups.numberMatched}function V(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function D(e){const[t,n]=e.split(":");return{prefix:n?t:"",name:n??t}}function U(e){let t="",n="";if((0,p.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{n=e.textContent}})}),t)throw new s.A(`wfs-layer:${t}`,n)}function $(e,t,n){const i={wkid:t.defaultSpatialReference},s=null!=n?.wkid?{wkid:n.wkid}:i;return{spatialReference:s,getFeatureSpatialReference:(0,m.Fi)(e)||s.wkid&&t.supportedSpatialReferences.includes(s.wkid)?{wkid:s.wkid}:{wkid:t.defaultSpatialReference}}}},36708:(e,t,n)=>{n.d(t,{C_:()=>d,OH:()=>f,Vh:()=>y,on:()=>h,pc:()=>g,wB:()=>l,z7:()=>u});var i=n(37955),s=n(36563),r=n(97768),o=n(74887),a=n(14012);function l(e,t,n={}){return c(e,t,n,p)}function u(e,t,n={}){return c(e,t,n,m)}function c(e,t,n={},i){let s=null;const o=n.once?(e,n)=>{i(e)&&((0,r.xt)(s),t(e,n))}:(e,n)=>{i(e)&&t(e,n)};if(s=(0,a.Cn)(e,o,n.sync,n.equals),n.initial){const t=e();o(t,t)}return s}function h(e,t,n,o={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,r.xt)(c),n(e)}const p=l(e,(e,n)=>{h(),(0,i.wb)(e)&&(a=e,u=(0,i.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return c=(0,s.hA)(()=>{p.remove(),h()}),c}function d(e,t){return function(e,t,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,r.xt)(a)}return new Promise((i,r)=>{a=(0,s.vE)([(0,o.u7)(n,()=>{l(),r((0,o.NK)())}),c(e,e=>{l(),i(e)},{sync:!1,once:!0},t??p)])})}(e,m,t)}function p(e){return!0}function m(e){return!!e}n(80559);const f={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},37730:(e,t,n)=>{n.d(t,{T:()=>s});var i=n(43334);const s={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new i.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},39357:(e,t,n)=>{n.d(t,{H:()=>l});var i,s=n(31635),r=n(25482),o=n(10107),a=(n(44208),n(53966),n(87811),n(64108));let l=i=class extends r.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,s.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=i=(0,s.Cg)([(0,a.$)("esri.layers.support.CodedValue")],l)},50498:(e,t,n)=>{n.d(t,{Ye:()=>h,gy:()=>c,yR:()=>d});var i=n(66552),s=n(5443),r=n(91075),o=n(48526),a=n(86738),l=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:r.A,key:"type",typeMap:{extent:s.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}}},53177:(e,t,n)=>{n.d(t,{A:()=>h});var i,s=n(31635),r=n(4718),o=n(10107),a=(n(44208),n(53966),n(93223)),l=n(64108),u=n(39357),c=n(76357);let h=class extends c.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some(e=>(String(e.code)===n&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,r.o8)(this.codedValues),name:this.name})}};(0,s.Cg)([(0,o.MZ)({type:[u.H],json:{write:{isRequired:!0}}})],h.prototype,"codedValues",void 0),(0,s.Cg)([(0,a.e)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=i=(0,s.Cg)([(0,l.$)("esri.layers.support.CodedValueDomain")],h)},60999:(e,t,n)=>{n.d(t,{DZ:()=>m,Ke:()=>p,Tj:()=>c,UT:()=>f,aD:()=>g,jJ:()=>u});var i=n(31635),s=n(69622),r=n(97768),o=n(74887),a=n(10107),l=n(64108);function u(e,t,n){return(0,o.Lx)(e.map((e,i)=>t.apply(n,[e,i])))}async function c(e,t,n){return(await(0,o.Lx)(e.map((e,i)=>t.apply(n,[e,i])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function m(e){try{return h(await e)}catch(e){return(0,o.QP)(e),d(e)}}function f(e,t){return new y(e,t)}let y=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,i.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},66344:(e,t,n)=>{n.d(t,{q:()=>a});const i=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear(),this._db=null}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const n=this._db.get(e.id+t);return n?.size??0}put(e,t,n,s,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==n&&this._notifyRemove(t,a.entry,a.size,0)),s>this._maxSize)return void this._notifyRemove(t,n,s,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return i||console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,n,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new r(n,s,l)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t){t=e.id+t;const n=this._db.get(t);if(!n)return;this._size-=n.size,e.size-=n.size;let i=n.entry.usedMemory;for(;i>this._maxSize;){const e=this._notifyRemove(t,n.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}n.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;const n=this._db.get(t);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(t),++this._hit,n.entry;++this._miss}get(e,t){t=e.id+t;const n=this._db.get(t);if(void 0!==n)return this._db.delete(t),n.lives=n.lifetime,this._db.set(t,n),++this._hit,n.entry;++this._miss}peek(e,t){const n=this._db.get(e.id+t);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},n=new Array;this._db.forEach((e,i)=>{const s=e.lifetime;n[s]=(n[s]||0)+e.size,this._users.forEach(n=>{const{id:s,name:r}=n;if(i.startsWith(s)){const n=t[r]||0;t[r]=n+e.size}})});const i={};this._users.forEach(e=>{const n=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[n]||0;t[n]=s,i[n]=Math.round(100*e.hitRate)+"%"}else i[n]="0%"});const s=Object.keys(t);s.sort((e,n)=>t[n]-t[e]),s.forEach(n=>e[n]=Math.round(t[n]/2**20)+"MB / "+i[n]);for(let t=n.length-1;t>=0;--t){const i=n[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,n]of this._db)t.startsWith(e.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,n,i){const s=this._users.get(e.split(o)[0])?.removeFunc,r=s?.(t,i,n);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const n=t??this;if(n.size<=e)return;const i=t?.id;let s=!0;for(;s;){s=!1;for(const[r,a]of this._db)if(0===a.lifetime&&(!i||r.startsWith(i))){const i=t??this._users.get(r.split(o)[0]);if(this._purgeItem(r,a,i),n.size<=.9*e)return;s||=this._db.has(r)}}for(const[s,r]of this._db)if(!i||s.startsWith(i)){const i=t??this._users.get(s.split(o)[0]);if(this._purgeItem(s,r,i),n.size<=.9*e)return}}_purgeItem(e,t,n){if(this._db.delete(e),t.lives<=1){this._size-=t.size,n&&(n.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,n&&(n.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new s(0);class r{constructor(e,t,n){this.entry=e,this.size=t,this.lifetime=n,this.lives=n}}const o=":";class a{constructor(e,t){this.removeFunc=t,this._storage=new s,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy(),this._storage=null}put(e,t,n=1){this._storage.put(this,e,t,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},67482:(e,t,n)=>{function i(e){return null!=a(e)||null!=o(e)}function s(e){return l.test(e)}function r(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(c&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,i=0;for(;!t&&i<=e.length;)t=!u.test(e[i]),i++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const n=t.groups,i=+n.year,s=+n.month-1,r=+n.day,o=+(n.hours??"0"),a=+(n.minutes??"0"),u=+(n.seconds??"0");if(o>23)return null;if(a>59)return null;if(u>59)return null;const c=n.ms??"0",h=c?+c.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(i,s,r,o,a,u,h);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,s,r,o,a,u,h)}return Number.isNaN(d)?null:d}n.d(t,{Br:()=>s,Cq:()=>i,_U:()=>r});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,c=!Number.isNaN(new Date("technology 10").getTime())},69540:(e,t,n)=>{n.d(t,{OU:()=>c,Pw:()=>h});var i=n(31635),s=n(69622),r=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const n=e;let s=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,i=t.store,s={},l=new Map;for(const t in n){const o=n[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let h=null;if("function"==typeof u)h=u(c,e);else if("reference"===u)h=c;else if(h=(0,r.TU)(c,e),null!=c&&null==h)continue;0===a?l.set(t,h):s[t]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(s);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return u}};return s=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],s),s},h=c(s.A)},75503:(e,t,n)=>{n.d(t,{EC:()=>T,wq:()=>a});var i=n(4576),s=n(21818),r=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),x.prune(),S.prune(),C.prune(),v.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const i=this._toBBox;if(b(e,n))for(x.clear();n;){for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],o=n.leaf?i(r):r;b(e,o)&&(n.leaf?t(r):_(e,o)?l(r,t):x.push(r))}n=x.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!b(e,t))return!1;for(x.clear();t;){for(let i=0,s=t.children.length;i<s;i++){const s=t.children[i],r=t.leaf?n(s):s;if(b(e,r)){if(t.leaf||_(e,r))return!0;x.push(s)}}t=x.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new M([]),this}remove(e){if(!e)return this;let t,n=this._data,r=null,o=0,a=!1;const l=this._toBBox(e);for(C.clear(),v.clear();n||C.length>0;){if(n||(n=C.pop(),r=C.data[C.length-1],o=v.pop()??0,a=!0),n.leaf&&(t=(0,i.qh)(n.children,(0,s.zI)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),C.push(n),this._condense(C),this;a||n.leaf||!_(n,l)?r?(o++,n=r.children[o],a=!1):n=null:(C.push(n),v.push(o),o=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,i){const s=n-t+1;let r=this._maxEntries;if(s<=r){const i=new M(e.slice(t,n+1));return u(i,this._toBBox),i}i||(i=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(i-1)));const o=new A([]);o.height=i;const a=Math.ceil(s/r),l=a*Math.ceil(Math.sqrt(r));w(e,t,n,l,this._compareMinX);for(let s=t;s<=n;s+=l){const t=Math.min(s+l-1,n);w(e,s,t,a,this._compareMinY);for(let n=s;n<=t;n+=a){const s=Math.min(n+a-1,t);o.children.push(this._build(e,n,s,i-1))}}return u(o,this._toBBox),o}_insert(e,t,n){const i=this._toBBox,s=n?e:i(e);C.clear();const r=function(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,s=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=m(o),l=y(e,o)-a;l<s?(s=l,i=a<i?a:i,n=o):l===s&&a<i&&(i=a,n=o)}t=n||t.children[0]}return t}(s,this._data,t,C);for(r.children.push(e),h(r,s);t>=0&&C.data[t].children.length>this._maxEntries;)this._split(C,t),t--;!function(e,t,n){for(let i=n;i>=0;i--)h(t.data[i],e)}(s,C,t)}_split(e,t){const n=e.data[t],i=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,i);const r=this._chooseSplitIndex(n,s,i);if(!r)return;const o=n.children.splice(r,n.children.length-r),a=n.leaf?new M(o):new A(o);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,s,r;i=s=1/0;for(let o=t;o<=n-t;o++){const t=c(e,0,o,this._toBBox),a=c(e,o,n,this._toBBox),l=g(t,a),u=m(t)+m(a);l<i?(i=l,r=o,s=u<s?u:s):l===i&&u<s&&(s=u,r=o)}return r}_chooseSplitAxis(e,t,n){const i=e.leaf?this._compareMinX:d,s=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,s)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const s=this._toBBox,r=c(e,0,t,s),o=c(e,n-t,n,s);let a=f(r)+f(o);for(let i=t;i<n-t;i++){const t=e.children[i];h(r,e.leaf?s(t):t),a+=f(r)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];h(o,e.leaf?s(t):t),a+=f(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const s=e.data[t-1],r=s.children;r.splice((0,i.qh)(r,n,r.length,s.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(S.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,s.zI)(e));else S.pushArray(n.children);n=S.pop()??null}}function u(e,t){c(e,0,e.children.length,t,e)}function c(e,t,n,i,s){s||(s=new M([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,o=t;o<n;o++)r=e.children[o],h(s,e.leaf?i(r):r);return s}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,s-n)*Math.max(0,r-i)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function b(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function w(e,t,n,i,s){const r=[t,n];for(;r.length;){const t=r.pop(),n=r.pop();if(t-n<=i)continue;const a=n+Math.ceil((t-n)/i/2)*i;(0,o.q)(e,a,n,t,s),r.push(n,a,a,t)}}const x=new r.A,S=new r.A,C=new r.A,v=new r.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class F extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class M extends F{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends F{constructor(e){super(),this.children=e,this.leaf=!1}}},76357:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(31635),s=n(66552),r=n(25482),o=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),l=n(64108);const u=new s.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends r.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(u),(0,o.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,l.$)("esri.layers.support.Domain")],c)},80451:(e,t,n)=>{n.d(t,{rS:()=>m,gK:()=>p}),n(44208);var i,s=n(53177),r=n(76357),o=n(31635),a=(n(53966),n(87811),n(49186),n(93223)),l=n(64108);let u=class extends r.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o.Cg)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=i=(0,o.Cg)([(0,l.$)("esri.layers.support.InheritedDomain")],u);var c,h=n(10107);let d=class extends r.A{static{c=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new c({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o.Cg)([(0,h.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],d.prototype,"maxValue",void 0),(0,o.Cg)([(0,h.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],d.prototype,"minValue",void 0),(0,o.Cg)([(0,a.e)({range:"range"})],d.prototype,"type",void 0),d=c=(0,o.Cg)([(0,l.$)("esri.layers.support.RangeDomain")],d);const p={key:"type",base:r.A,typeMap:{range:d,"coded-value":s.A,inherited:u}};function m(e){if(!e?.type)return null;switch(e.type){case"range":return d.fromJSON(e);case"codedValue":return s.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},82832:(e,t,n)=>{n.d(t,{$1:()=>y,CR:()=>f,MB:()=>d,PC:()=>g,Yx:()=>l,bP:()=>c});var i=n(67482),s=n(21325),r=n(30524);class o{constructor(e){this.description=e,this.code=null}}class a{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new o(e)}}function l(e){return new a(e)}class u{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new u(e)}const h=new Set;function d(e,t,n,i=!1){h.clear();for(const s in n){const o=e.get(s);if(!o)continue;const a=p(o,n[s]);if(h.add(o.name),o&&(i||o.editable)){const e=(0,r.CJ)(o,a);if(e)return l((0,r.uo)(e,o,a));t[o.name]=a}}for(const t of e.requiredFields??[])if(!h.has(t.name))return l(`missing required field "${t.name}"`);return null}function p(e,t){let n=t;return(0,r.WA)(e)&&"string"==typeof t?n=parseFloat(t):(0,r.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,r.vE)(e)&&"string"==typeof t&&(n=(0,i._U)(t)),(0,r.WX)(n)}let m;function f(e,t){if(!e||!(0,s.fn)(t))return e;if("rings"in e||"paths"in e){if(null==m)throw new TypeError("geometry engine not loaded");return m.simplify(t,e)}return e}async function y(e,t){!(0,s.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==m&&(m=await Promise.all([n.e(3209),n.e(7559)]).then(n.bind(n,47559))),m}()}const g={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}},83221:(e,t,n)=>{n.d(t,{A:()=>m});var i=n(4576),s=n(49186),r=n(65529),o=n(53966),a=n(70328),l=n(19419),u=n(90708),c=n(6518),h=n(51441),d=n(37730);const p=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new c.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,i,s]=this.fullBounds;return{xmin:t,ymin:n,xmax:i,ymax:s,spatialReference:(0,h.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(p,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let i;if(n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);i=(0,u.jQ)(null!=i?i:(0,l.vt)(),e.geometry),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:i,attributes:r}=e;for(const e in r)n.attributes[e]=r[e];return i&&(n.geometry=i,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},85113:(e,t,n)=>{n.d(t,{BM:()=>T,bd:()=>F,sO:()=>v,xD:()=>h});var i=n(67482),s=n(49186),r=n(21325),o=n(90708),a=n(43334),l=n(92722),u=n(30524);const c={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function h(e){return c[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function m(e){for(const t of e)if(t.length>2)return!0;return!1}function f(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n],s=e[(n+1)%e.length];t+=i[0]*s[1]-s[0]*i[1]}return t<=0}function y(e){const t=e[0],n=e[e.length-1];t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t)}function g(e,t){const{coordinates:n,type:i}=e,s=t.hasZ??!1,r=!0;switch(i){case"Point":return new l.A([],[...n],s,!1);case"LineString":return(0,o.Ap)({paths:[n],hasZ:r},s,!1);case"MultiLineString":return(0,o.Ap)({paths:n,hasZ:r},s,!1);case"MultiPoint":return(0,o.PR)({points:n,hasZ:r},s,!1);case"Polygon":case"MultiPolygon":{const e=new l.A([],[],s,!1);for(const t of"Polygon"===i?[n]:n){_(e,t[0],s);for(let n=1;n<t.length;n++)b(e,t[n],s)}return e}}}function _(e,t,n){y(t),function(e){return!f(e)}(t)?x(e,t,n):w(e,t,n)}function b(e,t,n){y(t),function(e){return f(e)}(t)?x(e,t,n):w(e,t,n)}function w(e,t,n){for(const i of t)S(e,i,n);e.lengths.push(t.length)}function x(e,t,n){for(let i=t.length-1;i>=0;i--)S(e,t[i],n);e.lengths.push(t.length)}function S(e,[t,n,i],s){e.coords.push(t,n),s&&e.coords.push(i||0)}function C(e){switch(typeof e){case"string":return(0,i.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function v(e,t=4326){if(!e)throw new s.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new s.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const i="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,o=(0,r.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!i||!o.test(i))throw new s.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function T(e,t={}){const n=[],i=new Set,s=new Set;let r,o=!1,a=null,l=!1,{geometryType:c=null}=t;for(const t of d(e)){const{geometry:e,properties:d,id:f}=t;if((!e||(c||(c=h(e.type)),h(e.type)===c))&&(o||(o=m(p(e))),l||(l=null!=f,l&&(r=typeof f,d&&(a=Object.keys(d).filter(e=>d[e]===f)))),d&&a&&l&&null!=f&&(a.length>1?a=a.filter(e=>d[e]===f):1===a.length&&(a=d[a[0]]===f?a:[])),d))for(const e in d){if(i.has(e))continue;const t=C(d[e]);if("unknown"===t){s.add(e);continue}s.delete(e),i.add(e);const r=(0,u.rS)(e);r&&n.push({name:r,alias:e,type:t})}}const f=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(f)for(const e of n)if(e.name===f&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:c,hasZ:o,objectIdFieldName:f,objectIdFieldType:r,unknownFields:Array.from(s)}}function F(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:i}=t;for(const s of e){const{geometry:e,properties:r,id:o}=s;if(e&&h(e.type)!==n)continue;const l=r||{};let u;i&&(u=l[i],null==o||u||(l[i]=u=o)),yield new a.Om(e&&g(e,t),l,null,u)}}(d(e),t))}},98453:(e,t,n)=>{n.d(t,{m:()=>i});const i=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8969],{2272:(e,t,n)=>{n.d(t,{Dl:()=>u,gf:()=>h,jV:()=>l,lF:()=>c});var i=n(92602),s=n(70333),r=n(4718),o=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,r.o8)(e)}function c(e,t,n){const i={};for(const s in e){if("declaredClass"===s)continue;const r=e[s];if(null!=r&&"function"!=typeof r)if(Array.isArray(r))i[s]=r.map(e=>c(e));else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(n?.[s]);i[s]=t?e:JSON.stringify(e)}else i[s]=t?r:JSON.stringify(r);else i[s]=r}return i}async function h(e,t,r){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.CG)(e)??s.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!s.id&&i.A.request.useIdentity&&await Promise.all([n.e(7330),n.e(168),n.e(5125)]).then(n.bind(n,55125));const l=await s.id.getCredential(e,r);return l?.token}},6518:(e,t,n)=>{n.d(t,{F:()=>a});var i=n(44208),s=n(75503),r=n(19419);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s.wq(9,(0,i.A)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((n,i)=>{e[t++]=i}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(e=>this._idByBounds.has(e))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.Ie)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,n){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,n)}(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},13043:(e,t,n)=>{function i(e,t){if(e&&t)for(const n of e.children)if(n.localName in t){const e=t[n.localName];if("function"==typeof e){const t=e(n);t&&i(n,t)}else i(n,e)}}function*s(e,t){for(const n of e.children)if(n.localName in t){const e=t[n.localName];"function"==typeof e?yield e(n):yield*s(n,e)}}n.d(t,{i:()=>s,p:()=>i})},20437:(e,t,n)=>{n.d(t,{A:()=>f});var i,s=n(31635),r=n(66552),o=n(25482),a=n(10107),l=n(56507),u=(n(44208),n(87811),n(93223)),c=n(36005),h=n(64108),d=n(80451),p=n(98453);const m=new r.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=class extends o.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?m.fromJSON(n.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,s.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,s.Cg)([(0,a.MZ)()],f.prototype,"description",void 0),(0,s.Cg)([(0,c.w)("description")],f.prototype,"readDescription",null),(0,s.Cg)([(0,a.MZ)({types:d.gK,json:{read:{reader:d.rS},write:!0}})],f.prototype,"domain",void 0),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,s.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,s.Cg)([(0,u.e)(p.m)],f.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)()],f.prototype,"valueType",void 0),(0,s.Cg)([(0,c.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,s.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=i=(0,s.Cg)([(0,h.$)("esri.layers.support.Field")],f)},33771:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x});var i=n(60999),s=n(49186),r=n(53966),o=n(34727),a=n(74887),l=n(67076),u=n(21325),c=n(90708),h=n(83221),d=n(31464),p=n(56390),m=n(85113),f=n(82832),y=n(34322),g=n(95466),_=n(54218),b=n(98623);const w="esri.layers.WFSLayer";class x{constructor(){this._customParameters=null,this._queryEngine=null,this._supportsPagination=!0}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){const{getFeatureUrl:n,getFeatureOutputFormat:i,fields:r,geometryType:o,featureType:l,maxRecordCount:u,maxTotalRecordCount:c,maxPageCount:m,objectIdField:f,customParameters:_}=e,{spatialReference:w,getFeatureSpatialReference:x}=(0,y.UH)(n,l,e.spatialReference);try{await(0,d.Nk)(x,w)}catch{throw new s.A("unsupported-projection","Projection not supported",{inSpatialReference:x,outSpatialReference:w})}(0,a.Te)(t),this._customParameters=_,this._featureType=l,this._fieldsIndex=g.A.fromLayerJSON({fields:r,dateFieldsTimeReference:r.some(e=>"esriFieldTypeDate"===e.type)?{timeZoneIANA:b.n$}:null}),this._geometryType=o,this._getFeatureUrl=n,this._getFeatureOutputFormat=i,this._getFeatureSpatialReference=x,this._maxRecordCount=u,this._maxTotalRecordCount=c,this._maxPageCount=m,this._objectIdField=f,this._spatialReference=w;let C=await this._snapshotFeatures(t);if(C.errors.length>0&&(this._supportsPagination=!1,C=await this._snapshotFeatures(t),C.errors.length>0))throw C.errors[0];const v={type:"object-id",fieldName:f};return this._queryEngine=new p.do({fieldsIndex:this._fieldsIndex,geometryType:o,hasM:!1,hasZ:!1,featureIdInfo:v,spatialReference:w,timeInfo:null,featureStore:new h.A({geometryType:o,hasM:!1,hasZ:!1})}),this._queryEngine.featureStore.addMany(C.features),{warnings:S(C),extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async applyEdits(){throw new s.A("wfs-source:editing-not-supported","applyEdits() is not supported on WFSLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),(await this._queryEngine.executeQueryForIds(e,t.signal)).filter(_.Et)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),await this._queryEngine.executeQueryForSnapping(e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){return this._customParameters=e.customParameters,this._maxRecordCount=e.maxRecordCount,this._maxTotalRecordCount=e.maxTotalRecordCount,this._maxPageCount=e.maxPageCount,this._snapshotTask?.abort(),this._snapshotTask=(0,i.UT)(e=>this._snapshotFeatures({signal:e})),this._snapshotTask.promise.then(e=>{this._queryEngine.featureStore.clear(),this._queryEngine.featureStore.addMany(e.features);for(const t of S(e))r.A.getLogger(w).warn(new l.A("wfs-layer:refresh-warning",t.message,t.details));e.errors?.length&&r.A.getLogger(w).warn(new l.A("wfs-layer:refresh-error","Refresh completed with errors",{errors:e.errors}))},()=>{this._queryEngine.featureStore.clear()}),await this._waitSnapshotComplete(),{extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _snapshotFeatures(e){const t=e?.signal,n=this._maxTotalRecordCount,i=this._maxPageCount,s=this._supportsPagination&&i>1?await(0,y.E)(this._getFeatureUrl,this._featureType.typeName,{customParameters:this._customParameters,signal:t}):void 0;let r=[];const l=[];if(null==s)try{r=await this._singleQuery(t)}catch(e){(0,a.zf)(e)||l.push(e)}else{const e=Math.min(s,n),u=function*(e,t,n){for(let i=0;i<t;i++)yield e._pageQuery(i,n)}(this,(0,o.qE)(Math.ceil(e/this._maxRecordCount),1,i),t);await Promise.allSettled(Array.from({length:10}).map(()=>async function(e,t,n){let i=e.next();for(;!i.done;){try{const e=await i.value;t.push(...e)}catch(e){(0,a.zf)(e)||n.push(e)}i=e.next()}}(u,r,l)))}return(0,a.Te)(t),{features:r,totalRecordCount:s,maxTotalRecordCount:n,maxPageCount:i,errors:l}}async _singleQuery(e){const t=Number.isFinite(this._maxRecordCount)&&this._maxRecordCount>0?this._maxRecordCount:void 0,n=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,count:t,signal:e});return this._processGeoJSON(n,{signal:e})}async _pageQuery(e,t){const n=e*this._maxRecordCount,i=await(0,y.x$)(this._getFeatureUrl,this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,startIndex:n,count:this._maxRecordCount,signal:t});return this._processGeoJSON(i,{startIndex:n,signal:t})}_processGeoJSON(e,t){(0,m.sO)(e,this._getFeatureSpatialReference.wkid);const{startIndex:n,signal:i}=t;(0,a.Te)(i);const s=(0,m.bd)(e,{geometryType:this._geometryType,hasZ:!1,objectIdField:this._objectIdField});if(!(0,u.aI)(this._spatialReference,this._getFeatureSpatialReference))for(const e of s)null!=e.geometry&&(e.geometry=(0,c.Ux)((0,d.Cv)((0,c.zv)(e.geometry,this._geometryType,!1,!1),this._getFeatureSpatialReference,this._spatialReference)));let r=n??1;for(const e of s){const t={};(0,f.MB)(this._fieldsIndex,t,e.attributes,!0),e.attributes=t,null==t[this._objectIdField]&&(e.objectId=t[this._objectIdField]=r++)}return s}}function S(e){const t=[];return null!=e.totalRecordCount&&(e.features.length<e.totalRecordCount&&t.push({name:"wfs-layer:maxRecordCount-too-low",message:`Could only fetch ${e.features.length} of ${e.totalRecordCount} in ${e.maxPageCount} queries. Try increasing the value of WFSLayer.maxRecordCount.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount}}),e.totalRecordCount>e.maxTotalRecordCount&&t.push({name:"wfs-layer:large-dataset",message:`The number of ${e.totalRecordCount} features exceeds the maximum allowed of ${e.maxTotalRecordCount}.`,details:{recordCount:e.features.length,totalRecordCount:e.totalRecordCount,maxTotalRecordCount:e.maxTotalRecordCount}})),t}},34322:(e,t,n)=>{n.d(t,{E:()=>X,Fu:()=>I,O8:()=>k,UH:()=>$,YW:()=>j,i5:()=>b,mG:()=>N,x$:()=>Y});var i=n(11254),s=n(49186),r=n(5479),o=n(84952),a=n(5443),l=n(91218),u=n(16930),c=n(21325),h=n(50498),d=n(85113),p=n(13043),m=n(60694),f=n(20437),y=n(30524);const g="xlink:href",_="2.0.0",b="__esri_wfs_id__",w="wfs-layer:getWFSLayerTypeInfo-error",x="wfs-layer:empty-service",S="wfs-layer:feature-type-not-found",C="wfs-layer:geojson-not-supported",v="wfs-layer:kvp-encoding-not-supported",T="wfs-layer:malformed-json",F="wfs-layer:unknown-geometry-type",M="wfs-layer:unknown-field-type",A="wfs-layer:unsupported-spatial-reference",R="wfs-layer:unsupported-wfs-version";async function I(e,t){const n=function(e){const t=V(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==_)throw new s.A(R,`Unsupported WFS version ${t}. Supported version: ${_}`)})(t),U(t);const n=t.firstElementChild,i=(0,r.PP)(function(e){return(0,p.i)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},n=new Set;return(0,p.p)(e,{Name:e=>{const{name:n,prefix:i}=D(e.textContent);t.typeName=`${i}:${n}`,t.name=n,t.namespacePrefix=i,t.namespaceUri=e.lookupNamespaceURI(i)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=a.A.fromJSON(function(e){let t,n,i,s;for(const r of e.children)switch(r.localName){case"LowerCorner":[t,n]=r.textContent.split(" ").map(e=>Number.parseFloat(e));break;case"UpperCorner":[i,s]=r.textContent.split(" ").map(e=>Number.parseFloat(e))}return{xmin:t,ymin:n,xmax:i,ymax:s,spatialReference:c.KK}}(e))},DefaultCRS:e=>{const i=z(e);i&&(t.defaultSpatialReference=i,n.add(i))},OtherCRS:e=>{const t=z(e);t&&n.add(t)}}),t.title||(t.title=t.name),n.add(4326),t.supportedSpatialReferences.push(...n),t}}})}(n));return{operations:P(n),get featureTypes(){return Array.from(i())},readFeatureTypes:i}}((await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:_,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,o.m3)(e)&&((0,o.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,o.lM)(t.operations.DescribeFeatureType.url)),(0,o.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,o.lM)(t.operations.GetFeature.url)))}(e,n),n}const E=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function B(e){for(const t of E){const n=e.findIndex(e=>e.toLowerCase()===t);if(n>=0)return e[n]}return null}function P(e){let t=!0;const n={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},i=[],r=[];if((0,p.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&i.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{n.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{n.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{n.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&r.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{n.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),n.GetFeature.outputFormat=B(r)??B(i),!t)throw new s.A(v,"WFS service doesn't support key/value pair (KVP) encoding");if(null==n.GetFeature.outputFormat)throw new s.A(C,"WFS service doesn't support GeoJSON output format");return n}function z(e){const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function N(e,t,n){return(0,r.I6)(e,e=>n?e.name===t&&e.namespaceUri===n:e.typeName===t||e.name===t)}async function k(e,t,n,i={}){const{featureType:r,extent:o}=await async function(e,t,n,i={}){const r=e.readFeatureTypes(),o=t?N(r,t,n):r.next().value,{spatialReference:a=new u.A({wkid:o?.defaultSpatialReference})}=i;if(null==o)throw t?new s.A(S,`The type '${t}' could not be found in the service`):new s.A(x,"The service is empty");let h=o.extent;if(h&&!(0,c.aI)(h.spatialReference,a))try{await(0,l.initializeProjection)(h.spatialReference,a,void 0,i),h=(0,l.project)(h,a)}catch{throw new s.A(A,"Projection not supported")}return{extent:h,spatialReference:a,featureType:o}}(e,t,n,i),{spatialReference:a}=$(e.operations.GetFeature.url,r,i.spatialReference),{fields:h,geometryType:d,swapXY:p,objectIdField:m,geometryField:f}=await async function(e,t,n,i={}){const{typeName:r}=t,[o,a]=await Promise.allSettled([q(e.operations.DescribeFeatureType.url,r,i),O(e,r,n,i)]),l=e=>new s.A(w,`An error occurred while getting info about the feature type '${r}'`,{error:e});if("rejected"===o.status)throw l(o.reason);if("rejected"===a.status)throw l(a.reason);const{fields:u,errors:c}=o.value??{},h=o.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==h)throw new s.A(F,`The geometry type could not be determined for type '${r}`,{typeName:r,geometryType:h,fields:u,errors:c});return{...j(u??[]),geometryType:h,swapXY:d}}(e,r,a,i);return{url:e.operations.GetCapabilities.url,name:r.name,namespaceUri:r.namespaceUri,fields:h,geometryField:f,geometryType:d,objectIdField:m,spatialReference:i.spatialReference??new u.A({wkid:r.defaultSpatialReference}),extent:o,swapXY:p,wfsCapabilities:e,customParameters:i.customParameters}}function j(e){const t=e.find(e=>"geometry"===e.type);let n=e.find(e=>"oid"===e.type);return e=e.filter(e=>"geometry"!==e.type),n||(n=new f.A({name:b,type:"oid",alias:b}),e.unshift(n)),{geometryField:t?.name??null,objectIdField:n.name,fields:e}}async function O(e,t,n,s={}){let r,o=!1;const[a,l]=await Promise.all([Y(e.operations.GetFeature.url,t,n,e.operations.GetFeature.outputFormat,{...s,count:1}),(0,i.A)(e.operations.GetFeature.url,{responseType:"text",query:L(t,n,void 0,{...s,count:1}),signal:s?.signal})]),u="FeatureCollection"===a.type&&a.features[0]?.geometry;if(u){let e;switch(r=h.gy.fromJSON((0,d.xD)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){const n=e[0].toFixed(3),i=e[1].toFixed(3),s=parseFloat(t[1]).toFixed(3);n===parseFloat(t[2]).toFixed(3)&&i===s&&(o=!0)}}return{geometryType:r,swapXY:o}}async function q(e,t,n){return function(e,t){const{name:n}=D(e),i=V(t);U(i);const o=(0,r.I6)((0,p.i)(i.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===n);if(null!=o){const e=o.getAttribute("type"),t=e?(0,r.I6)((0,p.i)(i.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===D(e).name):(0,r.I6)((0,p.i)(o,{complexType:e=>e}),()=>!0);if(t)return function(e){const t=[],n=[];let i;const r=(0,p.i)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const o of r){const r=o.getAttribute("name");if(!r)continue;let a,l;if(o.hasAttribute("type")?a=D(o.getAttribute("type")).name:(0,p.p)(o,{simpleType:{restriction:e=>(a=D(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!a)continue;const u="true"===o.getAttribute("nillable");let c=!1;switch(a.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":n.push(new f.A({name:r,alias:r,type:"integer",nullable:u,length:(0,y._b)("integer")}));break;case"float":case"double":case"decimal":n.push(new f.A({name:r,alias:r,type:"double",nullable:u,length:(0,y._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":n.push(new f.A({name:r,alias:r,type:"string",nullable:u,length:l??(0,y._b)("string")}));break;case"datetime":case"date":n.push(new f.A({name:r,alias:r,type:"date",nullable:u,length:l??(0,y._b)("date")}));break;case"pointpropertytype":i="point",c=!0;break;case"multipointpropertytype":i="multipoint",c=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":i="polyline",c=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":i="polygon",c=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":c=!0,t.push(new s.A(F,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new s.A(M,`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}c&&n.push(new f.A({name:r,alias:r,type:"geometry",nullable:u}))}for(const e of n)if("integer"===e.type&&!e.nullable&&G.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:i,fields:n,errors:t}}(t)}throw new s.A(S,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(i)})}(t,(await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:_,TYPENAME:t,TYPENAMES:t,...n?.customParameters},signal:n?.signal})).data)}const G=new Set(["objectid","fid"]);async function Y(e,t,n,r,o){let{data:a}=await(0,i.A)(e,{responseType:"text",query:L(t,n,r,o),signal:o?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new s.A(T,"Error while parsing the response",{response:a,error:e})}}function L(e,t,n,i){const s="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:e,OUTPUTFORMAT:n,SRSNAME:"EPSG:"+s,STARTINDEX:i?.startIndex,COUNT:i?.count,...i?.customParameters}}async function X(e,t,n){const s=await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:_,TYPENAMES:t,RESULTTYPE:"hits",...n?.customParameters},signal:n?.signal}),r=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(s.data);if(r?.groups)return+r.groups.numberMatched}function V(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function D(e){const[t,n]=e.split(":");return{prefix:n?t:"",name:n??t}}function U(e){let t="",n="";if((0,p.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{n=e.textContent}})}),t)throw new s.A(`wfs-layer:${t}`,n)}function $(e,t,n){const i={wkid:t.defaultSpatialReference},s=null!=n?.wkid?{wkid:n.wkid}:i;return{spatialReference:s,getFeatureSpatialReference:(0,m.Fi)(e)||s.wkid&&t.supportedSpatialReferences.includes(s.wkid)?{wkid:s.wkid}:{wkid:t.defaultSpatialReference}}}},36708:(e,t,n)=>{n.d(t,{C_:()=>d,OH:()=>f,Vh:()=>y,on:()=>h,pc:()=>g,wB:()=>l,z7:()=>u});var i=n(37955),s=n(36563),r=n(97768),o=n(74887),a=n(14012);function l(e,t,n={}){return c(e,t,n,p)}function u(e,t,n={}){return c(e,t,n,m)}function c(e,t,n={},i){let s=null;const o=n.once?(e,n)=>{i(e)&&((0,r.xt)(s),t(e,n))}:(e,n)=>{i(e)&&t(e,n)};if(s=(0,a.Cn)(e,o,n.sync,n.equals),n.initial){const t=e();o(t,t)}return s}function h(e,t,n,o={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,r.xt)(c),n(e)}const p=l(e,(e,n)=>{h(),(0,i.wb)(e)&&(a=e,u=(0,i.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return c=(0,s.hA)(()=>{p.remove(),h()}),c}function d(e,t){return function(e,t,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,r.xt)(a)}return new Promise((i,r)=>{a=(0,s.vE)([(0,o.u7)(n,()=>{l(),r((0,o.NK)())}),c(e,e=>{l(),i(e)},{sync:!1,once:!0},t??p)])})}(e,m,t)}function p(e){return!0}function m(e){return!!e}n(80559);const f={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},37730:(e,t,n)=>{n.d(t,{T:()=>s});var i=n(43334);const s={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new i.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},39357:(e,t,n)=>{n.d(t,{H:()=>l});var i,s=n(31635),r=n(25482),o=n(10107),a=(n(44208),n(53966),n(87811),n(64108));let l=i=class extends r.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,s.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=i=(0,s.Cg)([(0,a.$)("esri.layers.support.CodedValue")],l)},50498:(e,t,n)=>{n.d(t,{Ye:()=>h,gy:()=>c,yR:()=>d});var i=n(66552),s=n(5443),r=n(91075),o=n(48526),a=n(86738),l=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:r.A,key:"type",typeMap:{extent:s.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}}},53177:(e,t,n)=>{n.d(t,{A:()=>h});var i,s=n(31635),r=n(4718),o=n(10107),a=(n(44208),n(53966),n(93223)),l=n(64108),u=n(39357),c=n(76357);let h=class extends c.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some(e=>(String(e.code)===n&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,r.o8)(this.codedValues),name:this.name})}};(0,s.Cg)([(0,o.MZ)({type:[u.H],json:{write:{isRequired:!0}}})],h.prototype,"codedValues",void 0),(0,s.Cg)([(0,a.e)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=i=(0,s.Cg)([(0,l.$)("esri.layers.support.CodedValueDomain")],h)},60999:(e,t,n)=>{n.d(t,{DZ:()=>m,Ke:()=>p,Tj:()=>c,UT:()=>f,aD:()=>g,jJ:()=>u});var i=n(31635),s=n(69622),r=n(97768),o=n(74887),a=n(10107),l=n(64108);function u(e,t,n){return(0,o.Lx)(e.map((e,i)=>t.apply(n,[e,i])))}async function c(e,t,n){return(await(0,o.Lx)(e.map((e,i)=>t.apply(n,[e,i])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function m(e){try{return h(await e)}catch(e){return(0,o.QP)(e),d(e)}}function f(e,t){return new y(e,t)}let y=class extends s.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,r.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=e(n),this.promise.then(e=>{this._result=h(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,r.xt)(this._abortHandle),this._abortController=null}};(0,i.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,i.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,i.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,i.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,i.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}}},66344:(e,t,n)=>{n.d(t,{q:()=>a});const i=!!(0,n(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear(),this._db=null}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const n=this._db.get(e.id+t);return n?.size??0}put(e,t,n,s,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==n&&this._notifyRemove(t,a.entry,a.size,0)),s>this._maxSize)return void this._notifyRemove(t,n,s,0);if(void 0===n)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return i||console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,n,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new r(n,s,l)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t){t=e.id+t;const n=this._db.get(t);if(!n)return;this._size-=n.size,e.size-=n.size;let i=n.entry.usedMemory;for(;i>this._maxSize;){const e=this._notifyRemove(t,n.entry,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}n.size=i,this._size+=i,e.size+=i,this._checkSize()}pop(e,t){t=e.id+t;const n=this._db.get(t);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(t),++this._hit,n.entry;++this._miss}get(e,t){t=e.id+t;const n=this._db.get(t);if(void 0!==n)return this._db.delete(t),n.lives=n.lifetime,this._db.set(t,n),++this._hit,n.entry;++this._miss}peek(e,t){const n=this._db.get(e.id+t);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},n=new Array;this._db.forEach((e,i)=>{const s=e.lifetime;n[s]=(n[s]||0)+e.size,this._users.forEach(n=>{const{id:s,name:r}=n;if(i.startsWith(s)){const n=t[r]||0;t[r]=n+e.size}})});const i={};this._users.forEach(e=>{const n=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[n]||0;t[n]=s,i[n]=Math.round(100*e.hitRate)+"%"}else i[n]="0%"});const s=Object.keys(t);s.sort((e,n)=>t[n]-t[e]),s.forEach(n=>e[n]=Math.round(t[n]/2**20)+"MB / "+i[n]);for(let t=n.length-1;t>=0;--t){const i=n[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,n]of this._db)t.startsWith(e.id)&&(yield n.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,n,i){const s=this._users.get(e.split(o)[0])?.removeFunc,r=s?.(t,i,n);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const n=t??this;if(n.size<=e)return;const i=t?.id;let s=!0;for(;s;){s=!1;for(const[r,a]of this._db)if(0===a.lifetime&&(!i||r.startsWith(i))){const i=t??this._users.get(r.split(o)[0]);if(this._purgeItem(r,a,i),n.size<=.9*e)return;s||=this._db.has(r)}}for(const[s,r]of this._db)if(!i||s.startsWith(i)){const i=t??this._users.get(s.split(o)[0]);if(this._purgeItem(s,r,i),n.size<=.9*e)return}}_purgeItem(e,t,n){if(this._db.delete(e),t.lives<=1){this._size-=t.size,n&&(n.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,n&&(n.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new s(0);class r{constructor(e,t,n){this.entry=e,this.size=t,this.lifetime=n,this.lives=n}}const o=":";class a{constructor(e,t){this.removeFunc=t,this._storage=new s,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy(),this._storage=null}put(e,t,n=1){this._storage.put(this,e,t,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},67482:(e,t,n)=>{function i(e){return null!=a(e)||null!=o(e)}function s(e){return l.test(e)}function r(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(c&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,i=0;for(;!t&&i<=e.length;)t=!u.test(e[i]),i++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const n=t.groups,i=+n.year,s=+n.month-1,r=+n.day,o=+(n.hours??"0"),a=+(n.minutes??"0"),u=+(n.seconds??"0");if(o>23)return null;if(a>59)return null;if(u>59)return null;const c=n.ms??"0",h=c?+c.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(i,s,r,o,a,u,h);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,s,r,o,a,u,h)}return Number.isNaN(d)?null:d}n.d(t,{Br:()=>s,Cq:()=>i,_U:()=>r});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,c=!Number.isNaN(new Date("technology 10").getTime())},69540:(e,t,n)=>{n.d(t,{OU:()=>c,Pw:()=>h});var i=n(31635),s=n(69622),r=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(64108);const u=Symbol("ClonableMixin"),c=e=>{var t;const n=e;let s=class extends n{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,i=t.store,s={},l=new Map;for(const t in n){const o=n[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let h=null;if("function"==typeof u)h=u(c,e);else if("reference"===u)h=c;else if(h=(0,r.TU)(c,e),null!=c&&null==h)continue;0===a?l.set(t,h):s[t]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(s);if(l.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,n]of l)e.set(t,n,0)}return u}};return s=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],s),s},h=c(s.A)},75503:(e,t,n)=>{n.d(t,{EC:()=>T,wq:()=>a});var i=n(4576),s=n(21818),r=(n(44208),n(15142)),o=n(11006);class a{constructor(e=9,t){this._compareMinX=d,this._compareMinY=p,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),x.prune(),S.prune(),C.prune(),v.prune()}all(e){l(this._data,e)}search(e,t){let n=this._data;const i=this._toBBox;if(b(e,n))for(x.clear();n;){for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],o=n.leaf?i(r):r;b(e,o)&&(n.leaf?t(r):_(e,o)?l(r,t):x.push(r))}n=x.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!b(e,t))return!1;for(x.clear();t;){for(let i=0,s=t.children.length;i<s;i++){const s=t.children[i],r=t.leaf?n(s):s;if(b(e,r)){if(t.leaf||_(e,r))return!0;x.push(s)}}t=x.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,n=e.length;t<n;t++)this.insert(e[t]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new M([]),this}remove(e){if(!e)return this;let t,n=this._data,r=null,o=0,a=!1;const l=this._toBBox(e);for(C.clear(),v.clear();n||C.length>0;){if(n||(n=C.pop(),r=C.data[C.length-1],o=v.pop()??0,a=!0),n.leaf&&(t=(0,i.qh)(n.children,(0,s.zI)(e),n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),C.push(n),this._condense(C),this;a||n.leaf||!_(n,l)?r?(o++,n=r.children[o],a=!1):n=null:(C.push(n),v.push(o),o=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_build(e,t,n,i){const s=n-t+1;let r=this._maxEntries;if(s<=r){const i=new M(e.slice(t,n+1));return u(i,this._toBBox),i}i||(i=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(i-1)));const o=new A([]);o.height=i;const a=Math.ceil(s/r),l=a*Math.ceil(Math.sqrt(r));w(e,t,n,l,this._compareMinX);for(let s=t;s<=n;s+=l){const t=Math.min(s+l-1,n);w(e,s,t,a,this._compareMinY);for(let n=s;n<=t;n+=a){const s=Math.min(n+a-1,t);o.children.push(this._build(e,n,s,i-1))}}return u(o,this._toBBox),o}_insert(e,t,n){const i=this._toBBox,s=n?e:i(e);C.clear();const r=function(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,s=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=m(o),l=y(e,o)-a;l<s?(s=l,i=a<i?a:i,n=o):l===s&&a<i&&(i=a,n=o)}t=n||t.children[0]}return t}(s,this._data,t,C);for(r.children.push(e),h(r,s);t>=0&&C.data[t].children.length>this._maxEntries;)this._split(C,t),t--;!function(e,t,n){for(let i=n;i>=0;i--)h(t.data[i],e)}(s,C,t)}_split(e,t){const n=e.data[t],i=n.children.length,s=this._minEntries;this._chooseSplitAxis(n,s,i);const r=this._chooseSplitIndex(n,s,i);if(!r)return;const o=n.children.splice(r,n.children.length-r),a=n.leaf?new M(o):new A(o);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),t?e.data[t-1].children.push(a):this._splitRoot(n,a)}_splitRoot(e,t){this._data=new A([e,t]),this._data.height=e.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,s,r;i=s=1/0;for(let o=t;o<=n-t;o++){const t=c(e,0,o,this._toBBox),a=c(e,o,n,this._toBBox),l=g(t,a),u=m(t)+m(a);l<i?(i=l,r=o,s=u<s?u:s):l===i&&u<s&&(s=u,r=o)}return r}_chooseSplitAxis(e,t,n){const i=e.leaf?this._compareMinX:d,s=e.leaf?this._compareMinY:p;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,s)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const s=this._toBBox,r=c(e,0,t,s),o=c(e,n-t,n,s);let a=f(r)+f(o);for(let i=t;i<n-t;i++){const t=e.children[i];h(r,e.leaf?s(t):t),a+=f(r)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];h(o,e.leaf?s(t):t),a+=f(o)}return a}_condense(e){for(let t=e.length-1;t>=0;t--){const n=e.data[t];if(0===n.children.length)if(t>0){const s=e.data[t-1],r=s.children;r.splice((0,i.qh)(r,n,r.length,s.indexHint),1)}else this.clear();else u(n,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function l(e,t){let n=e;for(S.clear();n;){if(!0===n.leaf)for(const e of n.children)t((0,s.zI)(e));else S.pushArray(n.children);n=S.pop()??null}}function u(e,t){c(e,0,e.children.length,t,e)}function c(e,t,n,i,s){s||(s=new M([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,o=t;o<n;o++)r=e.children[o],h(s,e.leaf?i(r):r);return s}function h(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function d(e,t){return e.minX-t.minX}function p(e,t){return e.minY-t.minY}function m(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function y(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function g(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),s=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,s-n)*Math.max(0,r-i)}function _(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function b(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function w(e,t,n,i,s){const r=[t,n];for(;r.length;){const t=r.pop(),n=r.pop();if(t-n<=i)continue;const a=n+Math.ceil((t-n)/i/2)*i;(0,o.q)(e,a,n,t,s),r.push(n,a,a,t)}}const x=new r.A,S=new r.A,C=new r.A,v=new r.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class F extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new i.vW}}class M extends F{constructor(e){super(),this.children=e,this.leaf=!0}}class A extends F{constructor(e){super(),this.children=e,this.leaf=!1}}},76357:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(31635),s=n(66552),r=n(25482),o=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),l=n(64108);const u=new s.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends r.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(u),(0,o.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,l.$)("esri.layers.support.Domain")],c)},80451:(e,t,n)=>{n.d(t,{rS:()=>m,gK:()=>p}),n(44208);var i,s=n(53177),r=n(76357),o=n(31635),a=(n(53966),n(87811),n(49186),n(93223)),l=n(64108);let u=class extends r.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o.Cg)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=i=(0,o.Cg)([(0,l.$)("esri.layers.support.InheritedDomain")],u);var c,h=n(10107);let d=class extends r.A{static{c=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new c({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o.Cg)([(0,h.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],d.prototype,"maxValue",void 0),(0,o.Cg)([(0,h.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],d.prototype,"minValue",void 0),(0,o.Cg)([(0,a.e)({range:"range"})],d.prototype,"type",void 0),d=c=(0,o.Cg)([(0,l.$)("esri.layers.support.RangeDomain")],d);const p={key:"type",base:r.A,typeMap:{range:d,"coded-value":s.A,inherited:u}};function m(e){if(!e?.type)return null;switch(e.type){case"range":return d.fromJSON(e);case"codedValue":return s.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},82832:(e,t,n)=>{n.d(t,{$1:()=>y,CR:()=>f,MB:()=>d,PC:()=>g,Yx:()=>l,bP:()=>c});var i=n(67482),s=n(21325),r=n(30524);class o{constructor(e){this.description=e,this.code=null}}class a{constructor(e){this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error=new o(e)}}function l(e){return new a(e)}class u{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new u(e)}const h=new Set;function d(e,t,n,i=!1){h.clear();for(const s in n){const o=e.get(s);if(!o)continue;const a=p(o,n[s]);if(h.add(o.name),o&&(i||o.editable)){const e=(0,r.CJ)(o,a);if(e)return l((0,r.uo)(e,o,a));t[o.name]=a}}for(const t of e.requiredFields??[])if(!h.has(t.name))return l(`missing required field "${t.name}"`);return null}function p(e,t){let n=t;return(0,r.WA)(e)&&"string"==typeof t?n=parseFloat(t):(0,r.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,r.vE)(e)&&"string"==typeof t&&(n=(0,i._U)(t)),(0,r.WX)(n)}let m;function f(e,t){if(!e||!(0,s.fn)(t))return e;if("rings"in e||"paths"in e){if(null==m)throw new TypeError("geometry engine not loaded");return m.simplify(t,e)}return e}async function y(e,t){!(0,s.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==m&&(m=await Promise.all([n.e(3209),n.e(7559)]).then(n.bind(n,47559))),m}()}const g={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}},83221:(e,t,n)=>{n.d(t,{A:()=>m});var i=n(4576),s=n(49186),r=n(65529),o=n(53966),a=n(70328),l=n(19419),u=n(90708),c=n(6518),h=n(51441),d=n(37730);const p=(0,a.vt)();class m{constructor(e){this.geometryInfo=e,this._boundsStore=new c.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=d.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,n,i,s]=this.fullBounds;return{xmin:t,ymin:n,xmax:i,ymax:s,spatialReference:(0,h.ag)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map(e=>this._upsert(e));return this._emitChanged(),t.filter(i.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t((0,a.Jt)(p,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let i;if(n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);i=(0,u.jQ)(null!=i?i:(0,l.vt)(),e.geometry),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e),this._usedMemory+=this.estimateFeatureUsedMemory?.(e)??0}_upsert(e){const t=e?.objectId;if(null==t)return o.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0;const{geometry:i,attributes:r}=e;for(const e in r)n.attributes[e]=r[e];return i&&(n.geometry=i,this._boundsStore.set(t,(0,u.jQ)((0,l.vt)(),i)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(n)??0,n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._boundsStore.delete(t),this._featuresById.delete(t),this._usedMemory-=this.estimateFeatureUsedMemory?.(e)??0,e}}},85113:(e,t,n)=>{n.d(t,{BM:()=>T,bd:()=>F,sO:()=>v,xD:()=>h});var i=n(67482),s=n(49186),r=n(21325),o=n(90708),a=n(43334),l=n(92722),u=n(30524);const c={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function h(e){return c[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function m(e){for(const t of e)if(t.length>2)return!0;return!1}function f(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n],s=e[(n+1)%e.length];t+=i[0]*s[1]-s[0]*i[1]}return t<=0}function y(e){const t=e[0],n=e[e.length-1];t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t)}function g(e,t){const{coordinates:n,type:i}=e,s=t.hasZ??!1,r=!0;switch(i){case"Point":return new l.A([],[...n],s,!1);case"LineString":return(0,o.Ap)({paths:[n],hasZ:r},s,!1);case"MultiLineString":return(0,o.Ap)({paths:n,hasZ:r},s,!1);case"MultiPoint":return(0,o.PR)({points:n,hasZ:r},s,!1);case"Polygon":case"MultiPolygon":{const e=new l.A([],[],s,!1);for(const t of"Polygon"===i?[n]:n){_(e,t[0],s);for(let n=1;n<t.length;n++)b(e,t[n],s)}return e}}}function _(e,t,n){y(t),function(e){return!f(e)}(t)?x(e,t,n):w(e,t,n)}function b(e,t,n){y(t),function(e){return f(e)}(t)?x(e,t,n):w(e,t,n)}function w(e,t,n){for(const i of t)S(e,i,n);e.lengths.push(t.length)}function x(e,t,n){for(let i=t.length-1;i>=0;i--)S(e,t[i],n);e.lengths.push(t.length)}function S(e,[t,n,i],s){e.coords.push(t,n),s&&e.coords.push(i||0)}function C(e){switch(typeof e){case"string":return(0,i.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function v(e,t=4326){if(!e)throw new s.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new s.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const i="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,o=(0,r.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!i||!o.test(i))throw new s.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function T(e,t={}){const n=[],i=new Set,s=new Set;let r,o=!1,a=null,l=!1,{geometryType:c=null}=t;for(const t of d(e)){const{geometry:e,properties:d,id:f}=t;if((!e||(c||(c=h(e.type)),h(e.type)===c))&&(o||(o=m(p(e))),l||(l=null!=f,l&&(r=typeof f,d&&(a=Object.keys(d).filter(e=>d[e]===f)))),d&&a&&l&&null!=f&&(a.length>1?a=a.filter(e=>d[e]===f):1===a.length&&(a=d[a[0]]===f?a:[])),d))for(const e in d){if(i.has(e))continue;const t=C(d[e]);if("unknown"===t){s.add(e);continue}s.delete(e),i.add(e);const r=(0,u.rS)(e);r&&n.push({name:r,alias:e,type:t})}}const f=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(f)for(const e of n)if(e.name===f&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:c,hasZ:o,objectIdFieldName:f,objectIdFieldType:r,unknownFields:Array.from(s)}}function F(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:i}=t;for(const s of e){const{geometry:e,properties:r,id:o}=s;if(e&&h(e.type)!==n)continue;const l=r||{};let u;i&&(u=l[i],null==o||u||(l[i]=u=o)),yield new a.Om(e&&g(e,t),l,null,u)}}(d(e),t))}},98453:(e,t,n)=>{n.d(t,{m:()=>i});const i=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})}}]);