@anov/gis 1.7.6 → 1.8.4

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 (214) hide show
  1. package/.claude/settings.local.json +37 -0
  2. package/CHANGELOG.md +82 -0
  3. package/README.md +338 -127
  4. package/dist/index.css +1 -1
  5. package/dist/index.js +18012 -58
  6. package/dist/resources/Assets/approximateTerrainHeights.json +1 -1
  7. package/dist/resources/ThirdParty/Workers/package.json +1 -0
  8. package/dist/resources/ThirdParty/Workers/zip-web-worker.js +1 -0
  9. package/dist/resources/ThirdParty/draco_decoder.wasm +0 -0
  10. package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -1
  11. package/dist/resources/ThirdParty/wasm_splats_bg.wasm +0 -0
  12. package/dist/resources/ThirdParty/zip-module.wasm +0 -0
  13. package/dist/resources/Widgets/Animation/Animation.css +127 -1
  14. package/dist/resources/Widgets/Animation/lighter.css +70 -1
  15. package/dist/resources/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -1
  16. package/dist/resources/Widgets/BaseLayerPicker/lighter.css +22 -1
  17. package/dist/resources/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -1
  18. package/dist/resources/Widgets/CesiumInspector/CesiumInspector.css +113 -1
  19. package/dist/resources/Widgets/CesiumWidget/CesiumWidget.css +119 -1
  20. package/dist/resources/Widgets/CesiumWidget/lighter.css +14 -1
  21. package/dist/resources/Widgets/FullscreenButton/FullscreenButton.css +8 -1
  22. package/dist/resources/Widgets/Geocoder/Geocoder.css +70 -1
  23. package/dist/resources/Widgets/Geocoder/lighter.css +17 -1
  24. package/dist/resources/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
  25. package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  26. package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  27. package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  28. package/dist/resources/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
  29. package/dist/resources/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
  30. package/dist/resources/Widgets/Images/ImageryProviders/googleContour.png +0 -0
  31. package/dist/resources/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
  32. package/dist/resources/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
  33. package/dist/resources/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
  34. package/dist/resources/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  35. package/dist/resources/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  36. package/dist/resources/Widgets/InfoBox/InfoBox.css +92 -1
  37. package/dist/resources/Widgets/InfoBox/InfoBoxDescription.css +178 -1
  38. package/dist/resources/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -1
  39. package/dist/resources/Widgets/NavigationHelpButton/lighter.css +38 -1
  40. package/dist/resources/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -1
  41. package/dist/resources/Widgets/ProjectionPicker/ProjectionPicker.css +38 -1
  42. package/dist/resources/Widgets/SceneModePicker/SceneModePicker.css +56 -1
  43. package/dist/resources/Widgets/SelectionIndicator/SelectionIndicator.css +20 -1
  44. package/dist/resources/Widgets/Timeline/Timeline.css +103 -1
  45. package/dist/resources/Widgets/Timeline/lighter.css +23 -1
  46. package/dist/resources/Widgets/VRButton/VRButton.css +8 -1
  47. package/dist/resources/Widgets/Viewer/Viewer.css +107 -1
  48. package/dist/resources/Widgets/VoxelInspector/VoxelInspector.css +16 -0
  49. package/dist/resources/Widgets/lighter.css +237 -1
  50. package/dist/resources/Widgets/lighterShared.css +46 -1
  51. package/dist/resources/Widgets/shared.css +103 -1
  52. package/dist/resources/Widgets/widgets.css +1342 -1
  53. package/dist/resources/Workers/chunk-2AIOP76V.js +25 -0
  54. package/dist/resources/Workers/chunk-37ETYCYM.js +25 -0
  55. package/dist/resources/Workers/chunk-3E7FIXV7.js +25 -0
  56. package/dist/resources/Workers/chunk-3N6OW3OY.js +25 -0
  57. package/dist/resources/Workers/{ArcType-de5d8777.js → chunk-3VUCSHGU.js} +2 -2
  58. package/dist/resources/Workers/chunk-4KY4VMEH.js +25 -0
  59. package/dist/resources/Workers/chunk-4WQ4VT5S.js +25 -0
  60. package/dist/resources/Workers/chunk-5AAMOBJK.js +25 -0
  61. package/dist/resources/Workers/chunk-5DGDPBQU.js +25 -0
  62. package/dist/resources/Workers/chunk-5VFNV3LW.js +25 -0
  63. package/dist/resources/Workers/chunk-5Z36UAB7.js +25 -0
  64. package/dist/resources/Workers/chunk-6AEO73KW.js +25 -0
  65. package/dist/resources/Workers/chunk-6DLS2UKD.js +25 -0
  66. package/dist/resources/Workers/{GeometryAttributes-734a3446.js → chunk-6EINM7EY.js} +2 -2
  67. package/dist/resources/Workers/chunk-6W2XFGWI.js +25 -0
  68. package/dist/resources/Workers/chunk-7GCQCPLT.js +25 -0
  69. package/dist/resources/Workers/chunk-7TN3TOVQ.js +25 -0
  70. package/dist/resources/Workers/chunk-A4I25VN7.js +25 -0
  71. package/dist/resources/Workers/{GeometryOffsetAttribute-59b14f45.js → chunk-AJH5KBOO.js} +2 -2
  72. package/dist/resources/Workers/chunk-AKELQO2L.js +25 -0
  73. package/dist/resources/Workers/chunk-ALIHIWSS.js +25 -0
  74. package/dist/resources/Workers/chunk-ATKJRN2G.js +25 -0
  75. package/dist/resources/Workers/chunk-BDWA46XV.js +25 -0
  76. package/dist/resources/Workers/chunk-BKIYVF74.js +25 -0
  77. package/dist/resources/Workers/chunk-BPABSUDY.js +25 -0
  78. package/dist/resources/Workers/chunk-D3TVNJ6W.js +25 -0
  79. package/dist/resources/Workers/chunk-DM7KUSL2.js +25 -0
  80. package/dist/resources/Workers/chunk-E7EKLP3B.js +25 -0
  81. package/dist/resources/Workers/{GeometryInstance-4bfcfe78.js → chunk-G2QPRBZU.js} +2 -2
  82. package/dist/resources/Workers/chunk-G3GDHHWO.js +25 -0
  83. package/dist/resources/Workers/chunk-G72JFEXW.js +25 -0
  84. package/dist/resources/Workers/chunk-IAE6APK2.js +25 -0
  85. package/dist/resources/Workers/chunk-IEITL4VO.js +25 -0
  86. package/dist/resources/Workers/chunk-LHBFSFJE.js +25 -0
  87. package/dist/resources/Workers/chunk-LN2UT4R3.js +25 -0
  88. package/dist/resources/Workers/chunk-LNJEJFV5.js +66 -0
  89. package/dist/resources/Workers/{defaultValue-97284df2.js → chunk-ML6MR2RA.js} +2 -2
  90. package/dist/resources/Workers/chunk-MOHWP7VV.js +25 -0
  91. package/dist/resources/Workers/chunk-NZBME2JK.js +25 -0
  92. package/dist/resources/Workers/chunk-P5EFSOUF.js +25 -0
  93. package/dist/resources/Workers/chunk-P7N43FDO.js +25 -0
  94. package/dist/resources/Workers/{combine-d11b1f00.js → chunk-PEDE2P3Q.js} +2 -2
  95. package/dist/resources/Workers/chunk-PSIOCLX7.js +25 -0
  96. package/dist/resources/Workers/chunk-PYMQNHFO.js +25 -0
  97. package/dist/resources/Workers/chunk-QJTXFT4R.js +25 -0
  98. package/dist/resources/Workers/chunk-QNPYEODC.js +25 -0
  99. package/dist/resources/Workers/chunk-QS7V5G6Y.js +25 -0
  100. package/dist/resources/Workers/chunk-RDX4QSUS.js +25 -0
  101. package/dist/resources/Workers/chunk-RESOCDYZ.js +25 -0
  102. package/dist/resources/Workers/chunk-SRA5MBUT.js +25 -0
  103. package/dist/resources/Workers/chunk-TCOMWBL2.js +25 -0
  104. package/dist/resources/Workers/chunk-UA7PAMQQ.js +25 -0
  105. package/dist/resources/Workers/chunk-W5OEMTMB.js +25 -0
  106. package/dist/resources/Workers/chunk-WGIRJIIK.js +25 -0
  107. package/dist/resources/Workers/{CylinderGeometryLibrary-24ad1484.js → chunk-XRJOFXJF.js} +2 -2
  108. package/dist/resources/Workers/chunk-YP4SXJYZ.js +25 -0
  109. package/dist/resources/Workers/chunk-Z7Q4J7AE.js +25 -0
  110. package/dist/resources/Workers/combineGeometry.js +2 -2
  111. package/dist/resources/Workers/createBoxGeometry.js +2 -2
  112. package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -2
  113. package/dist/resources/Workers/createCircleGeometry.js +2 -2
  114. package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -2
  115. package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -2
  116. package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
  117. package/dist/resources/Workers/createCorridorGeometry.js +2 -2
  118. package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -2
  119. package/dist/resources/Workers/createCylinderGeometry.js +2 -2
  120. package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -2
  121. package/dist/resources/Workers/createEllipseGeometry.js +2 -2
  122. package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -2
  123. package/dist/resources/Workers/createEllipsoidGeometry.js +2 -2
  124. package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -2
  125. package/dist/resources/Workers/createFrustumGeometry.js +2 -2
  126. package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -2
  127. package/dist/resources/Workers/createGeometry.js +2 -2
  128. package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -2
  129. package/dist/resources/Workers/createPlaneGeometry.js +2 -2
  130. package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -2
  131. package/dist/resources/Workers/createPolygonGeometry.js +2 -2
  132. package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -2
  133. package/dist/resources/Workers/createPolylineGeometry.js +2 -2
  134. package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -2
  135. package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
  136. package/dist/resources/Workers/createRectangleGeometry.js +2 -2
  137. package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -2
  138. package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -2
  139. package/dist/resources/Workers/createSphereGeometry.js +2 -2
  140. package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -2
  141. package/dist/resources/Workers/createTaskProcessorWorker.js +2 -2
  142. package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -2
  143. package/dist/resources/Workers/createVectorTileGeometries.js +2 -2
  144. package/dist/resources/Workers/createVectorTilePoints.js +2 -2
  145. package/dist/resources/Workers/createVectorTilePolygons.js +2 -2
  146. package/dist/resources/Workers/createVectorTilePolylines.js +2 -2
  147. package/dist/resources/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -0
  148. package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
  149. package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -4
  150. package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
  151. package/dist/resources/Workers/createWallGeometry.js +2 -2
  152. package/dist/resources/Workers/createWallOutlineGeometry.js +2 -2
  153. package/dist/resources/Workers/decodeDraco.js +2 -2
  154. package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
  155. package/dist/resources/Workers/decodeI3S.js +25 -0
  156. package/dist/resources/Workers/gaussianSplatSorter.js +25 -0
  157. package/dist/resources/Workers/{_commonjsHelpers-3aae1032-65601a27.js → gaussianSplatTextureGenerator.js} +2 -2
  158. package/dist/resources/Workers/incrementallyBuildTerrainPicker.js +25 -0
  159. package/dist/resources/Workers/transcodeKTX2.js +2 -2
  160. package/dist/resources/Workers/transferTypedArrayTest.js +25 -1
  161. package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -2
  162. package/dist/resources/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -0
  163. package/dist/resources/static/js/viewerCesiumNavigationMixin.js +1 -1
  164. package/package.json +13 -13
  165. package/scripts/release.js +323 -0
  166. package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -1
  167. package/dist/resources/ThirdParty/Workers/draco_decoder_nodejs.js +0 -1
  168. package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +0 -1
  169. package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +0 -1
  170. package/dist/resources/ThirdParty/Workers/z-worker-pako.js +0 -1
  171. package/dist/resources/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
  172. package/dist/resources/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
  173. package/dist/resources/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
  174. package/dist/resources/Workers/AttributeCompression-5744d52e.js +0 -25
  175. package/dist/resources/Workers/AxisAlignedBoundingBox-b1c095aa.js +0 -25
  176. package/dist/resources/Workers/BoundingRectangle-2b0ebbdd.js +0 -25
  177. package/dist/resources/Workers/BoxGeometry-acd0c697.js +0 -25
  178. package/dist/resources/Workers/Color-c7fd1307.js +0 -25
  179. package/dist/resources/Workers/ComponentDatatype-e7fbe225.js +0 -25
  180. package/dist/resources/Workers/CoplanarPolygonGeometryLibrary-edaba606.js +0 -25
  181. package/dist/resources/Workers/CorridorGeometryLibrary-ab3e6481.js +0 -25
  182. package/dist/resources/Workers/CylinderGeometry-679e50b4.js +0 -25
  183. package/dist/resources/Workers/EllipseGeometry-e6f948bb.js +0 -25
  184. package/dist/resources/Workers/EllipseGeometryLibrary-0adcaeed.js +0 -25
  185. package/dist/resources/Workers/EllipseOutlineGeometry-418492dc.js +0 -25
  186. package/dist/resources/Workers/EllipsoidGeodesic-ed8a0e40.js +0 -25
  187. package/dist/resources/Workers/EllipsoidGeometry-539fb9e2.js +0 -25
  188. package/dist/resources/Workers/EllipsoidOutlineGeometry-6c13760b.js +0 -25
  189. package/dist/resources/Workers/EllipsoidRhumbLine-60f14314.js +0 -25
  190. package/dist/resources/Workers/EllipsoidTangentPlane-7ae496b2.js +0 -25
  191. package/dist/resources/Workers/EncodedCartesian3-a9a8a281.js +0 -25
  192. package/dist/resources/Workers/FrustumGeometry-be9b9578.js +0 -25
  193. package/dist/resources/Workers/GeometryAttribute-fd1d7e90.js +0 -25
  194. package/dist/resources/Workers/GeometryPipeline-a847e31f.js +0 -25
  195. package/dist/resources/Workers/IndexDatatype-65271ba3.js +0 -25
  196. package/dist/resources/Workers/IntersectionTests-33ace2d6.js +0 -25
  197. package/dist/resources/Workers/Matrix2-73789715.js +0 -25
  198. package/dist/resources/Workers/OrientedBoundingBox-ee3011f6.js +0 -25
  199. package/dist/resources/Workers/Plane-e916220d.js +0 -25
  200. package/dist/resources/Workers/PolygonGeometryLibrary-0f0c78d4.js +0 -25
  201. package/dist/resources/Workers/PolygonPipeline-00dc0c6e.js +0 -25
  202. package/dist/resources/Workers/PolylinePipeline-ebd42f23.js +0 -25
  203. package/dist/resources/Workers/PolylineVolumeGeometryLibrary-a4b92b4e.js +0 -25
  204. package/dist/resources/Workers/PrimitivePipeline-42d69f96.js +0 -25
  205. package/dist/resources/Workers/RectangleGeometryLibrary-cff60d30.js +0 -25
  206. package/dist/resources/Workers/RuntimeError-4f8ec8a2.js +0 -25
  207. package/dist/resources/Workers/TerrainEncoding-080f16eb.js +0 -25
  208. package/dist/resources/Workers/Transforms-d3d3b2a9.js +0 -66
  209. package/dist/resources/Workers/VertexFormat-9886cb81.js +0 -25
  210. package/dist/resources/Workers/WallGeometryLibrary-27f90b78.js +0 -25
  211. package/dist/resources/Workers/WebGLConstants-6da700a2.js +0 -25
  212. package/dist/resources/Workers/WebMercatorProjection-04ef6bc3.js +0 -25
  213. package/dist/resources/Workers/arrayRemoveDuplicates-6f91355d.js +0 -25
  214. package/dist/resources/Workers/cesiumWorkerBootstrapper.js +0 -6
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.95
4
+ * Version 1.143.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -22,4 +22,4 @@
22
22
  * Portions licensed separately.
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
- define(["./defaultValue-97284df2","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./EllipsoidGeometry-539fb9e2","./VertexFormat-9886cb81","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./Transforms-d3d3b2a9","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3"],(function(e,t,i,r,o,a,n,s,d,c,l,m,u,p){"use strict";function f(i){const o=e.defaultValue(i.radius,1),a={radii:new t.Cartesian3(o,o,o),stackPartitions:i.stackPartitions,slicePartitions:i.slicePartitions,vertexFormat:i.vertexFormat};this._ellipsoidGeometry=new r.EllipsoidGeometry(a),this._workerName="createSphereGeometry"}f.packedLength=r.EllipsoidGeometry.packedLength,f.pack=function(e,t,i){return r.EllipsoidGeometry.pack(e._ellipsoidGeometry,t,i)};const y=new r.EllipsoidGeometry,G={radius:void 0,radii:new t.Cartesian3,vertexFormat:new o.VertexFormat,stackPartitions:void 0,slicePartitions:void 0};return f.unpack=function(i,a,n){const s=r.EllipsoidGeometry.unpack(i,a,y);return G.vertexFormat=o.VertexFormat.clone(s._vertexFormat,G.vertexFormat),G.stackPartitions=s._stackPartitions,G.slicePartitions=s._slicePartitions,e.defined(n)?(t.Cartesian3.clone(s._radii,G.radii),n._ellipsoidGeometry=new r.EllipsoidGeometry(G),n):(G.radius=s._radii.x,new f(G))},f.createGeometry=function(e){return r.EllipsoidGeometry.createGeometry(e._ellipsoidGeometry)},function(t,i){return e.defined(i)&&(t=f.unpack(t,i)),f.createGeometry(t)}}));
25
+ import{a as r}from"./chunk-5Z36UAB7.js";import"./chunk-ML6MR2RA.js";import{a as m}from"./chunk-AKELQO2L.js";import"./chunk-4WQ4VT5S.js";import"./chunk-6EINM7EY.js";import"./chunk-A4I25VN7.js";import"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import"./chunk-2AIOP76V.js";import{a as s}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{b as p}from"./chunk-NZBME2JK.js";import{f as c}from"./chunk-6DLS2UKD.js";function a(t){let i=t.radius??1,e={radii:new s(i,i,i),stackPartitions:t.stackPartitions,slicePartitions:t.slicePartitions,vertexFormat:t.vertexFormat};this._ellipsoidGeometry=new r(e),this._workerName="createSphereGeometry"}a.packedLength=r.packedLength,a.pack=function(t,i,e){return p.typeOf.object("value",t),r.pack(t._ellipsoidGeometry,i,e)};var l=new r,i={radius:void 0,radii:new s,vertexFormat:new m,stackPartitions:void 0,slicePartitions:void 0};a.unpack=function(t,e,o){let n=r.unpack(t,e,l);return i.vertexFormat=m.clone(n._vertexFormat,i.vertexFormat),i.stackPartitions=n._stackPartitions,i.slicePartitions=n._slicePartitions,c(o)?(s.clone(n._radii,i.radii),o._ellipsoidGeometry=new r(i),o):(i.radius=n._radii.x,new a(i))},a.createGeometry=function(t){return r.createGeometry(t._ellipsoidGeometry)};var d=a;function f(r,t){return c(t)&&(r=d.unpack(r,t)),d.createGeometry(r)}var w=f;export{w as default};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.95
4
+ * Version 1.143.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -22,4 +22,4 @@
22
22
  * Portions licensed separately.
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
- define(["./defaultValue-97284df2","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./EllipsoidOutlineGeometry-6c13760b","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./Transforms-d3d3b2a9","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3"],(function(e,i,t,n,o,r,s,a,d,l,u,c,m){"use strict";function p(t){const o=e.defaultValue(t.radius,1),r={radii:new i.Cartesian3(o,o,o),stackPartitions:t.stackPartitions,slicePartitions:t.slicePartitions,subdivisions:t.subdivisions};this._ellipsoidGeometry=new n.EllipsoidOutlineGeometry(r),this._workerName="createSphereOutlineGeometry"}p.packedLength=n.EllipsoidOutlineGeometry.packedLength,p.pack=function(e,i,t){return n.EllipsoidOutlineGeometry.pack(e._ellipsoidGeometry,i,t)};const y=new n.EllipsoidOutlineGeometry,f={radius:void 0,radii:new i.Cartesian3,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};return p.unpack=function(t,o,r){const s=n.EllipsoidOutlineGeometry.unpack(t,o,y);return f.stackPartitions=s._stackPartitions,f.slicePartitions=s._slicePartitions,f.subdivisions=s._subdivisions,e.defined(r)?(i.Cartesian3.clone(s._radii,f.radii),r._ellipsoidGeometry=new n.EllipsoidOutlineGeometry(f),r):(f.radius=s._radii.x,new p(f))},p.createGeometry=function(e){return n.EllipsoidOutlineGeometry.createGeometry(e._ellipsoidGeometry)},function(i,t){return e.defined(t)&&(i=p.unpack(i,t)),p.createGeometry(i)}}));
25
+ import{a as t}from"./chunk-PSIOCLX7.js";import"./chunk-ML6MR2RA.js";import"./chunk-4WQ4VT5S.js";import"./chunk-6EINM7EY.js";import"./chunk-A4I25VN7.js";import"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import"./chunk-2AIOP76V.js";import{a as c}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{b as u}from"./chunk-NZBME2JK.js";import{f as a}from"./chunk-6DLS2UKD.js";function s(i){let s=i.radius??1,n={radii:new c(s,s,s),stackPartitions:i.stackPartitions,slicePartitions:i.slicePartitions,subdivisions:i.subdivisions};this._ellipsoidGeometry=new t(n),this._workerName="createSphereOutlineGeometry"}s.packedLength=t.packedLength,s.pack=function(i,s,n){return u.typeOf.object("value",i),t.pack(i._ellipsoidGeometry,s,n)};var l=new t,n={radius:void 0,radii:new c,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};s.unpack=function(i,r,o){let e=t.unpack(i,r,l);return n.stackPartitions=e._stackPartitions,n.slicePartitions=e._slicePartitions,n.subdivisions=e._subdivisions,a(o)?(c.clone(e._radii,n.radii),o._ellipsoidGeometry=new t(n),o):(n.radius=e._radii.x,new s(n))},s.createGeometry=function(i){return t.createGeometry(i._ellipsoidGeometry)};var d=s;function m(i,t){return a(t)&&(i=d.unpack(i,t)),d.createGeometry(i)}var h=m;export{h as default};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.95
4
+ * Version 1.143.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -22,4 +22,4 @@
22
22
  * Portions licensed separately.
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
- define(["./defaultValue-97284df2"],(function(e){"use strict";return function(r){let t;return function(n){const s=n.data,a=[],i={id:s.id,result:void 0,error:void 0};return Promise.resolve(function(e,r,t){let n;try{return n=e(r,t),n}catch(e){return Promise.reject(e)}}(r,s.parameters,a)).then((function(e){i.result=e})).catch((function(e){e instanceof Error?i.error={name:e.name,message:e.message,stack:e.stack}:i.error=e})).finally((function(){e.defined(t)||(t=e.defaultValue(self.webkitPostMessage,self.postMessage)),s.canTransferArrayBuffer||(a.length=0);try{t(i,a)}catch(r){i.result=void 0,i.error=`postMessage failed with error: ${function(r){let t;const n=r.name,s=r.message;t=e.defined(n)&&e.defined(s)?`${n}: ${s}`:r.toString();const a=r.stack;return e.defined(a)&&(t+=`\n${a}`),t}(r)}\n with responseMessage: ${JSON.stringify(i)}`,t(i)}}))}}}));
25
+ import{a}from"./chunk-BKIYVF74.js";import"./chunk-6DLS2UKD.js";export{a as default};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.95
4
+ * Version 1.143.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -22,4 +22,4 @@
22
22
  * Portions licensed separately.
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
- define(["./AttributeCompression-5744d52e","./Matrix2-73789715","./combine-d11b1f00","./IndexDatatype-65271ba3","./ComponentDatatype-e7fbe225","./createTaskProcessorWorker","./RuntimeError-4f8ec8a2","./defaultValue-97284df2","./WebGLConstants-6da700a2"],(function(t,e,a,s,n,r,i,o,d){"use strict";const l=32767,c=Math.cos(n.CesiumMath.toRadians(150)),f=new e.Cartographic,u=new e.Cartesian3,h=new e.Cartographic,C=new e.Cartographic;function p(t){const e=8*t,a=3*e,n=4*e;this.startEllipsoidNormals=new Float32Array(a),this.endEllipsoidNormals=new Float32Array(a),this.startPositionAndHeights=new Float32Array(n),this.startFaceNormalAndVertexCornerIds=new Float32Array(n),this.endPositionAndHeights=new Float32Array(n),this.endFaceNormalAndHalfWidths=new Float32Array(n),this.vertexBatchIds=new Uint16Array(e),this.indices=s.IndexDatatype.createTypedArray(e,36*t),this.vec3Offset=0,this.vec4Offset=0,this.batchIdOffset=0,this.indexOffset=0,this.volumeStartIndex=0}const m=new e.Cartesian3,b=new e.Cartesian3;function A(t,a,s,n,r){const i=e.Cartesian3.subtract(s,a,b);let o=e.Cartesian3.subtract(a,t,m);return e.Cartesian3.normalize(i,i),e.Cartesian3.normalize(o,o),e.Cartesian3.dot(i,o)<c&&(o=e.Cartesian3.multiplyByScalar(o,-1,m)),e.Cartesian3.add(i,o,r),e.Cartesian3.equals(r,e.Cartesian3.ZERO)&&(r=e.Cartesian3.subtract(t,a)),e.Cartesian3.cross(r,n,r),e.Cartesian3.cross(n,r,r),e.Cartesian3.normalize(r,r),r}const w=[0,2,6,0,6,4,0,1,3,0,3,2,0,4,5,0,5,1,5,3,1,5,7,3,7,5,4,7,4,6,7,6,2,7,2,3],g=w.length,y=new e.Cartesian3,N=new e.Cartesian3,k=new e.Cartesian3,I=new e.Cartesian3,x=new e.Cartesian3;p.prototype.addVolume=function(t,a,s,n,r,i,o,d,l,c){let f=e.Cartesian3.add(a,l,y);const u=c.geodeticSurfaceNormal(f,N);f=e.Cartesian3.add(s,l,y);const h=c.geodeticSurfaceNormal(f,I),C=A(t,a,s,u,k),p=A(n,s,a,h,x),m=this.startEllipsoidNormals,b=this.endEllipsoidNormals,E=this.startPositionAndHeights,F=this.startFaceNormalAndVertexCornerIds,H=this.endPositionAndHeights,O=this.endFaceNormalAndHalfWidths,P=this.vertexBatchIds;let v,D=this.batchIdOffset,S=this.vec3Offset,M=this.vec4Offset;for(v=0;v<8;v++)e.Cartesian3.pack(u,m,S),e.Cartesian3.pack(h,b,S),e.Cartesian3.pack(a,E,M),E[M+3]=r,e.Cartesian3.pack(s,H,M),H[M+3]=i,e.Cartesian3.pack(C,F,M),F[M+3]=v,e.Cartesian3.pack(p,O,M),O[M+3]=o,P[D++]=d,S+=3,M+=4;this.batchIdOffset=D,this.vec3Offset=S,this.vec4Offset=M;const R=this.indices,U=this.volumeStartIndex,B=this.indexOffset;for(v=0;v<g;v++)R[B+v]=w[v]+U;this.volumeStartIndex+=8,this.indexOffset+=g};const E=new e.Rectangle,F=new e.Ellipsoid,H=new e.Cartesian3,O=new e.Cartesian3,P=new e.Cartesian3,v=new e.Cartesian3,D=new e.Cartesian3;return r((function(r,i){const o=new Uint16Array(r.positions),d=new Uint16Array(r.widths),c=new Uint32Array(r.counts),m=new Uint16Array(r.batchIds),b=E,A=F,w=H,g=new Float64Array(r.packedBuffer);let y=0;const N=g[y++],k=g[y++];let I;e.Rectangle.unpack(g,y,b),y+=e.Rectangle.packedLength,e.Ellipsoid.unpack(g,y,A),y+=e.Ellipsoid.packedLength,e.Cartesian3.unpack(g,y,w);let x=o.length/3;const S=o.subarray(0,x),M=o.subarray(x,2*x),R=o.subarray(2*x,3*x);t.AttributeCompression.zigZagDeltaDecode(S,M,R),function(t,a,s,n){const r=n.length,i=t.length,o=new Uint8Array(i),d=h,l=C;let c=0;for(let s=0;s<r;s++){const r=n[s];let i=r;for(let s=1;s<r;s++){const n=c+s,r=n-1;l.longitude=t[n],l.latitude=a[n],d.longitude=t[r],d.latitude=a[r],e.Cartographic.equals(l,d)&&(i--,o[r]=1)}n[s]=i,c+=r}let f=0;for(let e=0;e<i;e++)1!==o[e]&&(t[f]=t[e],a[f]=a[e],s[f]=s[e],f++)}(S,M,R,c);const U=c.length;let B=0;for(I=0;I<U;I++)B+=c[I]-1;const V=new p(B),T=function(t,a,s,r,i,o,d){const c=t.length,h=new Float64Array(3*c);for(let C=0;C<c;++C){const c=t[C],p=a[C],m=s[C],b=n.CesiumMath.lerp(r.west,r.east,c/l),A=n.CesiumMath.lerp(r.south,r.north,p/l),w=n.CesiumMath.lerp(i,o,m/l),g=e.Cartographic.fromRadians(b,A,w,f),y=d.cartographicToCartesian(g,u);e.Cartesian3.pack(y,h,3*C)}return h}(S,M,R,b,N,k,A);x=S.length;const W=new Float32Array(3*x);for(I=0;I<x;++I)W[3*I]=T[3*I]-w.x,W[3*I+1]=T[3*I+1]-w.y,W[3*I+2]=T[3*I+2]-w.z;let z=0,q=0;for(I=0;I<U;I++){const t=c[I]-1,a=.5*d[I],s=m[I],r=z;for(let i=0;i<t;i++){const o=e.Cartesian3.unpack(W,z,P),d=e.Cartesian3.unpack(W,z+3,v);let c=R[q],f=R[q+1];c=n.CesiumMath.lerp(N,k,c/l),f=n.CesiumMath.lerp(N,k,f/l),q++;let u=O,h=D;if(0===i){const a=r+3*t,s=e.Cartesian3.unpack(W,a,O);if(e.Cartesian3.equals(s,o))e.Cartesian3.unpack(W,a-3,u);else{const t=e.Cartesian3.subtract(o,d,O);u=e.Cartesian3.add(t,o,O)}}else e.Cartesian3.unpack(W,z-3,u);if(i===t-1){const t=e.Cartesian3.unpack(W,r,D);if(e.Cartesian3.equals(t,d))e.Cartesian3.unpack(W,r+3,h);else{const t=e.Cartesian3.subtract(d,o,D);h=e.Cartesian3.add(t,d,D)}}else e.Cartesian3.unpack(W,z+6,h);V.addVolume(u,o,d,h,c,f,a,s,w,A),z+=3}z+=3,q++}const L=V.indices;i.push(V.startEllipsoidNormals.buffer),i.push(V.endEllipsoidNormals.buffer),i.push(V.startPositionAndHeights.buffer),i.push(V.startFaceNormalAndVertexCornerIds.buffer),i.push(V.endPositionAndHeights.buffer),i.push(V.endFaceNormalAndHalfWidths.buffer),i.push(V.vertexBatchIds.buffer),i.push(L.buffer);let _={indexDatatype:2===L.BYTES_PER_ELEMENT?s.IndexDatatype.UNSIGNED_SHORT:s.IndexDatatype.UNSIGNED_INT,startEllipsoidNormals:V.startEllipsoidNormals.buffer,endEllipsoidNormals:V.endEllipsoidNormals.buffer,startPositionAndHeights:V.startPositionAndHeights.buffer,startFaceNormalAndVertexCornerIds:V.startFaceNormalAndVertexCornerIds.buffer,endPositionAndHeights:V.endPositionAndHeights.buffer,endFaceNormalAndHalfWidths:V.endFaceNormalAndHalfWidths.buffer,vertexBatchIds:V.vertexBatchIds.buffer,indices:L.buffer};if(r.keepDecodedPositions){const t=function(t){const e=t.length,a=new Uint32Array(e+1);let s=0;for(let n=0;n<e;++n)a[n]=s,s+=t[n];return a[e]=s,a}(c);i.push(T.buffer,t.buffer),_=a.combine(_,{decodedPositions:T.buffer,decodedPositionOffsets:t.buffer})}return _}))}));
25
+ import{a as J}from"./chunk-BKIYVF74.js";import{a as Y}from"./chunk-G72JFEXW.js";import{a as B}from"./chunk-4WQ4VT5S.js";import{c as X,j as W}from"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{a as k,c as _}from"./chunk-2AIOP76V.js";import{a as t}from"./chunk-IAE6APK2.js";import{a as v}from"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import"./chunk-6DLS2UKD.js";var V=32767,it=Math.cos(v.toRadians(150)),ct=new k,rt=new t;function at(e,r,s,a,n,i,o){let l=e.length,d=new Float64Array(3*l);for(let f=0;f<l;++f){let l=e[f],c=r[f],h=s[f],u=v.lerp(a.west,a.east,l/V),p=v.lerp(a.south,a.north,c/V),m=v.lerp(n,i,h/V),A=k.fromRadians(u,p,m,ct),w=o.cartographicToCartesian(A,rt);t.pack(w,d,3*f)}return d}function dt(t){let e=t.length,r=new Uint32Array(e+1),s=0;for(let a=0;a<e;++a)r[a]=s,s+=t[a];return r[e]=s,r}var lt=new k,ht=new k;function ft(t,e,r,s){let a=s.length,n=t.length,i=new Uint8Array(n),o=lt,l=ht,d=0;for(let r=0;r<a;r++){let a=s[r],n=a;for(let r=1;r<a;r++){let s=d+r,a=s-1;l.longitude=t[s],l.latitude=e[s],o.longitude=t[a],o.latitude=e[a],k.equals(l,o)&&(n--,i[a]=1)}s[r]=n,d+=a}let f=0;for(let s=0;s<n;s++)1!==i[s]&&(t[f]=t[s],e[f]=e[s],r[f]=r[s],f++)}function ot(t){let e=8*t,r=3*e,s=4*e;this.startEllipsoidNormals=new Float32Array(r),this.endEllipsoidNormals=new Float32Array(r),this.startPositionAndHeights=new Float32Array(s),this.startFaceNormalAndVertexCornerIds=new Float32Array(s),this.endPositionAndHeights=new Float32Array(s),this.endFaceNormalAndHalfWidths=new Float32Array(s),this.vertexBatchIds=new Uint16Array(e),this.indices=B.createTypedArray(e,36*t),this.vec3Offset=0,this.vec4Offset=0,this.batchIdOffset=0,this.indexOffset=0,this.volumeStartIndex=0}var Q=new t,pt=new t;function $(e,r,s,a,n){let i=t.subtract(s,r,pt),o=t.subtract(r,e,Q);return t.normalize(i,i),t.normalize(o,o),t.dot(i,o)<it&&(o=t.multiplyByScalar(o,-1,Q)),t.add(i,o,n),t.equals(n,t.ZERO)&&(n=t.subtract(e,r)),t.cross(n,a,n),t.cross(a,n,n),t.normalize(n,n),n}var st=[0,2,6,0,6,4,0,1,3,0,3,2,0,4,5,0,5,1,5,3,1,5,7,3,7,5,4,7,4,6,7,6,2,7,2,3],j=st.length,tt=new t,ut=new t,mt=new t,At=new t,Nt=new t;ot.prototype.addVolume=function(e,r,s,a,n,i,o,l,d,f){let c=t.add(r,d,tt),h=f.geodeticSurfaceNormal(c,ut);c=t.add(s,d,tt);let u,p=f.geodeticSurfaceNormal(c,At),m=$(e,r,s,h,mt),A=$(a,s,r,p,Nt),k=this.startEllipsoidNormals,w=this.endEllipsoidNormals,N=this.startPositionAndHeights,b=this.startFaceNormalAndVertexCornerIds,g=this.endPositionAndHeights,v=this.endFaceNormalAndHalfWidths,y=this.vertexBatchIds,I=this.batchIdOffset,E=this.vec3Offset,F=this.vec4Offset;for(u=0;u<8;u++)t.pack(h,k,E),t.pack(p,w,E),t.pack(r,N,F),N[F+3]=n,t.pack(s,g,F),g[F+3]=i,t.pack(m,b,F),b[F+3]=u,t.pack(A,v,F),v[F+3]=o,y[I++]=l,E+=3,F+=4;this.batchIdOffset=I,this.vec3Offset=E,this.vec4Offset=F;let x=this.indices,V=this.volumeStartIndex,P=this.indexOffset;for(u=0;u<j;u++)x[P+u]=st[u]+V;this.volumeStartIndex+=8,this.indexOffset+=j};var gt=new W,Et=new _,wt=new t,M=new t,It=new t,xt=new t,T=new t;function Pt(e,r){let s=new Uint16Array(e.positions),a=new Uint16Array(e.widths),n=new Uint32Array(e.counts),i=new Uint16Array(e.batchIds),o=gt,l=Et,d=wt,f=new Float64Array(e.packedBuffer),c=0,h=f[c++],u=f[c++];W.unpack(f,c,o),c+=W.packedLength,_.unpack(f,c,l),c+=_.packedLength,t.unpack(f,c,d);let p,m=s.length/3,A=s.subarray(0,m),k=s.subarray(m,2*m),w=s.subarray(2*m,3*m);Y.zigZagDeltaDecode(A,k,w),ft(A,k,w,n);let N=n.length,b=0;for(p=0;p<N;p++){b+=n[p]-1}let g=new ot(b),y=at(A,k,w,o,h,u,l,d);m=A.length;let I=new Float32Array(3*m);for(p=0;p<m;++p)I[3*p]=y[3*p]-d.x,I[3*p+1]=y[3*p+1]-d.y,I[3*p+2]=y[3*p+2]-d.z;let E=0,F=0;for(p=0;p<N;p++){let e=n[p]-1,r=.5*a[p],s=i[p],o=E;for(let a=0;a<e;a++){let n=t.unpack(I,E,It),i=t.unpack(I,E+3,xt),f=w[F],c=w[F+1];f=v.lerp(h,u,f/V),c=v.lerp(h,u,c/V),F++;let p=M,m=T;if(0===a){let r=o+3*e,s=t.unpack(I,r,M);if(t.equals(s,n))t.unpack(I,r-3,p);else{let e=t.subtract(n,i,M);p=t.add(e,n,M)}}else t.unpack(I,E-3,p);if(a===e-1){let e=t.unpack(I,o,T);if(t.equals(e,i))t.unpack(I,o+3,m);else{let e=t.subtract(i,n,T);m=t.add(e,i,T)}}else t.unpack(I,E+6,m);g.addVolume(p,n,i,m,f,c,r,s,d,l),E+=3}E+=3,F++}let x=g.indices;r.push(g.startEllipsoidNormals.buffer),r.push(g.endEllipsoidNormals.buffer),r.push(g.startPositionAndHeights.buffer),r.push(g.startFaceNormalAndVertexCornerIds.buffer),r.push(g.endPositionAndHeights.buffer),r.push(g.endFaceNormalAndHalfWidths.buffer),r.push(g.vertexBatchIds.buffer),r.push(x.buffer);let P={indexDatatype:2===x.BYTES_PER_ELEMENT?B.UNSIGNED_SHORT:B.UNSIGNED_INT,startEllipsoidNormals:g.startEllipsoidNormals.buffer,endEllipsoidNormals:g.endEllipsoidNormals.buffer,startPositionAndHeights:g.startPositionAndHeights.buffer,startFaceNormalAndVertexCornerIds:g.startFaceNormalAndVertexCornerIds.buffer,endPositionAndHeights:g.endPositionAndHeights.buffer,endFaceNormalAndHalfWidths:g.endFaceNormalAndHalfWidths.buffer,vertexBatchIds:g.vertexBatchIds.buffer,indices:x.buffer};if(e.keepDecodedPositions){let t=dt(n);r.push(y.buffer,t.buffer),P=X(P,{decodedPositions:y.buffer,decodedPositionOffsets:t.buffer})}return P}var Vt=J(Pt);export{Vt as default};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.95
4
+ * Version 1.143.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -22,4 +22,4 @@
22
22
  * Portions licensed separately.
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
- define(["./Transforms-d3d3b2a9","./BoxGeometry-acd0c697","./Matrix2-73789715","./Color-c7fd1307","./CylinderGeometry-679e50b4","./defaultValue-97284df2","./EllipsoidGeometry-539fb9e2","./IndexDatatype-65271ba3","./createTaskProcessorWorker","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./VertexFormat-9886cb81","./CylinderGeometryLibrary-24ad1484"],(function(e,t,n,r,a,i,o,s,d,c,l,f,u,h,b,p,y,x,g){"use strict";function m(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}const C=new n.Cartesian3,I=n.Matrix4.packedLength+n.Cartesian3.packedLength,k=n.Matrix4.packedLength+2,M=n.Matrix4.packedLength+n.Cartesian3.packedLength,B=n.Cartesian3.packedLength+1,w={modelMatrix:new n.Matrix4,boundingVolume:new e.BoundingSphere};function A(e,t){let r=t*I;const a=n.Cartesian3.unpack(e,r,C);r+=n.Cartesian3.packedLength;const i=n.Matrix4.unpack(e,r,w.modelMatrix);n.Matrix4.multiplyByScale(i,a,i);const o=w.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,o.center),o.radius=Math.sqrt(3),w}function O(e,t){let r=t*k;const a=e[r++],i=e[r++],o=n.Cartesian3.fromElements(a,a,i,C),s=n.Matrix4.unpack(e,r,w.modelMatrix);n.Matrix4.multiplyByScale(s,o,s);const d=w.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,d.center),d.radius=Math.sqrt(2),w}function L(e,t){let r=t*M;const a=n.Cartesian3.unpack(e,r,C);r+=n.Cartesian3.packedLength;const i=n.Matrix4.unpack(e,r,w.modelMatrix);n.Matrix4.multiplyByScale(i,a,i);const o=w.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,o.center),o.radius=1,w}function v(e,t){let r=t*B;const a=e[r++],i=n.Cartesian3.unpack(e,r,C),o=n.Matrix4.fromTranslation(i,w.modelMatrix);n.Matrix4.multiplyByUniformScale(o,a,o);const s=w.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,s.center),s.radius=1,w}const E=new n.Cartesian3;function U(t,a,o,s,d){if(!i.defined(a))return;const c=o.length,l=s.attributes.position.values,f=s.indices,u=t.positions,h=t.vertexBatchIds,b=t.indices,p=t.batchIds,y=t.batchTableColors,x=t.batchedIndices,g=t.indexOffsets,C=t.indexCounts,I=t.boundingVolumes,k=t.modelMatrix,M=t.center;let B=t.positionOffset,w=t.batchIdIndex,A=t.indexOffset;const O=t.batchedIndicesOffset;for(let t=0;t<c;++t){const i=d(a,t),s=i.modelMatrix;n.Matrix4.multiply(k,s,s);const c=o[t],L=l.length;for(let e=0;e<L;e+=3){const t=n.Cartesian3.unpack(l,e,E);n.Matrix4.multiplyByPoint(s,t,t),n.Cartesian3.subtract(t,M,t),n.Cartesian3.pack(t,u,3*B+e),h[w++]=c}const v=f.length;for(let e=0;e<v;++e)b[A+e]=f[e]+B;const U=t+O;x[U]=new m({offset:A,count:v,color:r.Color.fromRgba(y[c]),batchIds:[c]}),p[U]=c,g[U]=A,C[U]=v,I[U]=e.BoundingSphere.transform(i.boundingVolume,s),B+=L/3,A+=v}t.positionOffset=B,t.batchIdIndex=w,t.indexOffset=A,t.batchedIndicesOffset+=c}const G=new n.Cartesian3,S=new n.Matrix4;function V(t,n,a){const i=a.length,o=2+i*e.BoundingSphere.packedLength+1+function(e){const t=e.length;let n=0;for(let a=0;a<t;++a)n+=r.Color.packedLength+3+e[a].batchIds.length;return n}(n),s=new Float64Array(o);let d=0;s[d++]=t,s[d++]=i;for(let t=0;t<i;++t)e.BoundingSphere.pack(a[t],s,d),d+=e.BoundingSphere.packedLength;const c=n.length;s[d++]=c;for(let e=0;e<c;++e){const t=n[e];r.Color.pack(t.color,s,d),d+=r.Color.packedLength,s[d++]=t.offset,s[d++]=t.count;const a=t.batchIds,i=a.length;s[d++]=i;for(let e=0;e<i;++e)s[d++]=a[e]}return s}return d((function(e,r){const d=i.defined(e.boxes)?new Float32Array(e.boxes):void 0,c=i.defined(e.boxBatchIds)?new Uint16Array(e.boxBatchIds):void 0,l=i.defined(e.cylinders)?new Float32Array(e.cylinders):void 0,f=i.defined(e.cylinderBatchIds)?new Uint16Array(e.cylinderBatchIds):void 0,u=i.defined(e.ellipsoids)?new Float32Array(e.ellipsoids):void 0,h=i.defined(e.ellipsoidBatchIds)?new Uint16Array(e.ellipsoidBatchIds):void 0,b=i.defined(e.spheres)?new Float32Array(e.spheres):void 0,p=i.defined(e.sphereBatchIds)?new Uint16Array(e.sphereBatchIds):void 0,y=i.defined(d)?c.length:0,x=i.defined(l)?f.length:0,g=i.defined(u)?h.length:0,m=i.defined(b)?p.length:0,C=t.BoxGeometry.getUnitBox(),I=a.CylinderGeometry.getUnitCylinder(),k=o.EllipsoidGeometry.getUnitEllipsoid(),M=C.attributes.position.values,B=I.attributes.position.values,w=k.attributes.position.values;let E=M.length*y;E+=B.length*x,E+=w.length*(g+m);const T=C.indices,F=I.indices,R=k.indices;let Z=T.length*y;Z+=F.length*x,Z+=R.length*(g+m);const D=new Float32Array(E),P=new Uint16Array(E/3),_=s.IndexDatatype.createTypedArray(E/3,Z),q=y+x+g+m,W=new Uint16Array(q),j=new Array(q),H=new Uint32Array(q),N=new Uint32Array(q),Y=new Array(q);!function(e){const t=new Float64Array(e);let r=0;n.Cartesian3.unpack(t,r,G),r+=n.Cartesian3.packedLength,n.Matrix4.unpack(t,r,S)}(e.packedBuffer);const z={batchTableColors:new Uint32Array(e.batchTableColors),positions:D,vertexBatchIds:P,indices:_,batchIds:W,batchedIndices:j,indexOffsets:H,indexCounts:N,boundingVolumes:Y,positionOffset:0,batchIdIndex:0,indexOffset:0,batchedIndicesOffset:0,modelMatrix:S,center:G};U(z,d,c,C,A),U(z,l,f,I,O),U(z,u,h,k,L),U(z,b,p,k,v);const J=V(_.BYTES_PER_ELEMENT,j,Y);return r.push(D.buffer,P.buffer,_.buffer),r.push(W.buffer,H.buffer,N.buffer),r.push(J.buffer),{positions:D.buffer,vertexBatchIds:P.buffer,indices:_.buffer,indexOffsets:H.buffer,indexCounts:N.buffer,batchIds:W.buffer,packedBuffer:J.buffer}}))}));
25
+ import{a as P}from"./chunk-QJTXFT4R.js";import{a as z}from"./chunk-3N6OW3OY.js";import"./chunk-PEDE2P3Q.js";import{a as H}from"./chunk-5Z36UAB7.js";import{a as Y}from"./chunk-BKIYVF74.js";import{a as j}from"./chunk-ALIHIWSS.js";import"./chunk-ML6MR2RA.js";import"./chunk-AKELQO2L.js";import{a as W}from"./chunk-4WQ4VT5S.js";import"./chunk-6EINM7EY.js";import"./chunk-A4I25VN7.js";import{c as E}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import{b as d}from"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import"./chunk-2AIOP76V.js";import{a as o}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as l}from"./chunk-6DLS2UKD.js";function X(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}var J=X,S=new o,$=d.packedLength+o.packedLength,ee=d.packedLength+2,ne=d.packedLength+o.packedLength,te=o.packedLength+1,u={modelMatrix:new d,boundingVolume:new E};function oe(e,t){let n=t*$,r=o.unpack(e,n,S);n+=o.packedLength;let i=d.unpack(e,n,u.modelMatrix);d.multiplyByScale(i,r,i);let s=u.boundingVolume;return o.clone(o.ZERO,s.center),s.radius=Math.sqrt(3),u}function ce(e,t){let n=t*ee,r=e[n++],i=e[n++],s=o.fromElements(r,r,i,S),a=d.unpack(e,n,u.modelMatrix);d.multiplyByScale(a,s,a);let l=u.boundingVolume;return o.clone(o.ZERO,l.center),l.radius=Math.sqrt(2),u}function se(e,t){let n=t*ne,r=o.unpack(e,n,S);n+=o.packedLength;let i=d.unpack(e,n,u.modelMatrix);d.multiplyByScale(i,r,i);let s=u.boundingVolume;return o.clone(o.ZERO,s.center),s.radius=1,u}function ie(e,t){let n=t*te,r=e[n++],i=o.unpack(e,n,S),s=d.fromTranslation(i,u.modelMatrix);d.multiplyByUniformScale(s,r,s);let a=u.boundingVolume;return o.clone(o.ZERO,a.center),a.radius=1,u}var de=new o;function R(e,t,n,r,i){if(!l(t))return;let s=n.length,a=r.attributes.position.values,c=r.indices,u=e.positions,f=e.vertexBatchIds,h=e.indices,p=e.batchIds,m=e.batchTableColors,b=e.batchedIndices,k=e.indexOffsets,g=e.indexCounts,I=e.boundingVolumes,y=e.modelMatrix,x=e.center,A=e.positionOffset,j=e.batchIdIndex,w=e.indexOffset,B=e.batchedIndicesOffset;for(let e=0;e<s;++e){let r=i(t,e),s=r.modelMatrix;d.multiply(y,s,s);let l=n[e],O=a.length;for(let e=0;e<O;e+=3){let t=o.unpack(a,e,de);d.multiplyByPoint(s,t,t),o.subtract(t,x,t),o.pack(t,u,3*A+e),f[j++]=l}let L=c.length;for(let e=0;e<L;++e)h[w+e]=c[e]+A;let v=e+B;b[v]=new J({offset:w,count:L,color:P.fromRgba(m[l]),batchIds:[l]}),p[v]=l,k[v]=w,g[v]=L,I[v]=E.transform(r.boundingVolume,s),A+=O/3,w+=L}e.positionOffset=A,e.batchIdIndex=j,e.indexOffset=w,e.batchedIndicesOffset+=s}var K=new o,Q=new d;function re(e){let t=new Float64Array(e),n=0;o.unpack(t,n,K),n+=o.packedLength,d.unpack(t,n,Q)}function le(e){let t=e.length,n=0;for(let o=0;o<t;++o)n+=P.packedLength+3+e[o].batchIds.length;return n}function ae(e,t,n){let o=n.length,r=2+o*E.packedLength+1+le(t),i=new Float64Array(r),s=0;i[s++]=e,i[s++]=o;for(let e=0;e<o;++e)E.pack(n[e],i,s),s+=E.packedLength;let a=t.length;i[s++]=a;for(let e=0;e<a;++e){let n=t[e];P.pack(n.color,i,s),s+=P.packedLength,i[s++]=n.offset,i[s++]=n.count;let o=n.batchIds,r=o.length;i[s++]=r;for(let e=0;e<r;++e)i[s++]=o[e]}return i}function fe(e,t){let n=l(e.boxes)?new Float32Array(e.boxes):void 0,o=l(e.boxBatchIds)?new Uint16Array(e.boxBatchIds):void 0,r=l(e.cylinders)?new Float32Array(e.cylinders):void 0,i=l(e.cylinderBatchIds)?new Uint16Array(e.cylinderBatchIds):void 0,s=l(e.ellipsoids)?new Float32Array(e.ellipsoids):void 0,a=l(e.ellipsoidBatchIds)?new Uint16Array(e.ellipsoidBatchIds):void 0,c=l(e.spheres)?new Float32Array(e.spheres):void 0,d=l(e.sphereBatchIds)?new Uint16Array(e.sphereBatchIds):void 0,u=l(n)?o.length:0,f=l(r)?i.length:0,h=l(s)?a.length:0,p=l(c)?d.length:0,m=j.getUnitBox(),b=z.getUnitCylinder(),k=H.getUnitEllipsoid(),g=m.attributes.position.values,I=b.attributes.position.values,y=k.attributes.position.values,x=g.length*u;x+=I.length*f,x+=y.length*(h+p);let A=m.indices,E=b.indices,w=k.indices,B=A.length*u;B+=E.length*f,B+=w.length*(h+p);let O=new Float32Array(x),L=new Uint16Array(x/3),v=W.createTypedArray(x/3,B),U=u+f+h+p,S=new Uint16Array(U),V=new Array(U),M=new Uint32Array(U),P=new Uint32Array(U),T=new Array(U);re(e.packedBuffer);let F={batchTableColors:new Uint32Array(e.batchTableColors),positions:O,vertexBatchIds:L,indices:v,batchIds:S,batchedIndices:V,indexOffsets:M,indexCounts:P,boundingVolumes:T,positionOffset:0,batchIdIndex:0,indexOffset:0,batchedIndicesOffset:0,modelMatrix:Q,center:K};R(F,n,o,m,oe),R(F,r,i,b,ce),R(F,s,a,k,se),R(F,c,d,k,ie);let C=ae(v.BYTES_PER_ELEMENT,V,T);return t.push(O.buffer,L.buffer,v.buffer),t.push(S.buffer,M.buffer,P.buffer),t.push(C.buffer),{positions:O.buffer,vertexBatchIds:L.buffer,indices:v.buffer,indexOffsets:M.buffer,indexCounts:P.buffer,batchIds:S.buffer,packedBuffer:C.buffer}}var Oe=Y(fe);export{Oe as default};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.95
4
+ * Version 1.143.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -22,4 +22,4 @@
22
22
  * Portions licensed separately.
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
- define(["./AttributeCompression-5744d52e","./Matrix2-73789715","./ComponentDatatype-e7fbe225","./createTaskProcessorWorker","./RuntimeError-4f8ec8a2","./defaultValue-97284df2","./WebGLConstants-6da700a2"],(function(e,t,a,r,n,o,i){"use strict";const s=32767,c=new t.Cartographic,u=new t.Cartesian3,p=new t.Rectangle,l=new t.Ellipsoid,f={min:void 0,max:void 0};return r((function(r,n){const o=new Uint16Array(r.positions);!function(e){e=new Float64Array(e);let a=0;f.min=e[a++],f.max=e[a++],t.Rectangle.unpack(e,a,p),a+=t.Rectangle.packedLength,t.Ellipsoid.unpack(e,a,l)}(r.packedBuffer);const i=p,m=l,d=f.min,h=f.max,C=o.length/3,g=o.subarray(0,C),b=o.subarray(C,2*C),w=o.subarray(2*C,3*C);e.AttributeCompression.zigZagDeltaDecode(g,b,w);const k=new Float64Array(o.length);for(let e=0;e<C;++e){const r=g[e],n=b[e],o=w[e],p=a.CesiumMath.lerp(i.west,i.east,r/s),l=a.CesiumMath.lerp(i.south,i.north,n/s),f=a.CesiumMath.lerp(d,h,o/s),C=t.Cartographic.fromRadians(p,l,f,c),y=m.cartographicToCartesian(C,u);t.Cartesian3.pack(y,k,3*e)}return n.push(k.buffer),{positions:k.buffer}}))}));
25
+ import{a as x}from"./chunk-BKIYVF74.js";import{a as w}from"./chunk-G72JFEXW.js";import{j as c}from"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{a as l,c as p}from"./chunk-2AIOP76V.js";import{a as h}from"./chunk-IAE6APK2.js";import{a as i}from"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import"./chunk-6DLS2UKD.js";var u=32767,F=new l,L=new h,b=new c,y=new p,a={min:void 0,max:void 0};function V(r){r=new Float64Array(r);let n=0;a.min=r[n++],a.max=r[n++],c.unpack(r,n,b),n+=c.packedLength,p.unpack(r,n,y)}function z(r,n){let t=new Uint16Array(r.positions);V(r.packedBuffer);let o=b,e=y,s=a.min,p=a.max,c=t.length/3,m=t.subarray(0,c),f=t.subarray(c,2*c),k=t.subarray(2*c,3*c);w.zigZagDeltaDecode(m,f,k);let j=new Float64Array(t.length);for(let a=0;a<c;++a){let r=m[a],n=f[a],t=k[a],c=i.lerp(o.west,o.east,r/u),w=i.lerp(o.south,o.north,n/u),y=i.lerp(s,p,t/u),b=l.fromRadians(c,w,y,F),A=e.cartographicToCartesian(b,L);h.pack(A,j,3*a)}return n.push(j.buffer),{positions:j.buffer}}var G=x(z);export{G as default};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.95
4
+ * Version 1.143.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -22,4 +22,4 @@
22
22
  * Portions licensed separately.
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
- define(["./AttributeCompression-5744d52e","./Matrix2-73789715","./Color-c7fd1307","./defaultValue-97284df2","./IndexDatatype-65271ba3","./ComponentDatatype-e7fbe225","./OrientedBoundingBox-ee3011f6","./createTaskProcessorWorker","./RuntimeError-4f8ec8a2","./Transforms-d3d3b2a9","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./EllipsoidTangentPlane-7ae496b2","./AxisAlignedBoundingBox-b1c095aa","./IntersectionTests-33ace2d6","./Plane-e916220d"],(function(e,t,n,a,r,o,s,i,c,f,d,l,u,h,g,p,b){"use strict";const m=new t.Cartesian3,y=new t.Ellipsoid,C=new t.Rectangle,I={min:void 0,max:void 0,indexBytesPerElement:void 0};const x=new t.Cartesian3,w=new t.Cartesian3,A=new t.Cartesian3,E=new t.Cartesian3,N=new t.Cartesian3,T=new t.Cartographic,B=new t.Rectangle;return i((function(i,c){let f;!function(e){const n=new Float64Array(e);let a=0;I.indexBytesPerElement=n[a++],I.min=n[a++],I.max=n[a++],t.Cartesian3.unpack(n,a,m),a+=t.Cartesian3.packedLength,t.Ellipsoid.unpack(n,a,y),a+=t.Ellipsoid.packedLength,t.Rectangle.unpack(n,a,C)}(i.packedBuffer),f=2===I.indexBytesPerElement?new Uint16Array(i.indices):new Uint32Array(i.indices);const d=new Uint16Array(i.positions),l=new Uint32Array(i.counts),u=new Uint32Array(i.indexCounts),h=new Uint32Array(i.batchIds),g=new Uint32Array(i.batchTableColors),p=new Array(l.length),b=m,k=y;let L=C;const O=I.min,U=I.max;let P,F,S,D=i.minimumHeights,R=i.maximumHeights;a.defined(D)&&a.defined(R)&&(D=new Float32Array(D),R=new Float32Array(R));const _=d.length/2,M=d.subarray(0,_),G=d.subarray(_,2*_);e.AttributeCompression.zigZagDeltaDecode(M,G);const V=new Float64Array(3*_);for(P=0;P<_;++P){const e=M[P],n=G[P],a=o.CesiumMath.lerp(L.west,L.east,e/32767),r=o.CesiumMath.lerp(L.south,L.north,n/32767),s=t.Cartographic.fromRadians(a,r,0,T),i=k.cartographicToCartesian(s,x);t.Cartesian3.pack(i,V,3*P)}const Y=l.length,H=new Array(Y),v=new Array(Y);let W=0,j=0;for(P=0;P<Y;++P)H[P]=W,v[P]=j,W+=l[P],j+=u[P];const z=new Float32Array(3*_*2),Z=new Uint16Array(2*_),q=new Uint32Array(v.length),J=new Uint32Array(u.length);let K=[];const Q={};for(P=0;P<Y;++P)S=g[P],a.defined(Q[S])?(Q[S].positionLength+=l[P],Q[S].indexLength+=u[P],Q[S].batchIds.push(P)):Q[S]={positionLength:l[P],indexLength:u[P],offset:0,indexOffset:0,batchIds:[P]};let X,$=0,ee=0;for(S in Q)if(Q.hasOwnProperty(S)){X=Q[S],X.offset=$,X.indexOffset=ee;const e=2*X.positionLength,t=2*X.indexLength+6*X.positionLength;$+=e,ee+=t,X.indexLength=t}const te=[];for(S in Q)Q.hasOwnProperty(S)&&(X=Q[S],te.push({color:n.Color.fromRgba(parseInt(S)),offset:X.indexOffset,count:X.indexLength,batchIds:X.batchIds}));for(P=0;P<Y;++P){S=g[P],X=Q[S];const e=X.offset;let n=3*e,r=e;const o=H[P],i=l[P],c=h[P];let d=O,m=U;a.defined(D)&&a.defined(R)&&(d=D[P],m=R[P]);let y=Number.POSITIVE_INFINITY,C=Number.NEGATIVE_INFINITY,I=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY;for(F=0;F<i;++F){const e=t.Cartesian3.unpack(V,3*o+3*F,x);k.scaleToGeodeticSurface(e,e);const a=k.cartesianToCartographic(e,T),s=a.latitude,i=a.longitude;y=Math.min(s,y),C=Math.max(s,C),I=Math.min(i,I),_=Math.max(i,_);const f=k.geodeticSurfaceNormal(e,w);let l=t.Cartesian3.multiplyByScalar(f,d,A);const u=t.Cartesian3.add(e,l,E);l=t.Cartesian3.multiplyByScalar(f,m,l);const h=t.Cartesian3.add(e,l,N);t.Cartesian3.subtract(h,b,h),t.Cartesian3.subtract(u,b,u),t.Cartesian3.pack(h,z,n),t.Cartesian3.pack(u,z,n+3),Z[r]=c,Z[r+1]=c,n+=6,r+=2}L=B,L.west=I,L.east=_,L.south=y,L.north=C,p[P]=s.OrientedBoundingBox.fromRectangle(L,O,U,k);let M=X.indexOffset;const G=v[P],Y=u[P];for(q[P]=M,F=0;F<Y;F+=3){const t=f[G+F]-o,n=f[G+F+1]-o,a=f[G+F+2]-o;K[M++]=2*t+e,K[M++]=2*n+e,K[M++]=2*a+e,K[M++]=2*a+1+e,K[M++]=2*n+1+e,K[M++]=2*t+1+e}for(F=0;F<i;++F){const t=F,n=(F+1)%i;K[M++]=2*t+1+e,K[M++]=2*n+e,K[M++]=2*t+e,K[M++]=2*t+1+e,K[M++]=2*n+1+e,K[M++]=2*n+e}X.offset+=2*i,X.indexOffset=M,J[P]=M-q[P]}K=r.IndexDatatype.createTypedArray(z.length/3,K);const ne=te.length;for(let e=0;e<ne;++e){const t=te[e].batchIds;let n=0;const a=t.length;for(let e=0;e<a;++e)n+=J[t[e]];te[e].count=n}const ae=function(e,t,a){const r=t.length,o=2+r*s.OrientedBoundingBox.packedLength+1+function(e){const t=e.length;let a=0;for(let r=0;r<t;++r)a+=n.Color.packedLength+3+e[r].batchIds.length;return a}(a),i=new Float64Array(o);let c=0;i[c++]=e,i[c++]=r;for(let e=0;e<r;++e)s.OrientedBoundingBox.pack(t[e],i,c),c+=s.OrientedBoundingBox.packedLength;const f=a.length;i[c++]=f;for(let e=0;e<f;++e){const t=a[e];n.Color.pack(t.color,i,c),c+=n.Color.packedLength,i[c++]=t.offset,i[c++]=t.count;const r=t.batchIds,o=r.length;i[c++]=o;for(let e=0;e<o;++e)i[c++]=r[e]}return i}(2===K.BYTES_PER_ELEMENT?r.IndexDatatype.UNSIGNED_SHORT:r.IndexDatatype.UNSIGNED_INT,p,te);return c.push(z.buffer,K.buffer,q.buffer,J.buffer,Z.buffer,ae.buffer),{positions:z.buffer,indices:K.buffer,indexOffsets:q.buffer,indexCounts:J.buffer,batchIds:Z.buffer,packedBuffer:ae.buffer}}))}));
25
+ import{a as R}from"./chunk-QJTXFT4R.js";import{a as It}from"./chunk-BKIYVF74.js";import{a as M}from"./chunk-P5EFSOUF.js";import{a as bt}from"./chunk-G72JFEXW.js";import"./chunk-BDWA46XV.js";import"./chunk-5VFNV3LW.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.js";import{a as W}from"./chunk-4WQ4VT5S.js";import"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import{j as z}from"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{a as nt,c as j}from"./chunk-2AIOP76V.js";import{a as o}from"./chunk-IAE6APK2.js";import{a as et}from"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as A}from"./chunk-6DLS2UKD.js";var kt=new o,Bt=new j,Nt=new z,E={min:void 0,max:void 0,indexBytesPerElement:void 0};function Pt(t){let e=new Float64Array(t),n=0;E.indexBytesPerElement=e[n++],E.min=e[n++],E.max=e[n++],o.unpack(e,n,kt),n+=o.packedLength,j.unpack(e,n,Bt),n+=j.packedLength,z.unpack(e,n,Nt)}function Tt(t){let e=t.length,n=0;for(let r=0;r<e;++r)n+=R.packedLength+3+t[r].batchIds.length;return n}function Ct(t,e,n){let r=e.length,o=2+r*M.packedLength+1+Tt(n),a=new Float64Array(o),i=0;a[i++]=t,a[i++]=r;for(let t=0;t<r;++t)M.pack(e[t],a,i),i+=M.packedLength;let s=n.length;a[i++]=s;for(let t=0;t<s;++t){let e=n[t];R.pack(e.color,a,i),i+=R.packedLength,a[i++]=e.offset,a[i++]=e.count;let r=e.batchIds,o=r.length;a[i++]=o;for(let t=0;t<o;++t)a[i++]=r[t]}return a}var yt=32767,wt=new o,Ht=new o,St=new o,Ut=new o,Ft=new o,Lt=new nt,Mt=new z;function Rt(t,e){let n;Pt(t.packedBuffer),n=2===E.indexBytesPerElement?new Uint16Array(t.indices):new Uint32Array(t.indices);let r=new Uint16Array(t.positions),a=new Uint32Array(t.counts),i=new Uint32Array(t.indexCounts),s=new Uint32Array(t.batchIds),f=new Uint32Array(t.batchTableColors),c=new Array(a.length),h=kt,l=Bt,u=Nt,m=E.min,p=E.max,d=t.minimumHeights,k=t.maximumHeights;A(d)&&A(k)&&(d=new Float32Array(d),k=new Float32Array(k));let g,I,w,y=r.length/2,b=r.subarray(0,y),N=r.subarray(y,2*y);bt.zigZagDeltaDecode(b,N);let j=new Float64Array(3*y);for(g=0;g<y;++g){let t=b[g],e=N[g],n=et.lerp(u.west,u.east,t/yt),r=et.lerp(u.south,u.north,e/yt),a=nt.fromRadians(n,r,0,Lt),i=l.cartographicToCartesian(a,wt);o.pack(i,j,3*g)}let T=a.length,x=new Array(T),L=new Array(T),U=0,F=0;for(g=0;g<T;++g)x[g]=U,L[g]=F,U+=a[g],F+=i[g];let S=new Float32Array(3*y*2),B=new Uint16Array(2*y),O=new Uint32Array(L.length),P=new Uint32Array(i.length),V=[],D={};for(g=0;g<T;++g)w=f[g],A(D[w])?(D[w].positionLength+=a[g],D[w].indexLength+=i[g],D[w].batchIds.push(g)):D[w]={positionLength:a[g],indexLength:i[g],offset:0,indexOffset:0,batchIds:[g]};let G,J=0,C=0;for(w in D)if(D.hasOwnProperty(w)){G=D[w],G.offset=J,G.indexOffset=C;let t=2*G.positionLength,e=2*G.indexLength+6*G.positionLength;J+=t,C+=e,G.indexLength=e}let H=[];for(w in D)D.hasOwnProperty(w)&&(G=D[w],H.push({color:R.fromRgba(parseInt(w)),offset:G.indexOffset,count:G.indexLength,batchIds:G.batchIds}));for(g=0;g<T;++g){w=f[g],G=D[w];let t=G.offset,e=3*t,r=t,y=x[g],b=a[g],E=s[g],N=m,T=p;A(d)&&A(k)&&(N=d[g],T=k[g]);let U=Number.POSITIVE_INFINITY,F=Number.NEGATIVE_INFINITY,R=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY;for(I=0;I<b;++I){let t=o.unpack(j,3*y+3*I,wt);l.scaleToGeodeticSurface(t,t);let n=l.cartesianToCartographic(t,Lt),a=n.latitude,i=n.longitude;U=Math.min(a,U),F=Math.max(a,F),R=Math.min(i,R),J=Math.max(i,J);let s=l.geodeticSurfaceNormal(t,Ht),f=o.multiplyByScalar(s,N,St),c=o.add(t,f,Ut);f=o.multiplyByScalar(s,T,f);let u=o.add(t,f,Ft);o.subtract(u,h,u),o.subtract(c,h,c),o.pack(u,S,e),o.pack(c,S,e+3),B[r]=E,B[r+1]=E,e+=6,r+=2}u=Mt,u.west=R,u.east=J,u.south=U,u.north=F,c[g]=M.fromRectangle(u,m,p,l);let W=G.indexOffset,C=L[g],H=i[g];for(O[g]=W,I=0;I<H;I+=3){let e=n[C+I]-y,r=n[C+I+1]-y,o=n[C+I+2]-y;V[W++]=2*e+t,V[W++]=2*r+t,V[W++]=2*o+t,V[W++]=2*o+1+t,V[W++]=2*r+1+t,V[W++]=2*e+1+t}for(I=0;I<b;++I){let e=I,n=(I+1)%b;V[W++]=2*e+1+t,V[W++]=2*n+t,V[W++]=2*e+t,V[W++]=2*e+1+t,V[W++]=2*n+1+t,V[W++]=2*n+t}G.offset+=2*b,G.indexOffset=W,P[g]=W-O[g]}V=W.createTypedArray(S.length/3,V);let _=H.length;for(let t=0;t<_;++t){let e=H[t].batchIds,n=0,r=e.length;for(let t=0;t<r;++t)n+=P[e[t]];H[t].count=n}let Y=Ct(2===V.BYTES_PER_ELEMENT?W.UNSIGNED_SHORT:W.UNSIGNED_INT,c,H);return e.push(S.buffer,V.buffer,O.buffer,P.buffer,B.buffer,Y.buffer),{positions:S.buffer,indices:V.buffer,indexOffsets:O.buffer,indexCounts:P.buffer,batchIds:B.buffer,packedBuffer:Y.buffer}}var Jt=It(Rt);export{Jt as default};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.95
4
+ * Version 1.143.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -22,4 +22,4 @@
22
22
  * Portions licensed separately.
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
- define(["./Matrix2-73789715","./combine-d11b1f00","./AttributeCompression-5744d52e","./ComponentDatatype-e7fbe225","./IndexDatatype-65271ba3","./createTaskProcessorWorker","./RuntimeError-4f8ec8a2","./defaultValue-97284df2","./WebGLConstants-6da700a2"],(function(e,a,t,n,r,s,i,o,c){"use strict";const u=32767,f=new e.Cartographic,p=new e.Cartesian3,d=new e.Rectangle,l=new e.Ellipsoid,C=new e.Cartesian3,b={min:void 0,max:void 0},w=new e.Cartesian3,y=new e.Cartesian3,h=new e.Cartesian3,k=new e.Cartesian3,m=new e.Cartesian3;return s((function(s,i){const o=new Uint16Array(s.positions),c=new Uint16Array(s.widths),A=new Uint32Array(s.counts),g=new Uint16Array(s.batchIds);!function(a){a=new Float64Array(a);let t=0;b.min=a[t++],b.max=a[t++],e.Rectangle.unpack(a,t,d),t+=e.Rectangle.packedLength,e.Ellipsoid.unpack(a,t,l),t+=e.Ellipsoid.packedLength,e.Cartesian3.unpack(a,t,C)}(s.packedBuffer);const x=l,D=C,E=function(a,r,s,i,o){const c=a.length/3,d=a.subarray(0,c),l=a.subarray(c,2*c),C=a.subarray(2*c,3*c);t.AttributeCompression.zigZagDeltaDecode(d,l,C);const b=new Float64Array(a.length);for(let a=0;a<c;++a){const t=d[a],c=l[a],w=C[a],y=n.CesiumMath.lerp(r.west,r.east,t/u),h=n.CesiumMath.lerp(r.south,r.north,c/u),k=n.CesiumMath.lerp(s,i,w/u),m=e.Cartographic.fromRadians(y,h,k,f),A=o.cartographicToCartesian(m,p);e.Cartesian3.pack(A,b,3*a)}return b}(o,d,b.min,b.max,x),I=E.length/3,P=4*I-4,U=new Float32Array(3*P),R=new Float32Array(3*P),T=new Float32Array(3*P),F=new Float32Array(2*P),N=new Uint16Array(P);let M,L=0,S=0,_=0,v=0,G=A.length;for(M=0;M<G;++M){const a=A[M],t=c[M],n=g[M];for(let r=0;r<a;++r){let s;if(0===r){const a=e.Cartesian3.unpack(E,3*v,w),t=e.Cartesian3.unpack(E,3*(v+1),y);s=e.Cartesian3.subtract(a,t,h),e.Cartesian3.add(a,s,s)}else s=e.Cartesian3.unpack(E,3*(v+r-1),h);const i=e.Cartesian3.unpack(E,3*(v+r),k);let o;if(r===a-1){const t=e.Cartesian3.unpack(E,3*(v+a-1),w),n=e.Cartesian3.unpack(E,3*(v+a-2),y);o=e.Cartesian3.subtract(t,n,m),e.Cartesian3.add(t,o,o)}else o=e.Cartesian3.unpack(E,3*(v+r+1),m);e.Cartesian3.subtract(s,D,s),e.Cartesian3.subtract(i,D,i),e.Cartesian3.subtract(o,D,o);const c=r===a-1?2:4;for(let a=0===r?2:0;a<c;++a){e.Cartesian3.pack(i,U,L),e.Cartesian3.pack(s,R,L),e.Cartesian3.pack(o,T,L),L+=3;const r=a-2<0?-1:1;F[S++]=a%2*2-1,F[S++]=r*t,N[_++]=n}}v+=a}const W=r.IndexDatatype.createTypedArray(P,6*I-6);let B=0,O=0;for(G=I-1,M=0;M<G;++M)W[O++]=B,W[O++]=B+2,W[O++]=B+1,W[O++]=B+1,W[O++]=B+2,W[O++]=B+3,B+=4;i.push(U.buffer,R.buffer,T.buffer),i.push(F.buffer,N.buffer,W.buffer);let z={indexDatatype:2===W.BYTES_PER_ELEMENT?r.IndexDatatype.UNSIGNED_SHORT:r.IndexDatatype.UNSIGNED_INT,currentPositions:U.buffer,previousPositions:R.buffer,nextPositions:T.buffer,expandAndWidth:F.buffer,batchIds:N.buffer,indices:W.buffer};if(s.keepDecodedPositions){const e=function(e){const a=e.length,t=new Uint32Array(a+1);let n=0;for(let r=0;r<a;++r)t[r]=n,n+=e[r];return t[a]=n,t}(A);i.push(E.buffer,e.buffer),z=a.combine(z,{decodedPositions:E.buffer,decodedPositionOffsets:e.buffer})}return z}))}));
25
+ import{a as K}from"./chunk-BKIYVF74.js";import{a as G}from"./chunk-G72JFEXW.js";import{a as S}from"./chunk-4WQ4VT5S.js";import{c as B,j as R}from"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{a as _,c as L}from"./chunk-2AIOP76V.js";import{a as t}from"./chunk-IAE6APK2.js";import{a as F}from"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import"./chunk-6DLS2UKD.js";var O=32767,ct=new _,rt=new t;function it(e,r,a,n,u){let o=e.length/3,s=e.subarray(0,o),f=e.subarray(o,2*o),i=e.subarray(2*o,3*o);G.zigZagDeltaDecode(s,f,i);let c=new Float64Array(e.length);for(let e=0;e<o;++e){let o=s[e],p=f[e],l=i[e],d=F.lerp(r.west,r.east,o/O),k=F.lerp(r.south,r.north,p/O),h=F.lerp(a,n,l/O),m=_.fromRadians(d,k,h,ct),b=u.cartographicToCartesian(m,rt);t.pack(b,c,3*e)}return c}var Y=it,X=new R,$=new L,j=new t,H={min:void 0,max:void 0};function at(e){e=new Float64Array(e);let r=0;H.min=e[r++],H.max=e[r++],R.unpack(e,r,X),r+=R.packedLength,L.unpack(e,r,$),r+=L.packedLength,t.unpack(e,r,j)}function ft(t){let e=t.length,r=new Uint32Array(e+1),a=0;for(let n=0;n<e;++n)r[n]=a,a+=t[n];return r[e]=a,r}var Z=new t,q=new t,J=new t,dt=new t,Q=new t;function ut(e,r){let a=new Uint16Array(e.positions),n=new Uint16Array(e.widths),u=new Uint32Array(e.counts),o=new Uint16Array(e.batchIds);at(e.packedBuffer);let s,f=X,i=$,c=j,p=H.min,l=H.max,d=Y(a,f,p,l,i),k=d.length/3,h=4*k-4,m=new Float32Array(3*h),b=new Float32Array(3*h),w=new Float32Array(3*h),A=new Float32Array(2*h),y=new Uint16Array(h),F=0,E=0,D=0,I=0,U=u.length;for(s=0;s<U;++s){let e=u[s],r=n[s],a=o[s];for(let n=0;n<e;++n){let u;if(0===n){let e=t.unpack(d,3*I,Z),r=t.unpack(d,3*(I+1),q);u=t.subtract(e,r,J),t.add(e,u,u)}else u=t.unpack(d,3*(I+n-1),J);let o,s=t.unpack(d,3*(I+n),dt);if(n===e-1){let r=t.unpack(d,3*(I+e-1),Z),a=t.unpack(d,3*(I+e-2),q);o=t.subtract(r,a,Q),t.add(r,o,o)}else o=t.unpack(d,3*(I+n+1),Q);t.subtract(u,c,u),t.subtract(s,c,s),t.subtract(o,c,o);let f=n===e-1?2:4;for(let e=0===n?2:0;e<f;++e){t.pack(s,m,F),t.pack(u,b,F),t.pack(o,w,F),F+=3;let n=e-2<0?-1:1;A[E++]=e%2*2-1,A[E++]=n*r,y[D++]=a}}I+=e}let g=S.createTypedArray(h,6*k-6),P=0,L=0;for(U=k-1,s=0;s<U;++s)g[L++]=P,g[L++]=P+2,g[L++]=P+1,g[L++]=P+1,g[L++]=P+2,g[L++]=P+3,P+=4;r.push(m.buffer,b.buffer,w.buffer),r.push(A.buffer,y.buffer,g.buffer);let N={indexDatatype:2===g.BYTES_PER_ELEMENT?S.UNSIGNED_SHORT:S.UNSIGNED_INT,currentPositions:m.buffer,previousPositions:b.buffer,nextPositions:w.buffer,expandAndWidth:A.buffer,batchIds:y.buffer,indices:g.buffer};if(e.keepDecodedPositions){let t=ft(u);r.push(d.buffer,t.buffer),N=B(N,{decodedPositions:d.buffer,decodedPositionOffsets:t.buffer})}return N}var It=K(ut);export{It as default};
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.143.0
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
25
+ import{a as u}from"./chunk-E7EKLP3B.js";import"./chunk-W5OEMTMB.js";import"./chunk-PYMQNHFO.js";import{a as f}from"./chunk-BKIYVF74.js";import"./chunk-LN2UT4R3.js";import"./chunk-P5EFSOUF.js";import"./chunk-G72JFEXW.js";import"./chunk-BDWA46XV.js";import"./chunk-5VFNV3LW.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.js";import"./chunk-4WQ4VT5S.js";import"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import"./chunk-2AIOP76V.js";import"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import"./chunk-6DLS2UKD.js";function a(t,r){return u.createMesh(t).then((function(t){let u=t.vertices.buffer,s=t.indices.buffer,n=t.westIndicesSouthToNorth.buffer,i=t.southIndicesEastToWest.buffer,o=t.eastIndicesNorthToSouth.buffer,e=t.northIndicesWestToEast.buffer;return r.push(u,s,n,i,o,e),{verticesBuffer:u,indicesBuffer:s,vertexCountWithoutSkirts:t.vertexCountWithoutSkirts,indexCountWithoutSkirts:t.indexCountWithoutSkirts,encoding:t.encoding,westIndicesBuffer:n,southIndicesBuffer:i,eastIndicesBuffer:o,northIndicesBuffer:e}}))}var T=f(a);export{T as default};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.95
4
+ * Version 1.143.0
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -22,4 +22,4 @@
22
22
  * Portions licensed separately.
