@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 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5316],{84752:(t,e,n)=>{n.d(e,{a:()=>O,c:()=>S,d:()=>g,f:()=>E,g:()=>b,i:()=>F,n:()=>B}),n(9456);var i=n(66360),o=n(53648),r=n(15008),s=n(98472),c=n(62484),u=n(74784),a=n(37008),h=n(47364),d=n(82315),l=n(90484),_=n(48880),f=n(20136);const m=g();function g(){return(0,a.Su)()}const T=u.e,p=u.e;function S(t,e){return(0,u.c)(e,t)}function O(t){return t[3]}function b(t){return t}function E(t,e,n,i){return(0,a.WK)(t,e,n,i)}function N(t,e,n){if(null==e)return!1;if(!M(t,e,R))return!1;let{t0:i,t1:o}=R;if((i<0||o<i&&o>0)&&(i=o),i<0)return!1;if(n){const{origin:t,direction:o}=e;n[0]=t[0]+o[0]*i,n[1]=t[1]+o[1]*i,n[2]=t[2]+o[2]*i}return!0}const R={t0:0,t1:0};function M(t,e,n){const{origin:i,direction:o}=e,r=A;r[0]=i[0]-t[0],r[1]=i[1]-t[1],r[2]=i[2]-t[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===s)return!1;const c=2*(o[0]*r[0]+o[1]*r[1]+o[2]*r[2]),u=c*c-4*s*(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]-t[3]*t[3]);if(u<0)return!1;const a=Math.sqrt(u);return n.t0=(-c-a)/(2*s),n.t1=(-c+a)/(2*s),!0}const A=(0,c.Su)();function F(t,e){return N(t,e,null)}function I(t,e,n){const i=f.Wq.get(),o=f.SW.get();(0,s.b)(i,e.origin,e.direction);const c=O(t);(0,s.b)(n,i,e.origin),(0,s.h)(n,n,1/(0,s.l)(n)*c);const u=x(t,e.origin),a=(0,_.i4)(e.origin,n);return(0,r.IT)(o,a+u,i),(0,s.e)(n,n,o),n}function j(t,e,n){const i=(0,s.f)(f.Wq.get(),e,t),o=(0,s.h)(f.Wq.get(),i,t[3]/(0,s.l)(i));return(0,s.g)(n,o,t)}function x(t,e){const n=(0,s.f)(f.Wq.get(),e,t),i=(0,s.l)(n),r=O(t),c=r+Math.abs(r-i);return(0,o.Uj)(r/c)}const P=(0,c.Su)();function w(t,e,n,i){const r=(0,s.f)(P,e,t);switch(n){case d.k.X:{const t=(0,o.Iv)(r,P)[2];return(0,s.s)(i,-Math.sin(t),Math.cos(t),0)}case d.k.Y:{const t=(0,o.Iv)(r,P),e=t[1],n=t[2],c=Math.sin(e);return(0,s.s)(i,-c*Math.cos(n),-c*Math.sin(n),Math.cos(e))}case d.k.Z:return(0,s.n)(i,r);default:return}}function v(t,e){const n=(0,s.f)(W,e,t);return(0,s.l)(n)-t[3]}function B(t,e){const n=(0,s.a)(t,e),i=O(t);return n<=i*i}const W=(0,c.Su)(),C=g();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:m,altitudeAt:v,angleToSilhouette:x,axisAt:w,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return N(t,e,n)?n:((0,l.CE)(e,t,n),j(t,n,n))},closestPointOnSilhouette:I,containsPoint:B,copy:S,create:g,distanceToSilhouette:function(t,e){const n=(0,s.f)(f.Wq.get(),e,t),i=(0,s.o)(n),o=t[3]*t[3];return Math.sqrt(Math.abs(i-o))},elevate:function(t,e,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+e,n},equals:p,exactEquals:T,fromCenterAndRadius:function(t,e){return(0,a.WK)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:E,getCenter:b,getRadius:O,intersectLine:function(t,e,n){const i=(0,l.i_)(e,n);if(!M(t,i,R))return[];const{origin:o,direction:r}=i,{t0:u,t1:a}=R,d=e=>{const n=(0,c.Su)();return(0,s.q)(n,o,r,e),j(t,n,n)};return Math.abs(u-a)<(0,h.Au)()?[d(u)]:[d(u),d(a)]},intersectRay:N,intersectRayClosestSilhouette:function(t,e,n){if(N(t,e,n))return n;const i=I(t,e,f.Wq.get());return(0,s.g)(n,e.origin,(0,s.h)(f.Wq.get(),e.direction,(0,s.p)(e.origin,i)/(0,s.l)(e.direction))),n},intersectsRay:F,projectPoint:j,setAltitudeAt:function(t,e,n,i){const o=v(t,e),r=w(t,e,d.k.Z,W),c=(0,s.h)(W,r,n-o);return(0,s.g)(i,e,c)},setExtent:function(t,e,n){return i.c.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t!==n&&S(t,n),n},tmpSphere:C,union:function(t,e,n=(0,a.Su)()){const i=(0,s.p)(t,e),o=t[3],r=e[3];return i+r<o?((0,u.c)(n,t),n):i+o<r?((0,u.c)(n,e),n):((0,s.k)(n,t,e,(i+r-o)/(2*i)),n[3]=(i+o+r)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},52180:(t,e,n)=>{n.d(e,{o:()=>o});var i=n(52324);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.o)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*r);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,r));t++)this._items.push(this._allocator())}}const r=1024},68612:(t,e,n)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,i,o,r,s,c,u){return[t,e,n,i,o,r,s,c,u]}n.d(e,{IJ:()=>r,Su:()=>i,WK:()=>o});const r=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:i,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},87104:(t,e,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{IJ:()=>r,Su:()=>i,ct:()=>o});const r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:o,create:i,createView:function(t,e){return new Float64Array(t,e,16)},fromValues:function(t,e,n,i,o,r,s,c,u,a,h,d,l,_,f,m){return[t,e,n,i,o,r,s,c,u,a,h,d,l,_,f,m]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,e,n)=>{function i(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{IJ:()=>r,Su:()=>i,ct:()=>o});const r=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:o,create:i,createView:function(t,e){return new Float64Array(t,e,4)},fromValues:function(t,e,n,i){return[t,e,n,i]}},Symbol.toStringTag,{value:"Module"}))},82315:(t,e,n)=>{var i;n.d(e,{k:()=>i}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(i||(i={}))},24363:(t,e,n)=>{n.d(e,{C_:()=>h,Su:()=>u,i_:()=>a});var i=n(53648),o=n(52180),r=n(98472),s=n(62484),c=n(20136);function u(t){return t?{origin:(0,s.ct)(t.origin),vector:(0,s.ct)(t.vector)}:{origin:(0,s.Su)(),vector:(0,s.Su)()}}function a(t,e,n=u()){return(0,r.c)(n.origin,t),(0,r.f)(n.vector,e,t),n}function h(t,e,n){return function(t,e,n,o,s){const{vector:u,origin:a}=t,h=(0,r.f)(c.Wq.get(),e,a),d=(0,r.j)(u,h)/(0,r.o)(u);return(0,r.h)(s,u,(0,i.qk)(d,0,1)),(0,r.g)(s,s,t.origin)}(t,e,0,0,n)}(0,s.Su)(),(0,s.Su)(),new o.o((()=>u()))},58632:(t,e,n)=>{n.d(e,{Su:()=>r,XX:()=>c,Oq:()=>s}),n(53648);var i=n(98472),o=n(62484);function r(t=f){return[t[0],t[1],t[2],t[3]]}function s(t){return t}function c(t,e,n,o=0,s=Math.floor(n*(1/3)),f=Math.floor(n*(2/3))){if(n<3)return!1;e(a,o);let m=s,g=!1;for(;m<n-1&&!g;)e(h,m),m++,g=!(0,i.i)(a,h);if(!g)return!1;for(m=Math.max(m,f),g=!1;m<n&&!g;)e(d,m),m++,(0,i.f)(l,a,h),(0,i.n)(l,l),(0,i.f)(_,h,d),(0,i.n)(_,_),g=!(0,i.i)(a,d)&&!(0,i.i)(h,d)&&Math.abs((0,i.j)(l,_))<u;return g?(function(t,e,n,i=r()){const o=n[0]-e[0],s=n[1]-e[1],c=n[2]-e[2],u=t[0]-e[0],a=t[1]-e[1],h=t[2]-e[2],d=s*h-c*a,l=c*u-o*h,_=o*a-s*u,f=d*d+l*l+_*_,m=Math.abs(f-1)>1e-5&&f>1e-12?1/Math.sqrt(f):1;i[0]=d*m,i[1]=l*m,i[2]=_*m,i[3]=-(i[0]*t[0]+i[1]*t[1]+i[2]*t[2])}(a,h,d,t),!0):(0!==o||1!==s||2!==f)&&c(t,e,n,0,1,2)}n(74784),n(48880),n(20136),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)();const u=.99619469809,a=(0,o.Su)(),h=(0,o.Su)(),d=(0,o.Su)(),l=(0,o.Su)(),_=(0,o.Su)(),f=[0,0,1,0];var m,g;(g=m||(m={}))[g.NONE=0]="NONE",g[g.CLAMP=1]="CLAMP",g[g.INFINITE_MIN=4]="INFINITE_MIN",g[g.INFINITE_MAX=8]="INFINITE_MAX",m.INFINITE_MIN,m.INFINITE_MAX,m.INFINITE_MAX},90484:(t,e,n)=>{n.d(e,{CE:()=>h,Su:()=>s,em:()=>u,i_:()=>a}),n(92400);var i=n(52180),o=n(98472),r=n(62484);function s(t){return t?c((0,r.ct)(t.origin),(0,r.ct)(t.direction)):c((0,r.Su)(),(0,r.Su)())}function c(t,e){return{origin:t,direction:e}}function u(t,e){const n=d.get();return n.origin=t,n.direction=e,n}function a(t,e,n=s()){return(0,o.c)(n.origin,t),(0,o.f)(n.direction,e,t),n}function h(t,e,n){const i=(0,o.j)(t.direction,(0,o.f)(n,e,t.origin));return(0,o.g)(n,t.origin,(0,o.h)(n,t.direction,i)),n}n(20136);const d=new i.o((()=>s()))},48880:(t,e,n)=>{n.d(e,{i4:()=>s});var i=n(53648),o=n(98472),r=n(62484);function s(t,e){const n=(0,o.j)(t,e)/((0,o.l)(t)*(0,o.l)(e));return-(0,i.Uj)(n)}(0,r.Su)(),(0,r.Su)()},20136:(t,e,n)=>{n.d(e,{SW:()=>l,QX:()=>_,Wq:()=>d});var i=n(52324),o=n(68612),r=n(87104),s=n(2620),c=n(85256),u=n(62484),a=n(37008);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,i.o)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(c.Su)}static createVec3f64(){return new h(u.Su)}static createVec4f64(){return new h(a.Su)}static createMat3f64(){return new h(o.Su)}static createMat4f64(){return new h(r.Su)}static createQuatf64(){return new h(s.Su)}get test(){return{length:this._items.length}}}h.createVec2f64();const d=h.createVec3f64(),l=(h.createVec4f64(),h.createMat3f64(),h.createMat4f64()),_=h.createQuatf64()},45316:(t,e,n)=>{n.r(e),n.d(e,{default:()=>Q});var i,o,r=n(41948),s=n(10860),c=(n(66360),n(9456),n(72052),n(20744),n(12552)),u=n(98472),a=n(62484),h=n(24363),d=n(84752),l=n(69752),_=n(24680),f=n(52180),m=(n(15008),n(74784),n(37008)),g=n(90484);function T(t){return t?{ray:(0,g.Su)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,g.Su)(),c0:0,c1:Number.MAX_VALUE}}function p(t,e){for(let n=0;n<S;n++){const i=t[n];if(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]>=e[3])return!1}return!0}new f.o((()=>T())),n(58632),n(20136),function(t){t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t[t.BOTTOM=2]="BOTTOM",t[t.TOP=3]="TOP",t[t.NEAR=4]="NEAR",t[t.FAR=5]="FAR"}(i||(i={})),function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(o||(o={})),o.FAR_BOTTOM_RIGHT,o.NEAR_BOTTOM_RIGHT,o.NEAR_BOTTOM_LEFT,o.FAR_BOTTOM_LEFT,o.NEAR_BOTTOM_LEFT,o.NEAR_BOTTOM_RIGHT,o.NEAR_TOP_RIGHT,o.NEAR_TOP_LEFT,o.FAR_BOTTOM_RIGHT,o.FAR_BOTTOM_LEFT,o.FAR_TOP_LEFT,o.FAR_TOP_RIGHT,o.NEAR_BOTTOM_RIGHT,o.FAR_BOTTOM_RIGHT,o.FAR_TOP_RIGHT,o.NEAR_TOP_RIGHT,o.FAR_BOTTOM_LEFT,o.NEAR_BOTTOM_LEFT,o.NEAR_TOP_LEFT,o.FAR_TOP_LEFT,o.FAR_TOP_LEFT,o.NEAR_TOP_LEFT,o.NEAR_TOP_RIGHT,o.FAR_TOP_RIGHT;const S=6;(0,m.WK)(-1,-1,-1,1),(0,m.WK)(1,-1,-1,1),(0,m.WK)(1,1,-1,1),(0,m.WK)(-1,1,-1,1),(0,m.WK)(-1,-1,1,1),(0,m.WK)(1,-1,1,1),(0,m.WK)(1,1,1,1),(0,m.WK)(-1,1,1,1),new f.o(T),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)();var O,b,E=n(90736);class N{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new R,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),R.clearPool(),W[0]=null,K.prune(),k.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=R.acquire();for(let i=0;i<e;i++){const e=t[i];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}R.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=R.acquire();for(const i of t){const t=e??(0,d.c)(this.objectToBoundingSphere(i),q);P(t[3])?(n.init(this._root),this._remove(i,t,n)):this._degenerateObjects.delete(i)}R.release(n),this._shrink()}update(t,e){if(!P(e[3])&&this._isDegenerate(t))return;const n=function(t){return W[0]=t,W}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const i=(0,g.em)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNode(i,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,i){const o=(0,g.em)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNodeWithOffset(o,t,i))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(o,t,i)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(o,t,i)&&n(t)})),!0}))}forEach(t){this._forEachNode(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,i=(()=>!0),o=1/0){let r=1/0,s=1/0,c=null;const a=j(t,e),h=u=>{if(--o,!i(u))return;const a=this.objectToBoundingSphere(u);if(!p(n,a))return;const h=x(t,e,(0,d.g)(a)),l=h-a[3],_=h+a[3];l<r&&(r=l,s=_,c=u)};return this._forEachNodeDepthOrdered(this._root,(i=>{if(o<=0||!p(n,i.bounds))return!1;if((0,u.h)(L,a,i.halfSize),(0,u.g)(L,L,(0,d.g)(i.bounds)),x(t,e,L)>s)return!1;const r=i.node;return r.terminals.forAll((t=>h(t))),null!==r.residents&&r.residents.forAll((t=>h(t))),!0}),t,e),c}forEachInDepthRange(t,e,n,i,o,r,s){let c=-1/0,a=1/0;const h={setRange:t=>{n===N.DepthOrder.FRONT_TO_BACK?(c=Math.max(c,t.near),a=Math.min(a,t.far)):(c=Math.max(c,-t.far),a=Math.min(a,-t.near))}};h.setRange(i);const l=x(e,n,t),_=j(e,n),f=j(e,-n),m=t=>{if(!s(t))return;const i=this.objectToBoundingSphere(t),u=(0,d.g)(i),_=x(e,n,u)-l,f=_-i[3],m=_+i[3];f>a||m<c||!p(r,i)||o(t,h)};this._forEachNodeDepthOrdered(this._root,(t=>{if(!p(r,t.bounds))return!1;if((0,u.h)(L,_,t.halfSize),(0,u.g)(L,L,(0,d.g)(t.bounds)),x(e,n,L)-l>a)return!1;if((0,u.h)(L,f,t.halfSize),(0,u.g)(L,L,(0,d.g)(t.bounds)),x(e,n,L)-l<c)return!1;const i=t.node;return i.terminals.forAll((t=>m(t))),null!==i.residents&&i.residents.forAll((t=>m(t))),!0}),e,n)}forEachNode(t){this._forEachNode(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,d.a)(e),i=(0,d.g)(e),o=e=>{const o=this.objectToBoundingSphere(e),r=(0,d.a)(o),s=n+r;return!((0,u.a)((0,d.g)(o),i)-s*s<=0)||t(e)};let r=!0;const s=t=>{r&&(r=o(t))};this._forEachNode(this._root,(t=>{const e=(0,d.a)(t.bounds),o=n+e;if((0,u.a)((0,d.g)(t.bounds),i)-o*o>0)return!1;const c=t.node;return c.terminals.forAll(s),r&&null!==c.residents&&c.residents.forAll(s),r})),r&&this.forEachDegenerateObject(s)}_intersectsNode(t,e){return F((0,d.g)(e.bounds),2*-e.halfSize,y),F((0,d.g)(e.bounds),2*e.halfSize,z),(0,E.If)(t.origin,t.direction,y,z)}_intersectsNodeWithOffset(t,e,n){return F((0,d.g)(e.bounds),2*-e.halfSize,y),F((0,d.g)(e.bounds),2*e.halfSize,z),n.applyToMinMax(y,z),(0,E.If)(t.origin,t.direction,y,z)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,d.i)(n,t)}_intersectsObjectWithOffset(t,e,n){const i=this.objectToBoundingSphere(e);return!(i[3]>0)||(0,d.i)(n.applyToBoundingSphere(i),t)}_forEachNode(t,e){let n=R.acquire().init(t);const i=[n];for(;0!==i.length;){if(n=i.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&i.push(R.acquire().init(n).advance(t));R.release(n)}}_forEachNodeDepthOrdered(t,e,n,i=N.DepthOrder.FRONT_TO_BACK){let o=R.acquire().init(t);const r=[o];for(function(t,e,n){if(!k.length)for(let t=0;t<8;++t)k.push({index:0,distance:0});for(let n=0;n<8;++n){const i=w[n];k.data[n].index=n,k.data[n].distance=x(t,e,i)}k.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=k.data[t].index}(n,i,X);0!==r.length;){if(o=r.pop(),e(o)&&!o.isLeaf())for(let t=7;t>=0;--t){const e=X[t];o.node.children[e]&&r.push(R.acquire().init(o).advance(e))}R.release(o)}}_remove(t,e,n){K.clear();const i=n.advanceTo(e,((t,e)=>{K.push(t.node),K.push(e)}))?n.node.terminals:n.node.residents;if(i.removeUnordered(t),0===i.length)for(let t=K.length-2;t>=0;t-=2){const e=K.data[t],n=K.data[t+1];if(!this._purge(e,n))break}}_nodeIsEmpty(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}_purge(t,e){return e>=0&&(t.children[e]=null),!!this._nodeIsEmpty(t)&&(null===t.residents&&(t.residents=new _.c({shrink:!0})),!0)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const i=R.acquire().init(t);this._add(e.at(n),i),R.release(i)}}_grow(t,e){if(0!==e&&(I(t,e,(t=>this.objectToBoundingSphere(t)),D),P(D[3])&&!this._fitsInsideTree(D)))if(this._nodeIsEmpty(this._root.node))(0,d.c)(D,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(D);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(D,t):this._growRootAsSubNode(t),R.release(t)}}_rebuildTree(t,e){(0,u.c)((0,d.g)(H),(0,d.g)(e.bounds)),H[3]=e.halfSize,I([t,H],2,(t=>t),V);const n=R.acquire().init(this._root);this._root.initFrom(null,V,V[3]),this._root.increaseHalfSize(1.25),this._forEachNode(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),R.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return this._forEachNode(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let i=-1/0;const o=this._root.bounds,r=this._root.halfSize;for(let t=0;t<3;t++){const s=o[t]-r-(n[t]-e),c=n[t]+e-(o[t]+r),u=Math.max(0,Math.ceil(s/(2*r))),a=Math.max(0,Math.ceil(c/(2*r)))+1,h=2**Math.ceil(Math.log(u+a)*Math.LOG2E);i=Math.max(i,h),G[t].min=u,G[t].max=a}for(let t=0;t<3;t++){let e=G[t].min,n=G[t].max;const s=(i-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const c=o[t]-r-e*r*2;C[t]=c+(n+e)*r}const s=i*r;return C[3]=s*B,R.acquire().initFrom(null,C,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,u.c)((0,d.g)(D),(0,d.g)(this._root.bounds)),D[3]=this._root.halfSize,this._root.init(t),t.advanceTo(D,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,i=0;for(;i<e.length&&null==t;)n=i++,t=e[n];for(;i<e.length;)if(e[i++])return-1;return n}_isDegenerate(t){return!P(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,i=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:i}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),i=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:i}}static fromJSON(t){const e=new N((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class R{constructor(){this.bounds=(0,d.d)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,i=this.depth){return this.node=null!=t?t:R.createEmptyNode(),e&&(0,d.c)(e,this.bounds),this.halfSize=n,this.depth=i,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*B}advance(t){let e=this.node.children[t];e||(e=R.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=w[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const i=this._childIndex(t);e&&e(this,i),this.advance(i)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new _.c({shrink:!0}),residents:new _.c({shrink:!0})}}static acquire(){return R._pool.acquire()}static release(t){R._pool.release(t)}static clearPool(){R._pool.prune()}}function M(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function A(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function F(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function I(t,e,n,i){if(1===e){const e=n(t[0]);(0,d.c)(e,i)}else{y[0]=1/0,y[1]=1/0,y[2]=1/0,z[0]=-1/0,z[1]=-1/0,z[2]=-1/0;for(let i=0;i<e;i++){const e=n(t[i]);P(e[3])&&(M(y,e),A(z,e))}(0,u.k)((0,d.g)(i),y,z,.5),i[3]=Math.max(z[0]-y[0],z[1]-y[1],z[2]-y[2])/2}}function j(t,e){let n,i=1/0;for(let o=0;o<8;++o){const r=x(t,e,v[o]);r<i&&(i=r,n=v[o])}return n}function x(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function P(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}R._pool=new l.c(R),O=N||(N={}),(b=O.DepthOrder||(O.DepthOrder={}))[b.FRONT_TO_BACK=1]="FRONT_TO_BACK",b[b.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const w=[(0,a.WK)(-1,-1,-1),(0,a.WK)(1,-1,-1),(0,a.WK)(-1,1,-1),(0,a.WK)(1,1,-1),(0,a.WK)(-1,-1,1),(0,a.WK)(1,-1,1),(0,a.WK)(-1,1,1),(0,a.WK)(1,1,1)],v=[(0,a.WK)(-1,-1,-1),(0,a.WK)(-1,-1,1),(0,a.WK)(-1,1,-1),(0,a.WK)(-1,1,1),(0,a.WK)(1,-1,-1),(0,a.WK)(1,-1,1),(0,a.WK)(1,1,-1),(0,a.WK)(1,1,1)],B=Math.sqrt(3),W=[null],C=(0,d.d)(),L=(0,a.Su)(),y=(0,a.Su)(),z=(0,a.Su)(),K=new _.c,q=(0,d.d)(),D=(0,d.d)(),H=(0,d.d)(),V=(0,d.d)(),G=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],k=new _.c,X=[0,0,0,0,0,0,0,0],J=N;var Y=n(75980);function U(t,e,n){const i=(0,d.d)(),o=(0,d.g)(i);return(0,u.q)(o,o,t,.5),(0,u.q)(o,o,e,.5),i[3]=(0,u.p)(o,t),(0,u.g)(o,o,n),i}let Z=class{constructor(){this._idToComponent=new Map,this._components=new J((t=>t.bounds)),this._edges=new J((t=>t.bounds)),this._tmpLineSegment=(0,h.Su)(),this._tmpP1=(0,a.Su)(),this._tmpP2=(0,a.Su)(),this._tmpP3=(0,a.Su)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,s.wp)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:i}=t;n.push({id:e,uid:i})}return!0}),t.bounds),!n.length)return;const i={components:n},o=await this.remoteClient.invoke("fetchAllEdgeLocations",i,e??{});for(const t of o.components)this._setFetchEdgeLocations(t)}async add(t){const e=new $(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=Y.or.createView(t.locations),i=new Array(n.count),o=(0,a.Su)(),r=(0,a.Su)();for(let s=0;s<n.count;s++){n.position0.getVec(s,o),n.position1.getVec(s,r);const c=U(o,r,t.origin),u=new tt(e,s,c);i[s]=u}this._edges.add(i);const{objectIds:s,origin:c}=t;e.info={locations:n,objectIds:s,origin:c}}_addCandidates(t,e,n){const{info:i}=e.component,{origin:o,objectIds:r}=i,s=i.locations,c=s.position0.getVec(e.index,this._tmpP1),a=s.position1.getVec(e.index,this._tmpP2);(0,u.g)(c,c,o),(0,u.g)(a,a,o);const h=r[s.componentIndex.get(e.index)];this._addEdgeCandidate(t,h,c,a,n),this._addVertexCandidate(t,h,c,n),this._addVertexCandidate(t,h,a,n)}_addEdgeCandidate(t,e,n,i,o){if(!t.returnEdge)return;const r=(0,d.g)(t.bounds),s=(0,h.i_)(n,i,this._tmpLineSegment),c=(0,h.C_)(s,r,this._tmpP3);(0,d.n)(t.bounds,c)&&o.push({type:"edge",objectId:e,target:(0,a.ct)(c),distance:(0,u.p)(r,c),start:(0,a.ct)(n),end:(0,a.ct)(i)})}_addVertexCandidate(t,e,n,i){if(!t.returnVertex||!(0,d.n)(t.bounds,n))return;const o=(0,d.g)(t.bounds);i.push({type:"vertex",objectId:e,target:(0,a.ct)(n),distance:(0,u.p)(o,n)})}};Z=(0,r._)([(0,c.c)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],Z);const Q=Z;class ${constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++$.uid}}$.uid=0;class tt{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5316],{84752:(t,e,n)=>{n.d(e,{a:()=>O,c:()=>S,d:()=>g,f:()=>E,g:()=>b,i:()=>F,n:()=>B}),n(9456);var i=n(66360),o=n(53648),r=n(15008),s=n(98472),c=n(62484),u=n(74784),a=n(37008),h=n(47364),d=n(82315),l=n(90484),_=n(48880),f=n(20136);const m=g();function g(){return(0,a.Su)()}const T=u.e,p=u.e;function S(t,e){return(0,u.c)(e,t)}function O(t){return t[3]}function b(t){return t}function E(t,e,n,i){return(0,a.WK)(t,e,n,i)}function N(t,e,n){if(null==e)return!1;if(!M(t,e,R))return!1;let{t0:i,t1:o}=R;if((i<0||o<i&&o>0)&&(i=o),i<0)return!1;if(n){const{origin:t,direction:o}=e;n[0]=t[0]+o[0]*i,n[1]=t[1]+o[1]*i,n[2]=t[2]+o[2]*i}return!0}const R={t0:0,t1:0};function M(t,e,n){const{origin:i,direction:o}=e,r=A;r[0]=i[0]-t[0],r[1]=i[1]-t[1],r[2]=i[2]-t[2];const s=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===s)return!1;const c=2*(o[0]*r[0]+o[1]*r[1]+o[2]*r[2]),u=c*c-4*s*(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]-t[3]*t[3]);if(u<0)return!1;const a=Math.sqrt(u);return n.t0=(-c-a)/(2*s),n.t1=(-c+a)/(2*s),!0}const A=(0,c.Su)();function F(t,e){return N(t,e,null)}function I(t,e,n){const i=f.Wq.get(),o=f.SW.get();(0,s.b)(i,e.origin,e.direction);const c=O(t);(0,s.b)(n,i,e.origin),(0,s.h)(n,n,1/(0,s.l)(n)*c);const u=j(t,e.origin),a=(0,_.i4)(e.origin,n);return(0,r.IT)(o,a+u,i),(0,s.e)(n,n,o),n}function x(t,e,n){const i=(0,s.f)(f.Wq.get(),e,t),o=(0,s.h)(f.Wq.get(),i,t[3]/(0,s.l)(i));return(0,s.g)(n,o,t)}function j(t,e){const n=(0,s.f)(f.Wq.get(),e,t),i=(0,s.l)(n),r=O(t),c=r+Math.abs(r-i);return(0,o.Uj)(r/c)}const P=(0,c.Su)();function w(t,e,n,i){const r=(0,s.f)(P,e,t);switch(n){case d.k.X:{const t=(0,o.Iv)(r,P)[2];return(0,s.s)(i,-Math.sin(t),Math.cos(t),0)}case d.k.Y:{const t=(0,o.Iv)(r,P),e=t[1],n=t[2],c=Math.sin(e);return(0,s.s)(i,-c*Math.cos(n),-c*Math.sin(n),Math.cos(e))}case d.k.Z:return(0,s.n)(i,r);default:return}}function v(t,e){const n=(0,s.f)(W,e,t);return(0,s.l)(n)-t[3]}function B(t,e){const n=(0,s.a)(t,e),i=O(t);return n<=i*i}const W=(0,c.Su)(),C=g();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:m,altitudeAt:v,angleToSilhouette:j,axisAt:w,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return N(t,e,n)?n:((0,l.CE)(e,t,n),x(t,n,n))},closestPointOnSilhouette:I,containsPoint:B,copy:S,create:g,distanceToSilhouette:function(t,e){const n=(0,s.f)(f.Wq.get(),e,t),i=(0,s.p)(n),o=t[3]*t[3];return Math.sqrt(Math.abs(i-o))},elevate:function(t,e,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+e,n},equals:p,exactEquals:T,fromCenterAndRadius:function(t,e){return(0,a.WK)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:E,getCenter:b,getRadius:O,intersectLine:function(t,e,n){const i=(0,l.i_)(e,n);if(!M(t,i,R))return[];const{origin:o,direction:r}=i,{t0:u,t1:a}=R,d=e=>{const n=(0,c.Su)();return(0,s.r)(n,o,r,e),x(t,n,n)};return Math.abs(u-a)<(0,h.Au)()?[d(u)]:[d(u),d(a)]},intersectRay:N,intersectRayClosestSilhouette:function(t,e,n){if(N(t,e,n))return n;const i=I(t,e,f.Wq.get());return(0,s.g)(n,e.origin,(0,s.h)(f.Wq.get(),e.direction,(0,s.q)(e.origin,i)/(0,s.l)(e.direction))),n},intersectsRay:F,projectPoint:x,setAltitudeAt:function(t,e,n,i){const o=v(t,e),r=w(t,e,d.k.Z,W),c=(0,s.h)(W,r,n-o);return(0,s.g)(i,e,c)},setExtent:function(t,e,n){return i.c.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t!==n&&S(t,n),n},tmpSphere:C,union:function(t,e,n=(0,a.Su)()){const i=(0,s.q)(t,e),o=t[3],r=e[3];return i+r<o?((0,u.c)(n,t),n):i+o<r?((0,u.c)(n,e),n):((0,s.m)(n,t,e,(i+r-o)/(2*i)),n[3]=(i+o+r)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},52180:(t,e,n)=>{n.d(e,{o:()=>o});var i=n(52324);class o{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.o)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*r);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,r));t++)this._items.push(this._allocator())}}const r=1024},68612:(t,e,n)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,i,o,r,s,c,u){return[t,e,n,i,o,r,s,c,u]}n.d(e,{IJ:()=>r,Su:()=>i,WK:()=>o});const r=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:i,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},87104:(t,e,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{IJ:()=>r,Su:()=>i,ct:()=>o});const r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:o,create:i,createView:function(t,e){return new Float64Array(t,e,16)},fromValues:function(t,e,n,i,o,r,s,c,u,a,h,d,l,_,f,m){return[t,e,n,i,o,r,s,c,u,a,h,d,l,_,f,m]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,e,n)=>{function i(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{IJ:()=>r,Su:()=>i,ct:()=>o});const r=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:o,create:i,createView:function(t,e){return new Float64Array(t,e,4)},fromValues:function(t,e,n,i){return[t,e,n,i]}},Symbol.toStringTag,{value:"Module"}))},82315:(t,e,n)=>{var i;n.d(e,{k:()=>i}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(i||(i={}))},24363:(t,e,n)=>{n.d(e,{C_:()=>h,Su:()=>u,i_:()=>a});var i=n(53648),o=n(52180),r=n(98472),s=n(62484),c=n(20136);function u(t){return t?{origin:(0,s.ct)(t.origin),vector:(0,s.ct)(t.vector)}:{origin:(0,s.Su)(),vector:(0,s.Su)()}}function a(t,e,n=u()){return(0,r.c)(n.origin,t),(0,r.f)(n.vector,e,t),n}function h(t,e,n){return function(t,e,n,o,s){const{vector:u,origin:a}=t,h=(0,r.f)(c.Wq.get(),e,a),d=(0,r.k)(u,h)/(0,r.p)(u);return(0,r.h)(s,u,(0,i.qk)(d,0,1)),(0,r.g)(s,s,t.origin)}(t,e,0,0,n)}(0,s.Su)(),(0,s.Su)(),new o.o((()=>u()))},58632:(t,e,n)=>{n.d(e,{Su:()=>r,XX:()=>c,Oq:()=>s}),n(53648);var i=n(98472),o=n(62484);function r(t=f){return[t[0],t[1],t[2],t[3]]}function s(t){return t}function c(t,e,n,o=0,s=Math.floor(n*(1/3)),f=Math.floor(n*(2/3))){if(n<3)return!1;e(a,o);let m=s,g=!1;for(;m<n-1&&!g;)e(h,m),m++,g=!(0,i.j)(a,h);if(!g)return!1;for(m=Math.max(m,f),g=!1;m<n&&!g;)e(d,m),m++,(0,i.f)(l,a,h),(0,i.n)(l,l),(0,i.f)(_,h,d),(0,i.n)(_,_),g=!(0,i.j)(a,d)&&!(0,i.j)(h,d)&&Math.abs((0,i.k)(l,_))<u;return g?(function(t,e,n,i=r()){const o=n[0]-e[0],s=n[1]-e[1],c=n[2]-e[2],u=t[0]-e[0],a=t[1]-e[1],h=t[2]-e[2],d=s*h-c*a,l=c*u-o*h,_=o*a-s*u,f=d*d+l*l+_*_,m=Math.abs(f-1)>1e-5&&f>1e-12?1/Math.sqrt(f):1;i[0]=d*m,i[1]=l*m,i[2]=_*m,i[3]=-(i[0]*t[0]+i[1]*t[1]+i[2]*t[2])}(a,h,d,t),!0):(0!==o||1!==s||2!==f)&&c(t,e,n,0,1,2)}n(74784),n(48880),n(20136),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)();const u=.99619469809,a=(0,o.Su)(),h=(0,o.Su)(),d=(0,o.Su)(),l=(0,o.Su)(),_=(0,o.Su)(),f=[0,0,1,0];var m,g;(g=m||(m={}))[g.NONE=0]="NONE",g[g.CLAMP=1]="CLAMP",g[g.INFINITE_MIN=4]="INFINITE_MIN",g[g.INFINITE_MAX=8]="INFINITE_MAX",m.INFINITE_MIN,m.INFINITE_MAX,m.INFINITE_MAX},90484:(t,e,n)=>{n.d(e,{CE:()=>h,Su:()=>s,em:()=>u,i_:()=>a}),n(92400);var i=n(52180),o=n(98472),r=n(62484);function s(t){return t?c((0,r.ct)(t.origin),(0,r.ct)(t.direction)):c((0,r.Su)(),(0,r.Su)())}function c(t,e){return{origin:t,direction:e}}function u(t,e){const n=d.get();return n.origin=t,n.direction=e,n}function a(t,e,n=s()){return(0,o.c)(n.origin,t),(0,o.f)(n.direction,e,t),n}function h(t,e,n){const i=(0,o.k)(t.direction,(0,o.f)(n,e,t.origin));return(0,o.g)(n,t.origin,(0,o.h)(n,t.direction,i)),n}n(20136);const d=new i.o((()=>s()))},48880:(t,e,n)=>{n.d(e,{i4:()=>s});var i=n(53648),o=n(98472),r=n(62484);function s(t,e){const n=(0,o.k)(t,e)/((0,o.l)(t)*(0,o.l)(e));return-(0,i.Uj)(n)}(0,r.Su)(),(0,r.Su)()},20136:(t,e,n)=>{n.d(e,{SW:()=>l,QX:()=>_,Wq:()=>d});var i=n(52324),o=n(68612),r=n(87104),s=n(2620),c=n(85256),u=n(62484),a=n(37008);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,i.o)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(c.Su)}static createVec3f64(){return new h(u.Su)}static createVec4f64(){return new h(a.Su)}static createMat3f64(){return new h(o.Su)}static createMat4f64(){return new h(r.Su)}static createQuatf64(){return new h(s.Su)}get test(){return{length:this._items.length}}}h.createVec2f64();const d=h.createVec3f64(),l=(h.createVec4f64(),h.createMat3f64(),h.createMat4f64()),_=h.createQuatf64()},45316:(t,e,n)=>{n.r(e),n.d(e,{default:()=>Q});var i,o,r=n(41948),s=n(10860),c=(n(66360),n(9456),n(72052),n(20744),n(12552)),u=n(98472),a=n(62484),h=n(24363),d=n(84752),l=n(69752),_=n(24680),f=n(52180),m=(n(15008),n(74784),n(37008)),g=n(90484);function T(t){return t?{ray:(0,g.Su)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,g.Su)(),c0:0,c1:Number.MAX_VALUE}}function p(t,e){for(let n=0;n<S;n++){const i=t[n];if(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]>=e[3])return!1}return!0}new f.o((()=>T())),n(58632),n(20136),function(t){t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t[t.BOTTOM=2]="BOTTOM",t[t.TOP=3]="TOP",t[t.NEAR=4]="NEAR",t[t.FAR=5]="FAR"}(i||(i={})),function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(o||(o={})),o.FAR_BOTTOM_RIGHT,o.NEAR_BOTTOM_RIGHT,o.NEAR_BOTTOM_LEFT,o.FAR_BOTTOM_LEFT,o.NEAR_BOTTOM_LEFT,o.NEAR_BOTTOM_RIGHT,o.NEAR_TOP_RIGHT,o.NEAR_TOP_LEFT,o.FAR_BOTTOM_RIGHT,o.FAR_BOTTOM_LEFT,o.FAR_TOP_LEFT,o.FAR_TOP_RIGHT,o.NEAR_BOTTOM_RIGHT,o.FAR_BOTTOM_RIGHT,o.FAR_TOP_RIGHT,o.NEAR_TOP_RIGHT,o.FAR_BOTTOM_LEFT,o.NEAR_BOTTOM_LEFT,o.NEAR_TOP_LEFT,o.FAR_TOP_LEFT,o.FAR_TOP_LEFT,o.NEAR_TOP_LEFT,o.NEAR_TOP_RIGHT,o.FAR_TOP_RIGHT;const S=6;(0,m.WK)(-1,-1,-1,1),(0,m.WK)(1,-1,-1,1),(0,m.WK)(1,1,-1,1),(0,m.WK)(-1,1,-1,1),(0,m.WK)(-1,-1,1,1),(0,m.WK)(1,-1,1,1),(0,m.WK)(1,1,1,1),(0,m.WK)(-1,1,1,1),new f.o(T),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)(),(0,a.Su)();var O,b,E=n(90736);class N{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new R,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),R.clearPool(),W[0]=null,q.prune(),G.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=R.acquire();for(let i=0;i<e;i++){const e=t[i];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}R.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=R.acquire();for(const i of t){const t=e??(0,d.c)(this.objectToBoundingSphere(i),K);P(t[3])?(n.init(this._root),this._remove(i,t,n)):this._degenerateObjects.delete(i)}R.release(n),this._shrink()}update(t,e){if(!P(e[3])&&this._isDegenerate(t))return;const n=function(t){return W[0]=t,W}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const i=(0,g.em)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNode(i,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,i){const o=(0,g.em)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNodeWithOffset(o,t,i))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(o,t,i)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(o,t,i)&&n(t)})),!0}))}forEach(t){this._forEachNode(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,i=(()=>!0),o=1/0){let r=1/0,s=1/0,c=null;const a=x(t,e),h=u=>{if(--o,!i(u))return;const a=this.objectToBoundingSphere(u);if(!p(n,a))return;const h=j(t,e,(0,d.g)(a)),l=h-a[3],_=h+a[3];l<r&&(r=l,s=_,c=u)};return this._forEachNodeDepthOrdered(this._root,(i=>{if(o<=0||!p(n,i.bounds))return!1;if((0,u.h)(L,a,i.halfSize),(0,u.g)(L,L,(0,d.g)(i.bounds)),j(t,e,L)>s)return!1;const r=i.node;return r.terminals.forAll((t=>h(t))),null!==r.residents&&r.residents.forAll((t=>h(t))),!0}),t,e),c}forEachInDepthRange(t,e,n,i,o,r,s){let c=-1/0,a=1/0;const h={setRange:t=>{n===N.DepthOrder.FRONT_TO_BACK?(c=Math.max(c,t.near),a=Math.min(a,t.far)):(c=Math.max(c,-t.far),a=Math.min(a,-t.near))}};h.setRange(i);const l=j(e,n,t),_=x(e,n),f=x(e,-n),m=t=>{if(!s(t))return;const i=this.objectToBoundingSphere(t),u=(0,d.g)(i),_=j(e,n,u)-l,f=_-i[3],m=_+i[3];f>a||m<c||!p(r,i)||o(t,h)};this._forEachNodeDepthOrdered(this._root,(t=>{if(!p(r,t.bounds))return!1;if((0,u.h)(L,_,t.halfSize),(0,u.g)(L,L,(0,d.g)(t.bounds)),j(e,n,L)-l>a)return!1;if((0,u.h)(L,f,t.halfSize),(0,u.g)(L,L,(0,d.g)(t.bounds)),j(e,n,L)-l<c)return!1;const i=t.node;return i.terminals.forAll((t=>m(t))),null!==i.residents&&i.residents.forAll((t=>m(t))),!0}),e,n)}forEachNode(t){this._forEachNode(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,d.a)(e),i=(0,d.g)(e),o=e=>{const o=this.objectToBoundingSphere(e),r=(0,d.a)(o),s=n+r;return!((0,u.a)((0,d.g)(o),i)-s*s<=0)||t(e)};let r=!0;const s=t=>{r&&(r=o(t))};this._forEachNode(this._root,(t=>{const e=(0,d.a)(t.bounds),o=n+e;if((0,u.a)((0,d.g)(t.bounds),i)-o*o>0)return!1;const c=t.node;return c.terminals.forAll(s),r&&null!==c.residents&&c.residents.forAll(s),r})),r&&this.forEachDegenerateObject(s)}_intersectsNode(t,e){return F((0,d.g)(e.bounds),2*-e.halfSize,y),F((0,d.g)(e.bounds),2*e.halfSize,z),(0,E.If)(t.origin,t.direction,y,z)}_intersectsNodeWithOffset(t,e,n){return F((0,d.g)(e.bounds),2*-e.halfSize,y),F((0,d.g)(e.bounds),2*e.halfSize,z),n.applyToMinMax(y,z),(0,E.If)(t.origin,t.direction,y,z)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,d.i)(n,t)}_intersectsObjectWithOffset(t,e,n){const i=this.objectToBoundingSphere(e);return!(i[3]>0)||(0,d.i)(n.applyToBoundingSphere(i),t)}_forEachNode(t,e){let n=R.acquire().init(t);const i=[n];for(;0!==i.length;){if(n=i.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&i.push(R.acquire().init(n).advance(t));R.release(n)}}_forEachNodeDepthOrdered(t,e,n,i=N.DepthOrder.FRONT_TO_BACK){let o=R.acquire().init(t);const r=[o];for(function(t,e,n){if(!G.length)for(let t=0;t<8;++t)G.push({index:0,distance:0});for(let n=0;n<8;++n){const i=w[n];G.data[n].index=n,G.data[n].distance=j(t,e,i)}G.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=G.data[t].index}(n,i,X);0!==r.length;){if(o=r.pop(),e(o)&&!o.isLeaf())for(let t=7;t>=0;--t){const e=X[t];o.node.children[e]&&r.push(R.acquire().init(o).advance(e))}R.release(o)}}_remove(t,e,n){q.clear();const i=n.advanceTo(e,((t,e)=>{q.push(t.node),q.push(e)}))?n.node.terminals:n.node.residents;if(i.removeUnordered(t),0===i.length)for(let t=q.length-2;t>=0;t-=2){const e=q.data[t],n=q.data[t+1];if(!this._purge(e,n))break}}_nodeIsEmpty(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}_purge(t,e){return e>=0&&(t.children[e]=null),!!this._nodeIsEmpty(t)&&(null===t.residents&&(t.residents=new _.c({shrink:!0})),!0)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const i=R.acquire().init(t);this._add(e.at(n),i),R.release(i)}}_grow(t,e){if(0!==e&&(I(t,e,(t=>this.objectToBoundingSphere(t)),D),P(D[3])&&!this._fitsInsideTree(D)))if(this._nodeIsEmpty(this._root.node))(0,d.c)(D,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(D);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(D,t):this._growRootAsSubNode(t),R.release(t)}}_rebuildTree(t,e){(0,u.c)((0,d.g)(H),(0,d.g)(e.bounds)),H[3]=e.halfSize,I([t,H],2,(t=>t),V);const n=R.acquire().init(this._root);this._root.initFrom(null,V,V[3]),this._root.increaseHalfSize(1.25),this._forEachNode(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),R.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return this._forEachNode(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let i=-1/0;const o=this._root.bounds,r=this._root.halfSize;for(let t=0;t<3;t++){const s=o[t]-r-(n[t]-e),c=n[t]+e-(o[t]+r),u=Math.max(0,Math.ceil(s/(2*r))),a=Math.max(0,Math.ceil(c/(2*r)))+1,h=2**Math.ceil(Math.log(u+a)*Math.LOG2E);i=Math.max(i,h),k[t].min=u,k[t].max=a}for(let t=0;t<3;t++){let e=k[t].min,n=k[t].max;const s=(i-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const c=o[t]-r-e*r*2;C[t]=c+(n+e)*r}const s=i*r;return C[3]=s*B,R.acquire().initFrom(null,C,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,u.c)((0,d.g)(D),(0,d.g)(this._root.bounds)),D[3]=this._root.halfSize,this._root.init(t),t.advanceTo(D,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,i=0;for(;i<e.length&&null==t;)n=i++,t=e[n];for(;i<e.length;)if(e[i++])return-1;return n}_isDegenerate(t){return!P(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,i=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:i}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),i=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:i}}static fromJSON(t){const e=new N((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class R{constructor(){this.bounds=(0,d.d)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,i=this.depth){return this.node=null!=t?t:R.createEmptyNode(),e&&(0,d.c)(e,this.bounds),this.halfSize=n,this.depth=i,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*B}advance(t){let e=this.node.children[t];e||(e=R.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=w[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const i=this._childIndex(t);e&&e(this,i),this.advance(i)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new _.c({shrink:!0}),residents:new _.c({shrink:!0})}}static acquire(){return R._pool.acquire()}static release(t){R._pool.release(t)}static clearPool(){R._pool.prune()}}function M(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function A(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function F(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function I(t,e,n,i){if(1===e){const e=n(t[0]);(0,d.c)(e,i)}else{y[0]=1/0,y[1]=1/0,y[2]=1/0,z[0]=-1/0,z[1]=-1/0,z[2]=-1/0;for(let i=0;i<e;i++){const e=n(t[i]);P(e[3])&&(M(y,e),A(z,e))}(0,u.m)((0,d.g)(i),y,z,.5),i[3]=Math.max(z[0]-y[0],z[1]-y[1],z[2]-y[2])/2}}function x(t,e){let n,i=1/0;for(let o=0;o<8;++o){const r=j(t,e,v[o]);r<i&&(i=r,n=v[o])}return n}function j(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function P(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}R._pool=new l.c(R),O=N||(N={}),(b=O.DepthOrder||(O.DepthOrder={}))[b.FRONT_TO_BACK=1]="FRONT_TO_BACK",b[b.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const w=[(0,a.WK)(-1,-1,-1),(0,a.WK)(1,-1,-1),(0,a.WK)(-1,1,-1),(0,a.WK)(1,1,-1),(0,a.WK)(-1,-1,1),(0,a.WK)(1,-1,1),(0,a.WK)(-1,1,1),(0,a.WK)(1,1,1)],v=[(0,a.WK)(-1,-1,-1),(0,a.WK)(-1,-1,1),(0,a.WK)(-1,1,-1),(0,a.WK)(-1,1,1),(0,a.WK)(1,-1,-1),(0,a.WK)(1,-1,1),(0,a.WK)(1,1,-1),(0,a.WK)(1,1,1)],B=Math.sqrt(3),W=[null],C=(0,d.d)(),L=(0,a.Su)(),y=(0,a.Su)(),z=(0,a.Su)(),q=new _.c,K=(0,d.d)(),D=(0,d.d)(),H=(0,d.d)(),V=(0,d.d)(),k=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],G=new _.c,X=[0,0,0,0,0,0,0,0],J=N;var Y=n(75980);function U(t,e,n){const i=(0,d.d)(),o=(0,d.g)(i);return(0,u.r)(o,o,t,.5),(0,u.r)(o,o,e,.5),i[3]=(0,u.q)(o,t),(0,u.g)(o,o,n),i}let Z=class{constructor(){this._idToComponent=new Map,this._components=new J((t=>t.bounds)),this._edges=new J((t=>t.bounds)),this._tmpLineSegment=(0,h.Su)(),this._tmpP1=(0,a.Su)(),this._tmpP2=(0,a.Su)(),this._tmpP3=(0,a.Su)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,s.wp)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:i}=t;n.push({id:e,uid:i})}return!0}),t.bounds),!n.length)return;const i={components:n},o=await this.remoteClient.invoke("fetchAllEdgeLocations",i,e??{});for(const t of o.components)this._setFetchEdgeLocations(t)}async add(t){const e=new $(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=Y.or.createView(t.locations),i=new Array(n.count),o=(0,a.Su)(),r=(0,a.Su)();for(let s=0;s<n.count;s++){n.position0.getVec(s,o),n.position1.getVec(s,r);const c=U(o,r,t.origin),u=new tt(e,s,c);i[s]=u}this._edges.add(i);const{objectIds:s,origin:c}=t;e.info={locations:n,objectIds:s,origin:c}}_addCandidates(t,e,n){const{info:i}=e.component,{origin:o,objectIds:r}=i,s=i.locations,c=s.position0.getVec(e.index,this._tmpP1),a=s.position1.getVec(e.index,this._tmpP2);(0,u.g)(c,c,o),(0,u.g)(a,a,o);const h=r[s.componentIndex.get(e.index)];this._addEdgeCandidate(t,h,c,a,n),this._addVertexCandidate(t,h,c,n),this._addVertexCandidate(t,h,a,n)}_addEdgeCandidate(t,e,n,i,o){if(!t.returnEdge)return;const r=(0,d.g)(t.bounds),s=(0,h.i_)(n,i,this._tmpLineSegment),c=(0,h.C_)(s,r,this._tmpP3);(0,d.n)(t.bounds,c)&&o.push({type:"edge",objectId:e,target:(0,a.ct)(c),distance:(0,u.q)(r,c),start:(0,a.ct)(n),end:(0,a.ct)(i)})}_addVertexCandidate(t,e,n,i){if(!t.returnVertex||!(0,d.n)(t.bounds,n))return;const o=(0,d.g)(t.bounds);i.push({type:"vertex",objectId:e,target:(0,a.ct)(n),distance:(0,u.q)(o,n)})}};Z=(0,r._)([(0,c.c)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],Z);const Q=Z;class ${constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++$.uid}}$.uid=0;class tt{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6248,8528,4828],{8528:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},85304:(t,e,n)=>{n.d(e,{q:()=>c});var r,o,i,a=n(8528),s={exports:{}};r=s,o=function(){function t(n,r,o,i,a){for(;i>o;){if(i-o>600){var s=i-o+1,c=r-o+1,l=Math.log(s),u=.5*Math.exp(2*l/3),f=.5*Math.sqrt(l*u*(s-u)/s)*(c-s/2<0?-1:1);t(n,r,Math.max(o,Math.floor(r-c*u/s+f)),Math.min(i,Math.floor(r+(s-c)*u/s+f)),a)}var h=n[r],p=o,m=i;for(e(n,o,r),a(n[i],h)>0&&e(n,o,i);p<m;){for(e(n,p,m),p++,m--;a(n[p],h)<0;)p++;for(;a(n[m],h)>0;)m--}0===a(n[o],h)?e(n,o,m):e(n,++m,i),m<=r&&(o=m+1),r<=m&&(i=m-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,o,i,a){t(e,r,o||0,i||e.length-1,a||n)}},void 0!==(i=o())&&(r.exports=i);const c=(0,a.g)(s.exports)},48952:(t,e,n)=>{n.d(e,{a:()=>i,b:()=>s,c:()=>a,d:()=>o,e:()=>f,f:()=>c,n:()=>h,s:()=>l,t:()=>u}),n(9456);var r=n(23704);function o(t,e,n){i(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function i(t,e,n,r=3,o=r){if(t.length/r!==Math.ceil(e.length/o))return t;const i=t.length/r,a=n[0],s=n[1],c=n[2],l=n[4],u=n[5],f=n[6],h=n[8],p=n[9],m=n[10],d=n[12],g=n[13],M=n[14];let y=0,_=0;for(let n=0;n<i;n++){const n=e[y],i=e[y+1],x=e[y+2];t[_]=a*n+l*i+h*x+d,t[_+1]=s*n+u*i+p*x+g,t[_+2]=c*n+f*i+m*x+M,y+=o,_+=r}return t}function a(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,o=3,i=o){if(t.length/o!==Math.ceil(e.length/i))return void(0,r.A)().error("source and destination buffers need to have the same number of elements");const a=t.length/o,s=n[0],c=n[1],l=n[2],u=n[3],f=n[4],h=n[5],p=n[6],m=n[7],d=n[8];let g=0,M=0;for(let n=0;n<a;n++){const n=e[g],r=e[g+1],a=e[g+2];t[M]=s*n+u*r+p*a,t[M+1]=c*n+f*r+m*a,t[M+2]=l*n+h*r+d*a,g+=i,M+=o}}function c(t,e,n){l(t.typedBuffer,e,n,t.typedBufferStride)}function l(t,e,n,r=3){const o=Math.min(t.length/r,e.count),i=e.typedBuffer,a=e.typedBufferStride;let s=0,c=0;for(let e=0;e<o;e++)t[c]=n*i[s],t[c+1]=n*i[s+1],t[c+2]=n*i[s+2],s+=a,c+=r}function u(t,e,n,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(e.length/o))return t;let a=0,s=0;for(let c=0;c<i;c++)t[s]=e[a]+n[0],t[s+1]=e[a+1]+n[1],t[s+2]=e[a+2]+n[2],a+=o,s+=r;return t}function f(t,e){h(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function h(t,e,n=3,r=n){const o=Math.min(t.length/n,e.length/r);let i=0,a=0;for(let s=0;s<o;s++){const o=e[i],s=e[i+1],c=e[i+2],l=o*o+s*s+c*c;if(l>0){const e=1/Math.sqrt(l);t[a]=e*o,t[a+1]=e*s,t[a+2]=e*c}i+=r,a+=n}}Object.freeze(Object.defineProperty({__proto__:null,normalize:h,normalizeView:f,scale:l,scaleView:c,shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),o=t.typedBuffer,i=t.typedBufferStride,a=e.typedBuffer,s=e.typedBufferStride;let c=0,l=0;for(let t=0;t<r;t++)o[l]=a[c]>>n,o[l+1]=a[c+1]>>n,o[l+2]=a[c+2]>>n,c+=s,l+=i},transformMat3:s,transformMat3View:a,transformMat4:i,transformMat4View:o,translate:u},Symbol.toStringTag,{value:"Module"}))},3856:(t,e,n)=>{n.d(e,{m:()=>f,q:()=>u});var r=n(41948),o=n(43780),i=(n(9456),n(62088)),a=(n(66360),n(70680)),s=n(71448),c=n(20916),l=n(12552);const u=t=>{let e=class extends t{clone(){const t=(0,c.m6)(this);(0,a.EN)(t,"unable to clone instance of non-accessor class");const e=t.metadata,n=t.store,r={},o=new Map;for(const t in e){const a=e[t],c=n?.originOf(t),l=a.clonable;if(a.readOnly||!1===l||c!==s.sT.USER&&c!==s.sT.DEFAULTS&&c!==s.sT.WEB_MAP&&c!==s.sT.WEB_SCENE)continue;const u=this[t];let f=null;f="function"==typeof l?l(u):"reference"===l?u:(0,i.gx)(u),null!=u&&null==f||(c===s.sT.DEFAULTS?o.set(t,f):r[t]=f)}const l=new(0,Object.getPrototypeOf(this).constructor)(r);if(o.size){const t=(0,c.m6)(l)?.store;if(t)for(const[e,n]of o)t.set(e,n,s.sT.DEFAULTS)}return l}};return e=(0,r._)([(0,l.c)("esri.core.Clonable")],e),e};let f=class extends(u(o.c)){};f=(0,r._)([(0,l.c)("esri.core.Clonable")],f)},9592:(t,e,n)=>{n.d(e,{n:()=>o});var r=n(50504);class o extends r.g{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},68612:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,i,a,s,c){return[t,e,n,r,o,i,a,s,c]}n.d(e,{IJ:()=>i,Su:()=>r,WK:()=>o});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},87104:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{IJ:()=>i,Su:()=>r,ct:()=>o});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,createView:function(t,e){return new Float64Array(t,e,16)},fromValues:function(t,e,n,r,o,i,a,s,c,l,u,f,h,p,m,d){return[t,e,n,r,o,i,a,s,c,l,u,f,h,p,m,d]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{IJ:()=>i,Su:()=>r,ct:()=>o});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,createView:function(t,e){return new Float64Array(t,e,4)},fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,e,n)=>{n.d(e,{KU:()=>f,QT:()=>m,S_:()=>s,WO:()=>i,_7:()=>c,aU:()=>u,iW:()=>l,kr:()=>o,oL:()=>a,yy:()=>h});var r=n(47364);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,n,r,o,i,a,s,c,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=s,t[7]=c,t[8]=l,t}function a(t,e){if(t===e){const n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function s(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=u*a-s*l,h=-u*i+s*c,p=l*i-a*c;let m=n*f+r*h+o*p;return m?(m=1/m,t[0]=f*m,t[1]=(-u*r+o*l)*m,t[2]=(s*r-o*a)*m,t[3]=h*m,t[4]=(u*n-o*c)*m,t[5]=(-s*n+o*i)*m,t[6]=p*m,t[7]=(-l*n+r*c)*m,t[8]=(a*n-r*i)*m,t):null}function c(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8];return t[0]=a*u-s*l,t[1]=o*l-r*u,t[2]=r*s-o*a,t[3]=s*c-i*u,t[4]=n*u-o*c,t[5]=o*i-n*s,t[6]=i*l-a*c,t[7]=r*c-n*l,t[8]=n*a-r*i,t}function l(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],h=n[0],p=n[1],m=n[2],d=n[3],g=n[4],M=n[5],y=n[6],_=n[7],x=n[8];return t[0]=h*r+p*a+m*l,t[1]=h*o+p*s+m*u,t[2]=h*i+p*c+m*f,t[3]=d*r+g*a+M*l,t[4]=d*o+g*s+M*u,t[5]=d*i+g*c+M*f,t[6]=y*r+_*a+x*l,t[7]=y*o+_*s+x*u,t[8]=y*i+_*c+x*f,t}function u(t,e,n){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t}function f(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=n+n,s=r+r,c=o+o,l=n*a,u=r*a,f=r*s,h=o*a,p=o*s,m=o*c,d=i*a,g=i*s,M=i*c;return t[0]=1-f-m,t[3]=u-M,t[6]=h+g,t[1]=u+M,t[4]=1-l-m,t[7]=p-d,t[2]=h-g,t[5]=p+d,t[8]=1-l-f,t}function h(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],h=e[10],p=e[11],m=e[12],d=e[13],g=e[14],M=e[15],y=n*s-r*a,_=n*c-o*a,x=n*l-i*a,A=r*c-o*s,b=r*l-i*s,w=o*l-i*c,S=u*d-f*m,v=u*g-h*m,B=u*M-p*m,P=f*g-h*d,T=f*M-p*d,F=h*M-p*g;let E=y*F-_*T+x*P+A*B-b*v+w*S;return E?(E=1/E,t[0]=(s*F-c*T+l*P)*E,t[1]=(c*B-a*F-l*v)*E,t[2]=(a*T-s*B+l*S)*E,t[3]=(o*T-r*F-i*P)*E,t[4]=(n*F-o*B+i*v)*E,t[5]=(r*B-n*T-i*S)*E,t[6]=(d*w-g*b+M*A)*E,t[7]=(g*x-m*w-M*_)*E,t[8]=(m*b-d*x+M*y)*E,t):null}function p(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function m(t){const e=(0,r.Au)(),n=t[0],o=t[1],i=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],f=t[8];return Math.abs(1-(n*n+a*a+l*l))<=e&&Math.abs(1-(o*o+s*s+u*u))<=e&&Math.abs(1-(i*i+c*c+f*f))<=e}const d=l,g=p;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:c,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],a=t[5],s=t[6],c=t[7],l=t[8];return e*(l*i-a*c)+n*(-l*o+a*s)+r*(c*o-i*s)},equals:function(t,e){const n=t[0],o=t[1],i=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],f=t[8],h=e[0],p=e[1],m=e[2],d=e[3],g=e[4],M=e[5],y=e[6],_=e[7],x=e[8],A=(0,r.Au)();return Math.abs(n-h)<=A*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(o-p)<=A*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(i-m)<=A*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(a-d)<=A*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(s-g)<=A*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(c-M)<=A*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(l-y)<=A*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-_)<=A*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(f-x)<=A*Math.max(1,Math.abs(f),Math.abs(x))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:m,mul:d,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:h,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[4],a=e[5],s=e[6],c=e[8],l=e[9],u=e[10],f=u*a-s*l,h=-u*i+s*c,p=l*i-a*c,m=n*f+r*h+o*p;if(!m)return null;const d=1/m;return t[0]=f*d,t[1]=(-u*r+o*l)*d,t[2]=(s*r-o*a)*d,t[3]=h*d,t[4]=(u*n-o*c)*d,t[5]=(-s*n+o*i)*d,t[6]=p*d,t[7]=(-l*n+r*c)*d,t[8]=(a*n-r*i)*d,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],h=Math.sin(n),p=Math.cos(n);return t[0]=p*r+h*a,t[1]=p*o+h*s,t[2]=p*i+h*c,t[3]=p*a-h*r,t[4]=p*s-h*o,t[5]=p*c-h*i,t[6]=l,t[7]=u,t[8]=f,t},scale:u,scaleByVec2:function(t,e,n){const r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:g,subtract:p,translate:function(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],h=n[0],p=n[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=s,t[5]=c,t[6]=h*r+p*a+l,t[7]=h*o+p*s+u,t[8]=h*i+p*c+f,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},41512:(t,e,n)=>{n.d(e,{C0:()=>u,WO:()=>M,Wu:()=>d,fO:()=>p,iW:()=>f,sF:()=>T,yG:()=>l});var r=n(68612),o=n(2620),i=n(62484),a=n(47364),s=n(98472),c=n(74784);function l(t,e,n){n*=.5;const r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function u(t,e){const n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>(0,a.Au)()?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function f(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3],s=n[0],c=n[1],l=n[2],u=n[3];return t[0]=r*u+a*s+o*l-i*c,t[1]=o*u+a*c+i*s-r*l,t[2]=i*u+a*l+r*c-o*s,t[3]=a*u-r*s-o*c-i*l,t}function h(t,e,n,r){const o=e[0],i=e[1],s=e[2],c=e[3];let l,u,f,h,p,m=n[0],d=n[1],g=n[2],M=n[3];return u=o*m+i*d+s*g+c*M,u<0&&(u=-u,m=-m,d=-d,g=-g,M=-M),1-u>(0,a.Au)()?(l=Math.acos(u),f=Math.sin(l),h=Math.sin((1-r)*l)/f,p=Math.sin(r*l)/f):(h=1-r,p=r),t[0]=h*o+p*m,t[1]=h*i+p*d,t[2]=h*s+p*g,t[3]=h*c+p*M,t}function p(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function m(t,e){const n=e[0]+e[4]+e[8];let r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[3*n+n]&&(n=2);const o=(n+1)%3,i=(n+2)%3;r=Math.sqrt(e[3*n+n]-e[3*o+o]-e[3*i+i]+1),t[n]=.5*r,r=.5/r,t[3]=(e[3*o+i]-e[3*i+o])*r,t[o]=(e[3*o+n]+e[3*n+o])*r,t[i]=(e[3*i+n]+e[3*n+i])*r}return t}function d(t,e,n,r){const o=.5*Math.PI/180;e*=o,n*=o,r*=o;const i=Math.sin(e),a=Math.cos(e),s=Math.sin(n),c=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return t[0]=i*c*u-a*s*l,t[1]=a*s*u+i*c*l,t[2]=a*c*l-i*s*u,t[3]=a*c*u+i*s*l,t}const g=c.c,M=c.s,y=c.g,_=f,x=c.d,A=c.h,b=c.l,w=c.i,S=w,v=c.j,B=v,P=c.n,T=c.a,F=c.e,E=(0,i.Su)(),Y=(0,i.WK)(1,0,0),C=(0,i.WK)(0,1,0),O=(0,o.Su)(),R=(0,o.Su)(),X=(0,r.Su)();Object.freeze(Object.defineProperty({__proto__:null,add:y,calculateW:function(t,e){const n=e[0],r=e[1],o=e[2];return t[0]=n,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-o*o)),t},conjugate:p,copy:g,dot:A,equals:F,exactEquals:T,fromEuler:d,fromMat3:m,getAxisAngle:u,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=n*n+r*r+o*o+i*i,s=a?1/a:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-o*s,t[3]=i*s,t},len:S,length:w,lerp:b,mul:_,multiply:f,normalize:P,random:function(t){const e=a.QR,n=e(),r=e(),o=e(),i=Math.sqrt(1-n),s=Math.sqrt(n);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=s*Math.sin(2*Math.PI*o),t[3]=s*Math.cos(2*Math.PI*o),t},rotateX:function(t,e,n){n*=.5;const r=e[0],o=e[1],i=e[2],a=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*s,t[1]=o*c+i*s,t[2]=i*c-o*s,t[3]=a*c-r*s,t},rotateY:function(t,e,n){n*=.5;const r=e[0],o=e[1],i=e[2],a=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c-i*s,t[1]=o*c+a*s,t[2]=i*c+r*s,t[3]=a*c-o*s,t},rotateZ:function(t,e,n){n*=.5;const r=e[0],o=e[1],i=e[2],a=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*s,t[1]=o*c-r*s,t[2]=i*c+a*s,t[3]=a*c-i*s,t},rotationTo:function(t,e,n){const r=(0,s.j)(e,n);return r<-.999999?((0,s.b)(E,Y,e),(0,s.C)(E)<1e-6&&(0,s.b)(E,C,e),(0,s.n)(E,E),l(t,E,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.b)(E,e,n),t[0]=E[0],t[1]=E[1],t[2]=E[2],t[3]=1+r,P(t,t))},scale:x,set:M,setAxes:function(t,e,n,r){const o=X;return o[0]=n[0],o[3]=n[1],o[6]=n[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-e[0],o[5]=-e[1],o[8]=-e[2],P(t,m(t,o))},setAxisAngle:l,slerp:h,sqlerp:function(t,e,n,r,o,i){return h(O,e,o,i),h(R,n,r,i),h(t,O,R,2*i*(1-i)),t},sqrLen:B,squaredLength:v,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},3024:(t,e,n)=>{n.d(e,{U:()=>a});var r=n(92400),o=n(24680),i=n(85304);class a{constructor(t=9,e){this._compareMinX=u,this._compareMinY=f,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),_.prune(),x.prune(),A.prune(),b.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(M(t,n))for(_.clear();n;){for(let o=0,i=n.children.length;o<i;o++){const i=n.children[o],a=n.leaf?r(i):i;M(t,a)&&(n.leaf?e(i):g(t,a)?this._all(i,e):_.push(i))}n=_.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!M(t,e))return!1;for(_.clear();e;){for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],i=e.leaf?n(o):o;if(M(t,i)){if(e.leaf||g(t,i))return!0;_.push(o)}}e=_.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new v([]),this}remove(t){if(!t)return this;let e,n=this._data,o=null,i=0,a=!1;const s=this._toBBox(t);for(A.clear(),b.clear();n||A.length>0;){if(n||(n=A.pop(),o=A.data[A.length-1],i=b.pop()??0,a=!0),n.leaf&&(e=(0,r.IP)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),A.push(n),this._condense(A),this;a||n.leaf||!g(n,s)?o?(i++,n=o.children[i],a=!1):n=null:(A.push(n),b.push(i),i=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(x.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else x.pushArray(n.children);n=x.pop()??null}}_build(t,e,n,r){const o=n-e+1;let i=this._maxEntries;if(o<=i){const r=new v(t.slice(e,n+1));return s(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const a=new B([]);a.height=r;const c=Math.ceil(o/i),l=c*Math.ceil(Math.sqrt(i));y(t,e,n,l,this._compareMinX);for(let o=e;o<=n;o+=l){const e=Math.min(o+l-1,n);y(t,o,e,c,this._compareMinY);for(let n=o;n<=e;n+=c){const o=Math.min(n+c-1,e);a.children.push(this._build(t,n,o,r-1))}}return s(a,this._toBBox),a}_chooseSubtree(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,o=1/0;for(let i=0,a=e.children.length;i<a;i++){const a=e.children[i],s=h(a),c=m(t,a)-s;c<o?(o=c,r=s<r?s:r,n=a):c===o&&s<r&&(r=s,n=a)}e=n||e.children[0]}return e}_insert(t,e,n){const r=this._toBBox,o=n?t:r(t);A.clear();const i=this._chooseSubtree(o,this._data,e,A);for(i.children.push(t),l(i,o);e>=0&&A.data[e].children.length>this._maxEntries;)this._split(A,e),e--;this._adjustParentBBoxes(o,A,e)}_split(t,e){const n=t.data[e],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);const i=this._chooseSplitIndex(n,o,r);if(!i)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const a=n.children.splice(i,n.children.length-i),c=n.leaf?new v(a):new B(a);c.height=n.height,s(n,this._toBBox),s(c,this._toBBox),e?t.data[e-1].children.push(c):this._splitRoot(n,c)}_splitRoot(t,e){this._data=new B([t,e]),this._data.height=t.height+1,s(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,o,i;r=o=1/0;for(let a=e;a<=n-e;a++){const e=c(t,0,a,this._toBBox),s=c(t,a,n,this._toBBox),l=d(e,s),u=h(e)+h(s);l<r?(r=l,i=a,o=u<o?u:o):l===r&&u<o&&(o=u,i=a)}return i}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:u,o=t.leaf?this._compareMinY:f;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,o)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const o=this._toBBox,i=c(t,0,e,o),a=c(t,n-e,n,o);let s=p(i)+p(a);for(let r=e;r<n-e;r++){const e=t.children[r];l(i,t.leaf?o(e):e),s+=p(i)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];l(a,t.leaf?o(e):e),s+=p(a)}return s}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)l(e.data[r],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const o=t.data[e-1],i=o.children;i.splice((0,r.IP)(i,n,i.length,o.indexHint),1)}else this.clear();else s(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function s(t,e){c(t,0,t.children.length,e,t)}function c(t,e,n,r,o){o||(o=new v([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,a=e;a<n;a++)i=t.children[a],l(o,t.leaf?r(i):i);return o}function l(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function u(t,e){return t.minX-e.minX}function f(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function p(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function d(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),o=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,o-n)*Math.max(0,i-r)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function M(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function y(t,e,n,r,o){const a=[e,n];for(;a.length;){const e=a.pop(),n=a.pop();if(e-n<=r)continue;const s=n+Math.ceil((e-n)/r/2)*r;(0,i.q)(t,s,n,e,o),a.push(n,s,s,e)}}const _=new o.c,x=new o.c,A=new o.c,b=new o.c({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new r.is}}class v extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class B extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},51120:(t,e,n)=>{n.d(e,{y:()=>l});var r=n(53648),o=n(15008),i=n(62484);function a(t,e,n){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(e),a=Math.cos(e),s=n;return s[0]=-r,s[4]=-i*o,s[8]=a*o,s[12]=0,s[1]=o,s[5]=-i*r,s[9]=a*r,s[13]=0,s[2]=0,s[6]=a,s[10]=i,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=n(38380),c=n(60544);function l(t,e,n,r){if(null==t||null==r)return!1;const i=(0,s.Se)(t,s.Wy),l=(0,s.Se)(r,s.mq);if(i===l&&!u(l)&&(i!==s.o3.UNKNOWN||(0,c.yK)(t,r)))return(0,o.mu)(n,e),!0;if(u(l)){const t=s.yw[i][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][l];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),a(f*h[0],f*h[1],n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}if((l===s.o3.WEB_MERCATOR||l===s.o3.PLATE_CARREE||l===s.o3.WGS84)&&(i===s.o3.WGS84||i===s.o3.CGCS2000&&l===s.o3.PLATE_CARREE||i===s.o3.SPHERICAL_ECEF||i===s.o3.WEB_MERCATOR)){const t=s.yw[i][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][l];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),i===s.o3.SPHERICAL_ECEF?function(t,e,n){a(t,e,n),(0,o.oL)(n,n)}(f*h[0],f*h[1],n):(0,o.ZX)(n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}return!1}function u(t){return t===s.o3.SPHERICAL_ECEF||t===s.o3.SPHERICAL_MARS_PCPF||t===s.o3.SPHERICAL_MOON_PCPF}const f=(0,r.EF)(1),h=(0,i.Su)(),p=(0,i.Su)()},82448:(t,e,n)=>{n.d(e,{_s:()=>l});var r=n(22080),o=n(56156),i=n(60544);const a=new o.c(r._),s=new o.c(r.IP),c=new o.c(r.Om);function l(t){const e=u.get(t);if(e)return e;let n=a;if(t)if(t===s)n=s;else if(t===c)n=c;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,i.cJ)(e)||(0,i.cJ)(r)?n=s:((0,i.C_)(e)||(0,i.C_)(r))&&(n=c);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===f?n=s:t===h&&(n=c)}}}return u.set(t,n),n}new o.c(r.MJ);const u=new Map,f=s.wkt.toUpperCase(),h=c.wkt.toUpperCase()},15688:(t,e,n)=>{n.d(e,{Gg:()=>o,cp:()=>i,lL:()=>a,mw:()=>s,qW:()=>c});var r=n(72008);function o(t,e=!1){return t<=r._?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function i(t){return((0,r.c7)(t)?t.length:t.byteLength/8)<=r._?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function s(t,e){for(let n=0;n<e.length;++n)t[n]=e[n];return t}function c(t){return Array.isArray(t)?new Float64Array(t):t}},51232:(t,e,n)=>{n.d(e,{c:()=>u});var r=n(41948),o=n(3856),i=n(40504),a=n(1580),s=(n(9456),n(66360),n(72052),n(9968)),c=n(12552);let l=class extends((0,o.q)(i.am)){constructor(t){super(t),this.type="georeferenced",this.origin=null}};(0,r._)([(0,s.G)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,r._)([(0,a.qq)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,r._)([(0,c.c)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l);const u=l},13708:(t,e,n)=>{n.d(e,{c:()=>f});var r=n(41948),o=n(3856),i=n(40504),a=n(1580),s=(n(9456),n(66360),n(72052),n(9968)),c=n(12552),l=n(62484);let u=class extends((0,o.q)(i.am)){constructor(t){super(t),this.type="local",this.origin=(0,l.Su)()}};(0,r._)([(0,s.G)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,c.c)("esri.geometry.support.MeshLocalVertexSpace")],u);const f=u},41104:(t,e,n)=>{n.d(e,{c:()=>M});var r,o=n(41948),i=n(40504),a=n(1580),s=(n(9456),n(66360),n(72052),n(12552)),c=n(15008),l=n(87104),u=n(41512),f=n(2620),h=n(98472),p=n(62484),m=n(66952);let d=r=class extends i.am{constructor(t){super(t),this.translation=(0,p.Su)(),this.rotationAxis=(0,p.eu)(m.up),this.rotationAngle=0,this.scale=(0,p.WK)(1,1,1)}get rotation(){return(0,m.eE)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.ct)((0,m.Yz)(t)),this.rotationAngle=(0,m.i4)(t)}get localMatrix(){const t=(0,l.Su)();return(0,u.yG)(g,(0,m.Yz)(this.rotation),(0,m.kX)(this.rotation)),(0,c.um)(t,g,this.translation,this.scale),t}get localMatrixInverse(){return(0,c.S_)((0,l.Su)(),this.localMatrix)}applyLocal(t,e){return(0,h.e)(e,t,this.localMatrix)}applyLocalInverse(t,e){return(0,h.e)(e,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&(0,c.sF)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,p.ct)(this.translation),rotationAxis:(0,p.ct)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,p.ct)(this.scale)};return new r(t)}};(0,o._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,o._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,o._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,o._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,o._)([(0,a.qq)()],d.prototype,"rotation",null),(0,o._)([(0,a.qq)()],d.prototype,"localMatrix",null),(0,o._)([(0,a.qq)()],d.prototype,"localMatrixInverse",null),d=r=(0,o._)([(0,s.c)("esri.geometry.support.MeshTransform")],d);const g=(0,f.Su)(),M=d},66952:(t,e,n)=>{n.d(e,{GA:()=>f,Jn:()=>u,Su:()=>c,Yz:()=>h,eE:()=>l,i4:()=>p,kX:()=>m,up:()=>d});var r=n(53648),o=n(41512),i=n(2620),a=n(98472),s=n(62484);function c(t=d){return[t[0],t[1],t[2],t[3]]}function l(t,e,n=c()){return(0,a.c)(n,t),n[3]=e,n}function u(t,e,n=c()){return(0,o.yG)(g,t,m(t)),(0,o.yG)(M,e,m(e)),(0,o.iW)(g,M,g),function(t,e){return t[3]=e,t}(n,(0,r.UB)((0,o.C0)(n,g)))}function f(t,e,n,r=c()){return l(s.UV,t,y),l(s.IR,e,_),l(s.wx,n,x),u(y,_,y),u(y,x,r),r}function h(t){return t}function p(t){return t[3]}function m(t){return(0,r.EF)(t[3])}n(37008);const d=[0,0,1,0],g=(0,i.Su)(),M=(0,i.Su)(),y=(c(),c()),_=c(),x=c()},23704:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(66360);const o=()=>r.c.getLogger("esri.views.3d.support.buffer.math")},58584:(t,e,n)=>{n.r(e),n.d(e,{default:()=>s});var r=n(9456),o=n(3024),i=n(21136),a=n(54828);class s{async createIndex(t,e){const n=new Array;if(!t.vertexAttributes?.position)return new o.U;const r=this._createMeshData(t),i=null!=e?await e.invoke("createIndexThread",r,{transferList:n}):this.createIndexThread(r).result;return this._createPooledRBush().fromJSON(i)}createIndexThread(t){const e=new Float64Array(t.position),n=this._createPooledRBush();return t.components?this._createIndexComponentsThread(n,e,t.components.map((t=>new Uint32Array(t)))):this._createIndexAllThread(n,e)}_createIndexAllThread(t,e){const n=new Array(e.length/9);let r=0;for(let t=0;t<e.length;t+=9)n[r++]=c(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}_createIndexComponentsThread(t,e,n){let r=0;for(const t of n)r+=t.length/3;const o=new Array(r);let i=0;for(const t of n)for(let n=0;n<t.length;n+=3)o[i++]=c(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(o),{result:t.toJSON()}}_createMeshData(t){const e=((0,i.k$)(t.vertexSpace)?(0,a._S)({position:t.vertexAttributes.position,normal:null,tangent:null},t.vertexSpace,t.transform,t.spatialReference).position:t.vertexAttributes.position).buffer;return!t.components||t.components.some((t=>!t.faces))?{position:e}:{position:e,components:t.components.map((t=>t.faces))}}_createPooledRBush(){return new o.U(9,(0,r.c)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}}function c(t,e,n,r){return{minX:Math.min(t[e],t[n],t[r]),maxX:Math.max(t[e],t[n],t[r]),minY:Math.min(t[e+1],t[n+1],t[r+1]),maxY:Math.max(t[e+1],t[n+1],t[r+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[r],t[r+1],t[r+2]]}}},71488:(t,e,n)=>{n.d(e,{Kk:()=>s,QL:()=>c,yO:()=>a});var r=n(26832),o=n(66360),i=n(21136);function a(t,e){return t.isGeographic||t.isWebMercator&&(e??!0)}function s(t,e){switch(t.type){case"georeferenced":return e.isGeographic;case"local":return e.isGeographic||e.isWebMercator}}function c(t,e,n,a){if(void 0!==a){(0,r.O2)(o.c.getLogger(t),"option: geographic",{replacement:"use mesh vertexSpace and spatial reference to control how operations are performed",version:"4.29",warnOnce:!0});const s="local"===e.type;if(!(0,i.k$)(e)||a===s)return n.isGeographic||n.isWebMercator&&a;o.c.getLogger(t).warnOnce(`Specifying the 'geographic' parameter (${a}) for a Mesh vertex space of type "${e.type}" is not supported. This parameter will be ignored.`)}return s(e,n)}},54828:(t,e,n)=>{n.d(e,{CE:()=>A,EX:()=>w,_0:()=>O,_S:()=>b,iS:()=>v,mC:()=>P,project:()=>B,qu:()=>F});var r=n(24296),o=n(68612),i=n(15008),a=n(87104),s=n(98472),c=n(62484),l=n(77556),u=n(60074),f=n(82448),h=n(51120),p=n(62880),m=n(15688),d=n(41104),g=n(21136),M=n(48952),y=n(71488),_=n(38496);function x(t,e,n){return(0,y.yO)(e.spatialReference,n?.geographic)?P(t,e,!1,n):function(t,e,n){const r=new Float64Array(t.position.length),o=t.position,i=e.x,a=e.y,s=e.z??0,c=O(n?n.unit:null,e.spatialReference);for(let t=0;t<o.length;t+=3)r[t]=o[t]*c+i,r[t+1]=o[t+1]*c+a,r[t+2]=o[t+2]*c+s;return{position:r,normal:t.normal,tangent:t.tangent}}(t,e,n)}function A(t,e=a.IJ){const{position:n,normal:r,tangent:o}=t;return{position:(0,M.a)(new Float64Array(n.length),n,e),normal:null!=r?(0,_.W4)(r,new Float32Array(r.length),e):null,tangent:null!=o?(0,_.AT)(o,new Float32Array(o.length),e):null}}function b(t,e,n,r){const{position:o,normal:i,tangent:a}=t;if(!(0,g.k$)(e))return{position:o,normal:i,tangent:a};const s=(0,g.mA)(e,r);return x(A(t,n?.localMatrix),s,{geographic:"local"===e.type})}function w(t,e,n){const r=(0,g.Al)(e,n),o=e.spatialReference,i=(0,g.k$)(r);if(!i)return{vertexAttributes:x(t,e,n),vertexSpace:r,transform:null};const{position:a,normal:s,tangent:c}=t,l=(0,y.Kk)(r,o);switch(r.type){case"georeferenced":return l?{vertexAttributes:P(t,e,i,n),vertexSpace:r,transform:null}:{vertexAttributes:{position:a,normal:s,tangent:c},vertexSpace:r,transform:new d.c};case"local":return{vertexAttributes:{position:a,normal:s,tangent:c},vertexSpace:r,transform:new d.c}}}function S(t,e,n){return(0,y.yO)(e.spatialReference,n?.geographic)?F(t,e,n):T(t,e,n)}function v(t,e,n,r,o){if(!(0,g.k$)(e))return S(t,r,o);const{spatialReference:i}=r,a=b(t,e,n,i);return r.equals((0,g.mA)(e,i))?T(a,r,o):S(a,r,o)}function B({positions:t,transform:e,vertexSpace:n,inSpatialReference:r,outSpatialReference:o,outPositions:l,localMode:d}){const g=n.origin??c.cX,y=null!=n.origin?e?.localMatrix??a.IJ:a.IJ;if("georeferenced"===n.type){const e=l??(0,m.Gg)(t.length);if((0,i.yK)(y,a.IJ)?(0,m.mw)(e,t):(0,M.a)(e,t,y),!(0,s.i)(g,c.cX)){const[t,n,r]=g;for(let o=0;o<e.length;o+=3)e[o]+=t,e[o+1]+=n,e[o+2]+=r}return(0,p.projectBuffer)(e,r,0,e,o,0,e.length/3),e}let _=r;const x=(0,f._s)(r);_=o.isWebMercator&&d||!(0,u.canProjectWithoutEngine)(r,x)?_:x,(0,h.y)(r,g,R,_),(0,i.iW)(R,R,y);const A=l??(0,m.Gg)(t.length);return(0,M.a)(A,t,R),(0,p.projectBuffer)(A,_,0,A,o,0,A.length/3),A}function P(t,e,n,r){const o=e.spatialReference,i=E(e,r,R),a=new Float64Array(t.position.length),s=function(t,e,n,r){(0,M.a)(r,t,e);const o=new Float64Array(t.length);return(0,_.o$)(r,o,n)}(t.position,i,o,a),c=(0,l.yy)(q,i),u=function(t,e,n,r,o){if(null==n)return null;const i=new Float32Array(n.length);return(0,M.b)(i,n,r),(0,_.QP)(i,t,e,o,i),i}(s,a,t.normal,c,o),f=function(t,e,n,r,o){if(null==n)return null;const i=new Float32Array(n.length);(0,M.b)(i,n,r,4);for(let t=3;t<i.length;t+=4)i[t]=n[t];return(0,_.Cr)(i,t,e,o,i),i}(s,a,t.tangent,c,o);if(n){const{x:t,y:n,z:r}=e;(0,M.t)(s,s,[-t,-n,-(r??0)])}return{position:s,normal:u,tangent:f}}function T(t,e,n){const r=new Float64Array(t.position.length),o=t.position,i=e.x,a=e.y,s=e.z??0,c=O(n?n.unit:null,e.spatialReference);for(let t=0;t<o.length;t+=3)r[t]=(o[t]-i)/c,r[t+1]=(o[t+1]-a)/c,r[t+2]=(o[t+2]-s)/c;return{position:r,normal:t.normal,tangent:t.tangent}}function F(t,e,n){const r=e.spatialReference;E(e,n,R);const o=(0,i.S_)(X,R),a=new Float64Array(t.position.length),s=function(t,e,n,r){const o=(0,_.K_)(t,e,r),i=new Float64Array(o.length);return(0,M.a)(i,o,n),i}(t.position,r,o,a),c=(0,l.yy)(q,o);return{position:s,normal:Y(t.normal,t.position,a,r,c),tangent:C(t.tangent,t.position,a,r,c)}}function E(t,e,n){(0,h.y)(t.spatialReference,[t.x,t.y,t.z??0],n,(0,f._s)(t.spatialReference));const r=O(e?e.unit:null,t.spatialReference);return(0,i.aU)(n,n,[r,r,r]),n}function Y(t,e,n,r,o){if(null==t)return null;const i=(0,_.cH)(t,e,n,r,new Float32Array(t.length));return(0,M.b)(i,i,o),i}function C(t,e,n,r,o){if(null==t)return null;const i=(0,_.GW)(t,e,n,r,new Float32Array(t.length));return(0,M.b)(i,i,o,4),i}function O(t,e){if(null==t)return 1;const n=(0,r.eg)(e);return 1/(0,r.ck)(n,"meters",t)}const R=(0,a.Su)(),X=(0,a.Su)(),q=(0,o.Su)()},38496:(t,e,n)=>{n.d(e,{AT:()=>b,Cr:()=>S,GW:()=>w,K_:()=>_,QP:()=>y,W4:()=>A,cH:()=>M,o$:()=>x});var r=n(66360),o=n(77556),i=n(68612),a=n(87104),s=n(98472),c=n(62484),l=n(82448),u=n(51120),f=n(62880),h=n(60544),p=n(29120),m=n(71004),d=n(48952);const g=()=>r.c.getLogger("esri.geometry.support.meshUtils.normalProjection");function M(t,e,n,r,o){return B(r)?(v(T.TO_PCPF,m.Yj.fromTypedArray(t),m.Ax.fromTypedArray(e),m.Ax.fromTypedArray(n),r,m.Yj.fromTypedArray(o)),o):(g().error("Cannot convert spatial reference to PCPF"),o)}function y(t,e,n,r,o){return B(r)?(v(T.FROM_PCPF,m.Yj.fromTypedArray(t),m.Ax.fromTypedArray(e),m.Ax.fromTypedArray(n),r,m.Yj.fromTypedArray(o)),o):(g().error("Cannot convert to spatial reference from PCPF"),o)}function _(t,e,n){return(0,f.projectBuffer)(t,e,0,n,(0,l._s)(e),0,t.length/3),n}function x(t,e,n){return(0,f.projectBuffer)(t,(0,l._s)(n),0,e,n,0,t.length/3),e}function A(t,e,n){return(0,o.yy)(O,n),(0,d.b)(e,t,O),(0,o.QT)(O)||(0,d.n)(e,e),e}function b(t,e,n){if((0,o.yy)(O,n),(0,d.b)(e,t,O,4),(0,o.QT)(O)||(0,d.n)(e,e,4),t!==e)for(let n=3;n<t.length;n+=4)e[n]=t[n];return e}function w(t,e,n,r,o){if(!B(r))return g().error("Cannot convert spatial reference to PCPF"),o;v(T.TO_PCPF,m.Yj.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),m.Ax.fromTypedArray(e),m.Ax.fromTypedArray(n),r,m.Yj.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT));for(let e=3;e<t.length;e+=4)o[e]=t[e];return o}function S(t,e,n,r,o){if(!B(r))return g().error("Cannot convert to spatial reference from PCPF"),o;v(T.FROM_PCPF,m.Yj.fromTypedArray(t,16),m.Ax.fromTypedArray(e),m.Ax.fromTypedArray(n),r,m.Yj.fromTypedArray(o,16));for(let e=3;e<t.length;e+=4)o[e]=t[e];return o}function v(t,e,n,r,i,a){if(!e)return;const c=n.count,f=(0,l._s)(i);if(P(i))for(let n=0;n<c;n++)r.getVec(n,E),e.getVec(n,Y),(0,u.y)(f,E,C,f),(0,o.kr)(O,C),t===T.FROM_PCPF&&(0,o.oL)(O,O),(0,s.t)(Y,Y,O),a.setVec(n,Y);else for(let i=0;i<c;i++){r.getVec(i,E),e.getVec(i,Y),(0,u.y)(f,E,C,f),(0,o.kr)(O,C);const c=(0,p.MB)(n.get(i,1));let l=Math.cos(c);t===T.TO_PCPF&&(l=1/l),O[0]*=l,O[1]*=l,O[2]*=l,O[3]*=l,O[4]*=l,O[5]*=l,t===T.FROM_PCPF&&(0,o.oL)(O,O),(0,s.t)(Y,Y,O),(0,s.n)(Y,Y),a.setVec(i,Y)}return a}function B(t){return P(t)||function(t){return t.isWebMercator}(t)}function P(t){return t.isWGS84||(0,h.Ub)(t)||(0,h.qg)(t)||(0,h.UB)(t)}var T,F;(F=T||(T={}))[F.TO_PCPF=0]="TO_PCPF",F[F.FROM_PCPF=1]="FROM_PCPF";const E=(0,c.Su)(),Y=(0,c.Su)(),C=(0,a.Su)(),O=(0,i.Su)()},21136:(t,e,n)=>{n.d(e,{Al:()=>p,GF:()=>m,k$:()=>f,mA:()=>h,mm:()=>d,wX:()=>u});var r=n(26832),o=n(66360),i=n(67776),a=n(51232),s=n(13708),c=n(48952);function l(){return o.c.getLogger("esri.geometry.Mesh")}function u(t){const{vertexSpace:e}=t;if(null!=e.origin)return t.clone();const{anchor:n}=t,r=n.clone(),o=new a.c({origin:[r.x,r.y,r.z]}),i=t.cloneWithVertexSpace(o),{position:s}=i.vertexAttributes;return i.vertexAttributes.position=(0,c.t)(new Float64Array(s.length),s,[-r.x,-r.y,-(r.z??0)]),i.vertexAttributesChanged(),i}function f(t){return null!=t.origin}function h(t,e){if(!f(t))return null;const[n,r,o]=t.origin;return new i.c({x:n,y:r,z:o,spatialReference:e})}function p(t,e){const{x:n,y:o,z:i,spatialReference:c}=t,u=[n,o,i??0];if(void 0!==e?.geographic){if((0,r.O2)(l(),"option: geographic",{replacement:"use vertexSpace option instead",version:"4.29",warnOnce:!0}),!e?.vertexSpace)return e?.geographic?new s.c({origin:u}):new a.c({origin:u});l().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")}if(!e?.vertexSpace)return c.isGeographic||c.isWebMercator?new s.c({origin:u}):new a.c({origin:u});switch(e.vertexSpace){case"local":return new s.c({origin:u});case"georeferenced":return new a.c({origin:u});case"georeferenced-absolute":return new a.c}}function m(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}function d(t,e){return"local"===t?new s.c({origin:e}):new a.c({origin:e})}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6248,8528,4828],{8528:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},85304:(t,e,n)=>{n.d(e,{q:()=>c});var r,o,i,a=n(8528),s={exports:{}};r=s,o=function(){function t(n,r,o,i,a){for(;i>o;){if(i-o>600){var s=i-o+1,c=r-o+1,l=Math.log(s),u=.5*Math.exp(2*l/3),f=.5*Math.sqrt(l*u*(s-u)/s)*(c-s/2<0?-1:1);t(n,r,Math.max(o,Math.floor(r-c*u/s+f)),Math.min(i,Math.floor(r+(s-c)*u/s+f)),a)}var h=n[r],p=o,m=i;for(e(n,o,r),a(n[i],h)>0&&e(n,o,i);p<m;){for(e(n,p,m),p++,m--;a(n[p],h)<0;)p++;for(;a(n[m],h)>0;)m--}0===a(n[o],h)?e(n,o,m):e(n,++m,i),m<=r&&(o=m+1),r<=m&&(i=m-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,o,i,a){t(e,r,o||0,i||e.length-1,a||n)}},void 0!==(i=o())&&(r.exports=i);const c=(0,a.g)(s.exports)},48952:(t,e,n)=>{n.d(e,{a:()=>i,b:()=>s,c:()=>a,d:()=>o,e:()=>f,f:()=>c,n:()=>h,s:()=>l,t:()=>u}),n(9456);var r=n(23704);function o(t,e,n){i(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function i(t,e,n,r=3,o=r){if(t.length/r!==Math.ceil(e.length/o))return t;const i=t.length/r,a=n[0],s=n[1],c=n[2],l=n[4],u=n[5],f=n[6],h=n[8],p=n[9],m=n[10],d=n[12],g=n[13],M=n[14];let y=0,_=0;for(let n=0;n<i;n++){const n=e[y],i=e[y+1],x=e[y+2];t[_]=a*n+l*i+h*x+d,t[_+1]=s*n+u*i+p*x+g,t[_+2]=c*n+f*i+m*x+M,y+=o,_+=r}return t}function a(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,o=3,i=o){if(t.length/o!==Math.ceil(e.length/i))return void(0,r.A)().error("source and destination buffers need to have the same number of elements");const a=t.length/o,s=n[0],c=n[1],l=n[2],u=n[3],f=n[4],h=n[5],p=n[6],m=n[7],d=n[8];let g=0,M=0;for(let n=0;n<a;n++){const n=e[g],r=e[g+1],a=e[g+2];t[M]=s*n+u*r+p*a,t[M+1]=c*n+f*r+m*a,t[M+2]=l*n+h*r+d*a,g+=i,M+=o}}function c(t,e,n){l(t.typedBuffer,e,n,t.typedBufferStride)}function l(t,e,n,r=3){const o=Math.min(t.length/r,e.count),i=e.typedBuffer,a=e.typedBufferStride;let s=0,c=0;for(let e=0;e<o;e++)t[c]=n*i[s],t[c+1]=n*i[s+1],t[c+2]=n*i[s+2],s+=a,c+=r}function u(t,e,n,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(e.length/o))return t;let a=0,s=0;for(let c=0;c<i;c++)t[s]=e[a]+n[0],t[s+1]=e[a+1]+n[1],t[s+2]=e[a+2]+n[2],a+=o,s+=r;return t}function f(t,e){h(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function h(t,e,n=3,r=n){const o=Math.min(t.length/n,e.length/r);let i=0,a=0;for(let s=0;s<o;s++){const o=e[i],s=e[i+1],c=e[i+2],l=o*o+s*s+c*c;if(l>0){const e=1/Math.sqrt(l);t[a]=e*o,t[a+1]=e*s,t[a+2]=e*c}i+=r,a+=n}}Object.freeze(Object.defineProperty({__proto__:null,normalize:h,normalizeView:f,scale:l,scaleView:c,shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),o=t.typedBuffer,i=t.typedBufferStride,a=e.typedBuffer,s=e.typedBufferStride;let c=0,l=0;for(let t=0;t<r;t++)o[l]=a[c]>>n,o[l+1]=a[c+1]>>n,o[l+2]=a[c+2]>>n,c+=s,l+=i},transformMat3:s,transformMat3View:a,transformMat4:i,transformMat4View:o,translate:u},Symbol.toStringTag,{value:"Module"}))},3856:(t,e,n)=>{n.d(e,{m:()=>f,q:()=>u});var r=n(41948),o=n(43780),i=(n(9456),n(62088)),a=(n(66360),n(70680)),s=n(71448),c=n(20916),l=n(12552);const u=t=>{let e=class extends t{clone(){const t=(0,c.m6)(this);(0,a.EN)(t,"unable to clone instance of non-accessor class");const e=t.metadata,n=t.store,r={},o=new Map;for(const t in e){const a=e[t],c=n?.originOf(t),l=a.clonable;if(a.readOnly||!1===l||c!==s.sT.USER&&c!==s.sT.DEFAULTS&&c!==s.sT.WEB_MAP&&c!==s.sT.WEB_SCENE)continue;const u=this[t];let f=null;f="function"==typeof l?l(u):"reference"===l?u:(0,i.gx)(u),null!=u&&null==f||(c===s.sT.DEFAULTS?o.set(t,f):r[t]=f)}const l=new(0,Object.getPrototypeOf(this).constructor)(r);if(o.size){const t=(0,c.m6)(l)?.store;if(t)for(const[e,n]of o)t.set(e,n,s.sT.DEFAULTS)}return l}};return e=(0,r._)([(0,l.c)("esri.core.Clonable")],e),e};let f=class extends(u(o.c)){};f=(0,r._)([(0,l.c)("esri.core.Clonable")],f)},9592:(t,e,n)=>{n.d(e,{n:()=>o});var r=n(50504);class o extends r.g{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},68612:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,i,a,s,c){return[t,e,n,r,o,i,a,s,c]}n.d(e,{IJ:()=>i,Su:()=>r,WK:()=>o});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},87104:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{IJ:()=>i,Su:()=>r,ct:()=>o});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,createView:function(t,e){return new Float64Array(t,e,16)},fromValues:function(t,e,n,r,o,i,a,s,c,l,u,f,h,p,m,d){return[t,e,n,r,o,i,a,s,c,l,u,f,h,p,m,d]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{IJ:()=>i,Su:()=>r,ct:()=>o});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,createView:function(t,e){return new Float64Array(t,e,4)},fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,e,n)=>{n.d(e,{KU:()=>f,QT:()=>m,S_:()=>s,WO:()=>i,_7:()=>c,aU:()=>u,iW:()=>l,kr:()=>o,oL:()=>a,yy:()=>h});var r=n(47364);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,n,r,o,i,a,s,c,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=s,t[7]=c,t[8]=l,t}function a(t,e){if(t===e){const n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function s(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=u*a-s*l,h=-u*i+s*c,p=l*i-a*c;let m=n*f+r*h+o*p;return m?(m=1/m,t[0]=f*m,t[1]=(-u*r+o*l)*m,t[2]=(s*r-o*a)*m,t[3]=h*m,t[4]=(u*n-o*c)*m,t[5]=(-s*n+o*i)*m,t[6]=p*m,t[7]=(-l*n+r*c)*m,t[8]=(a*n-r*i)*m,t):null}function c(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8];return t[0]=a*u-s*l,t[1]=o*l-r*u,t[2]=r*s-o*a,t[3]=s*c-i*u,t[4]=n*u-o*c,t[5]=o*i-n*s,t[6]=i*l-a*c,t[7]=r*c-n*l,t[8]=n*a-r*i,t}function l(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],h=n[0],p=n[1],m=n[2],d=n[3],g=n[4],M=n[5],y=n[6],_=n[7],x=n[8];return t[0]=h*r+p*a+m*l,t[1]=h*o+p*s+m*u,t[2]=h*i+p*c+m*f,t[3]=d*r+g*a+M*l,t[4]=d*o+g*s+M*u,t[5]=d*i+g*c+M*f,t[6]=y*r+_*a+x*l,t[7]=y*o+_*s+x*u,t[8]=y*i+_*c+x*f,t}function u(t,e,n){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t}function f(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=n+n,s=r+r,c=o+o,l=n*a,u=r*a,f=r*s,h=o*a,p=o*s,m=o*c,d=i*a,g=i*s,M=i*c;return t[0]=1-f-m,t[3]=u-M,t[6]=h+g,t[1]=u+M,t[4]=1-l-m,t[7]=p-d,t[2]=h-g,t[5]=p+d,t[8]=1-l-f,t}function h(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],h=e[10],p=e[11],m=e[12],d=e[13],g=e[14],M=e[15],y=n*s-r*a,_=n*c-o*a,x=n*l-i*a,A=r*c-o*s,b=r*l-i*s,w=o*l-i*c,S=u*d-f*m,v=u*g-h*m,B=u*M-p*m,P=f*g-h*d,T=f*M-p*d,F=h*M-p*g;let E=y*F-_*T+x*P+A*B-b*v+w*S;return E?(E=1/E,t[0]=(s*F-c*T+l*P)*E,t[1]=(c*B-a*F-l*v)*E,t[2]=(a*T-s*B+l*S)*E,t[3]=(o*T-r*F-i*P)*E,t[4]=(n*F-o*B+i*v)*E,t[5]=(r*B-n*T-i*S)*E,t[6]=(d*w-g*b+M*A)*E,t[7]=(g*x-m*w-M*_)*E,t[8]=(m*b-d*x+M*y)*E,t):null}function p(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function m(t){const e=(0,r.Au)(),n=t[0],o=t[1],i=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],f=t[8];return Math.abs(1-(n*n+a*a+l*l))<=e&&Math.abs(1-(o*o+s*s+u*u))<=e&&Math.abs(1-(i*i+c*c+f*f))<=e}const d=l,g=p;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:c,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],a=t[5],s=t[6],c=t[7],l=t[8];return e*(l*i-a*c)+n*(-l*o+a*s)+r*(c*o-i*s)},equals:function(t,e){const n=t[0],o=t[1],i=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],f=t[8],h=e[0],p=e[1],m=e[2],d=e[3],g=e[4],M=e[5],y=e[6],_=e[7],x=e[8],A=(0,r.Au)();return Math.abs(n-h)<=A*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(o-p)<=A*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(i-m)<=A*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(a-d)<=A*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(s-g)<=A*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(c-M)<=A*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(l-y)<=A*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-_)<=A*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(f-x)<=A*Math.max(1,Math.abs(f),Math.abs(x))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:m,mul:d,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:h,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[4],a=e[5],s=e[6],c=e[8],l=e[9],u=e[10],f=u*a-s*l,h=-u*i+s*c,p=l*i-a*c,m=n*f+r*h+o*p;if(!m)return null;const d=1/m;return t[0]=f*d,t[1]=(-u*r+o*l)*d,t[2]=(s*r-o*a)*d,t[3]=h*d,t[4]=(u*n-o*c)*d,t[5]=(-s*n+o*i)*d,t[6]=p*d,t[7]=(-l*n+r*c)*d,t[8]=(a*n-r*i)*d,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],h=Math.sin(n),p=Math.cos(n);return t[0]=p*r+h*a,t[1]=p*o+h*s,t[2]=p*i+h*c,t[3]=p*a-h*r,t[4]=p*s-h*o,t[5]=p*c-h*i,t[6]=l,t[7]=u,t[8]=f,t},scale:u,scaleByVec2:function(t,e,n){const r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:g,subtract:p,translate:function(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],h=n[0],p=n[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=s,t[5]=c,t[6]=h*r+p*a+l,t[7]=h*o+p*s+u,t[8]=h*i+p*c+f,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},41512:(t,e,n)=>{n.d(e,{C0:()=>u,WO:()=>M,Wu:()=>d,fO:()=>p,iW:()=>f,sF:()=>T,yG:()=>l});var r=n(68612),o=n(2620),i=n(62484),a=n(47364),s=n(98472),c=n(74784);function l(t,e,n){n*=.5;const r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function u(t,e){const n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>(0,a.Au)()?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function f(t,e,n){const r=e[0],o=e[1],i=e[2],a=e[3],s=n[0],c=n[1],l=n[2],u=n[3];return t[0]=r*u+a*s+o*l-i*c,t[1]=o*u+a*c+i*s-r*l,t[2]=i*u+a*l+r*c-o*s,t[3]=a*u-r*s-o*c-i*l,t}function h(t,e,n,r){const o=e[0],i=e[1],s=e[2],c=e[3];let l,u,f,h,p,m=n[0],d=n[1],g=n[2],M=n[3];return u=o*m+i*d+s*g+c*M,u<0&&(u=-u,m=-m,d=-d,g=-g,M=-M),1-u>(0,a.Au)()?(l=Math.acos(u),f=Math.sin(l),h=Math.sin((1-r)*l)/f,p=Math.sin(r*l)/f):(h=1-r,p=r),t[0]=h*o+p*m,t[1]=h*i+p*d,t[2]=h*s+p*g,t[3]=h*c+p*M,t}function p(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function m(t,e){const n=e[0]+e[4]+e[8];let r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[3*n+n]&&(n=2);const o=(n+1)%3,i=(n+2)%3;r=Math.sqrt(e[3*n+n]-e[3*o+o]-e[3*i+i]+1),t[n]=.5*r,r=.5/r,t[3]=(e[3*o+i]-e[3*i+o])*r,t[o]=(e[3*o+n]+e[3*n+o])*r,t[i]=(e[3*i+n]+e[3*n+i])*r}return t}function d(t,e,n,r){const o=.5*Math.PI/180;e*=o,n*=o,r*=o;const i=Math.sin(e),a=Math.cos(e),s=Math.sin(n),c=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return t[0]=i*c*u-a*s*l,t[1]=a*s*u+i*c*l,t[2]=a*c*l-i*s*u,t[3]=a*c*u+i*s*l,t}const g=c.c,M=c.s,y=c.g,_=f,x=c.d,A=c.h,b=c.l,w=c.i,S=w,v=c.j,B=v,P=c.n,T=c.a,F=c.e,E=(0,i.Su)(),Y=(0,i.WK)(1,0,0),C=(0,i.WK)(0,1,0),O=(0,o.Su)(),R=(0,o.Su)(),X=(0,r.Su)();Object.freeze(Object.defineProperty({__proto__:null,add:y,calculateW:function(t,e){const n=e[0],r=e[1],o=e[2];return t[0]=n,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-o*o)),t},conjugate:p,copy:g,dot:A,equals:F,exactEquals:T,fromEuler:d,fromMat3:m,getAxisAngle:u,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],a=n*n+r*r+o*o+i*i,s=a?1/a:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-o*s,t[3]=i*s,t},len:S,length:w,lerp:b,mul:_,multiply:f,normalize:P,random:function(t){const e=a.QR,n=e(),r=e(),o=e(),i=Math.sqrt(1-n),s=Math.sqrt(n);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=s*Math.sin(2*Math.PI*o),t[3]=s*Math.cos(2*Math.PI*o),t},rotateX:function(t,e,n){n*=.5;const r=e[0],o=e[1],i=e[2],a=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*s,t[1]=o*c+i*s,t[2]=i*c-o*s,t[3]=a*c-r*s,t},rotateY:function(t,e,n){n*=.5;const r=e[0],o=e[1],i=e[2],a=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c-i*s,t[1]=o*c+a*s,t[2]=i*c+r*s,t[3]=a*c-o*s,t},rotateZ:function(t,e,n){n*=.5;const r=e[0],o=e[1],i=e[2],a=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*s,t[1]=o*c-r*s,t[2]=i*c+a*s,t[3]=a*c-i*s,t},rotationTo:function(t,e,n){const r=(0,s.k)(e,n);return r<-.999999?((0,s.b)(E,Y,e),(0,s.D)(E)<1e-6&&(0,s.b)(E,C,e),(0,s.n)(E,E),l(t,E,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.b)(E,e,n),t[0]=E[0],t[1]=E[1],t[2]=E[2],t[3]=1+r,P(t,t))},scale:x,set:M,setAxes:function(t,e,n,r){const o=X;return o[0]=n[0],o[3]=n[1],o[6]=n[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-e[0],o[5]=-e[1],o[8]=-e[2],P(t,m(t,o))},setAxisAngle:l,slerp:h,sqlerp:function(t,e,n,r,o,i){return h(O,e,o,i),h(R,n,r,i),h(t,O,R,2*i*(1-i)),t},sqrLen:B,squaredLength:v,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},3024:(t,e,n)=>{n.d(e,{U:()=>a});var r=n(92400),o=n(24680),i=n(85304);class a{constructor(t=9,e){this._compareMinX=u,this._compareMinY=f,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),_.prune(),x.prune(),A.prune(),b.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(M(t,n))for(_.clear();n;){for(let o=0,i=n.children.length;o<i;o++){const i=n.children[o],a=n.leaf?r(i):i;M(t,a)&&(n.leaf?e(i):g(t,a)?this._all(i,e):_.push(i))}n=_.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!M(t,e))return!1;for(_.clear();e;){for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],i=e.leaf?n(o):o;if(M(t,i)){if(e.leaf||g(t,i))return!0;_.push(o)}}e=_.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new v([]),this}remove(t){if(!t)return this;let e,n=this._data,o=null,i=0,a=!1;const s=this._toBBox(t);for(A.clear(),b.clear();n||A.length>0;){if(n||(n=A.pop(),o=A.data[A.length-1],i=b.pop()??0,a=!0),n.leaf&&(e=(0,r.IP)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),A.push(n),this._condense(A),this;a||n.leaf||!g(n,s)?o?(i++,n=o.children[i],a=!1):n=null:(A.push(n),b.push(i),i=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(x.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else x.pushArray(n.children);n=x.pop()??null}}_build(t,e,n,r){const o=n-e+1;let i=this._maxEntries;if(o<=i){const r=new v(t.slice(e,n+1));return s(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const a=new B([]);a.height=r;const c=Math.ceil(o/i),l=c*Math.ceil(Math.sqrt(i));y(t,e,n,l,this._compareMinX);for(let o=e;o<=n;o+=l){const e=Math.min(o+l-1,n);y(t,o,e,c,this._compareMinY);for(let n=o;n<=e;n+=c){const o=Math.min(n+c-1,e);a.children.push(this._build(t,n,o,r-1))}}return s(a,this._toBBox),a}_chooseSubtree(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,o=1/0;for(let i=0,a=e.children.length;i<a;i++){const a=e.children[i],s=h(a),c=m(t,a)-s;c<o?(o=c,r=s<r?s:r,n=a):c===o&&s<r&&(r=s,n=a)}e=n||e.children[0]}return e}_insert(t,e,n){const r=this._toBBox,o=n?t:r(t);A.clear();const i=this._chooseSubtree(o,this._data,e,A);for(i.children.push(t),l(i,o);e>=0&&A.data[e].children.length>this._maxEntries;)this._split(A,e),e--;this._adjustParentBBoxes(o,A,e)}_split(t,e){const n=t.data[e],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);const i=this._chooseSplitIndex(n,o,r);if(!i)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const a=n.children.splice(i,n.children.length-i),c=n.leaf?new v(a):new B(a);c.height=n.height,s(n,this._toBBox),s(c,this._toBBox),e?t.data[e-1].children.push(c):this._splitRoot(n,c)}_splitRoot(t,e){this._data=new B([t,e]),this._data.height=t.height+1,s(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,o,i;r=o=1/0;for(let a=e;a<=n-e;a++){const e=c(t,0,a,this._toBBox),s=c(t,a,n,this._toBBox),l=d(e,s),u=h(e)+h(s);l<r?(r=l,i=a,o=u<o?u:o):l===r&&u<o&&(o=u,i=a)}return i}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:u,o=t.leaf?this._compareMinY:f;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,o)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const o=this._toBBox,i=c(t,0,e,o),a=c(t,n-e,n,o);let s=p(i)+p(a);for(let r=e;r<n-e;r++){const e=t.children[r];l(i,t.leaf?o(e):e),s+=p(i)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];l(a,t.leaf?o(e):e),s+=p(a)}return s}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)l(e.data[r],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const o=t.data[e-1],i=o.children;i.splice((0,r.IP)(i,n,i.length,o.indexHint),1)}else this.clear();else s(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function s(t,e){c(t,0,t.children.length,e,t)}function c(t,e,n,r,o){o||(o=new v([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,a=e;a<n;a++)i=t.children[a],l(o,t.leaf?r(i):i);return o}function l(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function u(t,e){return t.minX-e.minX}function f(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function p(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function d(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),o=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,o-n)*Math.max(0,i-r)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function M(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function y(t,e,n,r,o){const a=[e,n];for(;a.length;){const e=a.pop(),n=a.pop();if(e-n<=r)continue;const s=n+Math.ceil((e-n)/r/2)*r;(0,i.q)(t,s,n,e,o),a.push(n,s,s,e)}}const _=new o.c,x=new o.c,A=new o.c,b=new o.c({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new r.is}}class v extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class B extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},51120:(t,e,n)=>{n.d(e,{y:()=>l});var r=n(53648),o=n(15008),i=n(62484);function a(t,e,n){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(e),a=Math.cos(e),s=n;return s[0]=-r,s[4]=-i*o,s[8]=a*o,s[12]=0,s[1]=o,s[5]=-i*r,s[9]=a*r,s[13]=0,s[2]=0,s[6]=a,s[10]=i,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=n(38380),c=n(60544);function l(t,e,n,r){if(null==t||null==r)return!1;const i=(0,s.Se)(t,s.Wy),l=(0,s.Se)(r,s.mq);if(i===l&&!u(l)&&(i!==s.o3.UNKNOWN||(0,c.yK)(t,r)))return(0,o.mu)(n,e),!0;if(u(l)){const t=s.yw[i][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][l];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),a(f*h[0],f*h[1],n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}if((l===s.o3.WEB_MERCATOR||l===s.o3.PLATE_CARREE||l===s.o3.WGS84)&&(i===s.o3.WGS84||i===s.o3.CGCS2000&&l===s.o3.PLATE_CARREE||i===s.o3.SPHERICAL_ECEF||i===s.o3.WEB_MERCATOR)){const t=s.yw[i][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][l];return null!=t&&null!=r&&(t(e,0,h,0),r(h,0,p,0),i===s.o3.SPHERICAL_ECEF?function(t,e,n){a(t,e,n),(0,o.oL)(n,n)}(f*h[0],f*h[1],n):(0,o.ZX)(n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}return!1}function u(t){return t===s.o3.SPHERICAL_ECEF||t===s.o3.SPHERICAL_MARS_PCPF||t===s.o3.SPHERICAL_MOON_PCPF}const f=(0,r.EF)(1),h=(0,i.Su)(),p=(0,i.Su)()},82448:(t,e,n)=>{n.d(e,{_s:()=>l});var r=n(22080),o=n(56156),i=n(60544);const a=new o.c(r._),s=new o.c(r.IP),c=new o.c(r.Om);function l(t){const e=u.get(t);if(e)return e;let n=a;if(t)if(t===s)n=s;else if(t===c)n=c;else{const e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,i.cJ)(e)||(0,i.cJ)(r)?n=s:((0,i.C_)(e)||(0,i.C_)(r))&&(n=c);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===f?n=s:t===h&&(n=c)}}}return u.set(t,n),n}new o.c(r.MJ);const u=new Map,f=s.wkt.toUpperCase(),h=c.wkt.toUpperCase()},15688:(t,e,n)=>{n.d(e,{Gg:()=>o,cp:()=>i,lL:()=>a,mw:()=>s,qW:()=>c});var r=n(72008);function o(t,e=!1){return t<=r._?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function i(t){return((0,r.c7)(t)?t.length:t.byteLength/8)<=r._?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function s(t,e){for(let n=0;n<e.length;++n)t[n]=e[n];return t}function c(t){return Array.isArray(t)?new Float64Array(t):t}},51232:(t,e,n)=>{n.d(e,{c:()=>u});var r=n(41948),o=n(3856),i=n(40504),a=n(1580),s=(n(9456),n(66360),n(72052),n(9968)),c=n(12552);let l=class extends((0,o.q)(i.am)){constructor(t){super(t),this.type="georeferenced",this.origin=null}};(0,r._)([(0,s.G)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,r._)([(0,a.qq)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,r._)([(0,c.c)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l);const u=l},13708:(t,e,n)=>{n.d(e,{c:()=>f});var r=n(41948),o=n(3856),i=n(40504),a=n(1580),s=(n(9456),n(66360),n(72052),n(9968)),c=n(12552),l=n(62484);let u=class extends((0,o.q)(i.am)){constructor(t){super(t),this.type="local",this.origin=(0,l.Su)()}};(0,r._)([(0,s.G)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,c.c)("esri.geometry.support.MeshLocalVertexSpace")],u);const f=u},41104:(t,e,n)=>{n.d(e,{c:()=>M});var r,o=n(41948),i=n(40504),a=n(1580),s=(n(9456),n(66360),n(72052),n(12552)),c=n(15008),l=n(87104),u=n(41512),f=n(2620),h=n(98472),p=n(62484),m=n(66952);let d=r=class extends i.am{constructor(t){super(t),this.translation=(0,p.Su)(),this.rotationAxis=(0,p.eu)(m.up),this.rotationAngle=0,this.scale=(0,p.WK)(1,1,1)}get rotation(){return(0,m.eE)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.ct)((0,m.Yz)(t)),this.rotationAngle=(0,m.i4)(t)}get localMatrix(){const t=(0,l.Su)();return(0,u.yG)(g,(0,m.Yz)(this.rotation),(0,m.kX)(this.rotation)),(0,c.um)(t,g,this.translation,this.scale),t}get localMatrixInverse(){return(0,c.S_)((0,l.Su)(),this.localMatrix)}applyLocal(t,e){return(0,h.e)(e,t,this.localMatrix)}applyLocalInverse(t,e){return(0,h.e)(e,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&(0,c.sF)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,p.ct)(this.translation),rotationAxis:(0,p.ct)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,p.ct)(this.scale)};return new r(t)}};(0,o._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,o._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,o._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,o._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,o._)([(0,a.qq)()],d.prototype,"rotation",null),(0,o._)([(0,a.qq)()],d.prototype,"localMatrix",null),(0,o._)([(0,a.qq)()],d.prototype,"localMatrixInverse",null),d=r=(0,o._)([(0,s.c)("esri.geometry.support.MeshTransform")],d);const g=(0,f.Su)(),M=d},66952:(t,e,n)=>{n.d(e,{GA:()=>p,Gc:()=>f,Su:()=>l,Yz:()=>m,eE:()=>u,i4:()=>d,kX:()=>g,up:()=>y});var r=n(53648),o=n(15008),i=n(41512),a=n(2620),s=n(98472),c=n(62484);function l(t=y){return[t[0],t[1],t[2],t[3]]}function u(t,e,n=l()){return(0,s.c)(n,t),n[3]=e,n}function f(t,e=l()){const n=(0,o.ir)(_,t);return M(e,(0,r.UB)((0,i.C0)(e,n))),e}function h(t,e,n=l()){return(0,i.yG)(_,t,g(t)),(0,i.yG)(x,e,g(e)),(0,i.iW)(_,x,_),M(n,(0,r.UB)((0,i.C0)(n,_)))}function p(t,e,n,r=l()){return u(c.UV,t,A),u(c.IR,e,b),u(c.wx,n,w),h(A,b,A),h(A,w,r),r}function m(t){return t}function d(t){return t[3]}function g(t){return(0,r.EF)(t[3])}function M(t,e){return t[3]=e,t}n(37008);const y=[0,0,1,0],_=(0,a.Su)(),x=(0,a.Su)(),A=(l(),l()),b=l(),w=l()},23704:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(66360);const o=()=>r.c.getLogger("esri.views.3d.support.buffer.math")},58584:(t,e,n)=>{n.r(e),n.d(e,{default:()=>s});var r=n(9456),o=n(3024),i=n(21136),a=n(54828);class s{async createIndex(t,e){const n=new Array;if(!t.vertexAttributes?.position)return new o.U;const r=this._createMeshData(t),i=null!=e?await e.invoke("createIndexThread",r,{transferList:n}):this.createIndexThread(r).result;return this._createPooledRBush().fromJSON(i)}createIndexThread(t){const e=new Float64Array(t.position),n=this._createPooledRBush();return t.components?this._createIndexComponentsThread(n,e,t.components.map((t=>new Uint32Array(t)))):this._createIndexAllThread(n,e)}_createIndexAllThread(t,e){const n=new Array(e.length/9);let r=0;for(let t=0;t<e.length;t+=9)n[r++]=c(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}_createIndexComponentsThread(t,e,n){let r=0;for(const t of n)r+=t.length/3;const o=new Array(r);let i=0;for(const t of n)for(let n=0;n<t.length;n+=3)o[i++]=c(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(o),{result:t.toJSON()}}_createMeshData(t){const e=((0,i.k$)(t.vertexSpace)?(0,a._S)({position:t.vertexAttributes.position,normal:null,tangent:null},t.vertexSpace,t.transform,t.spatialReference).position:t.vertexAttributes.position).buffer;return!t.components||t.components.some((t=>!t.faces))?{position:e}:{position:e,components:t.components.map((t=>t.faces))}}_createPooledRBush(){return new o.U(9,(0,r.c)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}}function c(t,e,n,r){return{minX:Math.min(t[e],t[n],t[r]),maxX:Math.max(t[e],t[n],t[r]),minY:Math.min(t[e+1],t[n+1],t[r+1]),maxY:Math.max(t[e+1],t[n+1],t[r+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[r],t[r+1],t[r+2]]}}},71488:(t,e,n)=>{n.d(e,{Kk:()=>s,QL:()=>c,yO:()=>a});var r=n(26832),o=n(66360),i=n(21136);function a(t,e){return t.isGeographic||t.isWebMercator&&(e??!0)}function s(t,e){switch(t.type){case"georeferenced":return e.isGeographic;case"local":return e.isGeographic||e.isWebMercator}}function c(t,e,n,a){if(void 0!==a){(0,r.O2)(o.c.getLogger(t),"option: geographic",{replacement:"use mesh vertexSpace and spatial reference to control how operations are performed",version:"4.29",warnOnce:!0});const s="local"===e.type;if(!(0,i.k$)(e)||a===s)return n.isGeographic||n.isWebMercator&&a;o.c.getLogger(t).warnOnce(`Specifying the 'geographic' parameter (${a}) for a Mesh vertex space of type "${e.type}" is not supported. This parameter will be ignored.`)}return s(e,n)}},54828:(t,e,n)=>{n.d(e,{CE:()=>A,EX:()=>w,_0:()=>O,_S:()=>b,iS:()=>v,mC:()=>P,project:()=>B,qu:()=>F});var r=n(24296),o=n(68612),i=n(15008),a=n(87104),s=n(98472),c=n(62484),l=n(77556),u=n(60074),f=n(82448),h=n(51120),p=n(62880),m=n(15688),d=n(41104),g=n(21136),M=n(48952),y=n(71488),_=n(38496);function x(t,e,n){return(0,y.yO)(e.spatialReference,n?.geographic)?P(t,e,!1,n):function(t,e,n){const r=new Float64Array(t.position.length),o=t.position,i=e.x,a=e.y,s=e.z??0,c=O(n?n.unit:null,e.spatialReference);for(let t=0;t<o.length;t+=3)r[t]=o[t]*c+i,r[t+1]=o[t+1]*c+a,r[t+2]=o[t+2]*c+s;return{position:r,normal:t.normal,tangent:t.tangent}}(t,e,n)}function A(t,e=a.IJ){const{position:n,normal:r,tangent:o}=t;return{position:(0,M.a)(new Float64Array(n.length),n,e),normal:null!=r?(0,_.W4)(r,new Float32Array(r.length),e):null,tangent:null!=o?(0,_.AT)(o,new Float32Array(o.length),e):null}}function b(t,e,n,r){const{position:o,normal:i,tangent:a}=t;if(!(0,g.k$)(e))return{position:o,normal:i,tangent:a};const s=(0,g.mA)(e,r);return x(A(t,n?.localMatrix),s,{geographic:"local"===e.type})}function w(t,e,n){const r=(0,g.Al)(e,n),o=e.spatialReference,i=(0,g.k$)(r);if(!i)return{vertexAttributes:x(t,e,n),vertexSpace:r,transform:null};const{position:a,normal:s,tangent:c}=t,l=(0,y.Kk)(r,o);switch(r.type){case"georeferenced":return l?{vertexAttributes:P(t,e,i,n),vertexSpace:r,transform:null}:{vertexAttributes:{position:a,normal:s,tangent:c},vertexSpace:r,transform:new d.c};case"local":return{vertexAttributes:{position:a,normal:s,tangent:c},vertexSpace:r,transform:new d.c}}}function S(t,e,n){return(0,y.yO)(e.spatialReference,n?.geographic)?F(t,e,n):T(t,e,n)}function v(t,e,n,r,o){if(!(0,g.k$)(e))return S(t,r,o);const{spatialReference:i}=r,a=b(t,e,n,i);return r.equals((0,g.mA)(e,i))?T(a,r,o):S(a,r,o)}function B({positions:t,transform:e,vertexSpace:n,inSpatialReference:r,outSpatialReference:o,outPositions:l,localMode:d}){const g=n.origin??c.cX,y=null!=n.origin?e?.localMatrix??a.IJ:a.IJ;if("georeferenced"===n.type){const e=l??(0,m.Gg)(t.length);if((0,i.yK)(y,a.IJ)?(0,m.mw)(e,t):(0,M.a)(e,t,y),!(0,s.j)(g,c.cX)){const[t,n,r]=g;for(let o=0;o<e.length;o+=3)e[o]+=t,e[o+1]+=n,e[o+2]+=r}return(0,p.projectBuffer)(e,r,0,e,o,0,e.length/3),e}let _=r;const x=(0,f._s)(r);_=o.isWebMercator&&d||!(0,u.canProjectWithoutEngine)(r,x)?_:x,(0,h.y)(r,g,R,_),(0,i.iW)(R,R,y);const A=l??(0,m.Gg)(t.length);return(0,M.a)(A,t,R),(0,p.projectBuffer)(A,_,0,A,o,0,A.length/3),A}function P(t,e,n,r){const o=e.spatialReference,i=E(e,r,R),a=new Float64Array(t.position.length),s=function(t,e,n,r){(0,M.a)(r,t,e);const o=new Float64Array(t.length);return(0,_.o$)(r,o,n)}(t.position,i,o,a),c=(0,l.yy)(q,i),u=function(t,e,n,r,o){if(null==n)return null;const i=new Float32Array(n.length);return(0,M.b)(i,n,r),(0,_.QP)(i,t,e,o,i),i}(s,a,t.normal,c,o),f=function(t,e,n,r,o){if(null==n)return null;const i=new Float32Array(n.length);(0,M.b)(i,n,r,4);for(let t=3;t<i.length;t+=4)i[t]=n[t];return(0,_.Cr)(i,t,e,o,i),i}(s,a,t.tangent,c,o);if(n){const{x:t,y:n,z:r}=e;(0,M.t)(s,s,[-t,-n,-(r??0)])}return{position:s,normal:u,tangent:f}}function T(t,e,n){const r=new Float64Array(t.position.length),o=t.position,i=e.x,a=e.y,s=e.z??0,c=O(n?n.unit:null,e.spatialReference);for(let t=0;t<o.length;t+=3)r[t]=(o[t]-i)/c,r[t+1]=(o[t+1]-a)/c,r[t+2]=(o[t+2]-s)/c;return{position:r,normal:t.normal,tangent:t.tangent}}function F(t,e,n){const r=e.spatialReference;E(e,n,R);const o=(0,i.S_)(X,R),a=new Float64Array(t.position.length),s=function(t,e,n,r){const o=(0,_.K_)(t,e,r),i=new Float64Array(o.length);return(0,M.a)(i,o,n),i}(t.position,r,o,a),c=(0,l.yy)(q,o);return{position:s,normal:Y(t.normal,t.position,a,r,c),tangent:C(t.tangent,t.position,a,r,c)}}function E(t,e,n){(0,h.y)(t.spatialReference,[t.x,t.y,t.z??0],n,(0,f._s)(t.spatialReference));const r=O(e?e.unit:null,t.spatialReference);return(0,i.aU)(n,n,[r,r,r]),n}function Y(t,e,n,r,o){if(null==t)return null;const i=(0,_.cH)(t,e,n,r,new Float32Array(t.length));return(0,M.b)(i,i,o),i}function C(t,e,n,r,o){if(null==t)return null;const i=(0,_.GW)(t,e,n,r,new Float32Array(t.length));return(0,M.b)(i,i,o,4),i}function O(t,e){if(null==t)return 1;const n=(0,r.eg)(e);return 1/(0,r.ck)(n,"meters",t)}const R=(0,a.Su)(),X=(0,a.Su)(),q=(0,o.Su)()},38496:(t,e,n)=>{n.d(e,{AT:()=>b,Cr:()=>S,GW:()=>w,K_:()=>_,QP:()=>y,W4:()=>A,cH:()=>M,o$:()=>x});var r=n(66360),o=n(77556),i=n(68612),a=n(87104),s=n(98472),c=n(62484),l=n(82448),u=n(51120),f=n(62880),h=n(60544),p=n(29120),m=n(71004),d=n(48952);const g=()=>r.c.getLogger("esri.geometry.support.meshUtils.normalProjection");function M(t,e,n,r,o){return B(r)?(v(T.TO_PCPF,m.Yj.fromTypedArray(t),m.Ax.fromTypedArray(e),m.Ax.fromTypedArray(n),r,m.Yj.fromTypedArray(o)),o):(g().error("Cannot convert spatial reference to PCPF"),o)}function y(t,e,n,r,o){return B(r)?(v(T.FROM_PCPF,m.Yj.fromTypedArray(t),m.Ax.fromTypedArray(e),m.Ax.fromTypedArray(n),r,m.Yj.fromTypedArray(o)),o):(g().error("Cannot convert to spatial reference from PCPF"),o)}function _(t,e,n){return(0,f.projectBuffer)(t,e,0,n,(0,l._s)(e),0,t.length/3),n}function x(t,e,n){return(0,f.projectBuffer)(t,(0,l._s)(n),0,e,n,0,t.length/3),e}function A(t,e,n){return(0,o.yy)(O,n),(0,d.b)(e,t,O),(0,o.QT)(O)||(0,d.n)(e,e),e}function b(t,e,n){if((0,o.yy)(O,n),(0,d.b)(e,t,O,4),(0,o.QT)(O)||(0,d.n)(e,e,4),t!==e)for(let n=3;n<t.length;n+=4)e[n]=t[n];return e}function w(t,e,n,r,o){if(!B(r))return g().error("Cannot convert spatial reference to PCPF"),o;v(T.TO_PCPF,m.Yj.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),m.Ax.fromTypedArray(e),m.Ax.fromTypedArray(n),r,m.Yj.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT));for(let e=3;e<t.length;e+=4)o[e]=t[e];return o}function S(t,e,n,r,o){if(!B(r))return g().error("Cannot convert to spatial reference from PCPF"),o;v(T.FROM_PCPF,m.Yj.fromTypedArray(t,16),m.Ax.fromTypedArray(e),m.Ax.fromTypedArray(n),r,m.Yj.fromTypedArray(o,16));for(let e=3;e<t.length;e+=4)o[e]=t[e];return o}function v(t,e,n,r,i,a){if(!e)return;const c=n.count,f=(0,l._s)(i);if(P(i))for(let n=0;n<c;n++)r.getVec(n,E),e.getVec(n,Y),(0,u.y)(f,E,C,f),(0,o.kr)(O,C),t===T.FROM_PCPF&&(0,o.oL)(O,O),(0,s.t)(Y,Y,O),a.setVec(n,Y);else for(let i=0;i<c;i++){r.getVec(i,E),e.getVec(i,Y),(0,u.y)(f,E,C,f),(0,o.kr)(O,C);const c=(0,p.MB)(n.get(i,1));let l=Math.cos(c);t===T.TO_PCPF&&(l=1/l),O[0]*=l,O[1]*=l,O[2]*=l,O[3]*=l,O[4]*=l,O[5]*=l,t===T.FROM_PCPF&&(0,o.oL)(O,O),(0,s.t)(Y,Y,O),(0,s.n)(Y,Y),a.setVec(i,Y)}return a}function B(t){return P(t)||function(t){return t.isWebMercator}(t)}function P(t){return t.isWGS84||(0,h.Ub)(t)||(0,h.qg)(t)||(0,h.UB)(t)}var T,F;(F=T||(T={}))[F.TO_PCPF=0]="TO_PCPF",F[F.FROM_PCPF=1]="FROM_PCPF";const E=(0,c.Su)(),Y=(0,c.Su)(),C=(0,a.Su)(),O=(0,i.Su)()},21136:(t,e,n)=>{n.d(e,{Al:()=>m,GF:()=>d,_c:()=>h,k$:()=>f,mA:()=>p,mm:()=>g,wX:()=>u});var r=n(26832),o=n(66360),i=n(67776),a=n(51232),s=n(13708),c=n(48952);function l(){return o.c.getLogger("esri.geometry.Mesh")}function u(t){const{vertexSpace:e}=t;if(null!=e.origin)return t.clone();const{anchor:n}=t,r=n.clone(),o=new a.c({origin:[r.x,r.y,r.z]}),i=t.cloneWithVertexSpace(o),{position:s}=i.vertexAttributes;return i.vertexAttributes.position=(0,c.t)(new Float64Array(s.length),s,[-r.x,-r.y,-(r.z??0)]),i.vertexAttributesChanged(),i}function f(t){return null!=t.origin}function h(t){return f(t.vertexSpace)}function p(t,e){if(!f(t))return null;const[n,r,o]=t.origin;return new i.c({x:n,y:r,z:o,spatialReference:e})}function m(t,e){const{x:n,y:o,z:i,spatialReference:c}=t,u=[n,o,i??0];if(void 0!==e?.geographic){if((0,r.O2)(l(),"option: geographic",{replacement:"use vertexSpace option instead",version:"4.29",warnOnce:!0}),!e?.vertexSpace)return e?.geographic?new s.c({origin:u}):new a.c({origin:u});l().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")}if(!e?.vertexSpace)return c.isGeographic||c.isWebMercator?new s.c({origin:u}):new a.c({origin:u});switch(e.vertexSpace){case"local":return new s.c({origin:u});case"georeferenced":return new a.c({origin:u});case"georeferenced-absolute":return new a.c}}function d(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}function g(t,e){return"local"===t?new s.c({origin:e}):new a.c({origin:e})}}}]);