@anov/gis 1.7.7 → 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 +11 -7
  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(["./arrayRemoveDuplicates-6f91355d","./Transforms-d3d3b2a9","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./PolylineVolumeGeometryLibrary-a4b92b4e","./CorridorGeometryLibrary-ab3e6481","./defaultValue-97284df2","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3","./PolygonPipeline-00dc0c6e","./VertexFormat-9886cb81","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./EllipsoidTangentPlane-7ae496b2","./AxisAlignedBoundingBox-b1c095aa","./IntersectionTests-33ace2d6","./Plane-e916220d","./PolylinePipeline-ebd42f23","./EllipsoidGeodesic-ed8a0e40","./EllipsoidRhumbLine-60f14314"],(function(t,e,r,a,i,o,n,s,l,d,u,m,c,f,y,p,g,h,b,C,A,_,w,v){"use strict";const T=new r.Cartesian3,G=new r.Cartesian3,E=new r.Cartesian3,V=new r.Cartesian3,x=new r.Cartesian3,L=new r.Cartesian3,P=new r.Cartesian3,F=new r.Cartesian3;function N(t,e){for(let r=0;r<t.length;r++)t[r]=e.scaleToGeodeticSurface(t[r],t[r]);return t}function D(t,e,a,i,o,s){const l=t.normals,d=t.tangents,u=t.bitangents,m=r.Cartesian3.normalize(r.Cartesian3.cross(a,e,P),P);s.normal&&n.CorridorGeometryLibrary.addAttribute(l,e,i,o),s.tangent&&n.CorridorGeometryLibrary.addAttribute(d,m,i,o),s.bitangent&&n.CorridorGeometryLibrary.addAttribute(u,a,i,o)}function M(t,e,a){const o=t.positions,u=t.corners,c=t.endPositions,f=t.lefts,y=t.normals,p=new d.GeometryAttributes;let g,h,b,C=0,A=0,_=0;for(h=0;h<o.length;h+=2)b=o[h].length-3,C+=b,_+=2*b,A+=o[h+1].length-3;for(C+=3,A+=3,h=0;h<u.length;h++){g=u[h];const t=u[h].leftPositions;s.defined(t)?(b=t.length,C+=b,_+=b):(b=u[h].rightPositions.length,A+=b,_+=b)}const w=s.defined(c);let v;w&&(v=c[0].length-3,C+=v,A+=v,v/=3,_+=6*v);const x=C+A,N=new Float64Array(x),M={normals:e.normal?new Float32Array(x):void 0,tangents:e.tangent?new Float32Array(x):void 0,bitangents:e.bitangent?new Float32Array(x):void 0};let O,I,S,R,k,H,z=0,B=x-1,U=T,Y=G;const W=v/2,q=m.IndexDatatype.createTypedArray(x/3,_);let j=0;if(w){H=E,k=V;const t=c[0];for(U=r.Cartesian3.fromArray(y,0,U),Y=r.Cartesian3.fromArray(f,0,Y),h=0;h<W;h++)H=r.Cartesian3.fromArray(t,3*(W-1-h),H),k=r.Cartesian3.fromArray(t,3*(W+h),k),n.CorridorGeometryLibrary.addAttribute(N,k,z),n.CorridorGeometryLibrary.addAttribute(N,H,void 0,B),D(M,U,Y,z,B,e),I=z/3,R=I+1,O=(B-2)/3,S=O-1,q[j++]=O,q[j++]=I,q[j++]=S,q[j++]=S,q[j++]=I,q[j++]=R,z+=3,B-=3}let J,K,Q=0,X=0,Z=o[Q++],$=o[Q++];for(N.set(Z,z),N.set($,B-$.length+1),Y=r.Cartesian3.fromArray(f,X,Y),b=$.length-3,h=0;h<b;h+=3)J=a.geodeticSurfaceNormal(r.Cartesian3.fromArray(Z,h,P),P),K=a.geodeticSurfaceNormal(r.Cartesian3.fromArray($,b-h,F),F),U=r.Cartesian3.normalize(r.Cartesian3.add(J,K,U),U),D(M,U,Y,z,B,e),I=z/3,R=I+1,O=(B-2)/3,S=O-1,q[j++]=O,q[j++]=I,q[j++]=S,q[j++]=S,q[j++]=I,q[j++]=R,z+=3,B-=3;for(J=a.geodeticSurfaceNormal(r.Cartesian3.fromArray(Z,b,P),P),K=a.geodeticSurfaceNormal(r.Cartesian3.fromArray($,b,F),F),U=r.Cartesian3.normalize(r.Cartesian3.add(J,K,U),U),X+=3,h=0;h<u.length;h++){let t;g=u[h];const i=g.leftPositions,l=g.rightPositions;let d,m,c=L,p=E,C=V;if(U=r.Cartesian3.fromArray(y,X,U),s.defined(i)){for(D(M,U,Y,void 0,B,e),B-=3,d=R,m=S,t=0;t<i.length/3;t++)c=r.Cartesian3.fromArray(i,3*t,c),q[j++]=d,q[j++]=m-t-1,q[j++]=m-t,n.CorridorGeometryLibrary.addAttribute(N,c,void 0,B),p=r.Cartesian3.fromArray(N,3*(m-t-1),p),C=r.Cartesian3.fromArray(N,3*d,C),Y=r.Cartesian3.normalize(r.Cartesian3.subtract(p,C,Y),Y),D(M,U,Y,void 0,B,e),B-=3;c=r.Cartesian3.fromArray(N,3*d,c),p=r.Cartesian3.subtract(r.Cartesian3.fromArray(N,3*m,p),c,p),C=r.Cartesian3.subtract(r.Cartesian3.fromArray(N,3*(m-t),C),c,C),Y=r.Cartesian3.normalize(r.Cartesian3.add(p,C,Y),Y),D(M,U,Y,z,void 0,e),z+=3}else{for(D(M,U,Y,z,void 0,e),z+=3,d=S,m=R,t=0;t<l.length/3;t++)c=r.Cartesian3.fromArray(l,3*t,c),q[j++]=d,q[j++]=m+t,q[j++]=m+t+1,n.CorridorGeometryLibrary.addAttribute(N,c,z),p=r.Cartesian3.fromArray(N,3*d,p),C=r.Cartesian3.fromArray(N,3*(m+t),C),Y=r.Cartesian3.normalize(r.Cartesian3.subtract(p,C,Y),Y),D(M,U,Y,z,void 0,e),z+=3;c=r.Cartesian3.fromArray(N,3*d,c),p=r.Cartesian3.subtract(r.Cartesian3.fromArray(N,3*(m+t),p),c,p),C=r.Cartesian3.subtract(r.Cartesian3.fromArray(N,3*m,C),c,C),Y=r.Cartesian3.normalize(r.Cartesian3.negate(r.Cartesian3.add(C,p,Y),Y),Y),D(M,U,Y,void 0,B,e),B-=3}for(Z=o[Q++],$=o[Q++],Z.splice(0,3),$.splice($.length-3,3),N.set(Z,z),N.set($,B-$.length+1),b=$.length-3,X+=3,Y=r.Cartesian3.fromArray(f,X,Y),t=0;t<$.length;t+=3)J=a.geodeticSurfaceNormal(r.Cartesian3.fromArray(Z,t,P),P),K=a.geodeticSurfaceNormal(r.Cartesian3.fromArray($,b-t,F),F),U=r.Cartesian3.normalize(r.Cartesian3.add(J,K,U),U),D(M,U,Y,z,B,e),R=z/3,I=R-1,S=(B-2)/3,O=S+1,q[j++]=O,q[j++]=I,q[j++]=S,q[j++]=S,q[j++]=I,q[j++]=R,z+=3,B-=3;z-=3,B+=3}if(U=r.Cartesian3.fromArray(y,y.length-3,U),D(M,U,Y,z,B,e),w){z+=3,B-=3,H=E,k=V;const t=c[1];for(h=0;h<W;h++)H=r.Cartesian3.fromArray(t,3*(v-h-1),H),k=r.Cartesian3.fromArray(t,3*h,k),n.CorridorGeometryLibrary.addAttribute(N,H,void 0,B),n.CorridorGeometryLibrary.addAttribute(N,k,z),D(M,U,Y,z,B,e),R=z/3,I=R-1,S=(B-2)/3,O=S+1,q[j++]=O,q[j++]=I,q[j++]=S,q[j++]=S,q[j++]=I,q[j++]=R,z+=3,B-=3}if(p.position=new l.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:N}),e.st){const t=new Float32Array(x/3*2);let e,r,a=0;if(w){C/=3,A/=3;const o=Math.PI/(v+1);let n;r=1/(C-v+1),e=1/(A-v+1);const s=v/2;for(h=s+1;h<v+1;h++)n=i.CesiumMath.PI_OVER_TWO+o*h,t[a++]=e*(1+Math.cos(n)),t[a++]=.5*(1+Math.sin(n));for(h=1;h<A-v+1;h++)t[a++]=h*e,t[a++]=0;for(h=v;h>s;h--)n=i.CesiumMath.PI_OVER_TWO-h*o,t[a++]=1-e*(1+Math.cos(n)),t[a++]=.5*(1+Math.sin(n));for(h=s;h>0;h--)n=i.CesiumMath.PI_OVER_TWO-o*h,t[a++]=1-r*(1+Math.cos(n)),t[a++]=.5*(1+Math.sin(n));for(h=C-v;h>0;h--)t[a++]=h*r,t[a++]=1;for(h=1;h<s+1;h++)n=i.CesiumMath.PI_OVER_TWO+o*h,t[a++]=r*(1+Math.cos(n)),t[a++]=.5*(1+Math.sin(n))}else{for(C/=3,A/=3,r=1/(C-1),e=1/(A-1),h=0;h<A;h++)t[a++]=h*e,t[a++]=0;for(h=C;h>0;h--)t[a++]=(h-1)*r,t[a++]=1}p.st=new l.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:t})}return e.normal&&(p.normal=new l.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:M.normals})),e.tangent&&(p.tangent=new l.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:M.tangents})),e.bitangent&&(p.bitangent=new l.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:M.bitangents})),{attributes:p,indices:q}}function O(t,e,r){r[e++]=t[0],r[e++]=t[1],r[e++]=t[2];for(let a=3;a<t.length;a+=3){const i=t[a],o=t[a+1],n=t[a+2];r[e++]=i,r[e++]=o,r[e++]=n,r[e++]=i,r[e++]=o,r[e++]=n}return r[e++]=t[0],r[e++]=t[1],r[e++]=t[2],r}function I(t,e){const a=new f.VertexFormat({position:e.position,normal:e.normal||e.bitangent||t.shadowVolume,tangent:e.tangent,bitangent:e.normal||e.bitangent,st:e.st}),o=t.ellipsoid,d=M(n.CorridorGeometryLibrary.computePositions(t),a,o),y=t.height,p=t.extrudedHeight;let g=d.attributes;const h=d.indices;let b=g.position.values,C=b.length;const A=new Float64Array(6*C);let _=new Float64Array(C);_.set(b);let w,v=new Float64Array(4*C);b=c.PolygonPipeline.scaleToGeodeticHeight(b,y,o),v=O(b,0,v),_=c.PolygonPipeline.scaleToGeodeticHeight(_,p,o),v=O(_,2*C,v),A.set(b),A.set(_,C),A.set(v,2*C),g.position.values=A,g=function(t,e){if(!(e.normal||e.tangent||e.bitangent||e.st))return t;const a=t.position.values;let i,o;(e.normal||e.bitangent)&&(i=t.normal.values,o=t.bitangent.values);const s=t.position.values.length/18,l=3*s,d=2*s,u=2*l;let m;if(e.normal||e.bitangent||e.tangent){const s=e.normal?new Float32Array(6*l):void 0,d=e.tangent?new Float32Array(6*l):void 0,c=e.bitangent?new Float32Array(6*l):void 0;let f=T,y=G,p=E,g=V,h=x,b=L,C=u;for(m=0;m<l;m+=3){const t=C+u;f=r.Cartesian3.fromArray(a,m,f),y=r.Cartesian3.fromArray(a,m+l,y),p=r.Cartesian3.fromArray(a,(m+3)%l,p),y=r.Cartesian3.subtract(y,f,y),p=r.Cartesian3.subtract(p,f,p),g=r.Cartesian3.normalize(r.Cartesian3.cross(y,p,g),g),e.normal&&(n.CorridorGeometryLibrary.addAttribute(s,g,t),n.CorridorGeometryLibrary.addAttribute(s,g,t+3),n.CorridorGeometryLibrary.addAttribute(s,g,C),n.CorridorGeometryLibrary.addAttribute(s,g,C+3)),(e.tangent||e.bitangent)&&(b=r.Cartesian3.fromArray(i,m,b),e.bitangent&&(n.CorridorGeometryLibrary.addAttribute(c,b,t),n.CorridorGeometryLibrary.addAttribute(c,b,t+3),n.CorridorGeometryLibrary.addAttribute(c,b,C),n.CorridorGeometryLibrary.addAttribute(c,b,C+3)),e.tangent&&(h=r.Cartesian3.normalize(r.Cartesian3.cross(b,g,h),h),n.CorridorGeometryLibrary.addAttribute(d,h,t),n.CorridorGeometryLibrary.addAttribute(d,h,t+3),n.CorridorGeometryLibrary.addAttribute(d,h,C),n.CorridorGeometryLibrary.addAttribute(d,h,C+3))),C+=6}if(e.normal){for(s.set(i),m=0;m<l;m+=3)s[m+l]=-i[m],s[m+l+1]=-i[m+1],s[m+l+2]=-i[m+2];t.normal.values=s}else t.normal=void 0;if(e.bitangent?(c.set(o),c.set(o,l),t.bitangent.values=c):t.bitangent=void 0,e.tangent){const e=t.tangent.values;d.set(e),d.set(e,l),t.tangent.values=d}}if(e.st){const e=t.st.values,r=new Float32Array(6*d);r.set(e),r.set(e,d);let a=2*d;for(let t=0;t<2;t++){for(r[a++]=e[0],r[a++]=e[1],m=2;m<d;m+=2){const t=e[m],i=e[m+1];r[a++]=t,r[a++]=i,r[a++]=t,r[a++]=i}r[a++]=e[0],r[a++]=e[1]}t.st.values=r}return t}(g,e);const P=C/3;if(t.shadowVolume){const t=g.normal.values;C=t.length;let r=new Float32Array(6*C);for(w=0;w<C;w++)t[w]=-t[w];r.set(t,C),r=O(t,4*C,r),g.extrudeDirection=new l.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:r}),e.normal||(g.normal=void 0)}if(s.defined(t.offsetAttribute)){let e=new Uint8Array(6*P);if(t.offsetAttribute===u.GeometryOffsetAttribute.TOP)e=e.fill(1,0,P).fill(1,2*P,4*P);else{const r=t.offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1;e=e.fill(r)}g.applyOffset=new l.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:e})}const F=h.length,N=P+P,D=m.IndexDatatype.createTypedArray(A.length/3,2*F+3*N);D.set(h);let I,S,R,k,H=F;for(w=0;w<F;w+=3){const t=h[w],e=h[w+1],r=h[w+2];D[H++]=r+P,D[H++]=e+P,D[H++]=t+P}for(w=0;w<N;w+=2)I=w+N,S=I+N,R=I+1,k=S+1,D[H++]=I,D[H++]=S,D[H++]=R,D[H++]=R,D[H++]=S,D[H++]=k;return{attributes:g,indices:D}}const S=new r.Cartesian3,R=new r.Cartesian3,k=new r.Cartographic;function H(t,e,a,i,o,n){const s=r.Cartesian3.subtract(e,t,S);r.Cartesian3.normalize(s,s);const l=a.geodeticSurfaceNormal(t,R),d=r.Cartesian3.cross(s,l,S);r.Cartesian3.multiplyByScalar(d,i,d);let u=o.latitude,m=o.longitude,c=n.latitude,f=n.longitude;r.Cartesian3.add(t,d,R),a.cartesianToCartographic(R,k);let y=k.latitude,p=k.longitude;u=Math.min(u,y),m=Math.min(m,p),c=Math.max(c,y),f=Math.max(f,p),r.Cartesian3.subtract(t,d,R),a.cartesianToCartographic(R,k),y=k.latitude,p=k.longitude,u=Math.min(u,y),m=Math.min(m,p),c=Math.max(c,y),f=Math.max(f,p),o.latitude=u,o.longitude=m,n.latitude=c,n.longitude=f}const z=new r.Cartesian3,B=new r.Cartesian3,U=new r.Cartographic,Y=new r.Cartographic;function W(e,a,i,n,l){e=N(e,a);const d=t.arrayRemoveDuplicates(e,r.Cartesian3.equalsEpsilon),u=d.length;if(u<2||i<=0)return new r.Rectangle;const m=.5*i;let c,f;if(U.latitude=Number.POSITIVE_INFINITY,U.longitude=Number.POSITIVE_INFINITY,Y.latitude=Number.NEGATIVE_INFINITY,Y.longitude=Number.NEGATIVE_INFINITY,n===o.CornerType.ROUNDED){const t=d[0];r.Cartesian3.subtract(t,d[1],z),r.Cartesian3.normalize(z,z),r.Cartesian3.multiplyByScalar(z,m,z),r.Cartesian3.add(t,z,B),a.cartesianToCartographic(B,k),c=k.latitude,f=k.longitude,U.latitude=Math.min(U.latitude,c),U.longitude=Math.min(U.longitude,f),Y.latitude=Math.max(Y.latitude,c),Y.longitude=Math.max(Y.longitude,f)}for(let t=0;t<u-1;++t)H(d[t],d[t+1],a,m,U,Y);const y=d[u-1];r.Cartesian3.subtract(y,d[u-2],z),r.Cartesian3.normalize(z,z),r.Cartesian3.multiplyByScalar(z,m,z),r.Cartesian3.add(y,z,B),H(y,B,a,m,U,Y),n===o.CornerType.ROUNDED&&(a.cartesianToCartographic(B,k),c=k.latitude,f=k.longitude,U.latitude=Math.min(U.latitude,c),U.longitude=Math.min(U.longitude,f),Y.latitude=Math.max(Y.latitude,c),Y.longitude=Math.max(Y.longitude,f));const p=s.defined(l)?l:new r.Rectangle;return p.north=Y.latitude,p.south=U.latitude,p.east=Y.longitude,p.west=U.longitude,p}function q(t){const e=(t=s.defaultValue(t,s.defaultValue.EMPTY_OBJECT)).positions,a=t.width,n=s.defaultValue(t.height,0),l=s.defaultValue(t.extrudedHeight,n);this._positions=e,this._ellipsoid=r.Ellipsoid.clone(s.defaultValue(t.ellipsoid,r.Ellipsoid.WGS84)),this._vertexFormat=f.VertexFormat.clone(s.defaultValue(t.vertexFormat,f.VertexFormat.DEFAULT)),this._width=a,this._height=Math.max(n,l),this._extrudedHeight=Math.min(n,l),this._cornerType=s.defaultValue(t.cornerType,o.CornerType.ROUNDED),this._granularity=s.defaultValue(t.granularity,i.CesiumMath.RADIANS_PER_DEGREE),this._shadowVolume=s.defaultValue(t.shadowVolume,!1),this._workerName="createCorridorGeometry",this._offsetAttribute=t.offsetAttribute,this._rectangle=void 0,this.packedLength=1+e.length*r.Cartesian3.packedLength+r.Ellipsoid.packedLength+f.VertexFormat.packedLength+7}q.pack=function(t,e,a){a=s.defaultValue(a,0);const i=t._positions,o=i.length;e[a++]=o;for(let t=0;t<o;++t,a+=r.Cartesian3.packedLength)r.Cartesian3.pack(i[t],e,a);return r.Ellipsoid.pack(t._ellipsoid,e,a),a+=r.Ellipsoid.packedLength,f.VertexFormat.pack(t._vertexFormat,e,a),a+=f.VertexFormat.packedLength,e[a++]=t._width,e[a++]=t._height,e[a++]=t._extrudedHeight,e[a++]=t._cornerType,e[a++]=t._granularity,e[a++]=t._shadowVolume?1:0,e[a]=s.defaultValue(t._offsetAttribute,-1),e};const j=r.Ellipsoid.clone(r.Ellipsoid.UNIT_SPHERE),J=new f.VertexFormat,K={positions:void 0,ellipsoid:j,vertexFormat:J,width:void 0,height:void 0,extrudedHeight:void 0,cornerType:void 0,granularity:void 0,shadowVolume:void 0,offsetAttribute:void 0};return q.unpack=function(t,e,a){e=s.defaultValue(e,0);const i=t[e++],o=new Array(i);for(let a=0;a<i;++a,e+=r.Cartesian3.packedLength)o[a]=r.Cartesian3.unpack(t,e);const n=r.Ellipsoid.unpack(t,e,j);e+=r.Ellipsoid.packedLength;const l=f.VertexFormat.unpack(t,e,J);e+=f.VertexFormat.packedLength;const d=t[e++],u=t[e++],m=t[e++],c=t[e++],y=t[e++],p=1===t[e++],g=t[e];return s.defined(a)?(a._positions=o,a._ellipsoid=r.Ellipsoid.clone(n,a._ellipsoid),a._vertexFormat=f.VertexFormat.clone(l,a._vertexFormat),a._width=d,a._height=u,a._extrudedHeight=m,a._cornerType=c,a._granularity=y,a._shadowVolume=p,a._offsetAttribute=-1===g?void 0:g,a):(K.positions=o,K.width=d,K.height=u,K.extrudedHeight=m,K.cornerType=c,K.granularity=y,K.shadowVolume=p,K.offsetAttribute=-1===g?void 0:g,new q(K))},q.computeRectangle=function(t,e){const a=(t=s.defaultValue(t,s.defaultValue.EMPTY_OBJECT)).positions,i=t.width;return W(a,s.defaultValue(t.ellipsoid,r.Ellipsoid.WGS84),i,s.defaultValue(t.cornerType,o.CornerType.ROUNDED),e)},q.createGeometry=function(a){let o=a._positions;const d=a._width,m=a._ellipsoid;o=N(o,m);const f=t.arrayRemoveDuplicates(o,r.Cartesian3.equalsEpsilon);if(f.length<2||d<=0)return;const y=a._height,p=a._extrudedHeight,g=!i.CesiumMath.equalsEpsilon(y,p,0,i.CesiumMath.EPSILON2),h=a._vertexFormat,b={ellipsoid:m,positions:f,width:d,cornerType:a._cornerType,granularity:a._granularity,saveAttributes:!0};let C;if(g)b.height=y,b.extrudedHeight=p,b.shadowVolume=a._shadowVolume,b.offsetAttribute=a._offsetAttribute,C=I(b,h);else if(C=M(n.CorridorGeometryLibrary.computePositions(b),h,m),C.attributes.position.values=c.PolygonPipeline.scaleToGeodeticHeight(C.attributes.position.values,y,m),s.defined(a._offsetAttribute)){const t=a._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,e=C.attributes.position.values.length,r=new Uint8Array(e/3).fill(t);C.attributes.applyOffset=new l.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})}const A=C.attributes,_=e.BoundingSphere.fromVertices(A.position.values,void 0,3);return h.position||(C.attributes.position.values=void 0),new l.Geometry({attributes:A,indices:C.indices,primitiveType:l.PrimitiveType.TRIANGLES,boundingSphere:_,offsetAttribute:a._offsetAttribute})},q.createShadowVolume=function(t,e,r){const a=t._granularity,i=t._ellipsoid,o=e(a,i),n=r(a,i);return new q({positions:t._positions,width:t._width,cornerType:t._cornerType,ellipsoid:i,granularity:a,extrudedHeight:o,height:n,vertexFormat:f.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(q.prototype,{rectangle:{get:function(){return s.defined(this._rectangle)||(this._rectangle=W(this._positions,this._ellipsoid,this._width,this._cornerType)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){return[0,0,0,1,1,0]}}}),function(t,e){return s.defined(e)&&(t=q.unpack(t,e)),t._ellipsoid=r.Ellipsoid.clone(t._ellipsoid),q.createGeometry(t)}}));
25
+ import{a as M}from"./chunk-YP4SXJYZ.js";import{a as ut}from"./chunk-LHBFSFJE.js";import"./chunk-6AEO73KW.js";import"./chunk-WGIRJIIK.js";import{a as bt}from"./chunk-ML6MR2RA.js";import{a as J}from"./chunk-AKELQO2L.js";import"./chunk-BDWA46XV.js";import"./chunk-5VFNV3LW.js";import{b as _t}from"./chunk-TCOMWBL2.js";import{a as Pt}from"./chunk-G2QPRBZU.js";import"./chunk-37ETYCYM.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.js";import{a as Nt}from"./chunk-4WQ4VT5S.js";import{a as Dt}from"./chunk-6EINM7EY.js";import{b as Mt,c as Ct,d as F}from"./chunk-A4I25VN7.js";import{c as St}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import{j as Et}from"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import{a as v}from"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{a as At,c as Y}from"./chunk-2AIOP76V.js";import{a as o,c as Tt}from"./chunk-IAE6APK2.js";import{a as it}from"./chunk-3E7FIXV7.js";import{b as ot}from"./chunk-NZBME2JK.js";import{f as Q}from"./chunk-6DLS2UKD.js";var Rt=new o,kt=new o,yt=new o,wt=new o,jt=new o,Ht=new o,st=new o,dt=new o;function Ut(t,e){for(let o=0;o<t.length;o++)t[o]=e.scaleToGeodeticSurface(t[o],t[o]);return t}function X(t,e,r,i,a,n){let s=t.normals,l=t.tangents,u=t.bitangents,d=o.normalize(o.cross(r,e,st),st);n.normal&&M.addAttribute(s,e,i,a),n.tangent&&M.addAttribute(l,d,i,a),n.bitangent&&M.addAttribute(u,r,i,a)}function Bt(t,e,r){let i,a,n,s=t.positions,l=t.corners,u=t.endPositions,d=t.lefts,m=t.normals,h=new Dt,c=0,f=0,g=0;for(a=0;a<s.length;a+=2)n=s[a].length-3,c+=n,g+=2*n,f+=s[a+1].length-3;for(c+=3,f+=3,a=0;a<l.length;a++){i=l[a];let t=l[a].leftPositions;Q(t)?(n=t.length,c+=n,g+=n):(n=l[a].rightPositions.length,f+=n,g+=n)}let p,A=Q(u);A&&(p=u[0].length-3,c+=p,f+=p,p/=3,g+=6*p);let y,b,_,w,T,I,k=c+f,E=new Float64Array(k),N={normals:e.normal?new Float32Array(k):void 0,tangents:e.tangent?new Float32Array(k):void 0,bitangents:e.bitangent?new Float32Array(k):void 0},O=0,x=k-1,P=Rt,G=kt,V=p/2,S=Nt.createTypedArray(k/3,g),j=0;if(A){I=yt,T=wt;let t=u[0];for(P=o.fromArray(m,0,P),G=o.fromArray(d,0,G),a=0;a<V;a++)I=o.fromArray(t,3*(V-1-a),I),T=o.fromArray(t,3*(V+a),T),M.addAttribute(E,T,O),M.addAttribute(E,I,void 0,x),X(N,P,G,O,x,e),b=O/3,w=b+1,y=(x-2)/3,_=y-1,S[j++]=y,S[j++]=b,S[j++]=_,S[j++]=_,S[j++]=b,S[j++]=w,O+=3,x-=3}let D,L,Y=0,W=0,J=s[Y++],R=s[Y++];for(E.set(J,O),E.set(R,x-R.length+1),G=o.fromArray(d,W,G),n=R.length-3,a=0;a<n;a+=3)D=r.geodeticSurfaceNormal(o.fromArray(J,a,st),st),L=r.geodeticSurfaceNormal(o.fromArray(R,n-a,dt),dt),P=o.normalize(o.add(D,L,P),P),X(N,P,G,O,x,e),b=O/3,w=b+1,y=(x-2)/3,_=y-1,S[j++]=y,S[j++]=b,S[j++]=_,S[j++]=_,S[j++]=b,S[j++]=w,O+=3,x-=3;for(D=r.geodeticSurfaceNormal(o.fromArray(J,n,st),st),L=r.geodeticSurfaceNormal(o.fromArray(R,n,dt),dt),P=o.normalize(o.add(D,L,P),P),W+=3,a=0;a<l.length;a++){let t;i=l[a];let u,h,c=i.leftPositions,f=i.rightPositions,g=Ht,p=yt,A=wt;if(P=o.fromArray(m,W,P),Q(c)){for(X(N,P,G,void 0,x,e),x-=3,u=w,h=_,t=0;t<c.length/3;t++)g=o.fromArray(c,3*t,g),S[j++]=u,S[j++]=h-t-1,S[j++]=h-t,M.addAttribute(E,g,void 0,x),p=o.fromArray(E,3*(h-t-1),p),A=o.fromArray(E,3*u,A),G=o.normalize(o.subtract(p,A,G),G),X(N,P,G,void 0,x,e),x-=3;g=o.fromArray(E,3*u,g),p=o.subtract(o.fromArray(E,3*h,p),g,p),A=o.subtract(o.fromArray(E,3*(h-t),A),g,A),G=o.normalize(o.add(p,A,G),G),X(N,P,G,O,void 0,e),O+=3}else{for(X(N,P,G,O,void 0,e),O+=3,u=_,h=w,t=0;t<f.length/3;t++)g=o.fromArray(f,3*t,g),S[j++]=u,S[j++]=h+t,S[j++]=h+t+1,M.addAttribute(E,g,O),p=o.fromArray(E,3*u,p),A=o.fromArray(E,3*(h+t),A),G=o.normalize(o.subtract(p,A,G),G),X(N,P,G,O,void 0,e),O+=3;g=o.fromArray(E,3*u,g),p=o.subtract(o.fromArray(E,3*(h+t),p),g,p),A=o.subtract(o.fromArray(E,3*h,A),g,A),G=o.normalize(o.negate(o.add(A,p,G),G),G),X(N,P,G,void 0,x,e),x-=3}for(J=s[Y++],R=s[Y++],J.splice(0,3),R.splice(R.length-3,3),E.set(J,O),E.set(R,x-R.length+1),n=R.length-3,W+=3,G=o.fromArray(d,W,G),t=0;t<R.length;t+=3)D=r.geodeticSurfaceNormal(o.fromArray(J,t,st),st),L=r.geodeticSurfaceNormal(o.fromArray(R,n-t,dt),dt),P=o.normalize(o.add(D,L,P),P),X(N,P,G,O,x,e),w=O/3,b=w-1,_=(x-2)/3,y=_+1,S[j++]=y,S[j++]=b,S[j++]=_,S[j++]=_,S[j++]=b,S[j++]=w,O+=3,x-=3;O-=3,x+=3}if(P=o.fromArray(m,m.length-3,P),X(N,P,G,O,x,e),A){O+=3,x-=3,I=yt,T=wt;let t=u[1];for(a=0;a<V;a++)I=o.fromArray(t,3*(p-a-1),I),T=o.fromArray(t,3*a,T),M.addAttribute(E,I,void 0,x),M.addAttribute(E,T,O),X(N,P,G,O,x,e),w=O/3,b=w-1,_=(x-2)/3,y=_+1,S[j++]=y,S[j++]=b,S[j++]=_,S[j++]=_,S[j++]=b,S[j++]=w,O+=3,x-=3}if(h.position=new F({componentDatatype:v.DOUBLE,componentsPerAttribute:3,values:E}),e.st){let t,e,o=new Float32Array(k/3*2),r=0;if(A){c/=3,f/=3;let i=Math.PI/(p+1);e=1/(c-p+1),t=1/(f-p+1);let n,s=p/2;for(a=s+1;a<p+1;a++)n=it.PI_OVER_TWO+i*a,o[r++]=t*(1+Math.cos(n)),o[r++]=.5*(1+Math.sin(n));for(a=1;a<f-p+1;a++)o[r++]=a*t,o[r++]=0;for(a=p;a>s;a--)n=it.PI_OVER_TWO-a*i,o[r++]=1-t*(1+Math.cos(n)),o[r++]=.5*(1+Math.sin(n));for(a=s;a>0;a--)n=it.PI_OVER_TWO-i*a,o[r++]=1-e*(1+Math.cos(n)),o[r++]=.5*(1+Math.sin(n));for(a=c-p;a>0;a--)o[r++]=a*e,o[r++]=1;for(a=1;a<s+1;a++)n=it.PI_OVER_TWO+i*a,o[r++]=e*(1+Math.cos(n)),o[r++]=.5*(1+Math.sin(n))}else{for(c/=3,f/=3,e=1/(c-1),t=1/(f-1),a=0;a<f;a++)o[r++]=a*t,o[r++]=0;for(a=c;a>0;a--)o[r++]=(a-1)*e,o[r++]=1}h.st=new F({componentDatatype:v.FLOAT,componentsPerAttribute:2,values:o})}return e.normal&&(h.normal=new F({componentDatatype:v.FLOAT,componentsPerAttribute:3,values:N.normals})),e.tangent&&(h.tangent=new F({componentDatatype:v.FLOAT,componentsPerAttribute:3,values:N.tangents})),e.bitangent&&(h.bitangent=new F({componentDatatype:v.FLOAT,componentsPerAttribute:3,values:N.bitangents})),{attributes:h,indices:S}}function qt(t,e){if(!(e.normal||e.tangent||e.bitangent||e.st))return t;let r,i,a=t.position.values;(e.normal||e.bitangent)&&(r=t.normal.values,i=t.bitangent.values);let n,s=t.position.values.length/18,l=3*s,u=2*s,d=2*l;if(e.normal||e.bitangent||e.tangent){let s=e.normal?new Float32Array(6*l):void 0,u=e.tangent?new Float32Array(6*l):void 0,m=e.bitangent?new Float32Array(6*l):void 0,h=Rt,c=kt,f=yt,g=wt,p=jt,A=Ht,y=d;for(n=0;n<l;n+=3){let t=y+d;h=o.fromArray(a,n,h),c=o.fromArray(a,n+l,c),f=o.fromArray(a,(n+3)%l,f),c=o.subtract(c,h,c),f=o.subtract(f,h,f),g=o.normalize(o.cross(c,f,g),g),e.normal&&(M.addAttribute(s,g,t),M.addAttribute(s,g,t+3),M.addAttribute(s,g,y),M.addAttribute(s,g,y+3)),(e.tangent||e.bitangent)&&(A=o.fromArray(r,n,A),e.bitangent&&(M.addAttribute(m,A,t),M.addAttribute(m,A,t+3),M.addAttribute(m,A,y),M.addAttribute(m,A,y+3)),e.tangent&&(p=o.normalize(o.cross(A,g,p),p),M.addAttribute(u,p,t),M.addAttribute(u,p,t+3),M.addAttribute(u,p,y),M.addAttribute(u,p,y+3))),y+=6}if(e.normal){for(s.set(r),n=0;n<l;n+=3)s[n+l]=-r[n],s[n+l+1]=-r[n+1],s[n+l+2]=-r[n+2];t.normal.values=s}else t.normal=void 0;if(e.bitangent?(m.set(i),m.set(i,l),t.bitangent.values=m):t.bitangent=void 0,e.tangent){let e=t.tangent.values;u.set(e),u.set(e,l),t.tangent.values=u}}if(e.st){let e=t.st.values,o=new Float32Array(6*u);o.set(e),o.set(e,u);let r=2*u;for(let t=0;t<2;t++){for(o[r++]=e[0],o[r++]=e[1],n=2;n<u;n+=2){let t=e[n],i=e[n+1];o[r++]=t,o[r++]=i,o[r++]=t,o[r++]=i}o[r++]=e[0],o[r++]=e[1]}t.st.values=o}return t}function Ot(t,e,o){o[e++]=t[0],o[e++]=t[1],o[e++]=t[2];for(let r=3;r<t.length;r+=3){let i=t[r],a=t[r+1],n=t[r+2];o[e++]=i,o[e++]=a,o[e++]=n,o[e++]=i,o[e++]=a,o[e++]=n}return o[e++]=t[0],o[e++]=t[1],o[e++]=t[2],o}function Jt(t,e){let o=new J({position:e.position,normal:e.normal||e.bitangent||t.shadowVolume,tangent:e.tangent,bitangent:e.normal||e.bitangent,st:e.st}),r=t.ellipsoid,i=Bt(M.computePositions(t),o,r),a=t.height,n=t.extrudedHeight,s=i.attributes,l=i.indices,u=s.position.values,d=u.length,m=new Float64Array(6*d),h=new Float64Array(d);h.set(u);let c=new Float64Array(4*d);u=_t.scaleToGeodeticHeight(u,a,r),c=Ot(u,0,c),h=_t.scaleToGeodeticHeight(h,n,r),c=Ot(h,2*d,c),m.set(u),m.set(h,d),m.set(c,2*d),s.position.values=m,s=qt(s,e);let f,g=d/3;if(t.shadowVolume){let t=s.normal.values;d=t.length;let o=new Float32Array(6*d);for(f=0;f<d;f++)t[f]=-t[f];o.set(t,d),o=Ot(t,4*d,o),s.extrudeDirection=new F({componentDatatype:v.FLOAT,componentsPerAttribute:3,values:o}),e.normal||(s.normal=void 0)}if(Q(t.offsetAttribute)){let e=new Uint8Array(6*g);if(t.offsetAttribute===bt.TOP)e=e.fill(1,0,g).fill(1,2*g,4*g);else{let o=t.offsetAttribute===bt.NONE?0:1;e=e.fill(o)}s.applyOffset=new F({componentDatatype:v.UNSIGNED_BYTE,componentsPerAttribute:1,values:e})}let p=l.length,A=g+g,y=Nt.createTypedArray(m.length/3,2*p+3*A);y.set(l);let b,_,w,T,I=p;for(f=0;f<p;f+=3){let t=l[f],e=l[f+1],o=l[f+2];y[I++]=o+g,y[I++]=e+g,y[I++]=t+g}for(f=0;f<A;f+=2)b=f+A,_=b+A,w=b+1,T=_+1,y[I++]=b,y[I++]=_,y[I++]=w,y[I++]=w,y[I++]=_,y[I++]=T;return{attributes:s,indices:y}}var Vt=new o,ht=new o,K=new At;function zt(t,e,r,i,a,n){let s=o.subtract(e,t,Vt);o.normalize(s,s);let l=r.geodeticSurfaceNormal(t,ht),u=o.cross(s,l,Vt);o.multiplyByScalar(u,i,u);let d=a.latitude,m=a.longitude,h=n.latitude,c=n.longitude;o.add(t,u,ht),r.cartesianToCartographic(ht,K);let f=K.latitude,g=K.longitude;d=Math.min(d,f),m=Math.min(m,g),h=Math.max(h,f),c=Math.max(c,g),o.subtract(t,u,ht),r.cartesianToCartographic(ht,K),f=K.latitude,g=K.longitude,d=Math.min(d,f),m=Math.min(m,g),h=Math.max(h,f),c=Math.max(c,g),a.latitude=d,a.longitude=m,n.latitude=h,n.longitude=c}var G=new o,gt=new o,I=new At,W=new At;function Yt(t,e,r,i,a){t=Ut(t,e);let n=Pt(t,o.equalsEpsilon),s=n.length;if(s<2||r<=0)return new Et;let l,u,d=.5*r;if(I.latitude=Number.POSITIVE_INFINITY,I.longitude=Number.POSITIVE_INFINITY,W.latitude=Number.NEGATIVE_INFINITY,W.longitude=Number.NEGATIVE_INFINITY,i===ut.ROUNDED){let t=n[0];o.subtract(t,n[1],G),o.normalize(G,G),o.multiplyByScalar(G,d,G),o.add(t,G,gt),e.cartesianToCartographic(gt,K),l=K.latitude,u=K.longitude,I.latitude=Math.min(I.latitude,l),I.longitude=Math.min(I.longitude,u),W.latitude=Math.max(W.latitude,l),W.longitude=Math.max(W.longitude,u)}for(let t=0;t<s-1;++t)zt(n[t],n[t+1],e,d,I,W);let m=n[s-1];o.subtract(m,n[s-2],G),o.normalize(G,G),o.multiplyByScalar(G,d,G),o.add(m,G,gt),zt(m,gt,e,d,I,W),i===ut.ROUNDED&&(e.cartesianToCartographic(gt,K),l=K.latitude,u=K.longitude,I.latitude=Math.min(I.latitude,l),I.longitude=Math.min(I.longitude,u),W.latitude=Math.max(W.latitude,l),W.longitude=Math.max(W.longitude,u));let h=Q(a)?a:new Et;return h.north=W.latitude,h.south=I.latitude,h.east=W.longitude,h.west=I.longitude,h}function tt(t){let e=(t=t??Tt.EMPTY_OBJECT).positions,r=t.width;ot.defined("options.positions",e),ot.defined("options.width",r);let i=t.height??0,a=t.extrudedHeight??i;this._positions=e,this._ellipsoid=Y.clone(t.ellipsoid??Y.default),this._vertexFormat=J.clone(t.vertexFormat??J.DEFAULT),this._width=r,this._height=Math.max(i,a),this._extrudedHeight=Math.min(i,a),this._cornerType=t.cornerType??ut.ROUNDED,this._granularity=t.granularity??it.RADIANS_PER_DEGREE,this._shadowVolume=t.shadowVolume??!1,this._workerName="createCorridorGeometry",this._offsetAttribute=t.offsetAttribute,this._rectangle=void 0,this.packedLength=1+e.length*o.packedLength+Y.packedLength+J.packedLength+7}tt.pack=function(t,e,r){ot.defined("value",t),ot.defined("array",e),r=r??0;let i=t._positions,a=i.length;e[r++]=a;for(let t=0;t<a;++t,r+=o.packedLength)o.pack(i[t],e,r);return Y.pack(t._ellipsoid,e,r),r+=Y.packedLength,J.pack(t._vertexFormat,e,r),r+=J.packedLength,e[r++]=t._width,e[r++]=t._height,e[r++]=t._extrudedHeight,e[r++]=t._cornerType,e[r++]=t._granularity,e[r++]=t._shadowVolume?1:0,e[r]=t._offsetAttribute??-1,e};var It=Y.clone(Y.UNIT_SPHERE),Wt=new J,x={positions:void 0,ellipsoid:It,vertexFormat:Wt,width:void 0,height:void 0,extrudedHeight:void 0,cornerType:void 0,granularity:void 0,shadowVolume:void 0,offsetAttribute:void 0};tt.unpack=function(t,e,r){ot.defined("array",t),e=e??0;let i=t[e++],a=new Array(i);for(let r=0;r<i;++r,e+=o.packedLength)a[r]=o.unpack(t,e);let n=Y.unpack(t,e,It);e+=Y.packedLength;let s=J.unpack(t,e,Wt);e+=J.packedLength;let l=t[e++],u=t[e++],d=t[e++],m=t[e++],h=t[e++],c=1===t[e++],f=t[e];return Q(r)?(r._positions=a,r._ellipsoid=Y.clone(n,r._ellipsoid),r._vertexFormat=J.clone(s,r._vertexFormat),r._width=l,r._height=u,r._extrudedHeight=d,r._cornerType=m,r._granularity=h,r._shadowVolume=c,r._offsetAttribute=-1===f?void 0:f,r):(x.positions=a,x.width=l,x.height=u,x.extrudedHeight=d,x.cornerType=m,x.granularity=h,x.shadowVolume=c,x.offsetAttribute=-1===f?void 0:f,new tt(x))},tt.computeRectangle=function(t,e){let o=(t=t??Tt.EMPTY_OBJECT).positions,r=t.width;return ot.defined("options.positions",o),ot.defined("options.width",r),Yt(o,t.ellipsoid??Y.default,r,t.cornerType??ut.ROUNDED,e)},tt.createGeometry=function(t){let e=t._positions,r=t._width,i=t._ellipsoid;e=Ut(e,i);let a=Pt(e,o.equalsEpsilon);if(a.length<2||r<=0)return;let n,s=t._height,l=t._extrudedHeight,u=!it.equalsEpsilon(s,l,0,it.EPSILON2),d=t._vertexFormat,m={ellipsoid:i,positions:a,width:r,cornerType:t._cornerType,granularity:t._granularity,saveAttributes:!0};if(u)m.height=s,m.extrudedHeight=l,m.shadowVolume=t._shadowVolume,m.offsetAttribute=t._offsetAttribute,n=Jt(m,d);else{if(n=Bt(M.computePositions(m),d,i),n.attributes.position.values=_t.scaleToGeodeticHeight(n.attributes.position.values,s,i),Q(t._offsetAttribute)){let e=t._offsetAttribute===bt.NONE?0:1,o=n.attributes.position.values.length,r=new Uint8Array(o/3).fill(e);n.attributes.applyOffset=new F({componentDatatype:v.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})}}let h=n.attributes,c=St.fromVertices(h.position.values,void 0,3);return d.position||(n.attributes.position.values=void 0),new Ct({attributes:h,indices:n.indices,primitiveType:Mt.TRIANGLES,boundingSphere:c,offsetAttribute:t._offsetAttribute})},tt.createShadowVolume=function(t,e,o){let r=t._granularity,i=t._ellipsoid,a=e(r,i),n=o(r,i);return new tt({positions:t._positions,width:t._width,cornerType:t._cornerType,ellipsoid:i,granularity:r,extrudedHeight:a,height:n,vertexFormat:J.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(tt.prototype,{rectangle:{get:function(){return Q(this._rectangle)||(this._rectangle=Yt(this._positions,this._ellipsoid,this._width,this._cornerType)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){return[0,0,0,1,1,0]}}});var Lt=tt;function Gt(t,e){return Q(e)&&(t=Lt.unpack(t,e)),t._ellipsoid=Y.clone(t._ellipsoid),Lt.createGeometry(t)}var Ae=Gt;export{Ae 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(["./arrayRemoveDuplicates-6f91355d","./Transforms-d3d3b2a9","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./PolylineVolumeGeometryLibrary-a4b92b4e","./CorridorGeometryLibrary-ab3e6481","./defaultValue-97284df2","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3","./PolygonPipeline-00dc0c6e","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./EllipsoidTangentPlane-7ae496b2","./AxisAlignedBoundingBox-b1c095aa","./IntersectionTests-33ace2d6","./Plane-e916220d","./PolylinePipeline-ebd42f23","./EllipsoidGeodesic-ed8a0e40","./EllipsoidRhumbLine-60f14314"],(function(e,t,i,r,o,n,s,a,l,d,u,p,f,c,h,y,g,b,m,A,_,E,C){"use strict";const G=new i.Cartesian3,T=new i.Cartesian3,P=new i.Cartesian3;function v(e,t){const r=[],u=e.positions,f=e.corners,c=e.endPositions,h=new d.GeometryAttributes;let y,g,b,m=0,A=0,_=0;for(g=0;g<u.length;g+=2)b=u[g].length-3,m+=b,_+=b/3*4,A+=u[g+1].length-3;for(m+=3,A+=3,g=0;g<f.length;g++){y=f[g];const e=f[g].leftPositions;a.defined(e)?(b=e.length,m+=b,_+=b/3*2):(b=f[g].rightPositions.length,A+=b,_+=b/3*2)}const E=a.defined(c);let C;E&&(C=c[0].length-3,m+=C,A+=C,C/=3,_+=4*C);const v=m+A,w=new Float64Array(v);let L,D,x,k,V,H,N=0,O=v-1;const I=C/2,S=p.IndexDatatype.createTypedArray(v/3,_+4);let B=0;if(S[B++]=N/3,S[B++]=(O-2)/3,E){r.push(N/3),H=G,V=T;const e=c[0];for(g=0;g<I;g++)H=i.Cartesian3.fromArray(e,3*(I-1-g),H),V=i.Cartesian3.fromArray(e,3*(I+g),V),s.CorridorGeometryLibrary.addAttribute(w,V,N),s.CorridorGeometryLibrary.addAttribute(w,H,void 0,O),D=N/3,k=D+1,L=(O-2)/3,x=L-1,S[B++]=L,S[B++]=x,S[B++]=D,S[B++]=k,N+=3,O-=3}let M=0,R=u[M++],U=u[M++];for(w.set(R,N),w.set(U,O-U.length+1),b=U.length-3,r.push(N/3,(O-2)/3),g=0;g<b;g+=3)D=N/3,k=D+1,L=(O-2)/3,x=L-1,S[B++]=L,S[B++]=x,S[B++]=D,S[B++]=k,N+=3,O-=3;for(g=0;g<f.length;g++){let e;y=f[g];const o=y.leftPositions,l=y.rightPositions;let d,p=P;if(a.defined(o)){for(O-=3,d=x,r.push(k),e=0;e<o.length/3;e++)p=i.Cartesian3.fromArray(o,3*e,p),S[B++]=d-e-1,S[B++]=d-e,s.CorridorGeometryLibrary.addAttribute(w,p,void 0,O),O-=3;r.push(d-Math.floor(o.length/6)),t===n.CornerType.BEVELED&&r.push((O-2)/3+1),N+=3}else{for(N+=3,d=k,r.push(x),e=0;e<l.length/3;e++)p=i.Cartesian3.fromArray(l,3*e,p),S[B++]=d+e,S[B++]=d+e+1,s.CorridorGeometryLibrary.addAttribute(w,p,N),N+=3;r.push(d+Math.floor(l.length/6)),t===n.CornerType.BEVELED&&r.push(N/3-1),O-=3}for(R=u[M++],U=u[M++],R.splice(0,3),U.splice(U.length-3,3),w.set(R,N),w.set(U,O-U.length+1),b=U.length-3,e=0;e<U.length;e+=3)k=N/3,D=k-1,x=(O-2)/3,L=x+1,S[B++]=L,S[B++]=x,S[B++]=D,S[B++]=k,N+=3,O-=3;N-=3,O+=3,r.push(N/3,(O-2)/3)}if(E){N+=3,O-=3,H=G,V=T;const e=c[1];for(g=0;g<I;g++)H=i.Cartesian3.fromArray(e,3*(C-g-1),H),V=i.Cartesian3.fromArray(e,3*g,V),s.CorridorGeometryLibrary.addAttribute(w,H,void 0,O),s.CorridorGeometryLibrary.addAttribute(w,V,N),k=N/3,D=k-1,x=(O-2)/3,L=x+1,S[B++]=L,S[B++]=x,S[B++]=D,S[B++]=k,N+=3,O-=3;r.push(N/3)}else r.push(N/3,(O-2)/3);return S[B++]=N/3,S[B++]=(O-2)/3,h.position=new l.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:w}),{attributes:h,indices:S,wallIndices:r}}function w(e){const t=(e=a.defaultValue(e,a.defaultValue.EMPTY_OBJECT)).positions,r=e.width,s=a.defaultValue(e.height,0),l=a.defaultValue(e.extrudedHeight,s);this._positions=t,this._ellipsoid=i.Ellipsoid.clone(a.defaultValue(e.ellipsoid,i.Ellipsoid.WGS84)),this._width=r,this._height=Math.max(s,l),this._extrudedHeight=Math.min(s,l),this._cornerType=a.defaultValue(e.cornerType,n.CornerType.ROUNDED),this._granularity=a.defaultValue(e.granularity,o.CesiumMath.RADIANS_PER_DEGREE),this._offsetAttribute=e.offsetAttribute,this._workerName="createCorridorOutlineGeometry",this.packedLength=1+t.length*i.Cartesian3.packedLength+i.Ellipsoid.packedLength+6}w.pack=function(e,t,r){r=a.defaultValue(r,0);const o=e._positions,n=o.length;t[r++]=n;for(let e=0;e<n;++e,r+=i.Cartesian3.packedLength)i.Cartesian3.pack(o[e],t,r);return i.Ellipsoid.pack(e._ellipsoid,t,r),r+=i.Ellipsoid.packedLength,t[r++]=e._width,t[r++]=e._height,t[r++]=e._extrudedHeight,t[r++]=e._cornerType,t[r++]=e._granularity,t[r]=a.defaultValue(e._offsetAttribute,-1),t};const L=i.Ellipsoid.clone(i.Ellipsoid.UNIT_SPHERE),D={positions:void 0,ellipsoid:L,width:void 0,height:void 0,extrudedHeight:void 0,cornerType:void 0,granularity:void 0,offsetAttribute:void 0};return w.unpack=function(e,t,r){t=a.defaultValue(t,0);const o=e[t++],n=new Array(o);for(let r=0;r<o;++r,t+=i.Cartesian3.packedLength)n[r]=i.Cartesian3.unpack(e,t);const s=i.Ellipsoid.unpack(e,t,L);t+=i.Ellipsoid.packedLength;const l=e[t++],d=e[t++],u=e[t++],p=e[t++],f=e[t++],c=e[t];return a.defined(r)?(r._positions=n,r._ellipsoid=i.Ellipsoid.clone(s,r._ellipsoid),r._width=l,r._height=d,r._extrudedHeight=u,r._cornerType=p,r._granularity=f,r._offsetAttribute=-1===c?void 0:c,r):(D.positions=n,D.width=l,D.height=d,D.extrudedHeight=u,D.cornerType=p,D.granularity=f,D.offsetAttribute=-1===c?void 0:c,new w(D))},w.createGeometry=function(r){let n=r._positions;const d=r._width,c=r._ellipsoid;n=function(e,t){for(let i=0;i<e.length;i++)e[i]=t.scaleToGeodeticSurface(e[i],e[i]);return e}(n,c);const h=e.arrayRemoveDuplicates(n,i.Cartesian3.equalsEpsilon);if(h.length<2||d<=0)return;const y=r._height,g=r._extrudedHeight,b=!o.CesiumMath.equalsEpsilon(y,g,0,o.CesiumMath.EPSILON2),m={ellipsoid:c,positions:h,width:d,cornerType:r._cornerType,granularity:r._granularity,saveAttributes:!1};let A;if(b)m.height=y,m.extrudedHeight=g,m.offsetAttribute=r._offsetAttribute,A=function(e){const t=e.ellipsoid,i=v(s.CorridorGeometryLibrary.computePositions(e),e.cornerType),r=i.wallIndices,n=e.height,d=e.extrudedHeight,c=i.attributes,h=i.indices;let y=c.position.values,g=y.length,b=new Float64Array(g);b.set(y);const m=new Float64Array(2*g);if(y=f.PolygonPipeline.scaleToGeodeticHeight(y,n,t),b=f.PolygonPipeline.scaleToGeodeticHeight(b,d,t),m.set(y),m.set(b,g),c.position.values=m,g/=3,a.defined(e.offsetAttribute)){let t=new Uint8Array(2*g);if(e.offsetAttribute===u.GeometryOffsetAttribute.TOP)t=t.fill(1,0,g);else{const i=e.offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1;t=t.fill(i)}c.applyOffset=new l.GeometryAttribute({componentDatatype:o.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:t})}let A;const _=h.length,E=p.IndexDatatype.createTypedArray(m.length/3,2*(_+r.length));E.set(h);let C,G,T=_;for(A=0;A<_;A+=2){const e=h[A],t=h[A+1];E[T++]=e+g,E[T++]=t+g}for(A=0;A<r.length;A++)C=r[A],G=C+g,E[T++]=C,E[T++]=G;return{attributes:c,indices:E}}(m);else if(A=v(s.CorridorGeometryLibrary.computePositions(m),m.cornerType),A.attributes.position.values=f.PolygonPipeline.scaleToGeodeticHeight(A.attributes.position.values,y,c),a.defined(r._offsetAttribute)){const e=A.attributes.position.values.length,t=r._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,i=new Uint8Array(e/3).fill(t);A.attributes.applyOffset=new l.GeometryAttribute({componentDatatype:o.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}const _=A.attributes,E=t.BoundingSphere.fromVertices(_.position.values,void 0,3);return new l.Geometry({attributes:_,indices:A.indices,primitiveType:l.PrimitiveType.LINES,boundingSphere:E,offsetAttribute:r._offsetAttribute})},function(e,t){return a.defined(t)&&(e=w.unpack(e,t)),e._ellipsoid=i.Ellipsoid.clone(e._ellipsoid),w.createGeometry(e)}}));
25
+ import{a as C}from"./chunk-YP4SXJYZ.js";import{a as Q}from"./chunk-LHBFSFJE.js";import"./chunk-6AEO73KW.js";import"./chunk-WGIRJIIK.js";import{a as J}from"./chunk-ML6MR2RA.js";import"./chunk-BDWA46XV.js";import"./chunk-5VFNV3LW.js";import{b as K}from"./chunk-TCOMWBL2.js";import{a as it}from"./chunk-G2QPRBZU.js";import"./chunk-37ETYCYM.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.js";import{a as X}from"./chunk-4WQ4VT5S.js";import{a as et}from"./chunk-6EINM7EY.js";import{b as I,c as tt,d as z}from"./chunk-A4I25VN7.js";import{c as x}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import{a as q}from"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{c as P}from"./chunk-2AIOP76V.js";import{a as A,c as $}from"./chunk-IAE6APK2.js";import{a as Y}from"./chunk-3E7FIXV7.js";import{b as B}from"./chunk-NZBME2JK.js";import{f as N}from"./chunk-6DLS2UKD.js";var ot=new A,nt=new A,lt=new A;function ft(t,e){for(let i=0;i<t.length;i++)t[i]=e.scaleToGeodeticSurface(t[i],t[i]);return t}function st(t,e){let i,r,o,s=[],n=t.positions,l=t.corners,a=t.endPositions,h=new et,u=0,p=0,c=0;for(r=0;r<n.length;r+=2)o=n[r].length-3,u+=o,c+=o/3*4,p+=n[r+1].length-3;for(u+=3,p+=3,r=0;r<l.length;r++){i=l[r];let t=l[r].leftPositions;N(t)?(o=t.length,u+=o,c+=o/3*2):(o=l[r].rightPositions.length,p+=o,c+=o/3*2)}let f,d=N(a);d&&(f=a[0].length-3,u+=f,p+=f,f/=3,c+=4*f);let g,m,y,_,b,k,v=u+p,E=new Float64Array(v),P=0,j=v-1,T=f/2,w=X.createTypedArray(v/3,c+4),O=0;if(w[O++]=P/3,w[O++]=(j-2)/3,d){s.push(P/3),k=ot,b=nt;let t=a[0];for(r=0;r<T;r++)k=A.fromArray(t,3*(T-1-r),k),b=A.fromArray(t,3*(T+r),b),C.addAttribute(E,b,P),C.addAttribute(E,k,void 0,j),m=P/3,_=m+1,g=(j-2)/3,y=g-1,w[O++]=g,w[O++]=y,w[O++]=m,w[O++]=_,P+=3,j-=3}let B=0,D=n[B++],M=n[B++];for(E.set(D,P),E.set(M,j-M.length+1),o=M.length-3,s.push(P/3,(j-2)/3),r=0;r<o;r+=3)m=P/3,_=m+1,g=(j-2)/3,y=g-1,w[O++]=g,w[O++]=y,w[O++]=m,w[O++]=_,P+=3,j-=3;for(r=0;r<l.length;r++){let t;i=l[r];let a,h=i.leftPositions,u=i.rightPositions,p=lt;if(N(h)){for(j-=3,a=y,s.push(_),t=0;t<h.length/3;t++)p=A.fromArray(h,3*t,p),w[O++]=a-t-1,w[O++]=a-t,C.addAttribute(E,p,void 0,j),j-=3;s.push(a-Math.floor(h.length/6)),e===Q.BEVELED&&s.push((j-2)/3+1),P+=3}else{for(P+=3,a=_,s.push(y),t=0;t<u.length/3;t++)p=A.fromArray(u,3*t,p),w[O++]=a+t,w[O++]=a+t+1,C.addAttribute(E,p,P),P+=3;s.push(a+Math.floor(u.length/6)),e===Q.BEVELED&&s.push(P/3-1),j-=3}for(D=n[B++],M=n[B++],D.splice(0,3),M.splice(M.length-3,3),E.set(D,P),E.set(M,j-M.length+1),o=M.length-3,t=0;t<M.length;t+=3)_=P/3,m=_-1,y=(j-2)/3,g=y+1,w[O++]=g,w[O++]=y,w[O++]=m,w[O++]=_,P+=3,j-=3;P-=3,j+=3,s.push(P/3,(j-2)/3)}if(d){P+=3,j-=3,k=ot,b=nt;let t=a[1];for(r=0;r<T;r++)k=A.fromArray(t,3*(f-r-1),k),b=A.fromArray(t,3*r,b),C.addAttribute(E,k,void 0,j),C.addAttribute(E,b,P),_=P/3,m=_-1,y=(j-2)/3,g=y+1,w[O++]=g,w[O++]=y,w[O++]=m,w[O++]=_,P+=3,j-=3;s.push(P/3)}else s.push(P/3,(j-2)/3);return w[O++]=P/3,w[O++]=(j-2)/3,h.position=new z({componentDatatype:q.DOUBLE,componentsPerAttribute:3,values:E}),{attributes:h,indices:w,wallIndices:s}}function ct(t){let e=t.ellipsoid,i=st(C.computePositions(t),t.cornerType),r=i.wallIndices,o=t.height,s=t.extrudedHeight,n=i.attributes,l=i.indices,a=n.position.values,h=a.length,u=new Float64Array(h);u.set(a);let p=new Float64Array(2*h);if(a=K.scaleToGeodeticHeight(a,o,e),u=K.scaleToGeodeticHeight(u,s,e),p.set(a),p.set(u,h),n.position.values=p,h/=3,N(t.offsetAttribute)){let e=new Uint8Array(2*h);if(t.offsetAttribute===J.TOP)e=e.fill(1,0,h);else{let i=t.offsetAttribute===J.NONE?0:1;e=e.fill(i)}n.applyOffset=new z({componentDatatype:q.UNSIGNED_BYTE,componentsPerAttribute:1,values:e})}let c,f=l.length,d=X.createTypedArray(p.length/3,2*(f+r.length));d.set(l);let A,g,m=f;for(c=0;c<f;c+=2){let t=l[c],e=l[c+1];d[m++]=t+h,d[m++]=e+h}for(c=0;c<r.length;c++)A=r[c],g=A+h,d[m++]=A,d[m++]=g;return{attributes:n,indices:d}}function M(t){let e=(t=t??$.EMPTY_OBJECT).positions,i=t.width;B.typeOf.object("options.positions",e),B.typeOf.number("options.width",i);let r=t.height??0,o=t.extrudedHeight??r;this._positions=e,this._ellipsoid=P.clone(t.ellipsoid??P.default),this._width=i,this._height=Math.max(r,o),this._extrudedHeight=Math.min(r,o),this._cornerType=t.cornerType??Q.ROUNDED,this._granularity=t.granularity??Y.RADIANS_PER_DEGREE,this._offsetAttribute=t.offsetAttribute,this._workerName="createCorridorOutlineGeometry",this.packedLength=1+e.length*A.packedLength+P.packedLength+6}M.pack=function(t,e,i){B.typeOf.object("value",t),B.typeOf.object("array",e),i=i??0;let r=t._positions,o=r.length;e[i++]=o;for(let t=0;t<o;++t,i+=A.packedLength)A.pack(r[t],e,i);return P.pack(t._ellipsoid,e,i),i+=P.packedLength,e[i++]=t._width,e[i++]=t._height,e[i++]=t._extrudedHeight,e[i++]=t._cornerType,e[i++]=t._granularity,e[i]=t._offsetAttribute??-1,e};var rt=P.clone(P.UNIT_SPHERE),v={positions:void 0,ellipsoid:rt,width:void 0,height:void 0,extrudedHeight:void 0,cornerType:void 0,granularity:void 0,offsetAttribute:void 0};M.unpack=function(t,e,i){B.typeOf.object("array",t),e=e??0;let r=t[e++],o=new Array(r);for(let i=0;i<r;++i,e+=A.packedLength)o[i]=A.unpack(t,e);let s=P.unpack(t,e,rt);e+=P.packedLength;let n=t[e++],l=t[e++],a=t[e++],h=t[e++],u=t[e++],p=t[e];return N(i)?(i._positions=o,i._ellipsoid=P.clone(s,i._ellipsoid),i._width=n,i._height=l,i._extrudedHeight=a,i._cornerType=h,i._granularity=u,i._offsetAttribute=-1===p?void 0:p,i):(v.positions=o,v.width=n,v.height=l,v.extrudedHeight=a,v.cornerType=h,v.granularity=u,v.offsetAttribute=-1===p?void 0:p,new M(v))},M.createGeometry=function(t){let e=t._positions,i=t._width,r=t._ellipsoid;e=ft(e,r);let o=it(e,A.equalsEpsilon);if(o.length<2||i<=0)return;let s,n=t._height,l=t._extrudedHeight,a=!Y.equalsEpsilon(n,l,0,Y.EPSILON2),h={ellipsoid:r,positions:o,width:i,cornerType:t._cornerType,granularity:t._granularity,saveAttributes:!1};if(a)h.height=n,h.extrudedHeight=l,h.offsetAttribute=t._offsetAttribute,s=ct(h);else{if(s=st(C.computePositions(h),h.cornerType),s.attributes.position.values=K.scaleToGeodeticHeight(s.attributes.position.values,n,r),N(t._offsetAttribute)){let e=s.attributes.position.values.length,i=t._offsetAttribute===J.NONE?0:1,r=new Uint8Array(e/3).fill(i);s.attributes.applyOffset=new z({componentDatatype:q.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})}}let u=s.attributes,p=x.fromVertices(u.position.values,void 0,3);return new tt({attributes:u,indices:s.indices,primitiveType:I.LINES,boundingSphere:p,offsetAttribute:t._offsetAttribute})};var Z=M;function ht(t,e){return N(e)&&(t=Z.unpack(t,e)),t._ellipsoid=P.clone(t._ellipsoid),Z.createGeometry(t)}var Ot=ht;export{Ot 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(["./CylinderGeometry-679e50b4","./defaultValue-97284df2","./Transforms-d3d3b2a9","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./CylinderGeometryLibrary-24ad1484","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3","./VertexFormat-9886cb81"],(function(e,t,r,a,n,o,d,i,m,y,f,b,u,s,c){"use strict";return function(r,a){return t.defined(a)&&(r=e.CylinderGeometry.unpack(r,a)),e.CylinderGeometry.createGeometry(r)}}));
25
+ import{a as r}from"./chunk-3N6OW3OY.js";import"./chunk-PEDE2P3Q.js";import"./chunk-ML6MR2RA.js";import"./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"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as o}from"./chunk-6DLS2UKD.js";function i(t,n){return o(n)&&(t=r.unpack(t,n)),r.createGeometry(t)}var a=i;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(["./Transforms-d3d3b2a9","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./CylinderGeometryLibrary-24ad1484","./defaultValue-97284df2","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2"],(function(t,e,i,n,o,r,a,s,u,f,d,l,c){"use strict";const m=new e.Cartesian2;function b(t){const e=(t=r.defaultValue(t,r.defaultValue.EMPTY_OBJECT)).length,i=t.topRadius,n=t.bottomRadius,o=r.defaultValue(t.slices,128),a=Math.max(r.defaultValue(t.numberOfVerticalLines,16),0);this._length=e,this._topRadius=i,this._bottomRadius=n,this._slices=o,this._numberOfVerticalLines=a,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderOutlineGeometry"}b.packedLength=6,b.pack=function(t,e,i){return i=r.defaultValue(i,0),e[i++]=t._length,e[i++]=t._topRadius,e[i++]=t._bottomRadius,e[i++]=t._slices,e[i++]=t._numberOfVerticalLines,e[i]=r.defaultValue(t._offsetAttribute,-1),e};const p={length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};return b.unpack=function(t,e,i){e=r.defaultValue(e,0);const n=t[e++],o=t[e++],a=t[e++],s=t[e++],u=t[e++],f=t[e];return r.defined(i)?(i._length=n,i._topRadius=o,i._bottomRadius=a,i._slices=s,i._numberOfVerticalLines=u,i._offsetAttribute=-1===f?void 0:f,i):(p.length=n,p.topRadius=o,p.bottomRadius=a,p.slices=s,p.numberOfVerticalLines=u,p.offsetAttribute=-1===f?void 0:f,new b(p))},b.createGeometry=function(i){let d=i._length;const l=i._topRadius,c=i._bottomRadius,b=i._slices,p=i._numberOfVerticalLines;if(d<=0||l<0||c<0||0===l&&0===c)return;const y=2*b,_=o.CylinderGeometryLibrary.computePositions(d,l,c,b,!1);let h,A=2*b;if(p>0){const t=Math.min(p,b);h=Math.round(b/t),A+=t}const R=f.IndexDatatype.createTypedArray(y,2*A);let G,O=0;for(G=0;G<b-1;G++)R[O++]=G,R[O++]=G+1,R[O++]=G+b,R[O++]=G+1+b;if(R[O++]=b-1,R[O++]=0,R[O++]=b+b-1,R[O++]=b,p>0)for(G=0;G<b;G+=h)R[O++]=G,R[O++]=G+b;const V=new s.GeometryAttributes;V.position=new a.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:_}),m.x=.5*d,m.y=Math.max(c,l);const L=new t.BoundingSphere(e.Cartesian3.ZERO,e.Cartesian2.magnitude(m));if(r.defined(i._offsetAttribute)){d=_.length;const t=i._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,e=new Uint8Array(d/3).fill(t);V.applyOffset=new a.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:e})}return new a.Geometry({attributes:V,indices:R,primitiveType:a.PrimitiveType.LINES,boundingSphere:L,offsetAttribute:i._offsetAttribute})},function(t,e){return r.defined(e)&&(t=b.unpack(t,e)),b.createGeometry(t)}}));
25
+ import{a as M}from"./chunk-PEDE2P3Q.js";import{a as L}from"./chunk-ML6MR2RA.js";import{a as N}from"./chunk-4WQ4VT5S.js";import{a as k}from"./chunk-6EINM7EY.js";import{b as D,c as P,d as A}from"./chunk-A4I25VN7.js";import{c as y}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import{a as R}from"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{b as _}from"./chunk-2AIOP76V.js";import{a as T,c as S}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{a as E,b as m}from"./chunk-NZBME2JK.js";import{f as b}from"./chunk-6DLS2UKD.js";var V=new _;function d(t){let e=(t=t??S.EMPTY_OBJECT).length,i=t.topRadius,o=t.bottomRadius,s=t.slices??128,r=Math.max(t.numberOfVerticalLines??16,0);if(m.typeOf.number("options.positions",e),m.typeOf.number("options.topRadius",i),m.typeOf.number("options.bottomRadius",o),m.typeOf.number.greaterThanOrEquals("options.slices",s,3),b(t.offsetAttribute)&&t.offsetAttribute===L.TOP)throw new E("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._length=e,this._topRadius=i,this._bottomRadius=o,this._slices=s,this._numberOfVerticalLines=r,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderOutlineGeometry"}d.packedLength=6,d.pack=function(t,e,i){return m.typeOf.object("value",t),m.defined("array",e),i=i??0,e[i++]=t._length,e[i++]=t._topRadius,e[i++]=t._bottomRadius,e[i++]=t._slices,e[i++]=t._numberOfVerticalLines,e[i]=t._offsetAttribute??-1,e};var p={length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};d.unpack=function(t,e,i){m.defined("array",t),e=e??0;let o=t[e++],s=t[e++],r=t[e++],n=t[e++],a=t[e++],u=t[e];return b(i)?(i._length=o,i._topRadius=s,i._bottomRadius=r,i._slices=n,i._numberOfVerticalLines=a,i._offsetAttribute=-1===u?void 0:u,i):(p.length=o,p.topRadius=s,p.bottomRadius=r,p.slices=n,p.numberOfVerticalLines=a,p.offsetAttribute=-1===u?void 0:u,new d(p))},d.createGeometry=function(t){let e=t._length,i=t._topRadius,o=t._bottomRadius,s=t._slices,r=t._numberOfVerticalLines;if(e<=0||i<0||o<0||0===i&&0===o)return;let n,a=2*s,u=M.computePositions(e,i,o,s,!1),f=2*s;if(r>0){let t=Math.min(r,s);n=Math.round(s/t),f+=t}let m,p=N.createTypedArray(a,2*f),c=0;for(m=0;m<s-1;m++)p[c++]=m,p[c++]=m+1,p[c++]=m+s,p[c++]=m+1+s;if(p[c++]=s-1,p[c++]=0,p[c++]=s+s-1,p[c++]=s,r>0)for(m=0;m<s;m+=n)p[c++]=m,p[c++]=m+s;let d=new k;d.position=new A({componentDatatype:R.DOUBLE,componentsPerAttribute:3,values:u}),V.x=.5*e,V.y=Math.max(o,i);let l=new y(T.ZERO,_.magnitude(V));if(b(t._offsetAttribute)){e=u.length;let i=t._offsetAttribute===L.NONE?0:1,o=new Uint8Array(e/3).fill(i);d.applyOffset=new A({componentDatatype:R.UNSIGNED_BYTE,componentsPerAttribute:1,values:o})}return new P({attributes:d,indices:p,primitiveType:D.LINES,boundingSphere:l,offsetAttribute:t._offsetAttribute})};var w=d;function G(t,e){return b(e)&&(t=w.unpack(t,e)),w.createGeometry(t)}var et=G;export{et 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","./defaultValue-97284df2","./EllipseGeometry-e6f948bb","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./Transforms-d3d3b2a9","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./EllipseGeometryLibrary-0adcaeed","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./GeometryInstance-4bfcfe78","./GeometryOffsetAttribute-59b14f45","./GeometryPipeline-a847e31f","./AttributeCompression-5744d52e","./EncodedCartesian3-a9a8a281","./IndexDatatype-65271ba3","./IntersectionTests-33ace2d6","./Plane-e916220d","./VertexFormat-9886cb81"],(function(e,t,r,a,n,o,i,s,d,l,c,f,m,b,p,u,y,G,E,C,_){"use strict";return function(a,n){return t.defined(n)&&(a=r.EllipseGeometry.unpack(a,n)),a._center=e.Cartesian3.clone(a._center),a._ellipsoid=e.Ellipsoid.clone(a._ellipsoid),r.EllipseGeometry.createGeometry(a)}}));
25
+ import{a as o}from"./chunk-DM7KUSL2.js";import"./chunk-P7N43FDO.js";import"./chunk-XRJOFXJF.js";import"./chunk-QNPYEODC.js";import"./chunk-G72JFEXW.js";import"./chunk-6W2XFGWI.js";import"./chunk-ML6MR2RA.js";import"./chunk-AKELQO2L.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.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{c}from"./chunk-2AIOP76V.js";import{a as t}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as n}from"./chunk-6DLS2UKD.js";function a(r,s){return n(s)&&(r=o.unpack(r,s)),r._center=t.clone(r._center),r._ellipsoid=c.clone(r._ellipsoid),o.createGeometry(r)}var u=a;export{u 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","./defaultValue-97284df2","./EllipseOutlineGeometry-418492dc","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./Transforms-d3d3b2a9","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./EllipseGeometryLibrary-0adcaeed","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3"],(function(e,t,r,i,n,a,o,l,d,s,u,c,f,m){"use strict";return function(i,n){return t.defined(n)&&(i=r.EllipseOutlineGeometry.unpack(i,n)),i._center=e.Cartesian3.clone(i._center),i._ellipsoid=e.Ellipsoid.clone(i._ellipsoid),r.EllipseOutlineGeometry.createGeometry(i)}}));
25
+ import{a as i}from"./chunk-QS7V5G6Y.js";import"./chunk-P7N43FDO.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{c}from"./chunk-2AIOP76V.js";import{a as t}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as o}from"./chunk-6DLS2UKD.js";function a(r,n){return o(n)&&(r=i.unpack(r,n)),r._center=t.clone(r._center),r._ellipsoid=c.clone(r._ellipsoid),i.createGeometry(r)}var p=a;export{p 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","./EllipsoidGeometry-539fb9e2","./Transforms-d3d3b2a9","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3","./VertexFormat-9886cb81"],(function(e,t,r,a,o,n,i,d,f,m,s,b,u,c){"use strict";return function(r,a){return e.defined(a)&&(r=t.EllipsoidGeometry.unpack(r,a)),t.EllipsoidGeometry.createGeometry(r)}}));
25
+ import{a as e}from"./chunk-5Z36UAB7.js";import"./chunk-ML6MR2RA.js";import"./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"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as o}from"./chunk-6DLS2UKD.js";function i(r,t){return o(t)&&(r=e.unpack(r,t)),e.createGeometry(r)}var a=i;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(["./defaultValue-97284df2","./EllipsoidOutlineGeometry-6c13760b","./Transforms-d3d3b2a9","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3"],(function(e,t,r,n,a,i,o,f,u,d,m,s,b){"use strict";return function(r,n){return e.defined(r.buffer)&&(r=t.EllipsoidOutlineGeometry.unpack(r,n)),t.EllipsoidOutlineGeometry.createGeometry(r)}}));
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"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as n}from"./chunk-6DLS2UKD.js";function u(r,u){return n(r.buffer,u)&&(r=t.unpack(r,u)),t.createGeometry(r)}var a=u;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(["./defaultValue-97284df2","./FrustumGeometry-be9b9578","./Transforms-d3d3b2a9","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./Plane-e916220d","./VertexFormat-9886cb81"],(function(e,t,r,a,n,o,u,m,d,s,f,b,i){"use strict";return function(r,a){return e.defined(a)&&(r=t.FrustumGeometry.unpack(r,a)),t.FrustumGeometry.createGeometry(r)}}));
25
+ import{c as r}from"./chunk-Z7Q4J7AE.js";import"./chunk-AKELQO2L.js";import"./chunk-5AAMOBJK.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"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import"./chunk-NZBME2JK.js";import{f as o}from"./chunk-6DLS2UKD.js";function i(t,c){return o(c)&&(t=r.unpack(t,c)),r.createGeometry(t)}var a=i;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(["./defaultValue-97284df2","./Transforms-d3d3b2a9","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./FrustumGeometry-be9b9578","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./Plane-e916220d","./VertexFormat-9886cb81"],(function(e,t,r,n,a,u,i,o,s,c,p,m,d){"use strict";function f(n){const a=n.frustum,i=n.orientation,o=n.origin,s=e.defaultValue(n._drawNearPlane,!0);let c,p;a instanceof u.PerspectiveFrustum?(c=0,p=u.PerspectiveFrustum.packedLength):a instanceof u.OrthographicFrustum&&(c=1,p=u.OrthographicFrustum.packedLength),this._frustumType=c,this._frustum=a.clone(),this._origin=r.Cartesian3.clone(o),this._orientation=t.Quaternion.clone(i),this._drawNearPlane=s,this._workerName="createFrustumOutlineGeometry",this.packedLength=2+p+r.Cartesian3.packedLength+t.Quaternion.packedLength}f.pack=function(n,a,i){i=e.defaultValue(i,0);const o=n._frustumType,s=n._frustum;return a[i++]=o,0===o?(u.PerspectiveFrustum.pack(s,a,i),i+=u.PerspectiveFrustum.packedLength):(u.OrthographicFrustum.pack(s,a,i),i+=u.OrthographicFrustum.packedLength),r.Cartesian3.pack(n._origin,a,i),i+=r.Cartesian3.packedLength,t.Quaternion.pack(n._orientation,a,i),a[i+=t.Quaternion.packedLength]=n._drawNearPlane?1:0,a};const h=new u.PerspectiveFrustum,l=new u.OrthographicFrustum,g=new t.Quaternion,_=new r.Cartesian3;return f.unpack=function(n,a,i){a=e.defaultValue(a,0);const o=n[a++];let s;0===o?(s=u.PerspectiveFrustum.unpack(n,a,h),a+=u.PerspectiveFrustum.packedLength):(s=u.OrthographicFrustum.unpack(n,a,l),a+=u.OrthographicFrustum.packedLength);const c=r.Cartesian3.unpack(n,a,_);a+=r.Cartesian3.packedLength;const p=t.Quaternion.unpack(n,a,g),m=1===n[a+=t.Quaternion.packedLength];if(!e.defined(i))return new f({frustum:s,origin:c,orientation:p,_drawNearPlane:m});const d=o===i._frustumType?i._frustum:void 0;return i._frustum=s.clone(d),i._frustumType=o,i._origin=r.Cartesian3.clone(c,i._origin),i._orientation=t.Quaternion.clone(p,i._orientation),i._drawNearPlane=m,i},f.createGeometry=function(e){const r=e._frustumType,n=e._frustum,s=e._origin,c=e._orientation,p=e._drawNearPlane,m=new Float64Array(24);u.FrustumGeometry._computeNearFarPlanes(s,c,r,n,m);const d=new o.GeometryAttributes({position:new i.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:m})});let f,h;const l=p?2:1,g=new Uint16Array(8*(l+1));let _=p?0:1;for(;_<2;++_)f=p?8*_:0,h=4*_,g[f]=h,g[f+1]=h+1,g[f+2]=h+1,g[f+3]=h+2,g[f+4]=h+2,g[f+5]=h+3,g[f+6]=h+3,g[f+7]=h;for(_=0;_<2;++_)f=8*(l+_),h=4*_,g[f]=h,g[f+1]=h+4,g[f+2]=h+1,g[f+3]=h+5,g[f+4]=h+2,g[f+5]=h+6,g[f+6]=h+3,g[f+7]=h+7;return new i.Geometry({attributes:d,indices:g,primitiveType:i.PrimitiveType.LINES,boundingSphere:t.BoundingSphere.fromVertices(m)})},function(t,r){return e.defined(r)&&(t=f.unpack(t,r)),f.createGeometry(t)}}));
25
+ import{a as k,b as _,c as A}from"./chunk-Z7Q4J7AE.js";import"./chunk-AKELQO2L.js";import"./chunk-5AAMOBJK.js";import{a as F}from"./chunk-6EINM7EY.js";import{b,c as N,d as g}from"./chunk-A4I25VN7.js";import{c as y}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import{h as s}from"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import{a as T}from"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import"./chunk-2AIOP76V.js";import{a}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{b as h}from"./chunk-NZBME2JK.js";import{f as w}from"./chunk-6DLS2UKD.js";var d=0,j=1;function P(e){h.typeOf.object("options",e),h.typeOf.object("options.frustum",e.frustum),h.typeOf.object("options.origin",e.origin),h.typeOf.object("options.orientation",e.orientation);let t,n,r=e.frustum,o=e.orientation,i=e.origin,u=e._drawNearPlane??!0;r instanceof _?(t=d,n=_.packedLength):r instanceof k&&(t=j,n=k.packedLength),this._frustumType=t,this._frustum=r.clone(),this._origin=a.clone(i),this._orientation=s.clone(o),this._drawNearPlane=u,this._workerName="createFrustumOutlineGeometry",this.packedLength=2+n+a.packedLength+s.packedLength}P.pack=function(e,t,n){h.typeOf.object("value",e),h.defined("array",t),n=n??0;let r=e._frustumType,o=e._frustum;return t[n++]=r,r===d?(_.pack(o,t,n),n+=_.packedLength):(k.pack(o,t,n),n+=k.packedLength),a.pack(e._origin,t,n),n+=a.packedLength,s.pack(e._orientation,t,n),t[n+=s.packedLength]=e._drawNearPlane?1:0,t};var C=new _,E=new k,G=new s,R=new a;P.unpack=function(e,t,n){h.defined("array",e),t=t??0;let r,o=e[t++];o===d?(r=_.unpack(e,t,C),t+=_.packedLength):(r=k.unpack(e,t,E),t+=k.packedLength);let i=a.unpack(e,t,R);t+=a.packedLength;let u=s.unpack(e,t,G),c=1===e[t+=s.packedLength];if(!w(n))return new P({frustum:r,origin:i,orientation:u,_drawNearPlane:c});let p=o===n._frustumType?n._frustum:void 0;return n._frustum=r.clone(p),n._frustumType=o,n._origin=a.clone(i,n._origin),n._orientation=s.clone(u,n._orientation),n._drawNearPlane=c,n},P.createGeometry=function(e){let t=e._frustumType,n=e._frustum,r=e._origin,a=e._orientation,o=e._drawNearPlane,i=new Float64Array(24);A._computeNearFarPlanes(r,a,t,n,i);let s,u,c=new F({position:new g({componentDatatype:T.DOUBLE,componentsPerAttribute:3,values:i})}),p=o?2:1,k=new Uint16Array(8*(p+1)),m=o?0:1;for(;m<2;++m)s=o?8*m:0,u=4*m,k[s]=u,k[s+1]=u+1,k[s+2]=u+1,k[s+3]=u+2,k[s+4]=u+2,k[s+5]=u+3,k[s+6]=u+3,k[s+7]=u;for(m=0;m<2;++m)s=8*(p+m),u=4*m,k[s]=u,k[s+1]=u+4,k[s+2]=u+1,k[s+3]=u+5,k[s+4]=u+2,k[s+5]=u+6,k[s+6]=u+3,k[s+7]=u+7;return new N({attributes:c,indices:k,primitiveType:b.LINES,boundingSphere:y.fromVertices(i)})};var L=P;function S(e,t){return w(t)&&(e=L.unpack(e,t)),L.createGeometry(e)}var $=S;export{$ 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","./PrimitivePipeline-42d69f96","./createTaskProcessorWorker","./Transforms-d3d3b2a9","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./GeometryPipeline-a847e31f","./AttributeCompression-5744d52e","./EncodedCartesian3-a9a8a281","./IndexDatatype-65271ba3","./IntersectionTests-33ace2d6","./Plane-e916220d","./WebMercatorProjection-04ef6bc3"],(function(e,t,r,n,o,a,i,s,c,f,d,u,m,l,b,p,y,P,k){"use strict";const C={};function G(t){let r=C[t];return e.defined(r)||("object"==typeof exports?C[r]=r=require(`Workers/${t}`):require([`Workers/${t}`],(function(e){r=e,C[r]=e}))),r}return r((function(r,n){const o=r.subTasks,a=o.length,i=new Array(a);for(let t=0;t<a;t++){const r=o[t],n=r.geometry,a=r.moduleName;if(e.defined(a)){const e=G(a);i[t]=e(n,r.offset)}else i[t]=n}return Promise.all(i).then((function(e){return t.PrimitivePipeline.packCreateGeometryResults(e,n)}))}))}));
25
+ import{a as k}from"./chunk-5DGDPBQU.js";import{a as w}from"./chunk-BKIYVF74.js";import"./chunk-LN2UT4R3.js";import"./chunk-QNPYEODC.js";import"./chunk-G72JFEXW.js";import"./chunk-6W2XFGWI.js";import"./chunk-SRA5MBUT.js";import"./chunk-5AAMOBJK.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"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{a as y}from"./chunk-NZBME2JK.js";import{a,b as p,f as r}from"./chunk-6DLS2UKD.js";var g=p({"./combineGeometry.js":()=>import("./combineGeometry.js"),"./createBoxGeometry.js":()=>import("./createBoxGeometry.js"),"./createBoxOutlineGeometry.js":()=>import("./createBoxOutlineGeometry.js"),"./createCircleGeometry.js":()=>import("./createCircleGeometry.js"),"./createCircleOutlineGeometry.js":()=>import("./createCircleOutlineGeometry.js"),"./createCoplanarPolygonGeometry.js":()=>import("./createCoplanarPolygonGeometry.js"),"./createCoplanarPolygonOutlineGeometry.js":()=>import("./createCoplanarPolygonOutlineGeometry.js"),"./createCorridorGeometry.js":()=>import("./createCorridorGeometry.js"),"./createCorridorOutlineGeometry.js":()=>import("./createCorridorOutlineGeometry.js"),"./createCylinderGeometry.js":()=>import("./createCylinderGeometry.js"),"./createCylinderOutlineGeometry.js":()=>import("./createCylinderOutlineGeometry.js"),"./createEllipseGeometry.js":()=>import("./createEllipseGeometry.js"),"./createEllipseOutlineGeometry.js":()=>import("./createEllipseOutlineGeometry.js"),"./createEllipsoidGeometry.js":()=>import("./createEllipsoidGeometry.js"),"./createEllipsoidOutlineGeometry.js":()=>import("./createEllipsoidOutlineGeometry.js"),"./createFrustumGeometry.js":()=>import("./createFrustumGeometry.js"),"./createFrustumOutlineGeometry.js":()=>import("./createFrustumOutlineGeometry.js"),"./createGeometry.js":()=>import("./createGeometry.js"),"./createGroundPolylineGeometry.js":()=>import("./createGroundPolylineGeometry.js"),"./createPlaneGeometry.js":()=>import("./createPlaneGeometry.js"),"./createPlaneOutlineGeometry.js":()=>import("./createPlaneOutlineGeometry.js"),"./createPolygonGeometry.js":()=>import("./createPolygonGeometry.js"),"./createPolygonOutlineGeometry.js":()=>import("./createPolygonOutlineGeometry.js"),"./createPolylineGeometry.js":()=>import("./createPolylineGeometry.js"),"./createPolylineVolumeGeometry.js":()=>import("./createPolylineVolumeGeometry.js"),"./createPolylineVolumeOutlineGeometry.js":()=>import("./createPolylineVolumeOutlineGeometry.js"),"./createRectangleGeometry.js":()=>import("./createRectangleGeometry.js"),"./createRectangleOutlineGeometry.js":()=>import("./createRectangleOutlineGeometry.js"),"./createSimplePolylineGeometry.js":()=>import("./createSimplePolylineGeometry.js"),"./createSphereGeometry.js":()=>import("./createSphereGeometry.js"),"./createSphereOutlineGeometry.js":()=>import("./createSphereOutlineGeometry.js"),"./createTaskProcessorWorker.js":()=>import("./createTaskProcessorWorker.js"),"./createVectorTileClampedPolylines.js":()=>import("./createVectorTileClampedPolylines.js"),"./createVectorTileGeometries.js":()=>import("./createVectorTileGeometries.js"),"./createVectorTilePoints.js":()=>import("./createVectorTilePoints.js"),"./createVectorTilePolygons.js":()=>import("./createVectorTilePolygons.js"),"./createVectorTilePolylines.js":()=>import("./createVectorTilePolylines.js"),"./createVerticesFromCesium3DTilesTerrain.js":()=>import("./createVerticesFromCesium3DTilesTerrain.js"),"./createVerticesFromGoogleEarthEnterpriseBuffer.js":()=>import("./createVerticesFromGoogleEarthEnterpriseBuffer.js"),"./createVerticesFromHeightmap.js":()=>import("./createVerticesFromHeightmap.js"),"./createVerticesFromQuantizedTerrainMesh.js":()=>import("./createVerticesFromQuantizedTerrainMesh.js"),"./createWallGeometry.js":()=>import("./createWallGeometry.js"),"./createWallOutlineGeometry.js":()=>import("./createWallOutlineGeometry.js"),"./decodeDraco.js":()=>import("./decodeDraco.js"),"./decodeGoogleEarthEnterprisePacket.js":()=>import("./decodeGoogleEarthEnterprisePacket.js"),"./decodeI3S.js":()=>import("./decodeI3S.js"),"./gaussianSplatSorter.js":()=>import("./gaussianSplatSorter.js"),"./gaussianSplatTextureGenerator.js":()=>import("./gaussianSplatTextureGenerator.js"),"./incrementallyBuildTerrainPicker.js":()=>import("./incrementallyBuildTerrainPicker.js"),"./transcodeKTX2.js":()=>import("./transcodeKTX2.js"),"./transferTypedArrayTest.js":()=>import("./transferTypedArrayTest.js"),"./upsampleQuantizedTerrainMesh.js":()=>import("./upsampleQuantizedTerrainMesh.js"),"./upsampleVerticesFromCesium3DTilesTerrain.js":()=>import("./upsampleVerticesFromCesium3DTilesTerrain.js")}),c={};async function b(e,t){let o=c[t]??c[e];return r(o)?o:r(t)?(o="object"==typeof exports?a(t):(await import(t)).default,c[t]=o,o):(o="object"==typeof exports?a(`Workers/${e}`):(r(t)?await import(t):await g(`./${e}.js`)).default,c[e]=o,o)}async function h(e,t){let o=e.subTasks,s=o.length,i=new Array(s);for(let e=0;e<s;e++){let t=o[e],s=t.geometry,m=t.moduleName,a=t.modulePath;if(r(m)&&r(a))throw new y("Must only set moduleName or modulePath");r(m)||r(a)?i[e]=b(m,a).then((e=>e(s,t.offset))):i[e]=s}return Promise.all(i).then((function(e){return k.packCreateGeometryResults(e,t)}))}var G=w(h);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(["./Transforms-d3d3b2a9","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./defaultValue-97284df2","./ComponentDatatype-e7fbe225","./ArcType-de5d8777","./arrayRemoveDuplicates-6f91355d","./EllipsoidGeodesic-ed8a0e40","./EllipsoidRhumbLine-60f14314","./EncodedCartesian3-a9a8a281","./GeometryAttribute-fd1d7e90","./IntersectionTests-33ace2d6","./Plane-e916220d","./WebMercatorProjection-04ef6bc3","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2"],(function(e,t,a,n,i,r,s,o,l,c,u,C,d,p,h,g,f){"use strict";function m(a){a=n.defaultValue(a,n.defaultValue.EMPTY_OBJECT),this._ellipsoid=n.defaultValue(a.ellipsoid,t.Ellipsoid.WGS84),this._rectangle=n.defaultValue(a.rectangle,t.Rectangle.MAX_VALUE),this._projection=new e.GeographicProjection(this._ellipsoid),this._numberOfLevelZeroTilesX=n.defaultValue(a.numberOfLevelZeroTilesX,2),this._numberOfLevelZeroTilesY=n.defaultValue(a.numberOfLevelZeroTilesY,1)}Object.defineProperties(m.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),m.prototype.getNumberOfXTilesAtLevel=function(e){return this._numberOfLevelZeroTilesX<<e},m.prototype.getNumberOfYTilesAtLevel=function(e){return this._numberOfLevelZeroTilesY<<e},m.prototype.rectangleToNativeRectangle=function(e,a){const r=i.CesiumMath.toDegrees(e.west),s=i.CesiumMath.toDegrees(e.south),o=i.CesiumMath.toDegrees(e.east),l=i.CesiumMath.toDegrees(e.north);return n.defined(a)?(a.west=r,a.south=s,a.east=o,a.north=l,a):new t.Rectangle(r,s,o,l)},m.prototype.tileXYToNativeRectangle=function(e,t,a,n){const r=this.tileXYToRectangle(e,t,a,n);return r.west=i.CesiumMath.toDegrees(r.west),r.south=i.CesiumMath.toDegrees(r.south),r.east=i.CesiumMath.toDegrees(r.east),r.north=i.CesiumMath.toDegrees(r.north),r},m.prototype.tileXYToRectangle=function(e,a,i,r){const s=this._rectangle,o=this.getNumberOfXTilesAtLevel(i),l=this.getNumberOfYTilesAtLevel(i),c=s.width/o,u=e*c+s.west,C=(e+1)*c+s.west,d=s.height/l,p=s.north-a*d,h=s.north-(a+1)*d;return n.defined(r)||(r=new t.Rectangle(u,h,C,p)),r.west=u,r.south=h,r.east=C,r.north=p,r},m.prototype.positionToTileXY=function(e,a,r){const s=this._rectangle;if(!t.Rectangle.contains(s,e))return;const o=this.getNumberOfXTilesAtLevel(a),l=this.getNumberOfYTilesAtLevel(a),c=s.width/o,u=s.height/l;let C=e.longitude;s.east<s.west&&(C+=i.CesiumMath.TWO_PI);let d=(C-s.west)/c|0;d>=o&&(d=o-1);let p=(s.north-e.latitude)/u|0;return p>=l&&(p=l-1),n.defined(r)?(r.x=d,r.y=p,r):new t.Cartesian2(d,p)};const w=new t.Cartesian3,y=new t.Cartesian3,M=new t.Cartographic,T=new t.Cartesian3,E=new t.Cartesian3,_=new e.BoundingSphere,O=new m,P=[new t.Cartographic,new t.Cartographic,new t.Cartographic,new t.Cartographic],b=new t.Cartesian2,A={};function k(e){t.Cartographic.fromRadians(e.east,e.north,0,P[0]),t.Cartographic.fromRadians(e.west,e.north,0,P[1]),t.Cartographic.fromRadians(e.east,e.south,0,P[2]),t.Cartographic.fromRadians(e.west,e.south,0,P[3]);let a=0,n=0,i=0,r=0;const s=A._terrainHeightsMaxLevel;let o;for(o=0;o<=s;++o){let e=!1;for(let t=0;t<4;++t){const a=P[t];if(O.positionToTileXY(a,o,b),0===t)i=b.x,r=b.y;else if(i!==b.x||r!==b.y){e=!0;break}}if(e)break;a=i,n=r}if(0!==o)return{x:a,y:n,level:o>s?s:o-1}}A.initialize=function(){let t=A._initPromise;return n.defined(t)||(t=e.Resource.fetchJson(e.buildModuleUrl("Assets/approximateTerrainHeights.json")).then((function(e){A._terrainHeights=e})),A._initPromise=t),t},A.getMinimumMaximumHeights=function(e,a){a=n.defaultValue(a,t.Ellipsoid.WGS84);const i=k(e);let r=A._defaultMinTerrainHeight,s=A._defaultMaxTerrainHeight;if(n.defined(i)){const o=`${i.level}-${i.x}-${i.y}`,l=A._terrainHeights[o];n.defined(l)&&(r=l[0],s=l[1]),a.cartographicToCartesian(t.Rectangle.northeast(e,M),w),a.cartographicToCartesian(t.Rectangle.southwest(e,M),y),t.Cartesian3.midpoint(y,w,T);const c=a.scaleToGeodeticSurface(T,E);if(n.defined(c)){const e=t.Cartesian3.distance(T,c);r=Math.min(r,-e)}else r=A._defaultMinTerrainHeight}return r=Math.max(A._defaultMinTerrainHeight,r),{minimumTerrainHeight:r,maximumTerrainHeight:s}},A.getBoundingSphere=function(a,i){i=n.defaultValue(i,t.Ellipsoid.WGS84);const r=k(a);let s=A._defaultMaxTerrainHeight;if(n.defined(r)){const e=`${r.level}-${r.x}-${r.y}`,t=A._terrainHeights[e];n.defined(t)&&(s=t[1])}const o=e.BoundingSphere.fromRectangle3D(a,i,0);return e.BoundingSphere.fromRectangle3D(a,i,s,_),e.BoundingSphere.union(o,_,o)},A._terrainHeightsMaxLevel=6,A._defaultMaxTerrainHeight=9e3,A._defaultMinTerrainHeight=-1e5,A._terrainHeights=void 0,A._initPromise=void 0,Object.defineProperties(A,{initialized:{get:function(){return n.defined(A._terrainHeights)}}});const L=[e.GeographicProjection,p.WebMercatorProjection],S=L.length,x=Math.cos(i.CesiumMath.toRadians(30)),I=Math.cos(i.CesiumMath.toRadians(150));function N(e){const a=(e=n.defaultValue(e,n.defaultValue.EMPTY_OBJECT)).positions;this.width=n.defaultValue(e.width,1),this._positions=a,this.granularity=n.defaultValue(e.granularity,9999),this.loop=n.defaultValue(e.loop,!1),this.arcType=n.defaultValue(e.arcType,r.ArcType.GEODESIC),this._ellipsoid=t.Ellipsoid.WGS84,this._projectionIndex=0,this._workerName="createGroundPolylineGeometry",this._scene3DOnly=!1}Object.defineProperties(N.prototype,{packedLength:{get:function(){return 1+3*this._positions.length+1+1+1+t.Ellipsoid.packedLength+1+1}}}),N.setProjectionAndEllipsoid=function(e,t){let a=0;for(let e=0;e<S;e++)if(t instanceof L[e]){a=e;break}e._projectionIndex=a,e._ellipsoid=t.ellipsoid};const R=new t.Cartesian3,D=new t.Cartesian3,v=new t.Cartesian3;function z(e,a,n,i,r){const s=F(i,e,0,R),o=F(i,e,n,D),l=F(i,a,0,v),c=q(o,s,D),u=q(l,s,v);return t.Cartesian3.cross(u,c,r),t.Cartesian3.normalize(r,r)}const H=new t.Cartographic,j=new t.Cartesian3,B=new t.Cartesian3,V=new t.Cartesian3;function G(e,a,n,i,s,c,u,C,d,p,h){if(0===s)return;let g;c===r.ArcType.GEODESIC?g=new o.EllipsoidGeodesic(e,a,u):c===r.ArcType.RHUMB&&(g=new l.EllipsoidRhumbLine(e,a,u));const f=g.surfaceDistance;if(f<s)return;const m=z(e,a,i,u,V),w=Math.ceil(f/s),y=f/w;let M=y;const T=w-1;let E=C.length;for(let e=0;e<T;e++){const e=g.interpolateUsingSurfaceDistance(M,H),a=F(u,e,n,j),r=F(u,e,i,B);t.Cartesian3.pack(m,C,E),t.Cartesian3.pack(a,d,E),t.Cartesian3.pack(r,p,E),h.push(e.latitude),h.push(e.longitude),E+=3,M+=y}}const Y=new t.Cartographic;function F(e,a,n,i){return t.Cartographic.clone(a,Y),Y.height=n,t.Cartographic.toCartesian(Y,e,i)}function q(e,a,n){return t.Cartesian3.subtract(e,a,n),t.Cartesian3.normalize(n,n),n}function X(e,a,n,i){return i=q(e,a,i),i=t.Cartesian3.cross(i,n,i),i=t.Cartesian3.normalize(i,i),t.Cartesian3.cross(n,i,i)}N.pack=function(e,a,i){let r=n.defaultValue(i,0);const s=e._positions,o=s.length;a[r++]=o;for(let e=0;e<o;++e){const n=s[e];t.Cartesian3.pack(n,a,r),r+=3}return a[r++]=e.granularity,a[r++]=e.loop?1:0,a[r++]=e.arcType,t.Ellipsoid.pack(e._ellipsoid,a,r),r+=t.Ellipsoid.packedLength,a[r++]=e._projectionIndex,a[r++]=e._scene3DOnly?1:0,a},N.unpack=function(e,a,i){let r=n.defaultValue(a,0);const s=e[r++],o=new Array(s);for(let a=0;a<s;a++)o[a]=t.Cartesian3.unpack(e,r),r+=3;const l=e[r++],c=1===e[r++],u=e[r++],C=t.Ellipsoid.unpack(e,r);r+=t.Ellipsoid.packedLength;const d=e[r++],p=1===e[r++];return n.defined(i)||(i=new N({positions:o})),i._positions=o,i.granularity=l,i.loop=c,i.arcType=u,i._ellipsoid=C,i._projectionIndex=d,i._scene3DOnly=p,i};const W=new t.Cartesian3,U=new t.Cartesian3,Z=new t.Cartesian3,$=new t.Cartesian3;function J(e,a,n,r,s){const o=q(n,a,$),l=X(e,a,o,W),c=X(r,a,o,U);if(i.CesiumMath.equalsEpsilon(t.Cartesian3.dot(l,c),-1,i.CesiumMath.EPSILON5))return s=t.Cartesian3.cross(o,l,s),t.Cartesian3.normalize(s,s);s=t.Cartesian3.add(c,l,s),s=t.Cartesian3.normalize(s,s);const u=t.Cartesian3.cross(o,s,Z);return t.Cartesian3.dot(c,u)<0&&(s=t.Cartesian3.negate(s,s)),s}const Q=d.Plane.fromPointNormal(t.Cartesian3.ZERO,t.Cartesian3.UNIT_Y),K=new t.Cartesian3,ee=new t.Cartesian3,te=new t.Cartesian3,ae=new t.Cartesian3,ne=new t.Cartesian3,ie=new t.Cartesian3,re=new t.Cartographic,se=new t.Cartographic,oe=new t.Cartographic;N.createGeometry=function(a){const o=!a._scene3DOnly;let d=a.loop;const p=a._ellipsoid,h=a.granularity,g=a.arcType,f=new L[a._projectionIndex](p),m=1e3;let w,y;const M=a._positions,T=M.length;let E,_,O,P;2===T&&(d=!1);const b=new l.EllipsoidRhumbLine(void 0,void 0,p);let k,S,I;const N=[M[0]];for(y=0;y<T-1;y++)E=M[y],_=M[y+1],k=C.IntersectionTests.lineSegmentPlane(E,_,Q,ie),!n.defined(k)||t.Cartesian3.equalsEpsilon(k,E,i.CesiumMath.EPSILON7)||t.Cartesian3.equalsEpsilon(k,_,i.CesiumMath.EPSILON7)||(a.arcType===r.ArcType.GEODESIC?N.push(t.Cartesian3.clone(k)):a.arcType===r.ArcType.RHUMB&&(I=p.cartesianToCartographic(k,re).longitude,O=p.cartesianToCartographic(E,re),P=p.cartesianToCartographic(_,se),b.setEndPoints(O,P),S=b.findIntersectionWithLongitude(I,oe),k=p.cartographicToCartesian(S,ie),!n.defined(k)||t.Cartesian3.equalsEpsilon(k,E,i.CesiumMath.EPSILON7)||t.Cartesian3.equalsEpsilon(k,_,i.CesiumMath.EPSILON7)||N.push(t.Cartesian3.clone(k)))),N.push(_);d&&(E=M[T-1],_=M[0],k=C.IntersectionTests.lineSegmentPlane(E,_,Q,ie),!n.defined(k)||t.Cartesian3.equalsEpsilon(k,E,i.CesiumMath.EPSILON7)||t.Cartesian3.equalsEpsilon(k,_,i.CesiumMath.EPSILON7)||(a.arcType===r.ArcType.GEODESIC?N.push(t.Cartesian3.clone(k)):a.arcType===r.ArcType.RHUMB&&(I=p.cartesianToCartographic(k,re).longitude,O=p.cartesianToCartographic(E,re),P=p.cartesianToCartographic(_,se),b.setEndPoints(O,P),S=b.findIntersectionWithLongitude(I,oe),k=p.cartographicToCartesian(S,ie),!n.defined(k)||t.Cartesian3.equalsEpsilon(k,E,i.CesiumMath.EPSILON7)||t.Cartesian3.equalsEpsilon(k,_,i.CesiumMath.EPSILON7)||N.push(t.Cartesian3.clone(k)))));let R=N.length,D=new Array(R);for(y=0;y<R;y++){const e=t.Cartographic.fromCartesian(N[y],p);e.height=0,D[y]=e}if(D=s.arrayRemoveDuplicates(D,t.Cartographic.equalsEpsilon),R=D.length,R<2)return;const v=[],H=[],j=[],B=[];let V=K,Y=ee,X=te,W=ae,U=ne;const Z=D[0],$=D[1];for(V=F(p,D[R-1],0,V),W=F(p,$,0,W),Y=F(p,Z,0,Y),X=F(p,Z,m,X),U=d?J(V,Y,X,W,U):z(Z,$,m,p,U),t.Cartesian3.pack(U,H,0),t.Cartesian3.pack(Y,j,0),t.Cartesian3.pack(X,B,0),v.push(Z.latitude),v.push(Z.longitude),G(Z,$,0,m,h,g,p,H,j,B,v),y=1;y<R-1;++y){V=t.Cartesian3.clone(Y,V),Y=t.Cartesian3.clone(W,Y);const e=D[y];F(p,e,m,X),F(p,D[y+1],0,W),J(V,Y,X,W,U),w=H.length,t.Cartesian3.pack(U,H,w),t.Cartesian3.pack(Y,j,w),t.Cartesian3.pack(X,B,w),v.push(e.latitude),v.push(e.longitude),G(D[y],D[y+1],0,m,h,g,p,H,j,B,v)}const le=D[R-1],ce=D[R-2];if(Y=F(p,le,0,Y),X=F(p,le,m,X),d){const e=D[0];V=F(p,ce,0,V),W=F(p,e,0,W),U=J(V,Y,X,W,U)}else U=z(ce,le,m,p,U);if(w=H.length,t.Cartesian3.pack(U,H,w),t.Cartesian3.pack(Y,j,w),t.Cartesian3.pack(X,B,w),v.push(le.latitude),v.push(le.longitude),d){for(G(le,Z,0,m,h,g,p,H,j,B,v),w=H.length,y=0;y<3;++y)H[w+y]=H[y],j[w+y]=j[y],B[w+y]=B[y];v.push(Z.latitude),v.push(Z.longitude)}return function(a,n,r,s,o,l,C){let d,p;const h=n._ellipsoid,g=r.length/3-1,f=8*g,m=4*f,w=36*g,y=f>65535?new Uint32Array(w):new Uint16Array(w),M=new Float64Array(3*f),T=new Float32Array(m),E=new Float32Array(m),_=new Float32Array(m),O=new Float32Array(m),P=new Float32Array(m);let b,k,L,S;C&&(b=new Float32Array(m),k=new Float32Array(m),L=new Float32Array(m),S=new Float32Array(2*f));const I=l.length/2;let N=0;const R=Ee;R.height=0;const D=_e;D.height=0;let v=Oe,z=Pe;if(C)for(p=0,d=1;d<I;d++)R.latitude=l[p],R.longitude=l[p+1],D.latitude=l[p+2],D.longitude=l[p+3],v=n.project(R,v),z=n.project(D,z),N+=t.Cartesian3.distance(v,z),p+=2;const H=s.length/3;z=t.Cartesian3.unpack(s,0,z);let j,B=0;for(p=3,d=1;d<H;d++)v=t.Cartesian3.clone(z,v),z=t.Cartesian3.unpack(s,p,z),B+=t.Cartesian3.distance(v,z),p+=3;p=3;let V=0,G=0,Y=0,F=0,X=!1,W=t.Cartesian3.unpack(r,0,Ae),U=t.Cartesian3.unpack(s,0,Pe),Z=t.Cartesian3.unpack(o,0,Le);a&&Ce(Z,t.Cartesian3.unpack(r,r.length-6,be),W,U)&&(Z=t.Cartesian3.negate(Z,Z));let $=0,J=0,Q=0;for(d=0;d<g;d++){const e=t.Cartesian3.clone(W,be),a=t.Cartesian3.clone(U,Oe);let u,d,g,f,m=t.Cartesian3.clone(Z,ke);if(X&&(m=t.Cartesian3.negate(m,m)),W=t.Cartesian3.unpack(r,p,Ae),U=t.Cartesian3.unpack(s,p,Pe),Z=t.Cartesian3.unpack(o,p,Le),X=Ce(Z,e,W,U),R.latitude=l[V],R.longitude=l[V+1],D.latitude=l[V+2],D.longitude=l[V+3],C){const e=Te(R,D);u=n.project(R,ve),d=n.project(D,ze);const a=q(d,u,Ue);a.y=Math.abs(a.y),g=He,f=je,0===e||t.Cartesian3.dot(a,t.Cartesian3.UNIT_Y)>x?(g=ge(n,R,m,u,He),f=ge(n,D,Z,d,je)):1===e?(f=ge(n,D,Z,d,je),g.x=0,g.y=i.CesiumMath.sign(R.longitude-Math.abs(D.longitude)),g.z=0):(g=ge(n,R,m,u,He),f.x=0,f.y=i.CesiumMath.sign(R.longitude-D.longitude),f.z=0)}const w=t.Cartesian3.distance(a,U),y=c.EncodedCartesian3.fromCartesian(e,Xe),I=t.Cartesian3.subtract(W,e,Be),v=t.Cartesian3.normalize(I,Ye);let z=t.Cartesian3.subtract(a,e,Ve);z=t.Cartesian3.normalize(z,z);let H=t.Cartesian3.cross(v,z,Ye);H=t.Cartesian3.normalize(H,H);let K=t.Cartesian3.cross(z,m,Fe);K=t.Cartesian3.normalize(K,K);let ee=t.Cartesian3.subtract(U,W,Ge);ee=t.Cartesian3.normalize(ee,ee);let te=t.Cartesian3.cross(Z,ee,qe);te=t.Cartesian3.normalize(te,te);const ae=w/B,ne=$/B;let ie,re,se,oe=0,le=0,ce=0;if(C){oe=t.Cartesian3.distance(u,d),ie=c.EncodedCartesian3.fromCartesian(u,We),re=t.Cartesian3.subtract(d,u,Ue),se=t.Cartesian3.normalize(re,Ze);const e=se.x;se.x=se.y,se.y=-e,le=oe/N,ce=J/N}for(j=0;j<8;j++){const e=F+4*j,a=G+2*j,n=e+3,i=j<4?1:-1,r=2===j||3===j||6===j||7===j?1:-1;t.Cartesian3.pack(y.high,T,e),T[n]=I.x,t.Cartesian3.pack(y.low,E,e),E[n]=I.y,t.Cartesian3.pack(K,_,e),_[n]=I.z,t.Cartesian3.pack(te,O,e),O[n]=ae*i,t.Cartesian3.pack(H,P,e);let s=ne*r;0===s&&r<0&&(s=9),P[n]=s,C&&(b[e]=ie.high.x,b[e+1]=ie.high.y,b[e+2]=ie.low.x,b[e+3]=ie.low.y,L[e]=-g.y,L[e+1]=g.x,L[e+2]=f.y,L[e+3]=-f.x,k[e]=re.x,k[e+1]=re.y,k[e+2]=se.x,k[e+3]=se.y,S[a]=le*i,s=ce*r,0===s&&r<0&&(s=9),S[a+1]=s)}const ue=Re,de=De,pe=Ie,he=Ne,fe=t.Rectangle.fromCartographicArray(Se,xe),me=A.getMinimumMaximumHeights(fe,h),ye=me.minimumTerrainHeight,Ee=me.maximumTerrainHeight;Q+=ye,Q+=Ee,we(e,a,ye,Ee,ue,pe),we(W,U,ye,Ee,de,he);let _e=t.Cartesian3.multiplyByScalar(H,i.CesiumMath.EPSILON5,$e);t.Cartesian3.add(ue,_e,ue),t.Cartesian3.add(de,_e,de),t.Cartesian3.add(pe,_e,pe),t.Cartesian3.add(he,_e,he),Me(ue,de),Me(pe,he),t.Cartesian3.pack(ue,M,Y),t.Cartesian3.pack(de,M,Y+3),t.Cartesian3.pack(he,M,Y+6),t.Cartesian3.pack(pe,M,Y+9),_e=t.Cartesian3.multiplyByScalar(H,-2*i.CesiumMath.EPSILON5,$e),t.Cartesian3.add(ue,_e,ue),t.Cartesian3.add(de,_e,de),t.Cartesian3.add(pe,_e,pe),t.Cartesian3.add(he,_e,he),Me(ue,de),Me(pe,he),t.Cartesian3.pack(ue,M,Y+12),t.Cartesian3.pack(de,M,Y+15),t.Cartesian3.pack(he,M,Y+18),t.Cartesian3.pack(pe,M,Y+21),V+=2,p+=3,G+=16,Y+=24,F+=32,$+=w,J+=oe}p=0;let K=0;for(d=0;d<g;d++){for(j=0;j<Ke;j++)y[p+j]=Qe[j]+K;K+=8,p+=Ke}const ee=Je;e.BoundingSphere.fromVertices(r,t.Cartesian3.ZERO,3,ee[0]),e.BoundingSphere.fromVertices(s,t.Cartesian3.ZERO,3,ee[1]);const te=e.BoundingSphere.fromBoundingSpheres(ee);te.radius+=Q/(2*g);const ae={position:new u.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,normalize:!1,values:M}),startHiAndForwardOffsetX:et(T),startLoAndForwardOffsetY:et(E),startNormalAndForwardOffsetZ:et(_),endNormalAndTextureCoordinateNormalizationX:et(O),rightNormalAndTextureCoordinateNormalizationY:et(P)};return C&&(ae.startHiLo2D=et(b),ae.offsetAndRight2D=et(k),ae.startEndNormals2D=et(L),ae.texcoordNormalization2D=new u.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:2,normalize:!1,values:S})),new u.Geometry({attributes:ae,indices:y,boundingSphere:te})}(d,f,j,B,H,v,o)};const le=new t.Cartesian3,ce=new t.Matrix3,ue=new e.Quaternion;function Ce(a,n,r,s){const o=q(r,n,le),l=t.Cartesian3.dot(o,a);if(l>x||l<I){const n=q(s,r,$),o=l<I?i.CesiumMath.PI_OVER_TWO:-i.CesiumMath.PI_OVER_TWO,c=e.Quaternion.fromAxisAngle(n,o,ue),u=t.Matrix3.fromQuaternion(c,ce);return t.Matrix3.multiplyByVector(u,a,a),!0}return!1}const de=new t.Cartographic,pe=new t.Cartesian3,he=new t.Cartesian3;function ge(e,a,n,r,s){const o=t.Cartographic.toCartesian(a,e._ellipsoid,pe);let l=t.Cartesian3.add(o,n,he),c=!1;const u=e._ellipsoid;let C=u.cartesianToCartographic(l,de);Math.abs(a.longitude-C.longitude)>i.CesiumMath.PI_OVER_TWO&&(c=!0,l=t.Cartesian3.subtract(o,n,he),C=u.cartesianToCartographic(l,de)),C.height=0;const d=e.project(C,s);return(s=t.Cartesian3.subtract(d,r,s)).z=0,s=t.Cartesian3.normalize(s,s),c&&t.Cartesian3.negate(s,s),s}const fe=new t.Cartesian3,me=new t.Cartesian3;function we(e,a,n,i,r,s){const o=t.Cartesian3.subtract(a,e,fe);t.Cartesian3.normalize(o,o);const l=n-0;let c=t.Cartesian3.multiplyByScalar(o,l,me);t.Cartesian3.add(e,c,r);const u=i-1e3;c=t.Cartesian3.multiplyByScalar(o,u,me),t.Cartesian3.add(a,c,s)}const ye=new t.Cartesian3;function Me(e,a){const n=d.Plane.getPointDistance(Q,e),r=d.Plane.getPointDistance(Q,a);let s=ye;i.CesiumMath.equalsEpsilon(n,0,i.CesiumMath.EPSILON2)?(s=q(a,e,s),t.Cartesian3.multiplyByScalar(s,i.CesiumMath.EPSILON2,s),t.Cartesian3.add(e,s,e)):i.CesiumMath.equalsEpsilon(r,0,i.CesiumMath.EPSILON2)&&(s=q(e,a,s),t.Cartesian3.multiplyByScalar(s,i.CesiumMath.EPSILON2,s),t.Cartesian3.add(a,s,a))}function Te(e,t){const a=Math.abs(e.longitude),n=Math.abs(t.longitude);if(i.CesiumMath.equalsEpsilon(a,i.CesiumMath.PI,i.CesiumMath.EPSILON11)){const n=i.CesiumMath.sign(t.longitude);return e.longitude=n*(a-i.CesiumMath.EPSILON11),1}if(i.CesiumMath.equalsEpsilon(n,i.CesiumMath.PI,i.CesiumMath.EPSILON11)){const a=i.CesiumMath.sign(e.longitude);return t.longitude=a*(n-i.CesiumMath.EPSILON11),2}return 0}const Ee=new t.Cartographic,_e=new t.Cartographic,Oe=new t.Cartesian3,Pe=new t.Cartesian3,be=new t.Cartesian3,Ae=new t.Cartesian3,ke=new t.Cartesian3,Le=new t.Cartesian3,Se=[Ee,_e],xe=new t.Rectangle,Ie=new t.Cartesian3,Ne=new t.Cartesian3,Re=new t.Cartesian3,De=new t.Cartesian3,ve=new t.Cartesian3,ze=new t.Cartesian3,He=new t.Cartesian3,je=new t.Cartesian3,Be=new t.Cartesian3,Ve=new t.Cartesian3,Ge=new t.Cartesian3,Ye=new t.Cartesian3,Fe=new t.Cartesian3,qe=new t.Cartesian3,Xe=new c.EncodedCartesian3,We=new c.EncodedCartesian3,Ue=new t.Cartesian3,Ze=new t.Cartesian3,$e=new t.Cartesian3,Je=[new e.BoundingSphere,new e.BoundingSphere],Qe=[0,2,1,0,3,2,0,7,3,0,4,7,0,5,4,0,1,5,5,7,4,5,6,7,5,2,6,5,1,2,3,6,2,3,7,6],Ke=Qe.length;function et(e){return new u.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:4,normalize:!1,values:e})}return N._projectNormal=ge,function(e,t){return A.initialize().then((function(){return n.defined(t)&&(e=N.unpack(e,t)),N.createGeometry(e)}))}}));
25
+ import{a as _e}from"./chunk-LN2UT4R3.js";import{a as W}from"./chunk-AJH5KBOO.js";import{a as Nt}from"./chunk-6W2XFGWI.js";import{a as De}from"./chunk-WGIRJIIK.js";import{a as Le}from"./chunk-G2QPRBZU.js";import{a as Qt}from"./chunk-37ETYCYM.js";import{b as Kt}from"./chunk-SRA5MBUT.js";import{a as zt}from"./chunk-5AAMOBJK.js";import{c as Ce,d as Bt}from"./chunk-A4I25VN7.js";import{a as Rt,c as U}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import{f as xe,g as Ne,h as Jt,j as Y}from"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import{a as vt}from"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import{a as w,b as Mt,c as B}from"./chunk-2AIOP76V.js";import{a as t,b as Pt,c as bt}from"./chunk-IAE6APK2.js";import{a as p}from"./chunk-3E7FIXV7.js";import{a as ut,b as tt}from"./chunk-NZBME2JK.js";import{f as u}from"./chunk-6DLS2UKD.js";var te=class{constructor(t){t=t??bt.EMPTY_OBJECT,this._ellipsoid=t.ellipsoid??B.default,this._rectangle=t.rectangle??Y.MAX_VALUE,this._projection=new Rt(this._ellipsoid),this._numberOfLevelZeroTilesX=t.numberOfLevelZeroTilesX??2,this._numberOfLevelZeroTilesY=t.numberOfLevelZeroTilesY??1}get ellipsoid(){return this._ellipsoid}get rectangle(){return this._rectangle}get projection(){return this._projection}getNumberOfXTilesAtLevel(t){return this._numberOfLevelZeroTilesX<<t}getNumberOfYTilesAtLevel(t){return this._numberOfLevelZeroTilesY<<t}rectangleToNativeRectangle(t,e){tt.defined("rectangle",t);let n=p.toDegrees(t.west),r=p.toDegrees(t.south),i=p.toDegrees(t.east),a=p.toDegrees(t.north);return u(e)?(e.west=n,e.south=r,e.east=i,e.north=a,e):new Y(n,r,i,a)}tileXYToNativeRectangle(t,e,n,r){let i=this.tileXYToRectangle(t,e,n,r);return i.west=p.toDegrees(i.west),i.south=p.toDegrees(i.south),i.east=p.toDegrees(i.east),i.north=p.toDegrees(i.north),i}tileXYToRectangle(t,e,n,r){let i=this._rectangle,a=this.getNumberOfXTilesAtLevel(n),o=this.getNumberOfYTilesAtLevel(n),l=i.width/a,s=t*l+i.west,c=(t+1)*l+i.west,p=i.height/o,h=i.north-e*p,d=i.north-(e+1)*p;return u(r)||(r=new Y(s,d,c,h)),r.west=s,r.south=d,r.east=c,r.north=h,r}positionToTileXY(t,e,n){let r=this._rectangle;if(!Y.contains(r,t))return;let i=this.getNumberOfXTilesAtLevel(e),a=this.getNumberOfYTilesAtLevel(e),o=r.width/i,l=r.height/a,s=t.longitude;r.east<r.west&&(s+=p.TWO_PI);let c=(s-r.west)/o|0;c>=i&&(c=i-1);let h=(r.north-t.latitude)/l|0;return h>=a&&(h=a-1),u(n)?(n.x=c,n.y=h,n):new Mt(c,h)}},Oe=te,Ie=new t,He=new t,ke=new w,ee=new t,hn=new t,ye=new U,pn=new Oe,Ct=[new w,new w,new w,new w],_t=new Mt,S={};function Ae(t){w.fromRadians(t.east,t.north,0,Ct[0]),w.fromRadians(t.west,t.north,0,Ct[1]),w.fromRadians(t.east,t.south,0,Ct[2]),w.fromRadians(t.west,t.south,0,Ct[3]);let e,n=0,r=0,i=0,a=0,o=S._terrainHeightsMaxLevel;for(e=0;e<=o;++e){let t=!1;for(let n=0;n<4;++n){let r=Ct[n];if(pn.positionToTileXY(r,e,_t),0===n)i=_t.x,a=_t.y;else if(i!==_t.x||a!==_t.y){t=!0;break}}if(t)break;n=i,r=a}if(0!==e)return{x:n,y:r,level:e>o?o:e-1}}S.initialize=function(){let t=S._initPromise;return u(t)||(t=xe.fetchJson(Ne("Assets/approximateTerrainHeights.json")).then((function(t){S._terrainHeights=t})),S._initPromise=t),t},S.getMinimumMaximumHeights=function(e,n){if(tt.defined("rectangle",e),!u(S._terrainHeights))throw new ut("You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function");n=n??B.default;let r=Ae(e),i=S._defaultMinTerrainHeight,a=S._defaultMaxTerrainHeight;if(u(r)){let o=`${r.level}-${r.x}-${r.y}`,l=S._terrainHeights[o];u(l)&&(i=l[0],a=l[1]),n.cartographicToCartesian(Y.northeast(e,ke),Ie),n.cartographicToCartesian(Y.southwest(e,ke),He),t.midpoint(He,Ie,ee);let s=n.scaleToGeodeticSurface(ee,hn);if(u(s)){let e=t.distance(ee,s);i=Math.min(i,-e)}else i=S._defaultMinTerrainHeight}return i=Math.max(S._defaultMinTerrainHeight,i),{minimumTerrainHeight:i,maximumTerrainHeight:a}},S.getBoundingSphere=function(t,e){if(tt.defined("rectangle",t),!u(S._terrainHeights))throw new ut("You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function");e=e??B.default;let n=Ae(t),r=S._defaultMaxTerrainHeight;if(u(n)){let t=`${n.level}-${n.x}-${n.y}`,e=S._terrainHeights[t];u(e)&&(r=e[1])}let i=U.fromRectangle3D(t,e,0);return U.fromRectangle3D(t,e,r,ye),U.union(i,ye,i)},S._terrainHeightsMaxLevel=6,S._defaultMaxTerrainHeight=9e3,S._defaultMinTerrainHeight=-1e5,S._terrainHeights=void 0,S._initPromise=void 0,Object.defineProperties(S,{initialized:{get:function(){return u(S._terrainHeights)}}});var jt=S,le=[Rt,_e],dn=le.length,Ke=Math.cos(p.toRadians(30)),Me=Math.cos(p.toRadians(150)),Qe=0,tn=1e3;function rt(t){let e=(t=t??bt.EMPTY_OBJECT).positions;if(!u(e)||e.length<2)throw new ut("At least two positions are required.");if(u(t.arcType)&&t.arcType!==W.GEODESIC&&t.arcType!==W.RHUMB)throw new ut("Valid options for arcType are ArcType.GEODESIC and ArcType.RHUMB.");this.width=t.width??1,this._positions=e,this.granularity=t.granularity??9999,this.loop=t.loop??!1,this.arcType=t.arcType??W.GEODESIC,this._ellipsoid=B.default,this._projectionIndex=0,this._workerName="createGroundPolylineGeometry",this._scene3DOnly=!1}Object.defineProperties(rt.prototype,{packedLength:{get:function(){return 1+3*this._positions.length+1+1+1+B.packedLength+1+1}}}),rt.setProjectionAndEllipsoid=function(t,e){let n=0;for(let t=0;t<dn;t++)if(e instanceof le[t]){n=t;break}t._projectionIndex=n,t._ellipsoid=e.ellipsoid};var mn=new t,Re=new t,Pe=new t;function se(e,n,r,i,a){let o=R(i,e,0,mn),l=R(i,e,r,Re),s=R(i,n,0,Pe),u=et(l,o,Re),c=et(s,o,Pe);return t.cross(c,u,a),t.normalize(a,a)}var fn=new w,gn=new t,un=new t,wn=new t;function ne(e,n,r,i,a,o,l,s,u,c,p){if(0===a)return;let h;o===W.GEODESIC?h=new De(e,n,l):o===W.RHUMB&&(h=new Qt(e,n,l));let d=h.surfaceDistance;if(d<a)return;let g=se(e,n,i,l,wn),f=Math.ceil(d/a),w=d/f,m=w,y=f-1,T=s.length;for(let e=0;e<y;e++){let e=h.interpolateUsingSurfaceDistance(m,fn),n=R(l,e,r,gn),a=R(l,e,i,un);t.pack(g,s,T),t.pack(n,u,T),t.pack(a,c,T),p.push(e.latitude),p.push(e.longitude),T+=3,m+=w}}var oe=new w;function R(t,e,n,r){return w.clone(e,oe),oe.height=n,w.toCartesian(oe,t,r)}function et(e,n,r){return t.subtract(e,n,r),t.normalize(r,r),r}function be(e,n,r,i){return i=et(e,n,i),i=t.cross(i,r,i),i=t.normalize(i,i),i=t.cross(r,i,i)}rt.pack=function(e,n,r){tt.typeOf.object("value",e),tt.defined("array",n);let i=r??0,a=e._positions,o=a.length;n[i++]=o;for(let e=0;e<o;++e){let r=a[e];t.pack(r,n,i),i+=3}return n[i++]=e.granularity,n[i++]=e.loop?1:0,n[i++]=e.arcType,B.pack(e._ellipsoid,n,i),i+=B.packedLength,n[i++]=e._projectionIndex,n[i++]=e._scene3DOnly?1:0,n},rt.unpack=function(e,n,r){tt.defined("array",e);let i=n??0,a=e[i++],o=new Array(a);for(let n=0;n<a;n++)o[n]=t.unpack(e,i),i+=3;let l=e[i++],s=1===e[i++],c=e[i++],p=B.unpack(e,i);i+=B.packedLength;let h=e[i++],d=1===e[i++];return u(r)||(r=new rt({positions:o})),r._positions=o,r.granularity=l,r.loop=s,r.arcType=c,r._ellipsoid=p,r._projectionIndex=h,r._scene3DOnly=d,r};var Sn=new t,Tn=new t,En=new t,en=new t,xn=0,Nn=-1;function ie(e,n,r,i,a){let o=et(r,n,en),l=be(e,n,o,Sn),s=be(i,n,o,Tn);if(p.equalsEpsilon(t.dot(l,s),Nn,p.EPSILON5))return a=t.cross(o,l,a),a=t.normalize(a,a);a=t.add(s,l,a),a=t.normalize(a,a);let u=t.cross(o,a,En);return t.dot(s,u)<xn&&(a=t.negate(a,a)),a}var Ut=zt.fromPointNormal(t.ZERO,t.UNIT_Y),Cn=new t,_n=new t,Ln=new t,Dn=new t,On=new t,Ft=new t,Xt=new w,ve=new w,Be=new w;rt.createGeometry=function(e){let n,r,i=!e._scene3DOnly,a=e.loop,o=e._ellipsoid,l=e.granularity,s=e.arcType,c=new le[e._projectionIndex](o),h=Qe,d=tn,g=e._positions,f=g.length;2===f&&(a=!1);let m,y,T,_,k,O,S,E=new Qt(void 0,void 0,o),A=[g[0]];for(r=0;r<f-1;r++)m=g[r],y=g[r+1],k=Kt.lineSegmentPlane(m,y,Ut,Ft),u(k)&&!t.equalsEpsilon(k,m,p.EPSILON7)&&!t.equalsEpsilon(k,y,p.EPSILON7)&&(e.arcType===W.GEODESIC?A.push(t.clone(k)):e.arcType===W.RHUMB&&(S=o.cartesianToCartographic(k,Xt).longitude,T=o.cartesianToCartographic(m,Xt),_=o.cartesianToCartographic(y,ve),E.setEndPoints(T,_),O=E.findIntersectionWithLongitude(S,Be),k=o.cartographicToCartesian(O,Ft),u(k)&&!t.equalsEpsilon(k,m,p.EPSILON7)&&!t.equalsEpsilon(k,y,p.EPSILON7)&&A.push(t.clone(k)))),A.push(y);a&&(m=g[f-1],y=g[0],k=Kt.lineSegmentPlane(m,y,Ut,Ft),u(k)&&!t.equalsEpsilon(k,m,p.EPSILON7)&&!t.equalsEpsilon(k,y,p.EPSILON7)&&(e.arcType===W.GEODESIC?A.push(t.clone(k)):e.arcType===W.RHUMB&&(S=o.cartesianToCartographic(k,Xt).longitude,T=o.cartesianToCartographic(m,Xt),_=o.cartesianToCartographic(y,ve),E.setEndPoints(T,_),O=E.findIntersectionWithLongitude(S,Be),k=o.cartographicToCartesian(O,Ft),u(k)&&!t.equalsEpsilon(k,m,p.EPSILON7)&&!t.equalsEpsilon(k,y,p.EPSILON7)&&A.push(t.clone(k)))));let L=A.length,P=new Array(L);for(r=0;r<L;r++){let t=w.fromCartesian(A[r],o);t.height=0,P[r]=t}if(P=Le(P,w.equalsEpsilon),L=P.length,L<2)return;let N=[],I=[],b=[],v=[],j=Cn,M=_n,x=Ln,B=Dn,D=On,H=P[0],Y=P[1];for(j=R(o,P[L-1],h,j),B=R(o,Y,h,B),M=R(o,H,h,M),x=R(o,H,d,x),D=a?ie(j,M,x,B,D):se(H,Y,d,o,D),t.pack(D,I,0),t.pack(M,b,0),t.pack(x,v,0),N.push(H.latitude),N.push(H.longitude),ne(H,Y,h,d,l,s,o,I,b,v,N),r=1;r<L-1;++r){j=t.clone(M,j),M=t.clone(B,M);let e=P[r];R(o,e,d,x),R(o,P[r+1],h,B),ie(j,M,x,B,D),n=I.length,t.pack(D,I,n),t.pack(M,b,n),t.pack(x,v,n),N.push(e.latitude),N.push(e.longitude),ne(P[r],P[r+1],h,d,l,s,o,I,b,v,N)}let C=P[L-1],U=P[L-2];if(M=R(o,C,h,M),x=R(o,C,d,x),a){let t=P[0];j=R(o,U,h,j),B=R(o,t,h,B),D=ie(j,M,x,B,D)}else D=se(U,C,d,o,D);if(n=I.length,t.pack(D,I,n),t.pack(M,b,n),t.pack(x,v,n),N.push(C.latitude),N.push(C.longitude),a){for(ne(C,H,h,d,l,s,o,I,b,v,N),n=I.length,r=0;r<3;++r)I[n+r]=I[r],b[n+r]=b[r],v[n+r]=v[r];N.push(H.latitude),N.push(H.longitude)}return Qn(a,c,b,v,I,N,i)};var In=new t,Hn=new Pt,kn=new Jt;function ze(e,n,r,i){let a=et(r,n,In),o=t.dot(a,e);if(o>Ke||o<Me){let t=et(i,r,en),n=o<Me?p.PI_OVER_TWO:-p.PI_OVER_TWO,a=Jt.fromAxisAngle(t,n,kn),l=Pt.fromQuaternion(a,Hn);return Pt.multiplyByVector(l,e,e),!0}return!1}var je=new w,yn=new t,Fe=new t;function Lt(e,n,r,i,a){let o=w.toCartesian(n,e._ellipsoid,yn),l=t.add(o,r,Fe),s=!1,u=e._ellipsoid,c=u.cartesianToCartographic(l,je);Math.abs(n.longitude-c.longitude)>p.PI_OVER_TWO&&(s=!0,l=t.subtract(o,r,Fe),c=u.cartesianToCartographic(l,je)),c.height=0;let h=e.project(c,a);return(a=t.subtract(h,i,a)).z=0,a=t.normalize(a,a),s&&t.negate(a,a),a}var An=new t,Xe=new t;function Ye(e,n,r,i,a,o){let l=t.subtract(n,e,An);t.normalize(l,l);let s=r-Qe,u=t.multiplyByScalar(l,s,Xe);t.add(e,u,a);let c=i-tn;u=t.multiplyByScalar(l,c,Xe),t.add(n,u,o)}var Mn=new t;function Yt(e,n){let r=zt.getPointDistance(Ut,e),i=zt.getPointDistance(Ut,n),a=Mn;p.equalsEpsilon(r,0,p.EPSILON2)?(a=et(n,e,a),t.multiplyByScalar(a,p.EPSILON2,a),t.add(e,a,e)):p.equalsEpsilon(i,0,p.EPSILON2)&&(a=et(e,n,a),t.multiplyByScalar(a,p.EPSILON2,a),t.add(n,a,n))}function Rn(t,e){let n=Math.abs(t.longitude),r=Math.abs(e.longitude);if(p.equalsEpsilon(n,p.PI,p.EPSILON11)){let r=p.sign(e.longitude);return t.longitude=r*(n-p.EPSILON11),1}if(p.equalsEpsilon(r,p.PI,p.EPSILON11)){let n=p.sign(t.longitude);return e.longitude=n*(r-p.EPSILON11),2}return 0}var nn=new w,on=new w,Ue=new t,re=new t,qe=new t,Ge=new t,Pn=new t,We=new t,bn=[nn,on],vn=new Y,Bn=new t,zn=new t,jn=new t,Fn=new t,Xn=new t,Yn=new t,ae=new t,ce=new t,Un=new t,qn=new t,Gn=new t,Ze=new t,Wn=new t,Zn=new t,Vn=new Nt,$n=new Nt,Ve=new t,Jn=new t,$e=new t,Kn=[new U,new U],rn=[0,2,1,0,3,2,0,7,3,0,4,7,0,5,4,0,1,5,5,7,4,5,6,7,5,2,6,5,1,2,3,6,2,3,7,6],Je=rn.length;function Qn(e,n,r,i,a,o,l){let s,u,c,h,d,g,f=n._ellipsoid,w=r.length/3-1,m=8*w,y=4*m,T=36*w,_=m>65535?new Uint32Array(T):new Uint16Array(T),k=new Float64Array(3*m),O=new Float32Array(y),S=new Float32Array(y),E=new Float32Array(y),A=new Float32Array(y),L=new Float32Array(y);l&&(c=new Float32Array(y),h=new Float32Array(y),d=new Float32Array(y),g=new Float32Array(2*m));let P=o.length/2,N=0,R=nn;R.height=0;let I=on;I.height=0;let b=Ue,v=re;if(l)for(u=0,s=1;s<P;s++)R.latitude=o[u],R.longitude=o[u+1],I.latitude=o[u+2],I.longitude=o[u+3],b=n.project(R,b),v=n.project(I,v),N+=t.distance(b,v),u+=2;let j=i.length/3;v=t.unpack(i,0,v);let M,x=0;for(u=3,s=1;s<j;s++)b=t.clone(v,b),v=t.unpack(i,u,v),x+=t.distance(b,v),u+=3;u=3;let B=0,D=0,H=0,C=0,z=!1,F=t.unpack(r,0,Ge),X=t.unpack(i,0,re),W=t.unpack(a,0,We);if(e){ze(W,t.unpack(r,r.length-6,qe),F,X)&&(W=t.negate(W,W))}let G=0,q=0,J=0;for(s=0;s<w;s++){let e,s,w,m,y=t.clone(F,qe),T=t.clone(X,Ue),_=t.clone(W,Pn);if(z&&(_=t.negate(_,_)),F=t.unpack(r,u,Ge),X=t.unpack(i,u,re),W=t.unpack(a,u,We),z=ze(W,y,F,X),R.latitude=o[B],R.longitude=o[B+1],I.latitude=o[B+2],I.longitude=o[B+3],l){let r=Rn(R,I);e=n.project(R,Xn),s=n.project(I,Yn);let i=et(s,e,Ve);i.y=Math.abs(i.y),w=ae,m=ce,0===r||t.dot(i,t.UNIT_Y)>Ke?(w=Lt(n,R,_,e,ae),m=Lt(n,I,W,s,ce)):1===r?(m=Lt(n,I,W,s,ce),w.x=0,w.y=p.sign(R.longitude-Math.abs(I.longitude)),w.z=0):(w=Lt(n,R,_,e,ae),m.x=0,m.y=p.sign(R.longitude-I.longitude),m.z=0)}let P=t.distance(T,X),b=Nt.fromCartesian(y,Vn),v=t.subtract(F,y,Un),j=t.normalize(v,Ze),U=t.subtract(T,y,qn);U=t.normalize(U,U);let V=t.cross(j,U,Ze);V=t.normalize(V,V);let Z=t.cross(U,_,Wn);Z=t.normalize(Z,Z);let K=t.subtract(X,F,Gn);K=t.normalize(K,K);let Q=t.cross(W,K,Zn);Q=t.normalize(Q,Q);let $,tt,nt,rt=P/x,it=G/x,at=0,ot=0,lt=0;if(l){at=t.distance(e,s),$=Nt.fromCartesian(e,$n),tt=t.subtract(s,e,Ve),nt=t.normalize(tt,Jn);let n=nt.x;nt.x=nt.y,nt.y=-n,ot=at/N,lt=q/N}for(M=0;M<8;M++){let e=C+4*M,n=D+2*M,r=e+3,i=M<4?1:-1,a=2===M||3===M||6===M||7===M?1:-1;t.pack(b.high,O,e),O[r]=v.x,t.pack(b.low,S,e),S[r]=v.y,t.pack(Z,E,e),E[r]=v.z,t.pack(Q,A,e),A[r]=rt*i,t.pack(V,L,e);let o=it*a;0===o&&a<0&&(o=9),L[r]=o,l&&(c[e]=$.high.x,c[e+1]=$.high.y,c[e+2]=$.low.x,c[e+3]=$.low.y,d[e]=-w.y,d[e+1]=w.x,d[e+2]=m.y,d[e+3]=-m.x,h[e]=tt.x,h[e+1]=tt.y,h[e+2]=nt.x,h[e+3]=nt.y,g[n]=ot*i,o=lt*a,0===o&&a<0&&(o=9),g[n+1]=o)}let st=jn,ut=Fn,ct=Bn,pt=zn,ht=Y.fromCartographicArray(bn,vn),dt=jt.getMinimumMaximumHeights(ht,f),gt=dt.minimumTerrainHeight,ft=dt.maximumTerrainHeight;J+=Math.abs(gt),J+=Math.abs(ft),Ye(y,T,gt,ft,st,ct),Ye(F,X,gt,ft,ut,pt);let wt=t.multiplyByScalar(V,p.EPSILON5,$e);t.add(st,wt,st),t.add(ut,wt,ut),t.add(ct,wt,ct),t.add(pt,wt,pt),Yt(st,ut),Yt(ct,pt),t.pack(st,k,H),t.pack(ut,k,H+3),t.pack(pt,k,H+6),t.pack(ct,k,H+9),wt=t.multiplyByScalar(V,-2*p.EPSILON5,$e),t.add(st,wt,st),t.add(ut,wt,ut),t.add(ct,wt,ct),t.add(pt,wt,pt),Yt(st,ut),Yt(ct,pt),t.pack(st,k,H+12),t.pack(ut,k,H+15),t.pack(pt,k,H+18),t.pack(ct,k,H+21),B+=2,u+=3,D+=16,H+=24,C+=32,G+=P,q+=at}u=0;let V=0;for(s=0;s<w;s++){for(M=0;M<Je;M++)_[u+M]=rn[M]+V;V+=8,u+=Je}let Z=Kn;U.fromVertices(r,t.ZERO,3,Z[0]),U.fromVertices(i,t.ZERO,3,Z[1]);let K=U.fromBoundingSpheres(Z);K.radius+=J/(2*w);let Q={position:new Bt({componentDatatype:vt.DOUBLE,componentsPerAttribute:3,normalize:!1,values:k}),startHiAndForwardOffsetX:it(O),startLoAndForwardOffsetY:it(S),startNormalAndForwardOffsetZ:it(E),endNormalAndTextureCoordinateNormalizationX:it(A),rightNormalAndTextureCoordinateNormalizationY:it(L)};return l&&(Q.startHiLo2D=it(c),Q.offsetAndRight2D=it(h),Q.startEndNormals2D=it(d),Q.texcoordNormalization2D=new Bt({componentDatatype:vt.FLOAT,componentsPerAttribute:2,normalize:!1,values:g})),new Ce({attributes:Q,indices:_,boundingSphere:K})}function it(t){return new Bt({componentDatatype:vt.FLOAT,componentsPerAttribute:4,normalize:!1,values:t})}rt._projectNormal=Lt;var he=rt;function to(t,e){return jt.initialize().then((function(){return u(e)&&(t=he.unpack(t,e)),he.createGeometry(t)}))}var Qo=to;export{Qo 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","./Transforms-d3d3b2a9","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./VertexFormat-9886cb81","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2"],(function(e,t,n,r,a,o,i,m,u,c,p){"use strict";function s(t){t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT);const n=e.defaultValue(t.vertexFormat,m.VertexFormat.DEFAULT);this._vertexFormat=n,this._workerName="createPlaneGeometry"}s.packedLength=m.VertexFormat.packedLength,s.pack=function(t,n,r){return r=e.defaultValue(r,0),m.VertexFormat.pack(t._vertexFormat,n,r),n};const y=new m.VertexFormat,l={vertexFormat:y};s.unpack=function(t,n,r){n=e.defaultValue(n,0);const a=m.VertexFormat.unpack(t,n,y);return e.defined(r)?(r._vertexFormat=m.VertexFormat.clone(a,r._vertexFormat),r):new s(l)};const f=new n.Cartesian3(-.5,-.5,0),A=new n.Cartesian3(.5,.5,0);return s.createGeometry=function(e){const r=e._vertexFormat,m=new i.GeometryAttributes;let u,c;if(r.position){if(c=new Float64Array(12),c[0]=f.x,c[1]=f.y,c[2]=0,c[3]=A.x,c[4]=f.y,c[5]=0,c[6]=A.x,c[7]=A.y,c[8]=0,c[9]=f.x,c[10]=A.y,c[11]=0,m.position=new o.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:c}),r.normal){const e=new Float32Array(12);e[0]=0,e[1]=0,e[2]=1,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=1,e[9]=0,e[10]=0,e[11]=1,m.normal=new o.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})}if(r.st){const e=new Float32Array(8);e[0]=0,e[1]=0,e[2]=1,e[3]=0,e[4]=1,e[5]=1,e[6]=0,e[7]=1,m.st=new o.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:e})}if(r.tangent){const e=new Float32Array(12);e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e[6]=1,e[7]=0,e[8]=0,e[9]=1,e[10]=0,e[11]=0,m.tangent=new o.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})}if(r.bitangent){const e=new Float32Array(12);e[0]=0,e[1]=1,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=1,e[8]=0,e[9]=0,e[10]=1,e[11]=0,m.bitangent=new o.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})}u=new Uint16Array(6),u[0]=0,u[1]=1,u[2]=2,u[3]=0,u[4]=2,u[5]=3}return new o.Geometry({attributes:m,indices:u,primitiveType:o.PrimitiveType.TRIANGLES,boundingSphere:new t.BoundingSphere(n.Cartesian3.ZERO,Math.sqrt(2))})},function(t,n){return e.defined(n)&&(t=s.unpack(t,n)),s.createGeometry(t)}}));
25
+ import{a as m}from"./chunk-AKELQO2L.js";import{a as b}from"./chunk-6EINM7EY.js";import{b as v,c as x,d as c}from"./chunk-A4I25VN7.js";import{c as l}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import{a as i}from"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import"./chunk-2AIOP76V.js";import{a as u,c as A}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{b as f}from"./chunk-NZBME2JK.js";import{f as s}from"./chunk-6DLS2UKD.js";function p(t){let e=(t=t??A.EMPTY_OBJECT).vertexFormat??m.DEFAULT;this._vertexFormat=e,this._workerName="createPlaneGeometry"}p.packedLength=m.packedLength,p.pack=function(t,e,n){return f.typeOf.object("value",t),f.defined("array",e),n=n??0,m.pack(t._vertexFormat,e,n),e};var d=new m,P={vertexFormat:d};p.unpack=function(t,e,n){f.defined("array",t),e=e??0;let r=m.unpack(t,e,d);return s(n)?(n._vertexFormat=m.clone(r,n._vertexFormat),n):new p(P)};var y=new u(-.5,-.5,0),F=new u(.5,.5,0);p.createGeometry=function(t){let e,n,r=t._vertexFormat,a=new b;if(r.position){if(n=new Float64Array(12),n[0]=y.x,n[1]=y.y,n[2]=0,n[3]=F.x,n[4]=y.y,n[5]=0,n[6]=F.x,n[7]=F.y,n[8]=0,n[9]=y.x,n[10]=F.y,n[11]=0,a.position=new c({componentDatatype:i.DOUBLE,componentsPerAttribute:3,values:n}),r.normal){let t=new Float32Array(12);t[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=1,t[9]=0,t[10]=0,t[11]=1,a.normal=new c({componentDatatype:i.FLOAT,componentsPerAttribute:3,values:t})}if(r.st){let t=new Float32Array(8);t[0]=0,t[1]=0,t[2]=1,t[3]=0,t[4]=1,t[5]=1,t[6]=0,t[7]=1,a.st=new c({componentDatatype:i.FLOAT,componentsPerAttribute:2,values:t})}if(r.tangent){let t=new Float32Array(12);t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=1,t[7]=0,t[8]=0,t[9]=1,t[10]=0,t[11]=0,a.tangent=new c({componentDatatype:i.FLOAT,componentsPerAttribute:3,values:t})}if(r.bitangent){let t=new Float32Array(12);t[0]=0,t[1]=1,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=1,t[8]=0,t[9]=0,t[10]=1,t[11]=0,a.bitangent=new c({componentDatatype:i.FLOAT,componentsPerAttribute:3,values:t})}e=new Uint16Array(6),e[0]=0,e[1]=1,e[2]=2,e[3]=0,e[4]=2,e[5]=3}return new x({attributes:a,indices:e,primitiveType:v.TRIANGLES,boundingSphere:new l(u.ZERO,Math.sqrt(2))})};var w=p;function h(t,e){return s(e)&&(t=w.unpack(t,e)),w.createGeometry(t)}var N=h;export{N 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","./Transforms-d3d3b2a9","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./GeometryAttribute-fd1d7e90","./GeometryAttributes-734a3446","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2"],(function(e,t,n,r,a,i,o,u,c,s){"use strict";function m(){this._workerName="createPlaneOutlineGeometry"}m.packedLength=0,m.pack=function(e,t){return t},m.unpack=function(t,n,r){return e.defined(r)?r:new m};const y=new n.Cartesian3(-.5,-.5,0),p=new n.Cartesian3(.5,.5,0);return m.createGeometry=function(){const e=new o.GeometryAttributes,r=new Uint16Array(8),u=new Float64Array(12);return u[0]=y.x,u[1]=y.y,u[2]=y.z,u[3]=p.x,u[4]=y.y,u[5]=y.z,u[6]=p.x,u[7]=p.y,u[8]=y.z,u[9]=y.x,u[10]=p.y,u[11]=y.z,e.position=new i.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u}),r[0]=0,r[1]=1,r[2]=1,r[3]=2,r[4]=2,r[5]=3,r[6]=3,r[7]=0,new i.Geometry({attributes:e,indices:r,primitiveType:i.PrimitiveType.LINES,boundingSphere:new t.BoundingSphere(n.Cartesian3.ZERO,Math.sqrt(2))})},function(t,n){return e.defined(n)&&(t=m.unpack(t,n)),m.createGeometry(t)}}));
25
+ import{a as l}from"./chunk-6EINM7EY.js";import{b as d,c as y,d as s}from"./chunk-A4I25VN7.js";import{c}from"./chunk-D3TVNJ6W.js";import"./chunk-3VUCSHGU.js";import"./chunk-LNJEJFV5.js";import"./chunk-BPABSUDY.js";import{a as f}from"./chunk-ATKJRN2G.js";import"./chunk-RDX4QSUS.js";import"./chunk-G3GDHHWO.js";import"./chunk-2AIOP76V.js";import{a}from"./chunk-IAE6APK2.js";import"./chunk-3E7FIXV7.js";import{b as m}from"./chunk-NZBME2JK.js";import{f as i}from"./chunk-6DLS2UKD.js";function o(){this._workerName="createPlaneOutlineGeometry"}o.packedLength=0,o.pack=function(n,r){return m.defined("value",n),m.defined("array",r),r},o.unpack=function(n,r,e){return m.defined("array",n),i(e)?e:new o};var n=new a(-.5,-.5,0),p=new a(.5,.5,0);o.createGeometry=function(){let r=new l,e=new Uint16Array(8),t=new Float64Array(12);return t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=p.x,t[4]=n.y,t[5]=n.z,t[6]=p.x,t[7]=p.y,t[8]=n.z,t[9]=n.x,t[10]=p.y,t[11]=n.z,r.position=new s({componentDatatype:f.DOUBLE,componentsPerAttribute:3,values:t}),e[0]=0,e[1]=1,e[2]=1,e[3]=2,e[4]=2,e[5]=3,e[6]=3,e[7]=0,new y({attributes:r,indices:e,primitiveType:d.LINES,boundingSphere:new c(a.ZERO,Math.sqrt(2))})};var u=o;function w(n,r){return i(r)&&(n=u.unpack(n,r)),u.createGeometry(n)}var D=w;export{D as default};