@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
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1964],{24832:(e,t,r)=>{r.d(t,{O:()=>a});var o=r(6220),n=(r(2600),r(20744)),i=r(66360),s=r(28176);function a(e){if(!o.default.assetsPath)throw i.c.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.c("assets:path-not-set","config.assetsPath is not set");return(0,s.kn)(o.default.assetsPath,e)}},40800:(e,t,r)=>{r.d(t,{P:()=>l,a:()=>c,g:()=>u,h:()=>h,i:()=>a,j:()=>T,l:()=>f,p:()=>R});var o=r(24832),n=r(9456);let i,s=null;function a(){return!!s}function f(){return i||(i=r.e(6908).then(r.bind(r,96908)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,o.O)(`esri/geometry/support/${e}`)}))).then((e=>{y(e)})),i)}var u,c,l,_;!function(e){function t(e,t,r){s.ensureCache.prepare();const o=A(r),n=r===o,i=s.ensureFloat64(o),a=s._pe_geog_to_proj(s.getPointer(e),t,i);return a&&C(r,t,i,n),a}function r(e,t,r){return o(e,t,r,0)}function o(e,t,r,o){s.ensureCache.prepare();const n=A(r),i=r===n,a=s.ensureFloat64(n),f=s._pe_proj_to_geog_center(s.getPointer(e),t,a,o);return f&&C(r,t,a,i),f}e.geogToProj=t,e.projGeog=function(e,o,n,i){switch(i){case c.PE_TRANSFORM_P_TO_G:return r(e,o,n);case c.PE_TRANSFORM_G_TO_P:return t(e,o,n)}return 0},e.projToGeog=r,e.projToGeogCenter=o}(u||(u={})),(_=c||(c={})).init=function(){_.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,_.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,_.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,_.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,_.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,_.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,_.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,_.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,_.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,_.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,_.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,_.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,_.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,_.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,_.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,_.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,_.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,_.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,_.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,_.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,_.PE_STR_FMT_WKT=s.PeDefs.prototype.PE_STR_FMT_WKT,_.PE_STR_FMT_WKT2=s.PeDefs.prototype.PE_STR_FMT_WKT2,_.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,_.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,_.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,_.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,_.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,_.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,_.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,_.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,_.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,_.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA},function(e){const t={},r={},o=e=>{if(e){const t=e.getType();switch(t){case c.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case c.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case c.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:t&c.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}}return e};function n(e,r){let n=null,i=t[e];if(i||(i={},t[e]=i),i.hasOwnProperty(String(r)))n=i[r];else{const t=s.PeFactory.prototype.factoryByType(e,r);s.compare(t,s.NULL)||(n=t,i[r]=n)}return n=o(n),n}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return n(c.PE_TYPE_COORDSYS,e)},e.factoryByType=n,e.fromString=function(e,t){let n=null,i=r[e];if(i||(i={},r[e]=i),i.hasOwnProperty(t))n=i[t];else{const r=s.PeFactory.prototype.fromString(e,t);s.compare(r,s.NULL)||(n=r,i[t]=n)}return n=o(n),n},e.geogcs=function(e){return n(c.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return n(c.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return n(c.PE_TYPE_PROJCS,e)},e.unit=function(e){return n(c.PE_TYPE_UNIT,e)}}(l||(l={}));let d=null;var p,P,h,E,g,m,S,T,M;function y(e){function t(e,t,r){e[t]=r(e[t])}s=e,c.init(),p.init(),g.init(),S.init(),T.init(),d=class extends s.PeGCSExtent{destroy(){s.destroy(this)}};const r=[s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of r)t(e.prototype,"getName",(e=>function(){return e.call(this,new Array(c.PE_NAME_MAX))}));for(const e of[s.PeGeogtran,s.PeProjcs])t(e.prototype,"getParameters",(e=>function(){const t=new Array(c.PE_PARM_MAX);let r=e.call(this);for(let e=0;e<t.length;e++){const o=s.getValue(r,"*");t[e]=o?s.wrapPointer(o,s.PeParameter):null,r+=Int32Array.BYTES_PER_ELEMENT}return t}));t(s.PeHorizon.prototype,"getCoord",(e=>function(){const t=this.getSize();if(!t)return null;const r=[];return C(r,t,e.call(this)),r})),t(s.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const t=s._pe_getPeGTlistExtendedGTsSize();return function(){let r=null;const o=e.call(this);if(!s.compare(o,s.NULL)){r=[o];const e=this.getSteps();if(e>1){const n=s.getPointer(o);for(let o=1;o<e;o++)r.push(s.wrapPointer(n+t*o,s.PeGTlistExtendedGTs))}}return r}}));const o=s._pe_getPeHorizonSize(),n=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let r=null;const n=e.call(this);if(!s.compare(n,s.NULL)){r=[n];const e=n.getNump();if(e>1){const t=s.getPointer(n);for(let n=1;n<e;n++)r.push(s.wrapPointer(t+o*n,s.PeHorizon))}}return t.set(e,r),r};t(s.PeProjcs.prototype,"horizonGcsGenerate",n),t(s.PeProjcs.prototype,"horizonPcsGenerate",n),s.PeObject.prototype.toString=function(e=c.PE_STR_OPTS_NONE){s.ensureCache.prepare();const t=s.getPointer(this),r=s.ensureInt8(new Array(c.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(t,e,r))}}function O(e){if(!e)return;const t=s.getClass(e);if(!t)return;const r=s.getCache(t);if(!r)return;const o=s.getPointer(e);o&&delete r[o]}function w(e,t){const r=[],o=new Array(t);for(let t=0;t<e;t++)r.push(s.ensureInt8(o));return r}function A(e){let t;return Array.isArray(e[0])?(t=[],e.forEach((e=>{t.push(e[0],e[1])}))):t=e,t}function C(e,t,r,o=!1){if(o)for(let o=0;o<2*t;o++)e[o]=s.getValue(r+o*Float64Array.BYTES_PER_ELEMENT,"double");else{const o=0===e.length;for(let n=0;n<t;n++)o&&(e[n]=new Array(2)),e[n][0]=s.getValue(r,"double"),e[n][1]=s.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let t;e.init=function(){e.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=s._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,r,o,n,i,a){let f=null;const u=new s.PeInteger(a);try{const c=s.PeGTlistExtended.prototype.getGTlist(e,r,o,n,i,u);if((a=u.val)&&(f=[c],a>1)){const e=s.getPointer(c);for(let r=1;r<a;r++)f.push(s.wrapPointer(e+t*r,s.PeGTlistExtendedEntry))}}finally{s.destroy(u)}return f}}(p||(p={})),function(e){e.destroy=function(e){if(e?.length){for(const t of e)O(t),t.getEntries().forEach((e=>{O(e);const t=e.getGeogtran();O(t),t.getParameters().forEach(O),[t.getGeogcs1(),t.getGeogcs2()].forEach((e=>{O(e);const t=e.getDatum();O(t),O(t.getSpheroid()),O(e.getPrimem()),O(e.getUnit())}))}));s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(P||(P={})),function(e){e.geogToGeog=function(e,t,r,o,n){s.ensureCache.prepare();const i=A(r),a=r===i,f=s.ensureFloat64(i);let u=0;o&&(u=s.ensureFloat64(o));const c=s._pe_geog_to_geog(s.getPointer(e),t,f,u,n);return c&&C(r,t,f,a),c}}(h||(h={})),function(e){const t=(e,t,r,o,n,i)=>{let a,f;switch(s.ensureCache.prepare(),e){case"dd":a=s._pe_geog_to_dd,f=c.PE_DD_MAX;break;case"ddm":a=s._pe_geog_to_ddm,f=c.PE_DDM_MAX;break;case"dms":a=s._pe_geog_to_dms,f=c.PE_DMS_MAX}let u=0;t&&(u=s.getPointer(t));const l=A(o),_=s.ensureFloat64(l),d=w(r,f),p=a(u,r,_,n,s.ensureInt32(d));if(p)for(let e=0;e<r;e++)i[e]=s.UTF8ToString(d[e]);return p},r=(e,t,r,o,n)=>{let i;switch(s.ensureCache.prepare(),e){case"dd":i=s._pe_dd_to_geog;break;case"ddm":i=s._pe_ddm_to_geog;break;case"dms":i=s._pe_dms_to_geog}let a=0;t&&(a=s.getPointer(t));const f=o.map((e=>s.ensureString(e))),u=s.ensureInt32(f),c=s.ensureFloat64(new Array(2*r)),l=i(a,r,u,c);return l&&C(n,r,c),l};e.geogToDms=function(e,r,o,n,i){return t("dms",e,r,o,n,i)},e.dmsToGeog=function(e,t,o,n){return r("dms",e,t,o,n)},e.geogToDdm=function(e,r,o,n,i){return t("ddm",e,r,o,n,i)},e.ddmToGeog=function(e,t,o,n){return r("ddm",e,t,o,n)},e.geogToDd=function(e,r,o,n,i){return t("dd",e,r,o,n,i)},e.ddToGeog=function(e,t,o,n){return r("dd",e,t,o,n)}}(E||(E={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=s.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=s.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,t,r,o,n,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=A(r),l=s.ensureFloat64(u),_=w(t,c.PE_MGRS_MAX),d=s.ensureInt32(_),p=s._pe_geog_to_mgrs_extended(f,t,l,o,n,i,d);if(p)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(_[e]);return p},e.mgrsToGeogExtended=function(e,t,r,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=r.map((e=>s.ensureString(e))),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),c=s._pe_mgrs_to_geog_extended(i,t,f,o,u);return c&&C(n,t,u),c}}(g||(g={})),function(e){e.geogToUsng=function(e,t,r,o,n,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=A(r),l=s.ensureFloat64(u),_=w(t,c.PE_MGRS_MAX),d=s.ensureInt32(_),p=s._pe_geog_to_usng(f,t,l,o,n,i,d);if(p)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(_[e]);return p},e.usngToGeog=function(e,t,r,o){s.ensureCache.prepare();let n=0;e&&(n=s.getPointer(e));const i=r.map((e=>s.ensureString(e))),a=s.ensureInt32(i),f=s.ensureFloat64(new Array(2*t)),u=s._pe_usng_to_geog(n,t,a,f);return u&&C(o,t,f),u}}(m||(m={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=s.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=s.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=s.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,t,r,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=A(r),f=s.ensureFloat64(a),u=w(t,c.PE_UTM_MAX),l=s.ensureInt32(u),_=s._pe_geog_to_utm(i,t,f,o,l);if(_)for(let e=0;e<t;e++)n[e]=s.UTF8ToString(u[e]);return _},e.utmToGeog=function(e,t,r,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=r.map((e=>s.ensureString(e))),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),c=s._pe_utm_to_geog(i,t,f,o,u);return c&&C(n,t,u),c}}(S||(S={})),function(e){const t=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=s.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=s.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(r,o=e.PE_PCSINFO_OPTION_DOMAIN){let n=null,i=null;return t.has(r)&&(i=t.get(r),i[o]&&(n=i[o])),n||(n=s.PePCSInfo.prototype.generate(r,o),i||(i=[],t.set(r,i)),i[o]=n),n}}(T||(T={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(M||(M={}));const R=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return u},get PeDefs(){return c},get PeFactory(){return l},get PeGCSExtent(){return d},get PeGTTransformations(){return h},get PeGTlistExtended(){return p},get PeGTlistExtendedEntry(){return P},get PeNotationDms(){return E},get PeNotationMgrs(){return g},get PeNotationUsng(){return m},get PeNotationUtm(){return S},get PePCSInfo(){return T},get PeVersion(){return M},_init:y,get _pe(){return s},isLoaded:a,isSupported:function(){return!!(0,n.c)("esri-wasm")},load:f},Symbol.toStringTag,{value:"Module"}))},98472:(e,t,r)=>{r.d(t,{A:()=>d,B:()=>c,C:()=>P,D:()=>x,E:()=>U,H:()=>l,a:()=>m,b:()=>O,c:()=>s,e:()=>A,f:()=>u,g:()=>f,h:()=>h,i:()=>T,j:()=>k,k:()=>y,l:()=>i,m:()=>w,n:()=>M,o:()=>q,p:()=>S,q:()=>g,r:()=>E,s:()=>a,t:()=>C,u:()=>R,v:()=>_,w:()=>v,x:()=>F,y:()=>p,z:()=>b});var o=r(62484),n=r(47364);function i(e){const t=e[0],r=e[1],o=e[2];return Math.sqrt(t*t+r*r+o*o)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,o){return e[0]=t,e[1]=r,e[2]=o,e}function f(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function l(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function _(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function P(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function h(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function E(e,t,r,o){return e[0]=t[0]+r[0]*o,e[1]=t[1]+r[1]*o,e[2]=t[2]+r[2]*o,e}function g(e,t){const r=t[0]-e[0],o=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+o*o+n*n)}function m(e,t){const r=t[0]-e[0],o=t[1]-e[1],n=t[2]-e[2];return r*r+o*o+n*n}function S(e){const t=e[0],r=e[1],o=e[2];return t*t+r*r+o*o}function T(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function M(e,t){const r=t[0],o=t[1],n=t[2];let i=r*r+o*o+n*n;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function y(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function O(e,t,r){const o=t[0],n=t[1],i=t[2],s=r[0],a=r[1],f=r[2];return e[0]=n*f-i*a,e[1]=i*s-o*f,e[2]=o*a-n*s,e}function w(e,t,r,o){const n=t[0],i=t[1],s=t[2];return e[0]=n+o*(r[0]-n),e[1]=i+o*(r[1]-i),e[2]=s+o*(r[2]-s),e}function A(e,t,r){const o=t[0],n=t[1],i=t[2];return e[0]=r[0]*o+r[4]*n+r[8]*i+r[12],e[1]=r[1]*o+r[5]*n+r[9]*i+r[13],e[2]=r[2]*o+r[6]*n+r[10]*i+r[14],e}function C(e,t,r){const o=t[0],n=t[1],i=t[2];return e[0]=o*r[0]+n*r[3]+i*r[6],e[1]=o*r[1]+n*r[4]+i*r[7],e[2]=o*r[2]+n*r[5]+i*r[8],e}function R(e,t,r){const o=r[0],n=r[1],i=r[2],s=r[3],a=t[0],f=t[1],u=t[2],c=n*u-i*f,l=i*a-o*u,_=o*f-n*a,d=n*_-i*l,p=i*c-o*_,P=o*l-n*c,h=2*s;return e[0]=a+c*h+2*d,e[1]=f+l*h+2*p,e[2]=u+_*h+2*P,e}const N=(0,o.Su)(),G=(0,o.Su)();function k(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function U(e,t,r){const o=r[0]-t[0],n=r[1]-t[1],i=r[2]-t[2];let s=o*o+n*n+i*i;return s>0?(s=1/Math.sqrt(s),e[0]=o*s,e[1]=n*s,e[2]=i*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const b=u,D=c,I=l,q=g,v=m,x=i,F=S;Object.freeze(Object.defineProperty({__proto__:null,abs:_,add:f,angle:function(e,t){M(N,e),M(G,t);const r=y(N,G);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,o,n,i){const s=1-i,a=s*s,f=i*i,u=a*s,c=3*i*a,l=3*f*s,_=f*i;return e[0]=t[0]*u+r[0]*c+o[0]*l+n[0]*_,e[1]=t[1]*u+r[1]*c+o[1]*l+n[1]*_,e[2]=t[2]*u+r[2]*c+o[2]*l+n[2]*_,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},copy:s,cross:O,direction:U,dist:q,distance:g,div:I,divide:l,dot:y,equals:function(e,t){if(e===t)return!0;const r=e[0],o=e[1],i=e[2],s=t[0],a=t[1],f=t[2],u=(0,n.Au)();return Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-a)<=u*Math.max(1,Math.abs(o),Math.abs(a))&&Math.abs(i-f)<=u*Math.max(1,Math.abs(i),Math.abs(f))},exactEquals:k,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,o,n,i){const s=i*i,a=s*(2*i-3)+1,f=s*(i-2)+i,u=s*(i-1),c=s*(3-2*i);return e[0]=t[0]*a+r[0]*f+o[0]*u+n[0]*c,e[1]=t[1]*a+r[1]*f+o[1]*u+n[1]*c,e[2]=t[2]*a+r[2]*f+o[2]*u+n[2]*c,e},inverse:T,len:x,length:i,lerp:w,max:P,min:p,mul:D,multiply:c,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},normalize:M,random:function(e,t){t=t||1;const r=n.QR,o=2*r()*Math.PI,i=2*r()-1,s=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(o)*s,e[1]=Math.sin(o)*s,e[2]=i*t,e},rotateX:function(e,t,r,o){const n=[],i=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],i[0]=n[0],i[1]=n[1]*Math.cos(o)-n[2]*Math.sin(o),i[2]=n[1]*Math.sin(o)+n[2]*Math.cos(o),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateY:function(e,t,r,o){const n=[],i=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],i[0]=n[2]*Math.sin(o)+n[0]*Math.cos(o),i[1]=n[1],i[2]=n[2]*Math.cos(o)-n[0]*Math.sin(o),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateZ:function(e,t,r,o){const n=[],i=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],i[0]=n[0]*Math.cos(o)-n[1]*Math.sin(o),i[1]=n[0]*Math.sin(o)+n[1]*Math.cos(o),i[2]=n[2],e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:h,scaleAndAdd:E,set:a,sign:d,sqrDist:v,sqrLen:F,squaredDistance:m,squaredLength:S,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:b,subtract:u,transformMat3:C,transformMat4:A,transformQuat:R},Symbol.toStringTag,{value:"Module"}))},18996:(e,t,r)=>{r.d(t,{G:()=>n});var o=r(1580);function n(e,t,r){let n,i;return void 0===t?(i=e,n=[void 0]):"string"!=typeof t?(i=e,n=[void 0],r=t):(i=t,n=Array.isArray(e)?e:[e]),(e,t)=>{const s=e.constructor.prototype;for(const a of n){const n=(0,o.aq)(e,a,i);n.write&&"object"==typeof n.write||(n.write={}),r&&(n.write.target=r),n.write.writer=s[t]}}}},14628:(e,t,r)=>{r.d(t,{O:()=>n,w:()=>i});var o=r(58820);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=this._invertMap(e),this.apiValues=this._getKeysSorted(this._apiToJSON),this.jsonValues=this._getKeysSorted(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const n=this.toJSON(e);void 0!==n&&(0,o.qQ)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}_invertMap(e){const t={};for(const r in e)t[e[r]]=r;return t}_getKeysSorted(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}}function i(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},62484:(e,t,r)=>{function o(){return[0,0,0]}function n(e){return[e[0],e[1],e[2]]}function i(e,t,r){return[e,t,r]}function s(e,t=[0,0,0]){const r=Math.min(3,e.length);for(let o=0;o<r;++o)t[o]=e[o];return t}function a(){return i(1,1,1)}function f(){return i(1,0,0)}function u(){return i(0,1,0)}function c(){return i(0,0,1)}r.d(t,{IR:()=>p,Qw:()=>_,Su:()=>o,UV:()=>d,WK:()=>i,cX:()=>l,ct:()=>n,eu:()=>s,wx:()=>P});const l=[0,0,0],_=a(),d=f(),p=u(),P=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:_,UNIT_X:d,UNIT_Y:p,UNIT_Z:P,ZEROS:l,clone:n,create:o,createView:function(e,t){return new Float64Array(e,t,3)},fromArray:s,fromValues:i,ones:a,unitX:f,unitY:u,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},47364:(e,t,r)=>{r.d(t,{Af:()=>f,Au:()=>n,QR:()=>i,Yf:()=>u});let o=1e-6;function n(){return o}const i=Math.random,s=Math.PI/180,a=180/Math.PI;function f(e){return e*s}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(e,t){return Math.abs(e-t)<=o*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:n,setEpsilon:function(e){o=e},toDegree:u,toRadian:f},Symbol.toStringTag,{value:"Module"}))},53648:(e,t,r)=>{r.d(t,{Cq:()=>a,EF:()=>u,Iv:()=>g,SE:()=>S,UB:()=>c,Uj:()=>l,aU:()=>f,gJ:()=>h,gP:()=>d,ig:()=>m,qk:()=>s,sj:()=>_,w7:()=>i});var o=r(98472);const n=new Float32Array(1);function i(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function s(e,t,r){return Math.min(Math.max(e,t),r)}function a(e,t,r){return e+(t-e)*r}function f(e,t,r,o,n){return a(o,n,(e-t)/(r-t))}function u(e){return e*Math.PI/180}function c(e){return 180*e/Math.PI}function l(e){return Math.acos(s(e,-1,1))}function _(e){return Math.asin(s(e,-1,1))}function d(e,t,r=1e-6){return e===t||!(!Number.isFinite(e)||!Number.isFinite(t))&&(e>t?e-t:t-e)<=r}const p=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const P=BigInt("1000000");function h(e){return E(Math.max(-S,Math.min(e,S)))}function E(e){return n[0]=e,n[0]}function g(e,t){const r=(0,o.l)(e),n=_(e[2]/r),i=Math.atan2(e[1]/r,e[0]/r);return(0,o.s)(t,r,n,i),t}function m(e){const t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],o=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(d(t,1)&&d(r,1)&&d(o,1))}!function(e){const t=function(e){return p.setFloat64(0,e),p.getBigInt64(0)}(e=Math.abs(e)),r=function(e){return p.setBigInt64(0,e),p.getFloat64(0)}(t<=P?P:t-P);Math.abs(e-r)}(1);const S=E(34028234663852886e22)},24296:(e,t,r)=>{r.d(t,{Co:()=>f,M9:()=>M,PE:()=>G,_2:()=>w,aq:()=>q,ck:()=>T,eg:()=>C,gl:()=>O,gz:()=>I,iy:()=>D,k8:()=>A,oG:()=>y}),r(9456);var o=r(14628),n=r(22080),i=r(67932),s=r(60544),a=r(13364);const f=39.37,u=i.ug.radius*Math.PI/200,c=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,l=a.c,_=/UNIT\[([^\]]+)]/i,d=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),p=(0,o.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),P=e=>e*e,h=e=>e*e*e,E={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:P(.001)},"square-centimeters":{inBaseUnits:P(.01)},"square-decimeters":{inBaseUnits:P(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:P(1e3)},"square-inches":{inBaseUnits:P(.0254)},"square-feet":{inBaseUnits:P(.3048)},"square-yards":{inBaseUnits:P(.9144)},"square-miles":{inBaseUnits:P(1609.344)},"square-us-feet":{inBaseUnits:P(1200/3937)},acres:{inBaseUnits:.0015625*P(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*h(.001)},"cubic-centimeters":{inBaseUnits:1e3*h(.01)},"cubic-decimeters":{inBaseUnits:1e3*h(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*h(1e3)},"cubic-inches":{inBaseUnits:1e3*h(.0254)},"cubic-feet":{inBaseUnits:1e3*h(.3048)},"cubic-yards":{inBaseUnits:1e3*h(.9144)},"cubic-miles":{inBaseUnits:1e3*h(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},g=(()=>{const e={};for(const t in E)for(const r in E[t].units)e[r]=t;return e})();function m(e){const t=g[e];if(!t)throw new Error("unknown type");return t}function S(e,t=null){return t=t||m(e),E[t].baseUnit===e}function T(e,t,r){if(t===r)return e;const o=m(t);if(o!==m(r))throw new Error("incompatible units");const n=S(t,o)?e:function(e,t,r){return e*E[r].units[t].inBaseUnits}(e,t,o);return S(r,o)?n:function(e,t,r){return e/E[r].units[t].inBaseUnits}(n,r,o)}function M(e,t,r){return T(e,t,"meters")/(r*Math.PI/180)}function y(e){return p.fromJSON(e.toLowerCase())||null}function O(e){if(null!=e&&!(0,s.ag)(e))return 1;const t=A(e);return t>1e5?1:t}function w(e){return A(e)>=(0,n.e0)(e).metersPerDegree?"meters":G(e)}function A(e,t=i.ug.metersPerDegree){return function(e,t=!1){const r=e?.wkid??null,o=e?.wkt2??e?.wkt??null;let n=null;if(r){if((0,s.cJ)(r))return i.Eb.metersPerDegree;if((0,s.C_)(r))return i.qv.metersPerDegree;n=l.values[l[r]],!n&&t&&d.has(r)&&(n=u)}else o&&(U(o)?n=R(c.exec(o),n):k(o)&&(n=R(_.exec(o),n)));return n}(e,!0)??t}function C(e){return(0,s.Eb)(e)?1:A(e)}function R(e,t){return e?.[1]?N(e[1]):t}function N(e){return parseFloat(e.split(",")[1])}function G(e){const t=e?.wkid??null,r=e?.wkt2??e?.wkt??null;let o=null;if(t)o=l.units[l[t]];else if(r){const e=U(r)?c:k(r)?_:null;if(e){const t=e.exec(r);t?.[1]&&(o=function(e){const t=/[\\"']{1}([^\\"']+)/.exec(e);let r=t?.[1];if(!r||!l.units.includes(r)){const t=N(e);r=null;const o=l.values;for(let e=0;e<o.length;++e)if(Math.abs(t-o[e])<b){r=l.units[e];break}}return r}(t[1]))}}return null!=o?y(o):null}function k(e){return/^GEOCCS/i.test(e)}function U(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const b=1e-7,D=(0,o.w)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),I=(0,o.w)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),q=(0,o.w)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},56156:(e,t,r)=>{r.d(t,{c:()=>p});var o,n=r(41948),i=r(40504),s=r(62088),a=r(24296),f=r(53368),u=r(1580),c=r(12552),l=r(18996),_=r(60544);let d=o=class extends i.am{static fromJSON(e){if(!e)return null;if(e.wkid){if(102100===e.wkid)return o.WebMercator;if(4326===e.wkid)return o.WGS84}const t=new o;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){return e&&"object"==typeof e?e:{["string"==typeof e?"wkt":"wkid"]:e}}get isWGS84(){return(0,_.__)(this)}get isWebMercator(){return(0,_.kn)(this)}get isGeographic(){return(0,_.Eb)(this)}get isWrappable(){return(0,_.G4)(this)}get metersPerUnit(){return(0,a.k8)(this)}get unit(){return(0,a.PE)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===o.WGS84)return new o(_.UH);if(this===o.WebMercator)return new o(_.QN);const e=new o;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,s.ct)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:o}=e.imageCoordinateSystem,n=this.imageCoordinateSystem;return null==t||o?JSON.stringify(n)===JSON.stringify(e.imageCoordinateSystem):r?n.id===t&&n.referenceServiceName===r:n.id===t}return(0,_.yK)(this,e)}toJSON(e){return this.write(void 0,e)}};d.GCS_NAD_1927=null,d.WGS84=null,d.WebMercator=null,d.PlateCarree=null,(0,n._)([(0,u.qq)({readOnly:!0})],d.prototype,"isWGS84",null),(0,n._)([(0,u.qq)({readOnly:!0})],d.prototype,"isWebMercator",null),(0,n._)([(0,u.qq)({readOnly:!0})],d.prototype,"isGeographic",null),(0,n._)([(0,u.qq)({readOnly:!0})],d.prototype,"isWrappable",null),(0,n._)([(0,u.qq)({type:f.Ab,json:{write:!0}})],d.prototype,"latestWkid",void 0),(0,n._)([(0,u.qq)({readOnly:!0})],d.prototype,"metersPerUnit",null),(0,n._)([(0,u.qq)({readOnly:!0})],d.prototype,"unit",null),(0,n._)([(0,u.qq)({type:f.Ab,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],d.prototype,"wkid",void 0),(0,n._)([(0,u.qq)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],d.prototype,"wkt",void 0),(0,n._)([(0,l.G)("wkt"),(0,l.G)("web-scene","wkt")],d.prototype,"writeWkt",null),(0,n._)([(0,u.qq)({type:String,json:{write:!1}})],d.prototype,"wkt2",void 0),(0,n._)([(0,u.qq)({type:f.Ab,json:{write:!0}})],d.prototype,"vcsWkid",void 0),(0,n._)([(0,u.qq)({type:f.Ab,json:{write:!0}})],d.prototype,"latestVcsWkid",void 0),(0,n._)([(0,u.qq)()],d.prototype,"imageCoordinateSystem",void 0),d=o=(0,n._)([(0,c.c)("esri.geometry.SpatialReference")],d),d.prototype.toJSON.isDefaultToJSON=!0,d.GCS_NAD_1927=new d({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'}),d.WGS84=new d(_.UH),d.WebMercator=new d(_.QN),d.PlateCarree=new d(_.oI),Object.freeze&&(Object.freeze(d.GCS_NAD_1927),Object.freeze(d.WGS84),Object.freeze(d.WebMercator),Object.freeze(d.PlateCarree));const p=d},22080:(e,t,r)=>{r.d(t,{IP:()=>a,MJ:()=>u,Om:()=>f,_:()=>s,aI:()=>p,e0:()=>_,i8:()=>P,sz:()=>d});var o=r(67932),n=r(60544);function i(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const s=i(o.ug),a=i(o.Eb),f=i(o.qv),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.ug.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},c=a.wkt.toUpperCase(),l=f.wkt.toUpperCase();function _(e){if(null!=e&&(0,n.U3)(e)){const t=e.wkid,r=e.wkt2??e.wkt;if((0,n.cJ)(t))return o.Eb;const i=r?.toUpperCase();if(r&&i===c)return o.Eb;if((0,n.C_)(t)||i&&i===l)return o.qv}return o.ug}function d(e){return(0,n.cJ)(e)?o.Eb:(0,n.C_)(e)?o.qv:o.ug}function p(e){return(0,n.yK)(e,s)}function P(e){return p(e)||(0,n.yK)(e,a)||(0,n.yK)(e,f)}},67932:(e,t,r)=>{r.d(t,{Eb:()=>i,qv:()=>s,ug:()=>n});class o{constructor(e,t,r,o){this.semiMajorAxis=e,this.flattening=t,this.outerAtmosphereRimWidth=r;const n=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*n,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=o||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const n=new o(6378137,1/298.257223563,3e5,.006694379990137799),i=new o(3396190,1/169.8944472236118,23e4),s=new o(1737400,0,0)},28496:(e,t,r)=>{var o;r.d(t,{i:()=>o}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(o||(o={}))},13364:(e,t,r)=>{let o;r.d(t,{c:()=>n});const n={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,27700:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1};for(o=2e3;o<=2045;o++)n[o]=0;for(o=2056;o<=2065;o++)n[o]=0;for(o=2067;o<=2135;o++)n[o]=0;for(o=2137;o<=2154;o++)n[o]=0;for(o=2161;o<=2170;o++)n[o]=0;for(o=2172;o<=2193;o++)n[o]=0;for(o=2195;o<=2198;o++)n[o]=0;for(o=2200;o<=2203;o++)n[o]=0;for(o=2205;o<=2217;o++)n[o]=0;for(o=2222;o<=2224;o++)n[o]=1;for(o=2225;o<=2250;o++)n[o]=2;for(o=2251;o<=2253;o++)n[o]=1;for(o=2257;o<=2264;o++)n[o]=2;for(o=2274;o<=2279;o++)n[o]=2;for(o=2280;o<=2282;o++)n[o]=1;for(o=2283;o<=2289;o++)n[o]=2;for(o=2290;o<=2292;o++)n[o]=0;for(o=2308;o<=2313;o++)n[o]=0;for(o=2315;o<=2491;o++)n[o]=0;for(o=2494;o<=2866;o++)n[o]=0;for(o=2867;o<=2869;o++)n[o]=1;for(o=2870;o<=2888;o++)n[o]=2;for(o=2891;o<=2895;o++)n[o]=2;for(o=2896;o<=2898;o++)n[o]=1;for(o=2902;o<=2908;o++)n[o]=2;for(o=2915;o<=2920;o++)n[o]=2;for(o=2921;o<=2923;o++)n[o]=1;for(o=2924;o<=2930;o++)n[o]=2;for(o=2931;o<=2962;o++)n[o]=0;for(o=2964;o<=2968;o++)n[o]=2;for(o=2969;o<=2973;o++)n[o]=0;for(o=2975;o<=2991;o++)n[o]=0;for(o=2995;o<=3051;o++)n[o]=0;for(o=3054;o<=3079;o++)n[o]=0;for(o=3081;o<=3088;o++)n[o]=0;for(o=3092;o<=3101;o++)n[o]=0;for(o=3106;o<=3138;o++)n[o]=0;for(o=3146;o<=3151;o++)n[o]=0;for(o=3153;o<=3166;o++)n[o]=0;for(o=3168;o<=3172;o++)n[o]=0;for(o=3174;o<=3203;o++)n[o]=0;for(o=3294;o<=3358;o++)n[o]=0;for(o=3367;o<=3403;o++)n[o]=0;for(o=3408;o<=3416;o++)n[o]=0;for(o=3417;o<=3438;o++)n[o]=2;for(o=3441;o<=3446;o++)n[o]=2;for(o=3447;o<=3450;o++)n[o]=0;for(o=3451;o<=3459;o++)n[o]=2;for(o=3460;o<=3478;o++)n[o]=0;for(o=3554;o<=3559;o++)n[o]=0;for(o=3560;o<=3570;o++)n[o]=2;for(o=3571;o<=3581;o++)n[o]=0;for(o=3594;o<=3597;o++)n[o]=0;for(o=3601;o<=3604;o++)n[o]=0;for(o=3637;o<=3639;o++)n[o]=0;for(o=3665;o<=3667;o++)n[o]=0;for(o=3693;o<=3695;o++)n[o]=0;for(o=3701;o<=3727;o++)n[o]=0;for(o=3728;o<=3739;o++)n[o]=2;for(o=3740;o<=3751;o++)n[o]=0;for(o=3753;o<=3760;o++)n[o]=2;for(o=3761;o<=3773;o++)n[o]=0;for(o=3775;o<=3777;o++)n[o]=0;for(o=3779;o<=3781;o++)n[o]=0;for(o=3783;o<=3785;o++)n[o]=0;for(o=3788;o<=3791;o++)n[o]=0;for(o=3797;o<=3802;o++)n[o]=0;for(o=3814;o<=3816;o++)n[o]=0;for(o=3825;o<=3829;o++)n[o]=0;for(o=3832;o<=3841;o++)n[o]=0;for(o=3844;o<=3852;o++)n[o]=0;for(o=3873;o<=3885;o++)n[o]=0;for(o=3890;o<=3893;o++)n[o]=0;for(o=3907;o<=3912;o++)n[o]=0;for(o=3942;o<=3950;o++)n[o]=0;for(o=3968;o<=3970;o++)n[o]=0;for(o=3973;o<=3976;o++)n[o]=0;for(o=3986;o<=3989;o++)n[o]=0;for(o=3994;o<=3997;o++)n[o]=0;for(o=4048;o<=4051;o++)n[o]=0;for(o=4056;o<=4063;o++)n[o]=0;for(o=4093;o<=4096;o++)n[o]=0;for(o=4390;o<=4398;o++)n[o]=0;for(o=4399;o<=4413;o++)n[o]=2;for(o=4418;o<=4433;o++)n[o]=2;for(o=4455;o<=4457;o++)n[o]=2;for(o=4484;o<=4489;o++)n[o]=0;for(o=4491;o<=4554;o++)n[o]=0;for(o=4568;o<=4589;o++)n[o]=0;for(o=4652;o<=4656;o++)n[o]=0;for(o=4766;o<=4800;o++)n[o]=0;for(o=5014;o<=5016;o++)n[o]=0;for(o=5069;o<=5072;o++)n[o]=0;for(o=5105;o<=5130;o++)n[o]=0;for(o=5167;o<=5188;o++)n[o]=0;for(o=5253;o<=5259;o++)n[o]=0;for(o=5269;o<=5275;o++)n[o]=0;for(o=5292;o<=5311;o++)n[o]=0;for(o=5329;o<=5331;o++)n[o]=0;for(o=5343;o<=5349;o++)n[o]=0;for(o=5355;o<=5357;o++)n[o]=0;for(o=5387;o<=5389;o++)n[o]=0;for(o=5459;o<=5463;o++)n[o]=0;for(o=5479;o<=5482;o++)n[o]=0;for(o=5518;o<=5520;o++)n[o]=0;for(o=5530;o<=5539;o++)n[o]=0;for(o=5550;o<=5552;o++)n[o]=0;for(o=5562;o<=5583;o++)n[o]=0;for(o=5623;o<=5625;o++)n[o]=2;for(o=5631;o<=5639;o++)n[o]=0;for(o=5649;o<=5653;o++)n[o]=0;for(o=5663;o<=5680;o++)n[o]=0;for(o=5682;o<=5685;o++)n[o]=0;for(o=5875;o<=5877;o++)n[o]=0;for(o=5896;o<=5899;o++)n[o]=0;for(o=5921;o<=5940;o++)n[o]=0;for(o=6050;o<=6125;o++)n[o]=0;for(o=6244;o<=6275;o++)n[o]=0;for(o=6328;o<=6348;o++)n[o]=0;for(o=6350;o<=6356;o++)n[o]=0;for(o=6366;o<=6372;o++)n[o]=0;for(o=6381;o<=6387;o++)n[o]=0;for(o=6393;o<=6404;o++)n[o]=0;for(o=6480;o<=6483;o++)n[o]=0;for(o=6511;o<=6514;o++)n[o]=0;for(o=6579;o<=6581;o++)n[o]=0;for(o=6619;o<=6624;o++)n[o]=0;for(o=6625;o<=6627;o++)n[o]=2;for(o=6628;o<=6632;o++)n[o]=0;for(o=6634;o<=6637;o++)n[o]=0;for(o=6669;o<=6692;o++)n[o]=0;for(o=6707;o<=6709;o++)n[o]=0;for(o=6720;o<=6723;o++)n[o]=0;for(o=6732;o<=6738;o++)n[o]=0;for(o=6931;o<=6933;o++)n[o]=0;for(o=6956;o<=6959;o++)n[o]=0;for(o=7005;o<=7007;o++)n[o]=0;for(o=7057;o<=7070;o++)n[o]=2;for(o=7074;o<=7082;o++)n[o]=0;for(o=7109;o<=7118;o++)n[o]=0;for(o=7119;o<=7127;o++)n[o]=1;for(o=7374;o<=7376;o++)n[o]=0;for(o=7528;o<=7586;o++)n[o]=0;for(o=7587;o<=7645;o++)n[o]=2;for(o=7692;o<=7696;o++)n[o]=0;for(o=7755;o<=7787;o++)n[o]=0;for(o=7791;o<=7795;o++)n[o]=0;for(o=7799;o<=7801;o++)n[o]=0;for(o=7803;o<=7805;o++)n[o]=0;for(o=7825;o<=7831;o++)n[o]=0;for(o=7845;o<=7859;o++)n[o]=0;for(o=8013;o<=8032;o++)n[o]=0;for(o=8065;o<=8068;o++)n[o]=1;for(o=8518;o<=8529;o++)n[o]=2;for(o=8533;o<=8536;o++)n[o]=2;for(o=8538;o<=8540;o++)n[o]=2;for(o=8677;o<=8679;o++)n[o]=0;for(o=8836;o<=8840;o++)n[o]=0;for(o=8857;o<=8859;o++)n[o]=0;for(o=8908;o<=8910;o++)n[o]=0;for(o=9154;o<=9159;o++)n[o]=0;for(o=9205;o<=9218;o++)n[o]=0;for(o=9271;o<=9273;o++)n[o]=0;for(o=9295;o<=9297;o++)n[o]=0;for(o=9356;o<=9360;o++)n[o]=0;for(o=9404;o<=9407;o++)n[o]=0;for(o=9476;o<=9482;o++)n[o]=0;for(o=9487;o<=9494;o++)n[o]=0;for(o=9697;o<=9699;o++)n[o]=0;for(o=9821;o<=9865;o++)n[o]=0;for(o=10285;o<=10291;o++)n[o]=0;for(o=10314;o<=10317;o++)n[o]=0;for(o=10448;o<=10465;o++)n[o]=0;for(o=11114;o<=11118;o++)n[o]=0;for(o=20004;o<=20032;o++)n[o]=0;for(o=20047;o<=20049;o++)n[o]=0;for(o=20062;o<=20092;o++)n[o]=0;for(o=20135;o<=20138;o++)n[o]=0;for(o=20248;o<=20258;o++)n[o]=0;for(o=20348;o<=20358;o++)n[o]=0;for(o=20436;o<=20440;o++)n[o]=0;for(o=20822;o<=20824;o++)n[o]=0;for(o=20904;o<=20932;o++)n[o]=0;for(o=20934;o<=20936;o++)n[o]=0;for(o=21004;o<=21032;o++)n[o]=0;for(o=21035;o<=21037;o++)n[o]=0;for(o=21095;o<=21097;o++)n[o]=0;for(o=21148;o<=21150;o++)n[o]=0;for(o=21207;o<=21264;o++)n[o]=0;for(o=21307;o<=21364;o++)n[o]=0;for(o=21413;o<=21423;o++)n[o]=0;for(o=21453;o<=21463;o++)n[o]=0;for(o=21473;o<=21483;o++)n[o]=0;for(o=21780;o<=21782;o++)n[o]=0;for(o=21891;o<=21894;o++)n[o]=0;for(o=21896;o<=21899;o++)n[o]=0;for(o=22171;o<=22177;o++)n[o]=0;for(o=22181;o<=22187;o++)n[o]=0;for(o=22191;o<=22197;o++)n[o]=0;for(o=22207;o<=22222;o++)n[o]=0;for(o=22229;o<=22232;o++)n[o]=0;for(o=22234;o<=22236;o++)n[o]=0;for(o=22243;o<=22250;o++)n[o]=0;for(o=22262;o<=22265;o++)n[o]=0;for(o=22307;o<=22322;o++)n[o]=0;for(o=22348;o<=22357;o++)n[o]=0;for(o=22407;o<=22422;o++)n[o]=0;for(o=22462;o<=22465;o++)n[o]=0;for(o=22521;o<=22525;o++)n[o]=0;for(o=22607;o<=22622;o++)n[o]=0;for(o=22641;o<=22646;o++)n[o]=0;for(o=22648;o<=22657;o++)n[o]=0;for(o=22707;o<=22722;o++)n[o]=0;for(o=22762;o<=22765;o++)n[o]=0;for(o=22807;o<=22822;o++)n[o]=0;for(o=22991;o<=22994;o++)n[o]=0;for(o=23028;o<=23038;o++)n[o]=0;for(o=23301;o<=23333;o++)n[o]=2;for(o=23830;o<=23853;o++)n[o]=0;for(o=23866;o<=23872;o++)n[o]=0;for(o=23877;o<=23884;o++)n[o]=0;for(o=23886;o<=23894;o++)n[o]=0;for(o=23946;o<=23948;o++)n[o]=0;for(o=24311;o<=24313;o++)n[o]=0;for(o=24342;o<=24347;o++)n[o]=0;for(o=24370;o<=24374;o++)n[o]=10;for(o=24375;o<=24381;o++)n[o]=0;for(o=24718;o<=24721;o++)n[o]=0;for(o=24817;o<=24821;o++)n[o]=0;for(o=24877;o<=24882;o++)n[o]=0;for(o=24891;o<=24893;o++)n[o]=0;for(o=25391;o<=25395;o++)n[o]=0;for(o=25828;o<=25838;o++)n[o]=0;for(o=26191;o<=26195;o++)n[o]=0;for(o=26391;o<=26393;o++)n[o]=0;for(o=26701;o<=26722;o++)n[o]=0;for(o=26729;o<=26799;o++)n[o]=2;for(o=26801;o<=26803;o++)n[o]=2;for(o=26811;o<=26813;o++)n[o]=2;for(o=26847;o<=26870;o++)n[o]=2;for(o=26891;o<=26899;o++)n[o]=0;for(o=26901;o<=26923;o++)n[o]=0;for(o=26929;o<=26946;o++)n[o]=0;for(o=26948;o<=26998;o++)n[o]=0;for(o=27037;o<=27040;o++)n[o]=0;for(o=27205;o<=27232;o++)n[o]=0;for(o=27258;o<=27260;o++)n[o]=0;for(o=27391;o<=27398;o++)n[o]=0;for(o=27561;o<=27564;o++)n[o]=0;for(o=27571;o<=27574;o++)n[o]=0;for(o=27581;o<=27584;o++)n[o]=0;for(o=27591;o<=27594;o++)n[o]=0;for(o=28191;o<=28193;o++)n[o]=0;for(o=28348;o<=28358;o++)n[o]=0;for(o=28402;o<=28432;o++)n[o]=0;for(o=28462;o<=28492;o++)n[o]=0;for(o=29118;o<=29122;o++)n[o]=0;for(o=29168;o<=29172;o++)n[o]=0;for(o=29177;o<=29185;o++)n[o]=0;for(o=29187;o<=29195;o++)n[o]=0;for(o=29900;o<=29903;o++)n[o]=0;for(o=30161;o<=30179;o++)n[o]=0;for(o=30491;o<=30494;o++)n[o]=0;for(o=30729;o<=30732;o++)n[o]=0;for(o=31251;o<=31259;o++)n[o]=0;for(o=31265;o<=31268;o++)n[o]=0;for(o=31275;o<=31279;o++)n[o]=0;for(o=31281;o<=31297;o++)n[o]=0;for(o=31461;o<=31469;o++)n[o]=0;for(o=31491;o<=31495;o++)n[o]=0;for(o=31917;o<=31922;o++)n[o]=0;for(o=31965;o<=32e3;o++)n[o]=0;for(o=32001;o<=32003;o++)n[o]=2;for(o=32005;o<=32031;o++)n[o]=2;for(o=32033;o<=32060;o++)n[o]=2;for(o=32064;o<=32067;o++)n[o]=2;for(o=32074;o<=32077;o++)n[o]=2;for(o=32081;o<=32086;o++)n[o]=0;for(o=32107;o<=32130;o++)n[o]=0;for(o=32133;o<=32159;o++)n[o]=0;for(o=32164;o<=32167;o++)n[o]=2;for(o=32180;o<=32199;o++)n[o]=0;for(o=32201;o<=32260;o++)n[o]=0;for(o=32301;o<=32360;o++)n[o]=0;for(o=32401;o<=32460;o++)n[o]=0;for(o=32501;o<=32560;o++)n[o]=0;for(o=32601;o<=32662;o++)n[o]=0;for(o=32664;o<=32667;o++)n[o]=2;for(o=32701;o<=32761;o++)n[o]=0;for(o=53001;o<=53004;o++)n[o]=0;for(o=53008;o<=53019;o++)n[o]=0;for(o=53021;o<=53032;o++)n[o]=0;for(o=53034;o<=53037;o++)n[o]=0;for(o=53042;o<=53046;o++)n[o]=0;for(o=53074;o<=53080;o++)n[o]=0;for(o=54001;o<=54004;o++)n[o]=0;for(o=54008;o<=54019;o++)n[o]=0;for(o=54021;o<=54032;o++)n[o]=0;for(o=54034;o<=54037;o++)n[o]=0;for(o=54042;o<=54046;o++)n[o]=0;for(o=54048;o<=54053;o++)n[o]=0;for(o=54074;o<=54080;o++)n[o]=0;for(o=54098;o<=54101;o++)n[o]=0;for(o=102001;o<=102040;o++)n[o]=0;for(o=102042;o<=102063;o++)n[o]=0;for(o=102065;o<=102067;o++)n[o]=0;for(o=102070;o<=102117;o++)n[o]=0;for(o=102122;o<=102216;o++)n[o]=0;for(o=102221;o<=102377;o++)n[o]=0;for(o=102382;o<=102388;o++)n[o]=0;for(o=102389;o<=102398;o++)n[o]=2;for(o=102399;o<=102444;o++)n[o]=0;for(o=102445;o<=102447;o++)n[o]=2;for(o=102448;o<=102458;o++)n[o]=0;for(o=102459;o<=102468;o++)n[o]=2;for(o=102469;o<=102499;o++)n[o]=0;for(o=102500;o<=102519;o++)n[o]=1;for(o=102520;o<=102524;o++)n[o]=0;for(o=102525;o<=102529;o++)n[o]=2;for(o=102530;o<=102588;o++)n[o]=0;for(o=102590;o<=102598;o++)n[o]=0;for(o=102601;o<=102603;o++)n[o]=0;for(o=102605;o<=102628;o++)n[o]=0;for(o=102629;o<=102646;o++)n[o]=2;for(o=102648;o<=102700;o++)n[o]=2;for(o=102701;o<=102703;o++)n[o]=0;for(o=102707;o<=102730;o++)n[o]=2;for(o=102733;o<=102758;o++)n[o]=2;for(o=102767;o<=102900;o++)n[o]=0;for(o=102901;o<=102933;o++)n[o]=2;for(o=102934;o<=102950;o++)n[o]=13;for(o=102951;o<=102955;o++)n[o]=0;for(o=102961;o<=102963;o++)n[o]=0;for(o=102965;o<=102969;o++)n[o]=0;for(o=102971;o<=102973;o++)n[o]=0;for(o=102975;o<=102989;o++)n[o]=0;for(o=102990;o<=102992;o++)n[o]=1;for(o=102997;o<=103002;o++)n[o]=0;for(o=103003;o<=103008;o++)n[o]=2;for(o=103009;o<=103011;o++)n[o]=0;for(o=103012;o<=103014;o++)n[o]=2;for(o=103019;o<=103021;o++)n[o]=0;for(o=103022;o<=103024;o++)n[o]=2;for(o=103029;o<=103031;o++)n[o]=0;for(o=103032;o<=103034;o++)n[o]=2;for(o=103065;o<=103068;o++)n[o]=0;for(o=103074;o<=103076;o++)n[o]=0;for(o=103077;o<=103079;o++)n[o]=1;for(o=103080;o<=103082;o++)n[o]=0;for(o=103083;o<=103085;o++)n[o]=2;for(o=103090;o<=103093;o++)n[o]=0;for(o=103097;o<=103099;o++)n[o]=0;for(o=103100;o<=103102;o++)n[o]=2;for(o=103107;o<=103109;o++)n[o]=0;for(o=103110;o<=103112;o++)n[o]=2;for(o=103113;o<=103116;o++)n[o]=0;for(o=103117;o<=103120;o++)n[o]=2;for(o=103153;o<=103157;o++)n[o]=0;for(o=103158;o<=103162;o++)n[o]=2;for(o=103163;o<=103165;o++)n[o]=0;for(o=103166;o<=103168;o++)n[o]=1;for(o=103169;o<=103171;o++)n[o]=2;for(o=103186;o<=103188;o++)n[o]=0;for(o=103189;o<=103191;o++)n[o]=2;for(o=103192;o<=103195;o++)n[o]=0;for(o=103196;o<=103199;o++)n[o]=2;for(o=103200;o<=103224;o++)n[o]=0;for(o=103225;o<=103227;o++)n[o]=1;for(o=103232;o<=103237;o++)n[o]=0;for(o=103238;o<=103243;o++)n[o]=2;for(o=103244;o<=103246;o++)n[o]=0;for(o=103247;o<=103249;o++)n[o]=2;for(o=103254;o<=103256;o++)n[o]=0;for(o=103257;o<=103259;o++)n[o]=2;for(o=103264;o<=103266;o++)n[o]=0;for(o=103267;o<=103269;o++)n[o]=2;for(o=103300;o<=103375;o++)n[o]=0;for(o=103381;o<=103383;o++)n[o]=0;for(o=103384;o<=103386;o++)n[o]=1;for(o=103387;o<=103389;o++)n[o]=0;for(o=103390;o<=103392;o++)n[o]=2;for(o=103397;o<=103399;o++)n[o]=0;for(o=103400;o<=103471;o++)n[o]=2;for(o=103476;o<=103478;o++)n[o]=0;for(o=103479;o<=103481;o++)n[o]=2;for(o=103486;o<=103488;o++)n[o]=0;for(o=103489;o<=103491;o++)n[o]=2;for(o=103492;o<=103495;o++)n[o]=0;for(o=103496;o<=103499;o++)n[o]=2;for(o=103528;o<=103543;o++)n[o]=0;for(o=103544;o<=103548;o++)n[o]=2;for(o=103549;o<=103551;o++)n[o]=0;for(o=103552;o<=103554;o++)n[o]=1;for(o=103555;o<=103557;o++)n[o]=2;for(o=103558;o<=103560;o++)n[o]=0;for(o=103571;o<=103573;o++)n[o]=0;for(o=103574;o<=103576;o++)n[o]=2;for(o=103577;o<=103580;o++)n[o]=0;for(o=103581;o<=103583;o++)n[o]=2;for(o=103595;o<=103694;o++)n[o]=0;for(o=103696;o<=103699;o++)n[o]=0;for(o=103700;o<=103793;o++)n[o]=2;for(o=103794;o<=103890;o++)n[o]=0;for(o=103891;o<=103896;o++)n[o]=2;for(o=103900;o<=103971;o++)n[o]=2;for(o=103972;o<=103977;o++)n[o]=0;for(o=112e3;o<=112101;o++)n[o]=0},60544:(e,t,r)=>{r.d(t,{C_:()=>O,Eb:()=>P,G4:()=>A,GK:()=>T,If:()=>g,Nq:()=>d,QN:()=>N,U3:()=>C,UB:()=>w,UH:()=>R,Ub:()=>m,__:()=>E,ag:()=>h,cJ:()=>M,kn:()=>S,oI:()=>G,qg:()=>y,um:()=>p,yK:()=>_});var o=r(88264),n=(r(40800),r(28496)),i=r(13364);const s=[102100,102113,3857,3785],a=[4326,...s,104905,104971],f='PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',u=[-20037508.342788905,20037508.342788905],c=[-20037508.342787,20037508.342787],l={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:u,origin:c,dx:1e-5},102100:{wkTemplate:f,valid:u,origin:c,dx:1e-5},3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:u,origin:c,dx:1e-5},3857:{wkTemplate:f,valid:u,origin:c,dx:1e-5},4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5}};function _(e,t){if(e===t)return!0;if(null==e||null==t)return!1;const r=e.wkid,o=t.wkid;if(null!=r||null!=o){if(r===o)return!0;if(S(e)&&S(t))return!0;const n=e.latestWkid;if(null!=n&&o===n)return!0;const i=t.latestWkid;return null!=i&&r===i}let n,i;return e.wkt2&&t.wkt2?(n=e.wkt2,i=t.wkt2):e.wkt&&t.wkt&&(n=e.wkt,i=t.wkt),!(!n||!i)&&n.toUpperCase()===i.toUpperCase()}function d(e){const t=e?.wkid;return null!=t&&t>=2e3&&l[t]||null}function p(e){if(!e)return;const{wkid:t,vcsWkid:r}=e;if(t)return r?JSON.stringify({wkid:t,vcsWkid:r}):String(t);const o=e.wkt||e.wkt2;return JSON.stringify(o?r?{wkt:o,vcsWkid:r}:{wkt:o}:{})}function P(e){if(!C(e))return!1;const{wkid:t}=e;if(t)return null==i.c[t];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function h(e){return!(y(e)||w(e))}function E(e){return 4326===e?.wkid}function g(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function m(e){return e?.wkid===n.i.CGCS2000}function S(e){const t=e?.wkid;return null!=t&&t>=2e3&&s.includes(t)}function T(e){return 32662===e?.wkid}function M(e){return e===n.i.GCSMARS2000||e===n.i.GCSMARS2000_SPHERE}function y(e){return M(e?.wkid)}function O(e){return e===n.i.GCSMOON2000}function w(e){return O(e?.wkid)}function A(e){const t=e?.wkid;return null!=t&&t>=2e3&&a.includes(t)}function C(e){if(null==e)return!1;const t=e.wkid;return null!=t&&t>=2e3||null!=e.wkt2||null!=e.wkt}const R={wkid:4326,wkt:(0,o.qq)(l[4326].wkTemplate,{Central_Meridian:"0.0"})},N={wkid:102100,latestWkid:3857},G={wkid:32662}},2600:(e,t,r)=>{r.d(t,{c:()=>d});var o=r(6220),n=r(47620),i=r(20744),s=r(9456),a=r(62088),f=r(10860),u=r(28176),c=r(5604),l=r(20572),_=r(49628);async function d(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,u.a4)(t.query.toString().replaceAll("+"," ")));const a=(0,u.o9)(e),c=(0,u.ue)(e);c||a||(e=(0,u.k7)(e));const d={url:e,requestOptions:{...t}};let E=(0,u.OO)(e);if(E){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,o;try{o=await e.before(t)}catch(e){r=y("request:interceptor",e,t)}if((o instanceof Error||o instanceof i.c)&&(r=y("request:interceptor",o,t)),r)throw e.error&&e.error(r),r;return o}}(E,d);if(null!=e)return{data:e,getAllHeaders:S,getHeader:S,httpStatus:200,requestOptions:d.requestOptions,url:d.url};E.after||E.error||(E=null)}if(e=d.url,"image"===(t=d.requestOptions).responseType&&((0,s.c)("host-webworker")||(0,s.c)("host-node")))throw y("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),d);if("head"===t.method){if(t.body)throw y("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),d);if(a||c)throw y("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),d)}if(await async function(){(0,s.c)("host-webworker")&&!p&&(p=await r.e(5469).then(r.bind(r,75469)))}(),p)return p.execute(e,t);const g=new AbortController;(0,f.wD)(t,(()=>g.abort()));const m={controller:g,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:E,params:d,redoRequest:!1,useIdentity:P.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},T=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,i=e.controller.signal,s=r.body;let a=null,u=null;if(h&&"HTMLFormElement"in globalThis&&(s instanceof FormData?a=s:s instanceof HTMLFormElement&&(a=new FormData(s))),"string"==typeof s&&(u=s),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:P.priority,redirect:"follow",signal:i},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken&&o.default.apiKey&&(0,l.s)(t)&&(r.query||(r.query={}),r.query.token=o.default.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!w(t)&&!(0,f.wv)(i)){let o;"immediate"===r.authMode?(await O(),o=await n.id.getCredential(t,{signal:i}),e.credential=o):"no-prompt"===r.authMode?(await O(),o=await n.id.getCredential(t,{prompt:!1,signal:i}).catch((()=>{})),e.credential=o):n.id&&(o=n.id.findCredential(t)),o&&(e.credentialToken=o.token,e.useSSL=!!o.ssl)}}(e);try{do{[t,r]=await A(e)}while(!await R(e,t,r))}catch(r){const o=y("request:server",r,e.params,t);throw o.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(o),o}const i=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(i)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,u.Yf)(i)){const e=(0,u.iK)(i,!0);e&&P.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,_.Ko)(r.authorizedCrossOriginNoCorsDomains)}const s=e.credential;if(s&&n.id){const e=n.id.findServerInfo(s.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=n.id.findCredential(t,s.userId);e&&-1===n.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):S,getHeader:t?e=>t.headers.get(e):S,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(m);return E?.after?.(T),T}let p;const P=o.default.request,h="FormData"in globalThis,E=new Set([499,498,403,401]),g=new Set(["COM_0056","COM_0057","SB_0008"]),m=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],S=()=>null,T=Symbol();function M(e){const t=(0,u.iK)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.Yf)(t)}function y(e,t,r,o){let n="Error";const s={url:r.url,requestOptions:r.requestOptions,getAllHeaders:S,getHeader:S,ssl:!1};if(t instanceof i.c)return t.details?(t.details=(0,a.ct)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=s,t;if(t){const e=o&&(()=>Array.from(o.headers)),r=o&&(e=>o.headers.get(e)),i=o?.status,a=t.message;a&&(n=a),e&&r&&(s.getAllHeaders=e,s.getHeader=r),s.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||i||0,s.subCode=t.subcode,s.messageCode=t.messageCode,"string"==typeof t.details?s.messages=[t.details]:s.messages=t.details,s.raw=T in t?t[T]:t}return(0,f.mA)(t)?(0,f.Uh)():new i.c(e,n,s)}async function O(){n.id||await Promise.all([r.e(9452),r.e(6712),r.e(7744),r.e(7144)]).then(r.bind(r,57592))}function w(e){return m.some((t=>t.test(e)))}async function A(e){let t=e.params.url;const r=e.params.requestOptions,o=e.fetchOptions??{},i=(0,u.ue)(t)||(0,u.o9)(t),a=r.responseType||"json",l=i?0:null!=r.timeout?r.timeout:P.timeout;let p=!1;if(!i){e.useSSL&&(t=(0,u.ms)(t));let i={...r.query};e.credentialToken&&(i.token=e.credentialToken);let a=(0,u.GK)(i);(0,s.c)("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const f=t.length+1+a.length;let l;p="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||f>P.maxUrlLength;const d=r.useProxy||!!(0,u.Gq)(t);if(d){const e=(0,u.CI)(t);l=e.path,!p&&l.length+1+f>P.maxUrlLength&&(p=!0),e.query&&(i={...e.query,...i})}if("HEAD"===o.method&&(p||d)){if(p){if(f>P.maxUrlLength)throw y("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw y("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw y("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(o.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,u.UP)(t,i):(o.body=(0,u.GK)(i),o.headers||(o.headers={}),o.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.UP)(t,i),d&&(e.useProxy=!0,t=`${l}?${t}`),i.token&&h&&o.body instanceof FormData&&!(0,c.C)(t)&&o.body.set("token",i.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,u.OS)(t,(0,u.k3)()))if((0,u.Yf)(t))e.withCredentials=!0;else if(n.id){const r=n.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(o.credentials="include",(0,_.yK)(t)&&await(0,_.y4)(p?(0,u.UP)(t,i):t))}let E,g,m=0,S=!1;l>0&&(m=setTimeout((()=>{S=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)g=o,g.url=t;else if("image"!==r.responseType||"default"!==o.cache||"GET"!==o.method||p||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!i&&!e.useProxy&&P.proxyUrl&&!M(t)){if(d._beforeFetch&&await d._beforeFetch(t,o),E=await fetch(t,o),d._afterFetch&&await d._afterFetch(E),e.useProxy||function(e){const t=(0,u.iK)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)g=E;else if("HEAD"!==o.method)if(E.ok){switch(a){case"array-buffer":g=await E.arrayBuffer();break;case"blob":case"image":g=await E.blob();break;default:g=await E.text()}if(m&&(clearTimeout(m),m=0),"json"===a||"xml"===a||"document"===a)if(g)switch(a){case"json":g=JSON.parse(g);break;case"xml":g=C(g,"application/xml");break;case"document":g=C(g,"text/html")}else g=null;if(g){if("array-buffer"===a||"blob"===a){const e=E.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&g["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(g).json();e.error&&(g=e)}catch{}}"image"===a&&g instanceof Blob&&(g=await N(URL.createObjectURL(g),e,!0))}}else{g=await E.text();try{g=JSON.parse(g)}catch{}}}else g=await N(t,e)}catch(o){if("AbortError"===o.name){if(S)throw(0,_.ol)();throw(0,f.Uh)("Request canceled")}if(!(!E&&o instanceof TypeError&&P.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||M(t))throw o;e.redoRequest=!0,(0,u.e8)({proxyUrl:P.proxyUrl,urlPrefix:(0,u.iK)(t)??""})}finally{m&&clearTimeout(m)}return[E,g]}function C(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function R(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const o=e.params.requestOptions;if(!t||"native"===o.responseType||"native-request-init"===o.responseType)return!0;let i,s;if(r&&(r.error?i=r.error:"error"===r.status&&Array.isArray(r.messages)&&(i={...r},i[T]=r,i.details=r.messages)),!i&&!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[T]=r,i;let a,f=null;i&&(s=Number(i.code),f=i.hasOwnProperty("subcode")?Number(i.subcode):null,a=i.messageCode,a=a?.toUpperCase());const u=o.authMode;if(403===s&&(4===f||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===s)&&void 0!==s&&E.has(s)&&!w(e.params.url)&&(403!==s||(!a||!g.has(a))&&(null==f||2===f&&e.credentialToken))){await O();try{const t=await n.id.getCredential(e.params.url,{error:y("request:server",i,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;i=t}}if(i)throw i;return!0}function N(e,t,r=!1){const o=t.controller.signal,n=new Image;return t.withCredentials?n.crossOrigin="use-credentials":n.crossOrigin="anonymous",n.alt="",n.fetchPriority=P.priority,n.src=e,(0,_.wx)(n,e,r,o)}d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],d._beforeFetch=void 0,d._afterFetch=void 0},20572:(e,t,r)=>{r.d(t,{s:()=>i});var o=r(28176);const n=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]);function i(e){const t=(0,o.iK)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!n.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},49628:(e,t,r)=>{r.d(t,{Ko:()=>l,ol:()=>c,wx:()=>a,y4:()=>d,yK:()=>_});var o=r(6220),n=r(9456),i=r(10860),s=r(28176);function a(e,t,r=!1,o){return new Promise(((s,a)=>{if((0,i.wv)(o))return void a(f());let u=()=>{_(),a(new Error(`Unable to load ${t}`))},c=()=>{const t=e;_(),s(t)},l=()=>{if(!e)return;const t=e;_(),t.src="",a(f())};const _=()=>{(0,n.c)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",c)),u=null,c=null,e=null,null!=o&&o.removeEventListener("abort",l),l=null,r&&URL.revokeObjectURL(t)};null!=o&&o.addEventListener("abort",l),(0,n.c)("esri-image-decode")?e.decode().then(c,u):(e.addEventListener("error",u),e.addEventListener("load",c))}))}function f(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const u="Timeout exceeded";function c(){return new Error(u)}function l(e){o.default.request.crossOriginNoCorsDomains||(o.default.request.crossOriginNoCorsDomains={});const t=o.default.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,s.iK)(r)??""]=0:(t[(0,s.iK)("http://"+r)??""]=0,t[(0,s.iK)("https://"+r)??""]=0)}function _(e){const t=o.default.request.crossOriginNoCorsDomains;if(t){let r=(0,s.iK)(e);if(r)return r=r.toLowerCase(),!(0,s.OS)(r,(0,s.k3)())&&t[r]<Date.now()-36e5}return!1}async function d(e){const t=o.default.request.crossOriginNoCorsDomains,r=(0,s.iK)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const n=(0,s.as)(e);e=n.path,"json"===n.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
@@ -2,7 +2,7 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import{deg2rad as e}from"../core/mathUtils.js";import{set as i}from"../core/libs/gl-matrix-2/math/vec2.js";import{create as t}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{f as n,n as a,l as o,p as r,e as l,c as s,b as c,g as d}from"./vec32.js";import{create as p}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{t as f}from"./vec42.js";import{create as h}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{pointAt as g}from"../geometry/support/lineSegment.js";import{create as m,fromPositionAndNormal as u}from"../geometry/support/plane.js";import{g as x,d as w}from"./sphere.js";import{Laserline as P}from"../views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js";import{ScreenSpacePass as b}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{Float2PassUniform as v}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float3PassUniform as D}from"../views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js";import{Float4PassUniform as M}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as S}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as L}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as C}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";const A=e(6);function V(e){const i=new C;i.include(b),i.include(P,e);const t=i.fragment;if(e.lineVerticalPlaneEnabled||e.heightManifoldEnabled)if(t.uniforms.add(new S("maxPixelDistance",((i,t)=>e.heightManifoldEnabled?2*t.camera.computeScreenPixelSizeAt(i.heightManifoldTarget):2*t.camera.computeScreenPixelSizeAt(i.lineVerticalPlaneSegment.origin)))),t.code.add(L`float planeDistancePixels(vec4 plane, vec3 pos) {
5
+ import{deg2rad as e}from"../core/mathUtils.js";import{set as i}from"../core/libs/gl-matrix-2/math/vec2.js";import{create as t}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{f as n,n as a,l as o,q as r,e as l,c as s,b as c,g as d}from"./vec32.js";import{create as f}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{t as p}from"./vec42.js";import{create as h}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{pointAt as g}from"../geometry/support/lineSegment.js";import{create as m,fromPositionAndNormal as u}from"../geometry/support/plane.js";import{g as x,d as w}from"./sphere.js";import{Laserline as P}from"../views/3d/webgl-engine/core/shaderLibrary/Laserline.glsl.js";import{ScreenSpacePass as b}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{Float2PassUniform as v}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{Float3PassUniform as D}from"../views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js";import{Float4PassUniform as M}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{FloatPassUniform as S}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as L}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as C}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";const A=e(6);function V(e){const i=new C;i.include(b),i.include(P,e);const t=i.fragment;if(e.lineVerticalPlaneEnabled||e.heightManifoldEnabled)if(t.uniforms.add(new S("maxPixelDistance",((i,t)=>e.heightManifoldEnabled?2*t.camera.computeScreenPixelSizeAt(i.heightManifoldTarget):2*t.camera.computeScreenPixelSizeAt(i.lineVerticalPlaneSegment.origin)))),t.code.add(L`float planeDistancePixels(vec4 plane, vec3 pos) {
6
6
  float dist = dot(plane.xyz, pos) + plane.w;
7
7
  float width = fwidth(dist);
8
8
  dist /= min(width, maxPixelDistance);
@@ -61,7 +61,7 @@ vec4 lineVerticalColor = laserlineProfile(lineVerticalDistance);
61
61
  float lineVerticalAlpha = 1.0 - smoothstep(angleCutoff.x, angleCutoff.y, abs(dot(normal, lineVerticalPlane.xyz)));
62
62
  color = max(color, lineVerticalColor * lineVerticalAlpha);
63
63
  }
64
- }`)),e.intersectsLineEnabled&&(t.uniforms.add(new v("angleCutoff",(e=>j(e))),new D("intersectsLineStart",((e,i)=>l(R,e.lineStartWorld,i.camera.viewMatrix))),new D("intersectsLineEnd",((e,i)=>l(R,e.lineEndWorld,i.camera.viewMatrix))),new D("intersectsLineDirection",((e,i)=>(s(G,e.intersectsLineSegment.vector),G[3]=0,a(R,f(G,G,i.camera.viewMatrix))))),new S("intersectsLineRadius",(e=>e.intersectsLineRadius))),t.code.add(L`{
64
+ }`)),e.intersectsLineEnabled&&(t.uniforms.add(new v("angleCutoff",(e=>j(e))),new D("intersectsLineStart",((e,i)=>l(R,e.lineStartWorld,i.camera.viewMatrix))),new D("intersectsLineEnd",((e,i)=>l(R,e.lineEndWorld,i.camera.viewMatrix))),new D("intersectsLineDirection",((e,i)=>(s(G,e.intersectsLineSegment.vector),G[3]=0,a(R,p(G,G,i.camera.viewMatrix))))),new S("intersectsLineRadius",(e=>e.intersectsLineRadius))),t.code.add(L`{
65
65
  if (pointIsWithinLine(pos, intersectsLineStart, intersectsLineEnd)) {
66
66
  float intersectsLineDistance = lineDistancePixels(intersectsLineStart, intersectsLineDirection, intersectsLineRadius, pos);
67
67
  vec4 intersectsLineColor = laserlineProfile(intersectsLineDistance);
@@ -69,4 +69,4 @@ float intersectsLineAlpha = 1.0 - smoothstep(angleCutoff.x, angleCutoff.y, 1.0 -
69
69
  color = max(color, intersectsLineColor * intersectsLineAlpha);
70
70
  }
71
71
  }`)),t.code.add(L`fragColor = laserlineOutput(color * depthDiscontinuityAlpha);
72
- }`),i}function j(t){return i(T,Math.cos(t.angleCutoff),Math.cos(Math.max(0,t.angleCutoff-e(2))))}function y(e,i){return l(x(_),e.pointDistanceOrigin,i.camera.viewMatrix),_[3]=r(e.pointDistanceOrigin,e.pointDistanceTarget),_}function O(e,i){const t=g(e.lineVerticalPlaneSegment,.5,R),n=e.renderCoordsHelper.worldUpAtPosition(t,U),o=a(F,e.lineVerticalPlaneSegment.vector),r=c(R,n,o);return a(r,r),I(e.lineVerticalPlaneSegment.origin,r,i.camera.viewMatrix)}function E(e,i){const t=s(R,e.lineVerticalPlaneSegment.origin);return e.renderCoordsHelper.setAltitude(t,0),l(t,t,i.camera.viewMatrix)}function z(e,i){const t=d(R,e.lineVerticalPlaneSegment.origin,e.lineVerticalPlaneSegment.vector);return e.renderCoordsHelper.setAltitude(t,0),l(t,t,i.camera.viewMatrix)}function I(e,i,t){return l(W,e,t),s(G,i),G[3]=0,f(G,G,t),u(W,G,H)}const T=t(),R=p(),G=h(),U=p(),F=p(),W=p(),H=m(),_=w(),N=Object.freeze(Object.defineProperty({__proto__:null,build:V,defaultAngleCutoff:A},Symbol.toStringTag,{value:"Module"}));export{N as L,V as b,A as d};
72
+ }`),i}function j(t){return i(T,Math.cos(t.angleCutoff),Math.cos(Math.max(0,t.angleCutoff-e(2))))}function y(e,i){return l(x(_),e.pointDistanceOrigin,i.camera.viewMatrix),_[3]=r(e.pointDistanceOrigin,e.pointDistanceTarget),_}function O(e,i){const t=g(e.lineVerticalPlaneSegment,.5,R),n=e.renderCoordsHelper.worldUpAtPosition(t,U),o=a(F,e.lineVerticalPlaneSegment.vector),r=c(R,n,o);return a(r,r),I(e.lineVerticalPlaneSegment.origin,r,i.camera.viewMatrix)}function E(e,i){const t=s(R,e.lineVerticalPlaneSegment.origin);return e.renderCoordsHelper.setAltitude(t,0),l(t,t,i.camera.viewMatrix)}function z(e,i){const t=d(R,e.lineVerticalPlaneSegment.origin,e.lineVerticalPlaneSegment.vector);return e.renderCoordsHelper.setAltitude(t,0),l(t,t,i.camera.viewMatrix)}function I(e,i,t){return l(W,e,t),s(G,i),G[3]=0,p(G,G,t),u(W,G,H)}const T=t(),R=f(),G=h(),U=f(),F=f(),W=f(),H=m(),_=w(),N=Object.freeze(Object.defineProperty({__proto__:null,build:V,defaultAngleCutoff:A},Symbol.toStringTag,{value:"Module"}));export{N as L,V as b,A as d};
@@ -2,7 +2,7 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import{I as e,s as t,y as o,h as i,n as a,j as r,k as n}from"./vec32.js";import{create as s,fromValues as d}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{PrecipitationType as c}from"../views/3d/environment/PrecipitationTechniqueConfiguration.js";import{Float3PassUniform as m}from"../views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js";import{FloatPassUniform as v}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as l}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{Matrix4PassUniform as f}from"../views/3d/webgl-engine/core/shaderModules/Matrix4PassUniform.js";import{ShaderBuilder as p}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{VertexAttribute as u}from"../views/3d/webgl-engine/lib/VertexAttribute.js";function h(e){const t=new p;return t.attributes.add(u.POSITION,"vec3"),t.attributes.add(u.INSTANCEFEATUREATTRIBUTE,"float"),t.vertex.uniforms.add(new m("cameraPosition",((e,t)=>t.camera.eye))),t.vertex.uniforms.add(new m("offset",((e,t)=>g(e,t)))),t.vertex.uniforms.add(new v("width",(e=>e.width))),t.vertex.uniforms.add(new f("proj",((e,t)=>t.camera.projectionMatrix))),t.vertex.uniforms.add(new f("view",((e,t)=>t.camera.viewMatrix))),t.vertex.uniforms.add(new v("time",(e=>e.time))),t.varyings.add("vUv","vec2"),t.vertex.code.add(l`
5
+ import{J as e,s as t,z as o,h as i,n as a,k as r,m as n}from"./vec32.js";import{create as s,fromValues as d}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{PrecipitationType as c}from"../views/3d/environment/PrecipitationTechniqueConfiguration.js";import{Float3PassUniform as m}from"../views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js";import{FloatPassUniform as v}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as l}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{Matrix4PassUniform as f}from"../views/3d/webgl-engine/core/shaderModules/Matrix4PassUniform.js";import{ShaderBuilder as p}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{VertexAttribute as u}from"../views/3d/webgl-engine/lib/VertexAttribute.js";function h(e){const t=new p;return t.attributes.add(u.POSITION,"vec3"),t.attributes.add(u.INSTANCEFEATUREATTRIBUTE,"float"),t.vertex.uniforms.add(new m("cameraPosition",((e,t)=>t.camera.eye))),t.vertex.uniforms.add(new m("offset",((e,t)=>g(e,t)))),t.vertex.uniforms.add(new v("width",(e=>e.width))),t.vertex.uniforms.add(new f("proj",((e,t)=>t.camera.projectionMatrix))),t.vertex.uniforms.add(new f("view",((e,t)=>t.camera.viewMatrix))),t.vertex.uniforms.add(new v("time",(e=>e.time))),t.varyings.add("vUv","vec2"),t.vertex.code.add(l`
6
6
  vec3 hash31(float p){
7
7
  vec3 p3 = fract(vec3(p) * vec3(0.1031, 0.1030, 0.0973));
8
8
  p3 += dot(p3, p3.yzx + 33.33);
@@ -2,14 +2,14 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import{p as e}from"./vec32.js";import{ScreenSpacePass as r}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{ReadDepth as o}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js";import{Float2DrawUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Float2DrawUniform.js";import{Float2PassUniform as a}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{FloatPassUniform as n}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as l}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as s}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DDrawUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Texture2DDrawUniform.js";import{Texture2DPassUniform as i}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";const f=4;function u(){const u=new s,c=u.fragment;u.include(r);const p=(f+1)/2,m=1/(2*p*p);return c.include(o),c.uniforms.add(new i("depthMap",(e=>e.depthTexture)),new d("tex",(e=>e.colorTexture)),new t("blurSize",(e=>e.blurSize)),new n("projScale",((r,o)=>{const t=e(o.camera.eye,o.camera.center);return t>5e4?Math.max(0,r.projScale-(t-5e4)):r.projScale})),new a("nearFar",((e,r)=>r.camera.nearFar))),c.code.add(l`
5
+ import{q as e}from"./vec32.js";import{ScreenSpacePass as r}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{ReadDepth as o}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js";import{Float2DrawUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Float2DrawUniform.js";import{Float2PassUniform as a}from"../views/3d/webgl-engine/core/shaderModules/Float2PassUniform.js";import{FloatPassUniform as n}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{glsl as l}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as s}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DDrawUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Texture2DDrawUniform.js";import{Texture2DPassUniform as i}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";const f=4;function u(){const u=new s,c=u.fragment;u.include(r);const m=(f+1)/2,p=1/(2*m*m);return c.include(o),c.uniforms.add(new i("depthMap",(e=>e.depthTexture)),new d("tex",(e=>e.colorTexture)),new t("blurSize",(e=>e.blurSize)),new n("projScale",((r,o)=>{const t=e(o.camera.eye,o.camera.center);return t>5e4?Math.max(0,r.projScale-(t-5e4)):r.projScale})),new a("nearFar",((e,r)=>r.camera.nearFar))),c.code.add(l`
6
6
  void blurFunction(vec2 uv, float r, float center_d, float sharpness, inout float wTotal, inout float bTotal) {
7
7
  float c = texture(tex, uv).r;
8
8
  float d = linearDepthFromTexture(depthMap, uv, nearFar);
9
9
 
10
10
  float ddiff = d - center_d;
11
11
 
12
- float w = exp(-r * r * ${l.float(m)} - ddiff * ddiff * sharpness);
12
+ float w = exp(-r * r * ${l.float(p)} - ddiff * ddiff * sharpness);
13
13
  wTotal += w;
14
14
  bTotal += w * c;
15
15
  }
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import"../core/has.js";import s from"../core/Logger.js";import{acosClamped as t}from"../core/mathUtils.js";import{ObjectStack as i}from"../core/ObjectStack.js";import{invert as n,transpose as r,fromRotation as o}from"../core/libs/gl-matrix-2/math/mat4.js";import{create as e}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{c as a,h as c,g as u,s as g,p as b,l as f,D as p,j as l,f as m,i as d,e as h,n as j,o as I}from"./vec32.js";import{fromValues as y,clone as P,create as v}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{Axis as N}from"../geometry/support/Axis.js";import{create as w,projectPointClamp as x,distance2 as M}from"../geometry/support/lineSegment.js";import{create as S,wrap as T,copy as A,fromVectorsAndPoint as V,fromValues as _,intersectRay as O,intersectLineSegment as E,intersectLineSegmentClamp as k,isPointInside as Y,projectPoint as q,getNormal as B,setOffsetFromPoint as C}from"../geometry/support/plane.js";import{distance2 as F}from"../geometry/support/ray.js";import{projectPointSignedLength as R}from"../geometry/support/vector.js";import{sv3d as L}from"../geometry/support/vectorStacks.js";const U=()=>s.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");class z{constructor(){this.plane=S(),this.origin=v(),this.basis1=v(),this.basis2=v()}}const D=z;function G(s=Ns){return{plane:S(s.plane),origin:P(s.origin),basis1:P(s.basis1),basis2:P(s.basis2)}}function W(s,t,i){const n=Ss.get();return n.origin=s,n.basis1=t,n.basis2=i,n.plane=T(0,0,0,0),J(n),n}function X(s,t=G()){return H(s.origin,s.basis1,s.basis2,t)}function Z(s,t){a(t.origin,s.origin),a(t.basis1,s.basis1),a(t.basis2,s.basis2),A(t.plane,s.plane)}function H(s,t,i,n=G()){return a(n.origin,s),a(n.basis1,t),a(n.basis2,i),J(n),Ps(n,"fromValues()"),n}function J(s){V(s.basis2,s.basis1,s.origin,s.plane)}function K(s,t,i){s!==i&&X(s,i);const n=c(L.get(),ds(s),t);return u(i.origin,i.origin,n),i.plane[3]-=t,i}function Q(s,t,i){return $(t,i),K(i,bs(s,s.origin),i),i}function $(s,t=G()){const i=(s[2]-s[0])/2,n=(s[3]-s[1])/2;return g(t.origin,s[0]+i,s[1]+n,0),g(t.basis1,i,0,0),g(t.basis2,0,n,0),_(0,0,1,0,t.plane),t}function ss(s,t,i){return!!O(s.plane,t,i)&&js(s,i)}function ts(s,t,i){if(ss(s,t,i))return i;const n=is(s,t,L.get());return u(i,t.origin,c(L.get(),t.direction,b(t.origin,n)/f(t.direction))),i}function is(s,i,n){const r=ws.get();vs(s,i,r,ws.get());let o=Number.POSITIVE_INFINITY;for(const e of Ts){const c=ys(s,e,xs.get()),u=L.get();if(E(r,c,u)){const s=p(L.get(),i.origin,u),r=Math.abs(t(l(i.direction,s)));r<o&&(o=r,a(n,u))}}return o===Number.POSITIVE_INFINITY?ns(s,i,n):n}function ns(s,t,i){if(ss(s,t,i))return i;const n=ws.get(),r=ws.get();vs(s,t,n,r);let o=Number.POSITIVE_INFINITY;for(const e of Ts){const c=ys(s,e,xs.get()),u=L.get();if(k(n,c,u)){const s=F(t,u);if(!Y(r,u))continue;s<o&&(o=s,a(i,u))}}return es(s,t.origin)<o&&rs(s,t.origin,i),i}function rs(s,t,i){const n=q(s.plane,t,L.get()),r=x(Is(s,s.basis1),n,-1,1,L.get()),o=x(Is(s,s.basis2),n,-1,1,L.get());return m(i,u(L.get(),r,o),s.origin),i}function os(s,t,i){const{origin:n,basis1:r,basis2:o}=s,e=m(L.get(),t,n),a=R(r,e),c=R(o,e),u=R(ds(s),e);return g(i,a,c,u)}function es(s,t){const i=os(s,t,L.get()),{basis1:n,basis2:r}=s,o=f(n),e=f(r),a=Math.max(Math.abs(i[0])-o,0),c=Math.max(Math.abs(i[1])-e,0),u=i[2];return a*a+c*c+u*u}function as(s,t){return Math.sqrt(es(s,t))}function cs(s,t){let i=Number.NEGATIVE_INFINITY;for(const n of Ts){const r=ys(s,n,xs.get()),o=M(r,t);o>i&&(i=o)}return Math.sqrt(i)}function us(s,t){return Y(s.plane,t)&&js(s,t)}function gs(s,t,i,n){return hs(s,i,n)}function bs(s,t){const i=-s.plane[3];return R(ds(s),t)-i}function fs(s,t,i,n){const r=bs(s,t),o=c(Ms,ds(s),i-r);return u(n,t,o),n}function ps(s,t){return d(s.basis1,t.basis1)&&d(s.basis2,t.basis2)&&d(s.origin,t.origin)}function ls(s,t,i){return s!==i&&X(s,i),n(As,t),r(As,As),h(i.basis1,s.basis1,As),h(i.basis2,s.basis2,As),h(B(i.plane),B(s.plane),As),h(i.origin,s.origin,t),C(i.plane,i.plane,i.origin),i}function ms(s,t,i,n){return s!==n&&X(s,n),o(Vs,t,i),h(n.basis1,s.basis1,Vs),h(n.basis2,s.basis2,Vs),J(n),n}function ds(s){return B(s.plane)}function hs(s,t,i){switch(t){case N.X:a(i,s.basis1),j(i,i);break;case N.Y:a(i,s.basis2),j(i,i);break;case N.Z:a(i,ds(s))}return i}function js(s,t){const i=m(L.get(),t,s.origin),n=I(s.basis1),r=I(s.basis2),o=l(s.basis1,i),e=l(s.basis2,i);return-o-n<0&&o-n<0&&-e-r<0&&e-r<0}function Is(s,t){const i=xs.get();return a(i.origin,s.origin),a(i.vector,t),i}function ys(s,t,i){const{basis1:n,basis2:r,origin:o}=s,e=c(L.get(),n,t.origin[0]),a=c(L.get(),r,t.origin[1]);u(i.origin,e,a),u(i.origin,i.origin,o);const g=c(L.get(),n,t.direction[0]),b=c(L.get(),r,t.direction[1]);return c(i.vector,u(g,g,b),2),i}function Ps(s,t){Math.abs(l(s.basis1,s.basis2)/(f(s.basis1)*f(s.basis2)))>1e-6&&U().warn(t,"Provided basis vectors are not perpendicular"),Math.abs(l(s.basis1,ds(s)))>1e-6&&U().warn(t,"Basis vectors and plane normal are not perpendicular"),Math.abs(-l(ds(s),s.origin)-s.plane[3])>1e-6&&U().warn(t,"Plane offset is not consistent with plane origin")}function vs(s,t,i,n){const r=ds(s);V(r,t.direction,t.origin,i),V(B(i),r,t.origin,n)}const Ns={plane:S(),origin:y(0,0,0),basis1:y(1,0,0),basis2:y(0,1,0)},ws=new i(S),xs=new i(w),Ms=v(),Ss=new i((()=>G())),Ts=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],As=e(),Vs=e(),_s=Object.freeze(Object.defineProperty({__proto__:null,BoundedPlaneClass:D,altitudeAt:bs,axisAt:gs,closestPoint:ns,closestPointOnSilhouette:is,copy:X,copyWithoutVerify:Z,create:G,distance:as,distance2:es,distanceToSilhouette:cs,elevate:K,equals:ps,extrusionContainsPoint:us,fromAABoundingRect:$,fromValues:H,intersectRay:ss,intersectRayClosestSilhouette:ts,normal:ds,projectPoint:rs,projectPointLocal:os,rotate:ms,setAltitudeAt:fs,setExtent:Q,transform:ls,up:Ns,updateUnboundedPlane:J,wrap:W},Symbol.toStringTag,{value:"Module"}));export{fs as A,D as B,Ns as C,G as a,_s as b,X as c,ps as d,us as e,H as f,$ as g,as as h,ss as i,Z as j,K as k,ts as l,is as m,ds as n,ns as o,rs as p,os as q,ms as r,Q as s,ls as t,J as u,es as v,W as w,cs as x,gs as y,bs as z};
5
+ import"../core/has.js";import s from"../core/Logger.js";import{acosClamped as t}from"../core/mathUtils.js";import{ObjectStack as i}from"../core/ObjectStack.js";import{invert as n,transpose as r,fromRotation as o}from"../core/libs/gl-matrix-2/math/mat4.js";import{create as e}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{c as a,h as c,g as u,s as g,q as b,l as f,E as p,k as l,f as m,j as d,e as h,n as j,p as I}from"./vec32.js";import{fromValues as y,clone as P,create as v}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{Axis as N}from"../geometry/support/Axis.js";import{create as w,projectPointClamp as x,distance2 as M}from"../geometry/support/lineSegment.js";import{create as S,wrap as T,copy as A,fromVectorsAndPoint as V,fromValues as _,intersectRay as E,intersectLineSegment as O,intersectLineSegmentClamp as k,isPointInside as q,projectPoint as Y,getNormal as B,setOffsetFromPoint as C}from"../geometry/support/plane.js";import{distance2 as F}from"../geometry/support/ray.js";import{projectPointSignedLength as R}from"../geometry/support/vector.js";import{sv3d as L}from"../geometry/support/vectorStacks.js";const U=()=>s.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");class z{constructor(){this.plane=S(),this.origin=v(),this.basis1=v(),this.basis2=v()}}const G=z;function W(s=Ns){return{plane:S(s.plane),origin:P(s.origin),basis1:P(s.basis1),basis2:P(s.basis2)}}function X(s,t,i){const n=Ss.get();return n.origin=s,n.basis1=t,n.basis2=i,n.plane=T(0,0,0,0),J(n),n}function Z(s,t=W()){return H(s.origin,s.basis1,s.basis2,t)}function D(s,t){a(t.origin,s.origin),a(t.basis1,s.basis1),a(t.basis2,s.basis2),A(t.plane,s.plane)}function H(s,t,i,n=W()){return a(n.origin,s),a(n.basis1,t),a(n.basis2,i),J(n),Ps(n,"fromValues()"),n}function J(s){V(s.basis2,s.basis1,s.origin,s.plane)}function K(s,t,i){s!==i&&Z(s,i);const n=c(L.get(),ds(s),t);return u(i.origin,i.origin,n),i.plane[3]-=t,i}function Q(s,t,i){return $(t,i),K(i,bs(s,s.origin),i),i}function $(s,t=W()){const i=(s[2]-s[0])/2,n=(s[3]-s[1])/2;return g(t.origin,s[0]+i,s[1]+n,0),g(t.basis1,i,0,0),g(t.basis2,0,n,0),_(0,0,1,0,t.plane),t}function ss(s,t,i){return!!E(s.plane,t,i)&&js(s,i)}function ts(s,t,i){if(ss(s,t,i))return i;const n=is(s,t,L.get());return u(i,t.origin,c(L.get(),t.direction,b(t.origin,n)/f(t.direction))),i}function is(s,i,n){const r=ws.get();vs(s,i,r,ws.get());let o=Number.POSITIVE_INFINITY;for(const e of Ts){const c=ys(s,e,xs.get()),u=L.get();if(O(r,c,u)){const s=p(L.get(),i.origin,u),r=Math.abs(t(l(i.direction,s)));r<o&&(o=r,a(n,u))}}return o===Number.POSITIVE_INFINITY?ns(s,i,n):n}function ns(s,t,i){if(ss(s,t,i))return i;const n=ws.get(),r=ws.get();vs(s,t,n,r);let o=Number.POSITIVE_INFINITY;for(const e of Ts){const c=ys(s,e,xs.get()),u=L.get();if(k(n,c,u)){const s=F(t,u);if(!q(r,u))continue;s<o&&(o=s,a(i,u))}}return es(s,t.origin)<o&&rs(s,t.origin,i),i}function rs(s,t,i){const n=Y(s.plane,t,L.get()),r=x(Is(s,s.basis1),n,-1,1,L.get()),o=x(Is(s,s.basis2),n,-1,1,L.get());return m(i,u(L.get(),r,o),s.origin),i}function os(s,t,i){const{origin:n,basis1:r,basis2:o}=s,e=m(L.get(),t,n),a=R(r,e),c=R(o,e),u=R(ds(s),e);return g(i,a,c,u)}function es(s,t){const i=os(s,t,L.get()),{basis1:n,basis2:r}=s,o=f(n),e=f(r),a=Math.max(Math.abs(i[0])-o,0),c=Math.max(Math.abs(i[1])-e,0),u=i[2];return a*a+c*c+u*u}function as(s,t){return Math.sqrt(es(s,t))}function cs(s,t){let i=Number.NEGATIVE_INFINITY;for(const n of Ts){const r=ys(s,n,xs.get()),o=M(r,t);o>i&&(i=o)}return Math.sqrt(i)}function us(s,t){return q(s.plane,t)&&js(s,t)}function gs(s,t,i,n){return hs(s,i,n)}function bs(s,t){const i=-s.plane[3];return R(ds(s),t)-i}function fs(s,t,i,n){const r=bs(s,t),o=c(Ms,ds(s),i-r);return u(n,t,o),n}function ps(s,t){return d(s.basis1,t.basis1)&&d(s.basis2,t.basis2)&&d(s.origin,t.origin)}function ls(s,t,i){return s!==i&&Z(s,i),n(As,t),r(As,As),h(i.basis1,s.basis1,As),h(i.basis2,s.basis2,As),h(B(i.plane),B(s.plane),As),h(i.origin,s.origin,t),C(i.plane,i.plane,i.origin),i}function ms(s,t,i,n){return s!==n&&Z(s,n),o(Vs,t,i),h(n.basis1,s.basis1,Vs),h(n.basis2,s.basis2,Vs),J(n),n}function ds(s){return B(s.plane)}function hs(s,t,i){switch(t){case N.X:a(i,s.basis1),j(i,i);break;case N.Y:a(i,s.basis2),j(i,i);break;case N.Z:a(i,ds(s))}return i}function js(s,t){const i=m(L.get(),t,s.origin),n=I(s.basis1),r=I(s.basis2),o=l(s.basis1,i),e=l(s.basis2,i);return-o-n<0&&o-n<0&&-e-r<0&&e-r<0}function Is(s,t){const i=xs.get();return a(i.origin,s.origin),a(i.vector,t),i}function ys(s,t,i){const{basis1:n,basis2:r,origin:o}=s,e=c(L.get(),n,t.origin[0]),a=c(L.get(),r,t.origin[1]);u(i.origin,e,a),u(i.origin,i.origin,o);const g=c(L.get(),n,t.direction[0]),b=c(L.get(),r,t.direction[1]);return c(i.vector,u(g,g,b),2),i}function Ps(s,t){Math.abs(l(s.basis1,s.basis2)/(f(s.basis1)*f(s.basis2)))>1e-6&&U().warn(t,"Provided basis vectors are not perpendicular"),Math.abs(l(s.basis1,ds(s)))>1e-6&&U().warn(t,"Basis vectors and plane normal are not perpendicular"),Math.abs(-l(ds(s),s.origin)-s.plane[3])>1e-6&&U().warn(t,"Plane offset is not consistent with plane origin")}function vs(s,t,i,n){const r=ds(s);V(r,t.direction,t.origin,i),V(B(i),r,t.origin,n)}const Ns={plane:S(),origin:y(0,0,0),basis1:y(1,0,0),basis2:y(0,1,0)},ws=new i(S),xs=new i(w),Ms=v(),Ss=new i((()=>W())),Ts=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],As=e(),Vs=e(),_s=Object.freeze(Object.defineProperty({__proto__:null,BoundedPlaneClass:G,altitudeAt:bs,axisAt:gs,closestPoint:ns,closestPointOnSilhouette:is,copy:Z,copyWithoutVerify:D,create:W,distance:as,distance2:es,distanceToSilhouette:cs,elevate:K,equals:ps,extrusionContainsPoint:us,fromAABoundingRect:$,fromValues:H,intersectRay:ss,intersectRayClosestSilhouette:ts,normal:ds,projectPoint:rs,projectPointLocal:os,rotate:ms,setAltitudeAt:fs,setExtent:Q,transform:ls,up:Ns,updateUnboundedPlane:J,wrap:X},Symbol.toStringTag,{value:"Module"}));export{fs as A,G as B,Ns as C,W as a,_s as b,Z as c,ps as d,us as e,H as f,$ as g,as as h,ss as i,D as j,K as k,ts as l,is as m,ds as n,ns as o,rs as p,os as q,ms as r,Q as s,ls as t,J as u,es as v,X as w,cs as x,gs as y,bs as z};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import{Cyclical as t,cyclical2PI as e}from"../core/Cyclical.js";import{deg2rad as o,rad2deg as i,asinClamped as a}from"../core/mathUtils.js";import{fromRotation as r,rotate as n}from"../core/libs/gl-matrix-2/math/mat4.js";import{create as s}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{n as c,b as l,j as m,e as f,E as h,l as p,h as u}from"./vec32.js";import{fromValues as y,create as M}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{getReferenceEllipsoid as d}from"../geometry/ellipsoidUtils.js";import g from"../geometry/Extent.js";import j from"../geometry/SpatialReference.js";import{geographicToWebMercator as T}from"../geometry/support/webMercatorUtils.js";import{createDirectionUp as b,directionToHeadingTilt as x}from"../views/3d/support/cameraUtilsInternal.js";import{getLonDeltaForDistance as R}from"../views/3d/support/earthUtils.js";const I=y(0,0,1),P=c(M(),y(1,1,1)),U=new t(-180,180),v=s(),w=M(),q=M();function E(t,e,i,a=b()){l(w,t,I),0===m(w,w)&&l(w,t,P),r(v,-o(e),t),n(v,v,-o(i),w);const{up:s,direction:p}=a;return l(s,w,t),c(s,s),f(s,s,v),c(p,t),h(p,p),f(p,p,v),a}function S(t,e,o,i){const a=w,r=q;return c(a,t),l(q,a,I),0===m(q,q)&&l(q,a,P),l(r,q,a),x(e,o,i,a,r)}function _(t,e,i,r){const n={eye:M(),up:null,tilt:r,heading:i},s=w;s[0]=t[0],s[1]=t[2],s[2]=-t[1];const c=e,l=o(i),m=o(r),f=Math.sin(l),h=Math.cos(l),y=Math.sin(m),d=Math.cos(m),g=p(s);let j;if(Math.abs(m)<1e-8)j=c+g;else{const t=g/y,e=a(c/t),o=Math.PI-m-e;j=t*Math.sin(o)}const T=d*c,b=c*c*(y*y),x=h*h*b,R=j-T,I=R*R,P=x*(x+I-s[1]*s[1]);if(P<0)return u(n.eye,s,j/g),n.tilt=0,W(n,t);const U=Math.sqrt(P),v=s[1]*R,q=x+I;let E;if(E=h>0?-U+v:U+v,Math.abs(q)<1e-8)return g<1e-8?(n.eye[0]=0,n.eye[1]=0,n.eye[2]=c):u(n.eye,s,j/g),n.tilt=0,H(n.eye),W(n,t);n.eye[1]=E/q;const S=f*f*b,_=y*c,k=h*_*n.eye[1],z=n.eye[1]*n.eye[1],A=1-z,C=Math.sqrt(A),G=x*z+S-2*k*C*R+A*I;return Math.abs(G)<1e-8?(u(n.eye,s,j/g),n.tilt=0,H(n.eye),W(n,t)):(n.eye[0]=(A*(j*s[0]-T*s[0])-_*C*(s[0]*n.eye[1]*h+s[2]*f))/G,n.eye[2]=(A*(j*s[2]-T*s[2])-_*C*(s[2]*n.eye[1]*h-s[0]*f))/G,u(n.eye,n.eye,j),H(n.eye),W(n,t))}function H(t){const e=t[1];t[1]=-t[2],t[2]=e}function W(t,e){const o=E(e,t.heading,t.tilt);return t.up=o.up,t}function k(t,e,o){const r=p(e),n=Math.sqrt(o*o+r*r-2*o*r*Math.cos(Math.PI-t)),s=a(o/(n/Math.sin(t)));return i(t-s)}function z(t,e,i){const r=o(t),n=p(e);return a(i/(n/Math.sin(r)))+r}function A(t,a,r,n,s){let c,l,m,f;const h=a.latitude,p=d(t.spatialReference).radius,u=a.longitude,y=R(h,r,p)/2;c=u-y,l=u+y;const M=o(h),b=(1+Math.sin(M))/(1-Math.sin(M)),x=(b+1)*Math.tan(n/p/2),I=x*x;function P(t){const o=Math.PI/2;return(t=e.normalize(t,-o))>o&&(t=Math.PI-t),t}if(m=1.5*Math.PI-2*Math.atan(.5*(x+Math.sqrt(4*b+I))),f=m+n/p,m=P(m),f=P(f),f<m){const t=f;f=m,m=t}if(m=Math.max(i(m),-90),f=Math.min(i(f),90),l=U.monotonic(c,l),l-c>180){const t=(l-c-180)/2;c+=t,l-=t}const v=t.spatialReference&&t.spatialReference.isGeographic?t.spatialReference:j.WGS84;return s?(s.xmin=c,s.ymin=m,s.xmax=l,s.ymax=f,s.spatialReference=v):s=new g(c,m,l,f,v),t.spatialReference&&t.spatialReference.isWebMercator&&T(s,!1,s),s}const C=Object.freeze(Object.defineProperty({__proto__:null,directionToHeadingTilt:S,eyeForCenterWithHeadingTilt:_,eyeTiltToLookAtTilt:z,headingTiltToDirectionUp:E,lookAtTiltToEyeTilt:k,toExtent:A},Symbol.toStringTag,{value:"Module"}));export{z as a,C as c,S as d,_ as e,E as h,k as l,A as t};
5
+ import{Cyclical as t,cyclical2PI as e}from"../core/Cyclical.js";import{deg2rad as o,rad2deg as i,asinClamped as a}from"../core/mathUtils.js";import{fromRotation as r,rotate as n}from"../core/libs/gl-matrix-2/math/mat4.js";import{create as s}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{n as c,b as l,k as m,e as f,F as h,l as p,h as u}from"./vec32.js";import{fromValues as y,create as M}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{getReferenceEllipsoid as d}from"../geometry/ellipsoidUtils.js";import g from"../geometry/Extent.js";import j from"../geometry/SpatialReference.js";import{geographicToWebMercator as T}from"../geometry/support/webMercatorUtils.js";import{createDirectionUp as b,directionToHeadingTilt as x}from"../views/3d/support/cameraUtilsInternal.js";import{getLonDeltaForDistance as R}from"../views/3d/support/earthUtils.js";const I=y(0,0,1),P=c(M(),y(1,1,1)),U=new t(-180,180),v=s(),w=M(),q=M();function S(t,e,i,a=b()){l(w,t,I),0===m(w,w)&&l(w,t,P),r(v,-o(e),t),n(v,v,-o(i),w);const{up:s,direction:p}=a;return l(s,w,t),c(s,s),f(s,s,v),c(p,t),h(p,p),f(p,p,v),a}function _(t,e,o,i){const a=w,r=q;return c(a,t),l(q,a,I),0===m(q,q)&&l(q,a,P),l(r,q,a),x(e,o,i,a,r)}function k(t,e,i,r){const n={eye:M(),up:null,tilt:r,heading:i},s=w;s[0]=t[0],s[1]=t[2],s[2]=-t[1];const c=e,l=o(i),m=o(r),f=Math.sin(l),h=Math.cos(l),y=Math.sin(m),d=Math.cos(m),g=p(s);let j;if(Math.abs(m)<1e-8)j=c+g;else{const t=g/y,e=a(c/t),o=Math.PI-m-e;j=t*Math.sin(o)}const T=d*c,b=c*c*(y*y),x=h*h*b,R=j-T,I=R*R,P=x*(x+I-s[1]*s[1]);if(P<0)return u(n.eye,s,j/g),n.tilt=0,H(n,t);const U=Math.sqrt(P),v=s[1]*R,q=x+I;let S;if(S=h>0?-U+v:U+v,Math.abs(q)<1e-8)return g<1e-8?(n.eye[0]=0,n.eye[1]=0,n.eye[2]=c):u(n.eye,s,j/g),n.tilt=0,E(n.eye),H(n,t);n.eye[1]=S/q;const _=f*f*b,k=y*c,W=h*k*n.eye[1],z=n.eye[1]*n.eye[1],A=1-z,C=Math.sqrt(A),F=x*z+_-2*W*C*R+A*I;return Math.abs(F)<1e-8?(u(n.eye,s,j/g),n.tilt=0,E(n.eye),H(n,t)):(n.eye[0]=(A*(j*s[0]-T*s[0])-k*C*(s[0]*n.eye[1]*h+s[2]*f))/F,n.eye[2]=(A*(j*s[2]-T*s[2])-k*C*(s[2]*n.eye[1]*h-s[0]*f))/F,u(n.eye,n.eye,j),E(n.eye),H(n,t))}function E(t){const e=t[1];t[1]=-t[2],t[2]=e}function H(t,e){const o=S(e,t.heading,t.tilt);return t.up=o.up,t}function W(t,e,o){const r=p(e),n=Math.sqrt(o*o+r*r-2*o*r*Math.cos(Math.PI-t)),s=a(o/(n/Math.sin(t)));return i(t-s)}function z(t,e,i){const r=o(t),n=p(e);return a(i/(n/Math.sin(r)))+r}function A(t,a,r,n,s){let c,l,m,f;const h=a.latitude,p=d(t.spatialReference).radius,u=a.longitude,y=R(h,r,p)/2;c=u-y,l=u+y;const M=o(h),b=(1+Math.sin(M))/(1-Math.sin(M)),x=(b+1)*Math.tan(n/p/2),I=x*x;function P(t){const o=Math.PI/2;return(t=e.normalize(t,-o))>o&&(t=Math.PI-t),t}if(m=1.5*Math.PI-2*Math.atan(.5*(x+Math.sqrt(4*b+I))),f=m+n/p,m=P(m),f=P(f),f<m){const t=f;f=m,m=t}if(m=Math.max(i(m),-90),f=Math.min(i(f),90),l=U.monotonic(c,l),l-c>180){const t=(l-c-180)/2;c+=t,l-=t}const v=t.spatialReference&&t.spatialReference.isGeographic?t.spatialReference:j.WGS84;return s?(s.xmin=c,s.ymin=m,s.xmax=l,s.ymax=f,s.spatialReference=v):s=new g(c,m,l,f,v),t.spatialReference&&t.spatialReference.isWebMercator&&T(s,!1,s),s}const C=Object.freeze(Object.defineProperty({__proto__:null,directionToHeadingTilt:_,eyeForCenterWithHeadingTilt:k,eyeTiltToLookAtTilt:z,headingTiltToDirectionUp:S,lookAtTiltToEyeTilt:W,toExtent:A},Symbol.toStringTag,{value:"Module"}));export{z as a,C as c,_ as d,k as e,S as h,W as l,A as t};
package/chunks/sphere.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import"../core/has.js";import t from"../core/Logger.js";import{acosClamped as r,cartesianToSpherical as n}from"../core/mathUtils.js";import{fromRotation as e}from"../core/libs/gl-matrix-2/math/mat4.js";import{g as o,h as s,p as i,l as a,b as c,e as u,f,o as m,n as l,s as g,a as p,k as h,q as d}from"./vec32.js";import{create as j}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{e as y,c as b}from"./vec42.js";import{create as M,fromValues as x}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{getEpsilon as v}from"../core/libs/gl-matrix-2/math/common.js";import{Axis as S}from"../geometry/support/Axis.js";import{fromPoints as A,closestPoint as q}from"../geometry/support/ray.js";import{angle as P}from"../geometry/support/vector.js";import{sv3d as R,sm4d as C}from"../geometry/support/vectorStacks.js";const _=k();function k(){return M()}const w=y,E=y;function L(t,r){return b(r,t)}function O(t,r){return x(t[0],t[1],t[2],r)}function T(t){return t}function z(t){t[0]=t[1]=t[2]=t[3]=0}function N(t,r){return t[0]=t[1]=t[2]=0,t[3]=r,t}function V(t){return t[3]}function Z(t){return t}function B(t,r,n,e){return x(t,r,n,e)}function U(t,r,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+r,n}function X(r,n,e){return t.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),r!==e&&L(r,e),e}function Y(t,r,n){if(null==r)return!1;if(!G(t,r,F))return!1;let{t0:e,t1:o}=F;if((e<0||o<e&&o>0)&&(e=o),e<0)return!1;if(n){const{origin:t,direction:o}=r;n[0]=t[0]+o[0]*e,n[1]=t[1]+o[1]*e,n[2]=t[2]+o[2]*e}return!0}function D(t,r,n){const e=A(r,n);if(!G(t,e,F))return[];const{origin:o,direction:s}=e,{t0:i,t1:a}=F,c=r=>{const n=j();return d(n,o,s,r),W(t,n,n)};return Math.abs(i-a)<v()?[c(i)]:[c(i),c(a)]}const F={t0:0,t1:0};function G(t,r,n){const{origin:e,direction:o}=r,s=H;s[0]=e[0]-t[0],s[1]=e[1]-t[1],s[2]=e[2]-t[2];const i=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===i)return!1;const a=2*(o[0]*s[0]+o[1]*s[1]+o[2]*s[2]),c=a*a-4*i*(s[0]*s[0]+s[1]*s[1]+s[2]*s[2]-t[3]*t[3]);if(c<0)return!1;const u=Math.sqrt(c);return n.t0=(-a-u)/(2*i),n.t1=(-a+u)/(2*i),!0}const H=j();function I(t,r){return Y(t,r,null)}function J(t,r,n){if(Y(t,r,n))return n;const e=K(t,r,R.get());return o(n,r.origin,s(R.get(),r.direction,i(r.origin,e)/a(r.direction))),n}function K(t,r,n){const o=R.get(),i=C.get();c(o,r.origin,r.direction);const f=V(t);c(n,o,r.origin),s(n,n,1/a(n)*f);const m=tt(t,r.origin),l=P(r.origin,n);return e(i,l+m,o),u(n,n,i),n}function Q(t,r,n){return Y(t,r,n)?n:(q(r,Z(t),n),W(t,n,n))}function W(t,r,n){const e=f(R.get(),r,Z(t)),i=s(R.get(),e,t[3]/a(e));return o(n,i,Z(t))}function $(t,r){const n=f(R.get(),r,Z(t)),e=m(n),o=t[3]*t[3];return Math.sqrt(Math.abs(e-o))}function tt(t,n){const e=f(R.get(),n,Z(t)),o=a(e),s=V(t),i=s+Math.abs(s-o);return r(s/i)}const rt=j();function nt(t,r,e,o){const s=f(rt,r,Z(t));switch(e){case S.X:{const t=n(s,rt)[2];return g(o,-Math.sin(t),Math.cos(t),0)}case S.Y:{const t=n(s,rt),r=t[1],e=t[2],i=Math.sin(r);return g(o,-i*Math.cos(e),-i*Math.sin(e),Math.cos(r))}case S.Z:return l(o,s);default:return}}function et(t,r){const n=f(at,r,Z(t));return a(n)-t[3]}function ot(t,r,n,e){const i=et(t,r),a=nt(t,r,S.Z,at),c=s(at,a,n-i);return o(e,r,c)}function st(t,r){const n=p(Z(t),r),e=V(t);return n<=e*e}function it(t,r,n=M()){const e=i(Z(t),Z(r)),o=t[3],s=r[3];return e+s<o?(b(n,t),n):e+o<s?(b(n,r),n):(h(n,Z(t),Z(r),(e+s-o)/(2*e)),n[3]=(e+o+s)/2,n)}const at=j(),ct=k(),ut=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:_,altitudeAt:et,angleToSilhouette:tt,axisAt:nt,clear:z,closestPoint:Q,closestPointOnSilhouette:K,containsPoint:st,copy:L,create:k,distanceToSilhouette:$,elevate:U,equals:E,exactEquals:w,fromCenterAndRadius:O,fromRadius:N,fromValues:B,getCenter:Z,getRadius:V,intersectLine:D,intersectRay:Y,intersectRayClosestSilhouette:J,intersectsRay:I,projectPoint:W,setAltitudeAt:ot,setExtent:X,tmpSphere:ct,union:it,wrap:T},Symbol.toStringTag,{value:"Module"}));export{nt as A,et as B,ot as C,_ as N,V as a,O as b,L as c,k as d,$ as e,B as f,Z as g,Y as h,I as i,K as j,N as k,w as l,D as m,st as n,E as o,W as p,z as q,U as r,ut as s,ct as t,it as u,X as v,T as w,J as x,Q as y,tt as z};
5
+ import"../core/has.js";import t from"../core/Logger.js";import{acosClamped as r,cartesianToSpherical as n}from"../core/mathUtils.js";import{fromRotation as e}from"../core/libs/gl-matrix-2/math/mat4.js";import{g as o,h as s,q as i,l as a,b as c,e as u,f,p as m,n as l,s as g,a as p,m as h,r as d}from"./vec32.js";import{create as j}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{e as y,c as b}from"./vec42.js";import{create as M,fromValues as x}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{getEpsilon as v}from"../core/libs/gl-matrix-2/math/common.js";import{Axis as S}from"../geometry/support/Axis.js";import{fromPoints as A,closestPoint as q}from"../geometry/support/ray.js";import{angle as P}from"../geometry/support/vector.js";import{sv3d as R,sm4d as C}from"../geometry/support/vectorStacks.js";const _=w();function w(){return M()}const E=y,L=y;function O(t,r){return b(r,t)}function T(t,r){return x(t[0],t[1],t[2],r)}function k(t){return t}function z(t){t[0]=t[1]=t[2]=t[3]=0}function N(t,r){return t[0]=t[1]=t[2]=0,t[3]=r,t}function V(t){return t[3]}function Z(t){return t}function B(t,r,n,e){return x(t,r,n,e)}function U(t,r,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+r,n}function X(r,n,e){return t.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),r!==e&&O(r,e),e}function Y(t,r,n){if(null==r)return!1;if(!G(t,r,F))return!1;let{t0:e,t1:o}=F;if((e<0||o<e&&o>0)&&(e=o),e<0)return!1;if(n){const{origin:t,direction:o}=r;n[0]=t[0]+o[0]*e,n[1]=t[1]+o[1]*e,n[2]=t[2]+o[2]*e}return!0}function D(t,r,n){const e=A(r,n);if(!G(t,e,F))return[];const{origin:o,direction:s}=e,{t0:i,t1:a}=F,c=r=>{const n=j();return d(n,o,s,r),W(t,n,n)};return Math.abs(i-a)<v()?[c(i)]:[c(i),c(a)]}const F={t0:0,t1:0};function G(t,r,n){const{origin:e,direction:o}=r,s=H;s[0]=e[0]-t[0],s[1]=e[1]-t[1],s[2]=e[2]-t[2];const i=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===i)return!1;const a=2*(o[0]*s[0]+o[1]*s[1]+o[2]*s[2]),c=a*a-4*i*(s[0]*s[0]+s[1]*s[1]+s[2]*s[2]-t[3]*t[3]);if(c<0)return!1;const u=Math.sqrt(c);return n.t0=(-a-u)/(2*i),n.t1=(-a+u)/(2*i),!0}const H=j();function I(t,r){return Y(t,r,null)}function J(t,r,n){if(Y(t,r,n))return n;const e=K(t,r,R.get());return o(n,r.origin,s(R.get(),r.direction,i(r.origin,e)/a(r.direction))),n}function K(t,r,n){const o=R.get(),i=C.get();c(o,r.origin,r.direction);const f=V(t);c(n,o,r.origin),s(n,n,1/a(n)*f);const m=tt(t,r.origin),l=P(r.origin,n);return e(i,l+m,o),u(n,n,i),n}function Q(t,r,n){return Y(t,r,n)?n:(q(r,Z(t),n),W(t,n,n))}function W(t,r,n){const e=f(R.get(),r,Z(t)),i=s(R.get(),e,t[3]/a(e));return o(n,i,Z(t))}function $(t,r){const n=f(R.get(),r,Z(t)),e=m(n),o=t[3]*t[3];return Math.sqrt(Math.abs(e-o))}function tt(t,n){const e=f(R.get(),n,Z(t)),o=a(e),s=V(t),i=s+Math.abs(s-o);return r(s/i)}const rt=j();function nt(t,r,e,o){const s=f(rt,r,Z(t));switch(e){case S.X:{const t=n(s,rt)[2];return g(o,-Math.sin(t),Math.cos(t),0)}case S.Y:{const t=n(s,rt),r=t[1],e=t[2],i=Math.sin(r);return g(o,-i*Math.cos(e),-i*Math.sin(e),Math.cos(r))}case S.Z:return l(o,s);default:return}}function et(t,r){const n=f(at,r,Z(t));return a(n)-t[3]}function ot(t,r,n,e){const i=et(t,r),a=nt(t,r,S.Z,at),c=s(at,a,n-i);return o(e,r,c)}function st(t,r){const n=p(Z(t),r),e=V(t);return n<=e*e}function it(t,r,n=M()){const e=i(Z(t),Z(r)),o=t[3],s=r[3];return e+s<o?(b(n,t),n):e+o<s?(b(n,r),n):(h(n,Z(t),Z(r),(e+s-o)/(2*e)),n[3]=(e+o+s)/2,n)}const at=j(),ct=w(),ut=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:_,altitudeAt:et,angleToSilhouette:tt,axisAt:nt,clear:z,closestPoint:Q,closestPointOnSilhouette:K,containsPoint:st,copy:O,create:w,distanceToSilhouette:$,elevate:U,equals:L,exactEquals:E,fromCenterAndRadius:T,fromRadius:N,fromValues:B,getCenter:Z,getRadius:V,intersectLine:D,intersectRay:Y,intersectRayClosestSilhouette:J,intersectsRay:I,projectPoint:W,setAltitudeAt:ot,setExtent:X,tmpSphere:ct,union:it,wrap:k},Symbol.toStringTag,{value:"Module"}));export{nt as A,et as B,ot as C,_ as N,V as a,T as b,O as c,w as d,$ as e,B as f,Z as g,Y as h,I as i,K as j,N as k,E as l,D as m,st as n,L as o,W as p,z as q,U as r,ut as s,ct as t,it as u,X as v,k as w,J as x,Q as y,tt as z};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import e from"../core/Error.js";import{c as t,f as n,j as o,g as r,h as i}from"./vec32.js";import{create as s}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{canProjectToWGS84ComparableLonLat as l}from"../geometry/projection.js";import{containsPoint as a,containsPointWithMargin as c,fromExtent as u,create as f}from"../geometry/support/aaBoundingRect.js";import{maxRootTiles as m}from"../views/3d/terrain/TerrainConst.js";import{getMissingTileInfoError as h,TilingScheme as p}from"../views/3d/terrain/TilingScheme.js";const g=s(),d=s(),x=s(),M=s();function S(e,t,n=0){const o=e.extent;if(null==o)return!1;if(0===n)return a(o,t);const r=Math.min(o[2]-o[0],o[3]-o[1]);return c(o,t,n*r)}function j(e,s,l,a){t(g,l),g[a]=s[a];const c=n(g,g,s),u=n(d,e,s),f=o(u,c),m=o(c,c);let h;h=f<=0?s:m<=f?l:r(g,s,i(c,c,f/m));const p=n(g,e,h);return Math.PI/2-Math.atan(p[2]/Math.sqrt(p[0]*p[0]+p[1]*p[1]))}function v(e,t,n){const o=e.extent;if(null==o)return 0;x[0]=o[0],x[1]=o[1],x[2]=n,M[0]=o[2],M[1]=o[3],M[2]=n;let r=1/0,i=1/0;return t[0]<x[0]?r=j(t,x,M,0):t[0]>M[0]&&(r=j(t,M,x,0)),t[1]<x[1]?i=j(t,x,M,1):t[1]>M[1]&&(i=j(t,M,x,1)),Math.min(r,i)}function T(t,n,o){if(null==t)return h();if(t.spatialReference.isGeographic&&!l(t.spatialReference))return new e("tilingscheme:local-unsupported-spatial-reference","The tiling scheme spatial reference is not supported in local scenes");const r=p.checkUnsupported(t);if(null!=r)return r;if(null==o)return new e("tilingscheme:extent-not-exist","The layer does not provide a layer extent.");const i=w(t,o);if(i)return i;const s=t.spatialReference;return null==n||s.equals(n)||n.isWGS84&&s.isWebMercator?null:new e("tilingscheme:spatial-reference-mismatch","The tiling scheme does not match the spatial reference of the local scene")}function w(t,n){const o=t.lods,r=o[0].resolution*2**o[0].level,i=[r*t.size[0],r*t.size[1]],s=[t.origin.x,t.origin.y],l=u(n),a=f();p.computeRowColExtent(l,i,s,a);const c=(a[2]-a[0])*(a[3]-a[1]);if(c>m){const n=o[0].scale*2**o[0].level;let i=Math.max((l[3]-l[1])/t.size[1],(l[2]-l[0])/t.size[0])*n/r;const s=Math.floor(Math.log(i)/Math.log(10));return i=Math.ceil(i/10**s)*10**s,new e("tilingscheme:too-many-root-tiles","Scale of level 0 of the tiling scheme (1:"+Math.floor(n).toLocaleString()+") is too large for the layer's extent. Suggested scale: 1:"+i.toLocaleString()+".",{level0Scale:n,suggestedLevel0Scale:i,requiredNumRootTiles:c,allowedNumRootTiles:m})}return null}const y=Object.freeze(Object.defineProperty({__proto__:null,checkIfTileInfoSupportedForViewSR:T,isInsideExtent:S,tiltToExtentEdge:v},Symbol.toStringTag,{value:"Module"}));export{v as a,T as c,S as i,y as t};
5
+ import e from"../core/Error.js";import{c as t,f as n,k as o,g as r,h as i}from"./vec32.js";import{create as s}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{canProjectToWGS84ComparableLonLat as l}from"../geometry/projection.js";import{containsPoint as a,containsPointWithMargin as c,fromExtent as u,create as f}from"../geometry/support/aaBoundingRect.js";import{maxRootTiles as m}from"../views/3d/terrain/TerrainConst.js";import{getMissingTileInfoError as h,TilingScheme as p}from"../views/3d/terrain/TilingScheme.js";const g=s(),d=s(),x=s(),M=s();function S(e,t,n=0){const o=e.extent;if(null==o)return!1;if(0===n)return a(o,t);const r=Math.min(o[2]-o[0],o[3]-o[1]);return c(o,t,n*r)}function v(e,s,l,a){t(g,l),g[a]=s[a];const c=n(g,g,s),u=n(d,e,s),f=o(u,c),m=o(c,c);let h;h=f<=0?s:m<=f?l:r(g,s,i(c,c,f/m));const p=n(g,e,h);return Math.PI/2-Math.atan(p[2]/Math.sqrt(p[0]*p[0]+p[1]*p[1]))}function j(e,t,n){const o=e.extent;if(null==o)return 0;x[0]=o[0],x[1]=o[1],x[2]=n,M[0]=o[2],M[1]=o[3],M[2]=n;let r=1/0,i=1/0;return t[0]<x[0]?r=v(t,x,M,0):t[0]>M[0]&&(r=v(t,M,x,0)),t[1]<x[1]?i=v(t,x,M,1):t[1]>M[1]&&(i=v(t,M,x,1)),Math.min(r,i)}function T(t,n,o){if(null==t)return h();if(t.spatialReference.isGeographic&&!l(t.spatialReference))return new e("tilingscheme:local-unsupported-spatial-reference","The tiling scheme spatial reference is not supported in local scenes");const r=p.checkUnsupported(t);if(null!=r)return r;if(null==o)return new e("tilingscheme:extent-not-exist","The layer does not provide a layer extent.");const i=w(t,o);if(i)return i;const s=t.spatialReference;return null==n||s.equals(n)||n.isWGS84&&s.isWebMercator?null:new e("tilingscheme:spatial-reference-mismatch","The tiling scheme does not match the spatial reference of the local scene")}function w(t,n){const o=t.lods,r=o[0].resolution*2**o[0].level,i=[r*t.size[0],r*t.size[1]],s=[t.origin.x,t.origin.y],l=u(n),a=f();p.computeRowColExtent(l,i,s,a);const c=(a[2]-a[0])*(a[3]-a[1]);if(c>m){const n=o[0].scale*2**o[0].level;let i=Math.max((l[3]-l[1])/t.size[1],(l[2]-l[0])/t.size[0])*n/r;const s=Math.floor(Math.log(i)/Math.log(10));return i=Math.ceil(i/10**s)*10**s,new e("tilingscheme:too-many-root-tiles","Scale of level 0 of the tiling scheme (1:"+Math.floor(n).toLocaleString()+") is too large for the layer's extent. Suggested scale: 1:"+i.toLocaleString()+".",{level0Scale:n,suggestedLevel0Scale:i,requiredNumRootTiles:c,allowedNumRootTiles:m})}return null}const y=Object.freeze(Object.defineProperty({__proto__:null,checkIfTileInfoSupportedForViewSR:T,isInsideExtent:S,tiltToExtentEdge:j},Symbol.toStringTag,{value:"Module"}));export{j as a,T as c,S as i,y as t};
package/chunks/vec32.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import{create as t}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{getEpsilon as n,RANDOM as a}from"../core/libs/gl-matrix-2/math/common.js";function s(t){const n=t[0],a=t[1],s=t[2];return Math.sqrt(n*n+a*a+s*s)}function r(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,a,s){return t[0]=n,t[1]=a,t[2]=s,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}function e(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],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}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}function h(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t}function M(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function l(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(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}function b(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}function d(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t}function g(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t}function q(t,n,a,s){return t[0]=n[0]+a[0]*s,t[1]=n[1]+a[1]*s,t[2]=n[2]+a[2]*s,t}function x(t,n){const a=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];return Math.sqrt(a*a+s*s+r*r)}function p(t,n){const a=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];return a*a+s*s+r*r}function v(t){const n=t[0],a=t[1],s=t[2];return n*n+a*a+s*s}function j(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function y(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function z(t,n){const a=n[0],s=n[1],r=n[2];let o=a*a+s*s+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function P(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function _(t,n,a){const s=n[0],r=n[1],o=n[2],u=a[0],e=a[1],c=a[2];return t[0]=r*c-o*e,t[1]=o*u-s*c,t[2]=s*e-r*u,t}function A(t,n,a,s){const r=n[0],o=n[1],u=n[2];return t[0]=r+s*(a[0]-r),t[1]=o+s*(a[1]-o),t[2]=u+s*(a[2]-u),t}function D(t,n,a,s,r,o){const u=o*o,e=u*(2*o-3)+1,c=u*(o-2)+o,i=u*(o-1),h=u*(3-2*o);return t[0]=n[0]*e+a[0]*c+s[0]*i+r[0]*h,t[1]=n[1]*e+a[1]*c+s[1]*i+r[1]*h,t[2]=n[2]*e+a[2]*c+s[2]*i+r[2]*h,t}function I(t,n,a,s,r,o){const u=1-o,e=u*u,c=o*o,i=e*u,h=3*o*e,M=3*c*u,f=c*o;return t[0]=n[0]*i+a[0]*h+s[0]*M+r[0]*f,t[1]=n[1]*i+a[1]*h+s[1]*M+r[1]*f,t[2]=n[2]*i+a[2]*h+s[2]*M+r[2]*f,t}function L(t,n){n=n||1;const s=a,r=2*s()*Math.PI,o=2*s()-1,u=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=o*n,t}function O(t,n,a){const s=n[0],r=n[1],o=n[2];return t[0]=a[0]*s+a[4]*r+a[8]*o+a[12],t[1]=a[1]*s+a[5]*r+a[9]*o+a[13],t[2]=a[2]*s+a[6]*r+a[10]*o+a[14],t}function S(t,n,a){const s=n[0],r=n[1],o=n[2];return t[0]=s*a[0]+r*a[3]+o*a[6],t[1]=s*a[1]+r*a[4]+o*a[7],t[2]=s*a[2]+r*a[5]+o*a[8],t}function E(t,n,a){const s=a[0],r=a[1],o=a[2],u=a[3],e=n[0],c=n[1],i=n[2],h=r*i-o*c,M=o*e-s*i,f=s*c-r*e,l=r*f-o*M,m=o*h-s*f,b=s*M-r*h,d=2*u;return t[0]=e+h*d+2*l,t[1]=c+M*d+2*m,t[2]=i+f*d+2*b,t}function Q(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[0],o[1]=r[1]*Math.cos(s)-r[2]*Math.sin(s),o[2]=r[1]*Math.sin(s)+r[2]*Math.cos(s),t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function T(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[2]*Math.sin(s)+r[0]*Math.cos(s),o[1]=r[1],o[2]=r[2]*Math.cos(s)-r[0]*Math.sin(s),t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function k(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[0]*Math.cos(s)-r[1]*Math.sin(s),o[1]=r[0]*Math.sin(s)+r[1]*Math.cos(s),o[2]=r[2],t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function w(t,n){z(B,t),z(C,n);const a=P(B,C);return a>1?0:a<-1?Math.PI:Math.acos(a)}const B=t(),C=t();function F(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function H(t,a){if(t===a)return!0;const s=t[0],r=t[1],o=t[2],u=a[0],e=a[1],c=a[2],i=n();return Math.abs(s-u)<=i*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(r-e)<=i*Math.max(1,Math.abs(r),Math.abs(e))&&Math.abs(o-c)<=i*Math.max(1,Math.abs(o),Math.abs(c))}function J(t,n,a){const s=a[0]-n[0],r=a[1]-n[1],o=a[2]-n[2];let u=s*s+r*r+o*o;return u>0?(u=1/Math.sqrt(u),t[0]=s*u,t[1]=r*u,t[2]=o*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const K=e,N=c,R=i,U=x,X=p,Y=s,Z=v,V=Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:w,bezier:I,ceil:h,copy:r,cross:_,direction:J,dist:U,distance:x,div:R,divide:i,dot:P,equals:H,exactEquals:G,floor:M,hermite:D,inverse:y,len:Y,length:s,lerp:A,max:b,min:m,mul:N,multiply:c,negate:j,normalize:z,random:L,rotateX:Q,rotateY:T,rotateZ:k,round:d,scale:g,scaleAndAdd:q,set:o,sign:l,sqrDist:X,sqrLen:Z,squaredDistance:p,squaredLength:v,str:F,sub:K,subtract:e,transformMat3:S,transformMat4:O,transformQuat:E},Symbol.toStringTag,{value:"Module"}));export{c as A,b as B,Y as C,J as D,j as E,H as F,i as G,V as H,M as I,k as J,h as K,d as L,y as M,D as N,I as O,L as P,Q,T as R,F as S,N as T,R as U,p as a,_ as b,r as c,w as d,O as e,e as f,u as g,g as h,G as i,P as j,A as k,s as l,U as m,z as n,v as o,x as p,q,E as r,o as s,S as t,f as u,X as v,Z as w,m as x,K as y,l as z};
5
+ import{create as t}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{getEpsilon as n,RANDOM as a}from"../core/libs/gl-matrix-2/math/common.js";function s(t){const n=t[0],a=t[1],s=t[2];return Math.sqrt(n*n+a*a+s*s)}function r(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,a,s){return t[0]=n,t[1]=a,t[2]=s,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}function e(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],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}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}function h(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t}function M(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function l(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(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}function b(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}function d(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t}function g(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t}function q(t,n,a,s){return t[0]=n[0]+a[0]*s,t[1]=n[1]+a[1]*s,t[2]=n[2]+a[2]*s,t}function x(t,n){const a=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];return Math.sqrt(a*a+s*s+r*r)}function p(t,n){const a=n[0]-t[0],s=n[1]-t[1],r=n[2]-t[2];return a*a+s*s+r*r}function v(t){const n=t[0],a=t[1],s=t[2];return n*n+a*a+s*s}function j(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function y(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function z(t,n){const a=n[0],s=n[1],r=n[2];let o=a*a+s*s+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function P(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function _(t,n,a){const s=n[0],r=n[1],o=n[2],u=a[0],e=a[1],c=a[2];return t[0]=r*c-o*e,t[1]=o*u-s*c,t[2]=s*e-r*u,t}function A(t,n,a,s){const r=n[0],o=n[1],u=n[2];return t[0]=r+s*(a[0]-r),t[1]=o+s*(a[1]-o),t[2]=u+s*(a[2]-u),t}function D(t,n,a,s,r,o){const u=o*o,e=u*(2*o-3)+1,c=u*(o-2)+o,i=u*(o-1),h=u*(3-2*o);return t[0]=n[0]*e+a[0]*c+s[0]*i+r[0]*h,t[1]=n[1]*e+a[1]*c+s[1]*i+r[1]*h,t[2]=n[2]*e+a[2]*c+s[2]*i+r[2]*h,t}function I(t,n,a,s,r,o){const u=1-o,e=u*u,c=o*o,i=e*u,h=3*o*e,M=3*c*u,f=c*o;return t[0]=n[0]*i+a[0]*h+s[0]*M+r[0]*f,t[1]=n[1]*i+a[1]*h+s[1]*M+r[1]*f,t[2]=n[2]*i+a[2]*h+s[2]*M+r[2]*f,t}function L(t,n){n=n||1;const s=a,r=2*s()*Math.PI,o=2*s()-1,u=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=o*n,t}function O(t,n,a){const s=n[0],r=n[1],o=n[2];return t[0]=a[0]*s+a[4]*r+a[8]*o+a[12],t[1]=a[1]*s+a[5]*r+a[9]*o+a[13],t[2]=a[2]*s+a[6]*r+a[10]*o+a[14],t}function S(t,n,a){const s=n[0],r=n[1],o=n[2];return t[0]=s*a[0]+r*a[3]+o*a[6],t[1]=s*a[1]+r*a[4]+o*a[7],t[2]=s*a[2]+r*a[5]+o*a[8],t}function E(t,n,a){const s=a[0],r=a[1],o=a[2],u=a[3],e=n[0],c=n[1],i=n[2],h=r*i-o*c,M=o*e-s*i,f=s*c-r*e,l=r*f-o*M,m=o*h-s*f,b=s*M-r*h,d=2*u;return t[0]=e+h*d+2*l,t[1]=c+M*d+2*m,t[2]=i+f*d+2*b,t}function Q(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[0],o[1]=r[1]*Math.cos(s)-r[2]*Math.sin(s),o[2]=r[1]*Math.sin(s)+r[2]*Math.cos(s),t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function T(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[2]*Math.sin(s)+r[0]*Math.cos(s),o[1]=r[1],o[2]=r[2]*Math.cos(s)-r[0]*Math.sin(s),t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function k(t,n,a,s){const r=[],o=[];return r[0]=n[0]-a[0],r[1]=n[1]-a[1],r[2]=n[2]-a[2],o[0]=r[0]*Math.cos(s)-r[1]*Math.sin(s),o[1]=r[0]*Math.sin(s)+r[1]*Math.cos(s),o[2]=r[2],t[0]=o[0]+a[0],t[1]=o[1]+a[1],t[2]=o[2]+a[2],t}function w(t,n){z(B,t),z(C,n);const a=P(B,C);return a>1?0:a<-1?Math.PI:Math.acos(a)}const B=t(),C=t();function F(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function H(t,a){if(t===a)return!0;const s=t[0],r=t[1],o=t[2],u=a[0],e=a[1],c=a[2],i=n();return Math.abs(s-u)<=i*Math.max(1,Math.abs(s),Math.abs(u))&&Math.abs(r-e)<=i*Math.max(1,Math.abs(r),Math.abs(e))&&Math.abs(o-c)<=i*Math.max(1,Math.abs(o),Math.abs(c))}function J(t,n,a){const s=a[0]-n[0],r=a[1]-n[1],o=a[2]-n[2];let u=s*s+r*r+o*o;return u>0?(u=1/Math.sqrt(u),t[0]=s*u,t[1]=r*u,t[2]=o*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const K=e,N=c,R=i,U=x,X=p,Y=s,Z=v,V=Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:w,bezier:I,ceil:h,copy:r,cross:_,direction:J,dist:U,distance:x,div:R,divide:i,dot:P,equals:H,exactEquals:G,floor:M,hermite:D,inverse:y,len:Y,length:s,lerp:A,max:b,min:m,mul:N,multiply:c,negate:j,normalize:z,random:L,rotateX:Q,rotateY:T,rotateZ:k,round:d,scale:g,scaleAndAdd:q,set:o,sign:l,sqrDist:X,sqrLen:Z,squaredDistance:p,squaredLength:v,str:F,sub:K,subtract:e,transformMat3:S,transformMat4:O,transformQuat:E},Symbol.toStringTag,{value:"Module"}));export{l as A,c as B,b as C,Y as D,J as E,j as F,H as G,i as H,V as I,M as J,k as K,h as L,d as M,D as N,I as O,L as P,Q,T as R,F as S,N as T,R as U,p as a,_ as b,r as c,w as d,O as e,e as f,u as g,g as h,y as i,G as j,P as k,s as l,A as m,z as n,U as o,v as p,x as q,q as r,o as s,S as t,E as u,f as v,X as w,Z as x,m as y,K as z};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import{create as t}from"../factories/mat3f64.js";import{create as n}from"../factories/quatf64.js";import{create as s,fromValues as o}from"../factories/vec3f64.js";import{getEpsilon as a,RANDOM as r}from"./common.js";import{j as e,b as c,C as i,n as u}from"../../../../chunks/vec32.js";import{c as h,s as M,g as f,d as l,h as m,l as p,i as q,j,n as d,a as g,e as P}from"../../../../chunks/vec42.js";function I(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function b(t,n,s){s*=.5;const o=Math.sin(s);return t[0]=o*n[0],t[1]=o*n[1],t[2]=o*n[2],t[3]=Math.cos(s),t}function v(t,n){const s=2*Math.acos(n[3]),o=Math.sin(s/2);return o>a()?(t[0]=n[0]/o,t[1]=n[1]/o,t[2]=n[2]/o):(t[0]=1,t[1]=0,t[2]=0),s}function x(t,n,s){const o=n[0],a=n[1],r=n[2],e=n[3],c=s[0],i=s[1],u=s[2],h=s[3];return t[0]=o*h+e*c+a*u-r*i,t[1]=a*h+e*i+r*c-o*u,t[2]=r*h+e*u+o*i-a*c,t[3]=e*h-o*c-a*i-r*u,t}function y(t,n,s){s*=.5;const o=n[0],a=n[1],r=n[2],e=n[3],c=Math.sin(s),i=Math.cos(s);return t[0]=o*i+e*c,t[1]=a*i+r*c,t[2]=r*i-a*c,t[3]=e*i-o*c,t}function A(t,n,s){s*=.5;const o=n[0],a=n[1],r=n[2],e=n[3],c=Math.sin(s),i=Math.cos(s);return t[0]=o*i-r*c,t[1]=a*i+e*c,t[2]=r*i+o*c,t[3]=e*i-a*c,t}function _(t,n,s){s*=.5;const o=n[0],a=n[1],r=n[2],e=n[3],c=Math.sin(s),i=Math.cos(s);return t[0]=o*i+a*c,t[1]=a*i-o*c,t[2]=r*i+e*c,t[3]=e*i-r*c,t}function k(t,n){const s=n[0],o=n[1],a=n[2];return t[0]=s,t[1]=o,t[2]=a,t[3]=Math.sqrt(Math.abs(1-s*s-o*o-a*a)),t}function z(t,n,s,o){const r=n[0],e=n[1],c=n[2],i=n[3];let u,h,M,f,l,m=s[0],p=s[1],q=s[2],j=s[3];return h=r*m+e*p+c*q+i*j,h<0&&(h=-h,m=-m,p=-p,q=-q,j=-j),1-h>a()?(u=Math.acos(h),M=Math.sin(u),f=Math.sin((1-o)*u)/M,l=Math.sin(o*u)/M):(f=1-o,l=o),t[0]=f*r+l*m,t[1]=f*e+l*p,t[2]=f*c+l*q,t[3]=f*i+l*j,t}function E(t){const n=r,s=n(),o=n(),a=n(),e=Math.sqrt(1-s),c=Math.sqrt(s);return t[0]=e*Math.sin(2*Math.PI*o),t[1]=e*Math.cos(2*Math.PI*o),t[2]=c*Math.sin(2*Math.PI*a),t[3]=c*Math.cos(2*Math.PI*a),t}function L(t,n){const s=n[0],o=n[1],a=n[2],r=n[3],e=s*s+o*o+a*a+r*r,c=e?1/e:0;return t[0]=-s*c,t[1]=-o*c,t[2]=-a*c,t[3]=r*c,t}function O(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function S(t,n){const s=n[0]+n[4]+n[8];let o;if(s>0)o=Math.sqrt(s+1),t[3]=.5*o,o=.5/o,t[0]=(n[5]-n[7])*o,t[1]=(n[6]-n[2])*o,t[2]=(n[1]-n[3])*o;else{let s=0;n[4]>n[0]&&(s=1),n[8]>n[3*s+s]&&(s=2);const a=(s+1)%3,r=(s+2)%3;o=Math.sqrt(n[3*s+s]-n[3*a+a]-n[3*r+r]+1),t[s]=.5*o,o=.5/o,t[3]=(n[3*a+r]-n[3*r+a])*o,t[a]=(n[3*a+s]+n[3*s+a])*o,t[r]=(n[3*r+s]+n[3*s+r])*o}return t}function T(t,n,s,o){const a=.5*Math.PI/180;n*=a,s*=a,o*=a;const r=Math.sin(n),e=Math.cos(n),c=Math.sin(s),i=Math.cos(s),u=Math.sin(o),h=Math.cos(o);return t[0]=r*i*h-e*c*u,t[1]=e*c*h+r*i*u,t[2]=e*i*u-r*c*h,t[3]=e*i*h+r*c*u,t}function C(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}const W=h,X=M,Y=f,Z=x,w=l,B=m,D=p,F=q,G=F,H=j,J=H,K=d,N=g,Q=P;function R(t,n,s){const o=e(n,s);return o<-.999999?(c(U,V,n),i(U)<1e-6&&c(U,$,n),u(U,U),b(t,U,Math.PI),t):o>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(c(U,n,s),t[0]=U[0],t[1]=U[1],t[2]=U[2],t[3]=1+o,K(t,t))}const U=s(),V=o(1,0,0),$=o(0,1,0);function tt(t,n,s,o,a,r){return z(nt,n,a,r),z(st,s,o,r),z(t,nt,st,2*r*(1-r)),t}const nt=n(),st=n();function ot(t,n,s,o){const a=at;return a[0]=s[0],a[3]=s[1],a[6]=s[2],a[1]=o[0],a[4]=o[1],a[7]=o[2],a[2]=-n[0],a[5]=-n[1],a[8]=-n[2],K(t,S(t,a))}const at=t(),rt=Object.freeze(Object.defineProperty({__proto__:null,add:Y,calculateW:k,conjugate:O,copy:W,dot:B,equals:Q,exactEquals:N,fromEuler:T,fromMat3:S,getAxisAngle:v,identity:I,invert:L,len:G,length:F,lerp:D,mul:Z,multiply:x,normalize:K,random:E,rotateX:y,rotateY:A,rotateZ:_,rotationTo:R,scale:w,set:X,setAxes:ot,setAxisAngle:b,slerp:z,sqlerp:tt,sqrLen:J,squaredLength:H,str:C},Symbol.toStringTag,{value:"Module"}));export{Y as add,k as calculateW,O as conjugate,W as copy,B as dot,Q as equals,N as exactEquals,T as fromEuler,S as fromMat3,v as getAxisAngle,I as identity,L as invert,G as len,F as length,D as lerp,Z as mul,x as multiply,K as normalize,rt as q,E as random,y as rotateX,A as rotateY,_ as rotateZ,R as rotationTo,w as scale,X as set,ot as setAxes,b as setAxisAngle,z as slerp,tt as sqlerp,J as sqrLen,H as squaredLength,C as str};
5
+ import{create as t}from"../factories/mat3f64.js";import{create as n}from"../factories/quatf64.js";import{create as s,fromValues as o}from"../factories/vec3f64.js";import{getEpsilon as a,RANDOM as r}from"./common.js";import{k as e,b as c,D as i,n as u}from"../../../../chunks/vec32.js";import{c as h,s as M,g as f,d as l,h as m,l as p,i as q,j,n as d,a as g,e as P}from"../../../../chunks/vec42.js";function I(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function b(t,n,s){s*=.5;const o=Math.sin(s);return t[0]=o*n[0],t[1]=o*n[1],t[2]=o*n[2],t[3]=Math.cos(s),t}function v(t,n){const s=2*Math.acos(n[3]),o=Math.sin(s/2);return o>a()?(t[0]=n[0]/o,t[1]=n[1]/o,t[2]=n[2]/o):(t[0]=1,t[1]=0,t[2]=0),s}function x(t,n,s){const o=n[0],a=n[1],r=n[2],e=n[3],c=s[0],i=s[1],u=s[2],h=s[3];return t[0]=o*h+e*c+a*u-r*i,t[1]=a*h+e*i+r*c-o*u,t[2]=r*h+e*u+o*i-a*c,t[3]=e*h-o*c-a*i-r*u,t}function y(t,n,s){s*=.5;const o=n[0],a=n[1],r=n[2],e=n[3],c=Math.sin(s),i=Math.cos(s);return t[0]=o*i+e*c,t[1]=a*i+r*c,t[2]=r*i-a*c,t[3]=e*i-o*c,t}function A(t,n,s){s*=.5;const o=n[0],a=n[1],r=n[2],e=n[3],c=Math.sin(s),i=Math.cos(s);return t[0]=o*i-r*c,t[1]=a*i+e*c,t[2]=r*i+o*c,t[3]=e*i-a*c,t}function _(t,n,s){s*=.5;const o=n[0],a=n[1],r=n[2],e=n[3],c=Math.sin(s),i=Math.cos(s);return t[0]=o*i+a*c,t[1]=a*i-o*c,t[2]=r*i+e*c,t[3]=e*i-r*c,t}function k(t,n){const s=n[0],o=n[1],a=n[2];return t[0]=s,t[1]=o,t[2]=a,t[3]=Math.sqrt(Math.abs(1-s*s-o*o-a*a)),t}function z(t,n,s,o){const r=n[0],e=n[1],c=n[2],i=n[3];let u,h,M,f,l,m=s[0],p=s[1],q=s[2],j=s[3];return h=r*m+e*p+c*q+i*j,h<0&&(h=-h,m=-m,p=-p,q=-q,j=-j),1-h>a()?(u=Math.acos(h),M=Math.sin(u),f=Math.sin((1-o)*u)/M,l=Math.sin(o*u)/M):(f=1-o,l=o),t[0]=f*r+l*m,t[1]=f*e+l*p,t[2]=f*c+l*q,t[3]=f*i+l*j,t}function E(t){const n=r,s=n(),o=n(),a=n(),e=Math.sqrt(1-s),c=Math.sqrt(s);return t[0]=e*Math.sin(2*Math.PI*o),t[1]=e*Math.cos(2*Math.PI*o),t[2]=c*Math.sin(2*Math.PI*a),t[3]=c*Math.cos(2*Math.PI*a),t}function L(t,n){const s=n[0],o=n[1],a=n[2],r=n[3],e=s*s+o*o+a*a+r*r,c=e?1/e:0;return t[0]=-s*c,t[1]=-o*c,t[2]=-a*c,t[3]=r*c,t}function O(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function S(t,n){const s=n[0]+n[4]+n[8];let o;if(s>0)o=Math.sqrt(s+1),t[3]=.5*o,o=.5/o,t[0]=(n[5]-n[7])*o,t[1]=(n[6]-n[2])*o,t[2]=(n[1]-n[3])*o;else{let s=0;n[4]>n[0]&&(s=1),n[8]>n[3*s+s]&&(s=2);const a=(s+1)%3,r=(s+2)%3;o=Math.sqrt(n[3*s+s]-n[3*a+a]-n[3*r+r]+1),t[s]=.5*o,o=.5/o,t[3]=(n[3*a+r]-n[3*r+a])*o,t[a]=(n[3*a+s]+n[3*s+a])*o,t[r]=(n[3*r+s]+n[3*s+r])*o}return t}function T(t,n,s,o){const a=.5*Math.PI/180;n*=a,s*=a,o*=a;const r=Math.sin(n),e=Math.cos(n),c=Math.sin(s),i=Math.cos(s),u=Math.sin(o),h=Math.cos(o);return t[0]=r*i*h-e*c*u,t[1]=e*c*h+r*i*u,t[2]=e*i*u-r*c*h,t[3]=e*i*h+r*c*u,t}function D(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}const W=h,X=M,Y=f,Z=x,w=l,B=m,C=p,F=q,G=F,H=j,J=H,K=d,N=g,Q=P;function R(t,n,s){const o=e(n,s);return o<-.999999?(c(U,V,n),i(U)<1e-6&&c(U,$,n),u(U,U),b(t,U,Math.PI),t):o>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(c(U,n,s),t[0]=U[0],t[1]=U[1],t[2]=U[2],t[3]=1+o,K(t,t))}const U=s(),V=o(1,0,0),$=o(0,1,0);function tt(t,n,s,o,a,r){return z(nt,n,a,r),z(st,s,o,r),z(t,nt,st,2*r*(1-r)),t}const nt=n(),st=n();function ot(t,n,s,o){const a=at;return a[0]=s[0],a[3]=s[1],a[6]=s[2],a[1]=o[0],a[4]=o[1],a[7]=o[2],a[2]=-n[0],a[5]=-n[1],a[8]=-n[2],K(t,S(t,a))}const at=t(),rt=Object.freeze(Object.defineProperty({__proto__:null,add:Y,calculateW:k,conjugate:O,copy:W,dot:B,equals:Q,exactEquals:N,fromEuler:T,fromMat3:S,getAxisAngle:v,identity:I,invert:L,len:G,length:F,lerp:C,mul:Z,multiply:x,normalize:K,random:E,rotateX:y,rotateY:A,rotateZ:_,rotationTo:R,scale:w,set:X,setAxes:ot,setAxisAngle:b,slerp:z,sqlerp:tt,sqrLen:J,squaredLength:H,str:D},Symbol.toStringTag,{value:"Module"}));export{Y as add,k as calculateW,O as conjugate,W as copy,B as dot,Q as equals,N as exactEquals,T as fromEuler,S as fromMat3,v as getAxisAngle,I as identity,L as invert,G as len,F as length,C as lerp,Z as mul,x as multiply,K as normalize,rt as q,E as random,y as rotateX,A as rotateY,_ as rotateZ,R as rotationTo,w as scale,X as set,ot as setAxes,b as setAxisAngle,z as slerp,tt as sqlerp,J as sqrLen,H as squaredLength,D as str};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import"../factories/vec3f64.js";import"./common.js";export{u as abs,g as add,d as angle,O as bezier,K as ceil,c as copy,b as cross,D as direction,m as dist,p as distance,U as div,G as divide,j as dot,F as equals,i as exactEquals,I as floor,N as hermite,M as inverse,C as len,l as length,k as lerp,B as max,x as min,T as mul,A as multiply,E as negate,n as normalize,P as random,Q as rotateX,R as rotateY,J as rotateZ,L as round,h as scale,q as scaleAndAdd,s as set,z as sign,v as sqrDist,w as sqrLen,a as squaredDistance,o as squaredLength,S as str,y as sub,f as subtract,t as transformMat3,e as transformMat4,r as transformQuat}from"../../../../chunks/vec32.js";
5
+ import"../factories/vec3f64.js";import"./common.js";export{v as abs,g as add,d as angle,O as bezier,L as ceil,c as copy,b as cross,E as direction,o as dist,q as distance,U as div,H as divide,k as dot,G as equals,j as exactEquals,J as floor,N as hermite,i as inverse,D as len,l as length,m as lerp,C as max,y as min,T as mul,B as multiply,F as negate,n as normalize,P as random,Q as rotateX,R as rotateY,K as rotateZ,M as round,h as scale,r as scaleAndAdd,s as set,A as sign,w as sqrDist,x as sqrLen,a as squaredDistance,p as squaredLength,S as str,z as sub,f as subtract,t as transformMat3,e as transformMat4,u as transformQuat}from"../../../../chunks/vec32.js";
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- export{H as vec3}from"../../../chunks/vec32.js";
5
+ export{I as vec3}from"../../../chunks/vec32.js";
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import"../core/has.js";import{rad2deg as t}from"../core/mathUtils.js";import o from"../geometry/Extent.js";import r from"../geometry/Polygon.js";import n from"../geometry/SpatialReference.js";import{earth as e}from"../geometry/support/Ellipsoid.js";import{convertFromPolygon as s}from"../layers/graphics/featureConversionUtils.js";import i from"../layers/graphics/OptimizedGeometry.js";import{project as c}from"../layers/graphics/data/projectionSupport.js";const f=16,a=8,l=4,u=2,h=1,m=new Float64Array(2),p=new Float64Array(2),g=-90,y=90,d=-180,x=180,M="0123456789bcdefghjkmnpqrstuvwxyz",j=64;function S(t,e,f,a){const l=[t.xmin,t.ymin,t.xmax,t.ymax],u=r.fromExtent(o.fromBounds(l,a)),h=c(u,a,n.WGS84,{densificationStep:e*j}),m=s(new i,h,!1,!1),p=m.coords.filter(((t,o)=>!(o%2))),g=m.coords.filter(((t,o)=>o%2)),y=Math.min(...p),d=Math.min(...g),x=Math.max(...p),M=Math.max(...g),S=b(y,d,f,n.WGS84),w=b(x,M,f,n.WGS84);if(!S||!w)throw new Error("InternalError: Unable to project tile bounds");return{bounds:l,geohashBounds:{xLL:S[0],yLL:S[1],xTR:w[0],yTR:w[1]},level:f}}function b(o,r,s,i){if(i.isWebMercator){const n=t(o/e.radius),i=n-360*Math.floor((n+180)/360),c=[0,0];return X(c,0,t(Math.PI/2-2*Math.atan(Math.exp(-r/e.radius))),i,s),c}const f=c({x:o,y:r},i,n.WGS84);if(!f)return null;const a=[0,0];return X(a,0,f.y,f.x,s),a}function w(t){return t<=57?t-48:t<=104?t-88:t<=107?t-89:t<=110?t-90:t-91}function A(t){return M[t]}function E(t){return(t[0]+t[1])/2}function G(t,o,r){return t[0]=o,t[1]=r,t}function W(t,o){const r=E(t),n=o,e=!o;t[0]=e*t[0]+n*r,t[1]=e*r+n*t[1]}function C(t,o){const r=o>E(t);return W(t,r),r}function L(t,o){const r=G(m,g,y),n=G(p,d,x);for(let e=0;e<o.length;e++){const t=w(o.charCodeAt(e));e%2==0?(W(n,!!(f&t)),W(n,!!(l&t)),W(n,!!(h&t)),W(r,!!(a&t)),W(r,!!(u&t))):(W(r,!!(f&t)),W(r,!!(l&t)),W(r,!!(h&t)),W(n,!!(a&t)),W(n,!!(u&t)))}return t[0]=E(r),t[1]=E(n),t}function v(t,o){let r=0,n=0,e=30,s=30;for(let i=0;i<o.length;i++){const t=w(o.charCodeAt(i)),c=i%2==0;e-=c?3:2,s-=c?2:3,r|=B(t,c)<<e,n|=F(t,c)<<s}return{geohashX:r,geohashY:n}}function R(t,o){let r=-90,n=90,e=-180,s=180;for(let i=0;i<o;i++){const o=Math.ceil((i+1)/2),c=Math.floor((i+1)/2),f=1-i%2,a=30-(3*o+2*c),l=30-(2*o+3*c),u=3*f+2*(1-f),h=2*f+3*(1-f),m=3*f+7*(1-f)<<l,p=(7*f+3*(1-f)<<a&t.geohashX)>>a,g=(m&t.geohashY)>>l;for(let t=u-1;t>=0;t--){const o=(e+s)/2,r=p&1<<t?1:0;e=(1-r)*e+r*o,s=(1-r)*o+r*s}for(let t=h-1;t>=0;t--){const o=(r+n)/2,e=g&1<<t?1:0;r=(1-e)*r+e*o,n=(1-e)*o+e*n}}return[e,r,s,n]}function U(t,o,r,n){n%2&&(n+=1);let e=0,s=0,i=-90,c=90,f=-180,a=180;for(let l=0;l<n/2;l++){for(let t=0;t<5;t++){const o=(f+a)/2,n=r>o?1:0;e|=n<<29-(t+5*l),f=(1-n)*f+n*o,a=(1-n)*o+n*a}for(let t=0;t<5;t++){const r=(i+c)/2,n=o>r?1:0;s|=n<<29-(t+5*l),i=(1-n)*i+n*r,c=(1-n)*r+n*c}}t.geohashX=e,t.geohashY=s}function X(t,o,r,n,e){e%2&&(e+=1);let s=0,i=0,c=-90,f=90,a=-180,l=180;for(let u=0;u<e/2;u++){for(let t=0;t<5;t++){const o=(a+l)/2,r=n>o?1:0;s|=r<<29-(t+5*u),a=(1-r)*a+r*o,l=(1-r)*o+r*l}for(let t=0;t<5;t++){const o=(c+f)/2,n=r>o?1:0;i|=n<<29-(t+5*u),c=(1-n)*c+n*o,f=(1-n)*o+n*f}}t[2*o]=s,t[2*o+1]=i}function Y(t,o,r){let n="";const e=G(m,-90,90),s=G(p,-180,180);for(let i=0;i<r;i++){let r=0;!(i%2)?(r|=C(s,o)<<4,r|=C(e,t)<<3,r|=C(s,o)<<2,r|=C(e,t)<<1,r|=C(s,o)<<0):(r|=C(e,t)<<4,r|=C(s,o)<<3,r|=C(e,t)<<2,r|=C(s,o)<<1,r|=C(e,t)<<0),n+=A(r)}return n}function z(t,o,r){return r?t&h|(o&h)<<1|(t&u)<<1|(o&u)<<2|(t&l)<<2:o&h|(t&h)<<1|(o&u)<<1|(t&u)<<2|(o&l)<<2}function B(t,o){return o?h&t|(l&t)>>1|(f&t)>>2:(u&t)>>1|(a&t)>>2}function F(t,o){return o?(u&t)>>1|(a&t)>>2:h&t|(l&t)>>1|(f&t)>>2}function I(t,o,r){const n=!((t.length-1)%2),e=t.substring(0,t.length-1),s=w(t.charCodeAt(t.length-1));let i=0,c=0,m=0,p=0;n?(i=8,c=4,m=h&s|(l&s)>>1|(f&s)>>2,p=(u&s)>>1|(a&s)>>2):(i=4,c=8,p=h&s|(l&s)>>1|(f&s)>>2,m=(u&s)>>1|(a&s)>>2);const g=m+o,y=p+r,d=Math.floor(g/i),x=Math.floor(y/c),M=A(z(g-d*i,y-x*c,n));return t.length>1&&(d||x)?I(e,d,x)+M:e+M}export{v as convertGeohash32ToXY,w as decodeBase32Char,L as decodeGeohash,R as decodeGeohashXY,A as encodeBase32Char,Y as encodeGeohash,b as getGeohash,S as getGeohashBounds,I as getRelativeGeohash,X as setGeohashBuf,U as setGeohashXY,B as unpackXBits,F as unpackYBits};
5
+ import"../core/has.js";import{rad2deg as t}from"../core/mathUtils.js";import o from"../geometry/Extent.js";import r from"../geometry/Polygon.js";import n from"../geometry/SpatialReference.js";import{earth as e}from"../geometry/support/Ellipsoid.js";import{convertFromPolygon as s}from"../layers/graphics/featureConversionUtils.js";import i from"../layers/graphics/OptimizedGeometry.js";import{project as c}from"../layers/graphics/data/projectionSupport.js";const f=16,l=8,a=4,u=2,h=1,m=new Float64Array(2),p=new Float64Array(2),g=-90,y=90,d=-180,x=180,M="0123456789bcdefghjkmnpqrstuvwxyz",j=64;function S(t,e,f,l){const a=[t.xmin,t.ymin,t.xmax,t.ymax],u=r.fromExtent(o.fromBounds(a,l)),h=c(u,l,n.WGS84,{densificationStep:e*j});if(!h)return null;const m=s(new i,h,!1,!1),p=m.coords.filter(((t,o)=>!(o%2))),g=m.coords.filter(((t,o)=>o%2)),y=Math.min(...p),d=Math.min(...g),x=Math.max(...p),M=Math.max(...g),S=A(y,d,f,n.WGS84),G=A(x,M,f,n.WGS84);return S&&G?{bounds:a,geohashBounds:{xLL:S[0],yLL:S[1],xTR:G[0],yTR:G[1]},level:f}:null}function A(o,r,s,i){if(i.isWebMercator){const n=t(o/e.radius),i=n-360*Math.floor((n+180)/360),c=[0,0];return Y(c,0,t(Math.PI/2-2*Math.atan(Math.exp(-r/e.radius))),i,s),c}const f=c({x:o,y:r},i,n.WGS84);if(!f)return null;const l=[0,0];return Y(l,0,f.y,f.x,s),l}function G(t){return t<=57?t-48:t<=104?t-88:t<=107?t-89:t<=110?t-90:t-91}function W(t){return M[t]}function b(t){return(t[0]+t[1])/2}function w(t,o,r){return t[0]=o,t[1]=r,t}function C(t,o){const r=b(t),n=o,e=!o;t[0]=e*t[0]+n*r,t[1]=e*r+n*t[1]}function L(t,o){const r=o>b(t);return C(t,r),r}function v(t,o){const r=w(m,g,y),n=w(p,d,x);for(let e=0;e<o.length;e++){const t=G(o.charCodeAt(e));e%2==0?(C(n,!!(f&t)),C(n,!!(a&t)),C(n,!!(h&t)),C(r,!!(l&t)),C(r,!!(u&t))):(C(r,!!(f&t)),C(r,!!(a&t)),C(r,!!(h&t)),C(n,!!(l&t)),C(n,!!(u&t)))}return t[0]=b(r),t[1]=b(n),t}function E(t,o){let r=0,n=0,e=30,s=30;for(let i=0;i<o.length;i++){const t=G(o.charCodeAt(i)),c=i%2==0;e-=c?3:2,s-=c?2:3,r|=F(t,c)<<e,n|=P(t,c)<<s}return{geohashX:r,geohashY:n}}function R(t,o){let r=-90,n=90,e=-180,s=180;for(let i=0;i<o;i++){const o=Math.ceil((i+1)/2),c=Math.floor((i+1)/2),f=1-i%2,l=30-(3*o+2*c),a=30-(2*o+3*c),u=3*f+2*(1-f),h=2*f+3*(1-f),m=3*f+7*(1-f)<<a,p=(7*f+3*(1-f)<<l&t.geohashX)>>l,g=(m&t.geohashY)>>a;for(let t=u-1;t>=0;t--){const o=(e+s)/2,r=p&1<<t?1:0;e=(1-r)*e+r*o,s=(1-r)*o+r*s}for(let t=h-1;t>=0;t--){const o=(r+n)/2,e=g&1<<t?1:0;r=(1-e)*r+e*o,n=(1-e)*o+e*n}}return[e,r,s,n]}function X(t,o,r,n){n%2&&(n+=1);let e=0,s=0,i=-90,c=90,f=-180,l=180;for(let a=0;a<n/2;a++){for(let t=0;t<5;t++){const o=(f+l)/2,n=r>o?1:0;e|=n<<29-(t+5*a),f=(1-n)*f+n*o,l=(1-n)*o+n*l}for(let t=0;t<5;t++){const r=(i+c)/2,n=o>r?1:0;s|=n<<29-(t+5*a),i=(1-n)*i+n*r,c=(1-n)*r+n*c}}t.geohashX=e,t.geohashY=s}function Y(t,o,r,n,e){e%2&&(e+=1);let s=0,i=0,c=-90,f=90,l=-180,a=180;for(let u=0;u<e/2;u++){for(let t=0;t<5;t++){const o=(l+a)/2,r=n>o?1:0;s|=r<<29-(t+5*u),l=(1-r)*l+r*o,a=(1-r)*o+r*a}for(let t=0;t<5;t++){const o=(c+f)/2,n=r>o?1:0;i|=n<<29-(t+5*u),c=(1-n)*c+n*o,f=(1-n)*o+n*f}}t[2*o]=s,t[2*o+1]=i}function z(t,o,r){let n="";const e=w(m,-90,90),s=w(p,-180,180);for(let i=0;i<r;i++){let r=0;!(i%2)?(r|=L(s,o)<<4,r|=L(e,t)<<3,r|=L(s,o)<<2,r|=L(e,t)<<1,r|=L(s,o)<<0):(r|=L(e,t)<<4,r|=L(s,o)<<3,r|=L(e,t)<<2,r|=L(s,o)<<1,r|=L(e,t)<<0),n+=W(r)}return n}function B(t,o,r){return r?t&h|(o&h)<<1|(t&u)<<1|(o&u)<<2|(t&a)<<2:o&h|(t&h)<<1|(o&u)<<1|(t&u)<<2|(o&a)<<2}function F(t,o){return o?h&t|(a&t)>>1|(f&t)>>2:(u&t)>>1|(l&t)>>2}function P(t,o){return o?(u&t)>>1|(l&t)>>2:h&t|(a&t)>>1|(f&t)>>2}function T(t,o,r){const n=!((t.length-1)%2),e=t.substring(0,t.length-1),s=G(t.charCodeAt(t.length-1));let i=0,c=0,m=0,p=0;n?(i=8,c=4,m=h&s|(a&s)>>1|(f&s)>>2,p=(u&s)>>1|(l&s)>>2):(i=4,c=8,p=h&s|(a&s)>>1|(f&s)>>2,m=(u&s)>>1|(l&s)>>2);const g=m+o,y=p+r,d=Math.floor(g/i),x=Math.floor(y/c),M=W(B(g-d*i,y-x*c,n));return t.length>1&&(d||x)?T(e,d,x)+M:e+M}export{E as convertGeohash32ToXY,G as decodeBase32Char,v as decodeGeohash,R as decodeGeohashXY,W as encodeBase32Char,z as encodeGeohash,A as getGeohash,S as getGeohashBounds,T as getRelativeGeohash,Y as setGeohashBuf,X as setGeohashXY,F as unpackXBits,P as unpackYBits};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import{rad2deg as r,deg2rad as t}from"../../core/mathUtils.js";import{setAxisAngle as n,multiply as o,getAxisAngle as i}from"../../core/libs/gl-matrix-2/math/quat.js";import{create as c}from"../../core/libs/gl-matrix-2/factories/quatf64.js";import{c as e,b as u,n as f,d as s}from"../../chunks/vec32.js";import{UNIT_X as a,UNIT_Y as m,UNIT_Z as l}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as p}from"../../core/libs/gl-matrix-2/factories/vec4f64.js";function j(r=A){return[r[0],r[1],r[2],r[3]]}function b(r,t,n,o){return h(r,t,n,o,D)}function x(r,t){return h(r[0],r[1],r[2],t,D)}function g(r,t=j()){return h(r[0],r[1],r[2],r[3],t)}function h(r,t,n,o,i=j()){return i[0]=r,i[1]=t,i[2]=n,i[3]=o,i}function v(r,t,n=j()){return e(U(n),r),n[3]=t,n}function q(r,t,n=p()){return u(n,r,t),f(n,n),n[3]=-s(r,t),n}function d(t,c,e=j()){return n(B,U(t),y(t)),n(C,U(c),y(c)),o(B,C,B),z(e,r(i(U(e),B)))}function k(r,t,n,o=j()){return v(a,r,E),v(m,t,F),v(l,n,G),d(E,F,E),d(E,G,o),o}function U(r){return r}function w(r){return r[3]}function y(r){return t(r[3])}function z(r,t){return r[3]=t,r}const A=[0,0,1,0],B=c(),C=c(),D=j(),E=j(),F=j(),G=j();export{w as angle,y as angleRad,U as axis,d as compose,k as composeAxes,g as copy,j as create,v as fromAxisAndAngle,q as fromPoints,h as fromValues,z as setAngle,A as up,b as wrap,x as wrapAxisAngle};
5
+ import{rad2deg as r,deg2rad as t}from"../../core/mathUtils.js";import{getRotation as n}from"../../core/libs/gl-matrix-2/math/mat4.js";import{getAxisAngle as o,setAxisAngle as i,multiply as c}from"../../core/libs/gl-matrix-2/math/quat.js";import{create as e}from"../../core/libs/gl-matrix-2/factories/quatf64.js";import{c as u,b as f,n as s,d as m}from"../../chunks/vec32.js";import{UNIT_X as a,UNIT_Y as l,UNIT_Z as p}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{create as j}from"../../core/libs/gl-matrix-2/factories/vec4f64.js";function b(r=C){return[r[0],r[1],r[2],r[3]]}function x(r,t,n,o){return v(r,t,n,o,F)}function g(r,t){return v(r[0],r[1],r[2],t,F)}function h(r,t=b()){return v(r[0],r[1],r[2],r[3],t)}function v(r,t,n,o,i=b()){return i[0]=r,i[1]=t,i[2]=n,i[3]=o,i}function q(r,t,n=b()){return u(y(n),r),n[3]=t,n}function d(r,t,n=j()){return f(n,r,t),s(n,n),n[3]=-m(r,t),n}function k(t,i=b()){const c=n(D,t);return B(i,r(o(i,c))),i}function U(t,n,e=b()){return i(D,y(t),A(t)),i(E,y(n),A(n)),c(D,E,D),B(e,r(o(y(e),D)))}function w(r,t,n,o=b()){return q(a,r,G),q(l,t,H),q(p,n,I),U(G,H,G),U(G,I,o),o}function y(r){return r}function z(r){return r[3]}function A(r){return t(r[3])}function B(r,t){return r[3]=t,r}const C=[0,0,1,0],D=e(),E=e(),F=b(),G=b(),H=b(),I=b();export{z as angle,A as angleRad,y as axis,U as compose,w as composeAxes,h as copy,b as create,q as fromAxisAndAngle,k as fromMatrix,d as fromPoints,v as fromValues,B as setAngle,C as up,x as wrap,g as wrapAxisAngle};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import{copy as t}from"../../core/libs/gl-matrix-2/math/mat4.js";import{s as e,j as n,c as o,n as r,b as i}from"../../chunks/vec32.js";import{create as s}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{getReferenceEllipsoid as a}from"../ellipsoidUtils.js";import u from"../SpatialReference.js";import{getSphericalPCPF as c}from"../spatialReferenceEllipsoidUtils.js";import{Axis as l}from"./Axis.js";import{f,b as p}from"../../chunks/boundedPlane.js";import{f as m,s as v}from"../../chunks/sphere.js";function j(t){const{value:e,operations:n}=t;return{operations:n,value:n.create(e)}}function h(t,e,n){return t.operations.setExtent(t.value,e,n.value),n}function d(t){return{operations:t,value:t.create()}}function x(t,e,n=d(t)){return n.operations=t,t.copy(e,n.value),n}function A(t){return x(v,m(0,0,0,a(t).radius))}const b=2**50;function P(){return x(p,f([0,0,0],[b,0,0],[0,b,0]))}function R(t,e,n){return t.operations.axisAt(t.value,e,l.Z,n)}function S(t,e,n,o){return t.operations.axisAt(t.value,e,n,o)}function g(t,e,n){return t.operations.intersectRay(t.value,e,n)}function k(t,e,n){return t.operations.closestPoint(t.value,e,n)}function y(t,e,n){return t.operations.intersectRayClosestSilhouette(t.value,e,n)}function C(t,e,n){return t.operations.closestPointOnSilhouette(t.value,e,n)}function E(t,e){return t.operations.distanceToSilhouette(t.value,e)}function U(t,e){return t.operations.altitudeAt(t.value,e)}function G(t,e,n,o){return t.operations.setAltitudeAt(t.value,e,n,o)}function O(n,o,r,i){return o!==i&&t(i,o),e(Z,i[12],i[13],i[14]),G(n,Z,r,Z),i[12]=Z[0],i[13]=Z[1],i[14]=Z[2],i}function T(t,e,n){return t.operations.elevate(t.value,e,n.value)}const Z=s();function q(t,e,o,r,i){return i[0]=n(t,e),i[1]=n(t,o),i[2]=n(t,r),i}function w(t,e,n,s,a){o(n,t),o(B,e),r(B,B),i(s,B,n),i(a,s,n)}function z(t,e){return t?c(e):e.isGeographic?u.PlateCarree:e}const B=s();export{U as altitudeAt,S as axisAt,k as closestPoint,C as closestPointOnSilhouette,w as coordinateSystemFromOneAxisAndNormalVector,j as create,d as createFromOperations,A as createGlobal,P as createLocal,E as distanceToSilhouette,T as elevate,x as fromValues,g as intersectRay,y as intersectRayClosestSilhouette,R as normalAt,z as renderSRFromViewSR,G as setAltitudeAt,O as setAltitudeOfTransformation,h as setExtent,q as vectorCoordinates};
5
+ import{copy as t}from"../../core/libs/gl-matrix-2/math/mat4.js";import{s as e,k as n,c as o,n as r,b as i}from"../../chunks/vec32.js";import{create as s}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{getReferenceEllipsoid as a}from"../ellipsoidUtils.js";import u from"../SpatialReference.js";import{getSphericalPCPF as c}from"../spatialReferenceEllipsoidUtils.js";import{Axis as l}from"./Axis.js";import{f,b as p}from"../../chunks/boundedPlane.js";import{f as m,s as v}from"../../chunks/sphere.js";function h(t){const{value:e,operations:n}=t;return{operations:n,value:n.create(e)}}function j(t,e,n){return t.operations.setExtent(t.value,e,n.value),n}function d(t){return{operations:t,value:t.create()}}function x(t,e,n=d(t)){return n.operations=t,t.copy(e,n.value),n}function A(t){return x(v,m(0,0,0,a(t).radius))}const b=2**50;function k(){return x(p,f([0,0,0],[b,0,0],[0,b,0]))}function P(t,e,n){return t.operations.axisAt(t.value,e,l.Z,n)}function R(t,e,n,o){return t.operations.axisAt(t.value,e,n,o)}function S(t,e,n){return t.operations.intersectRay(t.value,e,n)}function g(t,e,n){return t.operations.closestPoint(t.value,e,n)}function y(t,e,n){return t.operations.intersectRayClosestSilhouette(t.value,e,n)}function C(t,e,n){return t.operations.closestPointOnSilhouette(t.value,e,n)}function E(t,e){return t.operations.distanceToSilhouette(t.value,e)}function U(t,e){return t.operations.altitudeAt(t.value,e)}function G(t,e,n,o){return t.operations.setAltitudeAt(t.value,e,n,o)}function O(n,o,r,i){return o!==i&&t(i,o),e(Z,i[12],i[13],i[14]),G(n,Z,r,Z),i[12]=Z[0],i[13]=Z[1],i[14]=Z[2],i}function T(t,e,n){return t.operations.elevate(t.value,e,n.value)}const Z=s();function q(t,e,o,r,i){return i[0]=n(t,e),i[1]=n(t,o),i[2]=n(t,r),i}function w(t,e,n,s,a){o(n,t),o(B,e),r(B,B),i(s,B,n),i(a,s,n)}function z(t,e){return t?c(e):e.isGeographic?u.PlateCarree:e}const B=s();export{U as altitudeAt,R as axisAt,g as closestPoint,C as closestPointOnSilhouette,w as coordinateSystemFromOneAxisAndNormalVector,h as create,d as createFromOperations,A as createGlobal,k as createLocal,E as distanceToSilhouette,T as elevate,x as fromValues,S as intersectRay,y as intersectRayClosestSilhouette,P as normalAt,z as renderSRFromViewSR,G as setAltitudeAt,O as setAltitudeOfTransformation,j as setExtent,q as vectorCoordinates};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
4
  */
5
- import{clamp as t}from"../../core/mathUtils.js";import{ObjectStack as r}from"../../core/ObjectStack.js";import{c as n,f as o,j as e,h as i,g as c,o as s,a}from"../../chunks/vec32.js";import{clone as u,create as g}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{sv3d as f}from"./vectorStacks.js";function v(t){return t?{origin:u(t.origin),vector:u(t.vector)}:{origin:g(),vector:g()}}function m(t,r){const n=S.get();return n.origin=t,n.vector=r,n}function p(t,r=v()){return h(t.origin,t.vector,r)}function h(t,r,o=v()){return n(o.origin,t),n(o.vector,r),o}function b(t,r,e=v()){return n(e.origin,t),o(e.vector,r,t),e}function j(r,n){const c=o(f.get(),n,r.origin),s=e(r.vector,c),a=e(r.vector,r.vector),u=t(s/a,0,1),g=o(f.get(),i(f.get(),r.vector,u),c);return e(g,g)}function M(t,r,n){return A(t,r,0,1,n)}function l(t,r,n){return c(n,t.origin,i(n,t.vector,r))}function A(r,n,a,u,g){const{vector:v,origin:m}=r,p=o(f.get(),n,m),h=e(v,p)/s(v);return i(g,v,t(h,a,u)),c(g,g,r.origin)}function B(t,r){if(k(t,m(r.origin,r.direction),!1,x)){const{tA:r,pB:n,distance2:o}=x;if(r>=0&&r<=1)return o;if(r<0)return a(t.origin,n);if(r>1)return a(c(f.get(),t.origin,t.vector),n)}return null}function d(t,r,o){return!!k(t,r,!0,x)&&(n(o,x.pA),!0)}function k(r,n,o,e){const i=1e-6,s=r.origin,u=c(f.get(),s,r.vector),g=n.origin,v=c(f.get(),g,n.vector),m=f.get(),p=f.get();if(m[0]=s[0]-g[0],m[1]=s[1]-g[1],m[2]=s[2]-g[2],p[0]=v[0]-g[0],p[1]=v[1]-g[1],p[2]=v[2]-g[2],Math.abs(p[0])<i&&Math.abs(p[1])<i&&Math.abs(p[2])<i)return!1;const h=f.get();if(h[0]=u[0]-s[0],h[1]=u[1]-s[1],h[2]=u[2]-s[2],Math.abs(h[0])<i&&Math.abs(h[1])<i&&Math.abs(h[2])<i)return!1;const b=m[0]*p[0]+m[1]*p[1]+m[2]*p[2],j=p[0]*h[0]+p[1]*h[1]+p[2]*h[2],M=m[0]*h[0]+m[1]*h[1]+m[2]*h[2],l=p[0]*p[0]+p[1]*p[1]+p[2]*p[2],A=(h[0]*h[0]+h[1]*h[1]+h[2]*h[2])*l-j*j;if(Math.abs(A)<i)return!1;let B=(b*j-M*l)/A,d=(b+j*B)/l;o&&(B=t(B,0,1),d=t(d,0,1));const k=f.get(),x=f.get();return k[0]=s[0]+B*h[0],k[1]=s[1]+B*h[1],k[2]=s[2]+B*h[2],x[0]=g[0]+d*p[0],x[1]=g[1]+d*p[1],x[2]=g[2]+d*p[2],e.tA=B,e.tB=d,e.pA=k,e.pB=x,e.distance2=a(k,x),!0}const x={tA:0,tB:0,pA:g(),pB:g(),distance2:0},S=new r((()=>v()));export{d as closestLineSegmentPoint,B as closestRayDistance2,p as copy,v as create,j as distance2,b as fromPoints,h as fromValues,l as pointAt,M as projectPoint,A as projectPointClamp,m as wrap};
5
+ import{clamp as t}from"../../core/mathUtils.js";import{ObjectStack as r}from"../../core/ObjectStack.js";import{c as n,f as o,k as e,h as i,g as c,p as s,a}from"../../chunks/vec32.js";import{clone as u,create as g}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{sv3d as f}from"./vectorStacks.js";function v(t){return t?{origin:u(t.origin),vector:u(t.vector)}:{origin:g(),vector:g()}}function p(t,r){const n=S.get();return n.origin=t,n.vector=r,n}function m(t,r=v()){return h(t.origin,t.vector,r)}function h(t,r,o=v()){return n(o.origin,t),n(o.vector,r),o}function b(t,r,e=v()){return n(e.origin,t),o(e.vector,r,t),e}function M(r,n){const c=o(f.get(),n,r.origin),s=e(r.vector,c),a=e(r.vector,r.vector),u=t(s/a,0,1),g=o(f.get(),i(f.get(),r.vector,u),c);return e(g,g)}function j(t,r,n){return A(t,r,0,1,n)}function l(t,r,n){return c(n,t.origin,i(n,t.vector,r))}function A(r,n,a,u,g){const{vector:v,origin:p}=r,m=o(f.get(),n,p),h=e(v,m)/s(v);return i(g,v,t(h,a,u)),c(g,g,r.origin)}function B(t,r){if(k(t,p(r.origin,r.direction),!1,x)){const{tA:r,pB:n,distance2:o}=x;if(r>=0&&r<=1)return o;if(r<0)return a(t.origin,n);if(r>1)return a(c(f.get(),t.origin,t.vector),n)}return null}function d(t,r,o){return!!k(t,r,!0,x)&&(n(o,x.pA),!0)}function k(r,n,o,e){const i=1e-6,s=r.origin,u=c(f.get(),s,r.vector),g=n.origin,v=c(f.get(),g,n.vector),p=f.get(),m=f.get();if(p[0]=s[0]-g[0],p[1]=s[1]-g[1],p[2]=s[2]-g[2],m[0]=v[0]-g[0],m[1]=v[1]-g[1],m[2]=v[2]-g[2],Math.abs(m[0])<i&&Math.abs(m[1])<i&&Math.abs(m[2])<i)return!1;const h=f.get();if(h[0]=u[0]-s[0],h[1]=u[1]-s[1],h[2]=u[2]-s[2],Math.abs(h[0])<i&&Math.abs(h[1])<i&&Math.abs(h[2])<i)return!1;const b=p[0]*m[0]+p[1]*m[1]+p[2]*m[2],M=m[0]*h[0]+m[1]*h[1]+m[2]*h[2],j=p[0]*h[0]+p[1]*h[1]+p[2]*h[2],l=m[0]*m[0]+m[1]*m[1]+m[2]*m[2],A=(h[0]*h[0]+h[1]*h[1]+h[2]*h[2])*l-M*M;if(Math.abs(A)<i)return!1;let B=(b*M-j*l)/A,d=(b+M*B)/l;o&&(B=t(B,0,1),d=t(d,0,1));const k=f.get(),x=f.get();return k[0]=s[0]+B*h[0],k[1]=s[1]+B*h[1],k[2]=s[2]+B*h[2],x[0]=g[0]+d*m[0],x[1]=g[1]+d*m[1],x[2]=g[2]+d*m[2],e.tA=B,e.tB=d,e.pA=k,e.pB=x,e.distance2=a(k,x),!0}const x={tA:0,tB:0,pA:g(),pB:g(),distance2:0},S=new r((()=>v()));export{d as closestLineSegmentPoint,B as closestRayDistance2,m as copy,v as create,M as distance2,b as fromPoints,h as fromValues,l as pointAt,j as projectPoint,A as projectPointClamp,p as wrap};