@arcgis/core 4.29.0 → 4.29.2

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/60ab18c6a04d4b2f1d4c.js +1 -0
  12. package/assets/esri/core/workers/chunks/647515801d94180b8402.js +1 -0
  13. package/assets/esri/core/workers/chunks/6c3ae96ec90e9ed7dd50.js +1 -0
  14. package/assets/esri/core/workers/chunks/7427d03e693f32a81377.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/8a9387483b19a5ec5b86.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/geohash/geohashUtils.js +1 -1
  46. package/geometry/support/axisAngleDegrees.js +1 -1
  47. package/geometry/support/coordinateSystem.js +1 -1
  48. package/geometry/support/lineSegment.js +1 -1
  49. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  50. package/geometry/support/meshUtils/georeference.js +1 -1
  51. package/geometry/support/meshUtils/merge.js +1 -1
  52. package/geometry/support/meshUtils/rotate.js +1 -1
  53. package/geometry/support/meshUtils/scale.js +1 -1
  54. package/geometry/support/meshUtils/vertexSpaceConversion.js +5 -0
  55. package/geometry/support/meshVertexSpaceUtils.js +1 -1
  56. package/geometry/support/plane.js +1 -1
  57. package/geometry/support/ray.js +1 -1
  58. package/geometry/support/triangle.js +1 -1
  59. package/geometry/support/vector.js +1 -1
  60. package/interfaces.d.ts +20 -14
  61. package/kernel.js +1 -1
  62. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  63. package/layers/LinkChartLayer.js +1 -1
  64. package/layers/VoxelWasmPerSceneView.js +1 -1
  65. package/layers/graphics/data/StreamFeatureManager.js +1 -1
  66. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  67. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  68. package/layers/mixins/FeatureReductionLayer.js +1 -1
  69. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  70. package/layers/orientedImagery/transformations/imageToGroundUtils.js +1 -1
  71. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  72. package/layers/support/layerUtils.js +1 -1
  73. package/layers/video/VideoCameraSensorModel.js +1 -1
  74. package/layers/voxel/VoxelVolume.js +1 -1
  75. package/layers/voxel/voxelPlaneUtils.js +1 -1
  76. package/libs/linkchartlayout/LinkChartLayout.js +1 -1
  77. package/package.json +1 -1
  78. package/support/revision.js +1 -1
  79. package/symbols/cim/cimAnalyzer.js +1 -1
  80. package/views/2d/arcade/callExpressionWithCursor.js +1 -1
  81. package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
  82. package/views/2d/engine/webgl/shaderGraph/techniques/createTestMeshData.js +1 -1
  83. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterInputEvaluator.js +1 -1
  84. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  85. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  86. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  87. package/views/2d/layers/features/Processor.js +1 -1
  88. package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
  89. package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
  90. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  91. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  92. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  93. package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
  94. package/views/2d/layers/features/schema/processor/SubtypeProcessorSchema.js +1 -1
  95. package/views/2d/layers/features/sources/strategies/StreamLoadStrategy.js +1 -1
  96. package/views/2d/layers/features/sources/strategies/chunks/DrillDownTileSourceChunk.js +1 -1
  97. package/views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js +1 -1
  98. package/views/2d/layers/features/sources/strategies/chunks/OverrideChunk.js +1 -1
  99. package/views/2d/layers/features/sources/strategies/chunks/PagedTileSourceChunk.js +1 -1
  100. package/views/2d/layers/features/sources/strategies/chunks/StreamSourceChunk.js +1 -1
  101. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  102. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  103. package/views/2d/layers/features/support/Tile.js +1 -1
  104. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  105. package/views/2d/tiling/TileKey.js +1 -1
  106. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  107. package/views/3d/analysis/Dimension/lengthDimensionConstraintUtils.js +1 -1
  108. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  109. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  110. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
  111. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  112. package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
  113. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  114. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  115. package/views/3d/analysis/support/measurementUtils.js +1 -1
  116. package/views/3d/animation/pointToPoint/Camera.js +1 -1
  117. package/views/3d/camera/constraintUtils/common.js +1 -1
  118. package/views/3d/camera/constraintUtils/distance.js +1 -1
  119. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  120. package/views/3d/camera/intersectionUtils.js +1 -1
  121. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  122. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  123. package/views/3d/environment/Fog.js +1 -1
  124. package/views/3d/environment/MarsAtmosphere.js +1 -1
  125. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  126. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  127. package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
  128. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  129. package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
  130. package/views/3d/interactive/editingTools/reshapeGraphic/edgeOffsetUtils.js +1 -1
  131. package/views/3d/interactive/editingTools/transformGraphic/ExtentScale.js +1 -1
  132. package/views/3d/interactive/editingTools/transformGraphic/extentUtils.js +1 -1
  133. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  134. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  135. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  136. package/views/3d/interactive/visualElements/support/Segment.js +1 -1
  137. package/views/3d/layers/I3SMeshView3D.js +1 -1
  138. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  139. package/views/3d/layers/PointCloudWorker.js +1 -1
  140. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  141. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  142. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  143. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  144. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  145. package/views/3d/layers/i3s/LoDUtil.js +1 -1
  146. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  147. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  148. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  149. package/views/3d/layers/support/uvUtils.js +1 -1
  150. package/views/3d/state/Frustum.js +1 -1
  151. package/views/3d/state/NearFarHeuristic.js +1 -1
  152. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  153. package/views/3d/state/controllers/RotateController.js +1 -1
  154. package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
  155. package/views/3d/state/controllers/global/ZoomController.js +1 -1
  156. package/views/3d/state/controllers/global/ZoomStepController.js +1 -1
  157. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  158. package/views/3d/state/controllers/local/ZoomController.js +1 -1
  159. package/views/3d/state/controllers/local/ZoomStepController.js +1 -1
  160. package/views/3d/state/controllers/momentum/ZoomPlanarMomentumController.js +1 -1
  161. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  162. package/views/3d/state/utils/navigationUtils.js +1 -1
  163. package/views/3d/state/utils/viewUtils.js +1 -1
  164. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  165. package/views/3d/support/cameraUtils.js +1 -1
  166. package/views/3d/support/cameraUtilsInternal.js +1 -1
  167. package/views/3d/support/intersectionUtils.js +1 -1
  168. package/views/3d/support/mathUtils.js +1 -1
  169. package/views/3d/support/orientedBoundingBox.js +1 -1
  170. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  171. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  172. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  173. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  174. package/views/3d/support/sunUtils.js +1 -1
  175. package/views/3d/support/viewpointUtils.js +1 -1
  176. package/views/3d/terrain/OverlayManager.js +1 -1
  177. package/views/3d/terrain/PatchRenderData.js +1 -1
  178. package/views/3d/terrain/SphericalPatch.js +1 -1
  179. package/views/3d/terrain/TerrainRenderer.js +1 -1
  180. package/views/3d/terrain/Tile.js +1 -1
  181. package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
  182. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  183. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  184. package/views/3d/webgl-engine/core/util/TwoVectorPosition.js +1 -1
  185. package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
  186. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  187. package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
  188. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  189. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  190. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  191. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  192. package/views/3d/webgl-engine/lib/PathVertex.js +1 -1
  193. package/views/3d/webgl-engine/lib/Renderer.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})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4520],{74784:(t,n,a)=>{a.d(n,{a:()=>p,c:()=>o,d:()=>h,e:()=>g,g:()=>u,h:()=>d,i:()=>l,j:()=>b,l:()=>x,n:()=>m,s:()=>e,t:()=>q});var r=a(47364);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function e(t,n,a,r,o){return t[0]=n,t[1]=a,t[2]=r,t[3]=o,t}function u(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t}function s(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t}function c(t,n,a){return t[0]=n[0]*a[0],t[1]=n[1]*a[1],t[2]=n[2]*a[2],t[3]=n[3]*a[3],t}function i(t,n,a){return t[0]=n[0]/a[0],t[1]=n[1]/a[1],t[2]=n[2]/a[2],t[3]=n[3]/a[3],t}function h(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t}function M(t,n){const a=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],e=n[3]-t[3];return Math.sqrt(a*a+r*r+o*o+e*e)}function f(t,n){const a=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],e=n[3]-t[3];return a*a+r*r+o*o+e*e}function l(t){const n=t[0],a=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+a*a+r*r+o*o)}function b(t){const n=t[0],a=t[1],r=t[2],o=t[3];return n*n+a*a+r*r+o*o}function m(t,n){const a=n[0],r=n[1],o=n[2],e=n[3];let u=a*a+r*r+o*o+e*e;return u>0&&(u=1/Math.sqrt(u),t[0]=a*u,t[1]=r*u,t[2]=o*u,t[3]=e*u),t}function d(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function x(t,n,a,r){const o=n[0],e=n[1],u=n[2],s=n[3];return t[0]=o+r*(a[0]-o),t[1]=e+r*(a[1]-e),t[2]=u+r*(a[2]-u),t[3]=s+r*(a[3]-s),t}function q(t,n,a){const r=n[0],o=n[1],e=n[2],u=n[3];return t[0]=a[0]*r+a[4]*o+a[8]*e+a[12]*u,t[1]=a[1]*r+a[5]*o+a[9]*e+a[13]*u,t[2]=a[2]*r+a[6]*o+a[10]*e+a[14]*u,t[3]=a[3]*r+a[7]*o+a[11]*e+a[15]*u,t}function p(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function g(t,n){const a=t[0],o=t[1],e=t[2],u=t[3],s=n[0],c=n[1],i=n[2],h=n[3],M=(0,r.Au)();return Math.abs(a-s)<=M*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(o-c)<=M*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(e-i)<=M*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(u-h)<=M*Math.max(1,Math.abs(u),Math.abs(h))}const y=s,S=c,_=i,T=M,v=f,A=l,O=b;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:T,distance:M,div:_,divide:i,dot:d,equals:g,exactEquals:p,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:A,length:l,lerp:x,max:function(t,n,a){return t[0]=Math.max(n[0],a[0]),t[1]=Math.max(n[1],a[1]),t[2]=Math.max(n[2],a[2]),t[3]=Math.max(n[3],a[3]),t},min:function(t,n,a){return t[0]=Math.min(n[0],a[0]),t[1]=Math.min(n[1],a[1]),t[2]=Math.min(n[2],a[2]),t[3]=Math.min(n[3],a[3]),t},mul:S,multiply:c,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:m,random:function(t,n){const a=r.QR;let o,e,u,s,c,i;n=n||1;do{o=2*a()-1,e=2*a()-1,c=o*o+e*e}while(c>=1);do{u=2*a()-1,s=2*a()-1,i=u*u+s*s}while(i>=1);const h=Math.sqrt((1-c)/i);return t[0]=n*o,t[1]=n*e,t[2]=n*u*h,t[3]=n*s*h,t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},scale:h,scaleAndAdd:function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t},set:e,sqrDist:v,sqrLen:O,squaredDistance:f,squaredLength:b,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:y,subtract:s,transformMat4:q,transformQuat:function(t,n,a){const r=n[0],o=n[1],e=n[2],u=a[0],s=a[1],c=a[2],i=a[3],h=i*r+s*e-c*o,M=i*o+c*r-u*e,f=i*e+u*o-s*r,l=-u*r-s*o-c*e;return t[0]=h*i+l*-u+M*-c-f*-s,t[1]=M*i+l*-s+f*-u-h*-c,t[2]=f*i+l*-c+h*-s-M*-u,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},37008:(t,n,a)=>{function r(){return[0,0,0,0]}function o(t,n,a,r){return[t,n,a,r]}function e(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function s(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function i(){return o(0,0,0,1)}a.d(n,{Su:()=>r,WK:()=>o});const h=e(),M=u(),f=s(),l=c(),b=i();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:b,UNIT_X:M,UNIT_Y:f,UNIT_Z:l,ZEROS:[0,0,0,0],clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,createView:function(t,n){return new Float64Array(t,n,4)},fromArray:function(t,n=[0,0,0,0]){const a=Math.min(4,t.length);for(let r=0;r<a;++r)n[r]=t[r];return n},fromValues:o,ones:e,unitW:i,unitX:u,unitY:s,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},15008:(t,n,a)=>{a.d(n,{GS:()=>h,IT:()=>b,QT:()=>A,Qy:()=>q,S_:()=>c,WO:()=>e,WP:()=>S,ZX:()=>u,aU:()=>M,c9:()=>f,gp:()=>m,iW:()=>i,ir:()=>g,mu:()=>l,oL:()=>s,sF:()=>T,sx:()=>p,um:()=>y,yK:()=>v,yp:()=>O});var r=a(62484),o=a(47364);function e(t,n,a,r,o,e,u,s,c,i,h,M,f,l,b,m,d){return t[0]=n,t[1]=a,t[2]=r,t[3]=o,t[4]=e,t[5]=u,t[6]=s,t[7]=c,t[8]=i,t[9]=h,t[10]=M,t[11]=f,t[12]=l,t[13]=b,t[14]=m,t[15]=d,t}function u(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function s(t,n){if(t===n){const a=n[1],r=n[2],o=n[3],e=n[6],u=n[7],s=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=a,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=e,t[11]=n[14],t[12]=o,t[13]=u,t[14]=s}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){const a=n[0],r=n[1],o=n[2],e=n[3],u=n[4],s=n[5],c=n[6],i=n[7],h=n[8],M=n[9],f=n[10],l=n[11],b=n[12],m=n[13],d=n[14],x=n[15],q=a*s-r*u,p=a*c-o*u,g=a*i-e*u,y=r*c-o*s,S=r*i-e*s,_=o*i-e*c,T=h*m-M*b,v=h*d-f*b,A=h*x-l*b,O=M*d-f*m,R=M*x-l*m,I=f*x-l*d;let j=q*I-p*R+g*O+y*A-S*v+_*T;return j?(j=1/j,t[0]=(s*I-c*R+i*O)*j,t[1]=(o*R-r*I-e*O)*j,t[2]=(m*_-d*S+x*y)*j,t[3]=(f*S-M*_-l*y)*j,t[4]=(c*A-u*I-i*v)*j,t[5]=(a*I-o*A+e*v)*j,t[6]=(d*g-b*_-x*p)*j,t[7]=(h*_-f*g+l*p)*j,t[8]=(u*R-s*A+i*T)*j,t[9]=(r*A-a*R-e*T)*j,t[10]=(b*S-m*g+x*q)*j,t[11]=(M*g-h*S-l*q)*j,t[12]=(s*v-u*O-c*T)*j,t[13]=(a*O-r*v+o*T)*j,t[14]=(m*p-b*y-d*q)*j,t[15]=(h*y-M*p+f*q)*j,t):null}function i(t,n,a){const r=n[0],o=n[1],e=n[2],u=n[3],s=n[4],c=n[5],i=n[6],h=n[7],M=n[8],f=n[9],l=n[10],b=n[11],m=n[12],d=n[13],x=n[14],q=n[15];let p=a[0],g=a[1],y=a[2],S=a[3];return t[0]=p*r+g*s+y*M+S*m,t[1]=p*o+g*c+y*f+S*d,t[2]=p*e+g*i+y*l+S*x,t[3]=p*u+g*h+y*b+S*q,p=a[4],g=a[5],y=a[6],S=a[7],t[4]=p*r+g*s+y*M+S*m,t[5]=p*o+g*c+y*f+S*d,t[6]=p*e+g*i+y*l+S*x,t[7]=p*u+g*h+y*b+S*q,p=a[8],g=a[9],y=a[10],S=a[11],t[8]=p*r+g*s+y*M+S*m,t[9]=p*o+g*c+y*f+S*d,t[10]=p*e+g*i+y*l+S*x,t[11]=p*u+g*h+y*b+S*q,p=a[12],g=a[13],y=a[14],S=a[15],t[12]=p*r+g*s+y*M+S*m,t[13]=p*o+g*c+y*f+S*d,t[14]=p*e+g*i+y*l+S*x,t[15]=p*u+g*h+y*b+S*q,t}function h(t,n,a){const r=a[0],o=a[1],e=a[2];if(n===t)t[12]=n[0]*r+n[4]*o+n[8]*e+n[12],t[13]=n[1]*r+n[5]*o+n[9]*e+n[13],t[14]=n[2]*r+n[6]*o+n[10]*e+n[14],t[15]=n[3]*r+n[7]*o+n[11]*e+n[15];else{const a=n[0],u=n[1],s=n[2],c=n[3],i=n[4],h=n[5],M=n[6],f=n[7],l=n[8],b=n[9],m=n[10],d=n[11];t[0]=a,t[1]=u,t[2]=s,t[3]=c,t[4]=i,t[5]=h,t[6]=M,t[7]=f,t[8]=l,t[9]=b,t[10]=m,t[11]=d,t[12]=a*r+i*o+l*e+n[12],t[13]=u*r+h*o+b*e+n[13],t[14]=s*r+M*o+m*e+n[14],t[15]=c*r+f*o+d*e+n[15]}return t}function M(t,n,a){const r=a[0],o=a[1],e=a[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function f(t,n,a,r){let e,u,s,c,i,h,M,f,l,b,m,d,x,q,p,g,y,S,_,T,v,A,O,R,I=r[0],j=r[1],w=r[2],P=Math.sqrt(I*I+j*j+w*w);return P<(0,o.Au)()?null:(P=1/P,I*=P,j*=P,w*=P,e=Math.sin(a),u=Math.cos(a),s=1-u,c=n[0],i=n[1],h=n[2],M=n[3],f=n[4],l=n[5],b=n[6],m=n[7],d=n[8],x=n[9],q=n[10],p=n[11],g=I*I*s+u,y=j*I*s+w*e,S=w*I*s-j*e,_=I*j*s-w*e,T=j*j*s+u,v=w*j*s+I*e,A=I*w*s+j*e,O=j*w*s-I*e,R=w*w*s+u,t[0]=c*g+f*y+d*S,t[1]=i*g+l*y+x*S,t[2]=h*g+b*y+q*S,t[3]=M*g+m*y+p*S,t[4]=c*_+f*T+d*v,t[5]=i*_+l*T+x*v,t[6]=h*_+b*T+q*v,t[7]=M*_+m*T+p*v,t[8]=c*A+f*O+d*R,t[9]=i*A+l*O+x*R,t[10]=h*A+b*O+q*R,t[11]=M*A+m*O+p*R,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t)}function l(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function b(t,n,a){if(0===n)return u(t);let r,e,s,c=a[0],i=a[1],h=a[2],M=Math.sqrt(c*c+i*i+h*h);return M<(0,o.Au)()?null:(M=1/M,c*=M,i*=M,h*=M,r=Math.sin(n),e=Math.cos(n),s=1-e,t[0]=c*c*s+e,t[1]=i*c*s+h*r,t[2]=h*c*s-i*r,t[3]=0,t[4]=c*i*s-h*r,t[5]=i*i*s+e,t[6]=h*i*s+c*r,t[7]=0,t[8]=c*h*s+i*r,t[9]=i*h*s-c*r,t[10]=h*h*s+e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function m(t,n){const a=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=a,t[7]=0,t[8]=0,t[9]=-a,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function d(t,n,a){const r=n[0],o=n[1],e=n[2],u=n[3],s=r+r,c=o+o,i=e+e,h=r*s,M=r*c,f=r*i,l=o*c,b=o*i,m=e*i,d=u*s,x=u*c,q=u*i;return t[0]=1-(l+m),t[1]=M+q,t[2]=f-x,t[3]=0,t[4]=M-q,t[5]=1-(h+m),t[6]=b+d,t[7]=0,t[8]=f+x,t[9]=b-d,t[10]=1-(h+l),t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t}const x=(0,r.Su)();function q(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function p(t,n){const a=n[0],r=n[1],o=n[2],e=n[4],u=n[5],s=n[6],c=n[8],i=n[9],h=n[10];return t[0]=Math.sqrt(a*a+r*r+o*o),t[1]=Math.sqrt(e*e+u*u+s*s),t[2]=Math.sqrt(c*c+i*i+h*h),t}function g(t,n){const a=n[0]+n[5]+n[10];let r=0;return a>0?(r=2*Math.sqrt(a+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function y(t,n,a,r){const o=n[0],e=n[1],u=n[2],s=n[3],c=o+o,i=e+e,h=u+u,M=o*c,f=o*i,l=o*h,b=e*i,m=e*h,d=u*h,x=s*c,q=s*i,p=s*h,g=r[0],y=r[1],S=r[2];return t[0]=(1-(b+d))*g,t[1]=(f+p)*g,t[2]=(l-q)*g,t[3]=0,t[4]=(f-p)*y,t[5]=(1-(M+d))*y,t[6]=(m+x)*y,t[7]=0,t[8]=(l+q)*S,t[9]=(m-x)*S,t[10]=(1-(M+b))*S,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t}function S(t,n,a,r,o){const e=n[0],u=n[1],s=n[2],c=n[3],i=e+e,h=u+u,M=s+s,f=e*i,l=e*h,b=e*M,m=u*h,d=u*M,x=s*M,q=c*i,p=c*h,g=c*M,y=r[0],S=r[1],_=r[2],T=o[0],v=o[1],A=o[2],O=(1-(m+x))*y,R=(l+g)*y,I=(b-p)*y,j=(l-g)*S,w=(1-(f+x))*S,P=(d+q)*S,D=(b+p)*_,N=(d-q)*_,Q=(1-(f+m))*_;return t[0]=O,t[1]=R,t[2]=I,t[3]=0,t[4]=j,t[5]=w,t[6]=P,t[7]=0,t[8]=D,t[9]=N,t[10]=Q,t[11]=0,t[12]=a[0]+T-(O*T+j*v+D*A),t[13]=a[1]+v-(R*T+w*v+N*A),t[14]=a[2]+A-(I*T+P*v+Q*A),t[15]=1,t}function _(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t[6]=n[6]-a[6],t[7]=n[7]-a[7],t[8]=n[8]-a[8],t[9]=n[9]-a[9],t[10]=n[10]-a[10],t[11]=n[11]-a[11],t[12]=n[12]-a[12],t[13]=n[13]-a[13],t[14]=n[14]-a[14],t[15]=n[15]-a[15],t}function T(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function v(t,n){if(t===n)return!0;const a=t[0],r=t[1],e=t[2],u=t[3],s=t[4],c=t[5],i=t[6],h=t[7],M=t[8],f=t[9],l=t[10],b=t[11],m=t[12],d=t[13],x=t[14],q=t[15],p=n[0],g=n[1],y=n[2],S=n[3],_=n[4],T=n[5],v=n[6],A=n[7],O=n[8],R=n[9],I=n[10],j=n[11],w=n[12],P=n[13],D=n[14],N=n[15],Q=(0,o.Au)();return Math.abs(a-p)<=Q*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(r-g)<=Q*Math.max(1,Math.abs(r),Math.abs(g))&&Math.abs(e-y)<=Q*Math.max(1,Math.abs(e),Math.abs(y))&&Math.abs(u-S)<=Q*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(s-_)<=Q*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(c-T)<=Q*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(i-v)<=Q*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(h-A)<=Q*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(M-O)<=Q*Math.max(1,Math.abs(M),Math.abs(O))&&Math.abs(f-R)<=Q*Math.max(1,Math.abs(f),Math.abs(R))&&Math.abs(l-I)<=Q*Math.max(1,Math.abs(l),Math.abs(I))&&Math.abs(b-j)<=Q*Math.max(1,Math.abs(b),Math.abs(j))&&Math.abs(m-w)<=Q*Math.max(1,Math.abs(m),Math.abs(w))&&Math.abs(d-P)<=Q*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(x-D)<=Q*Math.max(1,Math.abs(x),Math.abs(D))&&Math.abs(q-N)<=Q*Math.max(1,Math.abs(q),Math.abs(N))}function A(t){const n=(0,o.Au)(),a=t[0],r=t[1],e=t[2],u=t[4],s=t[5],c=t[6],i=t[8],h=t[9],M=t[10];return Math.abs(1-(a*a+u*u+i*i))<=n&&Math.abs(1-(r*r+s*s+h*h))<=n&&Math.abs(1-(e*e+c*c+M*M))<=n}function O(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const R=i,I=_;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t[6]=n[6]+a[6],t[7]=n[7]+a[7],t[8]=n[8]+a[8],t[9]=n[9]+a[9],t[10]=n[10]+a[10],t[11]=n[11]+a[11],t[12]=n[12]+a[12],t[13]=n[13]+a[13],t[14]=n[14]+a[14],t[15]=n[15]+a[15],t},adjoint:function(t,n){const a=n[0],r=n[1],o=n[2],e=n[3],u=n[4],s=n[5],c=n[6],i=n[7],h=n[8],M=n[9],f=n[10],l=n[11],b=n[12],m=n[13],d=n[14],x=n[15];return t[0]=s*(f*x-l*d)-M*(c*x-i*d)+m*(c*l-i*f),t[1]=-(r*(f*x-l*d)-M*(o*x-e*d)+m*(o*l-e*f)),t[2]=r*(c*x-i*d)-s*(o*x-e*d)+m*(o*i-e*c),t[3]=-(r*(c*l-i*f)-s*(o*l-e*f)+M*(o*i-e*c)),t[4]=-(u*(f*x-l*d)-h*(c*x-i*d)+b*(c*l-i*f)),t[5]=a*(f*x-l*d)-h*(o*x-e*d)+b*(o*l-e*f),t[6]=-(a*(c*x-i*d)-u*(o*x-e*d)+b*(o*i-e*c)),t[7]=a*(c*l-i*f)-u*(o*l-e*f)+h*(o*i-e*c),t[8]=u*(M*x-l*m)-h*(s*x-i*m)+b*(s*l-i*M),t[9]=-(a*(M*x-l*m)-h*(r*x-e*m)+b*(r*l-e*M)),t[10]=a*(s*x-i*m)-u*(r*x-e*m)+b*(r*i-e*s),t[11]=-(a*(s*l-i*M)-u*(r*l-e*M)+h*(r*i-e*s)),t[12]=-(u*(M*d-f*m)-h*(s*d-c*m)+b*(s*f-c*M)),t[13]=a*(M*d-f*m)-h*(r*d-o*m)+b*(r*f-o*M),t[14]=-(a*(s*d-c*m)-u*(r*d-o*m)+b*(r*c-o*s)),t[15]=a*(s*f-c*M)-u*(r*f-o*M)+h*(r*c-o*s),t},copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t},determinant:function(t){const n=t[0],a=t[1],r=t[2],o=t[3],e=t[4],u=t[5],s=t[6],c=t[7],i=t[8],h=t[9],M=t[10],f=t[11],l=t[12],b=t[13],m=t[14],d=t[15];return(n*u-a*e)*(M*d-f*m)-(n*s-r*e)*(h*d-f*b)+(n*c-o*e)*(h*m-M*b)+(a*s-r*u)*(i*d-f*l)-(a*c-o*u)*(i*m-M*l)+(r*c-o*s)*(i*b-h*l)},equals:v,exactEquals:T,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const a=n[0],r=n[1],o=n[2],e=n[3],u=a+a,s=r+r,c=o+o,i=a*u,h=r*u,M=r*s,f=o*u,l=o*s,b=o*c,m=e*u,d=e*s,x=e*c;return t[0]=1-M-b,t[1]=h+x,t[2]=f-d,t[3]=0,t[4]=h-x,t[5]=1-i-b,t[6]=l+m,t[7]=0,t[8]=f+d,t[9]=l-m,t[10]=1-i-M,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const a=x,r=-n[0],o=-n[1],e=-n[2],u=n[3],s=n[4],c=n[5],i=n[6],h=n[7],M=r*r+o*o+e*e+u*u;return M>0?(a[0]=2*(s*u+h*r+c*e-i*o)/M,a[1]=2*(c*u+h*o+i*r-s*e)/M,a[2]=2*(i*u+h*e+s*o-c*r)/M):(a[0]=2*(s*u+h*r+c*e-i*o),a[1]=2*(c*u+h*o+i*r-s*e),a[2]=2*(i*u+h*e+s*o-c*r)),d(t,n,a),t},fromRotation:b,fromRotationTranslation:d,fromRotationTranslationScale:y,fromRotationTranslationScaleOrigin:S,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:l,fromXRotation:m,fromYRotation:function(t,n){const a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-a,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=a,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,n){const a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=a,t[2]=0,t[3]=0,t[4]=-a,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,n,a,r,o,e,u){const s=1/(a-n),c=1/(o-r),i=1/(e-u);return t[0]=2*e*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*e*c,t[6]=0,t[7]=0,t[8]=(a+n)*s,t[9]=(o+r)*c,t[10]=(u+e)*i,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*e*2*i,t[15]=0,t},getRotation:g,getScaling:p,getTranslation:q,hasIdentityRotation:O,identity:u,invert:c,invertOrIdentity:function(t,n){return c(t,n)||u(t),t},isOrthoNormal:A,lookAt:function(t,n,a,r){const e=n[0],s=n[1],c=n[2];let i=e-a[0],h=s-a[1],M=c-a[2];const f=(0,o.Au)();if(Math.abs(i)<f&&Math.abs(h)<f&&Math.abs(M)<f)return void u(t);let l=1/Math.sqrt(i*i+h*h+M*M);i*=l,h*=l,M*=l;const b=r[0],m=r[1],d=r[2];let x=m*M-d*h,q=d*i-b*M,p=b*h-m*i;l=Math.sqrt(x*x+q*q+p*p),l?(l=1/l,x*=l,q*=l,p*=l):(x=0,q=0,p=0);let g=h*p-M*q,y=M*x-i*p,S=i*q-h*x;l=Math.sqrt(g*g+y*y+S*S),l?(l=1/l,g*=l,y*=l,S*=l):(g=0,y=0,S=0),t[0]=x,t[1]=g,t[2]=i,t[3]=0,t[4]=q,t[5]=y,t[6]=h,t[7]=0,t[8]=p,t[9]=S,t[10]=M,t[11]=0,t[12]=-(x*e+q*s+p*c),t[13]=-(g*e+y*s+S*c),t[14]=-(i*e+h*s+M*c),t[15]=1},mul:R,multiply:i,multiplyScalar:function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=n[7]*a,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12]*a,t[13]=n[13]*a,t[14]=n[14]*a,t[15]=n[15]*a,t},multiplyScalarAndAdd:function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t[4]=n[4]+a[4]*r,t[5]=n[5]+a[5]*r,t[6]=n[6]+a[6]*r,t[7]=n[7]+a[7]*r,t[8]=n[8]+a[8]*r,t[9]=n[9]+a[9]*r,t[10]=n[10]+a[10]*r,t[11]=n[11]+a[11]*r,t[12]=n[12]+a[12]*r,t[13]=n[13]+a[13]*r,t[14]=n[14]+a[14]*r,t[15]=n[15]+a[15]*r,t},ortho:function(t,n,a,r,o,e,u){const s=1/(n-a),c=1/(r-o),i=1/(e-u);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*i,t[11]=0,t[12]=(n+a)*s,t[13]=(o+r)*c,t[14]=(u+e)*i,t[15]=1,t},perspective:function(t,n,a,r,o){const e=1/Math.tan(n/2);let u;return t[0]=e/a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(u=1/(r-o),t[10]=(o+r)*u,t[14]=2*o*r*u):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,a,r){const o=Math.tan(n.upDegrees*Math.PI/180),e=Math.tan(n.downDegrees*Math.PI/180),u=Math.tan(n.leftDegrees*Math.PI/180),s=Math.tan(n.rightDegrees*Math.PI/180),c=2/(u+s),i=2/(o+e);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=-(u-s)*c*.5,t[9]=(o-e)*i*.5,t[10]=r/(a-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*a/(a-r),t[15]=0,t},rotate:f,rotateX:function(t,n,a){const r=Math.sin(a),o=Math.cos(a),e=n[4],u=n[5],s=n[6],c=n[7],i=n[8],h=n[9],M=n[10],f=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=e*o+i*r,t[5]=u*o+h*r,t[6]=s*o+M*r,t[7]=c*o+f*r,t[8]=i*o-e*r,t[9]=h*o-u*r,t[10]=M*o-s*r,t[11]=f*o-c*r,t},rotateY:function(t,n,a){const r=Math.sin(a),o=Math.cos(a),e=n[0],u=n[1],s=n[2],c=n[3],i=n[8],h=n[9],M=n[10],f=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=e*o-i*r,t[1]=u*o-h*r,t[2]=s*o-M*r,t[3]=c*o-f*r,t[8]=e*r+i*o,t[9]=u*r+h*o,t[10]=s*r+M*o,t[11]=c*r+f*o,t},rotateZ:function(t,n,a){const r=Math.sin(a),o=Math.cos(a),e=n[0],u=n[1],s=n[2],c=n[3],i=n[4],h=n[5],M=n[6],f=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=e*o+i*r,t[1]=u*o+h*r,t[2]=s*o+M*r,t[3]=c*o+f*r,t[4]=i*o-e*r,t[5]=h*o-u*r,t[6]=M*o-s*r,t[7]=f*o-c*r,t},scale:M,set:e,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:I,subtract:_,targetTo:function(t,n,a,r){const o=n[0],e=n[1],u=n[2],s=r[0],c=r[1],i=r[2];let h=o-a[0],M=e-a[1],f=u-a[2],l=h*h+M*M+f*f;l>0&&(l=1/Math.sqrt(l),h*=l,M*=l,f*=l);let b=c*f-i*M,m=i*h-s*f,d=s*M-c*h;return l=b*b+m*m+d*d,l>0&&(l=1/Math.sqrt(l),b*=l,m*=l,d*=l),t[0]=b,t[1]=m,t[2]=d,t[3]=0,t[4]=M*d-f*m,t[5]=f*b-h*d,t[6]=h*m-M*b,t[7]=0,t[8]=h,t[9]=M,t[10]=f,t[11]=0,t[12]=o,t[13]=e,t[14]=u,t[15]=1,t},translate:h,transpose:s},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4828],{41104:(e,t,n)=>{n.d(t,{c:()=>m});var r,o=n(41948),i=n(40504),a=n(1580),c=(n(9456),n(66360),n(72052),n(12552)),l=n(15008),s=n(87104),u=n(41512),p=n(2620),f=n(98472),g=n(62484),y=n(66952);let h=r=class extends i.am{constructor(e){super(e),this.translation=(0,g.Su)(),this.rotationAxis=(0,g.eu)(y.up),this.rotationAngle=0,this.scale=(0,g.WK)(1,1,1)}get rotation(){return(0,y.eE)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,g.ct)((0,y.Yz)(e)),this.rotationAngle=(0,y.i4)(e)}get localMatrix(){const e=(0,s.Su)();return(0,u.yG)(A,(0,y.Yz)(this.rotation),(0,y.kX)(this.rotation)),(0,l.um)(e,A,this.translation,this.scale),e}get localMatrixInverse(){return(0,l.S_)((0,s.Su)(),this.localMatrix)}applyLocal(e,t){return(0,f.e)(t,e,this.localMatrix)}applyLocalInverse(e,t){return(0,f.e)(t,e,this.localMatrixInverse)}equals(e){return this===e||null!=e&&(0,l.sF)(this.localMatrix,e.localMatrix)}clone(){const e={translation:(0,g.ct)(this.translation),rotationAxis:(0,g.ct)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,g.ct)(this.scale)};return new r(e)}};(0,o._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"translation",void 0),(0,o._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAxis",void 0),(0,o._)([(0,a.qq)({type:Number,nonNullable:!0,json:{write:!0}})],h.prototype,"rotationAngle",void 0),(0,o._)([(0,a.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"scale",void 0),(0,o._)([(0,a.qq)()],h.prototype,"rotation",null),(0,o._)([(0,a.qq)()],h.prototype,"localMatrix",null),(0,o._)([(0,a.qq)()],h.prototype,"localMatrixInverse",null),h=r=(0,o._)([(0,c.c)("esri.geometry.support.MeshTransform")],h);const A=(0,p.Su)(),m=h},66952:(e,t,n)=>{n.d(t,{GA:()=>g,Gc:()=>p,Su:()=>s,Yz:()=>y,eE:()=>u,i4:()=>h,kX:()=>A,up:()=>x});var r=n(53648),o=n(15008),i=n(41512),a=n(2620),c=n(98472),l=n(62484);function s(e=x){return[e[0],e[1],e[2],e[3]]}function u(e,t,n=s()){return(0,c.c)(n,e),n[3]=t,n}function p(e,t=s()){const n=(0,o.ir)(d,e);return m(t,(0,r.UB)((0,i.C0)(t,n))),t}function f(e,t,n=s()){return(0,i.yG)(d,e,A(e)),(0,i.yG)(w,t,A(t)),(0,i.iW)(d,w,d),m(n,(0,r.UB)((0,i.C0)(n,d)))}function g(e,t,n,r=s()){return u(l.UV,e,v),u(l.IR,t,F),u(l.wx,n,S),f(v,F,v),f(v,S,r),r}function y(e){return e}function h(e){return e[3]}function A(e){return(0,r.EF)(e[3])}function m(e,t){return e[3]=t,e}n(37008);const x=[0,0,1,0],d=(0,a.Su)(),w=(0,a.Su)(),v=(s(),s()),F=s(),S=s()},71488:(e,t,n)=>{n.d(t,{Kk:()=>c,QL:()=>l,yO:()=>a});var r=n(26832),o=n(66360),i=n(21136);function a(e,t){return e.isGeographic||e.isWebMercator&&(t??!0)}function c(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}function l(e,t,n,a){if(void 0!==a){(0,r.O2)(o.c.getLogger(e),"option: geographic",{replacement:"use mesh vertexSpace and spatial reference to control how operations are performed",version:"4.29",warnOnce:!0});const c="local"===t.type;if(!(0,i.k$)(t)||a===c)return n.isGeographic||n.isWebMercator&&a;o.c.getLogger(e).warnOnce(`Specifying the 'geographic' parameter (${a}) for a Mesh vertex space of type "${t.type}" is not supported. This parameter will be ignored.`)}return c(t,n)}},54828:(e,t,n)=>{n.d(t,{CE:()=>v,EX:()=>S,_0:()=>q,_S:()=>F,iS:()=>_,mC:()=>M,project:()=>b,qu:()=>C});var r=n(24296),o=n(68612),i=n(15008),a=n(87104),c=n(98472),l=n(62484),s=n(77556),u=n(60074),p=n(82448),f=n(51120),g=n(62880),y=n(15688),h=n(41104),A=n(21136),m=n(48952),x=n(71488),d=n(38496);function w(e,t,n){return(0,x.yO)(t.spatialReference,n?.geographic)?M(e,t,!1,n):function(e,t,n){const r=new Float64Array(e.position.length),o=e.position,i=t.x,a=t.y,c=t.z??0,l=q(n?n.unit:null,t.spatialReference);for(let e=0;e<o.length;e+=3)r[e]=o[e]*l+i,r[e+1]=o[e+1]*l+a,r[e+2]=o[e+2]*l+c;return{position:r,normal:e.normal,tangent:e.tangent}}(e,t,n)}function v(e,t=a.IJ){const{position:n,normal:r,tangent:o}=e;return{position:(0,m.a)(new Float64Array(n.length),n,t),normal:null!=r?(0,d.W4)(r,new Float32Array(r.length),t):null,tangent:null!=o?(0,d.AT)(o,new Float32Array(o.length),t):null}}function F(e,t,n,r){const{position:o,normal:i,tangent:a}=e;if(!(0,A.k$)(t))return{position:o,normal:i,tangent:a};const c=(0,A.mA)(t,r);return w(v(e,n?.localMatrix),c,{geographic:"local"===t.type})}function S(e,t,n){const r=(0,A.Al)(t,n),o=t.spatialReference,i=(0,A.k$)(r);if(!i)return{vertexAttributes:w(e,t,n),vertexSpace:r,transform:null};const{position:a,normal:c,tangent:l}=e,s=(0,x.Kk)(r,o);switch(r.type){case"georeferenced":return s?{vertexAttributes:M(e,t,i,n),vertexSpace:r,transform:null}:{vertexAttributes:{position:a,normal:c,tangent:l},vertexSpace:r,transform:new h.c};case"local":return{vertexAttributes:{position:a,normal:c,tangent:l},vertexSpace:r,transform:new h.c}}}function P(e,t,n){return(0,x.yO)(t.spatialReference,n?.geographic)?C(e,t,n):T(e,t,n)}function _(e,t,n,r,o){if(!(0,A.k$)(t))return P(e,r,o);const{spatialReference:i}=r,a=F(e,t,n,i);return r.equals((0,A.mA)(t,i))?T(a,r,o):P(a,r,o)}function b({positions:e,transform:t,vertexSpace:n,inSpatialReference:r,outSpatialReference:o,outPositions:s,localMode:h}){const A=n.origin??l.cX,x=null!=n.origin?t?.localMatrix??a.IJ:a.IJ;if("georeferenced"===n.type){const t=s??(0,y.Gg)(e.length);if((0,i.yK)(x,a.IJ)?(0,y.mw)(t,e):(0,m.a)(t,e,x),!(0,c.j)(A,l.cX)){const[e,n,r]=A;for(let o=0;o<t.length;o+=3)t[o]+=e,t[o+1]+=n,t[o+2]+=r}return(0,g.projectBuffer)(t,r,0,t,o,0,t.length/3),t}let d=r;const w=(0,p._s)(r);d=o.isWebMercator&&h||!(0,u.canProjectWithoutEngine)(r,w)?d:w,(0,f.y)(r,A,G,d),(0,i.iW)(G,G,x);const v=s??(0,y.Gg)(e.length);return(0,m.a)(v,e,G),(0,g.projectBuffer)(v,d,0,v,o,0,v.length/3),v}function M(e,t,n,r){const o=t.spatialReference,i=R(t,r,G),a=new Float64Array(e.position.length),c=function(e,t,n,r){(0,m.a)(r,e,t);const o=new Float64Array(e.length);return(0,d.o$)(r,o,n)}(e.position,i,o,a),l=(0,s.yy)(k,i),u=function(e,t,n,r,o){if(null==n)return null;const i=new Float32Array(n.length);return(0,m.b)(i,n,r),(0,d.QP)(i,e,t,o,i),i}(c,a,e.normal,l,o),p=function(e,t,n,r,o){if(null==n)return null;const i=new Float32Array(n.length);(0,m.b)(i,n,r,4);for(let e=3;e<i.length;e+=4)i[e]=n[e];return(0,d.Cr)(i,e,t,o,i),i}(c,a,e.tangent,l,o);if(n){const{x:e,y:n,z:r}=t;(0,m.t)(c,c,[-e,-n,-(r??0)])}return{position:c,normal:u,tangent:p}}function T(e,t,n){const r=new Float64Array(e.position.length),o=e.position,i=t.x,a=t.y,c=t.z??0,l=q(n?n.unit:null,t.spatialReference);for(let e=0;e<o.length;e+=3)r[e]=(o[e]-i)/l,r[e+1]=(o[e+1]-a)/l,r[e+2]=(o[e+2]-c)/l;return{position:r,normal:e.normal,tangent:e.tangent}}function C(e,t,n){const r=t.spatialReference;R(t,n,G);const o=(0,i.S_)(W,G),a=new Float64Array(e.position.length),c=function(e,t,n,r){const o=(0,d.K_)(e,t,r),i=new Float64Array(o.length);return(0,m.a)(i,o,n),i}(e.position,r,o,a),l=(0,s.yy)(k,o);return{position:c,normal:j(e.normal,e.position,a,r,l),tangent:O(e.tangent,e.position,a,r,l)}}function R(e,t,n){(0,f.y)(e.spatialReference,[e.x,e.y,e.z??0],n,(0,p._s)(e.spatialReference));const r=q(t?t.unit:null,e.spatialReference);return(0,i.aU)(n,n,[r,r,r]),n}function j(e,t,n,r,o){if(null==e)return null;const i=(0,d.cH)(e,t,n,r,new Float32Array(e.length));return(0,m.b)(i,i,o),i}function O(e,t,n,r,o){if(null==e)return null;const i=(0,d.GW)(e,t,n,r,new Float32Array(e.length));return(0,m.b)(i,i,o,4),i}function q(e,t){if(null==e)return 1;const n=(0,r.eg)(t);return 1/(0,r.ck)(n,"meters",e)}const G=(0,a.Su)(),W=(0,a.Su)(),k=(0,o.Su)()},38496:(e,t,n)=>{n.d(t,{AT:()=>F,Cr:()=>P,GW:()=>S,K_:()=>d,QP:()=>x,W4:()=>v,cH:()=>m,o$:()=>w});var r=n(66360),o=n(77556),i=n(68612),a=n(87104),c=n(98472),l=n(62484),s=n(82448),u=n(51120),p=n(62880),f=n(60544),g=n(29120),y=n(71004),h=n(48952);const A=()=>r.c.getLogger("esri.geometry.support.meshUtils.normalProjection");function m(e,t,n,r,o){return b(r)?(_(T.TO_PCPF,y.Yj.fromTypedArray(e),y.Ax.fromTypedArray(t),y.Ax.fromTypedArray(n),r,y.Yj.fromTypedArray(o)),o):(A().error("Cannot convert spatial reference to PCPF"),o)}function x(e,t,n,r,o){return b(r)?(_(T.FROM_PCPF,y.Yj.fromTypedArray(e),y.Ax.fromTypedArray(t),y.Ax.fromTypedArray(n),r,y.Yj.fromTypedArray(o)),o):(A().error("Cannot convert to spatial reference from PCPF"),o)}function d(e,t,n){return(0,p.projectBuffer)(e,t,0,n,(0,s._s)(t),0,e.length/3),n}function w(e,t,n){return(0,p.projectBuffer)(e,(0,s._s)(n),0,t,n,0,e.length/3),t}function v(e,t,n){return(0,o.yy)(q,n),(0,h.b)(t,e,q),(0,o.QT)(q)||(0,h.n)(t,t),t}function F(e,t,n){if((0,o.yy)(q,n),(0,h.b)(t,e,q,4),(0,o.QT)(q)||(0,h.n)(t,t,4),e!==t)for(let n=3;n<e.length;n+=4)t[n]=e[n];return t}function S(e,t,n,r,o){if(!b(r))return A().error("Cannot convert spatial reference to PCPF"),o;_(T.TO_PCPF,y.Yj.fromTypedArray(e,4*Float32Array.BYTES_PER_ELEMENT),y.Ax.fromTypedArray(t),y.Ax.fromTypedArray(n),r,y.Yj.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT));for(let t=3;t<e.length;t+=4)o[t]=e[t];return o}function P(e,t,n,r,o){if(!b(r))return A().error("Cannot convert to spatial reference from PCPF"),o;_(T.FROM_PCPF,y.Yj.fromTypedArray(e,16),y.Ax.fromTypedArray(t),y.Ax.fromTypedArray(n),r,y.Yj.fromTypedArray(o,16));for(let t=3;t<e.length;t+=4)o[t]=e[t];return o}function _(e,t,n,r,i,a){if(!t)return;const l=n.count,p=(0,s._s)(i);if(M(i))for(let n=0;n<l;n++)r.getVec(n,R),t.getVec(n,j),(0,u.y)(p,R,O,p),(0,o.kr)(q,O),e===T.FROM_PCPF&&(0,o.oL)(q,q),(0,c.t)(j,j,q),a.setVec(n,j);else for(let i=0;i<l;i++){r.getVec(i,R),t.getVec(i,j),(0,u.y)(p,R,O,p),(0,o.kr)(q,O);const l=(0,g.MB)(n.get(i,1));let s=Math.cos(l);e===T.TO_PCPF&&(s=1/s),q[0]*=s,q[1]*=s,q[2]*=s,q[3]*=s,q[4]*=s,q[5]*=s,e===T.FROM_PCPF&&(0,o.oL)(q,q),(0,c.t)(j,j,q),(0,c.n)(j,j),a.setVec(i,j)}return a}function b(e){return M(e)||function(e){return e.isWebMercator}(e)}function M(e){return e.isWGS84||(0,f.Ub)(e)||(0,f.qg)(e)||(0,f.UB)(e)}var T,C;(C=T||(T={}))[C.TO_PCPF=0]="TO_PCPF",C[C.FROM_PCPF=1]="FROM_PCPF";const R=(0,l.Su)(),j=(0,l.Su)(),O=(0,a.Su)(),q=(0,i.Su)()},21136:(e,t,n)=>{n.d(t,{Al:()=>y,GF:()=>h,_c:()=>f,k$:()=>p,mA:()=>g,mm:()=>A,wX:()=>u});var r=n(26832),o=n(66360),i=n(67776),a=n(51232),c=n(13708),l=n(48952);function s(){return o.c.getLogger("esri.geometry.Mesh")}function u(e){const{vertexSpace:t}=e;if(null!=t.origin)return e.clone();const{anchor:n}=e,r=n.clone(),o=new a.c({origin:[r.x,r.y,r.z]}),i=e.cloneWithVertexSpace(o),{position:c}=i.vertexAttributes;return i.vertexAttributes.position=(0,l.t)(new Float64Array(c.length),c,[-r.x,-r.y,-(r.z??0)]),i.vertexAttributesChanged(),i}function p(e){return null!=e.origin}function f(e){return p(e.vertexSpace)}function g(e,t){if(!p(e))return null;const[n,r,o]=e.origin;return new i.c({x:n,y:r,z:o,spatialReference:t})}function y(e,t){const{x:n,y:o,z:i,spatialReference:l}=e,u=[n,o,i??0];if(void 0!==t?.geographic){if((0,r.O2)(s(),"option: geographic",{replacement:"use vertexSpace option instead",version:"4.29",warnOnce:!0}),!t?.vertexSpace)return t?.geographic?new c.c({origin:u}):new a.c({origin:u});s().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")}if(!t?.vertexSpace)return l.isGeographic||l.isWebMercator?new c.c({origin:u}):new a.c({origin:u});switch(t.vertexSpace){case"local":return new c.c({origin:u});case"georeferenced":return new a.c({origin:u});case"georeferenced-absolute":return new a.c}}function h(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}function A(e,t){return"local"===e?new c.c({origin:t}):new a.c({origin:t})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5980],{98472:(t,n,e)=>{e.d(n,{A:()=>c,B:()=>s,C:()=>a,D:()=>b,E:()=>g,H:()=>R,a:()=>f,b:()=>h,c:()=>i,e:()=>U,f:()=>T,g:()=>A,h:()=>S,i:()=>M,j:()=>B,k:()=>L,l:()=>_,m:()=>D,n:()=>l,o:()=>y,p:()=>C,q:()=>I,r:()=>O,s:()=>o,t:()=>P,u:()=>d,v:()=>N,w:()=>w,x:()=>V,y:()=>u,z:()=>m});var r=e(62484),E=e(47364);function _(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function A(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function T(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function s(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function R(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function N(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function c(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function u(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function a(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function S(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function O(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function I(t,n){const e=n[0]-t[0],r=n[1]-t[1],E=n[2]-t[2];return Math.sqrt(e*e+r*r+E*E)}function f(t,n){const e=n[0]-t[0],r=n[1]-t[1],E=n[2]-t[2];return e*e+r*r+E*E}function C(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function M(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function l(t,n){const e=n[0],r=n[1],E=n[2];let _=e*e+r*r+E*E;return _>0&&(_=1/Math.sqrt(_),t[0]=n[0]*_,t[1]=n[1]*_,t[2]=n[2]*_),t}function L(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function h(t,n,e){const r=n[0],E=n[1],_=n[2],i=e[0],o=e[1],A=e[2];return t[0]=E*A-_*o,t[1]=_*i-r*A,t[2]=r*o-E*i,t}function D(t,n,e,r){const E=n[0],_=n[1],i=n[2];return t[0]=E+r*(e[0]-E),t[1]=_+r*(e[1]-_),t[2]=i+r*(e[2]-i),t}function U(t,n,e){const r=n[0],E=n[1],_=n[2];return t[0]=e[0]*r+e[4]*E+e[8]*_+e[12],t[1]=e[1]*r+e[5]*E+e[9]*_+e[13],t[2]=e[2]*r+e[6]*E+e[10]*_+e[14],t}function P(t,n,e){const r=n[0],E=n[1],_=n[2];return t[0]=r*e[0]+E*e[3]+_*e[6],t[1]=r*e[1]+E*e[4]+_*e[7],t[2]=r*e[2]+E*e[5]+_*e[8],t}function d(t,n,e){const r=e[0],E=e[1],_=e[2],i=e[3],o=n[0],A=n[1],T=n[2],s=E*T-_*A,R=_*o-r*T,N=r*A-E*o,c=E*N-_*R,u=_*s-r*N,a=r*R-E*s,S=2*i;return t[0]=o+s*S+2*c,t[1]=A+R*S+2*u,t[2]=T+N*S+2*a,t}const F=(0,r.Su)(),G=(0,r.Su)();function B(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function g(t,n,e){const r=e[0]-n[0],E=e[1]-n[1],_=e[2]-n[2];let i=r*r+E*E+_*_;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=E*i,t[2]=_*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const m=T,p=s,H=R,y=I,w=f,b=_,V=C;Object.freeze(Object.defineProperty({__proto__:null,abs:N,add:A,angle:function(t,n){l(F,t),l(G,n);const e=L(F,G);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,E,_){const i=1-_,o=i*i,A=_*_,T=o*i,s=3*_*o,R=3*A*i,N=A*_;return t[0]=n[0]*T+e[0]*s+r[0]*R+E[0]*N,t[1]=n[1]*T+e[1]*s+r[1]*R+E[1]*N,t[2]=n[2]*T+e[2]*s+r[2]*R+E[2]*N,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},copy:i,cross:h,direction:g,dist:y,distance:I,div:H,divide:R,dot:L,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],_=t[2],i=n[0],o=n[1],A=n[2],T=(0,E.Au)();return Math.abs(e-i)<=T*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-o)<=T*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(_-A)<=T*Math.max(1,Math.abs(_),Math.abs(A))},exactEquals:B,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,E,_){const i=_*_,o=i*(2*_-3)+1,A=i*(_-2)+_,T=i*(_-1),s=i*(3-2*_);return t[0]=n[0]*o+e[0]*A+r[0]*T+E[0]*s,t[1]=n[1]*o+e[1]*A+r[1]*T+E[1]*s,t[2]=n[2]*o+e[2]*A+r[2]*T+E[2]*s,t},inverse:M,len:b,length:_,lerp:D,max:a,min:u,mul:p,multiply:s,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},normalize:l,random:function(t,n){n=n||1;const e=E.QR,r=2*e()*Math.PI,_=2*e()-1,i=Math.sqrt(1-_*_)*n;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=_*n,t},rotateX:function(t,n,e,r){const E=[],_=[];return E[0]=n[0]-e[0],E[1]=n[1]-e[1],E[2]=n[2]-e[2],_[0]=E[0],_[1]=E[1]*Math.cos(r)-E[2]*Math.sin(r),_[2]=E[1]*Math.sin(r)+E[2]*Math.cos(r),t[0]=_[0]+e[0],t[1]=_[1]+e[1],t[2]=_[2]+e[2],t},rotateY:function(t,n,e,r){const E=[],_=[];return E[0]=n[0]-e[0],E[1]=n[1]-e[1],E[2]=n[2]-e[2],_[0]=E[2]*Math.sin(r)+E[0]*Math.cos(r),_[1]=E[1],_[2]=E[2]*Math.cos(r)-E[0]*Math.sin(r),t[0]=_[0]+e[0],t[1]=_[1]+e[1],t[2]=_[2]+e[2],t},rotateZ:function(t,n,e,r){const E=[],_=[];return E[0]=n[0]-e[0],E[1]=n[1]-e[1],E[2]=n[2]-e[2],_[0]=E[0]*Math.cos(r)-E[1]*Math.sin(r),_[1]=E[0]*Math.sin(r)+E[1]*Math.cos(r),_[2]=E[2],t[0]=_[0]+e[0],t[1]=_[1]+e[1],t[2]=_[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:S,scaleAndAdd:O,set:o,sign:c,sqrDist:w,sqrLen:V,squaredDistance:f,squaredLength:C,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:m,subtract:T,transformMat3:P,transformMat4:U,transformQuat:d},Symbol.toStringTag,{value:"Module"}))},85256:(t,n,e)=>{function r(){return[0,0]}function E(t,n){return[t,n]}function _(){return E(1,1)}function i(){return E(1,0)}function o(){return E(0,1)}e.d(n,{Qw:()=>A,Su:()=>r,WK:()=>E});const A=_(),T=i(),s=o();Object.freeze(Object.defineProperty({__proto__:null,ONES:A,UNIT_X:T,UNIT_Y:s,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:function(t,n){return new Float64Array(t,n,2)},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:E,ones:_,unitX:i,unitY:o,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},62484:(t,n,e)=>{function r(){return[0,0,0]}function E(t){return[t[0],t[1],t[2]]}function _(t,n,e){return[t,n,e]}function i(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function o(){return _(1,1,1)}function A(){return _(1,0,0)}function T(){return _(0,1,0)}function s(){return _(0,0,1)}e.d(n,{IR:()=>u,Qw:()=>N,Su:()=>r,UV:()=>c,WK:()=>_,cX:()=>R,ct:()=>E,eu:()=>i,wx:()=>a});const R=[0,0,0],N=o(),c=A(),u=T(),a=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:N,UNIT_X:c,UNIT_Y:u,UNIT_Z:a,ZEROS:R,clone:E,create:r,createView:function(t,n){return new Float64Array(t,n,3)},fromArray:i,fromValues:_,ones:o,unitX:A,unitY:T,unitZ:s,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},47364:(t,n,e)=>{e.d(n,{Af:()=>A,Au:()=>E,QR:()=>_,Yf:()=>T});let r=1e-6;function E(){return r}const _=Math.random,i=Math.PI/180,o=180/Math.PI;function A(t){return t*i}function T(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:_,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:E,setEpsilon:function(t){r=t},toDegree:T,toRadian:A},Symbol.toStringTag,{value:"Module"}))},53648:(t,n,e)=>{e.d(n,{Cq:()=>o,EF:()=>T,Iv:()=>I,SE:()=>C,UB:()=>s,Uj:()=>R,aU:()=>A,gJ:()=>S,gP:()=>c,ig:()=>f,qk:()=>i,sj:()=>N,w7:()=>_});var r=e(98472);const E=new Float32Array(1);function _(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function i(t,n,e){return Math.min(Math.max(t,n),e)}function o(t,n,e){return t+(n-t)*e}function A(t,n,e,r,E){return o(r,E,(t-n)/(e-n))}function T(t){return t*Math.PI/180}function s(t){return 180*t/Math.PI}function R(t){return Math.acos(i(t,-1,1))}function N(t){return Math.asin(i(t,-1,1))}function c(t,n,e=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=e}const u=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const a=BigInt("1000000");function S(t){return O(Math.max(-C,Math.min(t,C)))}function O(t){return E[0]=t,E[0]}function I(t,n){const e=(0,r.l)(t),E=N(t[2]/e),_=Math.atan2(t[1]/e,t[0]/e);return(0,r.s)(n,e,E,_),n}function f(t){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],e=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(c(n,1)&&c(e,1)&&c(r,1))}!function(t){const n=function(t){return u.setFloat64(0,t),u.getBigInt64(0)}(t=Math.abs(t)),e=function(t){return u.setBigInt64(0,t),u.getFloat64(0)}(n<=a?a:n-a);Math.abs(t-e)}(1);const C=O(34028234663852886e22)},92896:(t,n,e)=>{e.d(n,{mc:()=>E});var r=e(72008);function E(t,n=!1){return t<=r._?n?new Array(t).fill(0):new Array(t):new Float32Array(t)}},97143:(t,n,e)=>{e.d(n,{Uv:()=>E,aw:()=>_,yh:()=>T});var r=e(72008);function E(t){if((0,r.c7)(t)){if(t.length<r._)return t}else if(t.length<r._)return Array.from(t);let n=!0,e=!0;return t.some(((t,r)=>(n=n&&0===t,e=e&&t===r,!n&&!e))),n?function(t){if(1===t)return o;if(t<r._)return new Array(t).fill(0);if(t>s.length){const n=Math.max(2*s.length,t);s=new Uint8Array(n)}return new Uint8Array(s.buffer,0,t)}(t.length):e?T(t.length):(0,r.c7)(t)||t.BYTES_PER_ELEMENT!==Uint16Array.BYTES_PER_ELEMENT?function(t){let n=!0;for(const e of t){if(e>=65536)return(0,r.c7)(t)?new Uint32Array(t):t;e>=256&&(n=!1)}return n?new Uint8Array(t):new Uint16Array(t)}(t):t}function _(t){return t<=r._?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let i=(()=>{const t=new Uint32Array(131072);for(let n=0;n<t.length;++n)t[n]=n;return t})();const o=[0],A=(()=>{const t=new Uint16Array(65536);for(let n=0;n<t.length;++n)t[n]=n;return t})();function T(t){if(1===t)return o;if(t<r._)return Array.from(new Uint16Array(A.buffer,0,t));if(t<A.length)return new Uint16Array(A.buffer,0,t);if(t>i.length){const n=Math.max(2*i.length,t);i=new Uint32Array(n);for(let t=0;t<i.length;t++)i[t]=t}return new Uint32Array(i.buffer,0,t)}let s=new Uint8Array(65536)},98132:(t,n,e)=>{function r(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}e.d(n,{Ad:()=>r})},77080:(t,n,e)=>{e.d(n,{g:()=>_});var r=e(53648),E=e(97143);function _(t,n,e){const _=Array.isArray(t),s=_?t.length/n:t.byteLength/(4*n),R=_?t:new Uint32Array(t,0,s*n),N=e?.minReduction??0,c=e?.originalIndices||null,u=c?c.length:0,a=e?.componentOffsets||null;let S=0;if(a)for(let t=0;t<a.length-1;t++){const n=a[t+1]-a[t];n>S&&(S=n)}else S=s;const O=Math.floor(1.1*S)+1;(null==T||T.length<2*O)&&(T=new Uint32Array((0,r.w7)(2*O)));for(let t=0;t<2*O;t++)T[t]=0;let I=0;const f=!!a&&!!c,C=f?u:s;let M=(0,E.aw)(s);const l=new Uint32Array(u),L=1.96;let h=0!==N?Math.ceil(4*L*L/(N*N)*N*(1-N)):C,D=1,U=a?a[1]:C;for(let t=0;t<C;t++){if(t===h){const n=1-I/t;if(n+L*Math.sqrt(n*(1-n)/t)<N)return null;h*=2}if(t===U){for(let t=0;t<2*O;t++)T[t]=0;if(c)for(let t=a[D-1];t<a[D];t++)l[t]=M[c[t]];U=a[++D]}const e=f?c[t]:t,r=e*n,E=A(R,r,n);let _=E%O,o=I;for(;0!==T[2*_+1];){if(T[2*_]===E){const t=T[2*_+1]-1;if(i(R,r,t*n,n)){o=M[t];break}}_++,_>=O&&(_-=O)}o===I&&(T[2*_]=E,T[2*_+1]=e+1,I++),M[e]=o}if(0!==N&&1-I/s<N)return null;if(f){for(let t=a[D-1];t<l.length;t++)l[t]=M[c[t]];M=(0,E.Uv)(l)}const P=_?new Array(I):new Uint32Array(I*n);I=0;for(let t=0;t<C;t++)M[t]===I&&(o(R,(f?c[t]:t)*n,P,I*n,n),I++);if(c&&!f){const t=new Uint32Array(u);for(let n=0;n<t.length;n++)t[n]=M[c[n]];M=(0,E.Uv)(t)}return{buffer:Array.isArray(P)?P:P.buffer,indices:M,uniqueCount:I}}function i(t,n,e,r){for(let E=0;E<r;E++)if(t[n+E]!==t[e+E])return!1;return!0}function o(t,n,e,r,E){for(let _=0;_<E;_++)e[r+_]=t[n+_]}function A(t,n,e){let r=0;for(let E=0;E<e;E++)r=t[n+E]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let T=null},72364:(t,n,e)=>{e.d(n,{U1:()=>T,iC:()=>A});var r=e(71004),E=e(98132),_=e(90736);class i{constructor(t,n){this.layout=t,this.buffer="number"==typeof n?new ArrayBuffer(n*t.stride):n;for(const n of t.fields.keys()){const e=t.fields.get(n);this[n]=new e.constructor(this.buffer,e.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(t,n){const e=this[t];return e&&e.elementCount===n.ElementCount&&e.elementType===n.ElementType?e:null}slice(t,n){return new i(this.layout,this.buffer.slice(t*this.stride,n*this.stride))}copyFrom(t,n=0,e=0,r=t.count){const E=this.stride;if(E%4==0){const _=new Uint32Array(t.buffer,n*E,r*E/4);new Uint32Array(this.buffer,e*E,r*E/4).set(_)}else{const _=new Uint8Array(t.buffer,n*E,r*E);new Uint8Array(this.buffer,e*E,r*E).set(_)}return this}get usedMemory(){return this.byteLength}dispose(){}}class o{constructor(t=null){this._stride=0,this._lastAligned=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach((t=>this._fields.set(t[0],{...t[1],constructor:N(t[1].constructor)}))))}vec2f(t,n){return this._appendField(t,r.U7,n),this}vec2f64(t,n){return this._appendField(t,r.wT,n),this}vec3f(t,n){return this._appendField(t,r.Yj,n),this}vec3f64(t,n){return this._appendField(t,r.Ax,n),this}vec4f(t,n){return this._appendField(t,r._5,n),this}vec4f64(t,n){return this._appendField(t,r.Ip,n),this}mat3f(t,n){return this._appendField(t,r.Ko,n),this}mat3f64(t,n){return this._appendField(t,r.m_,n),this}mat4f(t,n){return this._appendField(t,r.IL,n),this}mat4f64(t,n){return this._appendField(t,r.mF,n),this}vec4u8(t,n){return this._appendField(t,r.sb,n),this}f32(t,n){return this._appendField(t,r.AZ,n),this}f64(t,n){return this._appendField(t,r.oN,n),this}u8(t,n){return this._appendField(t,r.Kg,n),this}u16(t,n){return this._appendField(t,r.E_,n),this}i8(t,n){return this._appendField(t,r.kV,n),this}vec2i8(t,n){return this._appendField(t,r.oR,n),this}vec2i16(t,n){return this._appendField(t,r.iN,n),this}vec2u8(t,n){return this._appendField(t,r.eS,n),this}vec4u16(t,n){return this._appendField(t,r.Ig,n),this}u32(t,n){return this._appendField(t,r.Ym,n),this}_appendField(t,n,e){if(this._fields.has(t))return void(0,_.Uc)(!1,`${t} already added to vertex buffer layout`);const r=n.ElementCount*(0,E.Ad)(n.ElementType),i=this._stride;this._stride+=r,this._fields.set(t,{size:r,constructor:n,offset:i,optional:e})}createBuffer(t){return new i(this,t)}createView(t){return new i(this,t)}clone(){const t=new o;return t._stride=this._stride,t._fields=new Map,this._fields.forEach(((n,e)=>t._fields.set(e,n))),t.BufferType=this.BufferType,t}get stride(){if(this._lastAligned!==this._fields.size){let t=1;this._fields.forEach((n=>t=Math.max(t,(0,E.Ad)(n.constructor.ElementType)))),this._stride=Math.floor((this._stride+t-1)/t)*t,this._lastAligned=this._fields.size}return this._stride}get fields(){return this._fields}}function A(){return new o}class T{constructor(t){this.fields=new Array,t.fields.forEach(((t,n)=>{const e={...t,constructor:R(t.constructor)};this.fields.push([n,e])})),this.stride=t.stride}}const s=[r.AZ,r.U7,r.Yj,r._5,r.Ko,r.IL,r.oN,r.wT,r.Ax,r.Ip,r.m_,r.mF,r.Kg,r.eS,r.IN,r.sb,r.E_,r.kg,r.k5,r.Ig,r.Ym,r.qZ,r.ER,r.q$,r.kV,r.oR,r.Oq,r.mq,r.Mt,r.iN,r.g7,r.OS,r.Ep,r.mI,r.Yv,r.i9];function R(t){return`${t.ElementType}_${t.ElementCount}`}function N(t){return c.get(t)}const c=new Map;s.forEach((t=>c.set(R(t),t)))},73440:(t,n,e)=>{e.d(n,{W:()=>_});var r=e(77800),E=e(91811);function _(t,n=0){const e=t.stride;return Array.from(t.fields.keys()).map((r=>{const _=t.fields.get(r),o=_.constructor.ElementCount,A=i(_.constructor.ElementType),T=_.offset,s=!(!_.optional||!_.optional.glNormalized);return new E.q(r,o,A,T,e,s,n)}))}function i(t){const n=o[t];if(n)return n;throw new Error("BufferType not supported in WebGL")}const o={u8:r.Ck.UNSIGNED_BYTE,u16:r.Ck.UNSIGNED_SHORT,u32:r.Ck.UNSIGNED_INT,i8:r.Ck.BYTE,i16:r.Ck.SHORT,i32:r.Ck.INT,f32:r.Ck.FLOAT}},90736:(t,n,e)=>{e.d(n,{If:()=>_,Uc:()=>E}),e(85256),e(74784),(0,e(37008).Su)();class r{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function E(t,n){if(!t){n=n||"Assertion";const t=new Error(n).stack;throw new r(`${n} at ${t}`)}}function _(t,n,e,r){let E,_=(e[0]-t[0])/n[0],i=(r[0]-t[0])/n[0];_>i&&(E=_,_=i,i=E);let o=(e[1]-t[1])/n[1],A=(r[1]-t[1])/n[1];if(o>A&&(E=o,o=A,A=E),_>A||o>i)return!1;o>_&&(_=o),A<i&&(i=A);let T=(e[2]-t[2])/n[2],s=(r[2]-t[2])/n[2];return T>s&&(E=T,T=s,s=E),!(_>s||T>i||(s<i&&(i=s),i<0))}},4636:(t,n,e)=>{var r;e.d(n,{K:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.PREVPOSITION="prevPosition",t.NEXTPOSITION="nextPosition",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))},80036:(t,n,e)=>{e.d(n,{If:()=>i,sn:()=>A,wj:()=>T});var r=e(73440),E=e(72364),_=e(4636);const i=(0,E.iC)().vec3f(_.K.POSITION).u16(_.K.COMPONENTINDEX),o=(0,E.iC)().vec2u8(_.K.SIDENESS),A=((0,r.W)(o),(0,E.iC)().vec3f(_.K.POSITION0).vec3f(_.K.POSITION1).vec2i16(_.K.NORMALCOMPRESSED).u16(_.K.COMPONENTINDEX).u8(_.K.VARIANTOFFSET,{glNormalized:!0}).u8(_.K.VARIANTSTROKE).u8(_.K.VARIANTEXTENSION,{glNormalized:!0})),T=(0,E.iC)().vec3f(_.K.POSITION0).vec3f(_.K.POSITION1).vec2i16(_.K.NORMALCOMPRESSED).vec2i16(_.K.NORMAL2COMPRESSED).u16(_.K.COMPONENTINDEX).u8(_.K.VARIANTOFFSET,{glNormalized:!0}).u8(_.K.VARIANTSTROKE).u8(_.K.VARIANTEXTENSION,{glNormalized:!0});new Map([[_.K.POSITION0,0],[_.K.POSITION1,1],[_.K.COMPONENTINDEX,2],[_.K.VARIANTOFFSET,3],[_.K.VARIANTSTROKE,4],[_.K.VARIANTEXTENSION,5],[_.K.NORMALCOMPRESSED,6],[_.K.NORMAL2COMPRESSED,7],[_.K.SIDENESS,8]])},79968:(t,n,e)=>{e.d(n,{k:()=>s});var r=e(92400),E=e(53648),_=e(98472),i=e(62484);const o=-1;var A,T;function s(t,n,e,i=O){const A=t.vertices.position,T=t.vertices.componentIndex,s=(0,E.EF)(i.anglePlanar),S=(0,E.EF)(i.angleSignificantEdge),I=Math.cos(S),f=Math.cos(s),C=a.edge,M=C.position0,l=C.position1,L=C.faceNormal0,h=C.faceNormal1,D=u(t),U=function(t){const n=t.faces.length/3,e=t.faces,r=t.neighbors;let E=0;for(let t=0;t<n;t++){const n=r[3*t],_=r[3*t+1],i=r[3*t+2],A=e[3*t],T=e[3*t+1],s=e[3*t+2];E+=n===o||A<T?1:0,E+=_===o||T<s?1:0,E+=i===o||s<A?1:0}const _=new Int32Array(4*E);let i=0;for(let t=0;t<n;t++){const n=r[3*t],E=r[3*t+1],A=r[3*t+2],T=e[3*t],s=e[3*t+1],R=e[3*t+2];(n===o||T<s)&&(_[i++]=T,_[i++]=s,_[i++]=t,_[i++]=n),(E===o||s<R)&&(_[i++]=s,_[i++]=R,_[i++]=t,_[i++]=E),(A===o||R<T)&&(_[i++]=R,_[i++]=T,_[i++]=t,_[i++]=A)}return _}(t),P=U.length/4,d=n.allocate(P);let F=0;const G=P,B=e.allocate(G);let g=0,m=0,p=0;const H=(0,r.ik)(0,P),y=new Float32Array(P);y.forEach(((t,n,e)=>{A.getVec(U[4*n],M),A.getVec(U[4*n+1],l),e[n]=(0,_.q)(M,l)})),H.sort(((t,n)=>y[n]-y[t]));const w=new Array,b=new Array;for(let t=0;t<P;t++){const r=H[t],E=y[r],i=U[4*r],u=U[4*r+1],a=U[4*r+2],S=U[4*r+3],O=S===o;if(A.getVec(i,M),A.getVec(u,l),O)(0,_.s)(L,D[3*a],D[3*a+1],D[3*a+2]),(0,_.c)(h,L),C.componentIndex=T.get(i),C.cosAngle=(0,_.k)(L,h);else{if((0,_.s)(L,D[3*a],D[3*a+1],D[3*a+2]),(0,_.s)(h,D[3*S],D[3*S+1],D[3*S+2]),C.componentIndex=T.get(i),C.cosAngle=(0,_.k)(L,h),N(C,f))continue;C.cosAngle<-.9999&&(0,_.c)(h,L)}m+=E,p++,O||R(C,I)?(n.write(d,F++,C),w.push(E)):c(C,s)&&(e.write(B,g++,C),b.push(E))}const V=new Float32Array(w.reverse()),v=new Float32Array(b.reverse());return{regular:{instancesData:n.trim(d,F),lodInfo:{lengths:V}},silhouette:{instancesData:e.trim(B,g),lodInfo:{lengths:v}},averageEdgeLength:m/p}}function R(t,n){return t.cosAngle<n}function N(t,n){return t.cosAngle>n}function c(t,n){const e=(0,E.Uj)(t.cosAngle),r=a.fwd,i=a.ortho;return(0,_.E)(r,t.position1,t.position0),e*((0,_.k)((0,_.b)(i,t.faceNormal0,t.faceNormal1),r)>0?-1:1)>n}function u(t){const n=t.faces.length/3,e=t.vertices.position,r=t.faces,E=S.v0,i=S.v1,o=S.v2,A=new Float32Array(3*n);for(let t=0;t<n;t++){const n=r[3*t],T=r[3*t+1],s=r[3*t+2];e.getVec(n,E),e.getVec(T,i),e.getVec(s,o),(0,_.f)(i,i,E),(0,_.f)(o,o,E),(0,_.b)(E,i,o),(0,_.n)(E,E),A[3*t]=E[0],A[3*t+1]=E[1],A[3*t+2]=E[2]}return A}(T=A||(A={}))[T.SOLID=0]="SOLID",T[T.SKETCH=1]="SKETCH";const a={edge:{position0:(0,i.Su)(),position1:(0,i.Su)(),faceNormal0:(0,i.Su)(),faceNormal1:(0,i.Su)(),componentIndex:0,cosAngle:0},ortho:(0,i.Su)(),fwd:(0,i.Su)()},S={v0:(0,i.Su)(),v1:(0,i.Su)(),v2:(0,i.Su)()},O={anglePlanar:4,angleSignificantEdge:35}},75980:(t,n,e)=>{e.d(n,{Aj:()=>d,or:()=>p,In:()=>F,qu:()=>m});var r=e(77080);function E(t,n,e){const r=n/3,E=new Uint32Array(e+1),_=new Uint32Array(e+1),i=(t,n)=>{t<n?E[t+1]++:_[n+1]++};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],E=t[3*n+2];i(e,r),i(r,E),i(E,e)}let o=0,A=0;for(let t=0;t<e;t++){const n=E[t+1],e=_[t+1];E[t+1]=o,_[t+1]=A,o+=n,A+=e}const T=new Uint32Array(6*r),s=E[e],R=(t,n,e)=>{if(t<n){const r=E[t+1]++;T[2*r]=n,T[2*r+1]=e}else{const r=_[n+1]++;T[2*s+2*r]=t,T[2*s+2*r+1]=e}};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],E=t[3*n+2];R(e,r,n),R(r,E,n),R(E,e,n)}const N=(t,n)=>{const e=2*t,r=n-t;for(let t=1;t<r;t++){const n=T[e+2*t],r=T[e+2*t+1];let E=t-1;for(;E>=0&&T[e+2*E]>n;E--)T[e+2*E+2]=T[e+2*E],T[e+2*E+3]=T[e+2*E+1];T[e+2*E+2]=n,T[e+2*E+3]=r}};for(let t=0;t<e;t++)N(E[t],E[t+1]),N(s+_[t],s+_[t+1]);const c=new Int32Array(3*r),u=(n,e)=>n===t[3*e]?0:n===t[3*e+1]?1:n===t[3*e+2]?2:-1,a=(t,n)=>{const e=u(t,n);c[3*n+e]=-1},S=(t,n,e,r)=>{const E=u(t,n);c[3*n+E]=r;const _=u(e,r);c[3*r+_]=n};for(let t=0;t<e;t++){let n=E[t];const e=E[t+1];let r=_[t];const i=_[t+1];for(;n<e&&r<i;){const e=T[2*n],E=T[2*s+2*r];e===E?(S(t,T[2*n+1],E,T[2*s+2*r+1]),n++,r++):e<E?(a(t,T[2*n+1]),n++):(a(E,T[2*s+2*r+1]),r++)}for(;n<e;)a(t,T[2*n+1]),n++;for(;r<i;)a(T[2*s+2*r],T[2*s+2*r+1]),r++}return c}var _=e(72364),i=e(4636),o=e(80036),A=e(72052),T=e(98472),s=e(62484),R=e(73440),N=e(53648);function c(t,n,e,r,E,_=2){const i=1/(Math.abs(e)+Math.abs(r)+Math.abs(E)),o=e*i,A=r*i,T=E<=0?(o>=0?1:-1)*(1-Math.abs(A)):o,s=E<=0?(A>=0?1:-1)*(1-Math.abs(o)):A,R=n*_;t[R]=u(T),t[R+1]=u(s)}function u(t){return(0,N.qk)(Math.round(32767*t),-32767,32767)}e(92896);class a{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?C:f}write(t,n,e){const r=this._edgeHashFunction(e);U.seed=r;const E=U.getIntRange(0,255),_=U.getIntRange(0,this.settings.variants-1),i=U.getFloat(),o=255*(.5*function(t,n){const e=t<0?-1:1;return Math.abs(t)**1.2*e}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex),t.variantOffset.set(n,E),t.variantStroke.set(n,_),t.variantExtension.set(n,o)}trim(t,n){return t.slice(0,n)}}const S=new Float32Array(6),O=new Uint32Array(S.buffer),I=new Uint32Array(1);function f(t){const n=S;n[0]=t.position0[0],n[1]=t.position0[1],n[2]=t.position0[2],n[3]=t.position1[0],n[4]=t.position1[1],n[5]=t.position1[2],I[0]=5381;for(let t=0;t<O.length;t++)I[0]=31*I[0]+O[t];return I[0]}function C(t){const n=S;n[0]=l(t.position0[0]),n[1]=l(t.position0[1]),n[2]=l(t.position0[2]),n[3]=l(t.position1[0]),n[4]=l(t.position1[1]),n[5]=l(t.position1[2]),I[0]=5381;for(let t=0;t<O.length;t++)I[0]=31*I[0]+O[t];return I[0]}const M=1e4;function l(t){return Math.round(t*M)/M}class L{constructor(){this._commonWriter=new a}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return o.sn.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e),(0,T.g)(D,e.faceNormal0,e.faceNormal1),(0,T.n)(D,D);const{typedBuffer:r,typedBufferStride:E}=t.normalCompressed;c(r,n,D[0],D[1],D[2],E)}trim(t,n){return this._commonWriter.trim(t,n)}}L.Layout=o.sn,L.glLayout=(0,R.W)(o.sn,1);class h{constructor(){this._commonWriter=new a}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return o.wj.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e);{const{typedBuffer:r,typedBufferStride:E}=t.normalCompressed;c(r,n,e.faceNormal0[0],e.faceNormal0[1],e.faceNormal0[2],E)}{const{typedBuffer:r,typedBufferStride:E}=t.normal2Compressed;c(r,n,e.faceNormal1[0],e.faceNormal1[1],e.faceNormal1[2],E)}}trim(t,n){return this._commonWriter.trim(t,n)}}h.Layout=o.wj,h.glLayout=(0,R.W)(o.wj,1);const D=(0,s.Su)(),U=new A.c;var P=e(79968);function d(t){const n=F(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return B.updateSettings(t.writerSettings),g.updateSettings(t.writerSettings),(0,P.k)(n,B,g)}function F(t,n,e,_){if(n){const n=E(e,_,t.count);return new G(e,_,n,t)}const i=(0,r.g)(t.buffer,t.stride/4,{originalIndices:e,originalIndicesLength:_}),A=E(i.indices,_,i.uniqueCount);return{faces:i.indices,facesLength:i.indices.length,neighbors:A,vertices:o.If.createView(i.buffer)}}class G{constructor(t,n,e,r){this.faces=t,this.facesLength=n,this.neighbors=e,this.vertices=r}}const B=new L,g=new h,m=(0,_.iC)().vec3f(i.K.POSITION0).vec3f(i.K.POSITION1),p=(0,_.iC)().vec3f(i.K.POSITION0).vec3f(i.K.POSITION1).u16(i.K.COMPONENTINDEX)},91811:(t,n,e)=>{e.d(n,{q:()=>r});class r{constructor(t,n,e,r,E,_=!1,i=0){this.name=t,this.count=n,this.type=e,this.offset=r,this.stride=E,this.normalized=_,this.divisor=i}}},77800:(t,n,e)=>{var r,E,_,i,o,A,T,s,R,N,c,u,a,S,O,I,f,C,M,l,L,h,D;e.d(n,{Ck:()=>s,GE:()=>U,Gs:()=>M,Id:()=>S,K:()=>o,OK:()=>I,QD:()=>N,Qb:()=>f,Qx:()=>h,Qz:()=>u,SC:()=>A,UV:()=>O,Ud:()=>c,Uf:()=>E,YT:()=>i,_m:()=>C,c5:()=>a,et:()=>R,kl:()=>l,sl:()=>r,sr:()=>P,vs:()=>T,w$:()=>_,y4:()=>L}),function(t){t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(r||(r={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(E||(E={})),function(t){t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(_||(_={})),function(t){t[t.ADD=32774]="ADD",t[t.MIN=32775]="MIN",t[t.MAX=32776]="MAX",t[t.SUBTRACT=32778]="SUBTRACT",t[t.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(i||(i={})),function(t){t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",t[t.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",t[t.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",t[t.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",t[t.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",t[t.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(o||(o={})),function(t){t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(A||(A={})),function(t){t[t.CW=2304]="CW",t[t.CCW=2305]="CCW"}(T||(T={})),function(t){t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT"}(s||(s={})),function(t){t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS"}(R||(R={})),function(t){t[t.ZERO=0]="ZERO",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP"}(N||(N={})),function(t){t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(c||(c={})),function(t){t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(u||(u={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_3D=32879]="TEXTURE_3D",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(a||(a={})),function(t){t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.RED=6403]="RED",t[t.RG=33319]="RG",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER"}(S||(S={})),function(t){t[t.RGBA4=32854]="RGBA4",t[t.R16F=33325]="R16F",t[t.RG16F=33327]="RG16F",t[t.RGB32F=34837]="RGB32F",t[t.RGBA16F=34842]="RGBA16F",t[t.R32F=33326]="R32F",t[t.RG32F=33328]="RG32F",t[t.RGBA32F=34836]="RGBA32F",t[t.R11F_G11F_B10F=35898]="R11F_G11F_B10F",t[t.RGB8=32849]="RGB8",t[t.RGBA8=32856]="RGBA8",t[t.RGB5_A1=32855]="RGB5_A1",t[t.R8=33321]="R8",t[t.RG8=33323]="RG8",t[t.R8I=33329]="R8I",t[t.R8UI=33330]="R8UI",t[t.R16I=33331]="R16I",t[t.R16UI=33332]="R16UI",t[t.R32I=33333]="R32I",t[t.R32UI=33334]="R32UI",t[t.RG8I=33335]="RG8I",t[t.RG8UI=33336]="RG8UI",t[t.RG16I=33337]="RG16I",t[t.RG16UI=33338]="RG16UI",t[t.RG32I=33339]="RG32I",t[t.RG32UI=33340]="RG32UI",t[t.RGB16F=34843]="RGB16F",t[t.RGB9_E5=35901]="RGB9_E5",t[t.SRGB8=35905]="SRGB8",t[t.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",t[t.RGB565=36194]="RGB565",t[t.RGBA32UI=36208]="RGBA32UI",t[t.RGB32UI=36209]="RGB32UI",t[t.RGBA16UI=36214]="RGBA16UI",t[t.RGB16UI=36215]="RGB16UI",t[t.RGBA8UI=36220]="RGBA8UI",t[t.RGB8UI=36221]="RGB8UI",t[t.RGBA32I=36226]="RGBA32I",t[t.RGB32I=36227]="RGB32I",t[t.RGBA16I=36232]="RGBA16I",t[t.RGB16I=36233]="RGB16I",t[t.RGBA8I=36238]="RGBA8I",t[t.RGB8I=36239]="RGB8I",t[t.R8_SNORM=36756]="R8_SNORM",t[t.RG8_SNORM=36757]="RG8_SNORM",t[t.RGB8_SNORM=36758]="RGB8_SNORM",t[t.RGBA8_SNORM=36759]="RGBA8_SNORM",t[t.RGB10_A2=32857]="RGB10_A2",t[t.RGB10_A2UI=36975]="RGB10_A2UI"}(O||(O={})),function(t){t[t.FLOAT=5126]="FLOAT",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.INT=5124]="INT",t[t.HALF_FLOAT=5131]="HALF_FLOAT",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(I||(I={})),function(t){t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",t[t.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",t[t.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",t[t.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(f||(f={})),function(t){t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_READ=35045]="STATIC_READ",t[t.DYNAMIC_READ=35049]="DYNAMIC_READ",t[t.STREAM_READ=35041]="STREAM_READ",t[t.STATIC_COPY=35046]="STATIC_COPY",t[t.DYNAMIC_COPY=35050]="DYNAMIC_COPY",t[t.STREAM_COPY=35042]="STREAM_COPY"}(C||(C={})),function(t){t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER"}(M||(M={})),function(t){t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",t[t.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(l||(l={})),function(t){t[t.Texture=0]="Texture",t[t.BufferObject=1]="BufferObject",t[t.VertexArrayObject=2]="VertexArrayObject",t[t.Shader=3]="Shader",t[t.Program=4]="Program",t[t.FramebufferObject=5]="FramebufferObject",t[t.Renderbuffer=6]="Renderbuffer",t[t.TransformFeedback=7]="TransformFeedback",t[t.Sync=8]="Sync",t[t.UNCOUNTED=9]="UNCOUNTED",t[t.LinesOfCode=9]="LinesOfCode",t[t.Uniform=10]="Uniform",t[t.COUNT=11]="COUNT"}(L||(L={})),function(t){t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",t[t.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",t[t.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",t[t.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",t[t.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",t[t.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",t[t.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",t[t.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",t[t.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",t[t.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",t[t.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",t[t.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",t[t.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",t[t.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",t[t.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(h||(h={})),function(t){t[t.NONE=0]="NONE",t[t.BACK=1029]="BACK"}(D||(D={}));const U=33306;var P,d,F,G,B,g,m;!function(t){t[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",t[t.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",t[t.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",t[t.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",t[t.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",t[t.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",t[t.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",t[t.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(P||(P={})),function(t){t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT=5124]="INT",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",t[t.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",t[t.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",t[t.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",t[t.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",t[t.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",t[t.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",t[t.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",t[t.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",t[t.SAMPLER_3D=35679]="SAMPLER_3D",t[t.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",t[t.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",t[t.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",t[t.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",t[t.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",t[t.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",t[t.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",t[t.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",t[t.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",t[t.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",t[t.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",t[t.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(d||(d={})),function(t){t[t.OBJECT_TYPE=37138]="OBJECT_TYPE",t[t.SYNC_CONDITION=37139]="SYNC_CONDITION",t[t.SYNC_STATUS=37140]="SYNC_STATUS",t[t.SYNC_FLAGS=37141]="SYNC_FLAGS"}(F||(F={})),function(t){t[t.UNSIGNALED=37144]="UNSIGNALED",t[t.SIGNALED=37145]="SIGNALED"}(G||(G={})),function(t){t[t.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",t[t.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",t[t.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",t[t.WAIT_FAILED=37149]="WAIT_FAILED"}(B||(B={})),function(t){t[t.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(g||(g={})),function(t){t[t.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(m||(m={}))}}]);