23
23
  * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
24
  */
25
- define(["./AxisAlignedBoundingBox-b1c095aa","./Transforms-d3d3b2a9","./Matrix2-73789715","./defaultValue-97284df2","./TerrainEncoding-080f16eb","./ComponentDatatype-e7fbe225","./OrientedBoundingBox-ee3011f6","./RuntimeError-4f8ec8a2","./WebMercatorProjection-04ef6bc3","./createTaskProcessorWorker","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./AttributeCompression-5744d52e","./WebGLConstants-6da700a2","./EllipsoidTangentPlane-7ae496b2","./IntersectionTests-33ace2d6","./Plane-e916220d"],(function(t,e,n,i,o,a,r,s,c,u,h,d,l,g,m,p,I){"use strict";const f=Uint16Array.BYTES_PER_ELEMENT,E=Int32Array.BYTES_PER_ELEMENT,T=Uint32Array.BYTES_PER_ELEMENT,C=Float32Array.BYTES_PER_ELEMENT,M=Float64Array.BYTES_PER_ELEMENT;function x(t,e,n){n=i.defaultValue(n,a.CesiumMath);const o=t.length;for(let i=0;i<o;++i)if(n.equalsEpsilon(t[i],e,a.CesiumMath.EPSILON12))return i;return-1}const N=new n.Cartographic,b=new n.Cartesian3,S=new n.Cartesian3,w=new n.Cartesian3,B=new n.Matrix4;function P(t,e,o,r,s,c,u,h,d,l,g){const m=h.length;for(let p=0;p<m;++p){const I=h[p],f=I.cartographic,E=I.index,T=t.length,C=f.longitude;let M=f.latitude;M=a.CesiumMath.clamp(M,-a.CesiumMath.PI_OVER_TWO,a.CesiumMath.PI_OVER_TWO);const x=f.height-u.skirtHeight;u.hMin=Math.min(u.hMin,x),n.Cartographic.fromRadians(C,M,x,N),l&&(N.longitude+=d),l?p===m-1?N.latitude+=g:0===p&&(N.latitude-=g):N.latitude+=d;const S=u.ellipsoid.cartographicToCartesian(N);t.push(S),e.push(x),o.push(n.Cartesian2.clone(o[E])),r.length>0&&r.push(r[E]),s.length>0&&s.push(s[E]),n.Matrix4.multiplyByPoint(u.toENU,S,b);const w=u.minimum,B=u.maximum;n.Cartesian3.minimumByComponent(b,w,w),n.Cartesian3.maximumByComponent(b,B,B);const P=u.lastBorderPoint;if(i.defined(P)){const t=P.index;c.push(t,T-1,T,T,E,t)}u.lastBorderPoint=I}}return u((function(u,h){u.ellipsoid=n.Ellipsoid.clone(u.ellipsoid),u.rectangle=n.Rectangle.clone(u.rectangle);const d=function(u,h,d,l,g,m,p,I,A,y,R){let _,W,v,F,O,V;i.defined(l)?(_=l.west,W=l.south,v=l.east,F=l.north,O=l.width,V=l.height):(_=a.CesiumMath.toRadians(g.west),W=a.CesiumMath.toRadians(g.south),v=a.CesiumMath.toRadians(g.east),F=a.CesiumMath.toRadians(g.north),O=a.CesiumMath.toRadians(l.width),V=a.CesiumMath.toRadians(l.height));const Y=[W,F],H=[_,v],U=e.Transforms.eastNorthUpToFixedFrame(h,d),k=n.Matrix4.inverseTransformation(U,B);let L,j;A&&(L=c.WebMercatorProjection.geodeticLatitudeToMercatorAngle(W),j=1/(c.WebMercatorProjection.geodeticLatitudeToMercatorAngle(F)-L));const D=1!==m,G=new DataView(u);let z=Number.POSITIVE_INFINITY,q=Number.NEGATIVE_INFINITY;const J=S;J.x=Number.POSITIVE_INFINITY,J.y=Number.POSITIVE_INFINITY,J.z=Number.POSITIVE_INFINITY;const K=w;K.x=Number.NEGATIVE_INFINITY,K.y=Number.NEGATIVE_INFINITY,K.z=Number.NEGATIVE_INFINITY;let Q,X,Z=0,$=0,tt=0;for(X=0;X<4;++X){let t=Z;Q=G.getUint32(t,!0),t+=T;const e=a.CesiumMath.toRadians(180*G.getFloat64(t,!0));t+=M,-1===x(H,e)&&H.push(e);const n=a.CesiumMath.toRadians(180*G.getFloat64(t,!0));t+=M,-1===x(Y,n)&&Y.push(n),t+=2*M;let i=G.getInt32(t,!0);t+=E,$+=i,i=G.getInt32(t,!0),tt+=3*i,Z+=Q+T}const et=[],nt=[],it=new Array($),ot=new Array($),at=new Array($),rt=A?new Array($):[],st=D?new Array($):[],ct=new Array(tt),ut=[],ht=[],dt=[],lt=[];let gt=0,mt=0;for(Z=0,X=0;X<4;++X){Q=G.getUint32(Z,!0),Z+=T;const t=Z,e=a.CesiumMath.toRadians(180*G.getFloat64(Z,!0));Z+=M;const i=a.CesiumMath.toRadians(180*G.getFloat64(Z,!0));Z+=M;const o=a.CesiumMath.toRadians(180*G.getFloat64(Z,!0)),r=.5*o;Z+=M;const u=a.CesiumMath.toRadians(180*G.getFloat64(Z,!0)),h=.5*u;Z+=M;const l=G.getInt32(Z,!0);Z+=E;const g=G.getInt32(Z,!0);Z+=E,Z+=E;const m=new Array(l);for(let t=0;t<l;++t){const s=e+G.getUint8(Z++)*o;N.longitude=s;const l=i+G.getUint8(Z++)*u;N.latitude=l;let g=G.getFloat32(Z,!0);if(Z+=C,0!==g&&g<R&&(g*=-Math.pow(2,y)),g*=6371010,N.height=g,-1!==x(H,s)||-1!==x(Y,l)){const e=x(et,N,n.Cartographic);if(-1!==e){m[t]=nt[e];continue}et.push(n.Cartographic.clone(N)),nt.push(gt)}m[t]=gt,Math.abs(s-_)<r?ut.push({index:gt,cartographic:n.Cartographic.clone(N)}):Math.abs(s-v)<r?dt.push({index:gt,cartographic:n.Cartographic.clone(N)}):Math.abs(l-W)<h?ht.push({index:gt,cartographic:n.Cartographic.clone(N)}):Math.abs(l-F)<h&&lt.push({index:gt,cartographic:n.Cartographic.clone(N)}),z=Math.min(g,z),q=Math.max(g,q),at[gt]=g;const p=d.cartographicToCartesian(N);if(it[gt]=p,A&&(rt[gt]=(c.WebMercatorProjection.geodeticLatitudeToMercatorAngle(l)-L)*j),D){const t=d.geodeticSurfaceNormal(p);st[gt]=t}n.Matrix4.multiplyByPoint(k,p,b),n.Cartesian3.minimumByComponent(b,J,J),n.Cartesian3.maximumByComponent(b,K,K);let I=(s-_)/(v-_);I=a.CesiumMath.clamp(I,0,1);let f=(l-W)/(F-W);f=a.CesiumMath.clamp(f,0,1),ot[gt]=new n.Cartesian2(I,f),++gt}const p=3*g;for(let t=0;t<p;++t,++mt)ct[mt]=m[G.getUint16(Z,!0)],Z+=f;if(Q!==Z-t)throw new s.RuntimeError("Invalid terrain tile.")}it.length=gt,ot.length=gt,at.length=gt,A&&(rt.length=gt),D&&(st.length=gt);const pt=gt,It=mt,ft={hMin:z,lastBorderPoint:void 0,skirtHeight:I,toENU:k,ellipsoid:d,minimum:J,maximum:K};ut.sort((function(t,e){return e.cartographic.latitude-t.cartographic.latitude})),ht.sort((function(t,e){return t.cartographic.longitude-e.cartographic.longitude})),dt.sort((function(t,e){return t.cartographic.latitude-e.cartographic.latitude})),lt.sort((function(t,e){return e.cartographic.longitude-t.cartographic.longitude}));const Et=1e-5;if(P(it,at,ot,rt,st,ct,ft,ut,-Et*O,!0,-Et*V),P(it,at,ot,rt,st,ct,ft,ht,-Et*V,!1),P(it,at,ot,rt,st,ct,ft,dt,Et*O,!0,Et*V),P(it,at,ot,rt,st,ct,ft,lt,Et*V,!1),ut.length>0&&lt.length>0){const t=ut[0].index,e=pt,n=lt[lt.length-1].index,i=it.length-1;ct.push(n,i,e,e,t,n)}$=it.length;const Tt=e.BoundingSphere.fromPoints(it);let Ct;i.defined(l)&&(Ct=r.OrientedBoundingBox.fromRectangle(l,z,q,d));const Mt=new o.EllipsoidalOccluder(d).computeHorizonCullingPointPossiblyUnderEllipsoid(h,it,z),xt=new t.AxisAlignedBoundingBox(J,K,h),Nt=new o.TerrainEncoding(h,xt,ft.hMin,q,U,!1,A,D,m,p),bt=new Float32Array($*Nt.stride);let St=0;for(let t=0;t<$;++t)St=Nt.encode(bt,St,it[t],ot[t],at[t],void 0,rt[t],st[t]);const wt=ut.map((function(t){return t.index})).reverse(),Bt=ht.map((function(t){return t.index})).reverse(),Pt=dt.map((function(t){return t.index})).reverse(),At=lt.map((function(t){return t.index})).reverse();return Bt.unshift(Pt[Pt.length-1]),Bt.push(wt[0]),At.unshift(wt[wt.length-1]),At.push(Pt[0]),{vertices:bt,indices:new Uint16Array(ct),maximumHeight:q,minimumHeight:z,encoding:Nt,boundingSphere3D:Tt,orientedBoundingBox:Ct,occludeePointInScaledSpace:Mt,vertexCountWithoutSkirts:pt,indexCountWithoutSkirts:It,westIndicesSouthToNorth:wt,southIndicesEastToWest:Bt,eastIndicesNorthToSouth:Pt,northIndicesWestToEast:At}}(u.buffer,u.relativeToCenter,u.ellipsoid,u.rectangle,u.nativeRectangle,u.exaggeration,u.exaggerationRelativeHeight,u.skirtHeight,u.includeWebMercatorT,u.negativeAltitudeExponentBias,u.negativeElevationThreshold),l=d.vertices;h.push(l.buffer);const g=d.indices;return h.push(g.buffer),{vertices:l.buffer,indices:g.buffer,numberOfAttributes:d.encoding.stride,minimumHeight:d.minimumHeight,maximumHeight:d.maximumHeight,boundingSphere3D:d.boundingSphere3D,orientedBoundingBox:d.orientedBoundingBox,occludeePointInScaledSpace:d.occludeePointInScaledSpace,encoding:d.encoding,vertexCountWithoutSkirts:d.vertexCountWithoutSkirts,indexCountWithoutSkirts:d.indexCountWithoutSkirts,westIndicesSouthToNorth:d.westIndicesSouthToNorth,southIndicesEastToWest:d.southIndicesEastToWest,eastIndicesNorthToSouth:d.eastIndicesNorthToSouth,northIndicesWestToEast:d.northIndicesWestToEast}}))}));
25
+ import{a as Dt,c as Gt}from"./chunk-PYMQNHFO.js";import{a as Lt}from"./chunk-BKIYVF74.js";import{a as lt}from"./chunk-LN2UT4R3.js";import{a as qt}from"./chunk-P5EFSOUF.js";import"./chunk-G72JFEXW.js";import"./chunk-BDWA46XV.js";import{a as kt}from"./chunk-5VFNV3LW.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.js";import{c as zt}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import{i as Ot,j as Vt}from"./chunk-LNJEJFV5.js";import{b as $}from"./chunk-BPABSUDY.js";import"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import{a as Ht}from"./chunk-G3GDHHWO.js";import{a as N,b as wt,c as Ut}from"./chunk-2AIOP76V.js";import{a as P}from"./chunk-IAE6APK2.js";import{a as r}from"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as ht}from"./chunk-6DLS2UKD.js";var $t=Uint16Array.BYTES_PER_ELEMENT,mt=Int32Array.BYTES_PER_ELEMENT,Pt=Uint32Array.BYTES_PER_ELEMENT,te=Float32Array.BYTES_PER_ELEMENT,H=Float64Array.BYTES_PER_ELEMENT;function tt(t,e,n){n=n??r;let i=t.length;for(let o=0;o<i;++o)if(n.equalsEpsilon(t[o],e,r.EPSILON12))return o;return-1}function ee(t,e){t.ellipsoid=Ut.clone(t.ellipsoid),t.rectangle=Vt.clone(t.rectangle);let n=re(t.buffer,t.relativeToCenter,t.ellipsoid,t.rectangle,t.nativeRectangle,t.exaggeration,t.exaggerationRelativeHeight,t.skirtHeight,t.includeWebMercatorT,t.negativeAltitudeExponentBias,t.negativeElevationThreshold),i=n.vertices;e.push(i.buffer);let r=n.indices;return e.push(r.buffer),{vertices:i.buffer,indices:r.buffer,numberOfAttributes:n.encoding.stride,minimumHeight:n.minimumHeight,maximumHeight:n.maximumHeight,boundingSphere3D:n.boundingSphere3D,orientedBoundingBox:n.orientedBoundingBox,occludeePointInScaledSpace:n.occludeePointInScaledSpace,encoding:n.encoding,vertexCountWithoutSkirts:n.vertexCountWithoutSkirts,indexCountWithoutSkirts:n.indexCountWithoutSkirts,westIndicesSouthToNorth:n.westIndicesSouthToNorth,southIndicesEastToWest:n.southIndicesEastToWest,eastIndicesNorthToSouth:n.eastIndicesNorthToSouth,northIndicesWestToEast:n.northIndicesWestToEast}}var u=new N,G=new P,oe=new P,ne=new P,ie=new $;function re(t,e,n,i,o,a,s,l,h,c,m){let d,g,p,I,f,E;ht(i)?(d=i.west,g=i.south,p=i.east,I=i.north,f=i.width,E=i.height):(d=r.toRadians(o.west),g=r.toRadians(o.south),p=r.toRadians(o.east),I=r.toRadians(o.north),f=r.toRadians(i.width),E=r.toRadians(i.height));let T,S,x=[g,I],w=[d,p],k=Ot.eastNorthUpToFixedFrame(e,n),A=$.inverseTransformation(k,ie);h&&(T=lt.geodeticLatitudeToMercatorAngle(g),S=1/(lt.geodeticLatitudeToMercatorAngle(I)-T));let B=1!==a,F=new DataView(t),R=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY,y=oe;y.x=Number.POSITIVE_INFINITY,y.y=Number.POSITIVE_INFINITY,y.z=Number.POSITIVE_INFINITY;let M=ne;M.x=Number.NEGATIVE_INFINITY,M.y=Number.NEGATIVE_INFINITY,M.z=Number.NEGATIVE_INFINITY;let v,j,U=0,V=0,_=0;for(j=0;j<4;++j){let t=U;v=F.getUint32(t,!0),t+=Pt;let e=r.toRadians(180*F.getFloat64(t,!0));t+=H,-1===tt(w,e)&&w.push(e);let n=r.toRadians(180*F.getFloat64(t,!0));t+=H,-1===tt(x,n)&&x.push(n),t+=2*H;let i=F.getInt32(t,!0);t+=mt,V+=i,i=F.getInt32(t,!0),_+=3*i,U+=v+Pt}let W=[],O=[],Y=new Array(V),C=new Array(V),L=new Array(V),D=h?new Array(V):[],J=B?new Array(V):[],K=new Array(_),z=[],X=[],q=[],Q=[],Z=0,et=0;for(U=0,j=0;j<4;++j){v=F.getUint32(U,!0),U+=Pt;let t=U,e=r.toRadians(180*F.getFloat64(U,!0));U+=H;let i=r.toRadians(180*F.getFloat64(U,!0));U+=H;let o=r.toRadians(180*F.getFloat64(U,!0)),a=.5*o;U+=H;let s=r.toRadians(180*F.getFloat64(U,!0)),l=.5*s;U+=H;let f=F.getInt32(U,!0);U+=mt;let E=F.getInt32(U,!0);U+=mt,U+=mt;let k=new Array(f);for(let t=0;t<f;++t){let f=e+F.getUint8(U++)*o;u.longitude=f;let E=i+F.getUint8(U++)*s;u.latitude=E;let H=F.getFloat32(U,!0);if(U+=te,0!==H&&H<m&&(H*=-Math.pow(2,c)),H*=6371010,u.height=H,-1!==tt(w,f)||-1!==tt(x,E)){let e=tt(W,u,N);if(-1!==e){k[t]=O[e];continue}W.push(N.clone(u)),O.push(Z)}k[t]=Z,Math.abs(f-d)<a?z.push({index:Z,cartographic:N.clone(u)}):Math.abs(f-p)<a?q.push({index:Z,cartographic:N.clone(u)}):Math.abs(E-g)<l?X.push({index:Z,cartographic:N.clone(u)}):Math.abs(E-I)<l&&Q.push({index:Z,cartographic:N.clone(u)}),R=Math.min(H,R),b=Math.max(H,b),L[Z]=H;let v=n.cartographicToCartesian(u);if(Y[Z]=v,h&&(D[Z]=(lt.geodeticLatitudeToMercatorAngle(E)-T)*S),B){let t=n.geodeticSurfaceNormal(v);J[Z]=t}$.multiplyByPoint(A,v,G),P.minimumByComponent(G,y,y),P.maximumByComponent(G,M,M);let j=(f-d)/(p-d);j=r.clamp(j,0,1);let V=(E-g)/(I-g);V=r.clamp(V,0,1),C[Z]=new wt(j,V),++Z}let j=3*E;for(let t=0;t<j;++t,++et)K[et]=k[F.getUint16(U,!0)],U+=$t;if(v!==U-t)throw new Ht("Invalid terrain tile.")}Y.length=Z,C.length=Z,L.length=Z,h&&(D.length=Z),B&&(J.length=Z);let nt=Z,it=et,rt={hMin:R,lastBorderPoint:void 0,skirtHeight:l,toENU:A,ellipsoid:n,minimum:y,maximum:M};z.sort((function(t,e){return e.cartographic.latitude-t.cartographic.latitude})),X.sort((function(t,e){return t.cartographic.longitude-e.cartographic.longitude})),q.sort((function(t,e){return t.cartographic.latitude-e.cartographic.latitude})),Q.sort((function(t,e){return e.cartographic.longitude-t.cartographic.longitude}));let ot=1e-5;if(gt(Y,L,C,D,J,K,rt,z,-ot*f,!0,-ot*E),gt(Y,L,C,D,J,K,rt,X,-ot*E,!1),gt(Y,L,C,D,J,K,rt,q,ot*f,!0,ot*E),gt(Y,L,C,D,J,K,rt,Q,ot*E,!1),z.length>0&&Q.length>0){let t=z[0].index,e=nt,n=Q[Q.length-1].index,i=Y.length-1;K.push(n,i,e,e,t,n)}V=Y.length;let at,ut=zt.fromPoints(Y);ht(i)&&(at=qt.fromRectangle(i,R,b,n));let st=new Dt(n).computeHorizonCullingPointPossiblyUnderEllipsoid(e,Y,R),ct=new kt(y,M,e),dt=new Gt(e,ct,rt.hMin,b,k,!1,h,B,a,s),pt=new Float32Array(V*dt.stride),It=0;for(let t=0;t<V;++t)It=dt.encode(pt,It,Y[t],C[t],L[t],void 0,D[t],J[t]);let Nt=z.map((function(t){return t.index})).reverse(),ft=X.map((function(t){return t.index})).reverse(),Et=q.map((function(t){return t.index})).reverse(),Tt=Q.map((function(t){return t.index})).reverse();return ft.unshift(Et[Et.length-1]),ft.push(Nt[0]),Tt.unshift(Nt[Nt.length-1]),Tt.push(Et[0]),{vertices:pt,indices:new Uint16Array(K),maximumHeight:b,minimumHeight:R,encoding:dt,boundingSphere3D:ut,orientedBoundingBox:at,occludeePointInScaledSpace:st,vertexCountWithoutSkirts:nt,indexCountWithoutSkirts:it,westIndicesSouthToNorth:Nt,southIndicesEastToWest:ft,eastIndicesNorthToSouth:Et,northIndicesWestToEast:Tt}}function gt(t,e,n,i,o,a,s,l,h,c,m){let d=l.length;for(let g=0;g<d;++g){let p=l[g],I=p.cartographic,f=p.index,E=t.length,T=I.longitude,S=I.latitude;S=r.clamp(S,-r.PI_OVER_TWO,r.PI_OVER_TWO);let x=I.height-s.skirtHeight;s.hMin=Math.min(s.hMin,x),N.fromRadians(T,S,x,u),c&&(u.longitude+=h),c?g===d-1?u.latitude+=m:0===g&&(u.latitude-=m):u.latitude+=h;let w=s.ellipsoid.cartographicToCartesian(u);t.push(w),e.push(x),n.push(wt.clone(n[f])),i.length>0&&i.push(i[f]),o.length>0&&o.push(o[f]),$.multiplyByPoint(s.toENU,w,G);let k=s.minimum,A=s.maximum;P.minimumByComponent(G,k,k),P.maximumByComponent(G,A,A);let B=s.lastBorderPoint;if(ht(B)){let t=B.index;a.push(t,E-1,E,E,f,t)}s.lastBorderPoint=p}}var we=Lt(ee);export{we as default};