@arcgis/core 4.29.0 → 4.29.1

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 (257) hide show
  1. package/arcade/treeAnalysis.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{b43fde3e25d0c3b020b5.js → 039a872509872ce67ba4.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{5243f9ff21e768c620c2.js → 23a5d750d93a7829174f.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{47e6119be4a4a5ed640d.js → 2447a4d5886aeb0ff72a.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{7f45a9e9bdbcffc2d6e0.js → 348bcc57b99a975902a8.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{8c9fb2601488998013ba.js → 3523789a2948a4ab8cc8.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{24649b410b757599a549.js → 48db6e0bbb1a9c043193.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{752082be991f1cc8558f.js → 4984e2b79d862114d6a6.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{8d9736fd15cdb54d9855.js → 5227f9eea6988aadad7f.js} +1 -1
  11. package/assets/esri/core/workers/chunks/58723274ef657fe212eb.js +1 -0
  12. package/assets/esri/core/workers/chunks/60ab18c6a04d4b2f1d4c.js +1 -0
  13. package/assets/esri/core/workers/chunks/647515801d94180b8402.js +1 -0
  14. package/assets/esri/core/workers/chunks/6c3ae96ec90e9ed7dd50.js +1 -0
  15. package/assets/esri/core/workers/chunks/7a8bba91769ee18cc39f.js +1 -0
  16. package/assets/esri/core/workers/chunks/7a98d2e026f63a581b1e.js +1 -0
  17. package/assets/esri/core/workers/chunks/8c360923cd1850767d3e.js +1 -0
  18. package/assets/esri/core/workers/chunks/{1a25ba411b89e050fbb7.js → a61f337802ae963d7f65.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{d0c5318d7ef2e923aad0.js → a8ac511280f873960d46.js} +1 -1
  20. package/assets/esri/core/workers/chunks/b125ab84b7761e761734.js +1 -0
  21. package/assets/esri/core/workers/chunks/{b34d6e58b125fe111f91.js → b42a83db83851cb57d44.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{1497dd943df7eede0704.js → b9c55ff1f21db198ce03.js} +1 -1
  23. package/assets/esri/core/workers/chunks/bb3322ddb89c0bd444f0.js +1 -0
  24. package/assets/esri/core/workers/chunks/becfdaeeb07f089d8be7.js +1 -0
  25. package/assets/esri/core/workers/chunks/{b26e39a399963c176d33.js → c527692694688a5b3b07.js} +2 -2
  26. package/assets/esri/core/workers/chunks/{210a93e0b96c5bff44a3.js → c556644bb0cf88770939.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{a5e7b4acae17f88e2208.js → ce93027b6b81428ce9b0.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{b8ece275abac93f3dccf.js → d14f16bfa6c12909929c.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{1594f06a2d7d9439c62e.js → e2147c99cc5839654be1.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{d33ed3a2a0d4b640bd4a.js → e4c7d8c69e4957c9d27c.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{7709248f59520aee6f51.js → eceaa46f622f6fa31128.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{2286db4c83ff1b6fb088.js → ef3e6209e6ac6a56960b.js} +1 -1
  33. package/assets/esri/core/workers/chunks/f59b5ea05caca8a1a398.js +1 -0
  34. package/chunks/Laserlines.glsl.js +3 -3
  35. package/chunks/Precipitation.glsl.js +1 -1
  36. package/chunks/SSAOBlur.glsl.js +2 -2
  37. package/chunks/boundedPlane.js +1 -1
  38. package/chunks/cameraUtilsSpherical.js +1 -1
  39. package/chunks/sphere.js +1 -1
  40. package/chunks/terrainUtilsPlanar.js +1 -1
  41. package/chunks/vec32.js +1 -1
  42. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  43. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  44. package/core/libs/gl-matrix-2/vec3.js +1 -1
  45. package/geometry/support/axisAngleDegrees.js +1 -1
  46. package/geometry/support/coordinateSystem.js +1 -1
  47. package/geometry/support/lineSegment.js +1 -1
  48. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  49. package/geometry/support/meshUtils/georeference.js +1 -1
  50. package/geometry/support/meshUtils/merge.js +1 -1
  51. package/geometry/support/meshUtils/rotate.js +1 -1
  52. package/geometry/support/meshUtils/scale.js +1 -1
  53. package/geometry/support/meshUtils/vertexSpaceConversion.js +5 -0
  54. package/geometry/support/meshVertexSpaceUtils.js +1 -1
  55. package/geometry/support/plane.js +1 -1
  56. package/geometry/support/ray.js +1 -1
  57. package/geometry/support/triangle.js +1 -1
  58. package/geometry/support/vector.js +1 -1
  59. package/interfaces.d.ts +6 -6
  60. package/kernel.js +1 -1
  61. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  62. package/layers/LinkChartLayer.js +1 -1
  63. package/layers/VoxelWasmPerSceneView.js +1 -1
  64. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  65. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  66. package/layers/mixins/FeatureReductionLayer.js +1 -1
  67. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  68. package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
  69. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  70. package/layers/support/layerUtils.js +1 -1
  71. package/layers/video/VideoCameraSensorModel.js +1 -1
  72. package/layers/voxel/VoxelVolume.js +1 -1
  73. package/layers/voxel/voxelPlaneUtils.js +1 -1
  74. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  75. package/package.json +1 -1
  76. package/support/revision.js +1 -1
  77. package/symbols/cim/cimAnalyzer.js +1 -1
  78. package/views/2d/arcade/callExpressionWithCursor.js +1 -1
  79. package/views/2d/engine/webgl/shaderGraph/techniques/createTestMeshData.js +1 -1
  80. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterInputEvaluator.js +1 -1
  81. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  82. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  83. package/views/2d/layers/features/Processor.js +1 -1
  84. package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
  85. package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
  86. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  87. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  88. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  89. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  90. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  91. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  92. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  93. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  94. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  95. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  96. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  97. package/views/2d/layers/features/sources/strategies/chunks/DrillDownTileSourceChunk.js +1 -1
  98. package/views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js +1 -1
  99. package/views/2d/layers/features/sources/strategies/chunks/OverrideChunk.js +1 -1
  100. package/views/2d/layers/features/sources/strategies/chunks/PagedTileSourceChunk.js +1 -1
  101. package/views/2d/layers/features/sources/strategies/chunks/StreamSourceChunk.js +1 -1
  102. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  103. package/views/2d/layers/features/support/FeatureMetadata.js +1 -1
  104. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  105. package/views/2d/layers/features/support/Tile.js +1 -1
  106. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  107. package/views/2d/tiling/TileKey.js +1 -1
  108. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  109. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  110. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  111. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  112. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
  113. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  114. package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
  115. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  116. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  117. package/views/3d/analysis/support/measurementUtils.js +1 -1
  118. package/views/3d/animation/pointToPoint/Camera.js +1 -1
  119. package/views/3d/camera/constraintUtils/common.js +1 -1
  120. package/views/3d/camera/constraintUtils/distance.js +1 -1
  121. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  122. package/views/3d/camera/intersectionUtils.js +1 -1
  123. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  124. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  125. package/views/3d/environment/Fog.js +1 -1
  126. package/views/3d/environment/MarsAtmosphere.js +1 -1
  127. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  128. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  129. package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
  130. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  131. package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
  132. package/views/3d/interactive/editingTools/reshapeGraphic/edgeOffsetUtils.js +1 -1
  133. package/views/3d/interactive/editingTools/transformGraphic/ExtentScale.js +1 -1
  134. package/views/3d/interactive/editingTools/transformGraphic/extentUtils.js +1 -1
  135. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  136. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  137. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  138. package/views/3d/interactive/visualElements/support/Segment.js +1 -1
  139. package/views/3d/layers/I3SMeshView3D.js +1 -1
  140. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  141. package/views/3d/layers/PointCloudWorker.js +1 -1
  142. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  143. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  144. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  145. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  146. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  147. package/views/3d/layers/i3s/LoDUtil.js +1 -1
  148. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  149. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  150. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  151. package/views/3d/layers/support/uvUtils.js +1 -1
  152. package/views/3d/state/Frustum.js +1 -1
  153. package/views/3d/state/NearFarHeuristic.js +1 -1
  154. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  155. package/views/3d/state/controllers/RotateController.js +1 -1
  156. package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
  157. package/views/3d/state/controllers/global/ZoomController.js +1 -1
  158. package/views/3d/state/controllers/global/ZoomStepController.js +1 -1
  159. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  160. package/views/3d/state/controllers/local/ZoomController.js +1 -1
  161. package/views/3d/state/controllers/local/ZoomStepController.js +1 -1
  162. package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
  163. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  164. package/views/3d/state/utils/navigationUtils.js +1 -1
  165. package/views/3d/state/utils/viewUtils.js +1 -1
  166. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  167. package/views/3d/support/cameraUtils.js +1 -1
  168. package/views/3d/support/cameraUtilsInternal.js +1 -1
  169. package/views/3d/support/intersectionUtils.js +1 -1
  170. package/views/3d/support/mathUtils.js +1 -1
  171. package/views/3d/support/orientedBoundingBox.js +1 -1
  172. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  173. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  174. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  175. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  176. package/views/3d/support/sunUtils.js +1 -1
  177. package/views/3d/support/viewpointUtils.js +1 -1
  178. package/views/3d/terrain/OverlayManager.js +1 -1
  179. package/views/3d/terrain/PatchRenderData.js +1 -1
  180. package/views/3d/terrain/SphericalPatch.js +1 -1
  181. package/views/3d/terrain/TerrainRenderer.js +1 -1
  182. package/views/3d/terrain/Tile.js +1 -1
  183. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  184. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  185. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  186. package/views/3d/webgl-engine/core/util/TwoVectorPosition.js +1 -1
  187. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  188. package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
  189. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  190. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  191. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  192. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  193. package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
  194. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  195. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  196. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  197. package/views/3d/webgl-engine/lib/edgeRendering/edgePreprocessing.js +1 -1
  198. package/views/3d/webgl-engine/lib/geometryDataUtils.js +1 -1
  199. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  200. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  201. package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
  202. package/views/3d/webgl-engine/lighting/SceneLighting.js +1 -1
  203. package/views/3d/webgl-engine/lighting/SphericalHarmonics.js +1 -1
  204. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  205. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  206. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  207. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  208. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  209. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  210. package/views/3d/webgl-engine/materials/pbrUtils.js +1 -1
  211. package/views/SelectionManager.js +1 -1
  212. package/views/draw/support/createUtils.js +1 -1
  213. package/views/draw/support/surfaceCoordinateSystems.js +1 -1
  214. package/views/interactive/GraphicManipulator.js +1 -1
  215. package/views/interactive/SegmentLabels.js +1 -1
  216. package/views/interactive/coordinateHelper.js +1 -1
  217. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  218. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  219. package/views/interactive/sketch/constraints.js +1 -1
  220. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  221. package/views/interactive/snapping/candidates/ParallelLineSnappingCandidate.js +1 -1
  222. package/views/interactive/snapping/candidates/RightAngleTriangleSnappingCandidate.js +1 -1
  223. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  224. package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
  225. package/views/interactive/snapping/hints/IntersectionSnappingHint.js +1 -1
  226. package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
  227. package/views/interactive/snapping/hints/ParallelSnappingHint.js +1 -1
  228. package/views/interactive/snapping/hints/PointSnappingHint.js +1 -1
  229. package/views/interactive/snapping/hints/RightAngleSnappingHint.js +1 -1
  230. package/views/layers/FeatureLayerView.js +1 -1
  231. package/views/navigation/PanSphericalMomentumEstimator.js +1 -1
  232. package/views/support/angularMeasurementUtils.js +1 -1
  233. package/views/support/euclideanAreaMeasurementUtils.js +1 -1
  234. package/views/support/euclideanLengthMeasurementUtils.js +1 -1
  235. package/views/support/geometry3dUtils.js +1 -1
  236. package/widgets/Editor/EditorViewModel.js +1 -1
  237. package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
  238. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  239. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  240. package/widgets/FeatureTable/support/ColumnTemplateBase.js +1 -1
  241. package/widgets/Features/FeaturesViewModel.js +1 -1
  242. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  243. package/widgets/PanoramicViewer/utils.js +1 -1
  244. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  245. package/widgets/support/Selector2D/SelectionOperation.js +1 -1
  246. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  247. package/assets/esri/core/workers/chunks/0e83f3718a0b45652b5e.js +0 -1
  248. package/assets/esri/core/workers/chunks/1fa5c8af69a09a3730b3.js +0 -1
  249. package/assets/esri/core/workers/chunks/4736f79b5c94ce103d43.js +0 -1
  250. package/assets/esri/core/workers/chunks/65f7adaaf1f535310c11.js +0 -1
  251. package/assets/esri/core/workers/chunks/79c041b292648c5eaecc.js +0 -1
  252. package/assets/esri/core/workers/chunks/7c4c2c0beddabac672b6.js +0 -1
  253. package/assets/esri/core/workers/chunks/9307d485a9e5f9fa77d1.js +0 -1
  254. package/assets/esri/core/workers/chunks/9a758de08dfa57735879.js +0 -1
  255. package/assets/esri/core/workers/chunks/a4c3da057ec2a07bbbe8.js +0 -1
  256. package/assets/esri/core/workers/chunks/b252270b100351779f1f.js +0 -1
  257. package/assets/esri/core/workers/chunks/dc57aa9f2fc69e654559.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8080],{54792:(e,t,n)=>{n.d(t,{c:()=>s});var i=n(67432),r=n(9592);class s{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._observable=new r.n,this._items=new Set}get length(){return(0,i.am)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,i.am)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach((t=>{e(t)||this._items.delete(t)})),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,i.am)(this._observable),yield*this._items}}},84108:(e,t,n)=>{n.d(t,{T:()=>i});const i=["operational-layers","basemap","ground"]},3024:(e,t,n)=>{n.d(t,{U:()=>o});var i=n(92400),r=n(24680),s=n(85304);class o{constructor(e=9,t){this._compareMinX=h,this._compareMinY=u,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(),b.prune(),_.prune(),x.prune(),v.prune()}all(e){this._all(this._data,e)}search(e,t){let n=this._data;const i=this._toBBox;if(g(e,n))for(b.clear();n;){for(let r=0,s=n.children.length;r<s;r++){const s=n.children[r],o=n.leaf?i(s):s;g(e,o)&&(n.leaf?t(s):f(e,o)?this._all(s,t):b.push(s))}n=b.pop()}}collides(e){let t=this._data;const n=this._toBBox;if(!g(e,t))return!1;for(b.clear();t;){for(let i=0,r=t.children.length;i<r;i++){const r=t.children[i],s=t.leaf?n(r):r;if(g(e,s)){if(t.leaf||f(e,s))return!0;b.push(r)}}t=b.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),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 L([]),this}remove(e){if(!e)return this;let t,n=this._data,r=null,s=0,o=!1;const a=this._toBBox(e);for(x.clear(),v.clear();n||x.length>0;){if(n||(n=x.pop(),r=x.data[x.length-1],s=v.pop()??0,o=!0),n.leaf&&(t=(0,i.IP)(n.children,e,n.children.length,n.indexHint),-1!==t))return n.children.splice(t,1),x.push(n),this._condense(x),this;o||n.leaf||!f(n,a)?r?(s++,n=r.children[s],o=!1):n=null:(x.push(n),v.push(s),s=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_all(e,t){let n=e;for(_.clear();n;){if(!0===n.leaf)for(const e of n.children)t(e);else _.pushArray(n.children);n=_.pop()??null}}_build(e,t,n,i){const r=n-t+1;let s=this._maxEntries;if(r<=s){const i=new L(e.slice(t,n+1));return a(i,this._toBBox),i}i||(i=Math.ceil(Math.log(r)/Math.log(s)),s=Math.ceil(r/s**(i-1)));const o=new T([]);o.height=i;const l=Math.ceil(r/s),c=l*Math.ceil(Math.sqrt(s));w(e,t,n,c,this._compareMinX);for(let r=t;r<=n;r+=c){const t=Math.min(r+c-1,n);w(e,r,t,l,this._compareMinY);for(let n=r;n<=t;n+=l){const r=Math.min(n+l-1,t);o.children.push(this._build(e,n,r,i-1))}}return a(o,this._toBBox),o}_chooseSubtree(e,t,n,i){for(;i.push(t),!0!==t.leaf&&i.length-1!==n;){let n,i=1/0,r=1/0;for(let s=0,o=t.children.length;s<o;s++){const o=t.children[s],a=p(o),l=y(e,o)-a;l<r?(r=l,i=a<i?a:i,n=o):l===r&&a<i&&(i=a,n=o)}t=n||t.children[0]}return t}_insert(e,t,n){const i=this._toBBox,r=n?e:i(e);x.clear();const s=this._chooseSubtree(r,this._data,t,x);for(s.children.push(e),c(s,r);t>=0&&x.data[t].children.length>this._maxEntries;)this._split(x,t),t--;this._adjustParentBBoxes(r,x,t)}_split(e,t){const n=e.data[t],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);const s=this._chooseSplitIndex(n,r,i);if(!s)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=n.children.splice(s,n.children.length-s),l=n.leaf?new L(o):new T(o);l.height=n.height,a(n,this._toBBox),a(l,this._toBBox),t?e.data[t-1].children.push(l):this._splitRoot(n,l)}_splitRoot(e,t){this._data=new T([e,t]),this._data.height=e.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(e,t,n){let i,r,s;i=r=1/0;for(let o=t;o<=n-t;o++){const t=l(e,0,o,this._toBBox),a=l(e,o,n,this._toBBox),c=m(t,a),h=p(t)+p(a);c<i?(i=c,s=o,r=h<r?h:r):c===i&&h<r&&(r=h,s=o)}return s}_chooseSplitAxis(e,t,n){const i=e.leaf?this._compareMinX:h,r=e.leaf?this._compareMinY:u;this._allDistMargin(e,t,n,i)<this._allDistMargin(e,t,n,r)&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const r=this._toBBox,s=l(e,0,t,r),o=l(e,n-t,n,r);let a=d(s)+d(o);for(let i=t;i<n-t;i++){const t=e.children[i];c(s,e.leaf?r(t):t),a+=d(s)}for(let i=n-t-1;i>=t;i--){const t=e.children[i];c(o,e.leaf?r(t):t),a+=d(o)}return a}_adjustParentBBoxes(e,t,n){for(let i=n;i>=0;i--)c(t.data[i],e)}_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 r=e.data[t-1],s=r.children;s.splice((0,i.IP)(s,n,s.length,r.indexHint),1)}else this.clear();else a(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 a(e,t){l(e,0,e.children.length,t,e)}function l(e,t,n,i,r){r||(r=new L([])),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s,o=t;o<n;o++)s=e.children[o],c(r,e.leaf?i(s):s);return r}function c(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 h(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function p(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(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 m(e,t){const n=Math.max(e.minX,t.minX),i=Math.max(e.minY,t.minY),r=Math.min(e.maxX,t.maxX),s=Math.min(e.maxY,t.maxY);return Math.max(0,r-n)*Math.max(0,s-i)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function g(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,r){const o=[t,n];for(;o.length;){const t=o.pop(),n=o.pop();if(t-n<=i)continue;const a=n+Math.ceil((t-n)/i/2)*i;(0,s.q)(e,a,n,t,r),o.push(n,a,a,t)}}const b=new r.c,_=new r.c,x=new r.c,v=new r.c({deallocator:void 0});class E{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class k extends E{constructor(){super(...arguments),this.height=1,this.indexHint=new i.is}}class L extends k{constructor(e){super(),this.children=e,this.leaf=!0}}class T extends k{constructor(e){super(),this.children=e,this.leaf=!1}}},44247:(e,t,n)=>{async function i(e,t){const{WhereClause:i}=await Promise.all([n.e(3220),n.e(988)]).then(n.bind(n,63220));return i.create(e,t)}function r(e,t){return null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}n.d(t,{_:()=>r,u:()=>i})},46448:(e,t,n)=>{n.d(t,{c:()=>c});var i=n(38912),r=n(10860),s=n(54792),o=n(13056),a=n(25512),l=n(38432);class c{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new s.c}destroy(){this.close()}get closed(){return!this._clients?.length}open(e,t){return new Promise(((n,i)=>{let s=!0;const o=e=>{(0,r.wp)(t.signal),s&&(s=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let s=0;s<e.length;++s){const a=e[s];(0,r.eW)(a)?this._clientPromises[s]=a.then((e=>(this._clients[s]=new l.default(e,t,this._ongoingJobsQueue),o(n),this._clients[s])),(()=>(o(i),null))):(this._clients[s]=new l.default(a,t,this._ongoingJobsQueue),this._clientPromises[s]=Promise.resolve(this._clients[s]),o(n))}}))}broadcast(e,t,n){const i=new Array(this._clientPromises.length);for(let r=0;r<this._clientPromises.length;++r){const s=this._clientPromises[r];i[r]=s.then((i=>i?.invoke(e,t,n)))}return i}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,r.Uh)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0,this._inUseClients.length=0,(0,o.S)(this)}invoke(e,t,n){return this.apply(e,[t],n)}apply(e,t,n){const i=(0,r.qG)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:n,resolver:i});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return i.promise}createInvokeProxy(e){return(0,a.Y)(this,e)}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,i.Ip)(this._clients.map((n=>n.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let n=t.length;for(let i=0;i<this._clientPromises.length;++i)this._clientPromises[i].then((r=>{r&&(t[i]=r.openPort()),0==--n&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},13056:(e,t,n)=>{n.d(t,{S:()=>s,s:()=>r});const i=new FinalizationRegistry((e=>{e.close()}));function r(e,t){i.register(e,t,t)}function s(e){i.unregister(e)}},35268:(e,t,n)=>{n.d(t,{eU:()=>J});var i=n(20744),r=n(9456),s=n(10860),o=n(46448),a=n(13056),l=n(38432),c=n(66360),h=n(70680),u=n(2600),p=n(28176);const d={async request(e,t){const n=e.options,i=n.responseType;n.signal=t?.signal,n.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,p.OO)(e.url)?.after?i:"array-buffer";const r=await(0,u.c)(e.url,n),s={data:r.data,httpStatus:r.httpStatus,ssl:r.ssl};switch(r.requestOptions?.responseType){case"native-request-init":return delete s.data.signal,s;case"blob":s.data=await s.data.arrayBuffer();break;case"json":s.data=(new TextEncoder).encode(JSON.stringify(s.data)).buffer;break;case"text":s.data=(new TextEncoder).encode(s.data).buffer}return{result:s,transferList:[s.data]}}};var y=n(31056),m=n(24832),f=n(6220),g=(n(2016),n(47620));const w={};var b=n(52324);class _{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...n)=>e[t](...n)}))}}class x{constructor(){this._dispatcher=new _,this._workerPostMessage({type:y.MessageType.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,b.o)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,n){this._dispatcher.addEventListener(e,t,n)}removeEventListener(e,t,n){this._dispatcher.removeEventListener(e,t,n)}_workerPostMessage(e){(0,b.o)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,y.mO)(e);if(t&&t.type===y.MessageType.OPEN){const{modulePath:e,jobId:n}=t;let i=await l.default.loadWorker(e);i||(i=await import(e));const r=l.default.connect(i);this._workerPostMessage({type:y.MessageType.OPENED,jobId:n,data:r})}}}var v=n(89960),E=n(69880);const k=()=>c.c.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:L}=y.MessageType;let T,M;const C="Failed to create Worker. Fallback to execute module in main thread";async function I(e){return new Promise((t=>{function n(r){const s=(0,y.mO)(r);s&&s.type===L&&(e.removeEventListener("message",n),e.removeEventListener("error",i),t(e))}function i(t){t.preventDefault(),e.removeEventListener("message",n),e.removeEventListener("error",i),k().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new x).addEventListener("message",n),e.addEventListener("error",i)}e.addEventListener("message",n),e.addEventListener("error",i)}))}let S=0;const{ABORT:q,INVOKE:N,OPEN:D,OPENED:R,RESPONSE:P}=y.MessageType;class A{static async create(e){const t=await async function(){if(!(0,r.c)("esri-workers"))return I(new x);if(!T&&!M)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,s)=>{if(t){if(t.aborted)return s(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:ABORT,jobId:n}),s(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:s}),self.postMessage({type:INVOKE,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\\nModules version: ${r}\\nAssets version: ${n??s}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case OPEN:let n;function t(e){const o=n.connect(e);self.postMessage({type:OPENED,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case RESPONSE:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split('"{CONFIGURATION}"').join(`'${function(){let e;if(null!=f.default.default){const t={...f.default};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(f.default));e.assetsPath=(0,p.WM)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,p.WM)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,v.a8)(),e.has={"esri-csp-restrictions":(0,r.c)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,r.c)("esri-2d-update-debug"),"esri-2d-log-updating":(0,r.c)("esri-2d-log-updating"),"featurelayer-pbf":(0,r.c)("featurelayer-pbf"),"featurelayer-fast-triangulation-enabled":(0,r.c)("featurelayer-fast-triangulation-enabled"),"featurelayer-simplify-thresholds":(0,r.c)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,r.c)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,r.c)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,r.c)("featurelayer-query-max-depth"),"featurelayer-query-pausing-enabled":(0,r.c)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-enabled":(0,r.c)("featurelayer-snapshot-enabled"),"esri-atomics":(0,r.c)("esri-atomics"),"esri-shared-array-buffer":(0,r.c)("esri-shared-array-buffer"),"esri-tiles-debug":(0,r.c)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,r.c)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,r.c)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,p.WM)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,p.WM)(e.workers.workerPath):e.workers.workerPath=(0,p.WM)((0,m.O)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=f.default.workers.loaderConfig,n=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=w.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,v.a8)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),i={buildDate:E.W,fullVersion:g.c1,revision:E.m};return JSON.stringify({esriConfig:e,loaderConfig:n,kernelInfo:i})}()}'`);T=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){M=e||{}}let e;if(T)try{e=new Worker(T,{name:"esri-worker-"+S++})}catch(t){k().warn(C,M),e=new x}else k().warn(C,M),e=new x;return I(e)}();return new A(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),c.c.getLogger("esri.core.workers.WorkerOwner").error(e)}))}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:n}=t,i=(0,y.EH)();return new Promise(((t,r)=>{const o={resolve:t,reject:r,abortHandle:(0,s.Ij)(n,(()=>{this._outJobs.delete(i),this._post({type:q,jobId:i})}))};this._outJobs.set(i,o),this._post({type:D,jobId:i,modulePath:e})}))}_onMessage(e){const t=(0,y.mO)(e);if(t)switch(t.type){case R:this._onOpenedMessage(t);break;case P:this._onResponseMessage(t);break;case q:this._onAbortMessage(t);break;case N:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,i=t.get(n);i&&(i.controller&&i.controller.abort(),t.delete(n))}_onInvokeMessage(e){const{methodName:t,jobId:n,data:i,abortable:r}=e,o=r?new AbortController:null,a=this._inJobs,l=d[t];let c;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);c=l.call(null,i,{signal:o?o.signal:null})}catch(e){return void this._post({type:P,jobId:n,error:(0,y.O)(e)})}(0,s.eW)(c)?(a.set(n,{controller:o,promise:c}),c.then((e=>{a.has(n)&&(a.delete(n),this._post({type:P,jobId:n},e))}),(e=>{a.has(n)&&(a.delete(n),e||(e={message:"Error encountered at method"+t}),(0,s.mA)(e)||this._post({type:P,jobId:n,error:(0,y.O)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:P,jobId:n},c)}_onOpenedMessage(e){const{jobId:t,data:n}=e,i=this._outJobs.get(t);i&&(this._outJobs.delete(t),(0,h.oR)(i.abortHandle),i.resolve(n))}_onResponseMessage(e){const{jobId:t,error:n,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,h.oR)(s.abortHandle),n?s.reject(i.c.fromJSON(JSON.parse(n))):s.resolve(r))}_post(e,t,n){return(0,y.E9)(this.worker,e,t,n)}}const j=(0,r.c)("host-browser")?Math.min(navigator.hardwareConcurrency-1,(0,r.c)("workers-pool-size")):0;let O=(0,r.c)("esri-mobile")?Math.min(j,3):j;O||(O=(0,r.c)("safari")&&(0,r.c)("mac")?7:2);let G=0;const B=[];async function F(e,t){const n=new o.c,{registryTarget:i,...r}=t;return await n.open(e,r),i&&(0,a.s)(i,n),n}async function J(e,t={}){if("string"!=typeof e)throw new i.c("workers:undefined-module","modulePath is missing");let n=t.strategy||"distributed";if((0,r.c)("host-webworker")&&!(0,r.c)("esri-workers")&&(n="local"),"local"===n){let n=await l.default.loadWorker(e);n||(n=await import(e)),(0,s.wp)(t.signal);const i=t.client||n;return F([l.default.connect(n)],{...t,client:i})}if(await async function(){if(H)return H;U=new AbortController;const e=[];for(let t=0;t<O;t++){const n=A.create(t).then((e=>(B[t]=e,e)));e.push(n)}return H=Promise.all(e),H}(),(0,s.wp)(t.signal),"dedicated"===n){const n=G++%O;return F([await B[n].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const n=Math.min(t.maxNumWorkers,O);if(n<O){const i=new Array(n);for(let r=0;r<n;++r){const n=G++%O;i[r]=B[n].open(e,t)}return F(i,t)}}return F(B.map((n=>n.open(e,t))),t)}let U,H=null},59612:(e,t,n)=>{n.d(t,{EN:()=>E,S8:()=>x,i2:()=>f,wt:()=>m}),n(9456);var i=n(53648),r=n(95247),s=n(7488),o=n(56156),a=n(67932),l=n(97088),c=n(85152),h=n(7684);const u=new Float64Array(2),p=new Float64Array(2),d="0123456789bcdefghjkmnpqrstuvwxyz",y=64;function m(e,t,n,i){const a=[e.xmin,e.ymin,e.xmax,e.ymax],u=s.c.fromExtent(r.c.fromBounds(a,i)),p=(0,h.yU)(u,i,o.c.WGS84,{densificationStep:t*y}),d=(0,l.Uh)(new c.c,p,!1,!1),m=d.coords.filter(((e,t)=>!(t%2))),g=d.coords.filter(((e,t)=>t%2)),w=Math.min(...m),b=Math.min(...g),_=Math.max(...m),x=Math.max(...g),v=f(w,b,n,o.c.WGS84),E=f(_,x,n,o.c.WGS84);if(!v||!E)throw new Error("InternalError: Unable to project tile bounds");return{bounds:a,geohashBounds:{xLL:v[0],yLL:v[1],xTR:E[0],yTR:E[1]},level:n}}function f(e,t,n,r){if(r.isWebMercator){const r=(0,i.UB)(e/a.ug.radius),s=r-360*Math.floor((r+180)/360),o=[0,0];return v(o,0,(0,i.UB)(Math.PI/2-2*Math.atan(Math.exp(-t/a.ug.radius))),s,n),o}const s=(0,h.yU)({x:e,y:t},r,o.c.WGS84);if(!s)return null;const l=[0,0];return v(l,0,s.y,s.x,n),l}function g(e){return d[e]}function w(e){return(e[0]+e[1])/2}function b(e,t,n){return e[0]=t,e[1]=n,e}function _(e,t){const n=t>w(e);return function(e,t){const n=w(e),i=t,r=!t;e[0]=r*e[0]+i*n,e[1]=r*n+i*e[1]}(e,n),n}function x(e,t){let n=-90,i=90,r=-180,s=180;for(let o=0;o<t;o++){const t=Math.ceil((o+1)/2),a=Math.floor((o+1)/2),l=1-o%2,c=30-(3*t+2*a),h=30-(2*t+3*a),u=3*l+2*(1-l),p=2*l+3*(1-l),d=3*l+7*(1-l)<<h,y=(7*l+3*(1-l)<<c&e.geohashX)>>c,m=(d&e.geohashY)>>h;for(let e=u-1;e>=0;e--){const t=(r+s)/2,n=y&1<<e?1:0;r=(1-n)*r+n*t,s=(1-n)*t+n*s}for(let e=p-1;e>=0;e--){const t=(n+i)/2,r=m&1<<e?1:0;n=(1-r)*n+r*t,i=(1-r)*t+r*i}}return[r,n,s,i]}function v(e,t,n,i,r){r%2&&(r+=1);let s=0,o=0,a=-90,l=90,c=-180,h=180;for(let e=0;e<r/2;e++){for(let t=0;t<5;t++){const n=(c+h)/2,r=i>n?1:0;s|=r<<29-(t+5*e),c=(1-r)*c+r*n,h=(1-r)*n+r*h}for(let t=0;t<5;t++){const i=(a+l)/2,r=n>i?1:0;o|=r<<29-(t+5*e),a=(1-r)*a+r*i,l=(1-r)*i+r*l}}e[2*t]=s,e[2*t+1]=o}function E(e,t,n){let i="";const r=b(u,-90,90),s=b(p,-180,180);for(let o=0;o<n;o++){let n=0;o%2?(n|=_(r,e)<<4,n|=_(s,t)<<3,n|=_(r,e)<<2,n|=_(s,t)<<1,n|=_(r,e)<<0):(n|=_(s,t)<<4,n|=_(r,e)<<3,n|=_(s,t)<<2,n|=_(r,e)<<1,n|=_(s,t)<<0),i+=g(n)}return i}},20480:(e,t,n)=>{n.d(t,{WW:()=>v});var i=n(6220),r=n(20744),s=n(66360),o=n(7488),a=n(48516),l=n(44048),c=n(60544),h=n(29120),u=(n(60708),n(2600)),p=n(6704),d=n(21980),y=n(28176),m=n(81976);const f=()=>s.c.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function w(e){return"polyline"===e[0].type}function b(e,t,n){if(t){const t=function(e,t){if(!(e instanceof a.c||e instanceof o.c)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw f().error(e),new r.c(e)}const n=(0,l.iM)(e),i=[];for(const e of n){const n=[];i.push(n),n.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const r=e[i][0],s=e[i][1],o=e[i+1][0],a=e[i+1][1],l=Math.sqrt((o-r)*(o-r)+(a-s)*(a-s)),c=(a-s)/l,h=(o-r)/l,u=l/t;if(u>1){for(let e=1;e<=u-1;e++){const i=e*t,o=h*i+r,a=c*i+s;n.push([o,a])}const e=(l+Math.floor(u-1)*t)/2,i=h*e+r,o=c*e+s;n.push([i,o])}n.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new o.c({rings:i,spatialReference:e.spatialReference}):new a.c({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,h.aq)(t,!0)}return n&&(e=(0,l.wb)(e,n)),e}function _(e,t,n){if(Array.isArray(e)){const i=e[0];if(i>t){const n=(0,l.yK)(i,t);e[0]=i+n*(-2*t)}else if(i<n){const t=(0,l.yK)(i,n);e[0]=i+t*(-2*n)}}else{const i=e.x;if(i>t){const n=(0,l.yK)(i,t);e=e.clone().offset(n*(-2*t),0)}else if(i<n){const t=(0,l.yK)(i,n);e=e.clone().offset(t*(-2*n),0)}}return e}function x(e,t){let n=-1;for(let i=0;i<t.cutIndexes.length;i++){const r=t.cutIndexes[i],s=t.geometries[i],o=(0,l.iM)(s);for(let e=0;e<o.length;e++){const t=o[e];t.some((n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const i=t[e][0];n=i>n?i:n}n=Number(n.toFixed(9));const i=-360*(0,l.yK)(n,180);for(let n=0;n<t.length;n++){const t=s.getPoint(e,n);s.setPoint(e,n,t.clone().offset(i,0))}return!0}}))}if(r===n){if(g(e))for(const t of(0,l.iM)(s))e[r]=e[r].addRing(t);else if(w(e))for(const t of(0,l.iM)(s))e[r]=e[r].addPath(t)}else n=r,e[r]=s}return e}async function v(e,t,n){if(!Array.isArray(e))return v([e],t);t&&"string"!=typeof t&&f().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??i.default.geometryServiceUrl;let s,g,w,E,k,L,T,M,C=0;const I=[],S=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,g=(0,c.Nq)(s),w=s.isWebMercator,L=w?102100:4326,E=l.Hh[L].maxX,k=l.Hh[L].minX,T=l.Hh[L].plus180Line,M=l.Hh[L].minus180Line),g)if("mesh"===t.type)S.push(t);else if("point"===t.type)S.push(_(t.clone(),E,k));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>_(e,E,k))),S.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);S.push(e.rings?new o.c(e):e)}else if(t.extent){const e=t.extent,n=(0,l.yK)(e.xmin,k)*(2*E);let i=0===n?t.clone():(0,l.wb)(t.clone(),n);e.offset(n,0),e.intersects(T)&&e.xmax!==E?(C=e.xmax>C?e.xmax:C,i=b(i,w),I.push(i),S.push("cut")):e.intersects(M)&&e.xmin!==k?(C=e.xmax*(2*E)>C?e.xmax*(2*E):C,i=b(i,w,360),I.push(i),S.push("cut")):S.push(i)}else S.push(t.clone());else S.push(t);else S.push(t);let q=(0,l.yK)(C,E),N=-90;const D=q,R=new a.c;for(;q>0;){const e=360*q-180;R.addPath([[e,N],[e,-1*N]]),N*=-1,q--}if(I.length>0&&D>0){const t=x(I,await async function(e,t,n,i){const r=(0,d.UX)(e),s=t[0].spatialReference,o={...i,responseType:"json",query:{...r.query,f:"json",sr:(0,c.um)(s),target:JSON.stringify({geometryType:(0,p.Ce)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},a=await(0,u.c)(r.path+"/cut",o),{cutIndexes:l,geometries:h=[]}=a.data;return{cutIndexes:l,geometries:h.map((e=>{const t=(0,p.h4)(e);return t.spatialReference=s,t}))}}(r,I,R,n)),i=[],s=[];for(let n=0;n<S.length;n++){const r=S[n];if("cut"!==r)s.push(r);else{const r=t.shift(),o=e[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(i.push(r),s.push("simplify")):s.push(w?(0,h.w7)(r):r)}}if(!i.length)return s;const o=await async function(e,t,n){const i="string"==typeof e?(0,y.as)(e):e,r=t[0].spatialReference,s=(0,p.Ce)(t[0]),o={...n,query:{...i.query,f:"json",sr:(0,c.um)(r),geometries:JSON.stringify((0,m.y)(t))}},{data:a}=await(0,u.c)(i.path+"/simplify",o);return(0,m.Q)(a.geometries,s,r)}(r,i,n),a=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?a.push(t):a.push(w?(0,h.w7)(o.shift()):o.shift())}return a}const P=[];for(let e=0;e<S.length;e++){const t=S[e];if("cut"!==t)P.push(t);else{const e=I.shift();P.push(!0===w?(0,h.w7)(e):e)}}return P}},44048:(e,t,n)=>{n.d(t,{Hh:()=>o,iM:()=>c,wb:()=>l,yK:()=>a});var i=n(48516),r=n(56156),s=n(6704);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.c({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.c.WebMercator}),minus180Line:new i.c({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.c.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.c({paths:[[[180,-180],[180,180]]],spatialReference:r.c.WGS84}),minus180Line:new i.c({paths:[[[-180,-180],[-180,180]]],spatialReference:r.c.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const n=c(e);for(const e of n)for(const n of e)n[0]+=t;return e}function c(e){return(0,s.Cs)(e)?e.rings:e.paths}},54192:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Se});var i=n(41948),r=(n(60708),n(2952)),s=n(20744),o=n(66360),a=n(10860),l=n(1580),c=(n(9456),n(72052),n(12552)),h=n(59612),u=n(81436),p=n(97088),d=n(85152),y=n(43780),m=n(86916),f=n(44247),g=n(7488),w=n(60074),b=n(60544),_=n(34888),x=n(6704);class v{constructor(){this._featureLookup=new Map}static getInstance(){return v.instance||(v.instance=new v),v.instance}static resetInstance(){v.instance&&(v.instance=null)}deleteFromStore(e){e.forEach((e=>{this._featureLookup.delete(e)}))}readFromStoreByList(e){const t=[];return e.forEach((e=>{const n=this.readFromStoreById(e);n&&t.push(n)})),t}readFromStoreById(e){return this._featureLookup.get(e)??null}writeToStore(e,t,n){const i=[];return e.forEach((e=>{if(!e?.id)return;e.properties||(e.properties=[]);let r,s=null;if(n&&e.properties[n]&&(s=(0,p.C)(e.properties[n])),"originId"in e&&"destinationId"in e&&(e.properties.ESRI__ORIGIN_ID=e.originId,e.properties.ESRI__DESTINATION_ID=e.destinationId),e.properties[t]=e.id,e.id&&this._featureLookup.has(e.id)&&this._featureLookup.get(e.id).attributes){const i=this._featureLookup.get(e.id),o=JSON.parse(JSON.stringify(Object.assign(i.attributes,e.properties)));n&&e.properties[n]&&(o[n]=(0,x.h4)(e.properties[n])),r=new _._M(s?JSON.parse(JSON.stringify(s)):i?.geometry?JSON.parse(JSON.stringify(i.geometry)):null,o,null,e.properties[t])}else r=new _._M(s?JSON.parse(JSON.stringify(s)):null,e.properties,null,e.properties[t]);this._featureLookup.set(e.id,r),i.push(r)})),i}}n(2600);var E,k,L,T,M,C,I,S,q,N=n(6680),D=n(27504);function R(e){if(!e.spatialReference.isWGS84)throw new s.c("knowledge-graph:layer-support-utils","The extentToInBoundsRings function only supports WGS84 spatial references.");let t;return t=e.xmax>180&&e.xmin<180?[[[e.xmin,e.ymin],[e.xmin,e.ymax],[180,e.ymax],[180,e.ymin],[e.xmin,e.ymin]],[[-180,e.ymin],[-180,e.ymax],[e.xmax-360,e.ymax],[e.xmax-360,e.ymin],[-180,e.ymin]]]:e.xmax>180&&e.xmin>180?[[[e.xmin-360,e.ymin],[e.xmin-360,e.ymax],[e.xmax-360,e.ymax],[e.xmax-360,e.ymin],[e.xmin-360,e.ymin]]]:e.xmax>-180&&e.xmin<-180?[[[e.xmin+360,e.ymin],[e.xmin+360,e.ymax],[180,e.ymax],[180,e.ymin],[e.xmin+360,e.ymin]],[[-180,e.ymin],[-180,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[-180,e.ymin]]]:e.xmax<-180&&e.xmin<-180?[[[e.xmin+360,e.ymin],[e.xmin+360,e.ymax],[e.xmax+360,e.ymax],[e.xmax+360,e.ymin],[e.xmin+360,e.ymin]]]:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]],t}n(56156),(k=E||(E={})).ELEMENTUID="ELEMENTUID",k.TYPENAME="TYPENAME",E.ELEMENTUID,E.TYPENAME,function(e){e[e.ELEMENTUID=0]="ELEMENTUID",e[e.TYPENAME=1]="TYPENAME"}(L||(L={})),function(e){e[e.ELEMENTUID=0]="ELEMENTUID",e[e.TYPENAME=1]="TYPENAME",e[e.FROMUID=2]="FROMUID",e[e.TOUID=3]="TOUID"}(T||(T={})),n(1324),n(76332),(q=M||(M={}))[q.featureResult=0]="featureResult",q[q.countResult=1]="countResult",q[q.idsResult=2]="idsResult",function(e){e[e.upperLeft=0]="upperLeft",e[e.lowerLeft=1]="lowerLeft"}(C||(C={})),function(e){e[e.sqlTypeBigInt=0]="sqlTypeBigInt",e[e.sqlTypeBinary=1]="sqlTypeBinary",e[e.sqlTypeBit=2]="sqlTypeBit",e[e.sqlTypeChar=3]="sqlTypeChar",e[e.sqlTypeDate=4]="sqlTypeDate",e[e.sqlTypeDecimal=5]="sqlTypeDecimal",e[e.sqlTypeDouble=6]="sqlTypeDouble",e[e.sqlTypeFloat=7]="sqlTypeFloat",e[e.sqlTypeGeometry=8]="sqlTypeGeometry",e[e.sqlTypeGUID=9]="sqlTypeGUID",e[e.sqlTypeInteger=10]="sqlTypeInteger",e[e.sqlTypeLongNVarchar=11]="sqlTypeLongNVarchar",e[e.sqlTypeLongVarbinary=12]="sqlTypeLongVarbinary",e[e.sqlTypeLongVarchar=13]="sqlTypeLongVarchar",e[e.sqlTypeNChar=14]="sqlTypeNChar",e[e.sqlTypeNVarChar=15]="sqlTypeNVarChar",e[e.sqlTypeOther=16]="sqlTypeOther",e[e.sqlTypeReal=17]="sqlTypeReal",e[e.sqlTypeSmallInt=18]="sqlTypeSmallInt",e[e.sqlTypeSqlXml=19]="sqlTypeSqlXml",e[e.sqlTypeTime=20]="sqlTypeTime",e[e.sqlTypeTimestamp=21]="sqlTypeTimestamp",e[e.sqlTypeTimestamp2=22]="sqlTypeTimestamp2",e[e.sqlTypeTinyInt=23]="sqlTypeTinyInt",e[e.sqlTypeVarbinary=24]="sqlTypeVarbinary",e[e.sqlTypeVarchar=25]="sqlTypeVarchar"}(I||(I={})),function(e){e[e.OID_ARRAY=0]="OID_ARRAY",e[e.GLOBALID_ARRAY=1]="GLOBALID_ARRAY",e[e.STRING_ARRAY=2]="STRING_ARRAY",e[e.IDENTIFIER_ARRAY=3]="IDENTIFIER_ARRAY"}(S||(S={}));var P=n(95776),A=n(95247);const j="ESRI__ID",O="ESRI__ORIGIN_ID",G="ESRI__DESTINATION_ID",B="ESRI__LAYOUT_GEOMETRY",F=12;let J=class extends y.c{constructor(e){super(e),this._processingCacheUpdatesLookup=new Map,this.knowledgeGraph=null,this.inclusionModeDefinition={generateAllSublayers:!0,namedTypeDefinitions:new Map},this.entityTypeNames=new Set,this.relationshipTypeNames=new Set,this.geographicLookup=new Map,this.sublayerCaches=new Map,this.nodeConnectionsLookup=new Map,this.relationshipConnectionsLookup=new Map,this.memberIdTypeLookup=new Map;const t=new Map;e.knowledgeGraph.dataModel.entityTypes?.forEach((n=>{n.name&&(t.set(n.name,"entity"),this._processingCacheUpdatesLookup.set(n.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.entityTypeNames.add(n.name),n.properties?.forEach((e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(n.name,{name:e.name??"",geometryType:e.geometryType})})))})),e.knowledgeGraph.dataModel.relationshipTypes?.forEach((n=>{n.name&&(t.set(n.name,"relationship"),this._processingCacheUpdatesLookup.set(n.name,[]),e.inclusionModeDefinition&&!e.inclusionModeDefinition?.generateAllSublayers||this.relationshipTypeNames.add(n.name),n.properties?.forEach((e=>{e.geometryType&&"esriGeometryNull"!==e.geometryType&&this.geographicLookup.set(n.name,{name:e.name??"",geometryType:e.geometryType})})))})),e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((n,i)=>{if("entity"===t.get(i))this.entityTypeNames.add(i);else{if("relationship"!==t.get(i))return o.c.getLogger(this).warn(`A named type, ${i}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(i);this.relationshipTypeNames.add(i)}const r=new Map;n.members?.forEach((e=>{(0,m.wJ)(this.memberIdTypeLookup,e.id,(()=>new Set)).add(i);const t=this.getById(e.id);t&&r.set(e.id,t)})),this.sublayerCaches.set(i,r)}))}addToLayer(e){e.forEach((({typeName:e,id:t})=>{if(!this.inclusionModeDefinition)throw new s.c("knowledge-graph:layer-data-manager","You cannot add to a layer's exclusion list if it was not created with an exclusion list originally");if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){if(this.inclusionModeDefinition.namedTypeDefinitions.has(e)){const n=this.inclusionModeDefinition.namedTypeDefinitions.get(e);n.members||(n.members=new Map),n.members.set(t,{id:t}),(0,m.wJ)(this.memberIdTypeLookup,t,(()=>new Set)).add(e)}}else{const n=new Map;n.set(t,{id:t}),this.inclusionModeDefinition.namedTypeDefinitions.set(e,{useAllData:!1,members:n}),(0,m.wJ)(this.memberIdTypeLookup,t,(()=>new Set)).add(e)}}))}getById(e){return v.getInstance().readFromStoreById(e)}async getData(e,t,n){if(t.objectType.name&&this.inclusionModeDefinition?.namedTypeDefinitions&&this.inclusionModeDefinition.namedTypeDefinitions.size>0&&!this.inclusionModeDefinition.namedTypeDefinitions.has(t.objectType.name))return[];let i;if(i=e||new P.c({where:"1=1",outFields:["*"]}),"link-chart"===t.parentCompositeLayer.type){const e=t.parentCompositeLayer,n=this._processingCacheUpdatesLookup.get(t.objectType.name??""),r=i.outFields,s=i.geometry;let o="",a="";s&&s.extent&&(o=(0,h.EN)(s.extent.ymin,s.extent.xmin,F),a=(0,h.EN)(s.extent.ymax,s.extent.xmax,F)),r&&1===r.length&&r[0]===j&&"1=1"===i.where||await Promise.all(n??[]);const l=this.sublayerCaches.has(t.objectType.name??"")?Array.from(this.sublayerCaches.get(t.objectType.name)?.values()):[],c=[];return l.forEach((n=>{if(this.relationshipTypeNames.has(t.objectType.name)?n.geometry=e.relationshipLinkChartDiagramLookup.get(n.attributes[t.objectIdField]):n.geometry=e.entityLinkChartDiagramLookup.get(n.attributes[t.objectIdField]),n.attributes[B]=n.geometry,o&&a){const i=e.linkChartGeohashLookup.get(n.attributes[t.objectIdField]);i?i>=o&&i<=a&&c.push(n):c.push(n)}else c.push(n)})),c}return this.retrieveDataFromService(i,t,n)}async getConnectedRecordIds(e,t){const n=[];let i="";const r=[],s=new Map;if(e.forEach((e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e)){if(!this.entityTypeNames.has(t))return;s.has(t)?s.get(t)?.push(e):s.set(t,[e])}})),t&&0!==t?.length){for(const e of t)i=i+e+"|";i=i.slice(0,-1)}return s.forEach(((e,s)=>{let a;a=t&&0!==t?.length?`MATCH (n:${s})-[r:${i}]-(m) WHERE id(n) IN $ids RETURN id(r), type(r), id(m), labels(m)[0]`:`MATCH (n:${s})-[r]-(m) WHERE id(n) IN $ids RETURN id(r), type(r), id(m), labels(m)[0]`;const l=new Promise((t=>{(async()=>{const t=(await(0,N.executeQueryStreaming)(this.knowledgeGraph,new D.c({openCypherQuery:a,bindParameters:{ids:e}}))).resultRowsStream.getReader();try{for(;;){const{done:e,value:i}=await t.read();if(e)break;for(let e=0;e<i.length;e++){const t=i[e];n.push({id:t[0],typeName:t[1]}),n.push({id:t[2],typeName:t[3]})}}}catch(e){if("AbortError"!==e.name)throw e;o.c.getLogger(this).info("Request aborted as expected")}})().then((()=>{t()}))}));r.push(l)})),this.refreshCacheContent(),await Promise.all(r),n}async refreshCacheContent(e,t,n,i=!0){const r=v.getInstance(),o=[],a=new Map,l=new Map;this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&l.set(e.name,e)})),this.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&l.set(e.name,e)})),e||this.inclusionModeDefinition?e?e.forEach((e=>{if(this.memberIdTypeLookup.has(e))for(const t of this.memberIdTypeLookup.get(e))a.has(t)?a.get(t)?.push(e):a.set(t,[e])})):this.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{e.useAllData?a.set(t,null):e.members&&e.members.forEach((e=>{a.has(t)&&null!==a.get(t)?a.get(t)?.push(e.id):a.set(t,[e.id])}))})):(this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&a.set(e.name,null)})),this.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&a.set(e.name,null)})));for(const[e,c]of a){const a=new Promise((o=>{(async()=>{const o=new Set,a=[];let h,u="",p=!1;if(t||l.get(e)?.properties?.forEach((e=>{e.name&&o.add(e.name)})),n&&this.geographicLookup.has(e)){const t=this.geographicLookup.get(e)?.name;t&&o.add(t)}if(this.entityTypeNames.has(e))u=`MATCH (n:${e}) ${c?"WHERE id(n) IN $ids ":""}return ID(n)`,o.forEach((e=>{u+=`, n.${e}`,a.push(e)}));else{if(!this.relationshipTypeNames.has(e))throw new s.c("knowledge-graph:layer-data-manager",`The graph type of ${e} could not be determined. Was this type set in the KG data model and inclusion definition?`);p=!0,u=`MATCH ()-[n:${e}]->() ${c?"WHERE id(n) IN $ids ":""}return ID(n), id(startNode(n)), id(endNode(n))`,o.forEach((e=>{u+=`, n.${e}`,a.push(e)}))}h=new D.c(c?{openCypherQuery:u,bindParameters:{ids:c}}:{openCypherQuery:u});const d=(await(0,N.executeQueryStreaming)(this.knowledgeGraph,h)).resultRowsStream.getReader();for(;;){const{done:t,value:n}=await d.read();if(t)break;const s=[];for(let e=0;e<n.length;e++){const t=n[e];let i=0,r=0;const o={properties:{}};for(o.id=t[i],i++,r++,p&&(o.originId=t[i],i++,r++,o.destinationId=t[i],i++,r++,(0,m.wJ)(this.nodeConnectionsLookup,o.originId,(()=>new Set)).add(o.id),(0,m.wJ)(this.nodeConnectionsLookup,o.destinationId,(()=>new Set)).add(o.id),(0,m.wJ)(this.relationshipConnectionsLookup,o.id,(()=>[o.originId,o.destinationId])));i<t.length;i++)o.properties[a[i-r]]=t[i];s.push(o)}const o=r.writeToStore(s,j,this.geographicLookup.get(e)?.name);this.sublayerCaches.has(e)||this.sublayerCaches.set(e,new Map),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.has(e)&&this.inclusionModeDefinition?.namedTypeDefinitions.set(e,{useAllData:!1,members:new Map}),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members&&(this.inclusionModeDefinition.namedTypeDefinitions.get(e).members=new Map);const l=this.sublayerCaches.get(e);o.forEach((t=>{l?.set(t.attributes[j],t),i&&!this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.has(t.attributes[j])&&(this.inclusionModeDefinition?.namedTypeDefinitions.get(e).members.set(t.attributes[j],{id:t.attributes[j]}),(0,m.wJ)(this.memberIdTypeLookup,t.attributes[j],(()=>new Set)).add(e))}))}})().then((()=>{o(null)}))}));o.push(a),this._processingCacheUpdatesLookup.get(e)?.push(a)}await Promise.all(o)}removeFromLayer(e){const t=new Set,n=new Set(e.map((e=>e.id)));for(const n of e)t.add(n.typeName),1===this.memberIdTypeLookup.get(n.id)?.size?this.memberIdTypeLookup.delete(n.id):this.memberIdTypeLookup.get(n.id)?.delete(n.typeName),this.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,t)=>{t===n.typeName&&e.members?.has(n.id)&&e.members.delete(n.id)}));t.forEach((e=>{this.sublayerCaches.get(e)?.forEach(((t,i)=>{n.has(i)&&this.sublayerCaches.get(e)?.delete(i)}))}))}async retrieveDataFromService(e,t,n){const i=v.getInstance(),r=new Set,o=[];let a,l="",c=[];const h="relationship"===t.graphType,u=this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData,p=t.parentCompositeLayer.sublayerIdsCache.get(t.objectType.name);let d=!u&&p?Array.from(p).sort():null;if(this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData)this.inclusionModeDefinition?.namedTypeDefinitions?.get(t.objectType.name)?.useAllData&&null!=e.objectIds&&(d=e.objectIds);else if(null!=e.objectIds&&d&&d.length>0){const t=e.objectIds;e.objectIds=d.filter((e=>t.includes(e)))}else if(null!=e.objectIds)d=e.objectIds;else{if(this.inclusionModeDefinition?.namedTypeDefinitions.has(t.objectType.name)&&(!this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members||this.inclusionModeDefinition.namedTypeDefinitions.get(t.objectType.name)?.members?.size<1))return e.objectIds=[],[];e.objectIds=d}if(null!=e.outFields){const n=e.outFields;n.includes("*")?t.fields.forEach((e=>{r.add(e.name)})):n.forEach((e=>{e!==j&&e!==t.geometryFieldName&&r.add(e)}))}if(null!=e.geometry){const n=e.geometry;let i;const c=t.parentCompositeLayer.dataManager.knowledgeGraph.serviceDefinition,u=c?.spatialReference,p=c?.serviceCapabilities?.geometryCapabilities;let d=p?.geometryMaxBoundingRectangleSizeX,y=p?.geometryMaxBoundingRectangleSizeY;if(n?.extent?.spatialReference&&!n.spatialReference?.isWGS84?(await(0,w.initializeProjection)(n.extent.spatialReference,b.UH),i=(0,w.project)(n.extent,b.UH)):i=n.extent,d&&y&&u){if(4326!==u.wkid){const e=new A.c({spatialReference:u,xmax:d,ymax:y}),t=(0,w.project)(e,b.UH);d=t.xmax,y=t.ymax}if(i.xmax-i.xmin>d)throw new s.c("knowledge-graph:layer-data-manager",`Extent x bounds should be within ${d}° latitude, limit exceeded`);if(i.ymax-i.ymin>y)throw new s.c("knowledge-graph:layer-data-manager",`Extent y bounds should be within ${y}° longitude, limit exceeded`)}if(null!=e.where&&"1=1"!==e.where){const n=await(0,f.u)(e.where.toUpperCase(),t.fieldsIndex);t.fields.forEach((e=>{n.fieldNames.includes(e.name)&&r.add(e.name)}))}l=h?`Match ()-[n:${t.objectType.name}]->() WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n), id(startNode(r)), id(endNode(r))`:`Match (n:${t.objectType.name}) WHERE esri.graph.ST_Intersects($param_filter_geom, n.${t.geometryFieldName}) return ID(n)`,t.geometryFieldName&&r.add(t.geometryFieldName),r.forEach((e=>{l+=`, n.${e}`,o.push(e)})),a=new D.c({openCypherQuery:l,bindParameters:{param_filter_geom:new g.c({rings:R(i)})}})}else{let n="";if(null!=e.where&&"1=1"!==e.where){const i=await(0,f.u)(e.where,t.fieldsIndex);t.fields.forEach((e=>{i.fieldNames.includes(e.name)&&r.add(e.name)}));const s=new Set(["column-reference","string","number","binary-expression"]),o=new Set(["=","<","<=","<>",">",">=","AND","OR","LIKE"]);let a=!1;const l=e=>{if("column-reference"===e.type)return`n.${e.column}`;if("string"===e.type)return`'${e.value}'`;if("number"===e.type)return`${e.value}`;if("binary-expression"===e.type&&s.has(e.left.type)&&s.has(e.right.type)&&o.has(e.operator))return`${l(e.left)} ${e.operator} ${l(e.right)}`;if("binary-expression"===e.type&&"LIKE"===e.operator){let t="";if("function"===e.left.type&&"column-reference"===e.left.args.value[0].type)t+=`lower(n.${e.left.args.value[0].column})`;else{if("column-reference"!==e.left.type)return a=!0,"";t+=`lower(n.${e.left.column})`}if(t+=" CONTAINS (","string"!==e.right.type)return a=!0,"";{let n=e.right.value;"%"===n.charAt(0)&&(n=n.slice(1)),"%"===n.charAt(n.length-1)&&(n=n.slice(0,-1)),t+=`'${n.toLowerCase()}')`}return t}return a=!0,""};n=l(i.parseTree),a&&(n="")}let i="";i=h?`Match ()-[n:${t.objectType.name}]->()`:`Match (n:${t.objectType.name})`;let s=!1;d&&(s=!0,i+=" WHERE ID(n) IN $ids"),n&&(i+=s?" AND":" WHERE",i+=` ${n}`),i+=" return ID(n)",h&&(i+=", id(startNode(n)), id(endNode(n))"),e.returnGeometry&&t.geometryFieldName&&r.add(t.geometryFieldName),r.forEach((e=>{i+=`, n.${e}`,o.push(e)})),a=new D.c(d?{openCypherQuery:i,bindParameters:{ids:d}}:{openCypherQuery:i})}const y=(await(0,N.executeQueryStreaming)(t.parentCompositeLayer.dataManager.knowledgeGraph,a,n)).resultRowsStream.getReader();for(;;){const{done:e,value:n}=await y.read();if(e)break;const r=[];for(let e=0;e<n.length;e++){const t=n[e];let i=0,s=0;const a={properties:{}};for(a.id=t[i],i++,s++,h&&(a.originId=t[i],i++,s++,a.destinationId=t[i],i++,s++);i<t.length;i++)a.properties[o[i-s]]=t[i];r.push(a)}c=c.concat(i.writeToStore(r,j,t.parentCompositeLayer.dataManager.geographicLookup.get(t.objectType.name)?.name))}return c}};(0,i._)([(0,l.qq)()],J.prototype,"knowledgeGraph",void 0),(0,i._)([(0,l.qq)()],J.prototype,"inclusionModeDefinition",void 0),(0,i._)([(0,l.qq)()],J.prototype,"entityTypeNames",void 0),(0,i._)([(0,l.qq)()],J.prototype,"relationshipTypeNames",void 0),(0,i._)([(0,l.qq)()],J.prototype,"geographicLookup",void 0),(0,i._)([(0,l.qq)()],J.prototype,"sublayerCaches",void 0),(0,i._)([(0,l.qq)()],J.prototype,"nodeConnectionsLookup",void 0),(0,i._)([(0,l.qq)()],J.prototype,"relationshipConnectionsLookup",void 0),(0,i._)([(0,l.qq)()],J.prototype,"memberIdTypeLookup",void 0),J=(0,i._)([(0,c.c)("esri.rest.knowledgeGraph.knowledgeGraphLayer.KnowledgeGraphLayerDataManager")],J);var U=n(82692),H=(n(99704),n(73868),n(90200),n(12836),n(63718),n(2360),n(64624),n(24948),n(70236)),z=n(37284),$=(n(35268),n(9107)),Y=n(47302),Q=n(17724);const W=(0,n(81732).l)(),V=e=>{let t=class extends e{constructor(){super(...arguments),this.fields=[],this.fieldsIndex=null}};return(0,i._)([(0,l.qq)(W.fields)],t.prototype,"fields",void 0),(0,i._)([(0,l.qq)(W.fieldsIndex)],t.prototype,"fieldsIndex",void 0),t=(0,i._)([(0,c.c)("esri.layers.knowledgeGraphLayer.KnowledgeGraphSublayerBase")],t),t};var X=n(25216),Z=n(66888),K=n(26916),ee=n(3116),te=n(21488),ne=n(600),ie=n(564),re=n(59500),se=n(65548),oe=n(38432),ae=n(48516),le=n(97492);let ce=class extends((0,Z.c)(V((0,X.W)((0,ee.I)((0,K.G)(u.c)))))){constructor(e){if(super(e),this.capabilities=(0,Q.G4)(!1,!1),this.definitionExpression="",this.displayField="",this.elevationInfo=null,this.geometryType=null,this.geometryFieldName=null,this.graphType=null,this.hasM=!1,this.hasZ=!1,this.labelsVisible=null,this.labelingInfo=null,this.objectIdField=j,this.objectType=null,this.parentCompositeLayer=null,this.popupEnabled=!0,this.popupTemplate=null,this.source={openPorts:()=>this.load().then((()=>{const e=new MessageChannel;return new oe.default(e.port1,{channel:e,client:{queryFeatures:(e,t={})=>{const n=P.c.fromJSON(e);return this.queryFeaturesJSON(n,t)}}}),[e.port2]}))},this.type="knowledge-graph-sublayer","link-chart"===e.parentCompositeLayer.type)"relationship"===e.graphType?this.geometryType="polyline":this.geometryType="point",this.geometryFieldName=B;else if(e.parentCompositeLayer.dataManager.geographicLookup.get(e.objectType.name)?.geometryType&&"esriGeometryNull"!==e.parentCompositeLayer.dataManager.geographicLookup.get(e.objectType.name)?.geometryType){const t=e.parentCompositeLayer.dataManager.geographicLookup.get(e.objectType.name);this.geometryFieldName=t?.name??null,this.geometryType=t?.geometryType?le.U.fromJSON(t.geometryType):null;const n=t?.name,i=n?e.objectType.properties?.[n]:null;i?(this.hasM=i.hasM??!1,this.hasZ=i.hasZ??!1):(this.hasM=!1,this.hasZ=!1)}else this.geometryType=null;e.objectType.properties?.forEach((e=>{let t=e.fieldType;"esriFieldTypeOID"===t&&(t="esriFieldTypeInteger"),this.fields.push(ne.c.fromJSON({name:e.name,type:t,alias:e.alias,defaultValue:null,editable:e.editable,nullable:e.nullable}))})),this.fields.push(ne.c.fromJSON({name:this.objectIdField,type:"esriFieldTypeString",alias:this.objectIdField,editable:!1})),this._set("fields",[...this.fields]),e.parentCompositeLayer.dataManager.knowledgeGraph.dataModel?.spatialReference&&(this.spatialReference=e.parentCompositeLayer.dataManager.knowledgeGraph.dataModel.spatialReference),"link-chart"===e.parentCompositeLayer.type?"relationship"===e.graphType?this.renderer=(0,H.h)((0,Q.w7)(le.U.toJSON("polyline")).renderer):this.renderer=(0,H.h)((0,Q.w7)(le.U.toJSON("point")).renderer):this.renderer=(0,H.h)((0,Q.w7)(le.U.toJSON(this.geometryType)).renderer)}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,ie.Gi)(e,this.fieldsIndex),this._set("renderer",e)}createPopupTemplate(e){return(0,se.Ap)(this,e)}createQuery(){return new P.c({where:"1=1",outFields:["*"]})}getField(e){for(let t=0;t<this.fields.length;t++)if(this.fields[t].name===e)return this.fields[t];return null}getFieldDomain(e,t){return null}async queryFeatures(e,t){const{resolvedQuery:n,queryEngine:i}=await this._setupQueryObjects(e),r=re.c.fromJSON(await i.executeQuery(n.toJSON(),t?.signal));return r.features.forEach((e=>{e.sourceLayer=this})),r}async queryFeaturesJSON(e,t){const{resolvedQuery:n,queryEngine:i}=await this._setupQueryObjects(e);return await i.executeQuery(n.toJSON(),t?.signal)}async queryFeatureCount(e,t){const{resolvedQuery:n,queryEngine:i}=await this._setupQueryObjects(e);return i.executeQueryForCount(n.toJSON(),t?.signal)}async queryExtent(e={},t){const n={...e,returnGeometry:!0},{resolvedQuery:i,queryEngine:r}=await this._setupQueryObjects(n),s=await r.executeQueryForExtent(i.toJSON(),t?.signal);let o;return o=null!=s.extent?.xmin&&null!=s.extent?.xmax&&null!=s.extent?.ymin&&null!=s.extent?.ymax?new A.c(s.extent):new A.c,{count:s.count,extent:o}}async queryObjectIds(e,t){const n=P.c.from(e);let i;if("link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)i=this._cachedQueryEngine;else{const e=await this.parentCompositeLayer.dataManager.getData(n,this,t);i=this.loadQueryEngine(e)}return i.executeQueryForIds(n.toJSON(),t?.signal)}loadQueryEngine(e){const t=new $.c({geometryType:le.U.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ}),n=new Y.U({fieldsIndex:this.fieldsIndex.toJSON(),geometryType:le.U.toJSON(this.geometryType),hasM:this.hasM,hasZ:this.hasZ,objectIdField:this.objectIdField,spatialReference:this.spatialReference.toJSON(),timeInfo:null,featureStore:t});return n.featureStore.addMany(e),n}async refreshCachedQueryEngine(){const e=await this.parentCompositeLayer.dataManager.getData(new P.c({where:"1=1",outFields:[j]}),this);this._cachedQueryEngine=this.loadQueryEngine(e)}async _setupQueryObjects(e,t){const n=P.c.from(e),i=n.geometry;let r;if(i&&!i.spatialReference?.isWGS84&&(await(0,w.initializeProjection)(i.spatialReference,b.UH),n.geometry=(0,w.project)(i instanceof g.c||i instanceof ae.c?i:i.extent,b.UH)),"link-chart"===this.parentCompositeLayer.type&&this._cachedQueryEngine)r=this._cachedQueryEngine;else{const e=await this.parentCompositeLayer.dataManager.getData(n,this,t);r=this.loadQueryEngine(e)}return{resolvedQuery:n,queryEngine:r}}};(0,i._)([(0,l.qq)()],ce.prototype,"capabilities",void 0),(0,i._)([(0,l.qq)({readOnly:!0})],ce.prototype,"defaultPopupTemplate",null),(0,i._)([(0,l.qq)()],ce.prototype,"definitionExpression",void 0),(0,i._)([(0,l.qq)()],ce.prototype,"displayField",void 0),(0,i._)([(0,l.qq)()],ce.prototype,"elevationInfo",void 0),(0,i._)([(0,l.qq)()],ce.prototype,"geometryType",void 0),(0,i._)([(0,l.qq)()],ce.prototype,"geometryFieldName",void 0),(0,i._)([(0,l.qq)()],ce.prototype,"graphType",void 0),(0,i._)([(0,l.qq)()],ce.prototype,"hasM",void 0),(0,i._)([(0,l.qq)()],ce.prototype,"hasZ",void 0),(0,i._)([(0,l.qq)()],ce.prototype,"labelsVisible",void 0),(0,i._)([(0,l.qq)()],ce.prototype,"labelingInfo",void 0),(0,i._)([(0,l.qq)()],ce.prototype,"objectIdField",void 0),(0,i._)([(0,l.qq)()],ce.prototype,"objectType",void 0),(0,i._)([(0,l.qq)()],ce.prototype,"parentCompositeLayer",void 0),(0,i._)([(0,l.qq)(te.Ou)],ce.prototype,"popupEnabled",void 0),(0,i._)([(0,l.qq)({type:U.c,json:{name:"popupInfo",write:!0}})],ce.prototype,"popupTemplate",void 0),(0,i._)([(0,l.qq)({types:z.U,json:{write:{target:"layerDefinition.drawingInfo.renderer"}}})],ce.prototype,"renderer",null),(0,i._)([(0,l.qq)()],ce.prototype,"source",void 0),(0,i._)([(0,l.qq)({json:{read:!1}})],ce.prototype,"type",void 0),ce=(0,i._)([(0,c.c)("esri.layers.knowledgeGraph.KnowledgeGraphSublayer")],ce);const he=ce;var ue=n(24832);let pe,de=null;var ye,me,fe,ge,we,be,_e,xe,ve,Ee,ke;function Le(e,t,n,i,r,s){const o=n.length,a=r.length,l=Float64Array.BYTES_PER_ELEMENT,c=Uint32Array.BYTES_PER_ELEMENT,h=Uint8Array.BYTES_PER_ELEMENT,u=15+o*(h+2*l)+a*(2*c),p=de._malloc(u);try{const h=p+16-p%16,u=h+o*l,d=u+o*l,y=d+a*c,m=y+a*c,f=()=>[de.HEAPF64.subarray(h>>3,(h>>3)+o),de.HEAPF64.subarray(u>>3,(u>>3)+o),de.HEAPU32.subarray(d>>2,(d>>2)+a),de.HEAPU32.subarray(y>>2,(y>>2)+a),de.HEAPU8.subarray(m,m+o)],[g,w,b,_,x]=f();g.set(n),w.set(i),b.set(r),_.set(s),x.set(t);const v=e(o,m,h,u,a,d,y);let E=null;if(v){const e=de.getLayoutLinksTypes(),t=de.getLayoutLinksVerticesEndIndices(),n=de.getLayoutLinksVertices(),i=de.countLayoutLinksVertices();E={types:de.HEAPU8.subarray(e,e+a),vertexEndIndex:de.HEAPU32.subarray(t>>2,(t>>2)+a),vertices:de.HEAPF64.subarray(n>>3,(n>>3)+2*i)}}const[k,L,T,M,C]=f();return n.set(k),i.set(L),r.set(T),s.set(M),t.set(C),{success:v,links:E}}finally{de._free(p),de.cleanupLayout()}}(fe=ye||(ye={}))[fe.None=0]="None",fe[fe.IsMovable=1]="IsMovable",fe[fe.IsGeographic=2]="IsGeographic",fe[fe.IsRoot=4]="IsRoot",function(e){e[e.Regular=0]="Regular",e[e.Orthogonal=1]="Orthogonal",e[e.Curved=2]="Curved",e[e.Recursive=3]="Recursive"}(me||(me={})),function(e){e.getMinIdealEdgeLength=function(){return de.getMinIdealEdgeLength()},e.apply=function(e,t,n,i,r,s=2,o=1,a=-1){return Le(((e,t,n,i,r,l,c)=>de.applyForceDirectedLayout(e,t,n,i,r,l,c,s,o,a)),e,t,n,i,r)}}(ge||(ge={})),function(e){e.apply=function(e,t,n,i,r,s=2,o=1,a=-1){return Le(((e,t,n,i,r,l,c)=>de.applyCommunityLayout(e,t,n,i,r,l,c,s,o,a)),e,t,n,i,r)}}(we||(we={})),function(e){e.apply=function(e,t,n,i,r){return Le(de.applySimpleLayout,e,t,n,i,r)}}(be||(be={})),function(e){e.apply=function(e,t,n,i,r){return Le(de.applyHierarchicalLayout,e,t,n,i,r)}}(_e||(_e={})),function(e){e.apply=function(e,t,n,i,r){return Le(de.applyRadialTreeLayout,e,t,n,i,r)}}(xe||(xe={})),function(e){e.apply=function(e,t,n,i,r){return Le(de.applySmartTreeLayout,e,t,n,i,r)}}(ve||(ve={})),function(e){e[e.Undirected=0]="Undirected",e[e.Directed=1]="Directed",e[e.Reversed=2]="Reversed"}(Ee||(Ee={})),function(e){e[e.ByCC_Raw=0]="ByCC_Raw",e[e.ByCC_NormalizeGlobally=1]="ByCC_NormalizeGlobally",e[e.ByCC_NormalizeByCC=2]="ByCC_NormalizeByCC"}(ke||(ke={}));var Te=n(16976),Me=n(64640),Ce=n(67776);let Ie=class extends((0,X.W)((0,ee.I)(u.c))){constructor(e){if(super(e),this.dataPreloadedInLocalCache=!1,this.defaultLinkChartConfig=null,this._currentLinkChartConfig={layoutMode:"RADIAL_TREE",xScaleFactor:1,yScaleFactor:1},this._graphTypeLookup=new Map,this.dataManager=null,this.knowledgeGraph=null,this.layers=new r.c,this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map,this.linkChartExtent=new A.c({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7}),this.linkChartGeohashLookup=new Map,this.memberEntityTypes=null,this.memberRelationshipTypes=null,this.sublayerIdsCache=new Map,this.tables=new r.c,this.type="link-chart",this._originalInclusionList=e.inclusionModeDefinition,e.dataPreloadedInLocalCache&&!e.inclusionModeDefinition)throw new s.c("knowledge-graph:linkchart-layer-constructor","If creating a link chart composite layer and configured that data is already loaded in the cache, you must specify an inclusion list so the Composite Layer knows what records belong to it")}normalizeCtorArgs(e){return{url:e.url,title:e.title,dataPreloadedInLocalCache:e.dataPreloadedInLocalCache,defaultLinkChartConfig:e.defaultLinkChartConfig}}_initializeLayerProperties(e){if(!this.title&&this.url){const e=this.url.split("/");this.title=e[e.length-2]}const t=new Set;let n=[],i=[];if(e.inclusionModeDefinition&&(!e.inclusionModeDefinition.namedTypeDefinitions||e.inclusionModeDefinition.namedTypeDefinitions.size<1))throw new s.c("knowledge-graph:composite-layer-constructor","If an explicit inclusion definition is defined, at least one namedTypeDefinition must also be defined");e.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&this._graphTypeLookup.set(e.name,e)})),e.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&this._graphTypeLookup.set(e.name,e)})),e.inclusionModeDefinition?.generateAllSublayers?(n=e.knowledgeGraph.dataModel.entityTypes??[],i=e.knowledgeGraph.dataModel.relationshipTypes??[]):e.inclusionModeDefinition?.namedTypeDefinitions&&e.inclusionModeDefinition?.namedTypeDefinitions.size>0?e.inclusionModeDefinition?.namedTypeDefinitions.forEach(((r,s)=>{if(!this._graphTypeLookup.get(s))return o.c.getLogger(this).warn(`A named type, ${s}, was in the inclusion list that wasn't in the data model and will be removed`),void e.inclusionModeDefinition?.namedTypeDefinitions.delete(s);this._graphTypeLookup.get(s)instanceof Me.c||"strictOrigin"in this._graphTypeLookup.get(s)?t.has(s)||(t.add(s),i.push(this._graphTypeLookup.get(s))):this._graphTypeLookup.get(s)instanceof Te.c||"properties"in this._graphTypeLookup.get(s)?t.has(s)||(t.add(s),n.push(this._graphTypeLookup.get(s))):(o.c.getLogger(this).warn(`A named type, ${s}, was in the inclusion list that wasn't properly modeled and will be removed`),e.inclusionModeDefinition?.namedTypeDefinitions.delete(s))})):(n=e.knowledgeGraph.dataModel.entityTypes??[],i=e.knowledgeGraph.dataModel.relationshipTypes??[]);const r=new J({knowledgeGraph:e.knowledgeGraph,inclusionModeDefinition:e.inclusionModeDefinition});this.knowledgeGraph=e.knowledgeGraph,this.memberEntityTypes=n,this.memberRelationshipTypes=i,this.dataManager=r}load(e){return this.addResolvingPromise(new Promise((t=>{(0,N.fetchKnowledgeGraph)(this.url).then((n=>{if(this._initializeLayerProperties({knowledgeGraph:n,inclusionModeDefinition:this._originalInclusionList}),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.size||(this.dataManager.inclusionModeDefinition={generateAllSublayers:!1,namedTypeDefinitions:new Map},this.dataManager.knowledgeGraph.dataModel.entityTypes?.forEach((e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})})),this.dataManager.knowledgeGraph.dataModel.relationshipTypes?.forEach((e=>{e.name&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.set(e.name,{useAllData:!0})}))),this.dataPreloadedInLocalCache)this.loadLayerAssumingLocalCache(),this.dataManager.inclusionModeDefinition&&(this.dataManager.inclusionModeDefinition.generateAllSublayers=!1),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach((e=>{e.useAllData=!1,e.members?.forEach((e=>{let t;t=e.linkChartLocation instanceof d.c?e.linkChartLocation:e.linkChartLocation?(0,p.C)(e.linkChartLocation):null,t&&2===t.coords.length&&0===t.lengths.length?(this.linkChartGeohashLookup.set(e.id,(0,h.EN)(t.coords[1],t.coords[0],F)),this.entityLinkChartDiagramLookup.set(e.id,t)):(this.linkChartGeohashLookup.set(e.id,""),this.relationshipLinkChartDiagramLookup.set(e.id,t))})),this.addResolvingPromise(this._initializeDiagram().then((async()=>{this.layers.forEach((async e=>{await e.refreshCachedQueryEngine()})),this.tables.forEach((async e=>{await e.refreshCachedQueryEngine()}))})))}));else{const t="GEOGRAPHIC"===this.defaultLinkChartConfig?.layoutMode;this.addResolvingPromise(this.dataManager.refreshCacheContent(void 0,!1,t,!0).then((async()=>{(0,a.wp)(e);const t=[],n=[];this.loadLayerAssumingLocalCache(),this.dataManager.inclusionModeDefinition&&(this.dataManager.inclusionModeDefinition.generateAllSublayers=!1,this.dataManager.inclusionModeDefinition.namedTypeDefinitions.forEach((e=>{e.useAllData=!1}))),await this._initializeDiagram(),this.layers.forEach((e=>{n.push(e.refreshCachedQueryEngine()),t.push(new Promise((t=>{e.on("layerview-create",(()=>{t(null)}))})))})),this.tables.forEach((e=>{n.push(e.refreshCachedQueryEngine())})),await Promise.all(n)})))}t(null)}))}))),Promise.resolve(this)}async addRecords(e,t){let n=[];t?.cascadeAddRelationshipEndNodes&&this.dataManager.knowledgeGraph.dataModel&&(n=await async function(e,t){const n=[],i=new Map,r=[];if(t.dataModel?.relationshipTypes)for(const e of t.dataModel.relationshipTypes)e.name&&i.set(e.name,[]);for(const t of e)i.has(t.typeName)&&i.get(t.typeName)?.push(t.id);for(const[e,s]of i){if(s.length<1)continue;const i=new D.c({openCypherQuery:`MATCH (n)-[r:${e}]->(m) WHERE id(r) in $ids RETURN id(n), labels(n)[0], id(m), labels(m)[0]`,bindParameters:{ids:s}});r.push((0,N.executeQueryStreaming)(t,i).then((async e=>{const t=e.resultRowsStream.getReader();for(;;){const{done:e,value:i}=await t.read();if(e)break;for(const e of i)n.push({id:e[0],typeName:e[1]}),n.push({id:e[2],typeName:e[3]})}})))}return await Promise.all(r),n}(e,this.dataManager.knowledgeGraph));const i=e.concat(n).filter((e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id)));await this._handleNewRecords(i)}async removeRecords(e,{cascadeRemoveRelationships:t=!0,recalculateLayout:n=!1}={cascadeRemoveRelationships:!0,recalculateLayout:!1}){let i=[];for(const t of e)!1===this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.useAllData&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.get(t.typeName)?.members?.has(t.id)&&i.push(t);if(t){const e=new Set,t=[];for(const t of i)if(this.dataManager.nodeConnectionsLookup.has(t.id))for(const n of this.dataManager.nodeConnectionsLookup.get(t.id))e.add(n);for(const n of e)if(this.dataManager.memberIdTypeLookup.has(n))for(const e of this.dataManager.memberIdTypeLookup.get(n))this.dataManager.relationshipTypeNames.has(e)&&t.push({id:n,typeName:e});i=i.concat(t)}this.dataManager.removeFromLayer(i);for(const e of i)this.sublayerIdsCache.get(e.typeName)?.delete(e.id),this.dataManager.relationshipTypeNames.has(e.typeName)?this.relationshipLinkChartDiagramLookup.delete(e.id):this.entityLinkChartDiagramLookup.delete(e.id);n&&await this.calculateLinkChartLayout(this._currentLinkChartConfig.layoutMode,{xScaleFactor:this._currentLinkChartConfig.xScaleFactor,yScaleFactor:this._currentLinkChartConfig.xScaleFactor});const r=[];return this.layers.forEach((e=>{r.push(e.refreshCachedQueryEngine())})),await Promise.all(r),this._refreshNamedTypes(),i}async expand(e,t){const n=await this.dataManager.getConnectedRecordIds(e,t),i=n.filter((e=>!this.sublayerIdsCache.get(e.typeName)?.has(e.id)));return await this._handleNewRecords(n),{records:i}}loadLayerAssumingLocalCache(){this.memberRelationshipTypes.forEach((e=>{const t=new he({objectType:e,parentCompositeLayer:this,graphType:"relationship",title:e.name});t.geometryType?this.layers.push(t):this.tables.push(t),this.dataManager.sublayerCaches.has(e.name)||this.dataManager.sublayerCaches.set(e.name,new Map)})),this.memberEntityTypes.forEach((e=>{const t=new he({objectType:e,parentCompositeLayer:this,graphType:"entity",title:e.name});t.geometryType?this.layers.push(t):this.tables.push(t),this.dataManager.sublayerCaches.has(e.name)||this.dataManager.sublayerCaches.set(e.name,new Map)})),this.dataManager.inclusionModeDefinition?.namedTypeDefinitions&&this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,t)=>{const n=((e,t,n)=>(e.has(t)||e.set(t,new Set),e.get(t)))(this.sublayerIdsCache,t);e.members?.forEach((e=>{if(n.add(e.id),e.linkChartLocation)if(e.linkChartLocation instanceof d.c)this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(e.id,e.linkChartLocation):this.entityLinkChartDiagramLookup.set(e.id,e.linkChartLocation),2===e.linkChartLocation.coords.length&&0===e.linkChartLocation.lengths.length?this.linkChartGeohashLookup.set(e.id,(0,h.EN)(e.linkChartLocation.coords[1],e.linkChartLocation.coords[0],F)):this.linkChartGeohashLookup.set(e.id,"");else{const n=(0,p.C)(e.linkChartLocation);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(e.id,e.linkChartLocation?n:null):this.entityLinkChartDiagramLookup.set(e.id,e.linkChartLocation?n:null),"x"in e.linkChartLocation&&"y"in e.linkChartLocation?this.linkChartGeohashLookup.set(e.id,(0,h.EN)(e.linkChartLocation.x,e.linkChartLocation.y,F)):this.linkChartGeohashLookup.set(e.id,"")}}))}))}async calculateLinkChartLayout(e="RADIAL_TREE",t){const i=[],r=[];this.dataManager.sublayerCaches.forEach(((e,t)=>{this.dataManager.entityTypeNames.has(t)?e.forEach((e=>{i.push({typeName:t,feature:e})})):this.dataManager.relationshipTypeNames.has(t)&&e.forEach((e=>{r.push({typeName:t,feature:e})}))})),this.entityLinkChartDiagramLookup=new Map,this.relationshipLinkChartDiagramLookup=new Map;const a=new Map,l=new Map,c=new Map,u=new Map,d=new Uint8Array(i.length),y=new Float64Array(i.length),m=new Float64Array(i.length),f=new Uint32Array(r.length),g=new Uint32Array(r.length),w=[],b=t?.xScaleFactor??1,_=t?.yScaleFactor??1,x=new A.c({xmin:-1e-7,ymin:-1e-7,xmax:1e-7,ymax:1e-7});let v,E="FORCE_DIRECTED",k=0,L=0;switch(E="GEOGRAPHIC"===e?"FORCE_DIRECTED":e,E){case"FORCE_DIRECTED":v=ge.apply;break;case"COMMUNITY":v=we.apply;break;case"HIERARCHICAL":v=_e.apply;break;case"RADIAL_TREE":v=xe.apply;break;case"SMART_TREE":v=ve.apply;break;default:v=be.apply}i.forEach((({typeName:n,feature:i})=>{if(t?.lockedNodeLocations?.has(i.attributes[j])){"GEOGRAPHIC"===e&&this.dataManager.geographicLookup.has(n)?d[k]=ye.IsGeographic:d[k]=ye.None;const r=t.lockedNodeLocations.get(i.attributes[j]);y[k]=r.x,m[k]=r.y}else if("GEOGRAPHIC"===e&&this.dataManager.geographicLookup.has(n)){d[k]=ye.IsGeographic;let e=null;const t=i.attributes[this.dataManager.geographicLookup.get(n).name],r=this.dataManager.geographicLookup.get(n)?.geometryType;switch(r){case"esriGeometryPoint":y[k]=t?.x,m[k]=t?.y;break;case"esriGeometryPolygon":e=t?.centroid,null!=e?.x&&null!=e?.y?(y[k]=e.x,m[k]=e.y):d[k]=ye.IsMovable;break;case"esriGeometryPolyline":case"esriGeometryMultipoint":e=t?.extent?.center,null!=e?.x&&null!=e?.y?(y[k]=e.x,m[k]=e.y):d[k]=ye.IsMovable;break;default:d[k]=ye.IsMovable}(null==y[k]||null==m[k]||Number.isNaN(y[k])||Number.isNaN(m[k]))&&(d[k]=ye.IsMovable,y[k]=0,m[k]=0)}else d[k]=ye.IsMovable,y[k]=0,m[k]=0;u.set(i.attributes[j],k),w[k]={feature:i,typeName:n},k++}));let T=!1;r.forEach((e=>{const t=u.get(e.feature.attributes[O]),n=u.get(e.feature.attributes[G]);void 0!==t&&void 0!==n?(f[L]=t,g[L]=n,L++):(T=!0,this.relationshipLinkChartDiagramLookup.set(e.feature.attributes[O],null),this.linkChartGeohashLookup.set(e.feature.attributes[O],null))})),T&&o.c.getLogger(this).warn("A relationship is a member of this layer that has either origin or destination entity nodes that are not members. The diagram geometry will be set to null"),await(pe||(pe=n.e(6520).then(n.bind(n,76520)).then((e=>e.l)).then((({default:e})=>e({locateFile:e=>(0,ue.O)(`esri/libs/linkchartlayout/${e}`)}))).then((e=>{!function(e){de=e}(e)})),pe));const{success:M}=v(d,y,m,f,g);if(!M)throw new s.c("knowledge-graph:layout-failed","Attempting to arrange the records in the specified layout failed");for(let e=0;e<w.length;e++){if(d[e]===ye.IsMovable&&(y[e]=y[e]*b,m[e]=m[e]*_),m[e]>84.9999&&(m[e]=84.9999),m[e]<-84.9999&&(m[e]=-84.9999),y[e]>179.9999&&(y[e]=179.9999),y[e]<-179.9999&&(y[e]=-179.9999),w[e].feature.attributes[B]=new Ce.c(y[e],m[e]),a.has(w[e].typeName)){const t=a.get(w[e].typeName);t?.set(w[e].feature.attributes[j],w[e].feature)}else{const t=new Map;t.set(w[e].feature.attributes[j],w[e].feature),a.set(w[e].typeName,t)}c.set(w[e].feature.attributes[j],w[e].feature);const t=(0,p.C)(w[e].feature.attributes[B]);this.entityLinkChartDiagramLookup.set(w[e].feature.attributes[j],w[e].feature.attributes[B]?t:null),this.linkChartGeohashLookup.set(w[e].feature.attributes[j],(0,h.EN)(w[e].feature.attributes[B].y,w[e].feature.attributes[B].x,F)),w[e].feature.attributes[B].x<x.xmin&&(x.xmin=w[e].feature.attributes[B].x),w[e].feature.attributes[B].x>x.xmax&&(x.xmax=w[e].feature.attributes[B].x),w[e].feature.attributes[B].y<x.ymin&&(x.ymin=w[e].feature.attributes[B].y),w[e].feature.attributes[B].y>x.ymax&&(x.ymax=w[e].feature.attributes[B].y)}return this.linkChartExtent.xmin=x.xmin,this.linkChartExtent.xmax=x.xmax,this.linkChartExtent.ymin=x.ymin,this.linkChartExtent.ymax=x.ymax,r.forEach((e=>{const t=w[u.get(e.feature.attributes[O])]?.feature.attributes[B],n=w[u.get(e.feature.attributes[G])]?.feature.attributes[B];if(!t||!n)return;const i=new ae.c({paths:[[t.x,t.y],[n.x,n.y]]});if(e.feature.attributes[B]=i,l.has(e.typeName)){const t=l.get(e.typeName);t?.set(e.feature.attributes[j],e.feature)}else{const t=new Map;t.set(e.feature.attributes[j],e.feature),l.set(e.typeName,t)}c.set(e.feature.attributes[j],e.feature);const r=(0,p.C)(e.feature.attributes[B]);this.relationshipLinkChartDiagramLookup.set(e.feature.attributes[j],e.feature.attributes[B]?r:null),this.linkChartGeohashLookup.set(e.feature.attributes[j],"")})),this._currentLinkChartConfig={layoutMode:e,xScaleFactor:b,yScaleFactor:_},{nodes:a,links:l,idMap:c}}async applyNewLinkChartLayout(e="RADIAL_TREE",t){const n=[];await this.calculateLinkChartLayout(e,t),this.layers.forEach((e=>{n.push(e.refreshCachedQueryEngine())})),await Promise.all(n),this._refreshNamedTypes()}getCurrentNodeLocations(){const e=new Map;return this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach((t=>{t?.members?.forEach((t=>{const n=t.linkChartLocation;let i;const r=t.id;n&&(i="x"in n?{x:n.x,y:n.y}:{x:n.coords[0],y:n.coords[1]},e.set(r,new Ce.c({x:i.x,y:i.y})))}))})),e}async synchronizeInclusionListWithCache(){return new Promise((e=>{this.dataManager.inclusionModeDefinition?.namedTypeDefinitions.forEach(((e,t)=>{if(e.useAllData=!1,e.members&&e.members.size>0){if(!this.dataManager.sublayerCaches.get(t))return;const n=new Set(Array.from(this.dataManager.sublayerCaches.get(t).keys()));Array.from(e.members.keys()).filter((e=>!n.has(e))).forEach((t=>{e.members?.delete(t)}))}})),e()}))}async refreshLinkChartCache(e){await this.dataManager.refreshCacheContent(e);const t=[];this.layers.forEach((e=>{t.push(e.refreshCachedQueryEngine())})),await Promise.all(t),this._refreshNamedTypes()}async _handleNewRecords(e){const t=[];this.dataManager.addToLayer(e);for(const n of e)this.sublayerIdsCache.has(n.typeName)||(this.sublayerIdsCache.set(n.typeName,new Set),t.push(n.typeName)),this.sublayerIdsCache.get(n.typeName).add(n.id);for(const e of t)if(this._graphTypeLookup.has(e)){const t=this._graphTypeLookup.get(e),n="endPoints"in t?"relationship":"entity",i=new he({objectType:t,parentCompositeLayer:this,graphType:n,title:e});"entity"===n?this.dataManager.entityTypeNames.add(e):this.dataManager.relationshipTypeNames.add(e),i.geometryType?this.layers.push(i):this.tables.push(i),this.dataManager.sublayerCaches.set(e,new Map)}await this.dataManager.refreshCacheContent(e.map((e=>e.id))),await this.applyNewLinkChartLayout(this._currentLinkChartConfig.layoutMode,{xScaleFactor:this._currentLinkChartConfig.xScaleFactor,yScaleFactor:this._currentLinkChartConfig.xScaleFactor})}async _initializeDiagram(){this.defaultLinkChartConfig?this.defaultLinkChartConfig.doNotRecalculateLayout?(this.dataManager.inclusionModeDefinition?.namedTypeDefinitions?.forEach(((e,t)=>{e?.members?.forEach((e=>{const n=e.linkChartLocation;let i;const r=e.id;if(!n)return;i="x"in n?{x:n.x,y:n.y}:{x:n.coords[0],y:n.coords[1]};const s=(0,p.C)(i);this.dataManager.relationshipTypeNames.has(t)?this.relationshipLinkChartDiagramLookup.set(r,s):this.entityLinkChartDiagramLookup.set(r,s),this.linkChartGeohashLookup.set(r,(0,h.EN)(i.x,i.y,F)),this.linkChartExtent.xmin>i.x&&(this.linkChartExtent.xmin=i.x),this.linkChartExtent.xmax<i.x&&(this.linkChartExtent.xmax=i.x),this.linkChartExtent.ymin>i.y&&(this.linkChartExtent.ymin=i.y),this.linkChartExtent.ymax<i.y&&(this.linkChartExtent.ymax=i.y)}))})),this.memberRelationshipTypes.forEach((e=>{e.name&&this.dataManager.sublayerCaches.get(e.name)?.forEach((e=>{const t=this.relationshipLinkChartDiagramLookup.get(e.attributes[O]),n=this.relationshipLinkChartDiagramLookup.get(e.attributes[G]);if(t&&n){const i=(0,p.C)(new ae.c({paths:[[t.coords[0],t.coords[1]],[n.coords[0],n.coords[1]]]}));this.relationshipLinkChartDiagramLookup.set(e.attributes[j],i)}else this.relationshipLinkChartDiagramLookup.set(e.attributes[j],null);this.linkChartGeohashLookup.set(e.attributes[j],"")}))}))):await this.calculateLinkChartLayout(this.defaultLinkChartConfig.layoutMode,{xScaleFactor:this.defaultLinkChartConfig.xScaleFactor,yScaleFactor:this.defaultLinkChartConfig.yScaleFactor,lockedNodeLocations:this.getCurrentNodeLocations()}):await this.calculateLinkChartLayout("RADIAL_TREE",{lockedNodeLocations:this.getCurrentNodeLocations()})}_refreshNamedTypes(){for(const e of this.layers)e.emit("refresh",{dataChanged:!0});for(const e of this.tables)e.emit("refresh",{dataChanged:!0})}};(0,i._)([(0,l.qq)()],Ie.prototype,"dataPreloadedInLocalCache",void 0),(0,i._)([(0,l.qq)()],Ie.prototype,"defaultLinkChartConfig",void 0),(0,i._)([(0,l.qq)()],Ie.prototype,"dataManager",void 0),(0,i._)([(0,l.qq)()],Ie.prototype,"knowledgeGraph",void 0),(0,i._)([(0,l.qq)()],Ie.prototype,"layers",void 0),(0,i._)([(0,l.qq)()],Ie.prototype,"entityLinkChartDiagramLookup",void 0),(0,i._)([(0,l.qq)()],Ie.prototype,"relationshipLinkChartDiagramLookup",void 0),(0,i._)([(0,l.qq)()],Ie.prototype,"linkChartExtent",void 0),(0,i._)([(0,l.qq)()],Ie.prototype,"linkChartGeohashLookup",void 0),(0,i._)([(0,l.qq)()],Ie.prototype,"memberEntityTypes",void 0),(0,i._)([(0,l.qq)()],Ie.prototype,"memberRelationshipTypes",void 0),(0,i._)([(0,l.qq)()],Ie.prototype,"sublayerIdsCache",void 0),(0,i._)([(0,l.qq)()],Ie.prototype,"tables",void 0),(0,i._)([(0,l.qq)({json:{read:!1}})],Ie.prototype,"type",void 0),Ie=(0,i._)([(0,c.c)("esri.layers.LinkChartLayer")],Ie);const Se=Ie},6904:(e,t,n)=>{n.d(t,{c:()=>a});var i=n(9456),r=n(3024),s=n(83372);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 r.U(9,(0,i.c)("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,s.FZ)();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()))}}},9107:(e,t,n)=>{n.d(t,{c:()=>y});var i=n(92400),r=n(20744),s=n(77860),o=n(66360),a=n(77048),l=n(83372),c=n(97088),h=n(6904),u=n(83624),p=n(51752);const d=(0,a.Su)();class y{constructor(e){this.geometryInfo=e,this._boundsStore=new h.c,this._featuresById=new Map,this._markedIds=new Set,this.events=new s.c,this.featureAdapter=p.u}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,r]=this.fullBounds;return{xmin:t,ymin:n,xmax:i,ymax:r,spatialReference:(0,u.C6)(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.G6)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}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.Qv)(d,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))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,n)=>{this._markedIds.has(n)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.c.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.c("featurestore:invalid-feature","feature id is missing",{feature:e}));const n=this._featuresById.get(t);let i;if(this._markedIds.add(t),n?(e.displayId=n.displayId,i=this._boundsStore.get(t),this._boundsStore.delete(t)):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);i=(0,c.C_)(null!=i?i:(0,l.Su)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=i&&this._boundsStore.set(t,i),this._featuresById.set(t,e)}_upsert(e){const t=e?.objectId;if(null==t)return o.c.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.c("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const n=this._featuresById.get(t);if(!n)return this._add(e),e;this._markedIds.add(t);const{geometry:i,attributes:s}=e;for(const e in s)n.attributes[e]=s[e];return i&&(n.geometry=i,this._boundsStore.set(t,(0,c.C_)((0,l.Su)(),i,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),n}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._markedIds.delete(t),this._boundsStore.delete(t),this._featuresById.delete(t),e}}},17724:(e,t,n)=>{n.d(t,{G4:()=>p,GA:()=>h,QD:()=>u,w7:()=>a});var i=n(9456),r=n(62088),s=n(13136),o=n(9504);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.qe:"esriGeometryPolyline"===e?o.MZ:o.yq}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let c=1;function h(e,t){if((0,i.c)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this.${t} = null;`;for(const t in e)n+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const i=new Function(`\n return class AttributesClass$${c++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new i}catch(n){return()=>({[t]:null,...e})}}function u(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.ct)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:s.u,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},600:(e,t,n)=>{n.d(t,{c:()=>f});var i,r=n(41948),s=n(14628),o=n(40504),a=n(1580),l=n(53368),c=(n(72052),n(9456),n(9968)),h=n(33600),u=n(12552),p=n(89812),d=n(36408);const y=new s.O({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends o.am{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?y.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,r._)([(0,a.qq)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r._)([(0,a.qq)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r._)([(0,a.qq)()],m.prototype,"description",void 0),(0,r._)([(0,h.E)("description")],m.prototype,"readDescription",null),(0,r._)([(0,a.qq)({types:p.i2,json:{read:{reader:p.h4},write:!0}})],m.prototype,"domain",void 0),(0,r._)([(0,a.qq)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r._)([(0,a.qq)({type:l.Ab,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,r._)([(0,a.qq)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r._)([(0,a.qq)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r._)([(0,c.G)(d.M)],m.prototype,"type",void 0),(0,r._)([(0,a.qq)()],m.prototype,"valueType",void 0),(0,r._)([(0,h.E)("valueType",["description"])],m.prototype,"readValueType",null),(0,r._)([(0,a.qq)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,r._)([(0,u.c)("esri.layers.support.Field")],m);const f=m},6168:(e,t,n)=>{n.d(t,{c:()=>T});var i,r=n(41948),s=n(17988),o=n(14628),a=n(40504),l=n(62088),c=n(50144),h=n(1580),u=(n(9456),n(66360),n(33600)),p=n(12552),d=n(18996),y=(n(72052),n(4144));let m=i=class extends a.am{constructor(){super(...arguments),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,y.wf)(t.value):e}writeExpression(e,t,n){null!=this.value&&(e=(0,y.wf)(this.value)),null!=e&&(t[n]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,r._)([(0,h.qq)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],m.prototype,"expression",void 0),(0,r._)([(0,u.E)("expression",["expression","value"])],m.prototype,"readExpression",null),(0,r._)([(0,d.G)("expression")],m.prototype,"writeExpression",null),(0,r._)([(0,h.qq)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],m.prototype,"title",void 0),(0,r._)([(0,h.qq)({json:{read:!1,write:!1}})],m.prototype,"value",void 0),m=i=(0,r._)([(0,p.c)("esri.layers.support.LabelExpressionInfo")],m);const f=m;var g,w=n(71068),b=n(45704),_=n(36210);const x=new o.O({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function v(e,t,n){return{enabled:!(0,w.iL)(n?.layer)}}function E(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function k(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let L=g=class extends a.am{static evaluateWhere(e,t){const n=(e,t,n)=>{switch(t){case"=":return e==n;case"<>":return e!=n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n}return!1};try{if(null==e)return!0;const i=e.split(" ");if(3===i.length)return n(t[i[0]],i[1],i[2]);if(7===i.length){const e=n(t[i[0]],i[1],i[2]),r=i[3],s=n(t[i[4]],i[5],i[6]);switch(r){case"AND":return e&&s;case"OR":return e||s}}return!1}catch(t){console.log("Error.: can't parse = "+e)}}constructor(e){super(e),this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.repeatLabelDistance=null,this.symbol=b.YP,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const n=t.labelExpressionInfo;if(!n||!n.value&&!n.expression)return e}writeLabelExpression(e,t,n){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.Y$)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,y.GC)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[n]=e)}writeLabelExpressionInfo(e,t,n,i){if(null==e&&null!=this.labelExpression&&E(i))e=new f({expression:this.getLabelExpressionArcade()});else if(!e)return;const r=e.toJSON(i);r.expression&&(t[n]=r)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}getLabelExpression(){return(0,y.I5)(this)}getLabelExpressionArcade(){return(0,y.cF)(this)}getLabelExpressionSingleField(){return(0,y.Wi)(this)}hash(){return JSON.stringify(this)}clone(){return new g({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,l.ct)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,l.ct)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,r._)([(0,h.qq)({type:String,json:{write:!0}})],L.prototype,"name",void 0),(0,r._)([(0,h.qq)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:v}}}}})],L.prototype,"allowOverrun",void 0),(0,r._)([(0,h.qq)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:v}}}}})],L.prototype,"deconflictionStrategy",void 0),(0,r._)([(0,h.qq)({type:String,json:{write:{overridePolicy(e,t,n){return this.labelExpressionInfo&&"service"===n?.origin&&k(n.layer)?{enabled:!1}:{allowNull:!0}}}}})],L.prototype,"labelExpression",void 0),(0,r._)([(0,u.E)("labelExpression")],L.prototype,"readLabelExpression",null),(0,r._)([(0,d.G)("labelExpression")],L.prototype,"writeLabelExpression",null),(0,r._)([(0,h.qq)({type:f,json:{write:{overridePolicy:(e,t,n)=>function(e){return E(e)||k(e?.layer)}(n)?{allowNull:!0}:{enabled:!1}}}})],L.prototype,"labelExpressionInfo",void 0),(0,r._)([(0,d.G)("labelExpressionInfo")],L.prototype,"writeLabelExpressionInfo",null),(0,r._)([(0,h.qq)({type:x.apiValues,json:{type:x.jsonValues,read:x.read,write:x.write}})],L.prototype,"labelPlacement",void 0),(0,r._)([(0,h.qq)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],L.prototype,"labelPosition",void 0),(0,r._)([(0,h.qq)({type:Number})],L.prototype,"maxScale",void 0),(0,r._)([(0,d.G)("maxScale")],L.prototype,"writeMaxScale",null),(0,r._)([(0,h.qq)({type:Number})],L.prototype,"minScale",void 0),(0,r._)([(0,d.G)("minScale")],L.prototype,"writeMinScale",null),(0,r._)([(0,h.qq)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:v}}}}})],L.prototype,"repeatLabel",void 0),(0,r._)([(0,h.qq)({type:Number,cast:c.Qz,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:v}}}}})],L.prototype,"repeatLabelDistance",void 0),(0,r._)([(0,h.qq)({types:s.kH,json:{origins:{"web-scene":{types:s.uE,write:_.cx,default:null}},write:_.cx,default:null}})],L.prototype,"symbol",void 0),(0,r._)([(0,h.qq)({type:Boolean,json:{write:!0}})],L.prototype,"useCodedValues",void 0),(0,r._)([(0,h.qq)({type:String,json:{write:!0}})],L.prototype,"where",void 0),L=g=(0,r._)([(0,p.c)("esri.layers.support.LabelClass")],L);const T=L},21488:(e,t,n)=>{n.d(t,{WG:()=>x,Kg:()=>f,id:()=>E,Wu:()=>d,Uj:()=>m,ZH:()=>T,ED:()=>L,Og:()=>k,o9:()=>b,ms:()=>_,Ou:()=>p,yo:()=>g,m:()=>v,Q9:()=>u,qW:()=>y});var i=n(25228),r=n(84108),s=n(95247),o=n(56156),a=n(91952),l=(n(92400),n(62088),n(94360)),c=n(27136),h=n(9332);const u={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:{enabled:!0,layerContainerTypes:r.T}}},p={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,n){t[n]=!e}}}},d={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:{enabled:!0,layerContainerTypes:r.T}}},y={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:a.w}}},m={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:{enabled:!0,layerContainerTypes:r.T}}},f={value:null,type:c.c,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:{enabled:!0,layerContainerTypes:r.T}}};function g(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const w={write:{enabled:!0,layerContainerTypes:r.T},read:!0},b={type:Number,json:{origins:{"web-document":w,"portal-item":{write:!0}}}},_={...b,json:{...b.json,origins:{"web-document":{...w,write:{enabled:!0,layerContainerTypes:r.T,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,n)=>n&&"service"!==n.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition?.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,h.u)(t.layerDefinition.drawingInfo.transparency):void 0:(0,h.u)(t.drawingInfo.transparency)}}},x={type:i.c,readOnly:!0,get(){const e=null!=this.layer?.timeInfo?this.layer:null!=this.i3slayer?.timeInfo?this.i3slayer:null;if(null==e)return null;const{datesInUnknownTimezone:t,timeOffset:n,useViewTime:r}=e,s=this.view?.timeExtent;let o=e.timeExtent;t&&(o=function(e){if(!e)return e;const{start:t,end:n}=e;return new i.c({start:null!=t?(0,l.g1)(t,t.getTimezoneOffset(),"minutes"):t,end:null!=n?(0,l.g1)(n,n.getTimezoneOffset(),"minutes"):n})}(o));let a=r?s&&o?s.intersection(o):s||o:o;if(!a||a.isEmpty||a.isAllTime)return a;n&&(a=a.offset(-n.value,n.unit)),t&&(a=function(e){if(!e)return e;const{start:t,end:n}=e;return new i.c({start:null!=t?(0,l.g1)(t,-t.getTimezoneOffset(),"minutes"):t,end:null!=n?(0,l.g1)(n,-n.getTimezoneOffset(),"minutes"):n})}(a));const c=this._get("timeExtent");return a.equals(c)?c:a}},v={type:s.c,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const n=s.c.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(n.spatialReference=o.c.fromJSON(t.spatialReference)),n}}}},read:!1}},E={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},k={type:Number,json:{origins:{service:{write:{enabled:!1}},"web-scene":{name:"layerDefinition.minScale",write:{enabled:!0,layerContainerTypes:r.T}}},name:"layerDefinition.minScale",write:!0}},L={type:Number,json:{origins:{service:{write:{enabled:!1}},"web-scene":{name:"layerDefinition.maxScale",write:{enabled:!0,layerContainerTypes:r.T}}},name:"layerDefinition.maxScale",write:!0}},T={json:{write:{ignoreOrigin:!0,layerContainerTypes:r.T},origins:{"web-map":{read:!1,write:!1}}}}},89812:(e,t,n)=>{n.d(t,{h4:()=>k,i2:()=>E}),n(9456);var i,r=n(41948),s=n(62088),o=n(1580),a=(n(66360),n(9968)),l=n(12552),c=n(40504);n(72052);let h=i=class extends c.am{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,r._)([(0,o.qq)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,r._)([(0,o.qq)({type:[String,Number],json:{write:!0}})],h.prototype,"code",void 0),h=i=(0,r._)([(0,l.c)("esri.layers.support.CodedValue")],h);const u=new(n(14628).O)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends c.am{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,o.qq)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,r._)([(0,a.G)(u)],p.prototype,"type",void 0),p=(0,r._)([(0,l.c)("esri.layers.support.Domain")],p);const d=p;var y;let m=y=class extends d{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 y({codedValues:(0,s.ct)(this.codedValues),name:this.name})}};(0,r._)([(0,o.qq)({type:[h],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,r._)([(0,a.G)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=y=(0,r._)([(0,l.c)("esri.layers.support.CodedValueDomain")],m);const f=m;var g;n(20744);let w=g=class extends d{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,r._)([(0,a.G)({inherited:"inherited"})],w.prototype,"type",void 0),w=g=(0,r._)([(0,l.c)("esri.layers.support.InheritedDomain")],w);const b=w;var _;let x=_=class extends d{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new _({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r._)([(0,o.qq)({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]}}}})],x.prototype,"maxValue",void 0),(0,r._)([(0,o.qq)({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]}}}})],x.prototype,"minValue",void 0),(0,r._)([(0,a.G)({range:"range"})],x.prototype,"type",void 0),x=_=(0,r._)([(0,l.c)("esri.layers.support.RangeDomain")],x);const v=x,E={key:"type",base:d,typeMap:{range:x,"coded-value":f,inherited:b}};function k(e){if(!e?.type)return null;switch(e.type){case"range":return v.fromJSON(e);case"codedValue":return f.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},4144:(e,t,n)=>{n.d(t,{GC:()=>E,I5:()=>m,Wi:()=>g,Y$:()=>y,cF:()=>f,wf:()=>w,y6:()=>d});var i=n(88264);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),a=new RegExp(s,"ig"),l=new RegExp("^"+r,"i"),c=new RegExp(s+"$","i"),h='"',u=h+" + ",p=" + "+h;function d(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=d(e.labelExpression),t.type="conventional"),t}function f(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return w(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(b);return t?.[1].trim()||null}(t.expression);case"arcade":return E(t.expression)}return null}function w(e){let t;return e?(t=(0,i.qq)(e,(e=>r+'$feature["'+e+'"]'+s)),t=l.test(t)?t.replace(l,""):h+t,t=c.test(t)?t.replace(c,""):t+h,t=t.replaceAll(o,u).replaceAll(a,p)):t='""',t}const b=/^\s*\{([^}]+)\}\s*$/i,_=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,x=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function E(e){if(!e)return null;let t=_.exec(e)||x.exec(e);return t?t[1]||t[3]:(t=v.exec(e),t?t[2]:null)}},12780:(e,t,n)=>{n.d(t,{s:()=>s});var i=n(24296),r=n(67932);const s={unknown:1,inches:(0,i.ck)(1,"meters","inches"),feet:(0,i.ck)(1,"meters","feet"),"us-feet":(0,i.ck)(1,"meters","us-feet"),yards:(0,i.ck)(1,"meters","yards"),miles:(0,i.ck)(1,"meters","miles"),"nautical-miles":(0,i.ck)(1,"meters","nautical-miles"),millimeters:(0,i.ck)(1,"meters","millimeters"),centimeters:(0,i.ck)(1,"meters","centimeters"),decimeters:(0,i.ck)(1,"meters","decimeters"),meters:(0,i.ck)(1,"meters","meters"),kilometers:(0,i.ck)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.M9)(1,"meters",r.ug.radius)}},81976:(e,t,n)=>{n.d(t,{Q:()=>s,y:()=>r});var i=n(6704);function r(e){return{geometryType:(0,i.Ce)(e[0]),geometries:e.map((e=>e.toJSON()))}}function s(e,t,n){const r=(0,i.uG)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=n,t}))}},8808:(e,t,n)=>{n.d(t,{c:()=>c});var i=n(41948),r=(n(60708),n(1580)),s=(n(9456),n(66360),n(72052),n(12552)),o=n(35332),a=n(67776);let l=class extends o.c{constructor(e){super(e),this.layoutGeometry=null}};(0,i._)([(0,r.qq)({type:a.c,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,i._)([(0,s.c)("esri.rest.knowledgeGraph.Entity")],l);const c=l},35332:(e,t,n)=>{n.d(t,{c:()=>l});var i=n(41948),r=n(1580),s=(n(9456),n(66360),n(72052),n(12552)),o=n(14080);let a=class extends o.c{constructor(e){super(e),this.typeName=null,this.id=null}};(0,i._)([(0,r.qq)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,i._)([(0,r.qq)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,i._)([(0,s.c)("esri.rest.knowledgeGraph.GraphNamedObject")],a);const l=a},14080:(e,t,n)=>{n.d(t,{c:()=>l});var i=n(41948),r=n(40504),s=n(1580),o=(n(9456),n(66360),n(72052),n(12552));let a=class extends r.am{constructor(e){super(e),this.properties=null}};(0,i._)([(0,s.qq)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,i._)([(0,o.c)("esri.rest.knowledgeGraph.GraphObject")],a);const l=a},27504:(e,t,n)=>{n.d(t,{c:()=>h});var i=n(41948),r=n(1580),s=(n(9456),n(66360),n(72052),n(12552)),o=n(43780);let a=class extends o.c{constructor(e){super(e),this.openCypherQuery=""}};(0,i._)([(0,r.qq)()],a.prototype,"openCypherQuery",void 0),a=(0,i._)([(0,s.c)("esri.rest.knowledgeGraph.GraphQuery")],a);const l=a;let c=class extends l{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null}};(0,i._)([(0,r.qq)()],c.prototype,"bindParameters",void 0),(0,i._)([(0,r.qq)()],c.prototype,"bindGeometryQuantizationParameters",void 0),(0,i._)([(0,r.qq)()],c.prototype,"outputQuantizationParameters",void 0),(0,i._)([(0,r.qq)()],c.prototype,"outputSpatialReference",void 0),c=(0,i._)([(0,s.c)("esri.rest.knowledgeGraph.GraphQueryStreaming")],c);const h=c},59940:(e,t,n)=>{n.d(t,{c:()=>a});var i=n(41948),r=(n(66360),n(9456),n(72052),n(20744),n(12552)),s=n(14080);let o=class extends s.c{constructor(e){super(e)}};o=(0,i._)([(0,r.c)("esri.rest.knowledgeGraph.ObjectValue")],o);const a=o},87987:(e,t,n)=>{n.d(t,{c:()=>c});var i=n(41948),r=n(40504),s=n(1580),o=(n(9456),n(66360),n(72052),n(12552)),a=n(14080);let l=class extends r.am{constructor(e){super(e),this.path=null}};(0,i._)([(0,s.qq)({type:[a.c],json:{write:!0}})],l.prototype,"path",void 0),l=(0,i._)([(0,o.c)("esri.rest.knowledgeGraph.Path")],l);const c=l},88812:(e,t,n)=>{n.d(t,{c:()=>c});var i=n(41948),r=(n(60708),n(1580)),s=(n(9456),n(66360),n(72052),n(12552)),o=n(35332),a=n(48516);let l=class extends o.c{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,i._)([(0,r.qq)({type:String,json:{write:!0}})],l.prototype,"originId",void 0),(0,i._)([(0,r.qq)({type:String,json:{write:!0}})],l.prototype,"destinationId",void 0),(0,i._)([(0,r.qq)({type:a.c,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,i._)([(0,s.c)("esri.rest.Relationship.Relationship")],l);const c=l},19212:(e,t,n)=>{n.d(t,{c:()=>p});var i,r=n(41948),s=n(40504),o=n(62088),a=n(1580),l=n(53368),c=n(12552),h=n(18996);let u=i=class extends s.am{constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new i((0,o.ct)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,name:this.name,num:this.num,objectIds:this.objectIds,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,r._)([(0,a.qq)({type:[String],json:{write:!0}})],u.prototype,"attachmentTypes",void 0),(0,r._)([(0,a.qq)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],u.prototype,"attachmentsWhere",void 0),(0,r._)([(0,a.qq)({type:Boolean,json:{write:!0}})],u.prototype,"cacheHint",void 0),(0,r._)([(0,a.qq)({type:[String],json:{write:!0}})],u.prototype,"keywords",void 0),(0,r._)([(0,a.qq)({type:[Number],json:{write:!0}})],u.prototype,"globalIds",void 0),(0,r._)([(0,a.qq)({json:{write:!0}})],u.prototype,"name",void 0),(0,r._)([(0,a.qq)({type:Number,json:{read:{source:"resultRecordCount"}}})],u.prototype,"num",void 0),(0,r._)([(0,a.qq)({type:[Number],json:{write:!0}})],u.prototype,"objectIds",void 0),(0,r._)([(0,a.qq)({type:Boolean,json:{default:!1,write:!0}})],u.prototype,"returnMetadata",void 0),(0,r._)([(0,a.qq)({type:[Number],json:{write:!0}})],u.prototype,"size",void 0),(0,r._)([(0,a.qq)({type:Number,json:{read:{source:"resultOffset"}}})],u.prototype,"start",void 0),(0,r._)([(0,h.G)("start"),(0,h.G)("num")],u.prototype,"writeStart",null),(0,r._)([(0,a.qq)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],u.prototype,"where",void 0),u=i=(0,r._)([(0,c.c)("esri.rest.support.AttachmentQuery")],u),u.from=(0,l.ey)(u);const p=u},59500:(e,t,n)=>{n.d(t,{c:()=>b});var i,r=n(41948),s=n(60708),o=n(6444),a=n(14628),l=n(40504),c=n(62088),h=n(1580),u=(n(9456),n(66360),n(33600)),p=n(12552),d=n(18996),y=n(56156),m=n(6704),f=n(600);const g=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends l.am{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const n=y.c.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const r=e[t],s=o.c.fromJSON(r),a=r.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=n);const l=r.aggregateGeometries,c=s.aggregateGeometries;if(l&&null!=c)for(const e in c){const t=c[e],i=l[e],r=i?.spatialReference;null==t||r||(t.spatialReference=n)}i.push(s)}return i}writeGeometryType(e,t,n,i){if(e)return void g.write(e,t,n,i);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void g.write(e.geometry.type,t,n,i)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,i=(0,m.h4)(e);return i&&!n&&t.spatialReference&&(i.spatialReference=y.c.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,c.ct)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let n=0;n<t.features.length;n++){const i=t.features[n];if(i.geometry){const t=e?.[n];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,n],translate:[i,r]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((r-e)/n)));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[i,r],scale:[s,o]}=n;let a=null,l=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=n;a=n=>n*t+e}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=n;l=n=>null==n?n:n*t+e}const c=this._getHydrationFunction(e,(e=>e*s+i),(e=>r-e*o),a,l);for(const{geometry:e}of t)null!=e&&c&&c(e);return this.transform=null,this}_quantizePoints(e,t,n){let i,r;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=n(a[1]);e===i&&o===r||(s.push([e-i,o-r]),i=e,r=o)}else i=t(a[0]),r=n(a[1]),s.push([i,r])}return s.length>0?s:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,m.Cs)(e)?e.rings:e.paths,r=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,n);o&&r.push(o)}return r.length>0?((0,m.Cs)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,n);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n,i,r){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,m.Cs)(e)?e.rings:e.paths;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,r=i.length;e<r;e++){const r=i[e];e>0?(o+=r[0],a+=r[1]):(o=r[0],a=r[1]),r[0]=t(o),r[1]=n(a)}}if(i&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=i(n[2]),n[3]=r(n[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=i(n[2])}}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=n(a)}if(i&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=r(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2])}}:null}};(0,r._)([(0,h.qq)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,r._)([(0,h.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,r._)([(0,h.qq)({type:[o.c],json:{write:!0}})],w.prototype,"features",void 0),(0,r._)([(0,u.E)("features")],w.prototype,"readFeatures",null),(0,r._)([(0,h.qq)({type:[f.c],json:{write:!0}})],w.prototype,"fields",void 0),(0,r._)([(0,h.qq)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,r._)([(0,d.G)("geometryType")],w.prototype,"writeGeometryType",null),(0,r._)([(0,h.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,r._)([(0,h.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,r._)([(0,h.qq)({types:s.Su,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,r._)([(0,u.E)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,r._)([(0,h.qq)({type:y.c,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,r._)([(0,d.G)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,r._)([(0,h.qq)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,r._)([(0,p.c)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const b=w},21980:(e,t,n)=>{n.d(t,{OW:()=>a,UX:()=>o,sR:()=>s}),n(6220),n(47620);var i=n(62088),r=n(28176);function s(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function o(e){return"string"==typeof e?(0,r.as)(e):(0,i.ct)(e)}function a(e,t,n){const i={};for(const r in e){if("declaredClass"===r)continue;const s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[r]=s.map((e=>a({item:e},t,n).item));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[r]);i[r]=t?e:JSON.stringify(e)}else i[r]=t?s:JSON.stringify(s);else i[r]=s}return i}n(20572)},65548:(e,t,n)=>{n.d(t,{Ap:()=>c});var i=n(82692),r=n(564),s=n(3739),o=(n(73312),n(67300),n(18480),n(72944)),a=(n(53568),n(15024),n(63116),n(13428)),l=n(76992);function c({displayField:e,editFieldsInfo:t,fields:n,objectIdField:l,title:c},d){if(!n)return null;const m=function(e,t){const n=t?.visibleFieldNames;return function(e,t){const n=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===n&&(e=e.slice()),e.sort(u),e}(e.fields??[],t?.ignoreFieldTypes||y).map((t=>new a.c({fieldName:t.name,isEditable:(0,r.Yn)(t,e),label:t.alias,format:p(t),visible:h(t,{...e,visibleFieldNames:n})})))}({editFieldsInfo:t,fields:n,objectIdField:l},d);if(!m.length)return null;const f=function(e){const t=(0,r.G2)(e),{titleBase:n}=e;return t?`${n}: {${t.trim()}}`:n??""}({titleBase:c,fields:n,displayField:e}),g=[new o.c,new s.c];return new i.c({title:f,content:g,fieldInfos:m})}const h=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,r.iY)(e,t);function u(e,t){return"oid"===e.type?-1:"oid"===t.type?1:d(e)?-1:d(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function p(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.c({digitSeparator:!0,places:0});case"double":return new l.c({digitSeparator:!0,places:2});case"string":return(0,r.Gm)(e.name)?new l.c({digitSeparator:!0,places:0}):null;default:return null}}function d(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const y=["geometry","blob","raster","guid","xml"]},27136:(e,t,n)=>{n.d(t,{c:()=>_});var i,r=n(41948),s=n(14628),o=n(40504),a=n(70680),l=n(1580),c=(n(9456),n(66360),n(72052),n(33600)),h=n(12552),u=n(18996),p=n(564);let d=i=class extends o.am{constructor(e){super(e)}async collectRequiredFields(e,t){return(0,p.AN)(e,t,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,r._)([(0,l.qq)({type:String,json:{write:!0}})],d.prototype,"expression",void 0),(0,r._)([(0,l.qq)({type:String,json:{write:!0}})],d.prototype,"title",void 0),d=i=(0,r._)([(0,h.c)("esri.layers.support.FeatureExpressionInfo")],d);const y=d;var m,f=n(35764);const g=(0,s.w)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),w=new s.O({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let b=m=class extends o.am{constructor(e){super(e),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,n,i){t[n]=e.write({},i),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):null!=e||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new m({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&(0,a.O4)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,r._)([(0,l.qq)({type:y,json:{write:!0}})],b.prototype,"featureExpressionInfo",void 0),(0,r._)([(0,c.E)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],b.prototype,"readFeatureExpressionInfo",null),(0,r._)([(0,u.G)("featureExpressionInfo",{featureExpressionInfo:{type:y},"featureExpression.value":{type:[0]}})],b.prototype,"writeFeatureExpressionInfo",null),(0,r._)([(0,l.qq)({type:g.apiValues,nonNullable:!0,json:{type:g.jsonValues,read:g.read,write:{writer:g.write,isRequired:!0}}})],b.prototype,"mode",null),(0,r._)([(0,l.qq)({type:Number,json:{write:!0}})],b.prototype,"offset",void 0),(0,r._)([(0,l.qq)({type:f.eA,json:{type:String,read:w.read,write:w.write}})],b.prototype,"unit",null),b=m=(0,r._)([(0,h.c)("esri.layers.support.ElevationInfo")],b);const _=b},45704:(e,t,n)=>{n.d(t,{Sg:()=>h,Uj:()=>c,Uz:()=>l,YP:()=>u}),n(9456);var i=n(47472),r=n(7432),s=n(49736),o=n(28652),a=n(9504);const l=s.c.fromJSON(a.qe),c=r.c.fromJSON(a.MZ),h=i.c.fromJSON(a.yq),u=o.c.fromJSON(a.gF);s.c.fromJSON(a.gP),r.c.fromJSON(a.aV),i.c.fromJSON(a.wp)},9504:(e,t,n)=>{n.d(t,{MZ:()=>s,aV:()=>c,gF:()=>a,gP:()=>l,qe:()=>r,wp:()=>h,yq:()=>o});const i=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},c={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},h={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},35764:(e,t,n)=>{n.d(t,{QV:()=>r,eA:()=>s});var i=n(12780);function r(e){return 1/(i.s[e]||1)}const s=function(){const e=Object.keys(i.s);return e.sort(),e}()},9332:(e,t,n)=>{n.d(t,{g:()=>r,u:()=>s});var i=n(53368);function r(e){const t=(0,i.Wu)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4520],{74784:(t,n,a)=>{a.d(n,{a:()=>p,c:()=>o,d:()=>h,e:()=>g,g:()=>u,h:()=>d,i:()=>l,j:()=>b,l:()=>q,n:()=>m,s:()=>e,t:()=>x});var r=a(47364);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function e(t,n,a,r,o){return t[0]=n,t[1]=a,t[2]=r,t[3]=o,t}function u(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t}function s(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t}function c(t,n,a){return t[0]=n[0]*a[0],t[1]=n[1]*a[1],t[2]=n[2]*a[2],t[3]=n[3]*a[3],t}function i(t,n,a){return t[0]=n[0]/a[0],t[1]=n[1]/a[1],t[2]=n[2]/a[2],t[3]=n[3]/a[3],t}function h(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t}function M(t,n){const a=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],e=n[3]-t[3];return Math.sqrt(a*a+r*r+o*o+e*e)}function f(t,n){const a=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],e=n[3]-t[3];return a*a+r*r+o*o+e*e}function l(t){const n=t[0],a=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+a*a+r*r+o*o)}function b(t){const n=t[0],a=t[1],r=t[2],o=t[3];return n*n+a*a+r*r+o*o}function m(t,n){const a=n[0],r=n[1],o=n[2],e=n[3];let u=a*a+r*r+o*o+e*e;return u>0&&(u=1/Math.sqrt(u),t[0]=a*u,t[1]=r*u,t[2]=o*u,t[3]=e*u),t}function d(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function q(t,n,a,r){const o=n[0],e=n[1],u=n[2],s=n[3];return t[0]=o+r*(a[0]-o),t[1]=e+r*(a[1]-e),t[2]=u+r*(a[2]-u),t[3]=s+r*(a[3]-s),t}function x(t,n,a){const r=n[0],o=n[1],e=n[2],u=n[3];return t[0]=a[0]*r+a[4]*o+a[8]*e+a[12]*u,t[1]=a[1]*r+a[5]*o+a[9]*e+a[13]*u,t[2]=a[2]*r+a[6]*o+a[10]*e+a[14]*u,t[3]=a[3]*r+a[7]*o+a[11]*e+a[15]*u,t}function p(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function g(t,n){const a=t[0],o=t[1],e=t[2],u=t[3],s=n[0],c=n[1],i=n[2],h=n[3],M=(0,r.Au)();return Math.abs(a-s)<=M*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(o-c)<=M*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(e-i)<=M*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(u-h)<=M*Math.max(1,Math.abs(u),Math.abs(h))}const y=s,S=c,_=i,T=M,v=f,A=l,O=b;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:T,distance:M,div:_,divide:i,dot:d,equals:g,exactEquals:p,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:A,length:l,lerp:q,max:function(t,n,a){return t[0]=Math.max(n[0],a[0]),t[1]=Math.max(n[1],a[1]),t[2]=Math.max(n[2],a[2]),t[3]=Math.max(n[3],a[3]),t},min:function(t,n,a){return t[0]=Math.min(n[0],a[0]),t[1]=Math.min(n[1],a[1]),t[2]=Math.min(n[2],a[2]),t[3]=Math.min(n[3],a[3]),t},mul:S,multiply:c,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:m,random:function(t,n){const a=r.QR;let o,e,u,s,c,i;n=n||1;do{o=2*a()-1,e=2*a()-1,c=o*o+e*e}while(c>=1);do{u=2*a()-1,s=2*a()-1,i=u*u+s*s}while(i>=1);const h=Math.sqrt((1-c)/i);return t[0]=n*o,t[1]=n*e,t[2]=n*u*h,t[3]=n*s*h,t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},scale:h,scaleAndAdd:function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t},set:e,sqrDist:v,sqrLen:O,squaredDistance:f,squaredLength:b,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:y,subtract:s,transformMat4:x,transformQuat:function(t,n,a){const r=n[0],o=n[1],e=n[2],u=a[0],s=a[1],c=a[2],i=a[3],h=i*r+s*e-c*o,M=i*o+c*r-u*e,f=i*e+u*o-s*r,l=-u*r-s*o-c*e;return t[0]=h*i+l*-u+M*-c-f*-s,t[1]=M*i+l*-s+f*-u-h*-c,t[2]=f*i+l*-c+h*-s-M*-u,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},37008:(t,n,a)=>{function r(){return[0,0,0,0]}function o(t,n,a,r){return[t,n,a,r]}function e(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function s(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function i(){return o(0,0,0,1)}a.d(n,{Su:()=>r,WK:()=>o});const h=e(),M=u(),f=s(),l=c(),b=i();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:b,UNIT_X:M,UNIT_Y:f,UNIT_Z:l,ZEROS:[0,0,0,0],clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,createView:function(t,n){return new Float64Array(t,n,4)},fromArray:function(t,n=[0,0,0,0]){const a=Math.min(4,t.length);for(let r=0;r<a;++r)n[r]=t[r];return n},fromValues:o,ones:e,unitW:i,unitX:u,unitY:s,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},15008:(t,n,a)=>{a.d(n,{GS:()=>h,IT:()=>b,QT:()=>S,S_:()=>c,WO:()=>e,ZX:()=>u,aU:()=>M,c9:()=>f,gp:()=>m,iW:()=>i,mu:()=>l,oL:()=>s,sF:()=>g,um:()=>x,yK:()=>y,yp:()=>_});var r=a(62484),o=a(47364);function e(t,n,a,r,o,e,u,s,c,i,h,M,f,l,b,m,d){return t[0]=n,t[1]=a,t[2]=r,t[3]=o,t[4]=e,t[5]=u,t[6]=s,t[7]=c,t[8]=i,t[9]=h,t[10]=M,t[11]=f,t[12]=l,t[13]=b,t[14]=m,t[15]=d,t}function u(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function s(t,n){if(t===n){const a=n[1],r=n[2],o=n[3],e=n[6],u=n[7],s=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=a,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=e,t[11]=n[14],t[12]=o,t[13]=u,t[14]=s}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){const a=n[0],r=n[1],o=n[2],e=n[3],u=n[4],s=n[5],c=n[6],i=n[7],h=n[8],M=n[9],f=n[10],l=n[11],b=n[12],m=n[13],d=n[14],q=n[15],x=a*s-r*u,p=a*c-o*u,g=a*i-e*u,y=r*c-o*s,S=r*i-e*s,_=o*i-e*c,T=h*m-M*b,v=h*d-f*b,A=h*q-l*b,O=M*d-f*m,R=M*q-l*m,I=f*q-l*d;let j=x*I-p*R+g*O+y*A-S*v+_*T;return j?(j=1/j,t[0]=(s*I-c*R+i*O)*j,t[1]=(o*R-r*I-e*O)*j,t[2]=(m*_-d*S+q*y)*j,t[3]=(f*S-M*_-l*y)*j,t[4]=(c*A-u*I-i*v)*j,t[5]=(a*I-o*A+e*v)*j,t[6]=(d*g-b*_-q*p)*j,t[7]=(h*_-f*g+l*p)*j,t[8]=(u*R-s*A+i*T)*j,t[9]=(r*A-a*R-e*T)*j,t[10]=(b*S-m*g+q*x)*j,t[11]=(M*g-h*S-l*x)*j,t[12]=(s*v-u*O-c*T)*j,t[13]=(a*O-r*v+o*T)*j,t[14]=(m*p-b*y-d*x)*j,t[15]=(h*y-M*p+f*x)*j,t):null}function i(t,n,a){const r=n[0],o=n[1],e=n[2],u=n[3],s=n[4],c=n[5],i=n[6],h=n[7],M=n[8],f=n[9],l=n[10],b=n[11],m=n[12],d=n[13],q=n[14],x=n[15];let p=a[0],g=a[1],y=a[2],S=a[3];return t[0]=p*r+g*s+y*M+S*m,t[1]=p*o+g*c+y*f+S*d,t[2]=p*e+g*i+y*l+S*q,t[3]=p*u+g*h+y*b+S*x,p=a[4],g=a[5],y=a[6],S=a[7],t[4]=p*r+g*s+y*M+S*m,t[5]=p*o+g*c+y*f+S*d,t[6]=p*e+g*i+y*l+S*q,t[7]=p*u+g*h+y*b+S*x,p=a[8],g=a[9],y=a[10],S=a[11],t[8]=p*r+g*s+y*M+S*m,t[9]=p*o+g*c+y*f+S*d,t[10]=p*e+g*i+y*l+S*q,t[11]=p*u+g*h+y*b+S*x,p=a[12],g=a[13],y=a[14],S=a[15],t[12]=p*r+g*s+y*M+S*m,t[13]=p*o+g*c+y*f+S*d,t[14]=p*e+g*i+y*l+S*q,t[15]=p*u+g*h+y*b+S*x,t}function h(t,n,a){const r=a[0],o=a[1],e=a[2];if(n===t)t[12]=n[0]*r+n[4]*o+n[8]*e+n[12],t[13]=n[1]*r+n[5]*o+n[9]*e+n[13],t[14]=n[2]*r+n[6]*o+n[10]*e+n[14],t[15]=n[3]*r+n[7]*o+n[11]*e+n[15];else{const a=n[0],u=n[1],s=n[2],c=n[3],i=n[4],h=n[5],M=n[6],f=n[7],l=n[8],b=n[9],m=n[10],d=n[11];t[0]=a,t[1]=u,t[2]=s,t[3]=c,t[4]=i,t[5]=h,t[6]=M,t[7]=f,t[8]=l,t[9]=b,t[10]=m,t[11]=d,t[12]=a*r+i*o+l*e+n[12],t[13]=u*r+h*o+b*e+n[13],t[14]=s*r+M*o+m*e+n[14],t[15]=c*r+f*o+d*e+n[15]}return t}function M(t,n,a){const r=a[0],o=a[1],e=a[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function f(t,n,a,r){let e,u,s,c,i,h,M,f,l,b,m,d,q,x,p,g,y,S,_,T,v,A,O,R,I=r[0],j=r[1],w=r[2],P=Math.sqrt(I*I+j*j+w*w);return P<(0,o.Au)()?null:(P=1/P,I*=P,j*=P,w*=P,e=Math.sin(a),u=Math.cos(a),s=1-u,c=n[0],i=n[1],h=n[2],M=n[3],f=n[4],l=n[5],b=n[6],m=n[7],d=n[8],q=n[9],x=n[10],p=n[11],g=I*I*s+u,y=j*I*s+w*e,S=w*I*s-j*e,_=I*j*s-w*e,T=j*j*s+u,v=w*j*s+I*e,A=I*w*s+j*e,O=j*w*s-I*e,R=w*w*s+u,t[0]=c*g+f*y+d*S,t[1]=i*g+l*y+q*S,t[2]=h*g+b*y+x*S,t[3]=M*g+m*y+p*S,t[4]=c*_+f*T+d*v,t[5]=i*_+l*T+q*v,t[6]=h*_+b*T+x*v,t[7]=M*_+m*T+p*v,t[8]=c*A+f*O+d*R,t[9]=i*A+l*O+q*R,t[10]=h*A+b*O+x*R,t[11]=M*A+m*O+p*R,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t)}function l(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function b(t,n,a){if(0===n)return u(t);let r,e,s,c=a[0],i=a[1],h=a[2],M=Math.sqrt(c*c+i*i+h*h);return M<(0,o.Au)()?null:(M=1/M,c*=M,i*=M,h*=M,r=Math.sin(n),e=Math.cos(n),s=1-e,t[0]=c*c*s+e,t[1]=i*c*s+h*r,t[2]=h*c*s-i*r,t[3]=0,t[4]=c*i*s-h*r,t[5]=i*i*s+e,t[6]=h*i*s+c*r,t[7]=0,t[8]=c*h*s+i*r,t[9]=i*h*s-c*r,t[10]=h*h*s+e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function m(t,n){const a=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=a,t[7]=0,t[8]=0,t[9]=-a,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function d(t,n,a){const r=n[0],o=n[1],e=n[2],u=n[3],s=r+r,c=o+o,i=e+e,h=r*s,M=r*c,f=r*i,l=o*c,b=o*i,m=e*i,d=u*s,q=u*c,x=u*i;return t[0]=1-(l+m),t[1]=M+x,t[2]=f-q,t[3]=0,t[4]=M-x,t[5]=1-(h+m),t[6]=b+d,t[7]=0,t[8]=f+q,t[9]=b-d,t[10]=1-(h+l),t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t}const q=(0,r.Su)();function x(t,n,a,r){const o=n[0],e=n[1],u=n[2],s=n[3],c=o+o,i=e+e,h=u+u,M=o*c,f=o*i,l=o*h,b=e*i,m=e*h,d=u*h,q=s*c,x=s*i,p=s*h,g=r[0],y=r[1],S=r[2];return t[0]=(1-(b+d))*g,t[1]=(f+p)*g,t[2]=(l-x)*g,t[3]=0,t[4]=(f-p)*y,t[5]=(1-(M+d))*y,t[6]=(m+q)*y,t[7]=0,t[8]=(l+x)*S,t[9]=(m-q)*S,t[10]=(1-(M+b))*S,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t}function p(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t[6]=n[6]-a[6],t[7]=n[7]-a[7],t[8]=n[8]-a[8],t[9]=n[9]-a[9],t[10]=n[10]-a[10],t[11]=n[11]-a[11],t[12]=n[12]-a[12],t[13]=n[13]-a[13],t[14]=n[14]-a[14],t[15]=n[15]-a[15],t}function g(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function y(t,n){if(t===n)return!0;const a=t[0],r=t[1],e=t[2],u=t[3],s=t[4],c=t[5],i=t[6],h=t[7],M=t[8],f=t[9],l=t[10],b=t[11],m=t[12],d=t[13],q=t[14],x=t[15],p=n[0],g=n[1],y=n[2],S=n[3],_=n[4],T=n[5],v=n[6],A=n[7],O=n[8],R=n[9],I=n[10],j=n[11],w=n[12],P=n[13],D=n[14],N=n[15],Z=(0,o.Au)();return Math.abs(a-p)<=Z*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(r-g)<=Z*Math.max(1,Math.abs(r),Math.abs(g))&&Math.abs(e-y)<=Z*Math.max(1,Math.abs(e),Math.abs(y))&&Math.abs(u-S)<=Z*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(s-_)<=Z*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(c-T)<=Z*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(i-v)<=Z*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(h-A)<=Z*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(M-O)<=Z*Math.max(1,Math.abs(M),Math.abs(O))&&Math.abs(f-R)<=Z*Math.max(1,Math.abs(f),Math.abs(R))&&Math.abs(l-I)<=Z*Math.max(1,Math.abs(l),Math.abs(I))&&Math.abs(b-j)<=Z*Math.max(1,Math.abs(b),Math.abs(j))&&Math.abs(m-w)<=Z*Math.max(1,Math.abs(m),Math.abs(w))&&Math.abs(d-P)<=Z*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(q-D)<=Z*Math.max(1,Math.abs(q),Math.abs(D))&&Math.abs(x-N)<=Z*Math.max(1,Math.abs(x),Math.abs(N))}function S(t){const n=(0,o.Au)(),a=t[0],r=t[1],e=t[2],u=t[4],s=t[5],c=t[6],i=t[8],h=t[9],M=t[10];return Math.abs(1-(a*a+u*u+i*i))<=n&&Math.abs(1-(r*r+s*s+h*h))<=n&&Math.abs(1-(e*e+c*c+M*M))<=n}function _(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const T=i,v=p;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t[6]=n[6]+a[6],t[7]=n[7]+a[7],t[8]=n[8]+a[8],t[9]=n[9]+a[9],t[10]=n[10]+a[10],t[11]=n[11]+a[11],t[12]=n[12]+a[12],t[13]=n[13]+a[13],t[14]=n[14]+a[14],t[15]=n[15]+a[15],t},adjoint:function(t,n){const a=n[0],r=n[1],o=n[2],e=n[3],u=n[4],s=n[5],c=n[6],i=n[7],h=n[8],M=n[9],f=n[10],l=n[11],b=n[12],m=n[13],d=n[14],q=n[15];return t[0]=s*(f*q-l*d)-M*(c*q-i*d)+m*(c*l-i*f),t[1]=-(r*(f*q-l*d)-M*(o*q-e*d)+m*(o*l-e*f)),t[2]=r*(c*q-i*d)-s*(o*q-e*d)+m*(o*i-e*c),t[3]=-(r*(c*l-i*f)-s*(o*l-e*f)+M*(o*i-e*c)),t[4]=-(u*(f*q-l*d)-h*(c*q-i*d)+b*(c*l-i*f)),t[5]=a*(f*q-l*d)-h*(o*q-e*d)+b*(o*l-e*f),t[6]=-(a*(c*q-i*d)-u*(o*q-e*d)+b*(o*i-e*c)),t[7]=a*(c*l-i*f)-u*(o*l-e*f)+h*(o*i-e*c),t[8]=u*(M*q-l*m)-h*(s*q-i*m)+b*(s*l-i*M),t[9]=-(a*(M*q-l*m)-h*(r*q-e*m)+b*(r*l-e*M)),t[10]=a*(s*q-i*m)-u*(r*q-e*m)+b*(r*i-e*s),t[11]=-(a*(s*l-i*M)-u*(r*l-e*M)+h*(r*i-e*s)),t[12]=-(u*(M*d-f*m)-h*(s*d-c*m)+b*(s*f-c*M)),t[13]=a*(M*d-f*m)-h*(r*d-o*m)+b*(r*f-o*M),t[14]=-(a*(s*d-c*m)-u*(r*d-o*m)+b*(r*c-o*s)),t[15]=a*(s*f-c*M)-u*(r*f-o*M)+h*(r*c-o*s),t},copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t},determinant:function(t){const n=t[0],a=t[1],r=t[2],o=t[3],e=t[4],u=t[5],s=t[6],c=t[7],i=t[8],h=t[9],M=t[10],f=t[11],l=t[12],b=t[13],m=t[14],d=t[15];return(n*u-a*e)*(M*d-f*m)-(n*s-r*e)*(h*d-f*b)+(n*c-o*e)*(h*m-M*b)+(a*s-r*u)*(i*d-f*l)-(a*c-o*u)*(i*m-M*l)+(r*c-o*s)*(i*b-h*l)},equals:y,exactEquals:g,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const a=n[0],r=n[1],o=n[2],e=n[3],u=a+a,s=r+r,c=o+o,i=a*u,h=r*u,M=r*s,f=o*u,l=o*s,b=o*c,m=e*u,d=e*s,q=e*c;return t[0]=1-M-b,t[1]=h+q,t[2]=f-d,t[3]=0,t[4]=h-q,t[5]=1-i-b,t[6]=l+m,t[7]=0,t[8]=f+d,t[9]=l-m,t[10]=1-i-M,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const a=q,r=-n[0],o=-n[1],e=-n[2],u=n[3],s=n[4],c=n[5],i=n[6],h=n[7],M=r*r+o*o+e*e+u*u;return M>0?(a[0]=2*(s*u+h*r+c*e-i*o)/M,a[1]=2*(c*u+h*o+i*r-s*e)/M,a[2]=2*(i*u+h*e+s*o-c*r)/M):(a[0]=2*(s*u+h*r+c*e-i*o),a[1]=2*(c*u+h*o+i*r-s*e),a[2]=2*(i*u+h*e+s*o-c*r)),d(t,n,a),t},fromRotation:b,fromRotationTranslation:d,fromRotationTranslationScale:x,fromRotationTranslationScaleOrigin:function(t,n,a,r,o){const e=n[0],u=n[1],s=n[2],c=n[3],i=e+e,h=u+u,M=s+s,f=e*i,l=e*h,b=e*M,m=u*h,d=u*M,q=s*M,x=c*i,p=c*h,g=c*M,y=r[0],S=r[1],_=r[2],T=o[0],v=o[1],A=o[2],O=(1-(m+q))*y,R=(l+g)*y,I=(b-p)*y,j=(l-g)*S,w=(1-(f+q))*S,P=(d+x)*S,D=(b+p)*_,N=(d-x)*_,Z=(1-(f+m))*_;return t[0]=O,t[1]=R,t[2]=I,t[3]=0,t[4]=j,t[5]=w,t[6]=P,t[7]=0,t[8]=D,t[9]=N,t[10]=Z,t[11]=0,t[12]=a[0]+T-(O*T+j*v+D*A),t[13]=a[1]+v-(R*T+w*v+N*A),t[14]=a[2]+A-(I*T+P*v+Z*A),t[15]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:l,fromXRotation:m,fromYRotation:function(t,n){const a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-a,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=a,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,n){const a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=a,t[2]=0,t[3]=0,t[4]=-a,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,n,a,r,o,e,u){const s=1/(a-n),c=1/(o-r),i=1/(e-u);return t[0]=2*e*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*e*c,t[6]=0,t[7]=0,t[8]=(a+n)*s,t[9]=(o+r)*c,t[10]=(u+e)*i,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*e*2*i,t[15]=0,t},getRotation:function(t,n){const a=n[0]+n[5]+n[10];let r=0;return a>0?(r=2*Math.sqrt(a+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t},getScaling:function(t,n){const a=n[0],r=n[1],o=n[2],e=n[4],u=n[5],s=n[6],c=n[8],i=n[9],h=n[10];return t[0]=Math.sqrt(a*a+r*r+o*o),t[1]=Math.sqrt(e*e+u*u+s*s),t[2]=Math.sqrt(c*c+i*i+h*h),t},getTranslation:function(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t},hasIdentityRotation:_,identity:u,invert:c,invertOrIdentity:function(t,n){return c(t,n)||u(t),t},isOrthoNormal:S,lookAt:function(t,n,a,r){const e=n[0],s=n[1],c=n[2];let i=e-a[0],h=s-a[1],M=c-a[2];const f=(0,o.Au)();if(Math.abs(i)<f&&Math.abs(h)<f&&Math.abs(M)<f)return void u(t);let l=1/Math.sqrt(i*i+h*h+M*M);i*=l,h*=l,M*=l;const b=r[0],m=r[1],d=r[2];let q=m*M-d*h,x=d*i-b*M,p=b*h-m*i;l=Math.sqrt(q*q+x*x+p*p),l?(l=1/l,q*=l,x*=l,p*=l):(q=0,x=0,p=0);let g=h*p-M*x,y=M*q-i*p,S=i*x-h*q;l=Math.sqrt(g*g+y*y+S*S),l?(l=1/l,g*=l,y*=l,S*=l):(g=0,y=0,S=0),t[0]=q,t[1]=g,t[2]=i,t[3]=0,t[4]=x,t[5]=y,t[6]=h,t[7]=0,t[8]=p,t[9]=S,t[10]=M,t[11]=0,t[12]=-(q*e+x*s+p*c),t[13]=-(g*e+y*s+S*c),t[14]=-(i*e+h*s+M*c),t[15]=1},mul:T,multiply:i,multiplyScalar:function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=n[7]*a,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12]*a,t[13]=n[13]*a,t[14]=n[14]*a,t[15]=n[15]*a,t},multiplyScalarAndAdd:function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t[4]=n[4]+a[4]*r,t[5]=n[5]+a[5]*r,t[6]=n[6]+a[6]*r,t[7]=n[7]+a[7]*r,t[8]=n[8]+a[8]*r,t[9]=n[9]+a[9]*r,t[10]=n[10]+a[10]*r,t[11]=n[11]+a[11]*r,t[12]=n[12]+a[12]*r,t[13]=n[13]+a[13]*r,t[14]=n[14]+a[14]*r,t[15]=n[15]+a[15]*r,t},ortho:function(t,n,a,r,o,e,u){const s=1/(n-a),c=1/(r-o),i=1/(e-u);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*i,t[11]=0,t[12]=(n+a)*s,t[13]=(o+r)*c,t[14]=(u+e)*i,t[15]=1,t},perspective:function(t,n,a,r,o){const e=1/Math.tan(n/2);let u;return t[0]=e/a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(u=1/(r-o),t[10]=(o+r)*u,t[14]=2*o*r*u):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,a,r){const o=Math.tan(n.upDegrees*Math.PI/180),e=Math.tan(n.downDegrees*Math.PI/180),u=Math.tan(n.leftDegrees*Math.PI/180),s=Math.tan(n.rightDegrees*Math.PI/180),c=2/(u+s),i=2/(o+e);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=-(u-s)*c*.5,t[9]=(o-e)*i*.5,t[10]=r/(a-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*a/(a-r),t[15]=0,t},rotate:f,rotateX:function(t,n,a){const r=Math.sin(a),o=Math.cos(a),e=n[4],u=n[5],s=n[6],c=n[7],i=n[8],h=n[9],M=n[10],f=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=e*o+i*r,t[5]=u*o+h*r,t[6]=s*o+M*r,t[7]=c*o+f*r,t[8]=i*o-e*r,t[9]=h*o-u*r,t[10]=M*o-s*r,t[11]=f*o-c*r,t},rotateY:function(t,n,a){const r=Math.sin(a),o=Math.cos(a),e=n[0],u=n[1],s=n[2],c=n[3],i=n[8],h=n[9],M=n[10],f=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=e*o-i*r,t[1]=u*o-h*r,t[2]=s*o-M*r,t[3]=c*o-f*r,t[8]=e*r+i*o,t[9]=u*r+h*o,t[10]=s*r+M*o,t[11]=c*r+f*o,t},rotateZ:function(t,n,a){const r=Math.sin(a),o=Math.cos(a),e=n[0],u=n[1],s=n[2],c=n[3],i=n[4],h=n[5],M=n[6],f=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=e*o+i*r,t[1]=u*o+h*r,t[2]=s*o+M*r,t[3]=c*o+f*r,t[4]=i*o-e*r,t[5]=h*o-u*r,t[6]=M*o-s*r,t[7]=f*o-c*r,t},scale:M,set:e,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:v,subtract:p,targetTo:function(t,n,a,r){const o=n[0],e=n[1],u=n[2],s=r[0],c=r[1],i=r[2];let h=o-a[0],M=e-a[1],f=u-a[2],l=h*h+M*M+f*f;l>0&&(l=1/Math.sqrt(l),h*=l,M*=l,f*=l);let b=c*f-i*M,m=i*h-s*f,d=s*M-c*h;return l=b*b+m*m+d*d,l>0&&(l=1/Math.sqrt(l),b*=l,m*=l,d*=l),t[0]=b,t[1]=m,t[2]=d,t[3]=0,t[4]=M*d-f*m,t[5]=f*b-h*d,t[6]=h*m-M*b,t[7]=0,t[8]=h,t[9]=M,t[10]=f,t[11]=0,t[12]=o,t[13]=e,t[14]=u,t[15]=1,t},translate:h,transpose:s},Symbol.toStringTag,{value:"Module"}))}}]);