@mapgis/cesium 17.0.4 → 17.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (881) hide show
  1. package/Documentation/AlgorithmLib.html +29 -29
  2. package/Documentation/AngulationTool.html +5 -5
  3. package/Documentation/Animation.html +7 -7
  4. package/Documentation/AnimationTool.html +41 -41
  5. package/Documentation/AnimationViewModel.html +23 -23
  6. package/Documentation/Appearance.html +10 -10
  7. package/Documentation/ArcGISTiledElevationTerrainProvider.html +13 -13
  8. package/Documentation/ArcGisMapServerImageryProvider.html +68 -33
  9. package/Documentation/AssociativeArray.html +8 -8
  10. package/Documentation/AttributeSurfacePrimitive.html +7 -7
  11. package/Documentation/AxisAlignedBoundingBox.html +11 -11
  12. package/Documentation/BaiduImageryProvider.html +29 -29
  13. package/Documentation/BaiduMapImagerProvider.html +1 -1
  14. package/Documentation/BaiduProjection.html +7 -7
  15. package/Documentation/BaseLayerPicker.html +5 -5
  16. package/Documentation/BaseLayerPickerViewModel.html +10 -10
  17. package/Documentation/Billboard.html +31 -31
  18. package/Documentation/BillboardCollection.html +17 -17
  19. package/Documentation/BillboardGraphics.html +25 -25
  20. package/Documentation/BillboardVisualizer.html +4 -4
  21. package/Documentation/BingMapsGeocoderService.html +4 -4
  22. package/Documentation/BingMapsImageryProvider.html +35 -35
  23. package/Documentation/BlendingState.html +5 -5
  24. package/Documentation/BloomEffect.html +12 -12
  25. package/Documentation/BoundingRectangle.html +18 -18
  26. package/Documentation/BoundingSphere.html +34 -34
  27. package/Documentation/BoxEmitter.html +2 -2
  28. package/Documentation/BoxGeometry.html +7 -7
  29. package/Documentation/BoxGeometryUpdater.html +3 -3
  30. package/Documentation/BoxGraphics.html +15 -15
  31. package/Documentation/BoxOutlineGeometry.html +7 -7
  32. package/Documentation/CallbackProperty.html +7 -7
  33. package/Documentation/Camera.html +80 -80
  34. package/Documentation/CameraEventAggregator.html +13 -13
  35. package/Documentation/Cartesian2.html +44 -44
  36. package/Documentation/Cartesian3.html +54 -54
  37. package/Documentation/Cartesian4.html +46 -46
  38. package/Documentation/Cartographic.html +16 -16
  39. package/Documentation/CartographicGeocoderService.html +2 -2
  40. package/Documentation/CatmullRomSpline.html +9 -9
  41. package/Documentation/Cesium3DTile.html +12 -12
  42. package/Documentation/Cesium3DTileContent.html +14 -14
  43. package/Documentation/Cesium3DTileCustomContent.html +1 -1
  44. package/Documentation/Cesium3DTileFeature.html +10 -10
  45. package/Documentation/Cesium3DTilePointFeature.html +33 -33
  46. package/Documentation/Cesium3DTileStyle.html +31 -31
  47. package/Documentation/Cesium3DTilesInspector.html +5 -5
  48. package/Documentation/Cesium3DTilesInspectorViewModel.html +70 -70
  49. package/Documentation/Cesium3DTileset.html +91 -91
  50. package/Documentation/Cesium3DTilesetGraphics.html +8 -8
  51. package/Documentation/Cesium3DTilesetVisualizer.html +4 -4
  52. package/Documentation/CesiumHeatmap.html +3 -3
  53. package/Documentation/CesiumInspector.html +5 -5
  54. package/Documentation/CesiumInspectorViewModel.html +52 -52
  55. package/Documentation/CesiumNavigation.html +1 -1
  56. package/Documentation/CesiumTerrainProvider.html +17 -17
  57. package/Documentation/CesiumWidget.html +20 -20
  58. package/Documentation/CheckerboardMaterialProperty.html +9 -9
  59. package/Documentation/CircleEmitter.html +3 -3
  60. package/Documentation/CircleGeometry.html +5 -5
  61. package/Documentation/CircleOutlineGeometry.html +5 -5
  62. package/Documentation/CircleScanEffect.html +1 -1
  63. package/Documentation/CircleWaveMaterialProperty.html +1 -1
  64. package/Documentation/ClassificationPrimitive.html +21 -21
  65. package/Documentation/ClippingGeometry.html +4 -4
  66. package/Documentation/ClippingPlane.html +5 -5
  67. package/Documentation/ClippingPlaneCollection.html +17 -17
  68. package/Documentation/Clock.html +12 -12
  69. package/Documentation/ClockViewModel.html +14 -14
  70. package/Documentation/CollisionDetectionByRender.html +10 -10
  71. package/Documentation/Color.html +185 -185
  72. package/Documentation/ColorGeometryInstanceAttribute.html +8 -8
  73. package/Documentation/ColorMaterialProperty.html +7 -7
  74. package/Documentation/Command.html +4 -4
  75. package/Documentation/CompositeEntityCollection.html +21 -21
  76. package/Documentation/CompositeMaterialProperty.html +7 -7
  77. package/Documentation/CompositePositionProperty.html +8 -8
  78. package/Documentation/CompositeProperty.html +6 -6
  79. package/Documentation/CompressedTextureBuffer.html +8 -8
  80. package/Documentation/ConditionsExpression.html +4 -4
  81. package/Documentation/ConeEmitter.html +1 -1
  82. package/Documentation/ConstantPositionProperty.html +8 -8
  83. package/Documentation/ConstantProperty.html +8 -8
  84. package/Documentation/CoplanarPolygonGeometry.html +6 -6
  85. package/Documentation/CoplanarPolygonOutlineGeometry.html +6 -6
  86. package/Documentation/CorridorGeometry.html +6 -6
  87. package/Documentation/CorridorGeometryUpdater.html +3 -3
  88. package/Documentation/CorridorGraphics.html +23 -23
  89. package/Documentation/CorridorOutlineGeometry.html +5 -5
  90. package/Documentation/Credit.html +7 -7
  91. package/Documentation/CreditDisplay.html +11 -11
  92. package/Documentation/CubicRealPolynomial.html +3 -3
  93. package/Documentation/CullingVolume.html +4 -4
  94. package/Documentation/CustomDataSource.html +11 -11
  95. package/Documentation/CustomHeightmapTerrainProvider.html +15 -15
  96. package/Documentation/CustomProjection.html +5 -5
  97. package/Documentation/CustomShader.html +1 -1
  98. package/Documentation/CustomTilingScheme.html +16 -54
  99. package/Documentation/CutFillAnalysis.html +17 -17
  100. package/Documentation/CuttingTool.html +11 -11
  101. package/Documentation/CylinderGeometry.html +5 -5
  102. package/Documentation/CylinderGeometryUpdater.html +3 -3
  103. package/Documentation/CylinderGraphics.html +19 -19
  104. package/Documentation/CylinderOutlineGeometry.html +5 -5
  105. package/Documentation/CzmlDataSource.html +22 -22
  106. package/Documentation/DataSource.html +11 -11
  107. package/Documentation/DataSourceClock.html +12 -12
  108. package/Documentation/DataSourceCollection.html +18 -18
  109. package/Documentation/DataSourceDisplay.html +10 -10
  110. package/Documentation/DebugAppearance.html +12 -12
  111. package/Documentation/DebugCameraPrimitive.html +5 -5
  112. package/Documentation/DebugModelMatrixPrimitive.html +8 -8
  113. package/Documentation/DefaultProxy.html +2 -2
  114. package/Documentation/DeveloperError.html +4 -4
  115. package/Documentation/DirectionalLight.html +4 -4
  116. package/Documentation/DiscardEmptyTileImagePolicy.html +4 -4
  117. package/Documentation/DiscardMissingTileImagePolicy.html +3 -3
  118. package/Documentation/DistanceDisplayCondition.html +10 -10
  119. package/Documentation/DistanceDisplayConditionGeometryInstanceAttribute.html +7 -7
  120. package/Documentation/DrawElement.html +9 -9
  121. package/Documentation/DrawTool.html +4 -4
  122. package/Documentation/DynamicEntityVisualizer.html +1 -1
  123. package/Documentation/DynamicLightLineEffect.html +13 -13
  124. package/Documentation/EasingFunction.html +33 -33
  125. package/Documentation/EditTool.html +15 -15
  126. package/Documentation/EllipseGeometry.html +6 -6
  127. package/Documentation/EllipseGeometryUpdater.html +4 -4
  128. package/Documentation/EllipseGraphics.html +25 -25
  129. package/Documentation/EllipseOutlineGeometry.html +5 -5
  130. package/Documentation/Ellipsoid.html +34 -34
  131. package/Documentation/EllipsoidGeodesic.html +10 -10
  132. package/Documentation/EllipsoidGeometry.html +5 -5
  133. package/Documentation/EllipsoidGeometryUpdater.html +3 -3
  134. package/Documentation/EllipsoidGraphics.html +23 -23
  135. package/Documentation/EllipsoidOutlineGeometry.html +5 -5
  136. package/Documentation/EllipsoidRhumbLine.html +12 -12
  137. package/Documentation/EllipsoidSurfaceAppearance.html +15 -15
  138. package/Documentation/EllipsoidTangentPlane.html +14 -14
  139. package/Documentation/EllipsoidTerrainProvider.html +13 -13
  140. package/Documentation/Entity.html +40 -40
  141. package/Documentation/EntityCluster.html +11 -11
  142. package/Documentation/EntityCollection.html +17 -17
  143. package/Documentation/EntityView.html +7 -7
  144. package/Documentation/Event.html +6 -6
  145. package/Documentation/EventHelper.html +4 -4
  146. package/Documentation/Expression.html +4 -4
  147. package/Documentation/FeatureDetection.html +9 -9
  148. package/Documentation/FlattenTool.html +34 -6
  149. package/Documentation/FloodAnalysis.html +16 -16
  150. package/Documentation/FloodAnalysisReflection.html +9 -9
  151. package/Documentation/Fog.html +5 -5
  152. package/Documentation/FrameRateMonitor.html +16 -16
  153. package/Documentation/FrustumGeometry.html +5 -5
  154. package/Documentation/FrustumOutlineGeometry.html +5 -5
  155. package/Documentation/Fullscreen.html +9 -9
  156. package/Documentation/FullscreenButton.html +5 -5
  157. package/Documentation/FullscreenButtonViewModel.html +8 -8
  158. package/Documentation/GaodeImageryProvider.html +29 -29
  159. package/Documentation/GaodeProjection.html +7 -7
  160. package/Documentation/GeoJsonDataSource.html +27 -27
  161. package/Documentation/Geocoder.html +7 -7
  162. package/Documentation/GeocoderService.html +3 -3
  163. package/Documentation/GeocoderViewModel.html +14 -14
  164. package/Documentation/GeographicProjection.html +94 -4
  165. package/Documentation/GeographicTilingScheme.html +10 -10
  166. package/Documentation/Geometry.html +6 -6
  167. package/Documentation/GeometryAttribute.html +5 -5
  168. package/Documentation/GeometryAttributes.html +7 -7
  169. package/Documentation/GeometryFactory.html +2 -2
  170. package/Documentation/GeometryInstance.html +5 -5
  171. package/Documentation/GeometryInstanceAttribute.html +5 -5
  172. package/Documentation/GeometryPipeline.html +13 -13
  173. package/Documentation/GeometryUpdater.html +22 -22
  174. package/Documentation/GeometryVisualizer.html +4 -4
  175. package/Documentation/GetFeatureInfoFormat.html +1 -1
  176. package/Documentation/Globe.html +47 -47
  177. package/Documentation/GlobeEffect.html +8 -8
  178. package/Documentation/GlobeIndependentTranslucency.html +10 -10
  179. package/Documentation/GlobeTranslucency.html +7 -7
  180. package/Documentation/GoogleEarthEnterpriseImageryProvider.html +29 -29
  181. package/Documentation/GoogleEarthEnterpriseMapsProvider.html +34 -34
  182. package/Documentation/GoogleEarthEnterpriseMetadata.html +14 -14
  183. package/Documentation/GoogleEarthEnterpriseTerrainData.html +7 -7
  184. package/Documentation/GoogleEarthEnterpriseTerrainProvider.html +15 -15
  185. package/Documentation/GoogleMapImageryProvider.html +1 -1
  186. package/Documentation/Graphic.html +31 -31
  187. package/Documentation/GraphicTransformTool.html +7 -7
  188. package/Documentation/GraphicsLayer.html +27 -27
  189. package/Documentation/GregorianDate.html +9 -9
  190. package/Documentation/GridImageryProvider.html +30 -30
  191. package/Documentation/GridMaterialProperty.html +11 -11
  192. package/Documentation/GroundGeometryUpdater.html +3 -3
  193. package/Documentation/GroundPolylineGeometry.html +7 -7
  194. package/Documentation/GroundPolylinePrimitive.html +19 -19
  195. package/Documentation/GroundPrimitive.html +24 -24
  196. package/Documentation/GroundPrimitiveRectangleGenerater.html +3 -3
  197. package/Documentation/HashMap.html +12 -12
  198. package/Documentation/HeadingPitchRange.html +5 -5
  199. package/Documentation/HeadingPitchRoll.html +13 -13
  200. package/Documentation/HeightLimited.html +4 -4
  201. package/Documentation/HeightModelEffect.html +8 -8
  202. package/Documentation/HeightmapTerrainData.html +7 -7
  203. package/Documentation/HermitePolynomialApproximation.html +4 -4
  204. package/Documentation/HermiteSpline.html +12 -12
  205. package/Documentation/HilbertOrder.html +1 -1
  206. package/Documentation/HomeButton.html +5 -5
  207. package/Documentation/HomeButtonViewModel.html +5 -5
  208. package/Documentation/ImageMaterialProperty.html +10 -10
  209. package/Documentation/ImageryLayer.html +34 -34
  210. package/Documentation/ImageryLayerCollection.html +25 -25
  211. package/Documentation/ImageryLayerFeatureInfo.html +8 -8
  212. package/Documentation/ImageryProvider.html +88 -28
  213. package/Documentation/ImprovedNoise.html +1 -1
  214. package/Documentation/InfoBox.html +6 -6
  215. package/Documentation/InfoBoxViewModel.html +11 -11
  216. package/Documentation/IntersectionTests.html +11 -11
  217. package/Documentation/Intersections2D.html +4 -4
  218. package/Documentation/Interval.html +3 -3
  219. package/Documentation/Ion.html +3 -3
  220. package/Documentation/IonGeocoderService.html +2 -2
  221. package/Documentation/IonImageryProvider.html +28 -28
  222. package/Documentation/IonResource.html +39 -39
  223. package/Documentation/Iso8601.html +4 -4
  224. package/Documentation/JulianDate.html +31 -31
  225. package/Documentation/KeyboardCameraController.html +10 -10
  226. package/Documentation/KmlCamera.html +1 -1
  227. package/Documentation/KmlDataSource.html +20 -20
  228. package/Documentation/KmlFeatureData.html +9 -9
  229. package/Documentation/KmlLookAt.html +1 -1
  230. package/Documentation/KmlTour.html +12 -12
  231. package/Documentation/KmlTourFlyTo.html +5 -5
  232. package/Documentation/KmlTourWait.html +4 -4
  233. package/Documentation/Label.html +30 -30
  234. package/Documentation/LabelCollection.html +15 -15
  235. package/Documentation/LabelGraphics.html +26 -26
  236. package/Documentation/LabelVisualizer.html +4 -4
  237. package/Documentation/LagrangePolynomialApproximation.html +3 -3
  238. package/Documentation/Layers.html +56 -56
  239. package/Documentation/LeapSecond.html +3 -3
  240. package/Documentation/Light.html +3 -3
  241. package/Documentation/LineScanEffect.html +6 -6
  242. package/Documentation/LinearApproximation.html +3 -3
  243. package/Documentation/LinearSpline.html +7 -7
  244. package/Documentation/LonlatProjection.html +4 -4
  245. package/Documentation/M3DTree.html +11 -11
  246. package/Documentation/MapGIS3DTile.html +12 -12
  247. package/Documentation/MapGIS3DTileFeature.html +10 -10
  248. package/Documentation/MapGIS3DTileset.html +86 -86
  249. package/Documentation/MapGISCustomImageryProvider.html +29 -29
  250. package/Documentation/MapGISFeatureGeojsonProvider.html +9 -9
  251. package/Documentation/MapGISFeatureLayer.html +52 -52
  252. package/Documentation/MapGISFeatureProvider.html +9 -9
  253. package/Documentation/MapGISFeatureTilePrimitiveCollection.html +16 -16
  254. package/Documentation/MapGISGeojsonLayer.html +38 -38
  255. package/Documentation/MapGISGeojsonProvider.html +8 -8
  256. package/Documentation/MapGISGeojsonTilePrimitiveCollection.html +16 -16
  257. package/Documentation/MapGISLabelLayer.html +18 -18
  258. package/Documentation/MapGISM3D.html +13 -13
  259. package/Documentation/MapGISM3DSet.html +319 -311
  260. package/Documentation/MapGISM3DTileContent.html +3 -3
  261. package/Documentation/MapGISMapServerImageryProvider.html +4 -4
  262. package/Documentation/MapGISTerrainProvider.html +297 -297
  263. package/Documentation/MapGISTileAvailability.html +1098 -0
  264. package/Documentation/MapGISTileServerImageProvider.html +5 -5
  265. package/Documentation/MapGISVectorGeojsonProvider.html +9 -9
  266. package/Documentation/MapGISVectorLayer.html +50 -50
  267. package/Documentation/MapGISVectorProvider.html +9 -9
  268. package/Documentation/MapGISVectorTilePrimitiveCollection.html +16 -16
  269. package/Documentation/MapProjection.html +4 -4
  270. package/Documentation/MapboxImageryProvider.html +29 -29
  271. package/Documentation/MapboxStyleImageryProvider.html +29 -29
  272. package/Documentation/Material.html +44 -44
  273. package/Documentation/MaterialAppearance.MaterialSupport.html +4 -4
  274. package/Documentation/MaterialAppearance.html +15 -15
  275. package/Documentation/MaterialProperty.html +6 -6
  276. package/Documentation/Math.html +76 -76
  277. package/Documentation/Matrix2.html +41 -41
  278. package/Documentation/Matrix3.html +56 -56
  279. package/Documentation/Matrix4.html +76 -76
  280. package/Documentation/MeasureAreaTool.html +1 -1
  281. package/Documentation/MeasureLengthTool.html +7 -7
  282. package/Documentation/MeasureSlopeTool.html +5 -5
  283. package/Documentation/Model.html +51 -51
  284. package/Documentation/ModelAnimation.html +12 -12
  285. package/Documentation/ModelAnimationCollection.html +10 -10
  286. package/Documentation/ModelEditor.html +1 -1
  287. package/Documentation/ModelExplosion.html +15 -15
  288. package/Documentation/ModelFilterTool.html +5 -5
  289. package/Documentation/ModelGraphics.html +26 -26
  290. package/Documentation/ModelMaterial.html +5 -5
  291. package/Documentation/ModelMesh.html +4 -4
  292. package/Documentation/ModelNode.html +6 -6
  293. package/Documentation/ModelTransformTool.html +244 -17
  294. package/Documentation/ModelVisualizer.html +4 -4
  295. package/Documentation/Moon.html +7 -7
  296. package/Documentation/NavigationControl.html +1 -1
  297. package/Documentation/NavigationHelpButton.html +5 -5
  298. package/Documentation/NavigationHelpButtonViewModel.html +6 -6
  299. package/Documentation/NavigationTool.html +2 -2
  300. package/Documentation/NearFarScalar.html +12 -12
  301. package/Documentation/NeverTileDiscardPolicy.html +3 -3
  302. package/Documentation/NodeTransformationProperty.html +8 -8
  303. package/Documentation/Occluder.html +10 -10
  304. package/Documentation/OpenCageGeocoderService.html +4 -4
  305. package/Documentation/OpenStreetMapImageryProvider.html +98 -33
  306. package/Documentation/OpenWeatherImageryProvider.html +2 -2
  307. package/Documentation/OrientedBoundingBox.html +20 -20
  308. package/Documentation/OrthographicFrustum.html +14 -14
  309. package/Documentation/OrthographicOffCenterFrustum.html +13 -13
  310. package/Documentation/PackableForInterpolation.html +4 -4
  311. package/Documentation/Particle.html +13 -13
  312. package/Documentation/ParticleBurst.html +5 -5
  313. package/Documentation/ParticleEmitter.html +1 -1
  314. package/Documentation/ParticleSystem.html +29 -29
  315. package/Documentation/PathGraphics.html +12 -12
  316. package/Documentation/PathVisualizer.html +4 -4
  317. package/Documentation/PeliasGeocoderService.html +3 -3
  318. package/Documentation/PerInstanceColorAppearance.html +15 -15
  319. package/Documentation/PerformanceWatchdog.html +5 -5
  320. package/Documentation/PerformanceWatchdogViewModel.html +6 -6
  321. package/Documentation/PerspectiveFrustum.html +18 -18
  322. package/Documentation/PerspectiveOffCenterFrustum.html +14 -14
  323. package/Documentation/PinBuilder.html +5 -5
  324. package/Documentation/Plane.html +13 -13
  325. package/Documentation/PlaneGeometry.html +5 -5
  326. package/Documentation/PlaneGeometryUpdater.html +3 -3
  327. package/Documentation/PlaneGraphics.html +15 -15
  328. package/Documentation/PlaneOutlineGeometry.html +5 -5
  329. package/Documentation/PointCloudShading.html +11 -11
  330. package/Documentation/PointGraphics.html +15 -15
  331. package/Documentation/PointPrimitive.html +14 -14
  332. package/Documentation/PointPrimitiveCollection.html +15 -15
  333. package/Documentation/PointVisualizer.html +4 -4
  334. package/Documentation/PolygonGeometry.html +8 -8
  335. package/Documentation/PolygonGeometryUpdater.html +3 -3
  336. package/Documentation/PolygonGraphics.html +26 -26
  337. package/Documentation/PolygonHierarchy.html +3 -3
  338. package/Documentation/PolygonOutlineGeometry.html +6 -6
  339. package/Documentation/Polyline.html +8 -8
  340. package/Documentation/PolylineArrowMaterialProperty.html +7 -7
  341. package/Documentation/PolylineCollection.html +15 -15
  342. package/Documentation/PolylineColorAppearance.html +12 -12
  343. package/Documentation/PolylineDashMaterialProperty.html +10 -10
  344. package/Documentation/PolylineGeometry.html +5 -5
  345. package/Documentation/PolylineGeometryUpdater.html +25 -25
  346. package/Documentation/PolylineGlowMaterialProperty.html +9 -9
  347. package/Documentation/PolylineGraphics.html +17 -17
  348. package/Documentation/PolylineMaterialAppearance.html +12 -12
  349. package/Documentation/PolylineOutlineMaterialProperty.html +9 -9
  350. package/Documentation/PolylineTrailLinkMaterialProperty.html +1 -1
  351. package/Documentation/PolylineVisualizer.html +4 -4
  352. package/Documentation/PolylineVolumeAnimationGeometry.html +14 -14
  353. package/Documentation/PolylineVolumeGeometry.html +5 -5
  354. package/Documentation/PolylineVolumeGeometryUpdater.html +3 -3
  355. package/Documentation/PolylineVolumeGraphics.html +17 -17
  356. package/Documentation/PolylineVolumeOutlineGeometry.html +5 -5
  357. package/Documentation/PositionProperty.html +7 -7
  358. package/Documentation/PositionPropertyArray.html +8 -8
  359. package/Documentation/PostProcessStage.html +16 -16
  360. package/Documentation/PostProcessStageCollection.html +13 -13
  361. package/Documentation/PostProcessStageComposite.html +11 -11
  362. package/Documentation/PostProcessStageLibrary.html +15 -15
  363. package/Documentation/Primitive.html +120 -21
  364. package/Documentation/PrimitiveCollection.html +15 -15
  365. package/Documentation/ProjectionPicker.html +5 -5
  366. package/Documentation/ProjectionPickerViewModel.html +13 -13
  367. package/Documentation/Property.html +5 -5
  368. package/Documentation/PropertyArray.html +6 -6
  369. package/Documentation/PropertyBag.html +10 -10
  370. package/Documentation/ProviderViewModel.html +7 -7
  371. package/Documentation/Proxy.html +2 -2
  372. package/Documentation/QuadraticRealPolynomial.html +3 -3
  373. package/Documentation/QuantizedMeshTerrainData.html +7 -7
  374. package/Documentation/QuarticRealPolynomial.html +3 -3
  375. package/Documentation/Quaternion.html +45 -45
  376. package/Documentation/QuaternionSpline.html +7 -7
  377. package/Documentation/Queue.html +9 -9
  378. package/Documentation/RadarMaterialProperty.html +1 -1
  379. package/Documentation/RadarScanEffect.html +3 -3
  380. package/Documentation/Ray.html +5 -5
  381. package/Documentation/ReImg.html +2 -2
  382. package/Documentation/Rectangle.html +35 -35
  383. package/Documentation/RectangleGeometry.html +6 -6
  384. package/Documentation/RectangleGeometryUpdater.html +3 -3
  385. package/Documentation/RectangleGraphics.html +23 -23
  386. package/Documentation/RectangleOutlineGeometry.html +5 -5
  387. package/Documentation/ReferenceProperty.html +13 -13
  388. package/Documentation/Request.html +14 -14
  389. package/Documentation/RequestErrorEvent.html +5 -5
  390. package/Documentation/RequestScheduler.html +5 -5
  391. package/Documentation/ResetViewNavigationControl.html +7 -7
  392. package/Documentation/Resource.html +54 -54
  393. package/Documentation/RoamParticle.html +25 -25
  394. package/Documentation/RuntimeError.html +4 -4
  395. package/Documentation/SampleElevationTool.html +2 -2
  396. package/Documentation/SampledPositionProperty.html +20 -20
  397. package/Documentation/SampledProperty.html +19 -19
  398. package/Documentation/Scene.html +119 -119
  399. package/Documentation/SceneLayer.html +31 -31
  400. package/Documentation/SceneModePicker.html +5 -5
  401. package/Documentation/SceneModePickerViewModel.html +15 -15
  402. package/Documentation/SceneProjector.html +30 -30
  403. package/Documentation/SceneProjectorEx.html +19 -19
  404. package/Documentation/SceneTransforms.html +3 -3
  405. package/Documentation/ScreenSpaceCameraController.html +25 -25
  406. package/Documentation/ScreenSpaceEventHandler.html +8 -8
  407. package/Documentation/SearchlightEffect.html +4 -4
  408. package/Documentation/SelectTool.html +4 -4
  409. package/Documentation/SelectionIndicator.html +5 -5
  410. package/Documentation/SelectionIndicatorViewModel.html +12 -12
  411. package/Documentation/ShadowAnalysis.html +12 -12
  412. package/Documentation/ShadowMap.html +8 -8
  413. package/Documentation/ShadowRateAnalysis.html +14 -14
  414. package/Documentation/ShowGeometryInstanceAttribute.html +6 -6
  415. package/Documentation/Simon1994PlanetaryPositions.html +3 -3
  416. package/Documentation/SimplePolylineGeometry.html +5 -5
  417. package/Documentation/SingleTileImageryProvider.html +29 -29
  418. package/Documentation/SkyAtmosphere.html +9 -9
  419. package/Documentation/SkyBox.html +6 -6
  420. package/Documentation/SkyLineAnalysis.html +3 -3
  421. package/Documentation/SphereEmitter.html +2 -2
  422. package/Documentation/SphereGeometry.html +5 -5
  423. package/Documentation/SphereOutlineGeometry.html +5 -5
  424. package/Documentation/Spherical.html +13 -13
  425. package/Documentation/Spline.html +7 -7
  426. package/Documentation/StableParticle.html +28 -28
  427. package/Documentation/StripeMaterialProperty.html +11 -11
  428. package/Documentation/Style.html +26 -26
  429. package/Documentation/StyleExpression.html +3 -3
  430. package/Documentation/Sun.html +5 -5
  431. package/Documentation/SunLight.html +3 -3
  432. package/Documentation/SvgPathBindingHandler.html +2 -2
  433. package/Documentation/TaskProcessor.html +5 -5
  434. package/Documentation/TerrainAnalyse.html +14 -14
  435. package/Documentation/TerrainData.html +7 -7
  436. package/Documentation/TerrainProfile.html +4 -4
  437. package/Documentation/TerrainProvider.html +16 -16
  438. package/Documentation/Texture3D.html +1 -1
  439. package/Documentation/ThemeManager.html +14 -14
  440. package/Documentation/TiandituImageryProvider.html +4 -4
  441. package/Documentation/TileAvailability.html +6 -6
  442. package/Documentation/TileCoordinatesImageryProvider.html +28 -28
  443. package/Documentation/TileDiscardPolicy.html +3 -3
  444. package/Documentation/TileMapServiceImageryProvider.html +98 -33
  445. package/Documentation/TileProviderError.html +12 -12
  446. package/Documentation/TilingScheme.html +10 -10
  447. package/Documentation/TimeDynamicImagery.html +6 -6
  448. package/Documentation/TimeDynamicPointCloud.html +16 -16
  449. package/Documentation/TimeInterval.html +21 -21
  450. package/Documentation/TimeIntervalCollection.html +23 -23
  451. package/Documentation/TimeIntervalCollectionPositionProperty.html +8 -8
  452. package/Documentation/TimeIntervalCollectionProperty.html +6 -6
  453. package/Documentation/Timeline.html +6 -6
  454. package/Documentation/ToggleButtonViewModel.html +4 -4
  455. package/Documentation/Tooltip.html +5 -5
  456. package/Documentation/TransactionImplement.html +5 -5
  457. package/Documentation/Transforms.html +16 -16
  458. package/Documentation/TranslationRotationScale.html +5 -5
  459. package/Documentation/TriangulationTool.html +8 -8
  460. package/Documentation/TridiagonalSystemSolver.html +2 -2
  461. package/Documentation/TrustedServers.html +5 -5
  462. package/Documentation/UrlTemplateImageryProvider.html +130 -33
  463. package/Documentation/UserInterfaceControl.html +10 -10
  464. package/Documentation/VRButton.html +5 -5
  465. package/Documentation/VRButtonViewModel.html +8 -8
  466. package/Documentation/VRTheWorldTerrainProvider.html +13 -13
  467. package/Documentation/VelocityOrientationProperty.html +7 -7
  468. package/Documentation/VelocityVectorProperty.html +7 -7
  469. package/Documentation/VertexFormat.html +18 -18
  470. package/Documentation/VideoSynchronizer.html +7 -7
  471. package/Documentation/Viewer.html +56 -56
  472. package/Documentation/ViewportQuad.html +7 -7
  473. package/Documentation/ViewshedAnalysis.html +190 -10
  474. package/Documentation/VisiblityAnalysis.html +13 -13
  475. package/Documentation/VisualAnalysisManager.html +179 -7
  476. package/Documentation/Visualizer.html +4 -4
  477. package/Documentation/VoxelPrimitive.html +9 -9
  478. package/Documentation/WallGeometry.html +6 -6
  479. package/Documentation/WallGeometryUpdater.html +3 -3
  480. package/Documentation/WallGraphics.html +17 -17
  481. package/Documentation/WallOutlineGeometry.html +6 -6
  482. package/Documentation/WaterReflection.html +9 -9
  483. package/Documentation/WeatherEffect.html +8 -8
  484. package/Documentation/WebMapServiceImageryProvider.html +36 -36
  485. package/Documentation/WebMapTileServiceImageryProvider.html +33 -33
  486. package/Documentation/WebMercatorProjection.html +97 -7
  487. package/Documentation/WebMercatorTilingScheme.html +10 -10
  488. package/Documentation/WeightSpline.html +7 -7
  489. package/Documentation/WfsProvider.html +9 -9
  490. package/Documentation/Wind3D.html +13 -13
  491. package/Documentation/WindowLightEffect.html +4 -4
  492. package/Documentation/ZoomNavigationControl.html +5 -5
  493. package/Documentation/global.html +141 -141
  494. package/Documentation/global.html#ArcType +4 -4
  495. package/Documentation/global.html#Axis +11 -11
  496. package/Documentation/global.html#BaiduProject +19 -19
  497. package/Documentation/global.html#BingMapsStyle +11 -11
  498. package/Documentation/global.html#BlendEquation +6 -6
  499. package/Documentation/global.html#BlendFunction +16 -16
  500. package/Documentation/global.html#BlendOption +4 -4
  501. package/Documentation/global.html#CameraEventType +6 -6
  502. package/Documentation/global.html#Cesium3DTileColorBlendMode +4 -4
  503. package/Documentation/global.html#ClassificationType +4 -4
  504. package/Documentation/global.html#ClippingGeometryType +8 -8
  505. package/Documentation/global.html#ClockRange +4 -4
  506. package/Documentation/global.html#ClockStep +4 -4
  507. package/Documentation/global.html#ColorBlendMode +4 -4
  508. package/Documentation/global.html#ComponentDatatype +15 -15
  509. package/Documentation/global.html#CoordnateTransform +6 -6
  510. package/Documentation/global.html#CornerType +4 -4
  511. package/Documentation/global.html#CullFace +4 -4
  512. package/Documentation/global.html#DepthFunction +9 -9
  513. package/Documentation/global.html#ExtrapolationType +4 -4
  514. package/Documentation/global.html#GeocodeType +3 -3
  515. package/Documentation/global.html#HeightReference +4 -4
  516. package/Documentation/global.html#HeightmapEncoding +3 -3
  517. package/Documentation/global.html#HorizontalOrigin +4 -4
  518. package/Documentation/global.html#ImagerySplitDirection +4 -4
  519. package/Documentation/global.html#IndexDatatype +9 -9
  520. package/Documentation/global.html#InterceptorsUtil +1 -1
  521. package/Documentation/global.html#Intersect +4 -4
  522. package/Documentation/global.html#IonWorldImageryStyle +4 -4
  523. package/Documentation/global.html#KeyboardEventModifier +4 -4
  524. package/Documentation/global.html#LabelStyle +4 -4
  525. package/Documentation/global.html#LightingMode +3 -3
  526. package/Documentation/global.html#MapGISCustomTilingScheme +16 -16
  527. package/Documentation/global.html#MapMode2D +3 -3
  528. package/Documentation/global.html#ModelAnimationLoop +4 -4
  529. package/Documentation/global.html#ModelExplosionType +5 -5
  530. package/Documentation/global.html#OutlineRenderMode +4 -4
  531. package/Documentation/global.html#Pass +17 -17
  532. package/Documentation/global.html#PixelDatatype +10 -10
  533. package/Documentation/global.html#PixelFormat +21 -21
  534. package/Documentation/global.html#PointLight +1 -1
  535. package/Documentation/global.html#PostProcessStageSampleMode +3 -3
  536. package/Documentation/global.html#PrimitiveType +8 -8
  537. package/Documentation/global.html#ReferenceFrame +3 -3
  538. package/Documentation/global.html#RequestState +7 -7
  539. package/Documentation/global.html#RequestType +5 -5
  540. package/Documentation/global.html#SceneMode +6 -6
  541. package/Documentation/global.html#ScreenSpaceEventType +16 -16
  542. package/Documentation/global.html#SectionRender +1 -1
  543. package/Documentation/global.html#ShadowMode +5 -5
  544. package/Documentation/global.html#ShadowRateDrawCommand +3 -3
  545. package/Documentation/global.html#SpotLight +1 -1
  546. package/Documentation/global.html#Spyglass +1 -1
  547. package/Documentation/global.html#StencilFunction +9 -9
  548. package/Documentation/global.html#StencilOperation +9 -9
  549. package/Documentation/global.html#StripeOrientation +3 -3
  550. package/Documentation/global.html#SwipeModeType +7 -7
  551. package/Documentation/global.html#SwiperController +1 -1
  552. package/Documentation/global.html#TextureMagnificationFilter +3 -3
  553. package/Documentation/global.html#TextureMinificationFilter +7 -7
  554. package/Documentation/global.html#TimeStandard +3 -3
  555. package/Documentation/global.html#TopoJSONUtil +1 -1
  556. package/Documentation/global.html#UrlUtil +1 -1
  557. package/Documentation/global.html#VerticalOrigin +5 -5
  558. package/Documentation/global.html#Visibility +4 -4
  559. package/Documentation/global.html#WebGLConstants +583 -583
  560. package/Documentation/global.html#WindingOrder +3 -3
  561. package/Documentation/global.html#XmlUtil +137 -2
  562. package/Documentation/global.html#angle +1 -1
  563. package/Documentation/global.html#barycentricCoordinates +1 -1
  564. package/Documentation/global.html#binarySearch +1 -1
  565. package/Documentation/global.html#binarySearchComparator +1 -1
  566. package/Documentation/global.html#buildModuleUrl +3 -3
  567. package/Documentation/global.html#cancelAnimationFrame +1 -1
  568. package/Documentation/global.html#clippingFillImage +1 -1
  569. package/Documentation/global.html#clone +1 -1
  570. package/Documentation/global.html#color +3 -3
  571. package/Documentation/global.html#combine +1 -1
  572. package/Documentation/global.html#createCommand +1 -1
  573. package/Documentation/global.html#createCommonTileInfo +3 -1
  574. package/Documentation/global.html#createElevationBandMaterial +1 -1
  575. package/Documentation/global.html#createElevationBandMaterialBand +1 -1
  576. package/Documentation/global.html#createElevationBandMaterialEntry +1 -1
  577. package/Documentation/global.html#createGuid +1 -1
  578. package/Documentation/global.html#createOsmBuildings +1 -1
  579. package/Documentation/global.html#createTangentSpaceDebugPrimitive +1 -1
  580. package/Documentation/global.html#createWorldImagery +1 -1
  581. package/Documentation/global.html#createWorldTerrain +1 -1
  582. package/Documentation/global.html#decay +2 -2
  583. package/Documentation/global.html#defaultValue +2 -2
  584. package/Documentation/global.html#defined +1 -1
  585. package/Documentation/global.html#destroyObject +1 -1
  586. package/Documentation/global.html#direction +2 -2
  587. package/Documentation/global.html#distance +2 -2
  588. package/Documentation/global.html#enableExplosion +1 -1
  589. package/Documentation/global.html#exportKml +1 -1
  590. package/Documentation/global.html#exportKmlModelCallback +1 -1
  591. package/Documentation/global.html#exportKmlResultKml +1 -1
  592. package/Documentation/global.html#exportKmlResultKmz +1 -1
  593. package/Documentation/global.html#formatError +1 -1
  594. package/Documentation/global.html#getAbsoluteUri +1 -1
  595. package/Documentation/global.html#getBaseUri +1 -1
  596. package/Documentation/global.html#getExtensionFromUri +1 -1
  597. package/Documentation/global.html#getFilenameFromUri +1 -1
  598. package/Documentation/global.html#getImagePixels +1 -1
  599. package/Documentation/global.html#getLayerToUse +150 -0
  600. package/Documentation/global.html#getTimestamp +1 -1
  601. package/Documentation/global.html#getViewModel +1 -1
  602. package/Documentation/global.html#hasText +1 -1
  603. package/Documentation/global.html#id +3 -3
  604. package/Documentation/global.html#intensity +3 -3
  605. package/Documentation/global.html#isGeographic +1 -1
  606. package/Documentation/global.html#isLeapYear +1 -1
  607. package/Documentation/global.html#mergeSort +1 -1
  608. package/Documentation/global.html#mergeSortComparator +1 -1
  609. package/Documentation/global.html#objectToQuery +1 -1
  610. package/Documentation/global.html#penumbra +1 -1
  611. package/Documentation/global.html#pointInsideTriangle +1 -1
  612. package/Documentation/global.html#position +2 -2
  613. package/Documentation/global.html#queryToObject +1 -1
  614. package/Documentation/global.html#requestAnimationFrame +1 -1
  615. package/Documentation/global.html#requestAnimationFrameCallback +1 -1
  616. package/Documentation/global.html#sampleTerrain +1 -1
  617. package/Documentation/global.html#sampleTerrainMostDetailed +1 -1
  618. package/Documentation/global.html#show +1 -1
  619. package/Documentation/global.html#startTime +1 -1
  620. package/Documentation/global.html#subdivideArray +1 -1
  621. package/Documentation/global.html#terrainProvider +1 -1
  622. package/Documentation/global.html#viewerCesium3DTilesInspectorMixin +1 -1
  623. package/Documentation/global.html#viewerCesiumInspectorMixin +1 -1
  624. package/Documentation/global.html#viewerDragDropMixin +8 -8
  625. package/Documentation/global.html#viewerPerformanceWatchdogMixin +1 -1
  626. package/Documentation/global.html#writeTextToCanvas +1 -1
  627. package/Documentation/types.txt +1 -1
  628. package/README.md +91 -25
  629. package/dist/Cesium.d.ts +719 -84
  630. package/dist/Cesium.js +298 -19
  631. package/dist/Workers/Color-ff1fdef4.js +1 -0
  632. package/dist/Workers/PrimitivePipeline-a7cf99d1.js +1 -0
  633. package/dist/Workers/combineGeometry.js +1 -1
  634. package/dist/Workers/createBoxGeometry.js +1 -1
  635. package/dist/Workers/createBoxOutlineGeometry.js +1 -1
  636. package/dist/Workers/createCircleGeometry.js +1 -1
  637. package/dist/Workers/createCircleOutlineGeometry.js +1 -1
  638. package/dist/Workers/createCoplanarPolygonGeometry.js +1 -1
  639. package/dist/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
  640. package/dist/Workers/createCorridorGeometry.js +1 -1
  641. package/dist/Workers/createCorridorOutlineGeometry.js +1 -1
  642. package/dist/Workers/createCylinderGeometry.js +1 -1
  643. package/dist/Workers/createCylinderOutlineGeometry.js +1 -1
  644. package/dist/Workers/createEllipseGeometry.js +1 -1
  645. package/dist/Workers/createEllipseOutlineGeometry.js +1 -1
  646. package/dist/Workers/createEllipsoidGeometry.js +1 -1
  647. package/dist/Workers/createEllipsoidOutlineGeometry.js +1 -1
  648. package/dist/Workers/createFrustumGeometry.js +1 -1
  649. package/dist/Workers/createFrustumOutlineGeometry.js +1 -1
  650. package/dist/Workers/createGeometry.js +1 -1
  651. package/dist/Workers/createGroundPolylineGeometry.js +1 -1
  652. package/dist/Workers/createPlaneGeometry.js +1 -1
  653. package/dist/Workers/createPlaneOutlineGeometry.js +1 -1
  654. package/dist/Workers/createPolygonGeometry.js +1 -1
  655. package/dist/Workers/createPolygonOutlineGeometry.js +1 -1
  656. package/dist/Workers/createPolylineGeometry.js +1 -1
  657. package/dist/Workers/createPolylineVolumeGeometry.js +1 -1
  658. package/dist/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
  659. package/dist/Workers/createRectangleGeometry.js +1 -1
  660. package/dist/Workers/createRectangleOutlineGeometry.js +1 -1
  661. package/dist/Workers/createSimplePolylineGeometry.js +1 -1
  662. package/dist/Workers/createSphereGeometry.js +1 -1
  663. package/dist/Workers/createSphereOutlineGeometry.js +1 -1
  664. package/dist/Workers/createVectorTileGeometries.js +1 -1
  665. package/dist/Workers/createVectorTilePolygons.js +1 -1
  666. package/dist/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
  667. package/dist/Workers/createVerticesFromHeightmap.js +1 -1
  668. package/dist/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
  669. package/dist/Workers/createWallGeometry.js +1 -1
  670. package/dist/Workers/createWallOutlineGeometry.js +1 -1
  671. package/dist/Workers/uncompressZip.js +1 -1
  672. package/dist/Workers/upsampleQuantizedTerrainMesh.js +1 -1
  673. package/package.json +1 -1
  674. package/Documentation/M3DTile.html +0 -854
  675. package/Documentation/M3DTileFeature.html +0 -1113
  676. package/Documentation/M3DTileset.html +0 -4589
  677. package/Documentation/global.html#inherits +0 -150
  678. package/dist/ThirdParty/unzip.min.js +0 -1
  679. package/dist/Workers/AttributeCompression-7a920947.js +0 -1
  680. package/dist/Workers/AttributeCompression-b9605c73.js +0 -1
  681. package/dist/Workers/AttributeCompression-ceaf1f7d.js +0 -1
  682. package/dist/Workers/AxisAlignedBoundingBox-3005be1a.js +0 -1
  683. package/dist/Workers/AxisAlignedBoundingBox-6524b214.js +0 -1
  684. package/dist/Workers/AxisAlignedBoundingBox-73a9d462.js +0 -1
  685. package/dist/Workers/AxisAlignedBoundingBox-cf02d6c7.js +0 -1
  686. package/dist/Workers/AxisAlignedBoundingBox-d2a93b66.js +0 -1
  687. package/dist/Workers/AxisAlignedBoundingBox-fe8fad3e.js +0 -1
  688. package/dist/Workers/BoundingRectangle-2bb5d73d.js +0 -1
  689. package/dist/Workers/BoundingRectangle-487613f3.js +0 -1
  690. package/dist/Workers/BoundingRectangle-7f4e0022.js +0 -1
  691. package/dist/Workers/BoundingRectangle-8d042be0.js +0 -1
  692. package/dist/Workers/BoundingRectangle-b3ae8525.js +0 -1
  693. package/dist/Workers/BoundingRectangle-ce593811.js +0 -1
  694. package/dist/Workers/BoxGeometry-2d60329e.js +0 -1
  695. package/dist/Workers/BoxGeometry-3726be8b.js +0 -1
  696. package/dist/Workers/BoxGeometry-76f70c3f.js +0 -1
  697. package/dist/Workers/BoxGeometry-91ce90fe.js +0 -1
  698. package/dist/Workers/BoxGeometry-d1b4ef4f.js +0 -1
  699. package/dist/Workers/BoxGeometry-f55ff093.js +0 -1
  700. package/dist/Workers/Cartesian2-078e6458.js +0 -1
  701. package/dist/Workers/Cartesian2-c1eb9da0.js +0 -1
  702. package/dist/Workers/Check-f996273c.js +0 -1
  703. package/dist/Workers/Color-3aa21182.js +0 -1
  704. package/dist/Workers/Color-527894a9.js +0 -1
  705. package/dist/Workers/Color-68105b00.js +0 -1
  706. package/dist/Workers/Color-d7f86623.js +0 -1
  707. package/dist/Workers/Color-e9b0b56b.js +0 -1
  708. package/dist/Workers/Color-fb7b0391.js +0 -1
  709. package/dist/Workers/ComponentDatatype-e44126e4.js +0 -1
  710. package/dist/Workers/CoplanarPolygonGeometryLibrary-4529853e.js +0 -1
  711. package/dist/Workers/CoplanarPolygonGeometryLibrary-bd04145a.js +0 -1
  712. package/dist/Workers/CoplanarPolygonGeometryLibrary-c9ea5c4a.js +0 -1
  713. package/dist/Workers/CoplanarPolygonGeometryLibrary-cd63dc83.js +0 -1
  714. package/dist/Workers/CoplanarPolygonGeometryLibrary-df225097.js +0 -1
  715. package/dist/Workers/CoplanarPolygonGeometryLibrary-ed9489b1.js +0 -1
  716. package/dist/Workers/CorridorGeometryLibrary-259dc831.js +0 -1
  717. package/dist/Workers/CorridorGeometryLibrary-353eec0a.js +0 -1
  718. package/dist/Workers/CorridorGeometryLibrary-4c3150e8.js +0 -1
  719. package/dist/Workers/CorridorGeometryLibrary-6546be88.js +0 -1
  720. package/dist/Workers/CorridorGeometryLibrary-83c470f2.js +0 -1
  721. package/dist/Workers/CorridorGeometryLibrary-90fffecc.js +0 -1
  722. package/dist/Workers/CylinderGeometry-325283f2.js +0 -1
  723. package/dist/Workers/CylinderGeometry-5f25fc13.js +0 -1
  724. package/dist/Workers/CylinderGeometry-6c32efdc.js +0 -1
  725. package/dist/Workers/CylinderGeometry-7cfc0752.js +0 -1
  726. package/dist/Workers/CylinderGeometry-a8375e63.js +0 -1
  727. package/dist/Workers/CylinderGeometry-c16b0480.js +0 -1
  728. package/dist/Workers/CylinderGeometryLibrary-88cb80d2.js +0 -1
  729. package/dist/Workers/EllipseGeometry-4dc2f3cd.js +0 -1
  730. package/dist/Workers/EllipseGeometry-5bc7efb7.js +0 -1
  731. package/dist/Workers/EllipseGeometry-7ba3aa6f.js +0 -1
  732. package/dist/Workers/EllipseGeometry-9a5145f6.js +0 -1
  733. package/dist/Workers/EllipseGeometry-a00d9fde.js +0 -1
  734. package/dist/Workers/EllipseGeometry-d5153296.js +0 -1
  735. package/dist/Workers/EllipseGeometryLibrary-46efe941.js +0 -1
  736. package/dist/Workers/EllipseGeometryLibrary-4c7e22bb.js +0 -1
  737. package/dist/Workers/EllipseGeometryLibrary-716ccbc1.js +0 -1
  738. package/dist/Workers/EllipseGeometryLibrary-8b1f8e47.js +0 -1
  739. package/dist/Workers/EllipseGeometryLibrary-9dd8ed16.js +0 -1
  740. package/dist/Workers/EllipseGeometryLibrary-cde71e7f.js +0 -1
  741. package/dist/Workers/EllipseOutlineGeometry-18088f7f.js +0 -1
  742. package/dist/Workers/EllipseOutlineGeometry-5b7ad7d6.js +0 -1
  743. package/dist/Workers/EllipseOutlineGeometry-72c1fd73.js +0 -1
  744. package/dist/Workers/EllipseOutlineGeometry-97648130.js +0 -1
  745. package/dist/Workers/EllipseOutlineGeometry-c0b0a9a4.js +0 -1
  746. package/dist/Workers/EllipseOutlineGeometry-e46b4af5.js +0 -1
  747. package/dist/Workers/EllipsoidGeodesic-2992081b.js +0 -1
  748. package/dist/Workers/EllipsoidGeodesic-a0581819.js +0 -1
  749. package/dist/Workers/EllipsoidGeodesic-e1197ec2.js +0 -1
  750. package/dist/Workers/EllipsoidGeometry-5af792d2.js +0 -1
  751. package/dist/Workers/EllipsoidGeometry-751dd3dc.js +0 -1
  752. package/dist/Workers/EllipsoidGeometry-9c399bf7.js +0 -1
  753. package/dist/Workers/EllipsoidGeometry-ad61339f.js +0 -1
  754. package/dist/Workers/EllipsoidGeometry-d0a3d570.js +0 -1
  755. package/dist/Workers/EllipsoidGeometry-d28fa7b5.js +0 -1
  756. package/dist/Workers/EllipsoidOutlineGeometry-14372733.js +0 -1
  757. package/dist/Workers/EllipsoidOutlineGeometry-34940155.js +0 -1
  758. package/dist/Workers/EllipsoidOutlineGeometry-8ca051b2.js +0 -1
  759. package/dist/Workers/EllipsoidOutlineGeometry-aa49f341.js +0 -1
  760. package/dist/Workers/EllipsoidOutlineGeometry-bf6fec74.js +0 -1
  761. package/dist/Workers/EllipsoidOutlineGeometry-f557c9da.js +0 -1
  762. package/dist/Workers/EllipsoidRhumbLine-2fd480f5.js +0 -1
  763. package/dist/Workers/EllipsoidRhumbLine-809f5074.js +0 -1
  764. package/dist/Workers/EllipsoidRhumbLine-d9133c69.js +0 -1
  765. package/dist/Workers/EllipsoidTangentPlane-2b15994f.js +0 -1
  766. package/dist/Workers/EllipsoidTangentPlane-67eb8fd7.js +0 -1
  767. package/dist/Workers/EllipsoidTangentPlane-7e7cce04.js +0 -1
  768. package/dist/Workers/EllipsoidTangentPlane-badcc339.js +0 -1
  769. package/dist/Workers/EllipsoidTangentPlane-d5fd24ed.js +0 -1
  770. package/dist/Workers/EllipsoidTangentPlane-eed317db.js +0 -1
  771. package/dist/Workers/EncodedCartesian3-6f721b97.js +0 -1
  772. package/dist/Workers/EncodedCartesian3-9b5052a5.js +0 -1
  773. package/dist/Workers/EncodedCartesian3-ac19e14b.js +0 -1
  774. package/dist/Workers/FrustumGeometry-38234739.js +0 -1
  775. package/dist/Workers/FrustumGeometry-697158a6.js +0 -1
  776. package/dist/Workers/FrustumGeometry-705dc598.js +0 -1
  777. package/dist/Workers/FrustumGeometry-7cc95152.js +0 -1
  778. package/dist/Workers/FrustumGeometry-a0988373.js +0 -1
  779. package/dist/Workers/FrustumGeometry-bf3f376b.js +0 -1
  780. package/dist/Workers/FullArray.js +0 -1
  781. package/dist/Workers/GeometryAttribute-51995e5a.js +0 -1
  782. package/dist/Workers/GeometryAttribute-8106b887.js +0 -1
  783. package/dist/Workers/GeometryAttribute-9cc31675.js +0 -1
  784. package/dist/Workers/GeometryAttribute-ccf4e0b6.js +0 -1
  785. package/dist/Workers/GeometryAttribute-e03451d8.js +0 -1
  786. package/dist/Workers/GeometryAttribute-e89ef932.js +0 -1
  787. package/dist/Workers/GeometryInstance-083d7584.js +0 -1
  788. package/dist/Workers/GeometryInstance-3287a41d.js +0 -1
  789. package/dist/Workers/GeometryInstance-5729d1a7.js +0 -1
  790. package/dist/Workers/GeometryInstance-75eda02f.js +0 -1
  791. package/dist/Workers/GeometryInstance-a24fc358.js +0 -1
  792. package/dist/Workers/GeometryInstance-a29ed6fd.js +0 -1
  793. package/dist/Workers/GeometryOffsetAttribute-b02d5bb9.js +0 -1
  794. package/dist/Workers/GeometryPipeline-160871a5.js +0 -1
  795. package/dist/Workers/GeometryPipeline-21c7c817.js +0 -1
  796. package/dist/Workers/GeometryPipeline-46833021.js +0 -1
  797. package/dist/Workers/GeometryPipeline-64734a0f.js +0 -1
  798. package/dist/Workers/GeometryPipeline-868a22d5.js +0 -1
  799. package/dist/Workers/GeometryPipeline-dd278883.js +0 -1
  800. package/dist/Workers/IndexDatatype-516320ea.js +0 -1
  801. package/dist/Workers/IntersectionTests-318fd637.js +0 -1
  802. package/dist/Workers/IntersectionTests-46ce3a3a.js +0 -1
  803. package/dist/Workers/IntersectionTests-5403be00.js +0 -1
  804. package/dist/Workers/IntersectionTests-7cdfef0c.js +0 -1
  805. package/dist/Workers/IntersectionTests-ca6d4041.js +0 -1
  806. package/dist/Workers/IntersectionTests-f3d5850d.js +0 -1
  807. package/dist/Workers/Math-5bbcea10.js +0 -1
  808. package/dist/Workers/Matrix2-10a61a55.js +0 -1
  809. package/dist/Workers/OrientedBoundingBox-2f174fe3.js +0 -1
  810. package/dist/Workers/OrientedBoundingBox-6c372bbc.js +0 -1
  811. package/dist/Workers/OrientedBoundingBox-6eb17dbb.js +0 -1
  812. package/dist/Workers/OrientedBoundingBox-6ff47a8a.js +0 -1
  813. package/dist/Workers/OrientedBoundingBox-a6a4c32b.js +0 -1
  814. package/dist/Workers/OrientedBoundingBox-d8d60f95.js +0 -1
  815. package/dist/Workers/Plane-0ec594f2.js +0 -1
  816. package/dist/Workers/Plane-0f30f65b.js +0 -1
  817. package/dist/Workers/Plane-d53c8e90.js +0 -1
  818. package/dist/Workers/Plane-f7823f4c.js +0 -1
  819. package/dist/Workers/Plane-fa12edbb.js +0 -1
  820. package/dist/Workers/Plane-fa98d6ca.js +0 -1
  821. package/dist/Workers/PolygonGeometryLibrary-1b173d8c.js +0 -1
  822. package/dist/Workers/PolygonGeometryLibrary-2394a24c.js +0 -1
  823. package/dist/Workers/PolygonGeometryLibrary-336d42f5.js +0 -1
  824. package/dist/Workers/PolygonGeometryLibrary-5bb2def1.js +0 -1
  825. package/dist/Workers/PolygonGeometryLibrary-c4287ef2.js +0 -1
  826. package/dist/Workers/PolygonGeometryLibrary-e7ef9273.js +0 -1
  827. package/dist/Workers/PolygonPipeline-01006d79.js +0 -1
  828. package/dist/Workers/PolygonPipeline-19b66f06.js +0 -1
  829. package/dist/Workers/PolygonPipeline-37a33a39.js +0 -1
  830. package/dist/Workers/PolygonPipeline-5983aa11.js +0 -1
  831. package/dist/Workers/PolygonPipeline-7c54e19e.js +0 -1
  832. package/dist/Workers/PolygonPipeline-d1b4c320.js +0 -1
  833. package/dist/Workers/PolylinePipeline-45329d56.js +0 -1
  834. package/dist/Workers/PolylinePipeline-6484d4ee.js +0 -1
  835. package/dist/Workers/PolylinePipeline-971ba240.js +0 -1
  836. package/dist/Workers/PolylinePipeline-d5024385.js +0 -1
  837. package/dist/Workers/PolylinePipeline-d59947c4.js +0 -1
  838. package/dist/Workers/PolylinePipeline-eeb6f648.js +0 -1
  839. package/dist/Workers/PolylineVolumeGeometryLibrary-2f82c4db.js +0 -1
  840. package/dist/Workers/PolylineVolumeGeometryLibrary-81481506.js +0 -1
  841. package/dist/Workers/PolylineVolumeGeometryLibrary-955f4335.js +0 -1
  842. package/dist/Workers/PolylineVolumeGeometryLibrary-d57282e3.js +0 -1
  843. package/dist/Workers/PolylineVolumeGeometryLibrary-e2e6c33b.js +0 -1
  844. package/dist/Workers/PolylineVolumeGeometryLibrary-e435332a.js +0 -1
  845. package/dist/Workers/PrimitivePipeline-100ea173.js +0 -1
  846. package/dist/Workers/PrimitivePipeline-757ec521.js +0 -1
  847. package/dist/Workers/PrimitivePipeline-928d43fe.js +0 -1
  848. package/dist/Workers/PrimitivePipeline-986742a6.js +0 -1
  849. package/dist/Workers/PrimitivePipeline-9deb0937.js +0 -1
  850. package/dist/Workers/PrimitivePipeline-b3cc986b.js +0 -1
  851. package/dist/Workers/PrimitivePipeline-ed7c0918.js +0 -1
  852. package/dist/Workers/RectangleGeometryLibrary-02221243.js +0 -1
  853. package/dist/Workers/RectangleGeometryLibrary-336b3589.js +0 -1
  854. package/dist/Workers/RectangleGeometryLibrary-3c449dce.js +0 -1
  855. package/dist/Workers/RectangleGeometryLibrary-44075333.js +0 -1
  856. package/dist/Workers/RectangleGeometryLibrary-9e402320.js +0 -1
  857. package/dist/Workers/RectangleGeometryLibrary-af611323.js +0 -1
  858. package/dist/Workers/RuntimeError-ac2797b4.js +0 -1
  859. package/dist/Workers/TerrainEncoding-03f4779b.js +0 -1
  860. package/dist/Workers/TerrainEncoding-652abf1d.js +0 -1
  861. package/dist/Workers/TerrainEncoding-6f894d6e.js +0 -1
  862. package/dist/Workers/TerrainEncoding-7ea7a6aa.js +0 -1
  863. package/dist/Workers/TerrainEncoding-a621a0f9.js +0 -1
  864. package/dist/Workers/TerrainEncoding-d2f48ea1.js +0 -1
  865. package/dist/Workers/Transforms-1fa85493.js +0 -1
  866. package/dist/Workers/Transforms-5aeb1d5e.js +0 -1
  867. package/dist/Workers/Transforms-70ded1e8.js +0 -1
  868. package/dist/Workers/Transforms-713e2e92.js +0 -1
  869. package/dist/Workers/Transforms-8c8e0c6f.js +0 -1
  870. package/dist/Workers/Transforms-984eb057.js +0 -1
  871. package/dist/Workers/VertexFormat-90d15264.js +0 -1
  872. package/dist/Workers/WallGeometryLibrary-40d299b6.js +0 -1
  873. package/dist/Workers/WallGeometryLibrary-5386b8d1.js +0 -1
  874. package/dist/Workers/WallGeometryLibrary-62af8286.js +0 -1
  875. package/dist/Workers/WallGeometryLibrary-8e2f0582.js +0 -1
  876. package/dist/Workers/WallGeometryLibrary-c815a7b8.js +0 -1
  877. package/dist/Workers/WallGeometryLibrary-fcee93b1.js +0 -1
  878. package/dist/Workers/WebMercatorProjection-941959a9.js +0 -1
  879. package/dist/Workers/WebMercatorProjection-9d47817f.js +0 -1
  880. package/dist/Workers/WebMercatorProjection-e6de5e67.js +0 -1
  881. package/dist/Workers/arrayRemoveDuplicates-bdf50aa0.js +0 -1
@@ -1 +0,0 @@
1
- define(["exports","./Cartesian2-c1eb9da0","./Check-f996273c","./when-ae2e0b60","./Math-5bbcea10","./combine-276652d0","./RuntimeError-ac2797b4"],function(e,M,o,q,F,R,W){"use strict";function z(e){this._ellipsoid=q.defaultValue(e,M.Ellipsoid.WGS84),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(z.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),z.prototype.project=function(e,t){var n=this._semimajorAxis,r=e.longitude*n,n=e.latitude*n,e=e.height;return q.defined(t)?(t.x=r,t.y=n,t.z=e,t):new M.Cartesian3(r,n,e)},z.prototype.unproject=function(e,t){var n=this._oneOverSemimajorAxis,r=e.x*n,n=e.y*n,e=e.z;return q.defined(t)?(t.longitude=r,t.latitude=n,t.height=e,t):new M.Cartographic(r,n,e)};var U=Object.freeze({OUTSIDE:-1,INTERSECTING:0,INSIDE:1});function D(e,t){this.start=q.defaultValue(e,0),this.stop=q.defaultValue(t,0)}function B(e,t,n,r,a,i,s,o,u){this[0]=q.defaultValue(e,0),this[1]=q.defaultValue(r,0),this[2]=q.defaultValue(s,0),this[3]=q.defaultValue(t,0),this[4]=q.defaultValue(a,0),this[5]=q.defaultValue(o,0),this[6]=q.defaultValue(n,0),this[7]=q.defaultValue(i,0),this[8]=q.defaultValue(u,0)}B.packedLength=9,B.pack=function(e,t,n){return n=q.defaultValue(n,0),t[n++]=e[0],t[n++]=e[1],t[n++]=e[2],t[n++]=e[3],t[n++]=e[4],t[n++]=e[5],t[n++]=e[6],t[n++]=e[7],t[n++]=e[8],t},B.unpack=function(e,t,n){return t=q.defaultValue(t,0),(n=q.defined(n)?n:new B)[0]=e[t++],n[1]=e[t++],n[2]=e[t++],n[3]=e[t++],n[4]=e[t++],n[5]=e[t++],n[6]=e[t++],n[7]=e[t++],n[8]=e[t++],n},B.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):new B(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8])},B.fromArray=function(e,t,n){return t=q.defaultValue(t,0),(n=q.defined(n)?n:new B)[0]=e[t],n[1]=e[t+1],n[2]=e[t+2],n[3]=e[t+3],n[4]=e[t+4],n[5]=e[t+5],n[6]=e[t+6],n[7]=e[t+7],n[8]=e[t+8],n},B.fromColumnMajorArray=function(e,t){return B.clone(e,t)},B.fromRowMajorArray=function(e,t){return q.defined(t)?(t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],t):new B(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},B.fromQuaternion=function(e,t){var n=e.x*e.x,r=e.x*e.y,a=e.x*e.z,i=e.x*e.w,s=e.y*e.y,o=e.y*e.z,u=e.y*e.w,l=e.z*e.z,c=e.z*e.w,e=e.w*e.w,d=n-s-l+e,f=2*(r-c),h=2*(a+u),r=2*(r+c),c=s-n-l+e,p=2*(o-i),a=2*(a-u),u=2*(o+i),o=-n-s+l+e;return q.defined(t)?(t[0]=d,t[1]=r,t[2]=a,t[3]=f,t[4]=c,t[5]=u,t[6]=h,t[7]=p,t[8]=o,t):new B(d,f,h,r,c,p,a,u,o)},B.fromHeadingPitchRoll=function(e,t){var n=Math.cos(-e.pitch),r=Math.cos(-e.heading),a=Math.cos(e.roll),i=Math.sin(-e.pitch),s=Math.sin(-e.heading),e=Math.sin(e.roll),o=n*r,u=-a*s+e*i*r,l=e*s+a*i*r,c=n*s,d=a*r+e*i*s,r=-e*r+a*i*s,s=-i,i=e*n,e=a*n;return q.defined(t)?(t[0]=o,t[1]=c,t[2]=s,t[3]=u,t[4]=d,t[5]=i,t[6]=l,t[7]=r,t[8]=e,t):new B(o,u,l,c,d,r,s,i,e)},B.fromScale=function(e,t){return q.defined(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=0,t[4]=e.y,t[5]=0,t[6]=0,t[7]=0,t[8]=e.z,t):new B(e.x,0,0,0,e.y,0,0,0,e.z)},B.fromUniformScale=function(e,t){return q.defined(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=e,t):new B(e,0,0,0,e,0,0,0,e)},B.fromCrossProduct=function(e,t){return q.defined(t)?(t[0]=0,t[1]=e.z,t[2]=-e.y,t[3]=-e.z,t[4]=0,t[5]=e.x,t[6]=e.y,t[7]=-e.x,t[8]=0,t):new B(0,-e.z,e.y,e.z,0,-e.x,-e.y,e.x,0)},B.fromRotationX=function(e,t){var n=Math.cos(e),e=Math.sin(e);return q.defined(t)?(t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=n,t[5]=e,t[6]=0,t[7]=-e,t[8]=n,t):new B(1,0,0,0,n,-e,0,e,n)},B.fromRotationY=function(e,t){var n=Math.cos(e),e=Math.sin(e);return q.defined(t)?(t[0]=n,t[1]=0,t[2]=-e,t[3]=0,t[4]=1,t[5]=0,t[6]=e,t[7]=0,t[8]=n,t):new B(n,0,e,0,1,0,-e,0,n)},B.fromRotationZ=function(e,t){var n=Math.cos(e),e=Math.sin(e);return q.defined(t)?(t[0]=n,t[1]=e,t[2]=0,t[3]=-e,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new B(n,-e,0,e,n,0,0,0,1)},B.toArray=function(e,t){return q.defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},B.getElementIndex=function(e,t){return 3*e+t},B.getColumn=function(e,t,n){var t=3*t,r=e[t],a=e[1+t],e=e[2+t];return n.x=r,n.y=a,n.z=e,n},B.setColumn=function(e,t,n,r){t*=3;return(r=B.clone(e,r))[t]=n.x,r[1+t]=n.y,r[2+t]=n.z,r},B.getRow=function(e,t,n){var r=e[t],a=e[t+3],e=e[t+6];return n.x=r,n.y=a,n.z=e,n},B.setRow=function(e,t,n,r){return(r=B.clone(e,r))[t]=n.x,r[t+3]=n.y,r[t+6]=n.z,r};var P=new M.Cartesian3,N=(B.getScale=function(e,t){return t.x=M.Cartesian3.magnitude(M.Cartesian3.fromElements(e[0],e[1],e[2],P)),t.y=M.Cartesian3.magnitude(M.Cartesian3.fromElements(e[3],e[4],e[5],P)),t.z=M.Cartesian3.magnitude(M.Cartesian3.fromElements(e[6],e[7],e[8],P)),t},new M.Cartesian3),V=(B.getMaximumScale=function(e){return B.getScale(e,N),M.Cartesian3.maximumComponent(N)},B.multiply=function(e,t,n){var r=e[0]*t[0]+e[3]*t[1]+e[6]*t[2],a=e[1]*t[0]+e[4]*t[1]+e[7]*t[2],i=e[2]*t[0]+e[5]*t[1]+e[8]*t[2],s=e[0]*t[3]+e[3]*t[4]+e[6]*t[5],o=e[1]*t[3]+e[4]*t[4]+e[7]*t[5],u=e[2]*t[3]+e[5]*t[4]+e[8]*t[5],l=e[0]*t[6]+e[3]*t[7]+e[6]*t[8],c=e[1]*t[6]+e[4]*t[7]+e[7]*t[8],e=e[2]*t[6]+e[5]*t[7]+e[8]*t[8];return n[0]=r,n[1]=a,n[2]=i,n[3]=s,n[4]=o,n[5]=u,n[6]=l,n[7]=c,n[8]=e,n},B.add=function(e,t,n){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n[2]=e[2]+t[2],n[3]=e[3]+t[3],n[4]=e[4]+t[4],n[5]=e[5]+t[5],n[6]=e[6]+t[6],n[7]=e[7]+t[7],n[8]=e[8]+t[8],n},B.subtract=function(e,t,n){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n[2]=e[2]-t[2],n[3]=e[3]-t[3],n[4]=e[4]-t[4],n[5]=e[5]-t[5],n[6]=e[6]-t[6],n[7]=e[7]-t[7],n[8]=e[8]-t[8],n},B.multiplyByVector=function(e,t,n){var r=t.x,a=t.y,t=t.z,i=e[0]*r+e[3]*a+e[6]*t,s=e[1]*r+e[4]*a+e[7]*t,r=e[2]*r+e[5]*a+e[8]*t;return n.x=i,n.y=s,n.z=r,n},B.multiplyByScalar=function(e,t,n){return n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t,n[3]=e[3]*t,n[4]=e[4]*t,n[5]=e[5]*t,n[6]=e[6]*t,n[7]=e[7]*t,n[8]=e[8]*t,n},B.multiplyByScale=function(e,t,n){return n[0]=e[0]*t.x,n[1]=e[1]*t.x,n[2]=e[2]*t.x,n[3]=e[3]*t.y,n[4]=e[4]*t.y,n[5]=e[5]*t.y,n[6]=e[6]*t.z,n[7]=e[7]*t.z,n[8]=e[8]*t.z,n},B.negate=function(e,t){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=-e[7],t[8]=-e[8],t},B.transpose=function(e,t){var n=e[0],r=e[3],a=e[6],i=e[1],s=e[4],o=e[7],u=e[2],l=e[5],e=e[8];return t[0]=n,t[1]=r,t[2]=a,t[3]=i,t[4]=s,t[5]=o,t[6]=u,t[7]=l,t[8]=e,t},new M.Cartesian3(1,1,1));B.getRotation=function(e,t){var n=M.Cartesian3.divideComponents(V,B.getScale(e,N),N);return t=B.multiplyByScale(e,n,t)};var j=[1,0,0],Y=[2,2,1];var H=new B,Z=new B,X=(B.computeEigenDecomposition=function(e,t){for(var n=F.CesiumMath.EPSILON20,r=0,a=0,i=(t=q.defined(t)?t:{}).unitary=B.clone(B.IDENTITY,t.unitary),s=t.diagonal=B.clone(e,t.diagonal),o=n*function(e){for(var t=0,n=0;n<9;++n){var r=e[n];t+=r*r}return Math.sqrt(t)}(s);a<10&&function(e){for(var t=0,n=0;n<3;++n){var r=e[B.getElementIndex(Y[n],j[n])];t+=2*r*r}return Math.sqrt(t)}(s)>o;){C=A=y=m=p=h=f=d=c=l=u=void 0;for(var u=s,l=H,c=F.CesiumMath.EPSILON15,d=0,f=1,h=0;h<3;++h){var p=Math.abs(u[B.getElementIndex(Y[h],j[h])]);d<p&&(f=h,d=p)}var m=1,y=0,A=j[f],C=Y[f];Math.abs(u[B.getElementIndex(C,A)])>c&&(y=(c=(c=(u[B.getElementIndex(C,C)]-u[B.getElementIndex(A,A)])/2/u[B.getElementIndex(C,A)])<0?-1/(-c+Math.sqrt(1+c*c)):1/(c+Math.sqrt(1+c*c)))*(m=1/Math.sqrt(1+c*c))),(l=B.clone(B.IDENTITY,l))[B.getElementIndex(A,A)]=l[B.getElementIndex(C,C)]=m,l[B.getElementIndex(C,A)]=y,l[B.getElementIndex(A,C)]=-y,B.transpose(H,Z),B.multiply(s,H,s),B.multiply(Z,s,s),B.multiply(i,H,i),2<++r&&(++a,r=0)}return t},B.abs=function(e,t){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t},B.determinant=function(e){var t=e[0],n=e[3],r=e[6],a=e[1],i=e[4],s=e[7],o=e[2],u=e[5],e=e[8];return t*(i*e-u*s)+a*(u*r-n*e)+o*(n*s-i*r)},B.inverse=function(e,t){var n=e[0],r=e[1],a=e[2],i=e[3],s=e[4],o=e[5],u=e[6],l=e[7],c=e[8],e=B.determinant(e),c=(t[0]=s*c-l*o,t[1]=l*a-r*c,t[2]=r*o-s*a,t[3]=u*o-i*c,t[4]=n*c-u*a,t[5]=i*a-n*o,t[6]=i*l-u*s,t[7]=u*r-n*l,t[8]=n*s-i*r,1/e);return B.multiplyByScalar(t,c,t)},new B);function L(e,t,n,r){this.x=q.defaultValue(e,0),this.y=q.defaultValue(t,0),this.z=q.defaultValue(n,0),this.w=q.defaultValue(r,0)}B.inverseTranspose=function(e,t){return B.inverse(B.transpose(e,X),t)},B.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},B.equalsEpsilon=function(e,t,n){return n=q.defaultValue(n,0),e===t||q.defined(e)&&q.defined(t)&&Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n&&Math.abs(e[2]-t[2])<=n&&Math.abs(e[3]-t[3])<=n&&Math.abs(e[4]-t[4])<=n&&Math.abs(e[5]-t[5])<=n&&Math.abs(e[6]-t[6])<=n&&Math.abs(e[7]-t[7])<=n&&Math.abs(e[8]-t[8])<=n},B.IDENTITY=Object.freeze(new B(1,0,0,0,1,0,0,0,1)),B.ZERO=Object.freeze(new B(0,0,0,0,0,0,0,0,0)),B.COLUMN0ROW0=0,B.COLUMN0ROW1=1,B.COLUMN0ROW2=2,B.COLUMN1ROW0=3,B.COLUMN1ROW1=4,B.COLUMN1ROW2=5,B.COLUMN2ROW0=6,B.COLUMN2ROW1=7,B.COLUMN2ROW2=8,Object.defineProperties(B.prototype,{length:{get:function(){return B.packedLength}}}),B.prototype.clone=function(e){return B.clone(this,e)},B.prototype.equals=function(e){return B.equals(this,e)},B.equalsArray=function(e,t,n){return e[0]===t[n]&&e[1]===t[n+1]&&e[2]===t[n+2]&&e[3]===t[n+3]&&e[4]===t[n+4]&&e[5]===t[n+5]&&e[6]===t[n+6]&&e[7]===t[n+7]&&e[8]===t[n+8]},B.prototype.equalsEpsilon=function(e,t){return B.equalsEpsilon(this,e,t)},B.prototype.toString=function(){return"("+this[0]+", "+this[3]+", "+this[6]+")\n("+this[1]+", "+this[4]+", "+this[7]+")\n("+this[2]+", "+this[5]+", "+this[8]+")"},L.fromElements=function(e,t,n,r,a){return q.defined(a)?(a.x=e,a.y=t,a.z=n,a.w=r,a):new L(e,t,n,r)},L.fromColor=function(e,t){return q.defined(t)?(t.x=e.red,t.y=e.green,t.z=e.blue,t.w=e.alpha,t):new L(e.red,e.green,e.blue,e.alpha)},L.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new L(e.x,e.y,e.z,e.w)},L.packedLength=4,L.pack=function(e,t,n){return n=q.defaultValue(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t},L.unpack=function(e,t,n){return t=q.defaultValue(t,0),(n=q.defined(n)?n:new L).x=e[t++],n.y=e[t++],n.z=e[t++],n.w=e[t],n},L.packArray=function(e,t){var n=e.length,r=4*n;if(q.defined(t)){if(!Array.isArray(t)&&t.length!==r)throw new o.DeveloperError("If result is a typed array, it must have exactly array.length * 4 elements");t.length!==r&&(t.length=r)}else t=new Array(r);for(var a=0;a<n;++a)L.pack(e[a],t,4*a);return t},L.unpackArray=function(e,t){var n=e.length;q.defined(t)?t.length=n/4:t=new Array(n/4);for(var r=0;r<n;r+=4){var a=r/4;t[a]=L.unpack(e,r,t[a])}return t},L.fromArray=L.unpack,L.maximumComponent=function(e){return Math.max(e.x,e.y,e.z,e.w)},L.minimumComponent=function(e){return Math.min(e.x,e.y,e.z,e.w)},L.minimumByComponent=function(e,t,n){return n.x=Math.min(e.x,t.x),n.y=Math.min(e.y,t.y),n.z=Math.min(e.z,t.z),n.w=Math.min(e.w,t.w),n},L.maximumByComponent=function(e,t,n){return n.x=Math.max(e.x,t.x),n.y=Math.max(e.y,t.y),n.z=Math.max(e.z,t.z),n.w=Math.max(e.w,t.w),n},L.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w},L.magnitude=function(e){return Math.sqrt(L.magnitudeSquared(e))};var J=new L,G=(L.distance=function(e,t){return L.subtract(e,t,J),L.magnitude(J)},L.distanceSquared=function(e,t){return L.subtract(e,t,J),L.magnitudeSquared(J)},L.normalize=function(e,t){var n=L.magnitude(e);return t.x=e.x/n,t.y=e.y/n,t.z=e.z/n,t.w=e.w/n,t},L.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w},L.multiplyComponents=function(e,t,n){return n.x=e.x*t.x,n.y=e.y*t.y,n.z=e.z*t.z,n.w=e.w*t.w,n},L.divideComponents=function(e,t,n){return n.x=e.x/t.x,n.y=e.y/t.y,n.z=e.z/t.z,n.w=e.w/t.w,n},L.add=function(e,t,n){return n.x=e.x+t.x,n.y=e.y+t.y,n.z=e.z+t.z,n.w=e.w+t.w,n},L.subtract=function(e,t,n){return n.x=e.x-t.x,n.y=e.y-t.y,n.z=e.z-t.z,n.w=e.w-t.w,n},L.multiplyByScalar=function(e,t,n){return n.x=e.x*t,n.y=e.y*t,n.z=e.z*t,n.w=e.w*t,n},L.divideByScalar=function(e,t,n){return n.x=e.x/t,n.y=e.y/t,n.z=e.z/t,n.w=e.w/t,n},L.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=-e.w,t},L.abs=function(e,t){return t.x=Math.abs(e.x),t.y=Math.abs(e.y),t.z=Math.abs(e.z),t.w=Math.abs(e.w),t},new L),Q=(L.lerp=function(e,t,n,r){return L.multiplyByScalar(t,n,G),r=L.multiplyByScalar(e,1-n,r),L.add(G,r,r)},new L),K=(L.mostOrthogonalAxis=function(e,t){e=L.normalize(e,Q);return L.abs(e,e),t=e.x<=e.y?e.x<=e.z?e.x<=e.w?L.clone(L.UNIT_X,t):L.clone(L.UNIT_W,t):e.z<=e.w?L.clone(L.UNIT_Z,t):L.clone(L.UNIT_W,t):e.y<=e.z?e.y<=e.w?L.clone(L.UNIT_Y,t):L.clone(L.UNIT_W,t):e.z<=e.w?L.clone(L.UNIT_Z,t):L.clone(L.UNIT_W,t)},L.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w},L.equalsArray=function(e,t,n){return e.x===t[n]&&e.y===t[n+1]&&e.z===t[n+2]&&e.w===t[n+3]},L.equalsEpsilon=function(e,t,n,r){return e===t||q.defined(e)&&q.defined(t)&&F.CesiumMath.equalsEpsilon(e.x,t.x,n,r)&&F.CesiumMath.equalsEpsilon(e.y,t.y,n,r)&&F.CesiumMath.equalsEpsilon(e.z,t.z,n,r)&&F.CesiumMath.equalsEpsilon(e.w,t.w,n,r)},L.ZERO=Object.freeze(new L(0,0,0,0)),L.UNIT_X=Object.freeze(new L(1,0,0,0)),L.UNIT_Y=Object.freeze(new L(0,1,0,0)),L.UNIT_Z=Object.freeze(new L(0,0,1,0)),L.UNIT_W=Object.freeze(new L(0,0,0,1)),L.prototype.clone=function(e){return L.clone(this,e)},L.prototype.equals=function(e){return L.equals(this,e)},L.prototype.equalsEpsilon=function(e,t,n){return L.equalsEpsilon(this,e,t,n)},L.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+", "+this.w+")"},new Float32Array(1)),n=new Uint8Array(K.buffer),t=new Uint32Array([287454020]),$=68===new Uint8Array(t.buffer)[0];function k(e,t,n,r,a,i,s,o,u,l,c,d,f,h,p,m){this[0]=q.defaultValue(e,0),this[1]=q.defaultValue(a,0),this[2]=q.defaultValue(u,0),this[3]=q.defaultValue(f,0),this[4]=q.defaultValue(t,0),this[5]=q.defaultValue(i,0),this[6]=q.defaultValue(l,0),this[7]=q.defaultValue(h,0),this[8]=q.defaultValue(n,0),this[9]=q.defaultValue(s,0),this[10]=q.defaultValue(c,0),this[11]=q.defaultValue(p,0),this[12]=q.defaultValue(r,0),this[13]=q.defaultValue(o,0),this[14]=q.defaultValue(d,0),this[15]=q.defaultValue(m,0)}L.packFloat=function(e,t){return q.defined(t)||(t=new L),K[0]=e,$?(t.x=n[0],t.y=n[1],t.z=n[2],t.w=n[3]):(t.x=n[3],t.y=n[2],t.z=n[1],t.w=n[0]),t},L.unpackFloat=function(e){return $?(n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w):(n[0]=e.w,n[1]=e.z,n[2]=e.y,n[3]=e.x),K[0]},k.packedLength=16,k.pack=function(e,t,n){return n=q.defaultValue(n,0),t[n++]=e[0],t[n++]=e[1],t[n++]=e[2],t[n++]=e[3],t[n++]=e[4],t[n++]=e[5],t[n++]=e[6],t[n++]=e[7],t[n++]=e[8],t[n++]=e[9],t[n++]=e[10],t[n++]=e[11],t[n++]=e[12],t[n++]=e[13],t[n++]=e[14],t[n]=e[15],t},k.unpack=function(e,t,n){return t=q.defaultValue(t,0),(n=q.defined(n)?n:new k)[0]=e[t++],n[1]=e[t++],n[2]=e[t++],n[3]=e[t++],n[4]=e[t++],n[5]=e[t++],n[6]=e[t++],n[7]=e[t++],n[8]=e[t++],n[9]=e[t++],n[10]=e[t++],n[11]=e[t++],n[12]=e[t++],n[13]=e[t++],n[14]=e[t++],n[15]=e[t],n},k.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t):new k(e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15])},k.fromArray=k.unpack,k.fromColumnMajorArray=function(e,t){return k.clone(e,t)},k.fromRowMajorArray=function(e,t){return q.defined(t)?(t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15],t):new k(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},k.fromRotationTranslation=function(e,t,n){return t=q.defaultValue(t,M.Cartesian3.ZERO),q.defined(n)?(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=0,n[4]=e[3],n[5]=e[4],n[6]=e[5],n[7]=0,n[8]=e[6],n[9]=e[7],n[10]=e[8],n[11]=0,n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=1,n):new k(e[0],e[3],e[6],t.x,e[1],e[4],e[7],t.y,e[2],e[5],e[8],t.z,0,0,0,1)},k.fromTranslationQuaternionRotationScale=function(e,t,n,r){q.defined(r)||(r=new k);var a=n.x,i=n.y,n=n.z,s=t.x*t.x,o=t.x*t.y,u=t.x*t.z,l=t.x*t.w,c=t.y*t.y,d=t.y*t.z,f=t.y*t.w,h=t.z*t.z,p=t.z*t.w,t=t.w*t.w,m=2*(o-p),y=2*(u+f),o=2*(o+p),p=c-s-h+t,A=2*(d-l),u=2*(u-f),f=2*(d+l),d=-s-c+h+t;return r[0]=(s-c-h+t)*a,r[1]=o*a,r[2]=u*a,r[3]=0,r[4]=m*i,r[5]=p*i,r[6]=f*i,r[7]=0,r[8]=y*n,r[9]=A*n,r[10]=d*n,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,r},k.fromTranslationRotationScale=function(e,t){return k.fromTranslationQuaternionRotationScale(e.translation,e.rotation,e.scale,t)},k.fromTranslation=function(e,t){return k.fromRotationTranslation(B.IDENTITY,e,t)},k.fromScale=function(e,t){return q.defined(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e.y,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e.z,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t):new k(e.x,0,0,0,0,e.y,0,0,0,0,e.z,0,0,0,0,1)},k.fromUniformScale=function(e,t){return q.defined(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t):new k(e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1)};var ee=new M.Cartesian3,te=new M.Cartesian3,ne=new M.Cartesian3,re=(k.fromCamera=function(e,t){var n=e.position,r=e.direction,e=e.up,r=(M.Cartesian3.normalize(r,ee),M.Cartesian3.normalize(M.Cartesian3.cross(ee,e,te),te),M.Cartesian3.normalize(M.Cartesian3.cross(te,ee,ne),ne),te.x),e=te.y,a=te.z,i=ee.x,s=ee.y,o=ee.z,u=ne.x,l=ne.y,c=ne.z,d=n.x,f=n.y,n=n.z,h=r*-d+e*-f+a*-n,p=u*-d+l*-f+c*-n,d=i*d+s*f+o*n;return q.defined(t)?(t[0]=r,t[1]=u,t[2]=-i,t[3]=0,t[4]=e,t[5]=l,t[6]=-s,t[7]=0,t[8]=a,t[9]=c,t[10]=-o,t[11]=0,t[12]=h,t[13]=p,t[14]=d,t[15]=1,t):new k(r,e,a,h,u,l,c,p,-i,-s,-o,d,0,0,0,1)},k.computePerspectiveFieldOfView=function(e,t,n,r,a){var e=1/Math.tan(.5*e),i=(r+n)/(n-r),n=2*r*n/(n-r);return a[0]=e/t,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=e,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=i,a[11]=-1,a[12]=0,a[13]=0,a[14]=n,a[15]=0,a},k.computeOrthographicOffCenter=function(e,t,n,r,a,i,s){var o=1/(t-e),u=1/(r-n),l=1/(i-a),t=-(t+e)*o,e=-(r+n)*u,r=-(i+a)*l;return u*=2,l*=-2,s[0]=o*=2,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=u,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=l,s[11]=0,s[12]=t,s[13]=e,s[14]=r,s[15]=1,s},k.computePerspectiveOffCenter=function(e,t,n,r,a,i,s){var o=2*a/(r-n),u=(t+e)/(t-e),r=(r+n)/(r-n),n=-(i+a)/(i-a),i=-2*i*a/(i-a);return s[0]=2*a/(t-e),s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=o,s[6]=0,s[7]=0,s[8]=u,s[9]=r,s[10]=n,s[11]=-1,s[12]=0,s[13]=0,s[14]=i,s[15]=0,s},k.computeInfinitePerspectiveOffCenter=function(e,t,n,r,a,i){var s=2*a/(r-n),o=(t+e)/(t-e),r=(r+n)/(r-n),n=-2*a;return i[0]=2*a/(t-e),i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=s,i[6]=0,i[7]=0,i[8]=o,i[9]=r,i[10]=-1,i[11]=-1,i[12]=0,i[13]=0,i[14]=n,i[15]=0,i},k.computeViewportTransformation=function(e,t,n,r){q.defined(r)||(r=new k),e=q.defaultValue(e,q.defaultValue.EMPTY_OBJECT);var a=q.defaultValue(e.x,0),i=q.defaultValue(e.y,0),s=q.defaultValue(e.width,0),e=q.defaultValue(e.height,0),s=(t=q.defaultValue(t,0),.5*s),e=.5*e,n=.5*((n=q.defaultValue(n,1))-t),o=e,u=n,a=a+s,i=i+e,e=t+n;return r[0]=s,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=o,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=u,r[11]=0,r[12]=a,r[13]=i,r[14]=e,r[15]=1,r},k.computeView=function(e,t,n,r,a){return a[0]=r.x,a[1]=n.x,a[2]=-t.x,a[3]=0,a[4]=r.y,a[5]=n.y,a[6]=-t.y,a[7]=0,a[8]=r.z,a[9]=n.z,a[10]=-t.z,a[11]=0,a[12]=-M.Cartesian3.dot(r,e),a[13]=-M.Cartesian3.dot(n,e),a[14]=M.Cartesian3.dot(t,e),a[15]=1,a},k.toArray=function(e,t){return q.defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]},k.getElementIndex=function(e,t){return 4*e+t},k.getColumn=function(e,t,n){var t=4*t,r=e[t],a=e[1+t],i=e[2+t],e=e[3+t];return n.x=r,n.y=a,n.z=i,n.w=e,n},k.setColumn=function(e,t,n,r){t*=4;return(r=k.clone(e,r))[t]=n.x,r[1+t]=n.y,r[2+t]=n.z,r[3+t]=n.w,r},k.setTranslation=function(e,t,n){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=e[15],n},new M.Cartesian3),ae=(k.setScale=function(e,t,n){var r=k.getScale(e,re),t=M.Cartesian3.divideComponents(t,r,re);return k.multiplyByScale(e,t,n)},k.getRow=function(e,t,n){var r=e[t],a=e[t+4],i=e[t+8],e=e[t+12];return n.x=r,n.y=a,n.z=i,n.w=e,n},k.setRow=function(e,t,n,r){return(r=k.clone(e,r))[t]=n.x,r[t+4]=n.y,r[t+8]=n.z,r[t+12]=n.w,r},new M.Cartesian3),ie=(k.getScale=function(e,t){return t.x=M.Cartesian3.magnitude(M.Cartesian3.fromElements(e[0],e[1],e[2],ae)),t.y=M.Cartesian3.magnitude(M.Cartesian3.fromElements(e[4],e[5],e[6],ae)),t.z=M.Cartesian3.magnitude(M.Cartesian3.fromElements(e[8],e[9],e[10],ae)),t},new M.Cartesian3),se=(k.getMaximumScale=function(e){return k.getScale(e,ie),M.Cartesian3.maximumComponent(ie)},k.multiply=function(e,t,n){var r=e[0],a=e[1],i=e[2],s=e[3],o=e[4],u=e[5],l=e[6],c=e[7],d=e[8],f=e[9],h=e[10],p=e[11],m=e[12],y=e[13],A=e[14],e=e[15],C=t[0],w=t[1],g=t[2],v=t[3],x=t[4],E=t[5],O=t[6],S=t[7],_=t[8],b=t[9],R=t[10],M=t[11],q=t[12],T=t[13],I=t[14],t=t[15],z=a*C+u*w+f*g+y*v,U=i*C+l*w+h*g+A*v,D=s*C+c*w+p*g+e*v,P=r*x+o*E+d*O+m*S,N=a*x+u*E+f*O+y*S,V=i*x+l*E+h*O+A*S,x=s*x+c*E+p*O+e*S,E=r*_+o*b+d*R+m*M,O=a*_+u*b+f*R+y*M,S=i*_+l*b+h*R+A*M,_=s*_+c*b+p*R+e*M,b=r*q+o*T+d*I+m*t,R=a*q+u*T+f*I+y*t,M=i*q+l*T+h*I+A*t,a=s*q+c*T+p*I+e*t;return n[0]=r*C+o*w+d*g+m*v,n[1]=z,n[2]=U,n[3]=D,n[4]=P,n[5]=N,n[6]=V,n[7]=x,n[8]=E,n[9]=O,n[10]=S,n[11]=_,n[12]=b,n[13]=R,n[14]=M,n[15]=a,n},k.add=function(e,t,n){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n[2]=e[2]+t[2],n[3]=e[3]+t[3],n[4]=e[4]+t[4],n[5]=e[5]+t[5],n[6]=e[6]+t[6],n[7]=e[7]+t[7],n[8]=e[8]+t[8],n[9]=e[9]+t[9],n[10]=e[10]+t[10],n[11]=e[11]+t[11],n[12]=e[12]+t[12],n[13]=e[13]+t[13],n[14]=e[14]+t[14],n[15]=e[15]+t[15],n},k.subtract=function(e,t,n){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n[2]=e[2]-t[2],n[3]=e[3]-t[3],n[4]=e[4]-t[4],n[5]=e[5]-t[5],n[6]=e[6]-t[6],n[7]=e[7]-t[7],n[8]=e[8]-t[8],n[9]=e[9]-t[9],n[10]=e[10]-t[10],n[11]=e[11]-t[11],n[12]=e[12]-t[12],n[13]=e[13]-t[13],n[14]=e[14]-t[14],n[15]=e[15]-t[15],n},k.multiplyTransformation=function(e,t,n){var r=e[0],a=e[1],i=e[2],s=e[4],o=e[5],u=e[6],l=e[8],c=e[9],d=e[10],f=e[12],h=e[13],e=e[14],p=t[0],m=t[1],y=t[2],A=t[4],C=t[5],w=t[6],g=t[8],v=t[9],x=t[10],E=t[12],O=t[13],t=t[14],S=a*p+o*m+c*y,_=i*p+u*m+d*y,b=r*A+s*C+l*w,R=a*A+o*C+c*w,A=i*A+u*C+d*w,C=r*g+s*v+l*x,w=a*g+o*v+c*x,g=i*g+u*v+d*x,v=r*E+s*O+l*t+f,x=a*E+o*O+c*t+h,f=i*E+u*O+d*t+e;return n[0]=r*p+s*m+l*y,n[1]=S,n[2]=_,n[3]=0,n[4]=b,n[5]=R,n[6]=A,n[7]=0,n[8]=C,n[9]=w,n[10]=g,n[11]=0,n[12]=v,n[13]=x,n[14]=f,n[15]=1,n},k.multiplyByMatrix3=function(e,t,n){var r=e[0],a=e[1],i=e[2],s=e[4],o=e[5],u=e[6],l=e[8],c=e[9],d=e[10],f=t[0],h=t[1],p=t[2],m=t[3],y=t[4],A=t[5],C=t[6],w=t[7],t=t[8],g=a*f+o*h+c*p,v=i*f+u*h+d*p,x=r*m+s*y+l*A,E=a*m+o*y+c*A,m=i*m+u*y+d*A,y=r*C+s*w+l*t,A=a*C+o*w+c*t,a=i*C+u*w+d*t;return n[0]=r*f+s*h+l*p,n[1]=g,n[2]=v,n[3]=0,n[4]=x,n[5]=E,n[6]=m,n[7]=0,n[8]=y,n[9]=A,n[10]=a,n[11]=0,n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15],n},k.multiplyByTranslation=function(e,t,n){var r=t.x,a=t.y,t=t.z,i=r*e[0]+a*e[4]+t*e[8]+e[12],s=r*e[1]+a*e[5]+t*e[9]+e[13],r=r*e[2]+a*e[6]+t*e[10]+e[14];return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=i,n[13]=s,n[14]=r,n[15]=e[15],n},new M.Cartesian3),oe=(k.multiplyByUniformScale=function(e,t,n){return se.x=t,se.y=t,se.z=t,k.multiplyByScale(e,se,n)},k.multiplyByScale=function(e,t,n){var r=t.x,a=t.y,t=t.z;return 1===r&&1===a&&1===t?k.clone(e,n):(n[0]=r*e[0],n[1]=r*e[1],n[2]=r*e[2],n[3]=0,n[4]=a*e[4],n[5]=a*e[5],n[6]=a*e[6],n[7]=0,n[8]=t*e[8],n[9]=t*e[9],n[10]=t*e[10],n[11]=0,n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=1,n)},k.multiplyByVector=function(e,t,n){var r=t.x,a=t.y,i=t.z,t=t.w,s=e[0]*r+e[4]*a+e[8]*i+e[12]*t,o=e[1]*r+e[5]*a+e[9]*i+e[13]*t,u=e[2]*r+e[6]*a+e[10]*i+e[14]*t,r=e[3]*r+e[7]*a+e[11]*i+e[15]*t;return n.x=s,n.y=o,n.z=u,n.w=r,n},k.multiplyByPointAsVector=function(e,t,n){var r=t.x,a=t.y,t=t.z,i=e[0]*r+e[4]*a+e[8]*t,s=e[1]*r+e[5]*a+e[9]*t,r=e[2]*r+e[6]*a+e[10]*t;return n.x=i,n.y=s,n.z=r,n},k.multiplyByPoint=function(e,t,n){var r=t.x,a=t.y,t=t.z,i=e[0]*r+e[4]*a+e[8]*t+e[12],s=e[1]*r+e[5]*a+e[9]*t+e[13],r=e[2]*r+e[6]*a+e[10]*t+e[14];return n.x=i,n.y=s,n.z=r,n},k.multiplyByScalar=function(e,t,n){return n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t,n[3]=e[3]*t,n[4]=e[4]*t,n[5]=e[5]*t,n[6]=e[6]*t,n[7]=e[7]*t,n[8]=e[8]*t,n[9]=e[9]*t,n[10]=e[10]*t,n[11]=e[11]*t,n[12]=e[12]*t,n[13]=e[13]*t,n[14]=e[14]*t,n[15]=e[15]*t,n},k.negate=function(e,t){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=-e[7],t[8]=-e[8],t[9]=-e[9],t[10]=-e[10],t[11]=-e[11],t[12]=-e[12],t[13]=-e[13],t[14]=-e[14],t[15]=-e[15],t},k.transpose=function(e,t){var n=e[1],r=e[2],a=e[3],i=e[6],s=e[7],o=e[11];return t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=i,t[10]=e[10],t[11]=e[14],t[12]=a,t[13]=s,t[14]=o,t[15]=e[15],t},k.abs=function(e,t){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t[9]=Math.abs(e[9]),t[10]=Math.abs(e[10]),t[11]=Math.abs(e[11]),t[12]=Math.abs(e[12]),t[13]=Math.abs(e[13]),t[14]=Math.abs(e[14]),t[15]=Math.abs(e[15]),t},k.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[3]===t[3]&&e[7]===t[7]&&e[11]===t[11]&&e[15]===t[15]},k.equalsEpsilon=function(e,t,n){return n=q.defaultValue(n,0),e===t||q.defined(e)&&q.defined(t)&&Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n&&Math.abs(e[2]-t[2])<=n&&Math.abs(e[3]-t[3])<=n&&Math.abs(e[4]-t[4])<=n&&Math.abs(e[5]-t[5])<=n&&Math.abs(e[6]-t[6])<=n&&Math.abs(e[7]-t[7])<=n&&Math.abs(e[8]-t[8])<=n&&Math.abs(e[9]-t[9])<=n&&Math.abs(e[10]-t[10])<=n&&Math.abs(e[11]-t[11])<=n&&Math.abs(e[12]-t[12])<=n&&Math.abs(e[13]-t[13])<=n&&Math.abs(e[14]-t[14])<=n&&Math.abs(e[15]-t[15])<=n},k.getTranslation=function(e,t){return t.x=e[12],t.y=e[13],t.z=e[14],t},k.getMatrix3=function(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},new B),ue=new B,le=new L,ce=new L(0,0,0,1),de=(k.inverse=function(e,t){var n=e[0],r=e[4],a=e[8],i=e[12],s=e[1],o=e[5],u=e[9],l=e[13],c=e[2],d=e[6],f=e[10],h=e[14],p=e[3],m=e[7],y=e[11],A=e[15],C=f*A,w=h*y,g=d*A,v=h*m,x=d*y,E=f*m,O=c*A,S=h*p,_=c*y,b=f*p,R=c*m,M=d*p,q=C*o+v*u+x*l-(w*o+g*u+E*l),T=w*s+O*u+b*l-(C*s+S*u+_*l),I=g*s+S*o+R*l-(v*s+O*o+M*l),z=E*s+_*o+M*u-(x*s+b*o+R*u),U=w*r+g*a+E*i-(C*r+v*a+x*i),D=C*n+S*a+_*i-(w*n+O*a+b*i),P=v*n+O*r+M*i-(g*n+S*r+R*i),N=x*n+b*r+R*a-(E*n+_*r+M*a),V=(C=a*l)*m+(v=i*o)*y+(x=r*u)*A-((w=i*u)*m+(g=r*l)*y+(E=a*o)*A),l=w*p+(O=n*l)*y+(b=a*s)*A-(C*p+(S=i*s)*y+(_=n*u)*A),u=g*p+S*m+(R=n*o)*A-(v*p+O*m+(M=r*s)*A),o=E*p+_*m+M*y-(x*p+b*m+R*y),s=g*f+E*h+w*d-(x*h+C*d+v*f),A=_*h+C*c+S*f-(O*f+b*h+w*c),p=O*d+M*h+v*c-(R*h+g*c+S*d),m=R*f+x*c+b*d-(_*d+M*f+E*c),y=n*q+r*T+a*I+i*z;if(Math.abs(y)<F.CesiumMath.EPSILON21){if(B.equalsEpsilon(k.getMatrix3(e,oe),ue,F.CesiumMath.EPSILON7)&&L.equals(k.getRow(e,3,le),ce))return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=-e[12],t[13]=-e[13],t[14]=-e[14],t[15]=1,t;throw new W.RuntimeError("matrix is not invertible because its determinate is zero.")}return t[0]=q*(y=1/y),t[1]=T*y,t[2]=I*y,t[3]=z*y,t[4]=U*y,t[5]=D*y,t[6]=P*y,t[7]=N*y,t[8]=V*y,t[9]=l*y,t[10]=u*y,t[11]=o*y,t[12]=s*y,t[13]=A*y,t[14]=p*y,t[15]=m*y,t},k.inverseTransformation=function(e,t){var n=e[0],r=e[1],a=e[2],i=e[4],s=e[5],o=e[6],u=e[8],l=e[9],c=e[10],d=e[12],f=e[13],e=e[14],h=-n*d-r*f-a*e,p=-i*d-s*f-o*e,d=-u*d-l*f-c*e;return t[0]=n,t[1]=i,t[2]=u,t[3]=0,t[4]=r,t[5]=s,t[6]=l,t[7]=0,t[8]=a,t[9]=o,t[10]=c,t[11]=0,t[12]=h,t[13]=p,t[14]=d,t[15]=1,t},new k);function T(e,t){this.center=M.Cartesian3.clone(q.defaultValue(e,M.Cartesian3.ZERO)),this.radius=q.defaultValue(t,0)}k.inverseTranspose=function(e,t){return k.inverse(k.transpose(e,de),t)},k.IDENTITY=Object.freeze(new k(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)),k.ZERO=Object.freeze(new k(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)),k.COLUMN0ROW0=0,k.COLUMN0ROW1=1,k.COLUMN0ROW2=2,k.COLUMN0ROW3=3,k.COLUMN1ROW0=4,k.COLUMN1ROW1=5,k.COLUMN1ROW2=6,k.COLUMN1ROW3=7,k.COLUMN2ROW0=8,k.COLUMN2ROW1=9,k.COLUMN2ROW2=10,k.COLUMN2ROW3=11,k.COLUMN3ROW0=12,k.COLUMN3ROW1=13,k.COLUMN3ROW2=14,k.COLUMN3ROW3=15,Object.defineProperties(k.prototype,{length:{get:function(){return k.packedLength}}}),k.prototype.clone=function(e){return k.clone(this,e)},k.prototype.equals=function(e){return k.equals(this,e)},k.equalsArray=function(e,t,n){return e[0]===t[n]&&e[1]===t[n+1]&&e[2]===t[n+2]&&e[3]===t[n+3]&&e[4]===t[n+4]&&e[5]===t[n+5]&&e[6]===t[n+6]&&e[7]===t[n+7]&&e[8]===t[n+8]&&e[9]===t[n+9]&&e[10]===t[n+10]&&e[11]===t[n+11]&&e[12]===t[n+12]&&e[13]===t[n+13]&&e[14]===t[n+14]&&e[15]===t[n+15]},k.prototype.equalsEpsilon=function(e,t){return k.equalsEpsilon(this,e,t)},k.prototype.toString=function(){return"("+this[0]+", "+this[4]+", "+this[8]+", "+this[12]+")\n("+this[1]+", "+this[5]+", "+this[9]+", "+this[13]+")\n("+this[2]+", "+this[6]+", "+this[10]+", "+this[14]+")\n("+this[3]+", "+this[7]+", "+this[11]+", "+this[15]+")"};for(var fe=new M.Cartesian3,he=new M.Cartesian3,pe=new M.Cartesian3,me=new M.Cartesian3,ye=new M.Cartesian3,Ae=new M.Cartesian3,Ce=new M.Cartesian3,I=new M.Cartesian3,we=new M.Cartesian3,ge=new M.Cartesian3,ve=new M.Cartesian3,xe=new M.Cartesian3,Ee=4/3*F.CesiumMath.PI,Oe=(T.fromPoints=function(e,t){if(q.defined(t)||(t=new T),q.defined(e)&&0!==e.length){for(var n=M.Cartesian3.clone(e[0],Ce),r=M.Cartesian3.clone(n,fe),a=M.Cartesian3.clone(n,he),i=M.Cartesian3.clone(n,pe),s=M.Cartesian3.clone(n,me),o=M.Cartesian3.clone(n,ye),u=M.Cartesian3.clone(n,Ae),l=e.length,c=1;c<l;c++){M.Cartesian3.clone(e[c],n);var d=n.x,f=n.y,h=n.z;d<r.x&&M.Cartesian3.clone(n,r),d>s.x&&M.Cartesian3.clone(n,s),f<a.y&&M.Cartesian3.clone(n,a),f>o.y&&M.Cartesian3.clone(n,o),h<i.z&&M.Cartesian3.clone(n,i),h>u.z&&M.Cartesian3.clone(n,u)}var p=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(s,r,I)),m=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(o,a,I)),y=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(u,i,I)),A=r,C=s,w=p,g=(p<m&&(w=m,A=a,C=o),w<y&&(w=y,A=i,C=u),we),v=(g.x=.5*(A.x+C.x),g.y=.5*(A.y+C.y),g.z=.5*(A.z+C.z),M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(C,g,I))),x=Math.sqrt(v),p=ge,m=(p.x=r.x,p.y=a.y,p.z=i.z,ve),E=(m.x=s.x,m.y=o.y,m.z=u.z,M.Cartesian3.midpoint(p,m,xe)),O=0;for(c=0;c<l;c++){M.Cartesian3.clone(e[c],n);var S,_=M.Cartesian3.magnitude(M.Cartesian3.subtract(n,E,I)),_=(O<_&&(O=_),M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(n,g,I)));v<_&&(v=(x=.5*(x+(_=Math.sqrt(_))))*x,g.x=(x*g.x+(S=_-x)*n.x)/_,g.y=(x*g.y+S*n.y)/_,g.z=(x*g.z+S*n.z)/_)}x<O?(M.Cartesian3.clone(g,t.center),t.radius=x):(M.Cartesian3.clone(E,t.center),t.radius=O)}else t.center=M.Cartesian3.clone(M.Cartesian3.ZERO,t.center),t.radius=0;return t},new z),Se=new M.Cartesian3,_e=new M.Cartesian3,be=new M.Cartographic,Re=new M.Cartographic,Me=(T.fromRectangle2D=function(e,t,n){return T.fromRectangleWithHeights2D(e,t,0,0,n)},T.fromRectangleWithHeights2D=function(e,t,n,r,a){var i;return q.defined(a)||(a=new T),q.defined(e)?(t=q.defaultValue(t,Oe),M.Rectangle.southwest(e,be),be.height=n,M.Rectangle.northeast(e,Re),Re.height=r,n=t.project(be,Se),r=(e=t.project(Re,_e)).x-n.x,t=e.y-n.y,e=e.z-n.z,a.radius=.5*Math.sqrt(r*r+t*t+e*e),(i=a.center).x=n.x+.5*r,i.y=n.y+.5*t,i.z=n.z+.5*e):(a.center=M.Cartesian3.clone(M.Cartesian3.ZERO,a.center),a.radius=0),a},[]),qe=(T.fromRectangle3D=function(e,t,n,r){return t=q.defaultValue(t,M.Ellipsoid.WGS84),n=q.defaultValue(n,0),q.defined(r)||(r=new T),q.defined(e)?(e=M.Rectangle.subsample(e,t,n,Me),T.fromPoints(e,r)):(r.center=M.Cartesian3.clone(M.Cartesian3.ZERO,r.center),r.radius=0,r)},T.fromVertices=function(e,t,n,r){if(q.defined(r)||(r=new T),q.defined(e)&&0!==e.length){t=q.defaultValue(t,M.Cartesian3.ZERO),n=q.defaultValue(n,3);for(var a=Ce,i=(a.x=e[0]+t.x,a.y=e[1]+t.y,a.z=e[2]+t.z,M.Cartesian3.clone(a,fe)),s=M.Cartesian3.clone(a,he),o=M.Cartesian3.clone(a,pe),u=M.Cartesian3.clone(a,me),l=M.Cartesian3.clone(a,ye),c=M.Cartesian3.clone(a,Ae),d=e.length,f=0;f<d;f+=n){var h=e[f]+t.x,p=e[f+1]+t.y,m=e[f+2]+t.z;a.x=h,a.y=p,a.z=m,h<i.x&&M.Cartesian3.clone(a,i),h>u.x&&M.Cartesian3.clone(a,u),p<s.y&&M.Cartesian3.clone(a,s),p>l.y&&M.Cartesian3.clone(a,l),m<o.z&&M.Cartesian3.clone(a,o),m>c.z&&M.Cartesian3.clone(a,c)}var y=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(u,i,I)),A=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(l,s,I)),C=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(c,o,I)),w=i,g=u,v=y,x=(y<A&&(v=A,w=s,g=l),v<C&&(v=C,w=o,g=c),we),E=(x.x=.5*(w.x+g.x),x.y=.5*(w.y+g.y),x.z=.5*(w.z+g.z),M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(g,x,I))),O=Math.sqrt(E),y=ge,A=(y.x=i.x,y.y=s.y,y.z=o.z,ve),S=(A.x=u.x,A.y=l.y,A.z=c.z,M.Cartesian3.midpoint(y,A,xe)),_=0;for(f=0;f<d;f+=n){a.x=e[f]+t.x,a.y=e[f+1]+t.y,a.z=e[f+2]+t.z;var b,R=M.Cartesian3.magnitude(M.Cartesian3.subtract(a,S,I)),R=(_<R&&(_=R),M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(a,x,I)));E<R&&(E=(O=.5*(O+(R=Math.sqrt(R))))*O,x.x=(O*x.x+(b=R-O)*a.x)/R,x.y=(O*x.y+b*a.y)/R,x.z=(O*x.z+b*a.z)/R)}O<_?(M.Cartesian3.clone(x,r.center),r.radius=O):(M.Cartesian3.clone(S,r.center),r.radius=_)}else r.center=M.Cartesian3.clone(M.Cartesian3.ZERO,r.center),r.radius=0;return r},T.fromEncodedCartesianVertices=function(e,t,n){if(q.defined(n)||(n=new T),q.defined(e)&&q.defined(t)&&e.length===t.length&&0!==e.length){for(var r=Ce,a=(r.x=e[0]+t[0],r.y=e[1]+t[1],r.z=e[2]+t[2],M.Cartesian3.clone(r,fe)),i=M.Cartesian3.clone(r,he),s=M.Cartesian3.clone(r,pe),o=M.Cartesian3.clone(r,me),u=M.Cartesian3.clone(r,ye),l=M.Cartesian3.clone(r,Ae),c=e.length,d=0;d<c;d+=3){var f=e[d]+t[d],h=e[d+1]+t[d+1],p=e[d+2]+t[d+2];r.x=f,r.y=h,r.z=p,f<a.x&&M.Cartesian3.clone(r,a),f>o.x&&M.Cartesian3.clone(r,o),h<i.y&&M.Cartesian3.clone(r,i),h>u.y&&M.Cartesian3.clone(r,u),p<s.z&&M.Cartesian3.clone(r,s),p>l.z&&M.Cartesian3.clone(r,l)}var m=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(o,a,I)),y=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(u,i,I)),A=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(l,s,I)),C=a,w=o,g=m,v=(m<y&&(g=y,C=i,w=u),g<A&&(g=A,C=s,w=l),we),x=(v.x=.5*(C.x+w.x),v.y=.5*(C.y+w.y),v.z=.5*(C.z+w.z),M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(w,v,I))),E=Math.sqrt(x),m=ge,y=(m.x=a.x,m.y=i.y,m.z=s.z,ve),O=(y.x=o.x,y.y=u.y,y.z=l.z,M.Cartesian3.midpoint(m,y,xe)),S=0;for(d=0;d<c;d+=3){r.x=e[d]+t[d],r.y=e[d+1]+t[d+1],r.z=e[d+2]+t[d+2];var _,b=M.Cartesian3.magnitude(M.Cartesian3.subtract(r,O,I)),b=(S<b&&(S=b),M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(r,v,I)));x<b&&(x=(E=.5*(E+(b=Math.sqrt(b))))*E,v.x=(E*v.x+(_=b-E)*r.x)/b,v.y=(E*v.y+_*r.y)/b,v.z=(E*v.z+_*r.z)/b)}E<S?(M.Cartesian3.clone(v,n.center),n.radius=E):(M.Cartesian3.clone(O,n.center),n.radius=S)}else n.center=M.Cartesian3.clone(M.Cartesian3.ZERO,n.center),n.radius=0;return n},T.fromCornerPoints=function(e,t,n){q.defined(n)||(n=new T);e=M.Cartesian3.midpoint(e,t,n.center);return n.radius=M.Cartesian3.distance(e,t),n},T.fromEllipsoid=function(e,t){return q.defined(t)||(t=new T),M.Cartesian3.clone(M.Cartesian3.ZERO,t.center),t.radius=e.maximumRadius,t},new M.Cartesian3),Te=(T.fromBoundingSpheres=function(e,t){if(q.defined(t)||(t=new T),q.defined(e)&&0!==e.length){var n=e.length;if(1===n)return T.clone(e[0],t);if(2===n)return T.union(e[0],e[1],t);for(var r=[],a=0;a<n;a++)r.push(e[a].center);var i=(t=T.fromPoints(r,t)).center,s=t.radius;for(a=0;a<n;a++)var o=e[a],s=Math.max(s,M.Cartesian3.distance(i,o.center,qe)+o.radius);t.radius=s}else t.center=M.Cartesian3.clone(M.Cartesian3.ZERO,t.center),t.radius=0;return t},new M.Cartesian3),Ie=new M.Cartesian3,ze=new M.Cartesian3,Ue=(T.fromOrientedBoundingBox=function(e,t){q.defined(t)||(t=new T);var n=e.halfAxes,r=B.getColumn(n,0,Te),a=B.getColumn(n,1,Ie),n=B.getColumn(n,2,ze);return M.Cartesian3.add(r,a,r),M.Cartesian3.add(r,n,r),t.center=M.Cartesian3.clone(e.center,t.center),t.radius=M.Cartesian3.magnitude(r),t},T.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t.center=M.Cartesian3.clone(e.center,t.center),t.radius=e.radius,t):new T(e.center,e.radius)},T.packedLength=4,T.pack=function(e,t,n){n=q.defaultValue(n,0);var r=e.center;return t[n++]=r.x,t[n++]=r.y,t[n++]=r.z,t[n]=e.radius,t},T.unpack=function(e,t,n){t=q.defaultValue(t,0);var r=(n=q.defined(n)?n:new T).center;return r.x=e[t++],r.y=e[t++],r.z=e[t++],n.radius=e[t],n},new M.Cartesian3),De=new M.Cartesian3,Pe=(T.union=function(e,t,n){q.defined(n)||(n=new T);var r=e.center,a=e.radius,i=t.center,s=t.radius,i=M.Cartesian3.subtract(i,r,Ue),o=M.Cartesian3.magnitude(i);return o+s<=a?e.clone(n):o+a<=s?t.clone(n):(t=M.Cartesian3.multiplyByScalar(i,((e=.5*(a+o+s))-a)/o,De),M.Cartesian3.add(t,r,t),M.Cartesian3.clone(t,n.center),n.radius=e),n},new M.Cartesian3),Ne=(T.expand=function(e,t,n){n=T.clone(e,n);e=M.Cartesian3.magnitude(M.Cartesian3.subtract(t,n.center,Pe));return e>n.radius&&(n.radius=e),n},T.intersectPlane=function(e,t){var n=e.center,e=e.radius,r=t.normal,r=M.Cartesian3.dot(r,n)+t.distance;return r<-e?U.OUTSIDE:r<e?U.INTERSECTING:U.INSIDE},T.transform=function(e,t,n){return(n=q.defined(n)?n:new T).center=k.multiplyByPoint(t,e.center,n.center),n.radius=k.getMaximumScale(t)*e.radius,n},new M.Cartesian3),Ve=(T.distanceSquaredTo=function(e,t){t=M.Cartesian3.subtract(e.center,t,Ne),t=M.Cartesian3.magnitude(t)-e.radius;return t<=0?0:t*t},T.transformWithoutScale=function(e,t,n){return(n=q.defined(n)?n:new T).center=k.multiplyByPoint(t,e.center,n.center),n.radius=e.radius,n},new M.Cartesian3),Fe=(T.computePlaneDistances=function(e,t,n,r){q.defined(r)||(r=new D);t=M.Cartesian3.subtract(e.center,t,Ve),n=M.Cartesian3.dot(n,t);return r.start=n-e.radius,r.stop=n+e.radius,r},new M.Cartesian3),Be=new M.Cartesian3,Le=new M.Cartesian3,ke=new M.Cartesian3,We=new M.Cartesian3,je=new M.Cartographic,Ye=new Array(8),He=0;He<8;++He)Ye[He]=new M.Cartesian3;var Ze,r,Xe,Je,Ge,Qe,Ke,$e,et,tt,nt,rt,at,it,st,ot,ut,lt,ct=new z,s=(T.projectTo2D=function(e,t,n){for(var r=(t=q.defaultValue(t,ct)).ellipsoid,a=e.center,e=e.radius,i=M.Cartesian3.equals(a,M.Cartesian3.ZERO)?M.Cartesian3.clone(M.Cartesian3.UNIT_X,Fe):r.geodeticSurfaceNormal(a,Fe),s=M.Cartesian3.cross(M.Cartesian3.UNIT_Z,i,Be),o=(M.Cartesian3.normalize(s,s),M.Cartesian3.cross(i,s,Le)),e=(M.Cartesian3.normalize(o,o),M.Cartesian3.multiplyByScalar(i,e,i),M.Cartesian3.multiplyByScalar(o,e,o),M.Cartesian3.multiplyByScalar(s,e,s),M.Cartesian3.negate(o,We)),u=M.Cartesian3.negate(s,ke),l=Ye,c=l[0],d=(M.Cartesian3.add(i,o,c),M.Cartesian3.add(c,s,c),c=l[1],M.Cartesian3.add(i,o,c),M.Cartesian3.add(c,u,c),c=l[2],M.Cartesian3.add(i,e,c),M.Cartesian3.add(c,u,c),c=l[3],M.Cartesian3.add(i,e,c),M.Cartesian3.add(c,s,c),M.Cartesian3.negate(i,i),c=l[4],M.Cartesian3.add(i,o,c),M.Cartesian3.add(c,s,c),c=l[5],M.Cartesian3.add(i,o,c),M.Cartesian3.add(c,u,c),c=l[6],M.Cartesian3.add(i,e,c),M.Cartesian3.add(c,u,c),c=l[7],M.Cartesian3.add(i,e,c),M.Cartesian3.add(c,s,c),l.length),f=0;f<d;++f){var h=l[f],p=(M.Cartesian3.add(a,h,h),r.cartesianToCartographic(h,je));t.project(p,h)}o=(a=(n=T.fromPoints(l,n)).center).x,u=a.y,i=a.z;return a.x=i,a.y=o,a.z=u,n},T.isOccluded=function(e,t){return!t.isBoundingSphereVisible(e)},T.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&M.Cartesian3.equals(e.center,t.center)&&e.radius===t.radius},T.prototype.intersectPlane=function(e){return T.intersectPlane(this,e)},T.prototype.distanceSquaredTo=function(e){return T.distanceSquaredTo(this,e)},T.prototype.computePlaneDistances=function(e,t,n){return T.computePlaneDistances(this,e,t,n)},T.prototype.isOccluded=function(e){return T.isOccluded(this,e)},T.prototype.equals=function(e){return T.equals(this,e)},T.prototype.clone=function(e){return T.clone(this,e)},T.prototype.volume=function(){var e=this.radius;return Ee*e*e*e},{requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0}),a={};function dt(e){for(var t=e.split("."),n=0,r=t.length;n<r;++n)t[n]=parseInt(t[n],10);return t}function ft(){var e;return q.defined(Xe)||(Xe=!1,yt())||null!==(e=/ Chrome\/([\.0-9]+)/.exec(r.userAgent))&&(Xe=!0,Je=dt(e[1])),Xe}function ht(){var e;return q.defined(Ge)||(Ge=!1,ft())||yt()||!/ Safari\/[\.0-9]+/.test(r.userAgent)||null!==(e=/ Version\/([\.0-9]+)/.exec(r.userAgent))&&(Ge=!0,Qe=dt(e[1])),Ge}function pt(){var e;return q.defined(Ke)||(Ke=!1,null!==(e=/ AppleWebKit\/([\.0-9]+)(\+?)/.exec(r.userAgent))&&(Ke=!0,($e=dt(e[1])).isNightly=!!e[2])),Ke}function mt(){var e;return q.defined(et)||(et=!1,"Microsoft Internet Explorer"===r.appName?null!==(e=/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(r.userAgent))&&(et=!0,tt=dt(e[1])):"Netscape"===r.appName&&null!==(e=/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(r.userAgent))&&(et=!0,tt=dt(e[1]))),et}function yt(){var e;return q.defined(nt)||(nt=!1,null!==(e=/ Edge\/([\.0-9]+)/.exec(r.userAgent))&&(nt=!0,rt=dt(e[1]))),nt}function At(){var e;return q.defined(at)||(at=!1,null!==(e=/Firefox\/([\.0-9]+)/.exec(r.userAgent))&&(at=!0,it=dt(e[1]))),at}function Ct(){var e;return!q.defined(lt)&&((e=document.createElement("canvas")).setAttribute("style","image-rendering: -moz-crisp-edges;image-rendering: pixelated;"),e=e.style.imageRendering,lt=q.defined(e)&&""!==e)&&(ut=e),lt}function i(){return i._result}Object.defineProperties(a,{element:{get:function(){if(a.supportsFullscreen())return document[s.fullscreenElement]}},changeEventName:{get:function(){if(a.supportsFullscreen())return s.fullscreenchange}},errorEventName:{get:function(){if(a.supportsFullscreen())return s.fullscreenerror}},enabled:{get:function(){if(a.supportsFullscreen())return document[s.fullscreenEnabled]}},fullscreen:{get:function(){if(a.supportsFullscreen())return null!==a.element}}}),a.supportsFullscreen=function(){if(!q.defined(Ze)){Ze=!1;var e=document.body;if("function"==typeof e.requestFullscreen)return s.requestFullscreen="requestFullscreen",s.exitFullscreen="exitFullscreen",s.fullscreenEnabled="fullscreenEnabled",s.fullscreenElement="fullscreenElement",s.fullscreenchange="fullscreenchange",s.fullscreenerror="fullscreenerror",Ze=!0;for(var t=["webkit","moz","o","ms","khtml"],n=0,r=t.length;n<r;++n){var a,i=t[n];("function"==typeof e[a=i+"RequestFullscreen"]||"function"==typeof e[a=i+"RequestFullScreen"])&&(s.requestFullscreen=a,Ze=!0),a=i+"ExitFullscreen",("function"==typeof document[a]||(a=i+"CancelFullScreen","function"==typeof document[a]))&&(s.exitFullscreen=a),a=i+"FullscreenEnabled",(void 0!==document[a]||(a=i+"FullScreenEnabled",void 0!==document[a]))&&(s.fullscreenEnabled=a),a=i+"FullscreenElement",(void 0!==document[a]||(a=i+"FullScreenElement",void 0!==document[a]))&&(s.fullscreenElement=a),a=i+"fullscreenchange",void 0!==document["on"+a]&&(s.fullscreenchange=a="ms"===i?"MSFullscreenChange":a),a=i+"fullscreenerror",void 0!==document["on"+a]&&(s.fullscreenerror=a="ms"===i?"MSFullscreenError":a)}}return Ze},a.requestFullscreen=function(e,t){a.supportsFullscreen()&&e[s.requestFullscreen]({vrDisplay:t})},a.exitFullscreen=function(){a.supportsFullscreen()&&document[s.exitFullscreen]()},a._names=s,r="undefined"!=typeof navigator?navigator:{},i._promise=void 0,i._result=void 0,i.initialize=function(){var e,t;return q.defined(i._promise)?i._promise:(e=q.when.defer(),i._promise=e.promise,yt()?(i._result=!1,e.resolve(i._result)):((t=new Image).onload=function(){i._result=0<t.width&&0<t.height,e.resolve(i._result)},t.onerror=function(){i._result=!1,e.resolve(i._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"),e.promise)},Object.defineProperties(i,{initialized:{get:function(){return q.defined(i._result)}}});var t=[],u=("undefined"!=typeof ArrayBuffer&&(t.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),"undefined"!=typeof Uint8ClampedArray&&t.push(Uint8ClampedArray),"undefined"!=typeof Uint8ClampedArray&&t.push(Uint8ClampedArray),"undefined"!=typeof BigInt64Array&&t.push(BigInt64Array),"undefined"!=typeof BigUint64Array)&&t.push(BigUint64Array),{isChrome:ft,chromeVersion:function(){return ft()&&Je},isSafari:ht,safariVersion:function(){return ht()&&Qe},isWebkit:pt,webkitVersion:function(){return pt()&&$e},isInternetExplorer:mt,internetExplorerVersion:function(){return mt()&&tt},isEdge:yt,edgeVersion:function(){return yt()&&rt},isFirefox:At,firefoxVersion:function(){return At()&&it},isWindows:function(){return st=q.defined(st)?st:/Windows/i.test(r.appVersion)},hardwareConcurrency:q.defaultValue(r.hardwareConcurrency,3),supportsPointerEvents:function(){return ot=q.defined(ot)?ot:!At()&&"undefined"!=typeof PointerEvent&&(!q.defined(r.pointerEnabled)||r.pointerEnabled)},supportsImageRenderingPixelated:Ct,supportsWebP:i,imageRenderingValue:function(){return Ct()?ut:void 0},typedArrayTypes:t});function c(e,t,n,r){this.x=q.defaultValue(e,0),this.y=q.defaultValue(t,0),this.z=q.defaultValue(n,0),this.w=q.defaultValue(r,0)}u.supportsBasis=function(e){return u.supportsWebAssembly()&&e.context.supportsBasis},u.supportsFullscreen=function(){return a.supportsFullscreen()},u.supportsTypedArrays=function(){return"undefined"!=typeof ArrayBuffer},u.supportsBigInt64Array=function(){return"undefined"!=typeof BigInt64Array},u.supportsBigUint64Array=function(){return"undefined"!=typeof BigUint64Array},u.supportsBigInt=function(){return"undefined"!=typeof BigInt},u.supportsWebWorkers=function(){return"undefined"!=typeof Worker},u.supportsWebAssembly=function(){return"undefined"!=typeof WebAssembly&&!u.isEdge()};for(var wt,gt,vt=new M.Cartesian3,xt=(c.fromAxisAngle=function(e,t,n){var t=t/2,r=Math.sin(t),e=(vt=M.Cartesian3.normalize(e,vt)).x*r,a=vt.y*r,r=vt.z*r,t=Math.cos(t);return q.defined(n)?(n.x=e,n.y=a,n.z=r,n.w=t,n):new c(e,a,r,t)},[1,2,0]),Et=new Array(3),Ot=(c.fromRotationMatrix=function(e,t){var n,r,a,i,s=e[B.COLUMN0ROW0],o=e[B.COLUMN1ROW1],u=e[B.COLUMN2ROW2],l=s+o+u,u=0<l?(a=.5*(i=Math.sqrt(l+1)),n=(e[B.COLUMN1ROW2]-e[B.COLUMN2ROW1])*(i=.5/i),r=(e[B.COLUMN2ROW0]-e[B.COLUMN0ROW2])*i,(e[B.COLUMN0ROW1]-e[B.COLUMN1ROW0])*i):(s=xt[u=xt[l=s<u&&o<u?2:s<o?1:0]],i=Math.sqrt(e[B.getElementIndex(l,l)]-e[B.getElementIndex(u,u)]-e[B.getElementIndex(s,s)]+1),(o=Et)[l]=.5*i,i=.5/i,a=(e[B.getElementIndex(s,u)]-e[B.getElementIndex(u,s)])*i,o[u]=(e[B.getElementIndex(u,l)]+e[B.getElementIndex(l,u)])*i,o[s]=(e[B.getElementIndex(s,l)]+e[B.getElementIndex(l,s)])*i,n=-o[0],r=-o[1],-o[2]);return q.defined(t)?(t.x=n,t.y=r,t.z=u,t.w=a,t):new c(n,r,u,a)},new c),St=(new c,new c,new c,c.fromHeadingPitchRoll=function(e,t){return gt=c.fromAxisAngle(M.Cartesian3.UNIT_X,e.roll,Ot),wt=c.fromAxisAngle(M.Cartesian3.UNIT_Y,-e.pitch,t),t=c.multiply(wt,gt,wt),gt=c.fromAxisAngle(M.Cartesian3.UNIT_Z,-e.heading,Ot),c.multiply(gt,t,t)},new M.Cartesian3),_t=new M.Cartesian3,l=new c,bt=new c,Rt=new c,Mt=(c.packedLength=4,c.pack=function(e,t,n){return n=q.defaultValue(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t},c.unpack=function(e,t,n){return t=q.defaultValue(t,0),(n=q.defined(n)?n:new c).x=e[t],n.y=e[t+1],n.z=e[t+2],n.w=e[t+3],n},c.packedInterpolationLength=3,c.convertPackedArrayForInterpolation=function(e,t,n,r){c.unpack(e,4*n,Rt),c.conjugate(Rt,Rt);for(var a=0,i=n-t+1;a<i;a++){var s=3*a,o=(c.unpack(e,4*(t+a),l),c.multiply(l,Rt,l),l.w<0&&c.negate(l,l),c.computeAxis(l,St),c.computeAngle(l));(r=q.defined(r)?r:[])[s]=St.x*o,r[1+s]=St.y*o,r[2+s]=St.z*o}},c.unpackInterpolationResult=function(e,t,n,r,a){q.defined(a)||(a=new c),M.Cartesian3.fromArray(e,0,_t);e=M.Cartesian3.magnitude(_t);return c.unpack(t,4*r,bt),0===e?c.clone(c.IDENTITY,l):c.fromAxisAngle(_t,e,l),c.multiply(l,bt,a)},c.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new c(e.x,e.y,e.z,e.w)},c.conjugate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=e.w,t},c.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w},c.magnitude=function(e){return Math.sqrt(c.magnitudeSquared(e))},c.normalize=function(e,t){var n=1/c.magnitude(e),r=e.x*n,a=e.y*n,i=e.z*n,e=e.w*n;return t.x=r,t.y=a,t.z=i,t.w=e,t},c.inverse=function(e,t){var n=c.magnitudeSquared(e);return t=c.conjugate(e,t),c.multiplyByScalar(t,1/n,t)},c.add=function(e,t,n){return n.x=e.x+t.x,n.y=e.y+t.y,n.z=e.z+t.z,n.w=e.w+t.w,n},c.subtract=function(e,t,n){return n.x=e.x-t.x,n.y=e.y-t.y,n.z=e.z-t.z,n.w=e.w-t.w,n},c.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=-e.w,t},c.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w},c.multiply=function(e,t,n){var r=e.x,a=e.y,i=e.z,e=e.w,s=t.x,o=t.y,u=t.z,t=t.w,l=e*o-r*u+a*t+i*s,c=e*u+r*o-a*s+i*t,d=e*t-r*s-a*o-i*u;return n.x=e*s+r*t+a*u-i*o,n.y=l,n.z=c,n.w=d,n},c.multiplyByScalar=function(e,t,n){return n.x=e.x*t,n.y=e.y*t,n.z=e.z*t,n.w=e.w*t,n},c.divideByScalar=function(e,t,n){return n.x=e.x/t,n.y=e.y/t,n.z=e.z/t,n.w=e.w/t,n},c.computeAxis=function(e,t){var n=e.w;return Math.abs(n-1)<F.CesiumMath.EPSILON6?t.x=t.y=t.z=0:(n=1/Math.sqrt(1-n*n),t.x=e.x*n,t.y=e.y*n,t.z=e.z*n),t},c.computeAngle=function(e){return Math.abs(e.w-1)<F.CesiumMath.EPSILON6?0:2*Math.acos(e.w)},new c),qt=(c.lerp=function(e,t,n,r){return Mt=c.multiplyByScalar(t,n,Mt),r=c.multiplyByScalar(e,1-n,r),c.add(Mt,r,r)},new c),Tt=new c,It=new c,zt=(c.slerp=function(e,t,n,r){var a=c.dot(e,t),i=t;return a<0&&(a=-a,i=qt=c.negate(t,qt)),1-a<F.CesiumMath.EPSILON6?c.lerp(e,i,n,r):(t=Math.acos(a),Tt=c.multiplyByScalar(e,Math.sin((1-n)*t),Tt),It=c.multiplyByScalar(i,Math.sin(n*t),It),r=c.add(Tt,It,r),c.multiplyByScalar(r,1/Math.sin(t),r))},c.log=function(e,t){var n=F.CesiumMath.acosClamped(e.w),r=0;return 0!==n&&(r=n/Math.sin(n)),M.Cartesian3.multiplyByScalar(e,r,t)},c.exp=function(e,t){var n=M.Cartesian3.magnitude(e),r=0;return 0!==n&&(r=Math.sin(n)/n),t.x=e.x*r,t.y=e.y*r,t.z=e.z*r,t.w=Math.cos(n),t},new M.Cartesian3),Ut=new M.Cartesian3,Dt=new c,Pt=new c,Nt=(c.computeInnerQuadrangle=function(e,t,n,r){var a=c.conjugate(t,Dt),n=(c.multiply(a,n,Pt),c.log(Pt,zt)),a=(c.multiply(a,e,Pt),c.log(Pt,Ut));return M.Cartesian3.add(n,a,n),M.Cartesian3.multiplyByScalar(n,.25,n),M.Cartesian3.negate(n,n),c.exp(n,Dt),c.multiply(t,Dt,r)},c.squad=function(e,t,n,r,a,i){e=c.slerp(e,t,a,Dt),t=c.slerp(n,r,a,Pt);return c.slerp(e,t,2*a*(1-a),i)},new c),t=1.9011074535173003,Vt=u.supportsTypedArrays()?new Float32Array(8):[],Ft=u.supportsTypedArrays()?new Float32Array(8):[],Bt=u.supportsTypedArrays()?new Float32Array(8):[],Lt=u.supportsTypedArrays()?new Float32Array(8):[],kt=0;kt<7;++kt){var Wt=kt+1,jt=2*Wt+1;Vt[kt]=1/(Wt*jt),Ft[kt]=Wt/jt}function Yt(e,t,n){for(var r,a,i=0,s=e.length-1;i<=s;)if((a=n(e[r=~~((i+s)/2)],t))<0)i=1+r;else{if(!(0<a))return r;s=r-1}return~(s+1)}function Ht(e,t,n,r,a){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=n,this.yPoleOffset=r,this.ut1MinusUtc=a}function Zt(){function w(e,t,n,r,a,i,s){var o=e>>>0;return e=(n=n&&o&&{2:"0b",8:"0",16:"0x"}[t]||"")+E(o.toString(t),i||0,"0",!1),O(e,n,r,a,s)}function g(e,t,n,r,a,i){return null!=r&&(e=e.slice(0,r)),O(e,"",t,n,a,i)}var v=arguments,x=0,e=v[x++],E=function(e,t,n,r){n=n||" ";t=e.length>=t?"":Array(1+t-e.length>>>0).join(n);return r?e+t:t+e},O=function(e,t,n,r,a,i){var s=r-e.length;return e=0<s?n||!a?E(e,r,i,n):e.slice(0,t.length)+E("",s,"0",!0)+e.slice(t.length):e};return e.replace(/%%|%(\d+\$)?([-+\'#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuideEfFgG])/g,function(e,t,n,r,a,i,s){var o,u,l,c,d;if("%%"==e)return"%";for(var f=!1,h="",p=!1,m=!1,y=" ",A=n.length,C=0;n&&C<A;C++)switch(n.charAt(C)){case" ":h=" ";break;case"+":h="+";break;case"-":f=!0;break;case"'":y=n.charAt(C+1);break;case"0":p=!0;break;case"#":m=!0}if((r=r?"*"==r?+v[x++]:"*"==r.charAt(0)?+v[r.slice(1,-1)]:+r:0)<0&&(r=-r,f=!0),!isFinite(r))throw new Error("sprintf: (minimum-)width must be finite");switch(i=i?"*"==i?+v[x++]:"*"==i.charAt(0)?+v[i.slice(1,-1)]:+i:-1<"fFeE".indexOf(s)?6:"d"==s?0:void 0,d=t?v[t.slice(0,-1)]:v[x++],s){case"s":return g(String(d),f,r,i,p,y);case"c":return g(String.fromCharCode(+d),f,r,i,p);case"b":return w(d,2,m,f,r,i,p);case"o":return w(d,8,m,f,r,i,p);case"x":return w(d,16,m,f,r,i,p);case"X":return w(d,16,m,f,r,i,p).toUpperCase();case"u":return w(d,10,m,f,r,i,p);case"i":case"d":return o=+d||0,d=(u=(o=Math.round(o-o%1))<0?"-":h)+E(String(Math.abs(o)),i,"0",!1),O(d,u,f,r,p);case"e":case"E":case"f":case"F":case"g":case"G":return u=(o=+d)<0?"-":h,l=["toExponential","toFixed","toPrecision"]["efg".indexOf(s.toLowerCase())],c=["toString","toUpperCase"]["eEfFgG".indexOf(s)%2],d=u+Math.abs(o)[l](i),O(d,u,f,r,p)[c]();default:return e}})}function Xt(e,t,n,r,a,i,s,o){this.year=e,this.month=t,this.day=n,this.hour=r,this.minute=a,this.second=i,this.millisecond=s,this.isLeapSecond=o}function Jt(e){return e%4==0&&e%100!=0||e%400==0}function w(e,t){this.julianDate=e,this.offset=t}Vt[7]=t/136,Ft[7]=8*t/17,c.fastSlerp=function(e,t,n,r){for(var a=c.dot(e,t),i=(0<=a?l=1:(l=-1,a=-a),a-1),a=1-n,s=n*n,o=a*a,u=7;0<=u;--u)Bt[u]=(Vt[u]*s-Ft[u])*i,Lt[u]=(Vt[u]*o-Ft[u])*i;var l=l*n*(1+Bt[0]*(1+Bt[1]*(1+Bt[2]*(1+Bt[3]*(1+Bt[4]*(1+Bt[5]*(1+Bt[6]*(1+Bt[7])))))))),n=a*(1+Lt[0]*(1+Lt[1]*(1+Lt[2]*(1+Lt[3]*(1+Lt[4]*(1+Lt[5]*(1+Lt[6]*(1+Lt[7])))))))),a=c.multiplyByScalar(e,n,Nt);return c.multiplyByScalar(t,l,r),c.add(a,r,r)},c.fastSquad=function(e,t,n,r,a,i){e=c.fastSlerp(e,t,a,Dt),t=c.fastSlerp(n,r,a,Pt);return c.fastSlerp(e,t,2*a*(1-a),i)},c.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w},c.equalsEpsilon=function(e,t,n){return n=q.defaultValue(n,0),e===t||q.defined(e)&&q.defined(t)&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.z-t.z)<=n&&Math.abs(e.w-t.w)<=n},c.ZERO=Object.freeze(new c(0,0,0,0)),c.IDENTITY=Object.freeze(new c(0,0,0,1)),c.prototype.clone=function(e){return c.clone(this,e)},c.prototype.equals=function(e){return c.equals(this,e)},c.prototype.equalsEpsilon=function(e,t){return c.equalsEpsilon(this,e,t)},c.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+", "+this.w+")"};var g=Object.freeze({SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:2400000.5}),v=Object.freeze({UTC:0,TAI:1}),Gt=new Xt,Qt=[31,28,31,30,31,30,31,31,30,31,30,31];function Kt(e,t){return x.compare(e.julianDate,t.julianDate)}var $t=new w;function en(e){$t.julianDate=e;var t=x.leapSeconds,n=Yt(t,$t,Kt),r=t[n=(n=n<0?~n:n)>=t.length?t.length-1:n].offset;0<n&&r<x.secondsDifference(t[n].julianDate,e)&&(r=t[--n].offset),x.addSeconds(e,r,e)}function tn(e,t){$t.julianDate=e;var n,r=x.leapSeconds,a=Yt(r,$t,Kt);return 0===(a=a<0?~a:a)?x.addSeconds(e,-r[0].offset,t):a>=r.length?x.addSeconds(e,-r[a-1].offset,t):0===(n=x.secondsDifference(r[a].julianDate,e))?x.addSeconds(e,-r[a].offset,t):n<=1?void 0:x.addSeconds(e,-r[--a].offset,t)}function nn(e,t,n){var r=t/g.SECONDS_PER_DAY|0;return e+=r,(t-=g.SECONDS_PER_DAY*r)<0&&(e--,t+=g.SECONDS_PER_DAY),n.dayNumber=e,n.secondsOfDay=t,n}function rn(e,t,n,r,a,i,s){var o=(t-14)/12|0,e=e+4800+o,t=(1461*e/4|0)+(367*(t-2-12*o)/12|0)-(3*((e+100)/100|0)/4|0)+n-32075,o=((r-=12)<0&&(r+=24),i+(r*g.SECONDS_PER_HOUR+a*g.SECONDS_PER_MINUTE+s*g.SECONDS_PER_MILLISECOND));return 43200<=o&&--t,[t,o]}var an=/^(\d{4})$/,sn=/^(\d{4})-(\d{2})$/,on=/^(\d{4})-?(\d{3})$/,un=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,ln=/^(\d{4})-?(\d{2})-?(\d{2})$/,t=/([Z+\-])?(\d{2})?:?(\d{2})?$/,cn=/^(\d{2})(\.\d+)?/.source+t.source,dn=/^(\d{2}):?(\d{2})(\.\d+)?/.source+t.source,fn=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+t.source;function x(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=q.defaultValue(e,0),t=q.defaultValue(t,0),n=q.defaultValue(n,v.UTC);var r=0|e;nn(r,t+=(e-r)*g.SECONDS_PER_DAY,this),n===v.UTC&&en(this)}x.fromGregorianDate=function(e,t){e=rn(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return q.defined(t)?(nn(e[0],e[1],t),en(t),t):new x(e[0],e[1],v.UTC)},x.fromDate=function(e,t){e=rn(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return q.defined(t)?(nn(e[0],e[1],t),en(t),t):new x(e[0],e[1],v.UTC)},x.fromIso8601=function(e,t){var n,r,a,i,e=(e=e.replace(",",".")).split("T"),s=1,o=1,u=0,l=0,c=0,d=0,f=e[0],h=e[1];if(null!==(e=f.match(ln))?(a=+e[1],s=+e[2],o=+e[3]):null!==(e=f.match(sn))?(a=+e[1],s=+e[2]):null!==(e=f.match(an))?a=+e[1]:(null!==(e=f.match(on))?(a=+e[1],y=+e[2],r=Jt(a)):null!==(e=f.match(un))&&(a=+e[1],y=7*+e[2]+(+e[3]||0)-new Date(Date.UTC(a,0,4)).getUTCDay()-3),(n=new Date(Date.UTC(a,0,1))).setUTCDate(y),s=n.getUTCMonth()+1,o=n.getUTCDate()),r=Jt(a),q.defined(h)){null!==(e=h.match(fn))?(u=+e[1],l=+e[2],c=+e[3],d=1e3*+(e[4]||0),i=5):null!==(e=h.match(dn))?(u=+e[1],l=+e[2],c=60*+(e[3]||0),i=4):null!==(e=h.match(cn))&&(u=+e[1],l=60*+(e[2]||0),i=3);var f=e[i],p=+e[i+1],m=+(e[i+2]||0);switch(f){case"+":u-=p,l-=m;break;case"-":u+=p,l+=m;break;case"Z":break;default:l+=new Date(Date.UTC(a,s-1,o,u,l)).getTimezoneOffset()}}var y=60===c;for(y&&c--;60<=l;)l-=60,u++;for(;24<=u;)u-=24,o++;for(n=r&&2===s?29:Qt[s-1];n<o;)o-=n,12<++s&&(s-=12,a++),n=r&&2===s?29:Qt[s-1];for(;l<0;)l+=60,u--;for(;u<0;)u+=24,o--;for(;o<1;)--s<1&&(s+=12,a--),o+=n=r&&2===s?29:Qt[s-1];h=rn(a,s,o,u,l,c,d);return q.defined(t)?(nn(h[0],h[1],t),en(t)):t=new x(h[0],h[1],v.UTC),y&&x.addSeconds(t,1,t),t},x.now=function(e){return x.fromDate(new Date,e)};var hn=new x(0,0,v.TAI);function d(e){e instanceof d?(this.scheme=e.scheme,this.authority=e.authority,this.path=e.path,this.query=e.query,this.fragment=e.fragment):e&&(e=pn.exec(e),this.scheme=e[1],this.authority=e[2],this.path=e[3],this.query=e[4],this.fragment=e[5])}x.toGregorianDate=function(e,t){var n=!1,r=tn(e,hn),e=(q.defined(r)||(x.addSeconds(e,-1,hn),r=tn(hn,hn),n=!0),r.dayNumber),r=r.secondsOfDay,e=(43200<=r&&(e+=1),e+68569|0),a=4*e/146097|0,i=4e3*(1+(e=e-((146097*a+3)/4|0)|0))/1461001|0,s=80*(e=e-(1461*i/4|0)+31|0)/2447|0,o=e-(2447*s/80|0)|0,s=2+s-12*(e=s/11|0)|0,a=100*(a-49)+i+e|0,i=r/g.SECONDS_PER_HOUR|0,e=r-i*g.SECONDS_PER_HOUR,r=e/g.SECONDS_PER_MINUTE|0,u=0|(e-=r*g.SECONDS_PER_MINUTE),e=(e-u)/g.SECONDS_PER_MILLISECOND;return 23<(i+=12)&&(i-=24),n&&(u+=1),q.defined(t)?(t.year=a,t.month=s,t.day=o,t.hour=i,t.minute=r,t.second=u,t.millisecond=e,t.isLeapSecond=n,t):new Xt(a,s,o,i,r,u,e,n)},x.toDate=function(e){var e=x.toGregorianDate(e,Gt),t=e.second;return e.isLeapSecond&&--t,new Date(Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,t,e.millisecond))},x.toIso8601=function(e,t){var e=x.toGregorianDate(e,Gt),n=e.year,r=e.month,a=e.day,i=e.hour,s=e.minute,o=e.second,e=e.millisecond;return 1e4===n&&1===r&&1===a&&0===i&&0===s&&0===o&&0===e&&(n=9999,r=12,a=31,i=24),q.defined(t)||0===e?q.defined(t)&&0!==t?Zt("%04d-%02d-%02dT%02d:%02d:%02d.%sZ",n,r,a,i,s,o,(.01*e).toFixed(t).replace(".","").slice(0,t)):Zt("%04d-%02d-%02dT%02d:%02d:%02dZ",n,r,a,i,s,o):Zt("%04d-%02d-%02dT%02d:%02d:%02d.%sZ",n,r,a,i,s,o,(.01*e).toString().replace(".",""))},x.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new x(e.dayNumber,e.secondsOfDay,v.TAI)},x.compare=function(e,t){var n=e.dayNumber-t.dayNumber;return 0!=n?n:e.secondsOfDay-t.secondsOfDay},x.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay},x.equalsEpsilon=function(e,t,n){return n=q.defaultValue(n,0),e===t||q.defined(e)&&q.defined(t)&&Math.abs(x.secondsDifference(e,t))<=n},x.totalDays=function(e){return e.dayNumber+e.secondsOfDay/g.SECONDS_PER_DAY},x.secondsDifference=function(e,t){return(e.dayNumber-t.dayNumber)*g.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)},x.daysDifference=function(e,t){return e.dayNumber-t.dayNumber+(e.secondsOfDay-t.secondsOfDay)/g.SECONDS_PER_DAY},x.computeTaiMinusUtc=function(e){$t.julianDate=e;var e=x.leapSeconds,t=Yt(e,$t,Kt);return e[t=t<0&&(t=~t,--t<0)?0:t].offset},x.addSeconds=function(e,t,n){return nn(e.dayNumber,e.secondsOfDay+t,n)},x.addMinutes=function(e,t,n){t=e.secondsOfDay+t*g.SECONDS_PER_MINUTE;return nn(e.dayNumber,t,n)},x.addHours=function(e,t,n){t=e.secondsOfDay+t*g.SECONDS_PER_HOUR;return nn(e.dayNumber,t,n)},x.addDays=function(e,t,n){return nn(e.dayNumber+t,e.secondsOfDay,n)},x.lessThan=function(e,t){return x.compare(e,t)<0},x.lessThanOrEquals=function(e,t){return x.compare(e,t)<=0},x.greaterThan=function(e,t){return 0<x.compare(e,t)},x.greaterThanOrEquals=function(e,t){return 0<=x.compare(e,t)},x.prototype.clone=function(e){return x.clone(this,e)},x.prototype.equals=function(e){return x.equals(this,e)},x.prototype.equalsEpsilon=function(e,t){return x.equalsEpsilon(this,e,t)},x.prototype.toString=function(){return x.toIso8601(this)},x.leapSeconds=[new w(new x(2441317,43210,v.TAI),10),new w(new x(2441499,43211,v.TAI),11),new w(new x(2441683,43212,v.TAI),12),new w(new x(2442048,43213,v.TAI),13),new w(new x(2442413,43214,v.TAI),14),new w(new x(2442778,43215,v.TAI),15),new w(new x(2443144,43216,v.TAI),16),new w(new x(2443509,43217,v.TAI),17),new w(new x(2443874,43218,v.TAI),18),new w(new x(2444239,43219,v.TAI),19),new w(new x(2444786,43220,v.TAI),20),new w(new x(2445151,43221,v.TAI),21),new w(new x(2445516,43222,v.TAI),22),new w(new x(2446247,43223,v.TAI),23),new w(new x(2447161,43224,v.TAI),24),new w(new x(2447892,43225,v.TAI),25),new w(new x(2448257,43226,v.TAI),26),new w(new x(2448804,43227,v.TAI),27),new w(new x(2449169,43228,v.TAI),28),new w(new x(2449534,43229,v.TAI),29),new w(new x(2450083,43230,v.TAI),30),new w(new x(2450630,43231,v.TAI),31),new w(new x(2451179,43232,v.TAI),32),new w(new x(2453736,43233,v.TAI),33),new w(new x(2454832,43234,v.TAI),34),new w(new x(2456109,43235,v.TAI),35),new w(new x(2457204,43236,v.TAI),36),new w(new x(2457754,43237,v.TAI),37)],d.prototype.scheme=null,d.prototype.authority=null,d.prototype.path="",d.prototype.query=null,d.prototype.fragment=null;var pn=new RegExp("^(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\\?([^#]*))?(?:#(.*))?$"),mn=(d.prototype.getScheme=function(){return this.scheme},d.prototype.getAuthority=function(){return this.authority},d.prototype.getPath=function(){return this.path},d.prototype.getQuery=function(){return this.query},d.prototype.getFragment=function(){return this.fragment},d.prototype.isAbsolute=function(){return!!this.scheme&&!this.fragment},d.prototype.isSameDocumentAs=function(e){return e.scheme==this.scheme&&e.authority==this.authority&&e.path==this.path&&e.query==this.query},d.prototype.equals=function(e){return this.isSameDocumentAs(e)&&e.fragment==this.fragment},d.prototype.normalize=function(){this.removeDotSegments(),this.scheme&&(this.scheme=this.scheme.toLowerCase()),this.authority&&(this.authority=this.authority.replace(An,wn).replace(mn,Cn)),this.path&&(this.path=this.path.replace(mn,Cn)),this.query&&(this.query=this.query.replace(mn,Cn)),this.fragment&&(this.fragment=this.fragment.replace(mn,Cn))},/%[0-9a-z]{2}/gi),yn=/[a-zA-Z0-9\-\._~]/,An=/(.*@)?([^@:]*)(:.*)?/;function Cn(e){var t=unescape(e);return yn.test(t)?t:e.toUpperCase()}function wn(e,t,n,r){return(t||"")+n.toLowerCase()+(r||"")}function gn(e,t){if(null===e||"object"!=typeof e)return e;t=q.defaultValue(t,!1);var n,r,a=new e.constructor;for(n in e)e.hasOwnProperty(n)&&(r=e[n],t&&(r=gn(r,t)),a[n]=r);return a}function vn(e,t){var n;return"undefined"!=typeof document&&(n=document),vn._implementation(e,t,n)}d.prototype.resolve=function(e){var t=new d;return this.scheme?(t.scheme=this.scheme,t.authority=this.authority,t.path=this.path,t.query=this.query):(t.scheme=e.scheme,this.authority?(t.authority=this.authority,t.path=this.path,t.query=this.query):(t.authority=e.authority,""==this.path?(t.path=e.path,t.query=this.query||e.query):("/"==this.path.charAt(0)?t.path=this.path:e.authority&&""==e.path?t.path="/"+this.path:t.path=e.path.substring(0,e.path.lastIndexOf("/")+1)+this.path,t.removeDotSegments(),t.query=this.query))),t.fragment=this.fragment,t},d.prototype.removeDotSegments=function(){var e,t=this.path.split("/"),n=[],r=""==t[0];for(r&&t.shift(),""==t[0]&&t.shift();t.length;)".."==(e=t.shift())?n.pop():"."!=e&&n.push(e);"."!=e&&".."!=e||n.push(""),r&&n.unshift(""),this.path=n.join("/")},d.prototype.toString=function(){var e="";return this.scheme&&(e+=this.scheme+":"),this.authority&&(e+="//"+this.authority),e+=this.path,this.query&&(e+="?"+this.query),this.fragment&&(e+="#"+this.fragment),e},vn._implementation=function(e,t,n){if(!q.defined(t)){if(void 0===n)return e;t=q.defaultValue(n.baseURI,n.location.href)}n=new d(t);return new d(e).resolve(n).toString()};var f,xn=/^blob:/i;function En(e){return xn.test(e)}var On=/^data:/i;function Sn(e){return On.test(e)}var h=Object.freeze({UNISSUED:0,ISSUED:1,ACTIVE:2,RECEIVED:3,CANCELLED:4,FAILED:5}),_n=Object.freeze({TERRAIN:0,IMAGERY:1,TILES3D:2,OTHER:3});function bn(e){e=q.defaultValue(e,q.defaultValue.EMPTY_OBJECT);var t=q.defaultValue(e.throttleByServer,!1),n=q.defaultValue(e.throttle,!1);this.url=e.url,this.requestFunction=e.requestFunction,this.cancelFunction=e.cancelFunction,this.priorityFunction=e.priorityFunction,this.priority=q.defaultValue(e.priority,0),this.throttle=n,this.throttleByServer=t,this.type=q.defaultValue(e.type,_n.OTHER),this.serverKey=void 0,this.state=h.UNISSUED,this.deferred=void 0,this.cancelled=!1}function Rn(e,t,n){this.statusCode=e,this.response=t,this.responseHeaders=n,"string"==typeof this.responseHeaders&&(this.responseHeaders=function(e){var t={};if(e)for(var n=e.split("\r\n"),r=0;r<n.length;++r){var a,i=n[r],s=i.indexOf(": ");0<s&&(a=i.substring(0,s),i=i.substring(s+2),t[a]=i)}return t}(this.responseHeaders))}function Mn(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}function qn(e,t){return t-e}function Tn(e){this._comparator=e.comparator,this._array=[],this._length=0,this._maximumLength=void 0}function In(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}bn.prototype.cancel=function(){this.cancelled=!0},bn.prototype.clone=function(e){return q.defined(e)?(e.url=this.url,e.requestFunction=this.requestFunction,e.cancelFunction=this.cancelFunction,e.priorityFunction=this.priorityFunction,e.priority=this.priority,e.throttle=this.throttle,e.throttleByServer=this.throttleByServer,e.type=this.type,e.serverKey=this.serverKey,e.state=this.RequestState.UNISSUED,e.deferred=void 0,e.cancelled=!1,e):new bn(this)},Rn.prototype.toString=function(){var e="Request has failed.";return q.defined(this.statusCode)&&(e+=" Status Code: "+this.statusCode),e},Object.defineProperties(Mn.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}}),Mn.prototype.addEventListener=function(e,t){this._listeners.push(e),this._scopes.push(t);var n=this;return function(){n.removeEventListener(e,t)}},Mn.prototype.removeEventListener=function(e,t){for(var n=this._listeners,r=this._scopes,a=-1,i=0;i<n.length;i++)if(n[i]===e&&r[i]===t){a=i;break}return-1!==a&&(this._insideRaiseEvent?(this._toRemove.push(a),n[a]=void 0,r[a]=void 0):(n.splice(a,1),r.splice(a,1)),!0)},Mn.prototype.raiseEvent=function(){this._insideRaiseEvent=!0;for(var e=this._listeners,t=this._scopes,n=e.length,r=0;r<n;r++){var a=e[r];q.defined(a)&&e[r].apply(t[r],arguments)}var i=this._toRemove;if(0<(n=i.length)){for(i.sort(qn),r=0;r<n;r++){var s=i[r];e.splice(s,1),t.splice(s,1)}i.length=0}this._insideRaiseEvent=!1},Object.defineProperties(Tn.prototype,{length:{get:function(){return this._length}},internalArray:{get:function(){return this._array}},maximumLength:{get:function(){return this._maximumLength},set:function(e){var t=this._length;if(e<t){for(var n=this._array,r=e;r<t;++r)n[r]=void 0;this._length=e,n.length=e}this._maximumLength=e}},comparator:{get:function(){return this._comparator}}}),Tn.prototype.reserve=function(e){e=q.defaultValue(e,this._length),this._array.length=e},Tn.prototype.heapify=function(e){e=q.defaultValue(e,0);for(var t=this._length,n=this._comparator,r=this._array,a=-1,i=!0;i;){var s=2*(e+1),o=s-1,a=o<t&&n(r[o],r[e])<0?o:e;(a=s<t&&n(r[s],r[a])<0?s:a)!==e?(In(r,a,e),e=a):i=!1}},Tn.prototype.resort=function(){for(var e=this._length,t=Math.ceil(e/2);0<=t;--t)this.heapify(t)},Tn.prototype.insert=function(e){var t,n=this._array,r=this._comparator,a=this._maximumLength,i=this._length++;for(i<n.length?n[i]=e:n.push(e);0!==i;){var s=Math.floor((i-1)/2);if(!(r(n[i],n[s])<0))break;In(n,i,s),i=s}return q.defined(a)&&this._length>a&&(t=n[a],this._length=a),t},Tn.prototype.pop=function(e){var t,n;if(e=q.defaultValue(e,0),0!==this._length)return n=(t=this._array)[e],In(t,e,--this._length),this.heapify(e),t[this._length]=void 0,n};var p={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0},zn=20,m=new Tn({comparator:function(e,t){return e.priority-t.priority}}),y=(m.maximumLength=zn,m.reserve(zn),[]),Un={},Dn="undefined"!=typeof document?new d(document.location.href):new d,Pn=new Mn;function A(){}function Nn(e){q.defined(e.priorityFunction)&&(e.priority=e.priorityFunction())}function Vn(e){return e.state===h.UNISSUED&&(e.state=h.ISSUED,e.deferred=q.when.defer()),e.deferred.promise}function Fn(e){var t,n,r=Vn(e);return e.state=h.ACTIVE,y.push(e),++p.numberOfActiveRequests,++p.numberOfActiveRequestsEver,++Un[e.serverKey],e.requestFunction().then((n=e,function(e){var t;n.state!==h.CANCELLED&&(t=n.deferred,--p.numberOfActiveRequests,--Un[n.serverKey],Pn.raiseEvent(),n.state=h.RECEIVED,n.deferred=void 0,t.resolve(e))})).otherwise((t=e,function(e){t.state!==h.CANCELLED&&(++p.numberOfFailedRequests,--p.numberOfActiveRequests,--Un[t.serverKey],Pn.raiseEvent(e),t.state=h.FAILED,t.deferred.reject(e))})),r}function Bn(e){var t,n=e.state===h.ACTIVE;e.state=h.CANCELLED,++p.numberOfCancelledRequests,q.defined(e.deferred)&&(t=e.deferred,e.deferred=void 0,t.reject()),n&&(--p.numberOfActiveRequests,--Un[e.serverKey],++p.numberOfCancelledActiveRequests),q.defined(e.cancelFunction)&&e.cancelFunction()}A.maximumRequests=50,A.maximumRequestsPerServer=6,A.requestsByServer={"api.cesium.com:443":18,"assets.cesium.com:443":18},A.throttleRequests=!0,A.debugShowStatistics=!1,A.requestCompletedEvent=Pn,Object.defineProperties(A,{statistics:{get:function(){return p}},priorityHeapLength:{get:function(){return zn},set:function(e){if(e<zn)for(;m.length>e;)Bn(m.pop());zn=e,m.maximumLength=e,m.reserve(e)}}}),A.serverHasOpenSlots=function(e,t){t=q.defaultValue(t,1);var n=q.defaultValue(A.requestsByServer[e],A.maximumRequestsPerServer);return Un[e]+t<=n},A.heapHasOpenSlots=function(e){return m.length+e<=zn},A.update=function(){for(var e,t=0,n=y.length,r=0;r<n;++r)(e=y[r]).cancelled&&Bn(e),e.state!==h.ACTIVE?++t:0<t&&(y[r-t]=e);y.length-=t;var a=m.internalArray,i=m.length;for(r=0;r<i;++r)Nn(a[r]);m.resort();for(var s=Math.max(A.maximumRequests-y.length,0),o=0;o<s&&0<m.length;)(e=m.pop()).cancelled||e.throttleByServer&&!A.serverHasOpenSlots(e.serverKey)?Bn(e):(Fn(e),++o);A.debugShowStatistics&&(0===p.numberOfActiveRequests&&0<p.lastNumberOfActiveRequests&&(0<p.numberOfAttemptedRequests&&(console.log("Number of attempted requests: "+p.numberOfAttemptedRequests),p.numberOfAttemptedRequests=0),0<p.numberOfCancelledRequests&&(console.log("Number of cancelled requests: "+p.numberOfCancelledRequests),p.numberOfCancelledRequests=0),0<p.numberOfCancelledActiveRequests&&(console.log("Number of cancelled active requests: "+p.numberOfCancelledActiveRequests),p.numberOfCancelledActiveRequests=0),0<p.numberOfFailedRequests)&&(console.log("Number of failed requests: "+p.numberOfFailedRequests),p.numberOfFailedRequests=0),p.lastNumberOfActiveRequests=p.numberOfActiveRequests)},A.getServerKey=function(e){var e=new d(e).resolve(Dn),t=(e.normalize(),e.authority),e=(/:/.test(t)||(t=t+":"+("https"===e.scheme?"443":"80")),Un[t]);return q.defined(e)||(Un[t]=0),t},A.request=function(e){if(Sn(e.url)||En(e.url))return Pn.raiseEvent(),e.state=h.RECEIVED,e.requestFunction();if(++p.numberOfAttemptedRequests,q.defined(e.serverKey)||(e.serverKey=A.getServerKey(e.url)),!A.throttleRequests||!e.throttleByServer||A.serverHasOpenSlots(e.serverKey)){if(!A.throttleRequests||!e.throttle)return Fn(e);if(!(y.length>=A.maximumRequests)){Nn(e);var t=m.insert(e);if(q.defined(t)){if(t===e)return;Bn(t)}return Vn(e)}}},A.clearForSpecs=function(){for(;0<m.length;)Bn(m.pop());for(var e=y.length,t=0;t<e;++t)Bn(y[t]);y.length=0,Un={},p.numberOfAttemptedRequests=0,p.numberOfActiveRequests=0,p.numberOfCancelledRequests=0,p.numberOfCancelledActiveRequests=0,p.numberOfFailedRequests=0,p.numberOfActiveRequestsEver=0,p.lastNumberOfActiveRequests=0},A.numberOfActiveRequestsByServer=function(e){return Un[e]},A.requestHeap=m;var Ln={},kn={};function Wn(){}function C(){}Ln.add=function(e,t){e=e.toLowerCase()+":"+t;q.defined(kn[e])||(kn[e]=!0)},Ln.remove=function(e,t){e=e.toLowerCase()+":"+t;q.defined(kn[e])&&delete kn[e]},Ln.contains=function(e){e=function(e){(e=new d(e)).normalize();var t=e.getAuthority();if(q.defined(t)){if(-1===(t=-1!==t.indexOf("@")?t.split("@")[1]:t).indexOf(":")){e=e.getScheme();if("http"===(e=q.defined(e)?e:(e=window.location.protocol).substring(0,e.length-1)))t+=":80";else{if("https"!==e)return;t+=":443"}}return t}}(e);return!(!q.defined(e)||!q.defined(kn[e]))},Ln.clear=function(){kn={}},Wn.getBaseUrlAndParams=function(e){var t,n=[],e=e.split("?");if(0===e.length)throw new Error("url传入不合法");return 1===e.length?t=e[0]:(t=e[0],n=e[1].split("&").map(function(e){var t=[],n=/(\w+)=(\w+='[^']+')/;return e.match(n)?(t[0]=e.match(n)[1],t[1]=e.match(n)[2]):t=e.split("="),{key:t[0],value:t[1]}}),3<=e.length&&console.err("url有多个'?'连接符,不合法")),{baseUrl:t,params:n}},Wn.spliceBaseUrlAndParams=function(t,e){return 0!==e.length&&(-1<t.indexOf("?")?e.forEach(function(e){t=t+"&"+e.key+"="+e.value}):(t=t+"?"+e[0].key+"="+e[0].value,e.splice(0,1),e.forEach(function(e){t=t+"&"+e.key+"="+e.value}))),t},Wn.getBaseUrlFromQAndSlash=function(e){var t,n,r=e.indexOf("?"),a=e.indexOf("/",r),i=e.indexOf("?",a);return-1!==r&&-1!==a&&-1!==i?(t=e.substring(r+1,a),n=e.substring(a),e.substring(0,r)+n+"&"+t):-1!==r&&-1!==a&&-1===i?(t=e.substring(r+1,a),n=e.substring(a),e.substring(0,r)+n+"?"+t):e},Wn.getBaseUrlFromQAndQ=function(e){return e.replace(/\?(.*?)(\?)(.*)/,"?$3&$1")},Wn.correctUrl=function(e){var t,n,r,a,i,s=e.match(/\?/g);if(!s)return a=e;if(1===s.length||2===s.length){if(3!==(e=e.match(/^(.*?)(\?.*)$/)).length)throw new Error("传入url不符合标准规范,请检查");if(t=e[1],i=(e=e[2]).match(/\/([^&^?]+)/),i=-1<e.indexOf("://")?null:i){if(!(i=i[0]))throw new Error("传入url不符合标准规范,请检查");n=t+i,i=e.replace(i,""),r=1===s.length?i:i.replace(/\?(?!.*\?)/,"&")}else n=t,r=1===s.length?e:e.replace(/\?(?!.*\?)/,"&");a=n+r}if(2<s.length)throw new Error("传入url不符合标准规范,请检查");return a},C.ServiceConfigRequestInterceptors=function(e,t){t=q.defaultValue(t,"");var n=e.request.interceptors,r=decodeURI(t);if(n&&n instanceof Array)for(var a="",i=0;i<n.length;i++){var s,o,u=n[i].urls,l=n[i].before;if(u){if("string"==typeof u)o=decodeURI(u),-1<r.indexOf(o)&&l&&l instanceof Function&&(s=l(t))&&(a+=s);else if(u instanceof Array)for(var c=0;c<u.length;c++)o=decodeURI(u[c]),-1<r.indexOf(o)&&l&&l instanceof Function&&(s=l(t))&&(a+=s)}else l&&l instanceof Function&&(s=l(t))&&(a+=s);a&&(t=a)}return t},C.ServiceConfigResponseInterceptors=function(e,t,n){if(t=q.defaultValue(t,""),e&&e.request&&e.request.interceptors){var r=e.request.interceptors,a=decodeURI(t);if(r&&r instanceof Array)for(var i=0;i<r.length;i++){var s,o,u=r[i].urls,l=r[i].after;if(!u||u instanceof Array&&0===u.length){if(l&&l instanceof Function&&(s=l(n)))return s}else if("string"==typeof u){if(o=decodeURI(u),-1<a.indexOf(o)&&l&&l instanceof Function&&(s=l(n)))return s}else if(u instanceof Array)for(var c=0;c<u.length;c++)if(o=decodeURI(u[c]),-1<a.indexOf(o)&&l&&l instanceof Function&&(s=l(n)))return s}return n}},C.ServiceConfigToken=function(e){var t="";return t=e&&e.tokenKey&&e.tokenValue?e.tokenKey+"="+e.tokenValue:t},C.AnalysisConfigToUrl=function(e,t){return e&&e.tokenKey&&e.tokenValue&&(-1<t.indexOf("?")?t+="&"+C.ServiceConfigToken(e):t+="?"+C.ServiceConfigToken(e)),t=e&&e.request&&e.request.interceptors?C.ServiceConfigRequestInterceptors(e,t):t};function jn(e){jn.instance={tokenKey:e.tokenKey,tokenValue:e.tokenValue,headers:e.headers,request:e.request}}var Yn,Hn=function(){try{var e=new XMLHttpRequest;return e.open("GET","#",!0),(e.responseType="blob")===e.responseType}catch(e){return!1}}();function Zn(e,t,n,r){var a,i=e.query;q.defined(i)&&0!==i.length&&(a=-1===i.indexOf("=")?((a={})[i]=void 0,a):function(e){var t={};if(""!==e)for(var n=e.replace(/\+/g,"%20").split(/[&]/),r=0,a=n.length;r<a;++r){var i=n[r].indexOf("="),s=n[r].substring(0,i),s=decodeURIComponent(s),i=n[r].substring(i+1,n[r].length),i=q.defined(i)?decodeURIComponent(i):"",o=t[s];"string"==typeof o?t[s]=[o,i]:Array.isArray(o)?o.push(i):t[s]=i}return t}(i),t._queryParameters=n?Gn(a,t._queryParameters,r):a,e.query=void 0)}function Xn(e,t){var t=t._queryParameters,n=Object.keys(t);1!==n.length||q.defined(t[n[0]])?e.query=function(e){var t,n="";for(t in e)if(e.hasOwnProperty(t)){var r=e[t],a=encodeURIComponent(t)+"=";if(Array.isArray(r))for(var i=0,s=r.length;i<s;++i)n+=a+encodeURIComponent(r[i])+"&";else n+=a+encodeURIComponent(r)+"&"}return n=n.slice(0,-1)}(t):e.query=n[0]}function E(e,t){return q.defined(e)?q.defined(e.clone)?e.clone():gn(e):t}function Jn(e){if(e.state===h.ISSUED||e.state===h.ACTIVE)throw new W.RuntimeError("The Resource is already being fetched.");e.state=h.UNISSUED,e.deferred=void 0}function Gn(e,t,n){if(!n)return R.combine(e,t);var r,a,i,s=gn(e,!0);for(r in t)t.hasOwnProperty(r)&&(a=s[r],i=t[r],q.defined(a)?(Array.isArray(a)||(a=s[r]=[a]),s[r]=a.concat(i)):s[r]=Array.isArray(i)?i.slice():i);return s}function O(e){"string"==typeof(e=q.defaultValue(e,q.defaultValue.EMPTY_OBJECT))&&(e={url:e}),this._url=void 0,this._templateValues=E(e.templateValues,{}),this._queryParameters=E(e.queryParameters,{}),this.headers=E(e.headers,{}),this.request=q.defaultValue(e.request,new bn),this.proxy=e.proxy,this.retryCallback=e.retryCallback,this.retryAttempts=q.defaultValue(e.retryAttempts,0),this._retryCount=0,e.url=Wn.correctUrl(e.url);e=new d(e.url);Zn(e,this,!0,!0),e.fragment=void 0,this._url=e.toString()}function Qn(e){var n=e.resource,r=e.flipY,a=e.skipColorSpaceConversion,i=e.preferImageBitmap,s=n.request,e=(s.url=n.url,s.requestFunction=function(){var e=!1,t=(n.isDataUri||n.isBlobUri||(e=n.isCrossOriginUrl),q.when.defer());return O._Implementations.createImage(s,e,t,r,a,i),t.promise},A.request(s));if(q.defined(e))return e.otherwise(function(t){return s.state!==h.FAILED?q.when.reject(t):n.retryOnError(t).then(function(e){return e?(s.state=h.UNISSUED,s.deferred=void 0,Qn({resource:n,flipY:r,skipColorSpaceConversion:a,preferImageBitmap:i})):q.when.reject(t)})})}O.createIfNeeded=function(e){return e instanceof O?e.getDerivedResource({request:e.request}):"string"!=typeof e?e:new O({url:e})},O.supportsImageBitmapOptions=function(){if(!q.defined(Yn)){if("function"!=typeof createImageBitmap)return Yn=q.when.resolve(!1);Yn=O.fetchBlob({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWP4////fwAJ+wP9CNHoHgAAAABJRU5ErkJggg=="}).then(function(e){return createImageBitmap(e,{imageOrientation:"flipY",premultiplyAlpha:"none",colorSpaceConversion:"none"})}).then(function(e){return!0}).otherwise(function(){return!1})}return Yn},Object.defineProperties(O,{isBlobSupported:{get:function(){return Hn}}}),Object.defineProperties(O.prototype,{queryParameters:{get:function(){return this._queryParameters}},templateValues:{get:function(){return this._templateValues}},url:{get:function(){return this.getUrlComponent(!0,!0)},set:function(e){e=new d(e=Wn.correctUrl(e));Zn(e,this,!1),e.fragment=void 0,this._url=e.toString()}},extension:{get:function(){return(e=new d(e=this._url)).normalize(),e=-1===(t=(e=-1!==(t=(e=e.path).lastIndexOf("/"))?e.substr(t+1):e).lastIndexOf("."))?"":e.substr(t+1);var e,t}},isDataUri:{get:function(){return Sn(this._url)}},isBlobUri:{get:function(){return En(this._url)}},isCrossOriginUrl:{get:function(){return e=this._url,(f=q.defined(f)?f:document.createElement("a")).href=window.location.href,t=f.host,n=f.protocol,f.href=e,f.href=f.href,n!==f.protocol||t!==f.host;var e,t,n}},hasHeaders:{get:function(){return 0<Object.keys(this.headers).length}}}),O.prototype.toString=function(){return this.getUrlComponent(!0,!0)},O.prototype.getUrlComponent=function(e,t){var n,r;return this.isDataUri?this._url:(n=new d(this._url),e&&Xn(n,this),e=-1<n.path.indexOf("/igs/rest/mrcs/docs/")||-1<n.path.indexOf("/igs/rest/mrfs/docs/")?n.toString():n.toString().replace(/%7B/g,"{").replace(/%7D/g,"}"),r=this._templateValues,e=e.replace(/{(.*?)}/g,function(e,t){t=r[t];return q.defined(t)?encodeURIComponent(t):e}),t&&q.defined(this.proxy)?this.proxy.getURL(e):e)},O.prototype.setQueryParameters=function(e,t){this._queryParameters=t?Gn(this._queryParameters,e,!1):Gn(e,this._queryParameters,!1)},O.prototype.appendQueryParameters=function(e){this._queryParameters=Gn(e,this._queryParameters,!0)},O.prototype.setTemplateValues=function(e,t){this._templateValues=t?R.combine(this._templateValues,e):R.combine(e,this._templateValues)},O.prototype.getDerivedResource=function(e){var t,n=this.clone();return n._retryCount=0,q.defined(e.url)&&(e.url=Wn.correctUrl(e.url),Zn(t=new d(e.url),n,!0,q.defaultValue(e.preserveQueryParameters,!1)),t.fragment=void 0,n._url=t.resolve(new d(vn(this._url))).toString()),q.defined(e.queryParameters)&&(n._queryParameters=R.combine(e.queryParameters,n._queryParameters)),q.defined(e.templateValues)&&(n._templateValues=R.combine(e.templateValues,n.templateValues)),q.defined(e.headers)&&(n.headers=R.combine(e.headers,n.headers)),q.defined(e.proxy)&&(n.proxy=e.proxy),q.defined(e.request)&&(n.request=e.request),q.defined(e.retryCallback)&&(n.retryCallback=e.retryCallback),q.defined(e.retryAttempts)&&(n.retryAttempts=e.retryAttempts),n},O.prototype.retryOnError=function(e){var t,n=this.retryCallback;return"function"!=typeof n||this._retryCount>=this.retryAttempts?q.when(!1):q.when(n(t=this,e)).then(function(e){return++t._retryCount,e})},O.prototype.clone=function(e){return(e=q.defined(e)?e:new O({url:this._url}))._url=this._url,e._queryParameters=gn(this._queryParameters),e._templateValues=gn(this._templateValues),e.headers=gn(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e},O.prototype.getBaseUri=function(e){return t=this.getUrlComponent(e),e=e,n="",-1!==(r=t.lastIndexOf("/"))&&(n=t.substring(0,r+1)),e&&(t=new d(t),q.defined(t.query)&&(n+="?"+t.query),q.defined(t.fragment))&&(n+="#"+t.fragment),n;var t,n,r},O.prototype.appendForwardSlash=function(){var e;this._url=(0!==(e=this._url).length&&"/"===e[e.length-1]||(e+="/"),e)},O.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})},O.fetchArrayBuffer=function(e){return new O(e).fetchArrayBuffer()},O.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})},O.fetchBlob=function(e){return new O(e).fetchBlob()},O.prototype.fetchImage=function(e){e=q.defaultValue(e,q.defaultValue.EMPTY_OBJECT);var t,n,r,a,i=q.defaultValue(e.preferImageBitmap,!1),s=q.defaultValue(e.preferBlob,!1),o=q.defaultValue(e.flipY,!1),u=q.defaultValue(e.skipColorSpaceConversion,!1);return Jn(this.request),!Hn||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!s?Qn({resource:this,flipY:o,skipColorSpaceConversion:u,preferImageBitmap:i}):(t=this.fetchBlob(),q.defined(t)?O.supportsImageBitmapOptions().then(function(e){return n=e&&i,t}).then(function(e){if(q.defined(e))return a=e,n?1===e.size?Qn({resource:r=new O({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEVSURBVHhe7cExAQAAAMKg9U/tawggAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABODQE8AAH/Cno5AAAAAElFTkSuQmCC"}),flipY:o,preferImageBitmap:!1}):O.createImageBitmapFromBlob(e,{flipY:o,premultiplyAlpha:!1,skipColorSpaceConversion:u}):(e=window.URL.createObjectURL(e),Qn({resource:r=new O({url:e}),flipY:o,skipColorSpaceConversion:u,preferImageBitmap:!1}))}).then(function(e){if(q.defined(e))return e.blob=a,n||window.URL.revokeObjectURL(r.url),e}).otherwise(function(e){return q.defined(r)&&window.URL.revokeObjectURL(r.url),e.blob=a,q.when.reject(e)}):void 0)},O.fetchImage=function(e){return new O(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})},O.prototype.fetchText=function(){return this.fetch({responseType:"text"})},O.fetchText=function(e){return new O(e).fetchText()},O.prototype.fetchJson=function(){var e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if(q.defined(e))return e.then(function(e){if(q.defined(e))return JSON.parse(e)})},O.fetchJson=function(e){return new O(e).fetchJson()},O.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})},O.fetchXML=function(e){return new O(e).fetchXML()},O.prototype.fetchJsonp=function(e){var t;for(e=q.defaultValue(e,"callback"),Jn(this.request);t="loadJsonp"+Math.random().toString().substring(2,8),q.defined(window[t]););return function n(r,a,i){var e={};e[a]=i;r.setQueryParameters(e);var s=r.request;s.url=r.url;s.requestFunction=function(){var t=q.when.defer();return window[i]=function(e){t.resolve(e);try{delete window[i]}catch(e){window[i]=void 0}},O._Implementations.loadAndExecuteScript(r.url,i,t),t.promise};e=A.request(s);if(!q.defined(e))return;return e.otherwise(function(t){return s.state!==h.FAILED?q.when.reject(t):r.retryOnError(t).then(function(e){return e?(s.state=h.UNISSUED,s.deferred=void 0,n(r,a,i)):q.when.reject(t)})})}(this,e,t)},O.fetchJsonp=function(e){return new O(e).fetchJsonp(e.callbackParameterName)},O.prototype._makeRequest=function(o){var u=this,l=(Jn(u.request),u.request),e=(l.url=u.url,l.requestFunction=function(){var e=o.responseType,t=R.combine(o.headers,u.headers),n=o.overrideMimeType,r=o.method,a=o.data,i=q.when.defer(),s=O._Implementations.loadWithXhr(u.url,e,r,a,t,i,n);return q.defined(s)&&q.defined(s.abort)&&(l.cancelFunction=function(){s.abort()}),i.promise},A.request(l));if(q.defined(e))return e.then(function(e){return l.cancelFunction=void 0,e}).otherwise(function(t){return l.cancelFunction=void 0,l.state!==h.FAILED?q.when.reject(t):u.retryOnError(t).then(function(e){return e?(l.state=h.UNISSUED,l.deferred=void 0,u.fetch(o)):q.when.reject(t)})})};var Kn=/^data:(.*?)(;base64)?,(.*)$/;function $n(e,t){t=decodeURIComponent(t);return e?atob(t):t}function er(e,t){for(var n=$n(e,t),e=new ArrayBuffer(n.length),r=new Uint8Array(e),a=0;a<n.length;a++)r[a]=n.charCodeAt(a);return e}function tr(e,t){switch(t){case"text":return e.toString("utf8");case"json":return JSON.parse(e.toString("utf8"));default:return new Uint8Array(e).buffer}}O.prototype.fetch=function(e){return(e=E(e,{})).method="GET",this._makeRequest(e)},O.fetch=function(e){return new O(e).fetch({responseType:e.responseType,overrideMimeType:e.overrideMimeType})},O.prototype.delete=function(e){return(e=E(e,{})).method="DELETE",this._makeRequest(e)},O.delete=function(e){return new O(e).delete({responseType:e.responseType,overrideMimeType:e.overrideMimeType,data:e.data})},O.prototype.head=function(e){return(e=E(e,{})).method="HEAD",this._makeRequest(e)},O.head=function(e){return new O(e).head({responseType:e.responseType,overrideMimeType:e.overrideMimeType})},O.prototype.options=function(e){return(e=E(e,{})).method="OPTIONS",this._makeRequest(e)},O.options=function(e){return new O(e).options({responseType:e.responseType,overrideMimeType:e.overrideMimeType})},O.prototype.post=function(e,t){return o.Check.defined("data",e),(t=E(t,{})).method="POST",t.data=e,this._makeRequest(t)},O.post=function(e){return new O(e).post(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})},O.prototype.put=function(e,t){return o.Check.defined("data",e),(t=E(t,{})).method="PUT",t.data=e,this._makeRequest(t)},O.put=function(e){return new O(e).put(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})},O.prototype.patch=function(e,t){return o.Check.defined("data",e),(t=E(t,{})).method="PATCH",t.data=e,this._makeRequest(t)},O.patch=function(e){return new O(e).patch(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})},(O._Implementations={}).createImage=function(o,u,l,c,d,f){var h=o.url;O.supportsImageBitmapOptions().then(function(e){var t,n,r,a,i,s;if(e&&f)return e=q.defaultValue(o.httpMethod,"GET"),a=o.headers,"POST"===e&&(r=JSON.stringify(o.data)),i=q.when.defer(),s=O._Implementations.loadWithXhr(h,"blob",e,r,a,i,void 0,void 0,void 0),q.defined(s)&&q.defined(s.abort)&&(o.cancelFunction=function(){s.abort()}),i.promise.then(function(e){if(q.defined(e))return O.createImageBitmapFromBlob(e,{flipY:c,premultiplyAlpha:!1,skipColorSpaceConversion:d});l.reject(new W.RuntimeError("Successfully retrieved "+h+" but it contained no content."))}).then(l.resolve);e=h,r=u,t=l,(n=new Image).onload=function(){t.resolve(n)},n.onerror=function(e){t.reject(e)},r&&(Ln.contains(e)?n.crossOrigin="use-credentials":n.crossOrigin=""),n.src=e}).otherwise(l.reject)},O.createImageBitmapFromBlob=function(e,t){return o.Check.defined("options",t),o.Check.typeOf.bool("options.flipY",t.flipY),o.Check.typeOf.bool("options.premultiplyAlpha",t.premultiplyAlpha),o.Check.typeOf.bool("options.skipColorSpaceConversion",t.skipColorSpaceConversion),createImageBitmap(e,{imageOrientation:t.flipY?"flipY":"none",premultiplyAlpha:t.premultiplyAlpha?"premultiply":"none",colorSpaceConversion:t.skipColorSpaceConversion?"none":"default"})};var nr="undefined"==typeof XMLHttpRequest;function rr(e){var t,n;e=q.defaultValue(e,q.defaultValue.EMPTY_OBJECT),this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._downloadPromise=void 0,this._dataError=void 0,this._addNewLeapSeconds=q.defaultValue(e.addNewLeapSeconds,!0),q.defined(e.data)?ir(this,e.data):q.defined(e.url)?(t=O.createIfNeeded(e.url),(n=this)._downloadPromise=t.fetchJson().then(function(e){ir(n,e)}).otherwise(function(){n._dataError="An error occurred while retrieving the EOP data from the URL "+t.url+"."})):ir(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}function ar(e,t){return x.compare(e.julianDate,t)}function ir(e,t){if(q.defined(t.columnNames))if(q.defined(t.samples)){var n=t.columnNames.indexOf("modifiedJulianDateUtc"),r=t.columnNames.indexOf("xPoleWanderRadians"),a=t.columnNames.indexOf("yPoleWanderRadians"),i=t.columnNames.indexOf("ut1MinusUtcSeconds"),s=t.columnNames.indexOf("xCelestialPoleOffsetRadians"),o=t.columnNames.indexOf("yCelestialPoleOffsetRadians"),u=t.columnNames.indexOf("taiMinusUtcSeconds");if(n<0||r<0||a<0||i<0||s<0||o<0||u<0)e._dataError="Error in loaded EOP data: The columnNames property must include modifiedJulianDateUtc, xPoleWanderRadians, yPoleWanderRadians, ut1MinusUtcSeconds, xCelestialPoleOffsetRadians, yCelestialPoleOffsetRadians, and taiMinusUtcSeconds columns";else for(var l,c=e._samples=t.samples,d=e._dates=[],f=(e._dateColumn=n,e._xPoleWanderRadiansColumn=r,e._yPoleWanderRadiansColumn=a,e._ut1MinusUtcSecondsColumn=i,e._xCelestialPoleOffsetRadiansColumn=s,e._yCelestialPoleOffsetRadiansColumn=o,e._taiMinusUtcSecondsColumn=u,e._columnCount=t.columnNames.length,e._lastIndex=void 0,e._addNewLeapSeconds),h=0,p=c.length;h<p;h+=e._columnCount){var m,y,A=c[h+n],C=c[h+u],A=new x(A+g.MODIFIED_JULIAN_DATE_DIFFERENCE,C,v.TAI);d.push(A),f&&(C!==l&&q.defined(l)&&(y=Yt(m=x.leapSeconds,A,ar))<0&&(A=new w(A,C),m.splice(~y,0,A)),l=C)}}else e._dataError="Error in loaded EOP data: The samples property is required.";else e._dataError="Error in loaded EOP data: The columnNames property is required."}function sr(e,t,n,r,a){n*=r;a.xPoleWander=t[n+e._xPoleWanderRadiansColumn],a.yPoleWander=t[n+e._yPoleWanderRadiansColumn],a.xPoleOffset=t[n+e._xCelestialPoleOffsetRadiansColumn],a.yPoleOffset=t[n+e._yCelestialPoleOffsetRadiansColumn],a.ut1MinusUtc=t[n+e._ut1MinusUtcSecondsColumn]}function or(e,t,n){return t+e*(n-t)}function ur(e,t,n,r,a,i,s){var o,u,l,c,d=e._columnCount;i>t.length-1?(s.xPoleWander=0,s.yPoleWander=0,s.xPoleOffset=0,s.yPoleOffset=0,s.ut1MinusUtc=0):(o=t[a],t=t[i],o.equals(t)||r.equals(o)?sr(e,n,a,d,s):r.equals(t)?sr(e,n,i,d,s):(o=x.secondsDifference(r,o)/x.secondsDifference(t,o),u=n[(a=a*d)+e._ut1MinusUtcSecondsColumn],(.5<(l=(d=n[(i=i*d)+e._ut1MinusUtcSecondsColumn])-u)||l<-.5)&&(l=n[a+e._taiMinusUtcSecondsColumn])!==(c=n[i+e._taiMinusUtcSecondsColumn])&&(t.equals(r)?u=d:d-=c-l),s.xPoleWander=or(o,n[a+e._xPoleWanderRadiansColumn],n[i+e._xPoleWanderRadiansColumn]),s.yPoleWander=or(o,n[a+e._yPoleWanderRadiansColumn],n[i+e._yPoleWanderRadiansColumn]),s.xPoleOffset=or(o,n[a+e._xCelestialPoleOffsetRadiansColumn],n[i+e._xCelestialPoleOffsetRadiansColumn]),s.yPoleOffset=or(o,n[a+e._yCelestialPoleOffsetRadiansColumn],n[i+e._yCelestialPoleOffsetRadiansColumn]),s.ut1MinusUtc=or(o,u,d)))}function S(e,t,n){this.heading=q.defaultValue(e,0),this.pitch=q.defaultValue(t,0),this.roll=q.defaultValue(n,0)}O._Implementations.loadWithXhr=function(a,i,s,e,t,o,n){var u=jn.instance,r=Kn.exec(a),l=t||void 0;if(u&&u.headers&&(l=R.combine(l||{},u.headers)),null!==r)o.resolve(function(e,t){t=q.defaultValue(t,"");var n=e[1],r=!!e[2],a=e[3];switch(t){case"":case"text":return $n(r,a);case"arraybuffer":return er(r,a);case"blob":var i=er(r,a);return new Blob([i],{type:n});case"document":return(new DOMParser).parseFromString($n(r,a),n);case"json":return JSON.parse($n(r,a))}}(r,i));else{if(a=C.AnalysisConfigToUrl(u,a),!nr){var c,d,f,h=new XMLHttpRequest;if(Ln.contains(a)&&(h.withCredentials=!0),h.open(s,a,!0),q.defined(n)&&q.defined(h.overrideMimeType)&&h.overrideMimeType(n),q.defined(l))for(var p in l)l.hasOwnProperty(p)&&h.setRequestHeader(p,l[p]);q.defined(i)&&(h.responseType=i);var m=!1;return"string"==typeof a&&(m=0===a.indexOf("file://")||"undefined"!=typeof window&&"file://"===window.location.origin),h.onload=function(){if(!(h.status<200||300<=h.status)||m&&0===h.status){var e,n,t=h.response,r=h.responseType;if("HEAD"===s||"OPTIONS"===s)e=h.getAllResponseHeaders().trim().split(/[\r\n]+/),n={},e.forEach(function(e){var e=e.split(": "),t=e.shift();n[t]=e.join(": ")}),o.resolve(n),C.ServiceConfigResponseInterceptors(u,a,t);else if(204===h.status)o.resolve();else if(!q.defined(t)||q.defined(i)&&r!==i)if("json"===i&&"string"==typeof t)try{C.ServiceConfigResponseInterceptors(u,a,t),o.resolve(JSON.parse(t))}catch(e){o.reject(e)}else(""===r||"document"===r)&&q.defined(h.responseXML)&&h.responseXML.hasChildNodes()?(C.ServiceConfigResponseInterceptors(u,a,t),o.resolve(h.responseXML)):""!==r&&"text"!==r||!q.defined(h.responseText)?o.reject(new W.RuntimeError("Invalid XMLHttpRequest response type.")):(C.ServiceConfigResponseInterceptors(u,a,t),o.resolve(h.responseText));else o.resolve(t),C.ServiceConfigResponseInterceptors(u,a,t)}else o.reject(new Rn(h.status,h.response,h.getAllResponseHeaders()))},h.onerror=function(e){o.reject(new Rn)},h.send(e),h}t=a,c=i,r=s,n=l,d=o,e="https:"===(t=require("url").parse(t)).protocol?require("https"):require("http"),f=require("zlib"),t={protocol:t.protocol,hostname:t.hostname,port:t.port,path:t.path,query:t.query,method:r,headers:n},e.request(t).on("response",function(t){var n;t.statusCode<200||300<=t.statusCode?d.reject(new Rn(t.statusCode,t,t.headers)):(n=[],t.on("data",function(e){n.push(e)}),t.on("end",function(){var e=Buffer.concat(n);"gzip"===t.headers["content-encoding"]?f.gunzip(e,function(e,t){e?d.reject(new W.RuntimeError("Error decompressing response.")):d.resolve(tr(t,c))}):d.resolve(tr(e,c))}))}).on("error",function(e){d.reject(new Rn)}).end()}},O._Implementations.loadAndExecuteScript=function(e,t,n){return e=e,r=q.when.defer(),(a=document.createElement("script")).async=!0,a.src=e,i=document.getElementsByTagName("head")[0],a.onload=function(){a.onload=void 0,i.removeChild(a),r.resolve()},a.onerror=function(e){r.reject(e)},i.appendChild(a),r.promise.otherwise(n.reject);var r,a,i},(O._DefaultImplementations={}).createImage=O._Implementations.createImage,O._DefaultImplementations.loadWithXhr=O._Implementations.loadWithXhr,O._DefaultImplementations.loadAndExecuteScript=O._Implementations.loadAndExecuteScript,O.DEFAULT=Object.freeze(new O({url:"undefined"==typeof document?"":document.location.href.split("?")[0]})),rr.NONE=Object.freeze({getPromiseToLoad:function(){return q.when.resolve()},compute:function(e,t){return q.defined(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new Ht(0,0,0,0,0),t}}),rr.prototype.getPromiseToLoad=function(){return q.when(this._downloadPromise)},rr.prototype.compute=function(e,t){if(q.defined(this._samples)){if(q.defined(t)||(t=new Ht(0,0,0,0,0)),0===this._samples.length)t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0;else{var n=this._dates,r=this._lastIndex,a=0,i=0;if(q.defined(r)){var s=n[r],o=n[r+1],s=x.lessThanOrEquals(s,e),u=!q.defined(o),l=u||x.greaterThanOrEquals(o,e);if(s&&l)return a=r,!u&&o.equals(e)&&++a,ur(this,n,this._samples,e,a,i=a+1,t),t}s=Yt(n,e,x.compare,this._dateColumn);0<=s?(s<n.length-1&&n[s+1].equals(e)&&++s,i=a=s):(a=(i=~s)-1)<0&&(a=0),this._lastIndex=a,ur(this,n,this._samples,e,a,i,t)}return t}if(q.defined(this._dataError))throw new W.RuntimeError(this._dataError)},S.fromQuaternion=function(e,t){q.defined(t)||(t=new S);var n=2*(e.w*e.y-e.z*e.x),r=1-2*(e.x*e.x+e.y*e.y),a=2*(e.w*e.x+e.y*e.z),i=1-2*(e.y*e.y+e.z*e.z),e=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(e,i),t.roll=Math.atan2(a,r),t.pitch=-F.CesiumMath.asinClamped(n),t},S.fromDegrees=function(e,t,n,r){return(r=q.defined(r)?r:new S).heading=e*F.CesiumMath.RADIANS_PER_DEGREE,r.pitch=t*F.CesiumMath.RADIANS_PER_DEGREE,r.roll=n*F.CesiumMath.RADIANS_PER_DEGREE,r},S.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new S(e.heading,e.pitch,e.roll)},S.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll},S.equalsEpsilon=function(e,t,n,r){return e===t||q.defined(e)&&q.defined(t)&&F.CesiumMath.equalsEpsilon(e.heading,t.heading,n,r)&&F.CesiumMath.equalsEpsilon(e.pitch,t.pitch,n,r)&&F.CesiumMath.equalsEpsilon(e.roll,t.roll,n,r)},S.prototype.clone=function(e){return S.clone(this,e)},S.prototype.equals=function(e){return S.equals(this,e)},S.prototype.equalsEpsilon=function(e,t,n){return S.equalsEpsilon(this,e,t,n)},S.prototype.toString=function(){return"("+this.heading+", "+this.pitch+", "+this.roll+")"};var lr,cr,dr,fr=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;function hr(e){return"undefined"==typeof document?e:((lr=q.defined(lr)?lr:document.createElement("a")).href=e,lr.href=lr.href,lr.href)}function pr(){var e;return q.defined(cr)||(e="undefined"!=typeof CESIUM_BASE_URL?CESIUM_BASE_URL:"object"==typeof define&&q.defined(define.amd)&&!define.amd.toUrlUndefined&&q.defined(require.toUrl)?vn("..",Ar("Core/buildModuleUrl.js")):function(){for(var e=document.getElementsByTagName("script"),t=0,n=e.length;t<n;++t){var r=e[t].getAttribute("src"),r=fr.exec(r);if(null!==r)return r[1]}}(),(cr=new O({url:hr(e)})).appendForwardSlash()),cr}function mr(e){return hr(require.toUrl("../"+e))}function yr(e){return pr().getDerivedResource({url:e}).url}function Ar(e){return(dr=q.defined(dr)?dr:"object"==typeof define&&q.defined(define.amd)&&!define.amd.toUrlUndefined&&q.defined(require.toUrl)?mr:yr)(e)}function Cr(e,t,n){this.x=e,this.y=t,this.s=n}function wr(e){e=q.defaultValue(e,q.defaultValue.EMPTY_OBJECT),this._xysFileUrlTemplate=O.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=q.defaultValue(e.interpolationOrder,9),this._sampleZeroJulianEphemerisDate=q.defaultValue(e.sampleZeroJulianEphemerisDate,2442396.5),this._sampleZeroDateTT=new x(this._sampleZeroJulianEphemerisDate,0,v.TAI),this._stepSizeDays=q.defaultValue(e.stepSizeDays,1),this._samplesPerXysFile=q.defaultValue(e.samplesPerXysFile,1e3),this._totalSamples=q.defaultValue(e.totalSamples,27426),this._samples=new Array(3*this._totalSamples),this._chunkDownloadsInProgress=[];for(var t=this._interpolationOrder,n=this._denominators=new Array(t+1),r=this._xTable=new Array(t+1),a=Math.pow(this._stepSizeDays,t),i=0;i<=t;++i){n[i]=a,r[i]=i*this._stepSizeDays;for(var s=0;s<=t;++s)s!==i&&(n[i]*=i-s);n[i]=1/n[i]}this._work=new Array(t+1),this._coef=new Array(t+1)}Ar._cesiumScriptRegex=fr,Ar._buildModuleUrlFromBaseUrl=yr,Ar._clearBaseResource=function(){cr=void 0},Ar.setBaseUrl=function(e){cr=O.DEFAULT.getDerivedResource({url:e})},Ar.getCesiumBaseUrl=pr;var gr=new x(0,0,v.TAI);function vr(e,t,n){var r=gr;return r.dayNumber=t,r.secondsOfDay=n,x.daysDifference(r,e._sampleZeroDateTT)}function xr(s,o){var u,e;return s._chunkDownloadsInProgress[o]||(u=q.when.defer(),s._chunkDownloadsInProgress[o]=u,e=s._xysFileUrlTemplate,e=q.defined(e)?e.getDerivedResource({templateValues:{0:o}}):new O({url:Ar("Assets/IAU2006_XYS/IAU2006_XYS_"+o+".json")}),q.when(e.fetchJson(),function(e){s._chunkDownloadsInProgress[o]=!1;for(var t=s._samples,n=e.samples,r=o*s._samplesPerXysFile*3,a=0,i=n.length;a<i;++a)t[r+a]=n[a];u.resolve()}),u.promise)}wr.prototype.preload=function(e,t,n,r){for(var e=vr(this,e,t),t=vr(this,n,r),n=e/this._stepSizeDays-this._interpolationOrder/2|0,r=t/this._stepSizeDays-this._interpolationOrder/2|0+this._interpolationOrder,e=(r>=this._totalSamples&&(r=this._totalSamples-1),(n=n<0?0:n)/this._samplesPerXysFile|0),a=r/this._samplesPerXysFile|0,i=[],s=e;s<=a;++s)i.push(xr(this,s));return q.when.all(i)},wr.prototype.computeXysRadians=function(e,t,n){e=vr(this,e,t);if(!(e<0)){t=e/this._stepSizeDays|0;if(!(t>=this._totalSamples)){var r=this._interpolationOrder,a=t-(r/2|0),t=(a=a<0?0:a)+r,i=(t>=this._totalSamples&&(a=(t=this._totalSamples-1)-r)<0&&(a=0),!1),s=this._samples;if(q.defined(s[3*a])||(xr(this,a/this._samplesPerXysFile|0),i=!0),q.defined(s[3*t])||(xr(this,t/this._samplesPerXysFile|0),i=!0),!i){q.defined(n)?(n.x=0,n.y=0,n.s=0):n=new Cr(0,0,0);for(var o,u=e-a*this._stepSizeDays,l=this._work,c=this._denominators,d=this._coef,f=this._xTable,h=0;h<=r;++h)l[h]=u-f[h];for(h=0;h<=r;++h){for(d[h]=1,o=0;o<=r;++o)o!==h&&(d[h]*=l[o]);d[h]*=c[h];var p=3*(a+h);n.x+=d[h]*s[p++],n.y+=d[h]*s[p++],n.s+=d[h]*s[p]}return n}}}};var _={},Er={up:{south:"east",north:"west",west:"south",east:"north"},down:{south:"west",north:"east",west:"north",east:"south"},south:{up:"west",down:"east",west:"down",east:"up"},north:{up:"east",down:"west",west:"up",east:"down"},west:{up:"north",down:"south",north:"down",south:"up"},east:{up:"south",down:"north",north:"up",south:"down"}},Or={north:[-1,0,0],east:[0,1,0],up:[0,0,1],south:[1,0,0],west:[0,-1,0],down:[0,0,-1]},Sr={},b={east:new M.Cartesian3,north:new M.Cartesian3,up:new M.Cartesian3,west:new M.Cartesian3,south:new M.Cartesian3,down:new M.Cartesian3},_r=new M.Cartesian3,br=new M.Cartesian3,Rr=new M.Cartesian3,Mr=(_.localFrameToFixedFrameGenerator=function(a,i){var s,e,t;if(Er.hasOwnProperty(a)&&Er[a].hasOwnProperty(i))return s=Er[a][i],q.defined(Sr[t=a+i])?e=Sr[t]:Sr[t]=e=function(e,t,n){var r;return q.defined(n)||(n=new k),M.Cartesian3.equalsEpsilon(e,M.Cartesian3.ZERO,F.CesiumMath.EPSILON14)?(M.Cartesian3.unpack(Or[a],0,_r),M.Cartesian3.unpack(Or[i],0,br),M.Cartesian3.unpack(Or[s],0,Rr)):F.CesiumMath.equalsEpsilon(e.x,0,F.CesiumMath.EPSILON14)&&F.CesiumMath.equalsEpsilon(e.y,0,F.CesiumMath.EPSILON14)?(r=F.CesiumMath.sign(e.z),M.Cartesian3.unpack(Or[a],0,_r),"east"!==a&&"west"!==a&&M.Cartesian3.multiplyByScalar(_r,r,_r),M.Cartesian3.unpack(Or[i],0,br),"east"!==i&&"west"!==i&&M.Cartesian3.multiplyByScalar(br,r,br),M.Cartesian3.unpack(Or[s],0,Rr),"east"!==s&&"west"!==s&&M.Cartesian3.multiplyByScalar(Rr,r,Rr)):((t=q.defaultValue(t,M.Ellipsoid.WGS84)).geodeticSurfaceNormal(e,b.up),r=b.up,(t=b.east).x=-e.y,t.y=e.x,t.z=0,M.Cartesian3.normalize(t,b.east),M.Cartesian3.cross(r,t,b.north),M.Cartesian3.multiplyByScalar(b.up,-1,b.down),M.Cartesian3.multiplyByScalar(b.east,-1,b.west),M.Cartesian3.multiplyByScalar(b.north,-1,b.south),_r=b[a],br=b[i],Rr=b[s]),n[0]=_r.x,n[1]=_r.y,n[2]=_r.z,n[3]=0,n[4]=br.x,n[5]=br.y,n[6]=br.z,n[7]=0,n[8]=Rr.x,n[9]=Rr.y,n[10]=Rr.z,n[11]=0,n[12]=e.x,n[13]=e.y,n[14]=e.z,n[15]=1,n},e;throw new o.DeveloperError("firstAxis and secondAxis must be east, north, up, west, south or down.")},_.eastNorthUpToFixedFrame=_.localFrameToFixedFrameGenerator("east","north"),_.northEastDownToFixedFrame=_.localFrameToFixedFrameGenerator("north","east"),_.northUpEastToFixedFrame=_.localFrameToFixedFrameGenerator("north","up"),_.northWestUpToFixedFrame=_.localFrameToFixedFrameGenerator("north","west"),new c),qr=new M.Cartesian3(1,1,1),Tr=new k,Ir=(_.headingPitchRollToFixedFrame=function(e,t,n,r,a){r=q.defaultValue(r,_.eastNorthUpToFixedFrame);t=c.fromHeadingPitchRoll(t,Mr),t=k.fromTranslationQuaternionRotationScale(M.Cartesian3.ZERO,t,qr,Tr);return a=r(e,n,a),k.multiply(a,t,a)},new k),zr=new B,Ur=(_.headingPitchRollQuaternion=function(e,t,n,r,a){e=_.headingPitchRollToFixedFrame(e,t,n,r,Ir),t=k.getMatrix3(e,zr);return c.fromRotationMatrix(t,a)},new M.Cartesian3(1,1,1)),Dr=new M.Cartesian3,Pr=new k,Nr=new k,Vr=new B,Fr=new c,Br=(_.fixedFrameToHeadingPitchRoll=function(e,t,n,r){t=q.defaultValue(t,M.Ellipsoid.WGS84),n=q.defaultValue(n,_.eastNorthUpToFixedFrame),q.defined(r)||(r=new S);var a=k.getTranslation(e,Dr);return M.Cartesian3.equals(a,M.Cartesian3.ZERO)?(r.heading=0,r.pitch=0,r.roll=0,r):(n=k.inverseTransformation(n(a,t,Pr),Pr),a=k.setScale(e,Ur,Nr),a=k.setTranslation(a,M.Cartesian3.ZERO,a),n=k.multiply(n,a,n),t=c.fromRotationMatrix(k.getMatrix3(n,Vr),Fr),t=c.normalize(t,t),S.fromQuaternion(t,r))},F.CesiumMath.TWO_PI/86400),Lr=new x,kr=(_.computeTemeToPseudoFixedMatrix=function(e,t){var e=(Lr=x.addSeconds(e,-x.computeTaiMinusUtc(e),Lr)).dayNumber,n=Lr.secondsOfDay,r=e-2451545,r=43200<=n?(.5+r)/g.DAYS_PER_JULIAN_CENTURY:(r-.5)/g.DAYS_PER_JULIAN_CENTURY,r=(24110.54841+r*(8640184.812866+r*(.093104+-62e-7*r)))*Br%F.CesiumMath.TWO_PI+(72921158553e-15+11772758384668e-32*(e-2451545.5))*((n+.5*g.SECONDS_PER_DAY)%g.SECONDS_PER_DAY),e=Math.cos(r),n=Math.sin(r);return q.defined(t)?(t[0]=e,t[1]=-n,t[2]=0,t[3]=n,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new B(e,n,0,-n,e,0,0,0,1)},_.iau2006XysData=new wr,_.earthOrientationParameters=rr.NONE,32.184),Wr=(_.preloadIcrfFixed=function(e){var t=e.start.dayNumber,n=e.start.secondsOfDay+kr,r=e.stop.dayNumber,e=e.stop.secondsOfDay+kr,t=_.iau2006XysData.preload(t,n,r,e),n=_.earthOrientationParameters.getPromiseToLoad();return q.when.all([t,n])},_.computeIcrfToFixedMatrix=function(e,t){q.defined(t)||(t=new B);e=_.computeFixedToIcrfMatrix(e,t);if(q.defined(e))return B.transpose(e,t)},new Cr(0,0,0)),jr=new Ht(0,0,0,0,0),Yr=new B,Hr=new B,Zr=(_.computeFixedToIcrfMatrix=function(e,t){q.defined(t)||(t=new B);var n=_.earthOrientationParameters.compute(e,jr);if(q.defined(n)){var r,a,i,s,o=e.dayNumber,u=e.secondsOfDay+kr,l=_.iau2006XysData.computeXysRadians(o,u,Wr);if(q.defined(l))return i=l.x+n.xPoleOffset,r=l.y+n.yPoleOffset,s=1/(1+Math.sqrt(1-i*i-r*r)),(a=Yr)[0]=1-s*i*i,a[3]=-s*i*r,a[6]=i,a[1]=-s*i*r,a[4]=1-s*r*r,a[7]=r,a[2]=-i,a[5]=-r,a[8]=1-s*(i*i+r*r),s=B.fromRotationZ(-l.s,Hr),i=B.multiply(a,s,Yr),r=e.dayNumber,a=(a=.779057273264+(l=(e.secondsOfDay-x.computeTaiMinusUtc(e)+n.ut1MinusUtc)/g.SECONDS_PER_DAY)+.00273781191135448*(r-2451545+l))%1*F.CesiumMath.TWO_PI,s=B.fromRotationZ(a,Hr),e=B.multiply(i,s,Yr),r=Math.cos(n.xPoleWander),l=Math.cos(n.yPoleWander),a=Math.sin(n.xPoleWander),i=Math.sin(n.yPoleWander),s=o-2451545+u/g.SECONDS_PER_DAY,n=-47e-6*(s/=36525)*F.CesiumMath.RADIANS_PER_DEGREE/3600,o=Math.cos(n),u=Math.sin(n),(s=Hr)[0]=r*o,s[1]=r*u,s[2]=a,s[3]=-l*u+i*a*o,s[4]=l*o+i*a*u,s[5]=-i*r,s[6]=-i*u-l*a*o,s[7]=i*o-l*a*u,s[8]=l*r,B.multiply(e,s,t)}},new L),Xr=(_.pointToWindowCoordinates=function(e,t,n,r){return(r=_.pointToGLWindowCoordinates(e,t,n,r)).y=2*t[5]-r.y,r},_.pointToGLWindowCoordinates=function(e,t,n,r){q.defined(r)||(r=new M.Cartesian2);var a=Zr;return k.multiplyByVector(e,L.fromElements(n.x,n.y,n.z,1,a),a),L.multiplyByScalar(a,1/a.w,a),k.multiplyByVector(t,a,a),M.Cartesian2.fromCartesian4(a,r)},new M.Cartesian3),Jr=new M.Cartesian3,Gr=new M.Cartesian3,Qr=(_.rotationMatrixFromPositionVelocity=function(e,t,n,r){n=q.defaultValue(n,M.Ellipsoid.WGS84).geodeticSurfaceNormal(e,Xr),e=M.Cartesian3.cross(t,n,Jr),M.Cartesian3.equalsEpsilon(e,M.Cartesian3.ZERO,F.CesiumMath.EPSILON6)&&(e=M.Cartesian3.clone(M.Cartesian3.UNIT_X,e)),n=M.Cartesian3.cross(e,t,Gr);return M.Cartesian3.normalize(n,n),M.Cartesian3.cross(t,n,e),M.Cartesian3.negate(e,e),M.Cartesian3.normalize(e,e),(r=q.defined(r)?r:new B)[0]=t.x,r[1]=t.y,r[2]=t.z,r[3]=e.x,r[4]=e.y,r[5]=e.z,r[6]=n.x,r[7]=n.y,r[8]=n.z,r},new k(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1)),Kr=new M.Cartographic,$r=new M.Cartesian3,ea=new M.Cartesian3,ta=new B,na=new k,ra=new k;_.basisTo2D=function(e,t,n){var r=k.getTranslation(t,ea),a=e.ellipsoid,i=a.cartesianToCartographic(r,Kr),e=e.project(i,$r),i=(M.Cartesian3.fromElements(e.z,e.x,e.y,e),_.eastNorthUpToFixedFrame(r,a,na)),r=k.inverseTransformation(i,ra),a=k.getMatrix3(t,ta),i=k.multiplyByMatrix3(r,a,n);return k.multiply(Qr,i,n),k.setTranslation(n,e,n),n},_.wgs84To2DModelMatrix=function(e,t,n){var r=e.ellipsoid,a=_.eastNorthUpToFixedFrame(t,r,na),a=k.inverseTransformation(a,ra),r=r.cartesianToCartographic(t,Kr),t=e.project(r,$r),e=(M.Cartesian3.fromElements(t.z,t.x,t.y,t),k.fromTranslation(t,na));return k.multiply(Qr,a,n),k.multiply(e,n,n),n},e.BoundingSphere=T,e.Cartesian4=L,e.FeatureDetection=u,e.GeographicProjection=z,e.Intersect=U,e.Interval=D,e.Matrix3=B,e.Matrix4=k,e.Quaternion=c,e.Resource=O,e.Transforms=_,e.buildModuleUrl=Ar});
@@ -1 +0,0 @@
1
- define(["exports","./Cartesian2-078e6458","./Check-f996273c","./when-ae2e0b60","./Math-5bbcea10","./combine-276652d0","./RuntimeError-ac2797b4"],function(e,M,o,q,F,R,W){"use strict";function z(e){this._ellipsoid=q.defaultValue(e,M.Ellipsoid.WGS84),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(z.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),z.prototype.project=function(e,t){var n=this._semimajorAxis,r=e.longitude*n,n=e.latitude*n,e=e.height;return q.defined(t)?(t.x=r,t.y=n,t.z=e,t):new M.Cartesian3(r,n,e)},z.prototype.unproject=function(e,t){var n=this._oneOverSemimajorAxis,r=e.x*n,n=e.y*n,e=e.z;return q.defined(t)?(t.longitude=r,t.latitude=n,t.height=e,t):new M.Cartographic(r,n,e)};var U=Object.freeze({OUTSIDE:-1,INTERSECTING:0,INSIDE:1});function D(e,t){this.start=q.defaultValue(e,0),this.stop=q.defaultValue(t,0)}function B(e,t,n,r,a,i,s,o,u){this[0]=q.defaultValue(e,0),this[1]=q.defaultValue(r,0),this[2]=q.defaultValue(s,0),this[3]=q.defaultValue(t,0),this[4]=q.defaultValue(a,0),this[5]=q.defaultValue(o,0),this[6]=q.defaultValue(n,0),this[7]=q.defaultValue(i,0),this[8]=q.defaultValue(u,0)}B.packedLength=9,B.pack=function(e,t,n){return n=q.defaultValue(n,0),t[n++]=e[0],t[n++]=e[1],t[n++]=e[2],t[n++]=e[3],t[n++]=e[4],t[n++]=e[5],t[n++]=e[6],t[n++]=e[7],t[n++]=e[8],t},B.unpack=function(e,t,n){return t=q.defaultValue(t,0),(n=q.defined(n)?n:new B)[0]=e[t++],n[1]=e[t++],n[2]=e[t++],n[3]=e[t++],n[4]=e[t++],n[5]=e[t++],n[6]=e[t++],n[7]=e[t++],n[8]=e[t++],n},B.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):new B(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8])},B.fromArray=function(e,t,n){return t=q.defaultValue(t,0),(n=q.defined(n)?n:new B)[0]=e[t],n[1]=e[t+1],n[2]=e[t+2],n[3]=e[t+3],n[4]=e[t+4],n[5]=e[t+5],n[6]=e[t+6],n[7]=e[t+7],n[8]=e[t+8],n},B.fromColumnMajorArray=function(e,t){return B.clone(e,t)},B.fromRowMajorArray=function(e,t){return q.defined(t)?(t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],t):new B(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},B.fromQuaternion=function(e,t){var n=e.x*e.x,r=e.x*e.y,a=e.x*e.z,i=e.x*e.w,s=e.y*e.y,o=e.y*e.z,u=e.y*e.w,l=e.z*e.z,c=e.z*e.w,e=e.w*e.w,d=n-s-l+e,f=2*(r-c),h=2*(a+u),r=2*(r+c),c=s-n-l+e,p=2*(o-i),a=2*(a-u),u=2*(o+i),o=-n-s+l+e;return q.defined(t)?(t[0]=d,t[1]=r,t[2]=a,t[3]=f,t[4]=c,t[5]=u,t[6]=h,t[7]=p,t[8]=o,t):new B(d,f,h,r,c,p,a,u,o)},B.fromHeadingPitchRoll=function(e,t){var n=Math.cos(-e.pitch),r=Math.cos(-e.heading),a=Math.cos(e.roll),i=Math.sin(-e.pitch),s=Math.sin(-e.heading),e=Math.sin(e.roll),o=n*r,u=-a*s+e*i*r,l=e*s+a*i*r,c=n*s,d=a*r+e*i*s,r=-e*r+a*i*s,s=-i,i=e*n,e=a*n;return q.defined(t)?(t[0]=o,t[1]=c,t[2]=s,t[3]=u,t[4]=d,t[5]=i,t[6]=l,t[7]=r,t[8]=e,t):new B(o,u,l,c,d,r,s,i,e)},B.fromScale=function(e,t){return q.defined(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=0,t[4]=e.y,t[5]=0,t[6]=0,t[7]=0,t[8]=e.z,t):new B(e.x,0,0,0,e.y,0,0,0,e.z)},B.fromUniformScale=function(e,t){return q.defined(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=e,t):new B(e,0,0,0,e,0,0,0,e)},B.fromCrossProduct=function(e,t){return q.defined(t)?(t[0]=0,t[1]=e.z,t[2]=-e.y,t[3]=-e.z,t[4]=0,t[5]=e.x,t[6]=e.y,t[7]=-e.x,t[8]=0,t):new B(0,-e.z,e.y,e.z,0,-e.x,-e.y,e.x,0)},B.fromRotationX=function(e,t){var n=Math.cos(e),e=Math.sin(e);return q.defined(t)?(t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=n,t[5]=e,t[6]=0,t[7]=-e,t[8]=n,t):new B(1,0,0,0,n,-e,0,e,n)},B.fromRotationY=function(e,t){var n=Math.cos(e),e=Math.sin(e);return q.defined(t)?(t[0]=n,t[1]=0,t[2]=-e,t[3]=0,t[4]=1,t[5]=0,t[6]=e,t[7]=0,t[8]=n,t):new B(n,0,e,0,1,0,-e,0,n)},B.fromRotationZ=function(e,t){var n=Math.cos(e),e=Math.sin(e);return q.defined(t)?(t[0]=n,t[1]=e,t[2]=0,t[3]=-e,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new B(n,-e,0,e,n,0,0,0,1)},B.toArray=function(e,t){return q.defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},B.getElementIndex=function(e,t){return 3*e+t},B.getColumn=function(e,t,n){var t=3*t,r=e[t],a=e[1+t],e=e[2+t];return n.x=r,n.y=a,n.z=e,n},B.setColumn=function(e,t,n,r){t*=3;return(r=B.clone(e,r))[t]=n.x,r[1+t]=n.y,r[2+t]=n.z,r},B.getRow=function(e,t,n){var r=e[t],a=e[t+3],e=e[t+6];return n.x=r,n.y=a,n.z=e,n},B.setRow=function(e,t,n,r){return(r=B.clone(e,r))[t]=n.x,r[t+3]=n.y,r[t+6]=n.z,r};var P=new M.Cartesian3,N=(B.getScale=function(e,t){return t.x=M.Cartesian3.magnitude(M.Cartesian3.fromElements(e[0],e[1],e[2],P)),t.y=M.Cartesian3.magnitude(M.Cartesian3.fromElements(e[3],e[4],e[5],P)),t.z=M.Cartesian3.magnitude(M.Cartesian3.fromElements(e[6],e[7],e[8],P)),t},new M.Cartesian3),V=(B.getMaximumScale=function(e){return B.getScale(e,N),M.Cartesian3.maximumComponent(N)},B.multiply=function(e,t,n){var r=e[0]*t[0]+e[3]*t[1]+e[6]*t[2],a=e[1]*t[0]+e[4]*t[1]+e[7]*t[2],i=e[2]*t[0]+e[5]*t[1]+e[8]*t[2],s=e[0]*t[3]+e[3]*t[4]+e[6]*t[5],o=e[1]*t[3]+e[4]*t[4]+e[7]*t[5],u=e[2]*t[3]+e[5]*t[4]+e[8]*t[5],l=e[0]*t[6]+e[3]*t[7]+e[6]*t[8],c=e[1]*t[6]+e[4]*t[7]+e[7]*t[8],e=e[2]*t[6]+e[5]*t[7]+e[8]*t[8];return n[0]=r,n[1]=a,n[2]=i,n[3]=s,n[4]=o,n[5]=u,n[6]=l,n[7]=c,n[8]=e,n},B.add=function(e,t,n){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n[2]=e[2]+t[2],n[3]=e[3]+t[3],n[4]=e[4]+t[4],n[5]=e[5]+t[5],n[6]=e[6]+t[6],n[7]=e[7]+t[7],n[8]=e[8]+t[8],n},B.subtract=function(e,t,n){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n[2]=e[2]-t[2],n[3]=e[3]-t[3],n[4]=e[4]-t[4],n[5]=e[5]-t[5],n[6]=e[6]-t[6],n[7]=e[7]-t[7],n[8]=e[8]-t[8],n},B.multiplyByVector=function(e,t,n){var r=t.x,a=t.y,t=t.z,i=e[0]*r+e[3]*a+e[6]*t,s=e[1]*r+e[4]*a+e[7]*t,r=e[2]*r+e[5]*a+e[8]*t;return n.x=i,n.y=s,n.z=r,n},B.multiplyByScalar=function(e,t,n){return n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t,n[3]=e[3]*t,n[4]=e[4]*t,n[5]=e[5]*t,n[6]=e[6]*t,n[7]=e[7]*t,n[8]=e[8]*t,n},B.multiplyByScale=function(e,t,n){return n[0]=e[0]*t.x,n[1]=e[1]*t.x,n[2]=e[2]*t.x,n[3]=e[3]*t.y,n[4]=e[4]*t.y,n[5]=e[5]*t.y,n[6]=e[6]*t.z,n[7]=e[7]*t.z,n[8]=e[8]*t.z,n},B.negate=function(e,t){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=-e[7],t[8]=-e[8],t},B.transpose=function(e,t){var n=e[0],r=e[3],a=e[6],i=e[1],s=e[4],o=e[7],u=e[2],l=e[5],e=e[8];return t[0]=n,t[1]=r,t[2]=a,t[3]=i,t[4]=s,t[5]=o,t[6]=u,t[7]=l,t[8]=e,t},new M.Cartesian3(1,1,1));B.getRotation=function(e,t){var n=M.Cartesian3.divideComponents(V,B.getScale(e,N),N);return t=B.multiplyByScale(e,n,t)};var j=[1,0,0],Y=[2,2,1];var H=new B,Z=new B,X=(B.computeEigenDecomposition=function(e,t){for(var n=F.CesiumMath.EPSILON20,r=0,a=0,i=(t=q.defined(t)?t:{}).unitary=B.clone(B.IDENTITY,t.unitary),s=t.diagonal=B.clone(e,t.diagonal),o=n*function(e){for(var t=0,n=0;n<9;++n){var r=e[n];t+=r*r}return Math.sqrt(t)}(s);a<10&&function(e){for(var t=0,n=0;n<3;++n){var r=e[B.getElementIndex(Y[n],j[n])];t+=2*r*r}return Math.sqrt(t)}(s)>o;){C=A=y=m=p=h=f=d=c=l=u=void 0;for(var u=s,l=H,c=F.CesiumMath.EPSILON15,d=0,f=1,h=0;h<3;++h){var p=Math.abs(u[B.getElementIndex(Y[h],j[h])]);d<p&&(f=h,d=p)}var m=1,y=0,A=j[f],C=Y[f];Math.abs(u[B.getElementIndex(C,A)])>c&&(y=(c=(c=(u[B.getElementIndex(C,C)]-u[B.getElementIndex(A,A)])/2/u[B.getElementIndex(C,A)])<0?-1/(-c+Math.sqrt(1+c*c)):1/(c+Math.sqrt(1+c*c)))*(m=1/Math.sqrt(1+c*c))),(l=B.clone(B.IDENTITY,l))[B.getElementIndex(A,A)]=l[B.getElementIndex(C,C)]=m,l[B.getElementIndex(C,A)]=y,l[B.getElementIndex(A,C)]=-y,B.transpose(H,Z),B.multiply(s,H,s),B.multiply(Z,s,s),B.multiply(i,H,i),2<++r&&(++a,r=0)}return t},B.abs=function(e,t){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t},B.determinant=function(e){var t=e[0],n=e[3],r=e[6],a=e[1],i=e[4],s=e[7],o=e[2],u=e[5],e=e[8];return t*(i*e-u*s)+a*(u*r-n*e)+o*(n*s-i*r)},B.inverse=function(e,t){var n=e[0],r=e[1],a=e[2],i=e[3],s=e[4],o=e[5],u=e[6],l=e[7],c=e[8],e=B.determinant(e),c=(t[0]=s*c-l*o,t[1]=l*a-r*c,t[2]=r*o-s*a,t[3]=u*o-i*c,t[4]=n*c-u*a,t[5]=i*a-n*o,t[6]=i*l-u*s,t[7]=u*r-n*l,t[8]=n*s-i*r,1/e);return B.multiplyByScalar(t,c,t)},new B);function L(e,t,n,r){this.x=q.defaultValue(e,0),this.y=q.defaultValue(t,0),this.z=q.defaultValue(n,0),this.w=q.defaultValue(r,0)}B.inverseTranspose=function(e,t){return B.inverse(B.transpose(e,X),t)},B.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},B.equalsEpsilon=function(e,t,n){return n=q.defaultValue(n,0),e===t||q.defined(e)&&q.defined(t)&&Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n&&Math.abs(e[2]-t[2])<=n&&Math.abs(e[3]-t[3])<=n&&Math.abs(e[4]-t[4])<=n&&Math.abs(e[5]-t[5])<=n&&Math.abs(e[6]-t[6])<=n&&Math.abs(e[7]-t[7])<=n&&Math.abs(e[8]-t[8])<=n},B.IDENTITY=Object.freeze(new B(1,0,0,0,1,0,0,0,1)),B.ZERO=Object.freeze(new B(0,0,0,0,0,0,0,0,0)),B.COLUMN0ROW0=0,B.COLUMN0ROW1=1,B.COLUMN0ROW2=2,B.COLUMN1ROW0=3,B.COLUMN1ROW1=4,B.COLUMN1ROW2=5,B.COLUMN2ROW0=6,B.COLUMN2ROW1=7,B.COLUMN2ROW2=8,Object.defineProperties(B.prototype,{length:{get:function(){return B.packedLength}}}),B.prototype.clone=function(e){return B.clone(this,e)},B.prototype.equals=function(e){return B.equals(this,e)},B.equalsArray=function(e,t,n){return e[0]===t[n]&&e[1]===t[n+1]&&e[2]===t[n+2]&&e[3]===t[n+3]&&e[4]===t[n+4]&&e[5]===t[n+5]&&e[6]===t[n+6]&&e[7]===t[n+7]&&e[8]===t[n+8]},B.prototype.equalsEpsilon=function(e,t){return B.equalsEpsilon(this,e,t)},B.prototype.toString=function(){return"("+this[0]+", "+this[3]+", "+this[6]+")\n("+this[1]+", "+this[4]+", "+this[7]+")\n("+this[2]+", "+this[5]+", "+this[8]+")"},L.fromElements=function(e,t,n,r,a){return q.defined(a)?(a.x=e,a.y=t,a.z=n,a.w=r,a):new L(e,t,n,r)},L.fromColor=function(e,t){return q.defined(t)?(t.x=e.red,t.y=e.green,t.z=e.blue,t.w=e.alpha,t):new L(e.red,e.green,e.blue,e.alpha)},L.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new L(e.x,e.y,e.z,e.w)},L.packedLength=4,L.pack=function(e,t,n){return n=q.defaultValue(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t},L.unpack=function(e,t,n){return t=q.defaultValue(t,0),(n=q.defined(n)?n:new L).x=e[t++],n.y=e[t++],n.z=e[t++],n.w=e[t],n},L.packArray=function(e,t){var n=e.length,r=4*n;if(q.defined(t)){if(!Array.isArray(t)&&t.length!==r)throw new o.DeveloperError("If result is a typed array, it must have exactly array.length * 4 elements");t.length!==r&&(t.length=r)}else t=new Array(r);for(var a=0;a<n;++a)L.pack(e[a],t,4*a);return t},L.unpackArray=function(e,t){var n=e.length;q.defined(t)?t.length=n/4:t=new Array(n/4);for(var r=0;r<n;r+=4){var a=r/4;t[a]=L.unpack(e,r,t[a])}return t},L.fromArray=L.unpack,L.maximumComponent=function(e){return Math.max(e.x,e.y,e.z,e.w)},L.minimumComponent=function(e){return Math.min(e.x,e.y,e.z,e.w)},L.minimumByComponent=function(e,t,n){return n.x=Math.min(e.x,t.x),n.y=Math.min(e.y,t.y),n.z=Math.min(e.z,t.z),n.w=Math.min(e.w,t.w),n},L.maximumByComponent=function(e,t,n){return n.x=Math.max(e.x,t.x),n.y=Math.max(e.y,t.y),n.z=Math.max(e.z,t.z),n.w=Math.max(e.w,t.w),n},L.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w},L.magnitude=function(e){return Math.sqrt(L.magnitudeSquared(e))};var J=new L,G=(L.distance=function(e,t){return L.subtract(e,t,J),L.magnitude(J)},L.distanceSquared=function(e,t){return L.subtract(e,t,J),L.magnitudeSquared(J)},L.normalize=function(e,t){var n=L.magnitude(e);return t.x=e.x/n,t.y=e.y/n,t.z=e.z/n,t.w=e.w/n,t},L.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w},L.multiplyComponents=function(e,t,n){return n.x=e.x*t.x,n.y=e.y*t.y,n.z=e.z*t.z,n.w=e.w*t.w,n},L.divideComponents=function(e,t,n){return n.x=e.x/t.x,n.y=e.y/t.y,n.z=e.z/t.z,n.w=e.w/t.w,n},L.add=function(e,t,n){return n.x=e.x+t.x,n.y=e.y+t.y,n.z=e.z+t.z,n.w=e.w+t.w,n},L.subtract=function(e,t,n){return n.x=e.x-t.x,n.y=e.y-t.y,n.z=e.z-t.z,n.w=e.w-t.w,n},L.multiplyByScalar=function(e,t,n){return n.x=e.x*t,n.y=e.y*t,n.z=e.z*t,n.w=e.w*t,n},L.divideByScalar=function(e,t,n){return n.x=e.x/t,n.y=e.y/t,n.z=e.z/t,n.w=e.w/t,n},L.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=-e.w,t},L.abs=function(e,t){return t.x=Math.abs(e.x),t.y=Math.abs(e.y),t.z=Math.abs(e.z),t.w=Math.abs(e.w),t},new L),Q=(L.lerp=function(e,t,n,r){return L.multiplyByScalar(t,n,G),r=L.multiplyByScalar(e,1-n,r),L.add(G,r,r)},new L),K=(L.mostOrthogonalAxis=function(e,t){e=L.normalize(e,Q);return L.abs(e,e),t=e.x<=e.y?e.x<=e.z?e.x<=e.w?L.clone(L.UNIT_X,t):L.clone(L.UNIT_W,t):e.z<=e.w?L.clone(L.UNIT_Z,t):L.clone(L.UNIT_W,t):e.y<=e.z?e.y<=e.w?L.clone(L.UNIT_Y,t):L.clone(L.UNIT_W,t):e.z<=e.w?L.clone(L.UNIT_Z,t):L.clone(L.UNIT_W,t)},L.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w},L.equalsArray=function(e,t,n){return e.x===t[n]&&e.y===t[n+1]&&e.z===t[n+2]&&e.w===t[n+3]},L.equalsEpsilon=function(e,t,n,r){return e===t||q.defined(e)&&q.defined(t)&&F.CesiumMath.equalsEpsilon(e.x,t.x,n,r)&&F.CesiumMath.equalsEpsilon(e.y,t.y,n,r)&&F.CesiumMath.equalsEpsilon(e.z,t.z,n,r)&&F.CesiumMath.equalsEpsilon(e.w,t.w,n,r)},L.ZERO=Object.freeze(new L(0,0,0,0)),L.UNIT_X=Object.freeze(new L(1,0,0,0)),L.UNIT_Y=Object.freeze(new L(0,1,0,0)),L.UNIT_Z=Object.freeze(new L(0,0,1,0)),L.UNIT_W=Object.freeze(new L(0,0,0,1)),L.prototype.clone=function(e){return L.clone(this,e)},L.prototype.equals=function(e){return L.equals(this,e)},L.prototype.equalsEpsilon=function(e,t,n){return L.equalsEpsilon(this,e,t,n)},L.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+", "+this.w+")"},new Float32Array(1)),n=new Uint8Array(K.buffer),t=new Uint32Array([287454020]),$=68===new Uint8Array(t.buffer)[0];function k(e,t,n,r,a,i,s,o,u,l,c,d,f,h,p,m){this[0]=q.defaultValue(e,0),this[1]=q.defaultValue(a,0),this[2]=q.defaultValue(u,0),this[3]=q.defaultValue(f,0),this[4]=q.defaultValue(t,0),this[5]=q.defaultValue(i,0),this[6]=q.defaultValue(l,0),this[7]=q.defaultValue(h,0),this[8]=q.defaultValue(n,0),this[9]=q.defaultValue(s,0),this[10]=q.defaultValue(c,0),this[11]=q.defaultValue(p,0),this[12]=q.defaultValue(r,0),this[13]=q.defaultValue(o,0),this[14]=q.defaultValue(d,0),this[15]=q.defaultValue(m,0)}L.packFloat=function(e,t){return q.defined(t)||(t=new L),K[0]=e,$?(t.x=n[0],t.y=n[1],t.z=n[2],t.w=n[3]):(t.x=n[3],t.y=n[2],t.z=n[1],t.w=n[0]),t},L.unpackFloat=function(e){return $?(n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w):(n[0]=e.w,n[1]=e.z,n[2]=e.y,n[3]=e.x),K[0]},k.packedLength=16,k.pack=function(e,t,n){return n=q.defaultValue(n,0),t[n++]=e[0],t[n++]=e[1],t[n++]=e[2],t[n++]=e[3],t[n++]=e[4],t[n++]=e[5],t[n++]=e[6],t[n++]=e[7],t[n++]=e[8],t[n++]=e[9],t[n++]=e[10],t[n++]=e[11],t[n++]=e[12],t[n++]=e[13],t[n++]=e[14],t[n]=e[15],t},k.unpack=function(e,t,n){return t=q.defaultValue(t,0),(n=q.defined(n)?n:new k)[0]=e[t++],n[1]=e[t++],n[2]=e[t++],n[3]=e[t++],n[4]=e[t++],n[5]=e[t++],n[6]=e[t++],n[7]=e[t++],n[8]=e[t++],n[9]=e[t++],n[10]=e[t++],n[11]=e[t++],n[12]=e[t++],n[13]=e[t++],n[14]=e[t++],n[15]=e[t],n},k.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t):new k(e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15])},k.fromArray=k.unpack,k.fromColumnMajorArray=function(e,t){return k.clone(e,t)},k.fromRowMajorArray=function(e,t){return q.defined(t)?(t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15],t):new k(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},k.fromRotationTranslation=function(e,t,n){return t=q.defaultValue(t,M.Cartesian3.ZERO),q.defined(n)?(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=0,n[4]=e[3],n[5]=e[4],n[6]=e[5],n[7]=0,n[8]=e[6],n[9]=e[7],n[10]=e[8],n[11]=0,n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=1,n):new k(e[0],e[3],e[6],t.x,e[1],e[4],e[7],t.y,e[2],e[5],e[8],t.z,0,0,0,1)},k.fromTranslationQuaternionRotationScale=function(e,t,n,r){q.defined(r)||(r=new k);var a=n.x,i=n.y,n=n.z,s=t.x*t.x,o=t.x*t.y,u=t.x*t.z,l=t.x*t.w,c=t.y*t.y,d=t.y*t.z,f=t.y*t.w,h=t.z*t.z,p=t.z*t.w,t=t.w*t.w,m=2*(o-p),y=2*(u+f),o=2*(o+p),p=c-s-h+t,A=2*(d-l),u=2*(u-f),f=2*(d+l),d=-s-c+h+t;return r[0]=(s-c-h+t)*a,r[1]=o*a,r[2]=u*a,r[3]=0,r[4]=m*i,r[5]=p*i,r[6]=f*i,r[7]=0,r[8]=y*n,r[9]=A*n,r[10]=d*n,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,r},k.fromTranslationRotationScale=function(e,t){return k.fromTranslationQuaternionRotationScale(e.translation,e.rotation,e.scale,t)},k.fromTranslation=function(e,t){return k.fromRotationTranslation(B.IDENTITY,e,t)},k.fromScale=function(e,t){return q.defined(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e.y,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e.z,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t):new k(e.x,0,0,0,0,e.y,0,0,0,0,e.z,0,0,0,0,1)},k.fromUniformScale=function(e,t){return q.defined(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t):new k(e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1)};var ee=new M.Cartesian3,te=new M.Cartesian3,ne=new M.Cartesian3,re=(k.fromCamera=function(e,t){var n=e.position,r=e.direction,e=e.up,r=(M.Cartesian3.normalize(r,ee),M.Cartesian3.normalize(M.Cartesian3.cross(ee,e,te),te),M.Cartesian3.normalize(M.Cartesian3.cross(te,ee,ne),ne),te.x),e=te.y,a=te.z,i=ee.x,s=ee.y,o=ee.z,u=ne.x,l=ne.y,c=ne.z,d=n.x,f=n.y,n=n.z,h=r*-d+e*-f+a*-n,p=u*-d+l*-f+c*-n,d=i*d+s*f+o*n;return q.defined(t)?(t[0]=r,t[1]=u,t[2]=-i,t[3]=0,t[4]=e,t[5]=l,t[6]=-s,t[7]=0,t[8]=a,t[9]=c,t[10]=-o,t[11]=0,t[12]=h,t[13]=p,t[14]=d,t[15]=1,t):new k(r,e,a,h,u,l,c,p,-i,-s,-o,d,0,0,0,1)},k.computePerspectiveFieldOfView=function(e,t,n,r,a){var e=1/Math.tan(.5*e),i=(r+n)/(n-r),n=2*r*n/(n-r);return a[0]=e/t,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=e,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=i,a[11]=-1,a[12]=0,a[13]=0,a[14]=n,a[15]=0,a},k.computeOrthographicOffCenter=function(e,t,n,r,a,i,s){var o=1/(t-e),u=1/(r-n),l=1/(i-a),t=-(t+e)*o,e=-(r+n)*u,r=-(i+a)*l;return u*=2,l*=-2,s[0]=o*=2,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=u,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=l,s[11]=0,s[12]=t,s[13]=e,s[14]=r,s[15]=1,s},k.computePerspectiveOffCenter=function(e,t,n,r,a,i,s){var o=2*a/(r-n),u=(t+e)/(t-e),r=(r+n)/(r-n),n=-(i+a)/(i-a),i=-2*i*a/(i-a);return s[0]=2*a/(t-e),s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=o,s[6]=0,s[7]=0,s[8]=u,s[9]=r,s[10]=n,s[11]=-1,s[12]=0,s[13]=0,s[14]=i,s[15]=0,s},k.computeInfinitePerspectiveOffCenter=function(e,t,n,r,a,i){var s=2*a/(r-n),o=(t+e)/(t-e),r=(r+n)/(r-n),n=-2*a;return i[0]=2*a/(t-e),i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=s,i[6]=0,i[7]=0,i[8]=o,i[9]=r,i[10]=-1,i[11]=-1,i[12]=0,i[13]=0,i[14]=n,i[15]=0,i},k.computeViewportTransformation=function(e,t,n,r){q.defined(r)||(r=new k),e=q.defaultValue(e,q.defaultValue.EMPTY_OBJECT);var a=q.defaultValue(e.x,0),i=q.defaultValue(e.y,0),s=q.defaultValue(e.width,0),e=q.defaultValue(e.height,0),s=(t=q.defaultValue(t,0),.5*s),e=.5*e,n=.5*((n=q.defaultValue(n,1))-t),o=e,u=n,a=a+s,i=i+e,e=t+n;return r[0]=s,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=o,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=u,r[11]=0,r[12]=a,r[13]=i,r[14]=e,r[15]=1,r},k.computeView=function(e,t,n,r,a){return a[0]=r.x,a[1]=n.x,a[2]=-t.x,a[3]=0,a[4]=r.y,a[5]=n.y,a[6]=-t.y,a[7]=0,a[8]=r.z,a[9]=n.z,a[10]=-t.z,a[11]=0,a[12]=-M.Cartesian3.dot(r,e),a[13]=-M.Cartesian3.dot(n,e),a[14]=M.Cartesian3.dot(t,e),a[15]=1,a},k.toArray=function(e,t){return q.defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]},k.getElementIndex=function(e,t){return 4*e+t},k.getColumn=function(e,t,n){var t=4*t,r=e[t],a=e[1+t],i=e[2+t],e=e[3+t];return n.x=r,n.y=a,n.z=i,n.w=e,n},k.setColumn=function(e,t,n,r){t*=4;return(r=k.clone(e,r))[t]=n.x,r[1+t]=n.y,r[2+t]=n.z,r[3+t]=n.w,r},k.setTranslation=function(e,t,n){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=e[15],n},new M.Cartesian3),ae=(k.setScale=function(e,t,n){var r=k.getScale(e,re),t=M.Cartesian3.divideComponents(t,r,re);return k.multiplyByScale(e,t,n)},k.getRow=function(e,t,n){var r=e[t],a=e[t+4],i=e[t+8],e=e[t+12];return n.x=r,n.y=a,n.z=i,n.w=e,n},k.setRow=function(e,t,n,r){return(r=k.clone(e,r))[t]=n.x,r[t+4]=n.y,r[t+8]=n.z,r[t+12]=n.w,r},new M.Cartesian3),ie=(k.getScale=function(e,t){return t.x=M.Cartesian3.magnitude(M.Cartesian3.fromElements(e[0],e[1],e[2],ae)),t.y=M.Cartesian3.magnitude(M.Cartesian3.fromElements(e[4],e[5],e[6],ae)),t.z=M.Cartesian3.magnitude(M.Cartesian3.fromElements(e[8],e[9],e[10],ae)),t},new M.Cartesian3),se=(k.getMaximumScale=function(e){return k.getScale(e,ie),M.Cartesian3.maximumComponent(ie)},k.multiply=function(e,t,n){var r=e[0],a=e[1],i=e[2],s=e[3],o=e[4],u=e[5],l=e[6],c=e[7],d=e[8],f=e[9],h=e[10],p=e[11],m=e[12],y=e[13],A=e[14],e=e[15],C=t[0],w=t[1],g=t[2],v=t[3],x=t[4],E=t[5],O=t[6],S=t[7],_=t[8],b=t[9],R=t[10],M=t[11],q=t[12],T=t[13],I=t[14],t=t[15],z=a*C+u*w+f*g+y*v,U=i*C+l*w+h*g+A*v,D=s*C+c*w+p*g+e*v,P=r*x+o*E+d*O+m*S,N=a*x+u*E+f*O+y*S,V=i*x+l*E+h*O+A*S,x=s*x+c*E+p*O+e*S,E=r*_+o*b+d*R+m*M,O=a*_+u*b+f*R+y*M,S=i*_+l*b+h*R+A*M,_=s*_+c*b+p*R+e*M,b=r*q+o*T+d*I+m*t,R=a*q+u*T+f*I+y*t,M=i*q+l*T+h*I+A*t,a=s*q+c*T+p*I+e*t;return n[0]=r*C+o*w+d*g+m*v,n[1]=z,n[2]=U,n[3]=D,n[4]=P,n[5]=N,n[6]=V,n[7]=x,n[8]=E,n[9]=O,n[10]=S,n[11]=_,n[12]=b,n[13]=R,n[14]=M,n[15]=a,n},k.add=function(e,t,n){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n[2]=e[2]+t[2],n[3]=e[3]+t[3],n[4]=e[4]+t[4],n[5]=e[5]+t[5],n[6]=e[6]+t[6],n[7]=e[7]+t[7],n[8]=e[8]+t[8],n[9]=e[9]+t[9],n[10]=e[10]+t[10],n[11]=e[11]+t[11],n[12]=e[12]+t[12],n[13]=e[13]+t[13],n[14]=e[14]+t[14],n[15]=e[15]+t[15],n},k.subtract=function(e,t,n){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n[2]=e[2]-t[2],n[3]=e[3]-t[3],n[4]=e[4]-t[4],n[5]=e[5]-t[5],n[6]=e[6]-t[6],n[7]=e[7]-t[7],n[8]=e[8]-t[8],n[9]=e[9]-t[9],n[10]=e[10]-t[10],n[11]=e[11]-t[11],n[12]=e[12]-t[12],n[13]=e[13]-t[13],n[14]=e[14]-t[14],n[15]=e[15]-t[15],n},k.multiplyTransformation=function(e,t,n){var r=e[0],a=e[1],i=e[2],s=e[4],o=e[5],u=e[6],l=e[8],c=e[9],d=e[10],f=e[12],h=e[13],e=e[14],p=t[0],m=t[1],y=t[2],A=t[4],C=t[5],w=t[6],g=t[8],v=t[9],x=t[10],E=t[12],O=t[13],t=t[14],S=a*p+o*m+c*y,_=i*p+u*m+d*y,b=r*A+s*C+l*w,R=a*A+o*C+c*w,A=i*A+u*C+d*w,C=r*g+s*v+l*x,w=a*g+o*v+c*x,g=i*g+u*v+d*x,v=r*E+s*O+l*t+f,x=a*E+o*O+c*t+h,f=i*E+u*O+d*t+e;return n[0]=r*p+s*m+l*y,n[1]=S,n[2]=_,n[3]=0,n[4]=b,n[5]=R,n[6]=A,n[7]=0,n[8]=C,n[9]=w,n[10]=g,n[11]=0,n[12]=v,n[13]=x,n[14]=f,n[15]=1,n},k.multiplyByMatrix3=function(e,t,n){var r=e[0],a=e[1],i=e[2],s=e[4],o=e[5],u=e[6],l=e[8],c=e[9],d=e[10],f=t[0],h=t[1],p=t[2],m=t[3],y=t[4],A=t[5],C=t[6],w=t[7],t=t[8],g=a*f+o*h+c*p,v=i*f+u*h+d*p,x=r*m+s*y+l*A,E=a*m+o*y+c*A,m=i*m+u*y+d*A,y=r*C+s*w+l*t,A=a*C+o*w+c*t,a=i*C+u*w+d*t;return n[0]=r*f+s*h+l*p,n[1]=g,n[2]=v,n[3]=0,n[4]=x,n[5]=E,n[6]=m,n[7]=0,n[8]=y,n[9]=A,n[10]=a,n[11]=0,n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15],n},k.multiplyByTranslation=function(e,t,n){var r=t.x,a=t.y,t=t.z,i=r*e[0]+a*e[4]+t*e[8]+e[12],s=r*e[1]+a*e[5]+t*e[9]+e[13],r=r*e[2]+a*e[6]+t*e[10]+e[14];return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=i,n[13]=s,n[14]=r,n[15]=e[15],n},new M.Cartesian3),oe=(k.multiplyByUniformScale=function(e,t,n){return se.x=t,se.y=t,se.z=t,k.multiplyByScale(e,se,n)},k.multiplyByScale=function(e,t,n){var r=t.x,a=t.y,t=t.z;return 1===r&&1===a&&1===t?k.clone(e,n):(n[0]=r*e[0],n[1]=r*e[1],n[2]=r*e[2],n[3]=0,n[4]=a*e[4],n[5]=a*e[5],n[6]=a*e[6],n[7]=0,n[8]=t*e[8],n[9]=t*e[9],n[10]=t*e[10],n[11]=0,n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=1,n)},k.multiplyByVector=function(e,t,n){var r=t.x,a=t.y,i=t.z,t=t.w,s=e[0]*r+e[4]*a+e[8]*i+e[12]*t,o=e[1]*r+e[5]*a+e[9]*i+e[13]*t,u=e[2]*r+e[6]*a+e[10]*i+e[14]*t,r=e[3]*r+e[7]*a+e[11]*i+e[15]*t;return n.x=s,n.y=o,n.z=u,n.w=r,n},k.multiplyByPointAsVector=function(e,t,n){var r=t.x,a=t.y,t=t.z,i=e[0]*r+e[4]*a+e[8]*t,s=e[1]*r+e[5]*a+e[9]*t,r=e[2]*r+e[6]*a+e[10]*t;return n.x=i,n.y=s,n.z=r,n},k.multiplyByPoint=function(e,t,n){var r=t.x,a=t.y,t=t.z,i=e[0]*r+e[4]*a+e[8]*t+e[12],s=e[1]*r+e[5]*a+e[9]*t+e[13],r=e[2]*r+e[6]*a+e[10]*t+e[14];return n.x=i,n.y=s,n.z=r,n},k.multiplyByScalar=function(e,t,n){return n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t,n[3]=e[3]*t,n[4]=e[4]*t,n[5]=e[5]*t,n[6]=e[6]*t,n[7]=e[7]*t,n[8]=e[8]*t,n[9]=e[9]*t,n[10]=e[10]*t,n[11]=e[11]*t,n[12]=e[12]*t,n[13]=e[13]*t,n[14]=e[14]*t,n[15]=e[15]*t,n},k.negate=function(e,t){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=-e[7],t[8]=-e[8],t[9]=-e[9],t[10]=-e[10],t[11]=-e[11],t[12]=-e[12],t[13]=-e[13],t[14]=-e[14],t[15]=-e[15],t},k.transpose=function(e,t){var n=e[1],r=e[2],a=e[3],i=e[6],s=e[7],o=e[11];return t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=i,t[10]=e[10],t[11]=e[14],t[12]=a,t[13]=s,t[14]=o,t[15]=e[15],t},k.abs=function(e,t){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t[9]=Math.abs(e[9]),t[10]=Math.abs(e[10]),t[11]=Math.abs(e[11]),t[12]=Math.abs(e[12]),t[13]=Math.abs(e[13]),t[14]=Math.abs(e[14]),t[15]=Math.abs(e[15]),t},k.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[3]===t[3]&&e[7]===t[7]&&e[11]===t[11]&&e[15]===t[15]},k.equalsEpsilon=function(e,t,n){return n=q.defaultValue(n,0),e===t||q.defined(e)&&q.defined(t)&&Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n&&Math.abs(e[2]-t[2])<=n&&Math.abs(e[3]-t[3])<=n&&Math.abs(e[4]-t[4])<=n&&Math.abs(e[5]-t[5])<=n&&Math.abs(e[6]-t[6])<=n&&Math.abs(e[7]-t[7])<=n&&Math.abs(e[8]-t[8])<=n&&Math.abs(e[9]-t[9])<=n&&Math.abs(e[10]-t[10])<=n&&Math.abs(e[11]-t[11])<=n&&Math.abs(e[12]-t[12])<=n&&Math.abs(e[13]-t[13])<=n&&Math.abs(e[14]-t[14])<=n&&Math.abs(e[15]-t[15])<=n},k.getTranslation=function(e,t){return t.x=e[12],t.y=e[13],t.z=e[14],t},k.getMatrix3=function(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},new B),ue=new B,le=new L,ce=new L(0,0,0,1),de=(k.inverse=function(e,t){var n=e[0],r=e[4],a=e[8],i=e[12],s=e[1],o=e[5],u=e[9],l=e[13],c=e[2],d=e[6],f=e[10],h=e[14],p=e[3],m=e[7],y=e[11],A=e[15],C=f*A,w=h*y,g=d*A,v=h*m,x=d*y,E=f*m,O=c*A,S=h*p,_=c*y,b=f*p,R=c*m,M=d*p,q=C*o+v*u+x*l-(w*o+g*u+E*l),T=w*s+O*u+b*l-(C*s+S*u+_*l),I=g*s+S*o+R*l-(v*s+O*o+M*l),z=E*s+_*o+M*u-(x*s+b*o+R*u),U=w*r+g*a+E*i-(C*r+v*a+x*i),D=C*n+S*a+_*i-(w*n+O*a+b*i),P=v*n+O*r+M*i-(g*n+S*r+R*i),N=x*n+b*r+R*a-(E*n+_*r+M*a),V=(C=a*l)*m+(v=i*o)*y+(x=r*u)*A-((w=i*u)*m+(g=r*l)*y+(E=a*o)*A),l=w*p+(O=n*l)*y+(b=a*s)*A-(C*p+(S=i*s)*y+(_=n*u)*A),u=g*p+S*m+(R=n*o)*A-(v*p+O*m+(M=r*s)*A),o=E*p+_*m+M*y-(x*p+b*m+R*y),s=g*f+E*h+w*d-(x*h+C*d+v*f),A=_*h+C*c+S*f-(O*f+b*h+w*c),p=O*d+M*h+v*c-(R*h+g*c+S*d),m=R*f+x*c+b*d-(_*d+M*f+E*c),y=n*q+r*T+a*I+i*z;if(Math.abs(y)<F.CesiumMath.EPSILON21){if(B.equalsEpsilon(k.getMatrix3(e,oe),ue,F.CesiumMath.EPSILON7)&&L.equals(k.getRow(e,3,le),ce))return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=-e[12],t[13]=-e[13],t[14]=-e[14],t[15]=1,t;throw new W.RuntimeError("matrix is not invertible because its determinate is zero.")}return t[0]=q*(y=1/y),t[1]=T*y,t[2]=I*y,t[3]=z*y,t[4]=U*y,t[5]=D*y,t[6]=P*y,t[7]=N*y,t[8]=V*y,t[9]=l*y,t[10]=u*y,t[11]=o*y,t[12]=s*y,t[13]=A*y,t[14]=p*y,t[15]=m*y,t},k.inverseTransformation=function(e,t){var n=e[0],r=e[1],a=e[2],i=e[4],s=e[5],o=e[6],u=e[8],l=e[9],c=e[10],d=e[12],f=e[13],e=e[14],h=-n*d-r*f-a*e,p=-i*d-s*f-o*e,d=-u*d-l*f-c*e;return t[0]=n,t[1]=i,t[2]=u,t[3]=0,t[4]=r,t[5]=s,t[6]=l,t[7]=0,t[8]=a,t[9]=o,t[10]=c,t[11]=0,t[12]=h,t[13]=p,t[14]=d,t[15]=1,t},new k);function T(e,t){this.center=M.Cartesian3.clone(q.defaultValue(e,M.Cartesian3.ZERO)),this.radius=q.defaultValue(t,0)}k.inverseTranspose=function(e,t){return k.inverse(k.transpose(e,de),t)},k.IDENTITY=Object.freeze(new k(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)),k.ZERO=Object.freeze(new k(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)),k.COLUMN0ROW0=0,k.COLUMN0ROW1=1,k.COLUMN0ROW2=2,k.COLUMN0ROW3=3,k.COLUMN1ROW0=4,k.COLUMN1ROW1=5,k.COLUMN1ROW2=6,k.COLUMN1ROW3=7,k.COLUMN2ROW0=8,k.COLUMN2ROW1=9,k.COLUMN2ROW2=10,k.COLUMN2ROW3=11,k.COLUMN3ROW0=12,k.COLUMN3ROW1=13,k.COLUMN3ROW2=14,k.COLUMN3ROW3=15,Object.defineProperties(k.prototype,{length:{get:function(){return k.packedLength}}}),k.prototype.clone=function(e){return k.clone(this,e)},k.prototype.equals=function(e){return k.equals(this,e)},k.equalsArray=function(e,t,n){return e[0]===t[n]&&e[1]===t[n+1]&&e[2]===t[n+2]&&e[3]===t[n+3]&&e[4]===t[n+4]&&e[5]===t[n+5]&&e[6]===t[n+6]&&e[7]===t[n+7]&&e[8]===t[n+8]&&e[9]===t[n+9]&&e[10]===t[n+10]&&e[11]===t[n+11]&&e[12]===t[n+12]&&e[13]===t[n+13]&&e[14]===t[n+14]&&e[15]===t[n+15]},k.prototype.equalsEpsilon=function(e,t){return k.equalsEpsilon(this,e,t)},k.prototype.toString=function(){return"("+this[0]+", "+this[4]+", "+this[8]+", "+this[12]+")\n("+this[1]+", "+this[5]+", "+this[9]+", "+this[13]+")\n("+this[2]+", "+this[6]+", "+this[10]+", "+this[14]+")\n("+this[3]+", "+this[7]+", "+this[11]+", "+this[15]+")"};for(var fe=new M.Cartesian3,he=new M.Cartesian3,pe=new M.Cartesian3,me=new M.Cartesian3,ye=new M.Cartesian3,Ae=new M.Cartesian3,Ce=new M.Cartesian3,I=new M.Cartesian3,we=new M.Cartesian3,ge=new M.Cartesian3,ve=new M.Cartesian3,xe=new M.Cartesian3,Ee=4/3*F.CesiumMath.PI,Oe=(T.fromPoints=function(e,t){if(q.defined(t)||(t=new T),q.defined(e)&&0!==e.length){for(var n=M.Cartesian3.clone(e[0],Ce),r=M.Cartesian3.clone(n,fe),a=M.Cartesian3.clone(n,he),i=M.Cartesian3.clone(n,pe),s=M.Cartesian3.clone(n,me),o=M.Cartesian3.clone(n,ye),u=M.Cartesian3.clone(n,Ae),l=e.length,c=1;c<l;c++){M.Cartesian3.clone(e[c],n);var d=n.x,f=n.y,h=n.z;d<r.x&&M.Cartesian3.clone(n,r),d>s.x&&M.Cartesian3.clone(n,s),f<a.y&&M.Cartesian3.clone(n,a),f>o.y&&M.Cartesian3.clone(n,o),h<i.z&&M.Cartesian3.clone(n,i),h>u.z&&M.Cartesian3.clone(n,u)}var p=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(s,r,I)),m=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(o,a,I)),y=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(u,i,I)),A=r,C=s,w=p,g=(p<m&&(w=m,A=a,C=o),w<y&&(w=y,A=i,C=u),we),v=(g.x=.5*(A.x+C.x),g.y=.5*(A.y+C.y),g.z=.5*(A.z+C.z),M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(C,g,I))),x=Math.sqrt(v),p=ge,m=(p.x=r.x,p.y=a.y,p.z=i.z,ve),E=(m.x=s.x,m.y=o.y,m.z=u.z,M.Cartesian3.midpoint(p,m,xe)),O=0;for(c=0;c<l;c++){M.Cartesian3.clone(e[c],n);var S,_=M.Cartesian3.magnitude(M.Cartesian3.subtract(n,E,I)),_=(O<_&&(O=_),M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(n,g,I)));v<_&&(v=(x=.5*(x+(_=Math.sqrt(_))))*x,g.x=(x*g.x+(S=_-x)*n.x)/_,g.y=(x*g.y+S*n.y)/_,g.z=(x*g.z+S*n.z)/_)}x<O?(M.Cartesian3.clone(g,t.center),t.radius=x):(M.Cartesian3.clone(E,t.center),t.radius=O)}else t.center=M.Cartesian3.clone(M.Cartesian3.ZERO,t.center),t.radius=0;return t},new z),Se=new M.Cartesian3,_e=new M.Cartesian3,be=new M.Cartographic,Re=new M.Cartographic,Me=(T.fromRectangle2D=function(e,t,n){return T.fromRectangleWithHeights2D(e,t,0,0,n)},T.fromRectangleWithHeights2D=function(e,t,n,r,a){var i;return q.defined(a)||(a=new T),q.defined(e)?(t=q.defaultValue(t,Oe),M.Rectangle.southwest(e,be),be.height=n,M.Rectangle.northeast(e,Re),Re.height=r,n=t.project(be,Se),r=(e=t.project(Re,_e)).x-n.x,t=e.y-n.y,e=e.z-n.z,a.radius=.5*Math.sqrt(r*r+t*t+e*e),(i=a.center).x=n.x+.5*r,i.y=n.y+.5*t,i.z=n.z+.5*e):(a.center=M.Cartesian3.clone(M.Cartesian3.ZERO,a.center),a.radius=0),a},[]),qe=(T.fromRectangle3D=function(e,t,n,r){return t=q.defaultValue(t,M.Ellipsoid.WGS84),n=q.defaultValue(n,0),q.defined(r)||(r=new T),q.defined(e)?(e=M.Rectangle.subsample(e,t,n,Me),T.fromPoints(e,r)):(r.center=M.Cartesian3.clone(M.Cartesian3.ZERO,r.center),r.radius=0,r)},T.fromVertices=function(e,t,n,r){if(q.defined(r)||(r=new T),q.defined(e)&&0!==e.length){t=q.defaultValue(t,M.Cartesian3.ZERO),n=q.defaultValue(n,3);for(var a=Ce,i=(a.x=e[0]+t.x,a.y=e[1]+t.y,a.z=e[2]+t.z,M.Cartesian3.clone(a,fe)),s=M.Cartesian3.clone(a,he),o=M.Cartesian3.clone(a,pe),u=M.Cartesian3.clone(a,me),l=M.Cartesian3.clone(a,ye),c=M.Cartesian3.clone(a,Ae),d=e.length,f=0;f<d;f+=n){var h=e[f]+t.x,p=e[f+1]+t.y,m=e[f+2]+t.z;a.x=h,a.y=p,a.z=m,h<i.x&&M.Cartesian3.clone(a,i),h>u.x&&M.Cartesian3.clone(a,u),p<s.y&&M.Cartesian3.clone(a,s),p>l.y&&M.Cartesian3.clone(a,l),m<o.z&&M.Cartesian3.clone(a,o),m>c.z&&M.Cartesian3.clone(a,c)}var y=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(u,i,I)),A=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(l,s,I)),C=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(c,o,I)),w=i,g=u,v=y,x=(y<A&&(v=A,w=s,g=l),v<C&&(v=C,w=o,g=c),we),E=(x.x=.5*(w.x+g.x),x.y=.5*(w.y+g.y),x.z=.5*(w.z+g.z),M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(g,x,I))),O=Math.sqrt(E),y=ge,A=(y.x=i.x,y.y=s.y,y.z=o.z,ve),S=(A.x=u.x,A.y=l.y,A.z=c.z,M.Cartesian3.midpoint(y,A,xe)),_=0;for(f=0;f<d;f+=n){a.x=e[f]+t.x,a.y=e[f+1]+t.y,a.z=e[f+2]+t.z;var b,R=M.Cartesian3.magnitude(M.Cartesian3.subtract(a,S,I)),R=(_<R&&(_=R),M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(a,x,I)));E<R&&(E=(O=.5*(O+(R=Math.sqrt(R))))*O,x.x=(O*x.x+(b=R-O)*a.x)/R,x.y=(O*x.y+b*a.y)/R,x.z=(O*x.z+b*a.z)/R)}O<_?(M.Cartesian3.clone(x,r.center),r.radius=O):(M.Cartesian3.clone(S,r.center),r.radius=_)}else r.center=M.Cartesian3.clone(M.Cartesian3.ZERO,r.center),r.radius=0;return r},T.fromEncodedCartesianVertices=function(e,t,n){if(q.defined(n)||(n=new T),q.defined(e)&&q.defined(t)&&e.length===t.length&&0!==e.length){for(var r=Ce,a=(r.x=e[0]+t[0],r.y=e[1]+t[1],r.z=e[2]+t[2],M.Cartesian3.clone(r,fe)),i=M.Cartesian3.clone(r,he),s=M.Cartesian3.clone(r,pe),o=M.Cartesian3.clone(r,me),u=M.Cartesian3.clone(r,ye),l=M.Cartesian3.clone(r,Ae),c=e.length,d=0;d<c;d+=3){var f=e[d]+t[d],h=e[d+1]+t[d+1],p=e[d+2]+t[d+2];r.x=f,r.y=h,r.z=p,f<a.x&&M.Cartesian3.clone(r,a),f>o.x&&M.Cartesian3.clone(r,o),h<i.y&&M.Cartesian3.clone(r,i),h>u.y&&M.Cartesian3.clone(r,u),p<s.z&&M.Cartesian3.clone(r,s),p>l.z&&M.Cartesian3.clone(r,l)}var m=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(o,a,I)),y=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(u,i,I)),A=M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(l,s,I)),C=a,w=o,g=m,v=(m<y&&(g=y,C=i,w=u),g<A&&(g=A,C=s,w=l),we),x=(v.x=.5*(C.x+w.x),v.y=.5*(C.y+w.y),v.z=.5*(C.z+w.z),M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(w,v,I))),E=Math.sqrt(x),m=ge,y=(m.x=a.x,m.y=i.y,m.z=s.z,ve),O=(y.x=o.x,y.y=u.y,y.z=l.z,M.Cartesian3.midpoint(m,y,xe)),S=0;for(d=0;d<c;d+=3){r.x=e[d]+t[d],r.y=e[d+1]+t[d+1],r.z=e[d+2]+t[d+2];var _,b=M.Cartesian3.magnitude(M.Cartesian3.subtract(r,O,I)),b=(S<b&&(S=b),M.Cartesian3.magnitudeSquared(M.Cartesian3.subtract(r,v,I)));x<b&&(x=(E=.5*(E+(b=Math.sqrt(b))))*E,v.x=(E*v.x+(_=b-E)*r.x)/b,v.y=(E*v.y+_*r.y)/b,v.z=(E*v.z+_*r.z)/b)}E<S?(M.Cartesian3.clone(v,n.center),n.radius=E):(M.Cartesian3.clone(O,n.center),n.radius=S)}else n.center=M.Cartesian3.clone(M.Cartesian3.ZERO,n.center),n.radius=0;return n},T.fromCornerPoints=function(e,t,n){q.defined(n)||(n=new T);e=M.Cartesian3.midpoint(e,t,n.center);return n.radius=M.Cartesian3.distance(e,t),n},T.fromEllipsoid=function(e,t){return q.defined(t)||(t=new T),M.Cartesian3.clone(M.Cartesian3.ZERO,t.center),t.radius=e.maximumRadius,t},new M.Cartesian3),Te=(T.fromBoundingSpheres=function(e,t){if(q.defined(t)||(t=new T),q.defined(e)&&0!==e.length){var n=e.length;if(1===n)return T.clone(e[0],t);if(2===n)return T.union(e[0],e[1],t);for(var r=[],a=0;a<n;a++)r.push(e[a].center);var i=(t=T.fromPoints(r,t)).center,s=t.radius;for(a=0;a<n;a++)var o=e[a],s=Math.max(s,M.Cartesian3.distance(i,o.center,qe)+o.radius);t.radius=s}else t.center=M.Cartesian3.clone(M.Cartesian3.ZERO,t.center),t.radius=0;return t},new M.Cartesian3),Ie=new M.Cartesian3,ze=new M.Cartesian3,Ue=(T.fromOrientedBoundingBox=function(e,t){q.defined(t)||(t=new T);var n=e.halfAxes,r=B.getColumn(n,0,Te),a=B.getColumn(n,1,Ie),n=B.getColumn(n,2,ze);return M.Cartesian3.add(r,a,r),M.Cartesian3.add(r,n,r),t.center=M.Cartesian3.clone(e.center,t.center),t.radius=M.Cartesian3.magnitude(r),t},T.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t.center=M.Cartesian3.clone(e.center,t.center),t.radius=e.radius,t):new T(e.center,e.radius)},T.packedLength=4,T.pack=function(e,t,n){n=q.defaultValue(n,0);var r=e.center;return t[n++]=r.x,t[n++]=r.y,t[n++]=r.z,t[n]=e.radius,t},T.unpack=function(e,t,n){t=q.defaultValue(t,0);var r=(n=q.defined(n)?n:new T).center;return r.x=e[t++],r.y=e[t++],r.z=e[t++],n.radius=e[t],n},new M.Cartesian3),De=new M.Cartesian3,Pe=(T.union=function(e,t,n){q.defined(n)||(n=new T);var r=e.center,a=e.radius,i=t.center,s=t.radius,i=M.Cartesian3.subtract(i,r,Ue),o=M.Cartesian3.magnitude(i);return o+s<=a?e.clone(n):o+a<=s?t.clone(n):(t=M.Cartesian3.multiplyByScalar(i,((e=.5*(a+o+s))-a)/o,De),M.Cartesian3.add(t,r,t),M.Cartesian3.clone(t,n.center),n.radius=e),n},new M.Cartesian3),Ne=(T.expand=function(e,t,n){n=T.clone(e,n);e=M.Cartesian3.magnitude(M.Cartesian3.subtract(t,n.center,Pe));return e>n.radius&&(n.radius=e),n},T.intersectPlane=function(e,t){var n=e.center,e=e.radius,r=t.normal,r=M.Cartesian3.dot(r,n)+t.distance;return r<-e?U.OUTSIDE:r<e?U.INTERSECTING:U.INSIDE},T.transform=function(e,t,n){return(n=q.defined(n)?n:new T).center=k.multiplyByPoint(t,e.center,n.center),n.radius=k.getMaximumScale(t)*e.radius,n},new M.Cartesian3),Ve=(T.distanceSquaredTo=function(e,t){t=M.Cartesian3.subtract(e.center,t,Ne),t=M.Cartesian3.magnitude(t)-e.radius;return t<=0?0:t*t},T.transformWithoutScale=function(e,t,n){return(n=q.defined(n)?n:new T).center=k.multiplyByPoint(t,e.center,n.center),n.radius=e.radius,n},new M.Cartesian3),Fe=(T.computePlaneDistances=function(e,t,n,r){q.defined(r)||(r=new D);t=M.Cartesian3.subtract(e.center,t,Ve),n=M.Cartesian3.dot(n,t);return r.start=n-e.radius,r.stop=n+e.radius,r},new M.Cartesian3),Be=new M.Cartesian3,Le=new M.Cartesian3,ke=new M.Cartesian3,We=new M.Cartesian3,je=new M.Cartographic,Ye=new Array(8),He=0;He<8;++He)Ye[He]=new M.Cartesian3;var Ze,r,Xe,Je,Ge,Qe,Ke,$e,et,tt,nt,rt,at,it,st,ot,ut,lt,ct=new z,s=(T.projectTo2D=function(e,t,n){for(var r=(t=q.defaultValue(t,ct)).ellipsoid,a=e.center,e=e.radius,i=M.Cartesian3.equals(a,M.Cartesian3.ZERO)?M.Cartesian3.clone(M.Cartesian3.UNIT_X,Fe):r.geodeticSurfaceNormal(a,Fe),s=M.Cartesian3.cross(M.Cartesian3.UNIT_Z,i,Be),o=(M.Cartesian3.normalize(s,s),M.Cartesian3.cross(i,s,Le)),e=(M.Cartesian3.normalize(o,o),M.Cartesian3.multiplyByScalar(i,e,i),M.Cartesian3.multiplyByScalar(o,e,o),M.Cartesian3.multiplyByScalar(s,e,s),M.Cartesian3.negate(o,We)),u=M.Cartesian3.negate(s,ke),l=Ye,c=l[0],d=(M.Cartesian3.add(i,o,c),M.Cartesian3.add(c,s,c),c=l[1],M.Cartesian3.add(i,o,c),M.Cartesian3.add(c,u,c),c=l[2],M.Cartesian3.add(i,e,c),M.Cartesian3.add(c,u,c),c=l[3],M.Cartesian3.add(i,e,c),M.Cartesian3.add(c,s,c),M.Cartesian3.negate(i,i),c=l[4],M.Cartesian3.add(i,o,c),M.Cartesian3.add(c,s,c),c=l[5],M.Cartesian3.add(i,o,c),M.Cartesian3.add(c,u,c),c=l[6],M.Cartesian3.add(i,e,c),M.Cartesian3.add(c,u,c),c=l[7],M.Cartesian3.add(i,e,c),M.Cartesian3.add(c,s,c),l.length),f=0;f<d;++f){var h=l[f],p=(M.Cartesian3.add(a,h,h),r.cartesianToCartographic(h,je));t.project(p,h)}o=(a=(n=T.fromPoints(l,n)).center).x,u=a.y,i=a.z;return a.x=i,a.y=o,a.z=u,n},T.isOccluded=function(e,t){return!t.isBoundingSphereVisible(e)},T.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&M.Cartesian3.equals(e.center,t.center)&&e.radius===t.radius},T.prototype.intersectPlane=function(e){return T.intersectPlane(this,e)},T.prototype.distanceSquaredTo=function(e){return T.distanceSquaredTo(this,e)},T.prototype.computePlaneDistances=function(e,t,n){return T.computePlaneDistances(this,e,t,n)},T.prototype.isOccluded=function(e){return T.isOccluded(this,e)},T.prototype.equals=function(e){return T.equals(this,e)},T.prototype.clone=function(e){return T.clone(this,e)},T.prototype.volume=function(){var e=this.radius;return Ee*e*e*e},{requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0}),a={};function dt(e){for(var t=e.split("."),n=0,r=t.length;n<r;++n)t[n]=parseInt(t[n],10);return t}function ft(){var e;return q.defined(Xe)||(Xe=!1,yt())||null!==(e=/ Chrome\/([\.0-9]+)/.exec(r.userAgent))&&(Xe=!0,Je=dt(e[1])),Xe}function ht(){var e;return q.defined(Ge)||(Ge=!1,ft())||yt()||!/ Safari\/[\.0-9]+/.test(r.userAgent)||null!==(e=/ Version\/([\.0-9]+)/.exec(r.userAgent))&&(Ge=!0,Qe=dt(e[1])),Ge}function pt(){var e;return q.defined(Ke)||(Ke=!1,null!==(e=/ AppleWebKit\/([\.0-9]+)(\+?)/.exec(r.userAgent))&&(Ke=!0,($e=dt(e[1])).isNightly=!!e[2])),Ke}function mt(){var e;return q.defined(et)||(et=!1,"Microsoft Internet Explorer"===r.appName?null!==(e=/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(r.userAgent))&&(et=!0,tt=dt(e[1])):"Netscape"===r.appName&&null!==(e=/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(r.userAgent))&&(et=!0,tt=dt(e[1]))),et}function yt(){var e;return q.defined(nt)||(nt=!1,null!==(e=/ Edge\/([\.0-9]+)/.exec(r.userAgent))&&(nt=!0,rt=dt(e[1]))),nt}function At(){var e;return q.defined(at)||(at=!1,null!==(e=/Firefox\/([\.0-9]+)/.exec(r.userAgent))&&(at=!0,it=dt(e[1]))),at}function Ct(){var e;return!q.defined(lt)&&((e=document.createElement("canvas")).setAttribute("style","image-rendering: -moz-crisp-edges;image-rendering: pixelated;"),e=e.style.imageRendering,lt=q.defined(e)&&""!==e)&&(ut=e),lt}function i(){return i._result}Object.defineProperties(a,{element:{get:function(){if(a.supportsFullscreen())return document[s.fullscreenElement]}},changeEventName:{get:function(){if(a.supportsFullscreen())return s.fullscreenchange}},errorEventName:{get:function(){if(a.supportsFullscreen())return s.fullscreenerror}},enabled:{get:function(){if(a.supportsFullscreen())return document[s.fullscreenEnabled]}},fullscreen:{get:function(){if(a.supportsFullscreen())return null!==a.element}}}),a.supportsFullscreen=function(){if(!q.defined(Ze)){Ze=!1;var e=document.body;if("function"==typeof e.requestFullscreen)return s.requestFullscreen="requestFullscreen",s.exitFullscreen="exitFullscreen",s.fullscreenEnabled="fullscreenEnabled",s.fullscreenElement="fullscreenElement",s.fullscreenchange="fullscreenchange",s.fullscreenerror="fullscreenerror",Ze=!0;for(var t=["webkit","moz","o","ms","khtml"],n=0,r=t.length;n<r;++n){var a,i=t[n];("function"==typeof e[a=i+"RequestFullscreen"]||"function"==typeof e[a=i+"RequestFullScreen"])&&(s.requestFullscreen=a,Ze=!0),a=i+"ExitFullscreen",("function"==typeof document[a]||(a=i+"CancelFullScreen","function"==typeof document[a]))&&(s.exitFullscreen=a),a=i+"FullscreenEnabled",(void 0!==document[a]||(a=i+"FullScreenEnabled",void 0!==document[a]))&&(s.fullscreenEnabled=a),a=i+"FullscreenElement",(void 0!==document[a]||(a=i+"FullScreenElement",void 0!==document[a]))&&(s.fullscreenElement=a),a=i+"fullscreenchange",void 0!==document["on"+a]&&(s.fullscreenchange=a="ms"===i?"MSFullscreenChange":a),a=i+"fullscreenerror",void 0!==document["on"+a]&&(s.fullscreenerror=a="ms"===i?"MSFullscreenError":a)}}return Ze},a.requestFullscreen=function(e,t){a.supportsFullscreen()&&e[s.requestFullscreen]({vrDisplay:t})},a.exitFullscreen=function(){a.supportsFullscreen()&&document[s.exitFullscreen]()},a._names=s,r="undefined"!=typeof navigator?navigator:{},i._promise=void 0,i._result=void 0,i.initialize=function(){var e,t;return q.defined(i._promise)?i._promise:(e=q.when.defer(),i._promise=e.promise,yt()?(i._result=!1,e.resolve(i._result)):((t=new Image).onload=function(){i._result=0<t.width&&0<t.height,e.resolve(i._result)},t.onerror=function(){i._result=!1,e.resolve(i._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"),e.promise)},Object.defineProperties(i,{initialized:{get:function(){return q.defined(i._result)}}});var t=[],u=("undefined"!=typeof ArrayBuffer&&(t.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),"undefined"!=typeof Uint8ClampedArray&&t.push(Uint8ClampedArray),"undefined"!=typeof Uint8ClampedArray&&t.push(Uint8ClampedArray),"undefined"!=typeof BigInt64Array&&t.push(BigInt64Array),"undefined"!=typeof BigUint64Array)&&t.push(BigUint64Array),{isChrome:ft,chromeVersion:function(){return ft()&&Je},isSafari:ht,safariVersion:function(){return ht()&&Qe},isWebkit:pt,webkitVersion:function(){return pt()&&$e},isInternetExplorer:mt,internetExplorerVersion:function(){return mt()&&tt},isEdge:yt,edgeVersion:function(){return yt()&&rt},isFirefox:At,firefoxVersion:function(){return At()&&it},isWindows:function(){return st=q.defined(st)?st:/Windows/i.test(r.appVersion)},hardwareConcurrency:q.defaultValue(r.hardwareConcurrency,3),supportsPointerEvents:function(){return ot=q.defined(ot)?ot:!At()&&"undefined"!=typeof PointerEvent&&(!q.defined(r.pointerEnabled)||r.pointerEnabled)},supportsImageRenderingPixelated:Ct,supportsWebP:i,imageRenderingValue:function(){return Ct()?ut:void 0},typedArrayTypes:t});function c(e,t,n,r){this.x=q.defaultValue(e,0),this.y=q.defaultValue(t,0),this.z=q.defaultValue(n,0),this.w=q.defaultValue(r,0)}u.supportsBasis=function(e){return u.supportsWebAssembly()&&e.context.supportsBasis},u.supportsFullscreen=function(){return a.supportsFullscreen()},u.supportsTypedArrays=function(){return"undefined"!=typeof ArrayBuffer},u.supportsBigInt64Array=function(){return"undefined"!=typeof BigInt64Array},u.supportsBigUint64Array=function(){return"undefined"!=typeof BigUint64Array},u.supportsBigInt=function(){return"undefined"!=typeof BigInt},u.supportsWebWorkers=function(){return"undefined"!=typeof Worker},u.supportsWebAssembly=function(){return"undefined"!=typeof WebAssembly&&!u.isEdge()};for(var wt,gt,vt=new M.Cartesian3,xt=(c.fromAxisAngle=function(e,t,n){var t=t/2,r=Math.sin(t),e=(vt=M.Cartesian3.normalize(e,vt)).x*r,a=vt.y*r,r=vt.z*r,t=Math.cos(t);return q.defined(n)?(n.x=e,n.y=a,n.z=r,n.w=t,n):new c(e,a,r,t)},[1,2,0]),Et=new Array(3),Ot=(c.fromRotationMatrix=function(e,t){var n,r,a,i,s=e[B.COLUMN0ROW0],o=e[B.COLUMN1ROW1],u=e[B.COLUMN2ROW2],l=s+o+u,u=0<l?(a=.5*(i=Math.sqrt(l+1)),n=(e[B.COLUMN1ROW2]-e[B.COLUMN2ROW1])*(i=.5/i),r=(e[B.COLUMN2ROW0]-e[B.COLUMN0ROW2])*i,(e[B.COLUMN0ROW1]-e[B.COLUMN1ROW0])*i):(s=xt[u=xt[l=s<u&&o<u?2:s<o?1:0]],i=Math.sqrt(e[B.getElementIndex(l,l)]-e[B.getElementIndex(u,u)]-e[B.getElementIndex(s,s)]+1),(o=Et)[l]=.5*i,i=.5/i,a=(e[B.getElementIndex(s,u)]-e[B.getElementIndex(u,s)])*i,o[u]=(e[B.getElementIndex(u,l)]+e[B.getElementIndex(l,u)])*i,o[s]=(e[B.getElementIndex(s,l)]+e[B.getElementIndex(l,s)])*i,n=-o[0],r=-o[1],-o[2]);return q.defined(t)?(t.x=n,t.y=r,t.z=u,t.w=a,t):new c(n,r,u,a)},new c),St=(new c,new c,new c,c.fromHeadingPitchRoll=function(e,t){return gt=c.fromAxisAngle(M.Cartesian3.UNIT_X,e.roll,Ot),wt=c.fromAxisAngle(M.Cartesian3.UNIT_Y,-e.pitch,t),t=c.multiply(wt,gt,wt),gt=c.fromAxisAngle(M.Cartesian3.UNIT_Z,-e.heading,Ot),c.multiply(gt,t,t)},new M.Cartesian3),_t=new M.Cartesian3,l=new c,bt=new c,Rt=new c,Mt=(c.packedLength=4,c.pack=function(e,t,n){return n=q.defaultValue(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t},c.unpack=function(e,t,n){return t=q.defaultValue(t,0),(n=q.defined(n)?n:new c).x=e[t],n.y=e[t+1],n.z=e[t+2],n.w=e[t+3],n},c.packedInterpolationLength=3,c.convertPackedArrayForInterpolation=function(e,t,n,r){c.unpack(e,4*n,Rt),c.conjugate(Rt,Rt);for(var a=0,i=n-t+1;a<i;a++){var s=3*a,o=(c.unpack(e,4*(t+a),l),c.multiply(l,Rt,l),l.w<0&&c.negate(l,l),c.computeAxis(l,St),c.computeAngle(l));(r=q.defined(r)?r:[])[s]=St.x*o,r[1+s]=St.y*o,r[2+s]=St.z*o}},c.unpackInterpolationResult=function(e,t,n,r,a){q.defined(a)||(a=new c),M.Cartesian3.fromArray(e,0,_t);e=M.Cartesian3.magnitude(_t);return c.unpack(t,4*r,bt),0===e?c.clone(c.IDENTITY,l):c.fromAxisAngle(_t,e,l),c.multiply(l,bt,a)},c.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new c(e.x,e.y,e.z,e.w)},c.conjugate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=e.w,t},c.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w},c.magnitude=function(e){return Math.sqrt(c.magnitudeSquared(e))},c.normalize=function(e,t){var n=1/c.magnitude(e),r=e.x*n,a=e.y*n,i=e.z*n,e=e.w*n;return t.x=r,t.y=a,t.z=i,t.w=e,t},c.inverse=function(e,t){var n=c.magnitudeSquared(e);return t=c.conjugate(e,t),c.multiplyByScalar(t,1/n,t)},c.add=function(e,t,n){return n.x=e.x+t.x,n.y=e.y+t.y,n.z=e.z+t.z,n.w=e.w+t.w,n},c.subtract=function(e,t,n){return n.x=e.x-t.x,n.y=e.y-t.y,n.z=e.z-t.z,n.w=e.w-t.w,n},c.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=-e.w,t},c.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w},c.multiply=function(e,t,n){var r=e.x,a=e.y,i=e.z,e=e.w,s=t.x,o=t.y,u=t.z,t=t.w,l=e*o-r*u+a*t+i*s,c=e*u+r*o-a*s+i*t,d=e*t-r*s-a*o-i*u;return n.x=e*s+r*t+a*u-i*o,n.y=l,n.z=c,n.w=d,n},c.multiplyByScalar=function(e,t,n){return n.x=e.x*t,n.y=e.y*t,n.z=e.z*t,n.w=e.w*t,n},c.divideByScalar=function(e,t,n){return n.x=e.x/t,n.y=e.y/t,n.z=e.z/t,n.w=e.w/t,n},c.computeAxis=function(e,t){var n=e.w;return Math.abs(n-1)<F.CesiumMath.EPSILON6?t.x=t.y=t.z=0:(n=1/Math.sqrt(1-n*n),t.x=e.x*n,t.y=e.y*n,t.z=e.z*n),t},c.computeAngle=function(e){return Math.abs(e.w-1)<F.CesiumMath.EPSILON6?0:2*Math.acos(e.w)},new c),qt=(c.lerp=function(e,t,n,r){return Mt=c.multiplyByScalar(t,n,Mt),r=c.multiplyByScalar(e,1-n,r),c.add(Mt,r,r)},new c),Tt=new c,It=new c,zt=(c.slerp=function(e,t,n,r){var a=c.dot(e,t),i=t;return a<0&&(a=-a,i=qt=c.negate(t,qt)),1-a<F.CesiumMath.EPSILON6?c.lerp(e,i,n,r):(t=Math.acos(a),Tt=c.multiplyByScalar(e,Math.sin((1-n)*t),Tt),It=c.multiplyByScalar(i,Math.sin(n*t),It),r=c.add(Tt,It,r),c.multiplyByScalar(r,1/Math.sin(t),r))},c.log=function(e,t){var n=F.CesiumMath.acosClamped(e.w),r=0;return 0!==n&&(r=n/Math.sin(n)),M.Cartesian3.multiplyByScalar(e,r,t)},c.exp=function(e,t){var n=M.Cartesian3.magnitude(e),r=0;return 0!==n&&(r=Math.sin(n)/n),t.x=e.x*r,t.y=e.y*r,t.z=e.z*r,t.w=Math.cos(n),t},new M.Cartesian3),Ut=new M.Cartesian3,Dt=new c,Pt=new c,Nt=(c.computeInnerQuadrangle=function(e,t,n,r){var a=c.conjugate(t,Dt),n=(c.multiply(a,n,Pt),c.log(Pt,zt)),a=(c.multiply(a,e,Pt),c.log(Pt,Ut));return M.Cartesian3.add(n,a,n),M.Cartesian3.multiplyByScalar(n,.25,n),M.Cartesian3.negate(n,n),c.exp(n,Dt),c.multiply(t,Dt,r)},c.squad=function(e,t,n,r,a,i){e=c.slerp(e,t,a,Dt),t=c.slerp(n,r,a,Pt);return c.slerp(e,t,2*a*(1-a),i)},new c),t=1.9011074535173003,Vt=u.supportsTypedArrays()?new Float32Array(8):[],Ft=u.supportsTypedArrays()?new Float32Array(8):[],Bt=u.supportsTypedArrays()?new Float32Array(8):[],Lt=u.supportsTypedArrays()?new Float32Array(8):[],kt=0;kt<7;++kt){var Wt=kt+1,jt=2*Wt+1;Vt[kt]=1/(Wt*jt),Ft[kt]=Wt/jt}function Yt(e,t,n){for(var r,a,i=0,s=e.length-1;i<=s;)if((a=n(e[r=~~((i+s)/2)],t))<0)i=1+r;else{if(!(0<a))return r;s=r-1}return~(s+1)}function Ht(e,t,n,r,a){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=n,this.yPoleOffset=r,this.ut1MinusUtc=a}function Zt(){function w(e,t,n,r,a,i,s){var o=e>>>0;return e=(n=n&&o&&{2:"0b",8:"0",16:"0x"}[t]||"")+E(o.toString(t),i||0,"0",!1),O(e,n,r,a,s)}function g(e,t,n,r,a,i){return null!=r&&(e=e.slice(0,r)),O(e,"",t,n,a,i)}var v=arguments,x=0,e=v[x++],E=function(e,t,n,r){n=n||" ";t=e.length>=t?"":Array(1+t-e.length>>>0).join(n);return r?e+t:t+e},O=function(e,t,n,r,a,i){var s=r-e.length;return e=0<s?n||!a?E(e,r,i,n):e.slice(0,t.length)+E("",s,"0",!0)+e.slice(t.length):e};return e.replace(/%%|%(\d+\$)?([-+\'#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuideEfFgG])/g,function(e,t,n,r,a,i,s){var o,u,l,c,d;if("%%"==e)return"%";for(var f=!1,h="",p=!1,m=!1,y=" ",A=n.length,C=0;n&&C<A;C++)switch(n.charAt(C)){case" ":h=" ";break;case"+":h="+";break;case"-":f=!0;break;case"'":y=n.charAt(C+1);break;case"0":p=!0;break;case"#":m=!0}if((r=r?"*"==r?+v[x++]:"*"==r.charAt(0)?+v[r.slice(1,-1)]:+r:0)<0&&(r=-r,f=!0),!isFinite(r))throw new Error("sprintf: (minimum-)width must be finite");switch(i=i?"*"==i?+v[x++]:"*"==i.charAt(0)?+v[i.slice(1,-1)]:+i:-1<"fFeE".indexOf(s)?6:"d"==s?0:void 0,d=t?v[t.slice(0,-1)]:v[x++],s){case"s":return g(String(d),f,r,i,p,y);case"c":return g(String.fromCharCode(+d),f,r,i,p);case"b":return w(d,2,m,f,r,i,p);case"o":return w(d,8,m,f,r,i,p);case"x":return w(d,16,m,f,r,i,p);case"X":return w(d,16,m,f,r,i,p).toUpperCase();case"u":return w(d,10,m,f,r,i,p);case"i":case"d":return o=+d||0,d=(u=(o=Math.round(o-o%1))<0?"-":h)+E(String(Math.abs(o)),i,"0",!1),O(d,u,f,r,p);case"e":case"E":case"f":case"F":case"g":case"G":return u=(o=+d)<0?"-":h,l=["toExponential","toFixed","toPrecision"]["efg".indexOf(s.toLowerCase())],c=["toString","toUpperCase"]["eEfFgG".indexOf(s)%2],d=u+Math.abs(o)[l](i),O(d,u,f,r,p)[c]();default:return e}})}function Xt(e,t,n,r,a,i,s,o){this.year=e,this.month=t,this.day=n,this.hour=r,this.minute=a,this.second=i,this.millisecond=s,this.isLeapSecond=o}function Jt(e){return e%4==0&&e%100!=0||e%400==0}function w(e,t){this.julianDate=e,this.offset=t}Vt[7]=t/136,Ft[7]=8*t/17,c.fastSlerp=function(e,t,n,r){for(var a=c.dot(e,t),i=(0<=a?l=1:(l=-1,a=-a),a-1),a=1-n,s=n*n,o=a*a,u=7;0<=u;--u)Bt[u]=(Vt[u]*s-Ft[u])*i,Lt[u]=(Vt[u]*o-Ft[u])*i;var l=l*n*(1+Bt[0]*(1+Bt[1]*(1+Bt[2]*(1+Bt[3]*(1+Bt[4]*(1+Bt[5]*(1+Bt[6]*(1+Bt[7])))))))),n=a*(1+Lt[0]*(1+Lt[1]*(1+Lt[2]*(1+Lt[3]*(1+Lt[4]*(1+Lt[5]*(1+Lt[6]*(1+Lt[7])))))))),a=c.multiplyByScalar(e,n,Nt);return c.multiplyByScalar(t,l,r),c.add(a,r,r)},c.fastSquad=function(e,t,n,r,a,i){e=c.fastSlerp(e,t,a,Dt),t=c.fastSlerp(n,r,a,Pt);return c.fastSlerp(e,t,2*a*(1-a),i)},c.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w},c.equalsEpsilon=function(e,t,n){return n=q.defaultValue(n,0),e===t||q.defined(e)&&q.defined(t)&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.z-t.z)<=n&&Math.abs(e.w-t.w)<=n},c.ZERO=Object.freeze(new c(0,0,0,0)),c.IDENTITY=Object.freeze(new c(0,0,0,1)),c.prototype.clone=function(e){return c.clone(this,e)},c.prototype.equals=function(e){return c.equals(this,e)},c.prototype.equalsEpsilon=function(e,t){return c.equalsEpsilon(this,e,t)},c.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+", "+this.w+")"};var g=Object.freeze({SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:2400000.5}),v=Object.freeze({UTC:0,TAI:1}),Gt=new Xt,Qt=[31,28,31,30,31,30,31,31,30,31,30,31];function Kt(e,t){return x.compare(e.julianDate,t.julianDate)}var $t=new w;function en(e){$t.julianDate=e;var t=x.leapSeconds,n=Yt(t,$t,Kt),r=t[n=(n=n<0?~n:n)>=t.length?t.length-1:n].offset;0<n&&r<x.secondsDifference(t[n].julianDate,e)&&(r=t[--n].offset),x.addSeconds(e,r,e)}function tn(e,t){$t.julianDate=e;var n,r=x.leapSeconds,a=Yt(r,$t,Kt);return 0===(a=a<0?~a:a)?x.addSeconds(e,-r[0].offset,t):a>=r.length?x.addSeconds(e,-r[a-1].offset,t):0===(n=x.secondsDifference(r[a].julianDate,e))?x.addSeconds(e,-r[a].offset,t):n<=1?void 0:x.addSeconds(e,-r[--a].offset,t)}function nn(e,t,n){var r=t/g.SECONDS_PER_DAY|0;return e+=r,(t-=g.SECONDS_PER_DAY*r)<0&&(e--,t+=g.SECONDS_PER_DAY),n.dayNumber=e,n.secondsOfDay=t,n}function rn(e,t,n,r,a,i,s){var o=(t-14)/12|0,e=e+4800+o,t=(1461*e/4|0)+(367*(t-2-12*o)/12|0)-(3*((e+100)/100|0)/4|0)+n-32075,o=((r-=12)<0&&(r+=24),i+(r*g.SECONDS_PER_HOUR+a*g.SECONDS_PER_MINUTE+s*g.SECONDS_PER_MILLISECOND));return 43200<=o&&--t,[t,o]}var an=/^(\d{4})$/,sn=/^(\d{4})-(\d{2})$/,on=/^(\d{4})-?(\d{3})$/,un=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,ln=/^(\d{4})-?(\d{2})-?(\d{2})$/,t=/([Z+\-])?(\d{2})?:?(\d{2})?$/,cn=/^(\d{2})(\.\d+)?/.source+t.source,dn=/^(\d{2}):?(\d{2})(\.\d+)?/.source+t.source,fn=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+t.source;function x(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=q.defaultValue(e,0),t=q.defaultValue(t,0),n=q.defaultValue(n,v.UTC);var r=0|e;nn(r,t+=(e-r)*g.SECONDS_PER_DAY,this),n===v.UTC&&en(this)}x.fromGregorianDate=function(e,t){e=rn(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return q.defined(t)?(nn(e[0],e[1],t),en(t),t):new x(e[0],e[1],v.UTC)},x.fromDate=function(e,t){e=rn(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return q.defined(t)?(nn(e[0],e[1],t),en(t),t):new x(e[0],e[1],v.UTC)},x.fromIso8601=function(e,t){var n,r,a,i,e=(e=e.replace(",",".")).split("T"),s=1,o=1,u=0,l=0,c=0,d=0,f=e[0],h=e[1];if(null!==(e=f.match(ln))?(a=+e[1],s=+e[2],o=+e[3]):null!==(e=f.match(sn))?(a=+e[1],s=+e[2]):null!==(e=f.match(an))?a=+e[1]:(null!==(e=f.match(on))?(a=+e[1],y=+e[2],r=Jt(a)):null!==(e=f.match(un))&&(a=+e[1],y=7*+e[2]+(+e[3]||0)-new Date(Date.UTC(a,0,4)).getUTCDay()-3),(n=new Date(Date.UTC(a,0,1))).setUTCDate(y),s=n.getUTCMonth()+1,o=n.getUTCDate()),r=Jt(a),q.defined(h)){null!==(e=h.match(fn))?(u=+e[1],l=+e[2],c=+e[3],d=1e3*+(e[4]||0),i=5):null!==(e=h.match(dn))?(u=+e[1],l=+e[2],c=60*+(e[3]||0),i=4):null!==(e=h.match(cn))&&(u=+e[1],l=60*+(e[2]||0),i=3);var f=e[i],p=+e[i+1],m=+(e[i+2]||0);switch(f){case"+":u-=p,l-=m;break;case"-":u+=p,l+=m;break;case"Z":break;default:l+=new Date(Date.UTC(a,s-1,o,u,l)).getTimezoneOffset()}}var y=60===c;for(y&&c--;60<=l;)l-=60,u++;for(;24<=u;)u-=24,o++;for(n=r&&2===s?29:Qt[s-1];n<o;)o-=n,12<++s&&(s-=12,a++),n=r&&2===s?29:Qt[s-1];for(;l<0;)l+=60,u--;for(;u<0;)u+=24,o--;for(;o<1;)--s<1&&(s+=12,a--),o+=n=r&&2===s?29:Qt[s-1];h=rn(a,s,o,u,l,c,d);return q.defined(t)?(nn(h[0],h[1],t),en(t)):t=new x(h[0],h[1],v.UTC),y&&x.addSeconds(t,1,t),t},x.now=function(e){return x.fromDate(new Date,e)};var hn=new x(0,0,v.TAI);function d(e){e instanceof d?(this.scheme=e.scheme,this.authority=e.authority,this.path=e.path,this.query=e.query,this.fragment=e.fragment):e&&(e=pn.exec(e),this.scheme=e[1],this.authority=e[2],this.path=e[3],this.query=e[4],this.fragment=e[5])}x.toGregorianDate=function(e,t){var n=!1,r=tn(e,hn),e=(q.defined(r)||(x.addSeconds(e,-1,hn),r=tn(hn,hn),n=!0),r.dayNumber),r=r.secondsOfDay,e=(43200<=r&&(e+=1),e+68569|0),a=4*e/146097|0,i=4e3*(1+(e=e-((146097*a+3)/4|0)|0))/1461001|0,s=80*(e=e-(1461*i/4|0)+31|0)/2447|0,o=e-(2447*s/80|0)|0,s=2+s-12*(e=s/11|0)|0,a=100*(a-49)+i+e|0,i=r/g.SECONDS_PER_HOUR|0,e=r-i*g.SECONDS_PER_HOUR,r=e/g.SECONDS_PER_MINUTE|0,u=0|(e-=r*g.SECONDS_PER_MINUTE),e=(e-u)/g.SECONDS_PER_MILLISECOND;return 23<(i+=12)&&(i-=24),n&&(u+=1),q.defined(t)?(t.year=a,t.month=s,t.day=o,t.hour=i,t.minute=r,t.second=u,t.millisecond=e,t.isLeapSecond=n,t):new Xt(a,s,o,i,r,u,e,n)},x.toDate=function(e){var e=x.toGregorianDate(e,Gt),t=e.second;return e.isLeapSecond&&--t,new Date(Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,t,e.millisecond))},x.toIso8601=function(e,t){var e=x.toGregorianDate(e,Gt),n=e.year,r=e.month,a=e.day,i=e.hour,s=e.minute,o=e.second,e=e.millisecond;return 1e4===n&&1===r&&1===a&&0===i&&0===s&&0===o&&0===e&&(n=9999,r=12,a=31,i=24),q.defined(t)||0===e?q.defined(t)&&0!==t?Zt("%04d-%02d-%02dT%02d:%02d:%02d.%sZ",n,r,a,i,s,o,(.01*e).toFixed(t).replace(".","").slice(0,t)):Zt("%04d-%02d-%02dT%02d:%02d:%02dZ",n,r,a,i,s,o):Zt("%04d-%02d-%02dT%02d:%02d:%02d.%sZ",n,r,a,i,s,o,(.01*e).toString().replace(".",""))},x.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new x(e.dayNumber,e.secondsOfDay,v.TAI)},x.compare=function(e,t){var n=e.dayNumber-t.dayNumber;return 0!=n?n:e.secondsOfDay-t.secondsOfDay},x.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay},x.equalsEpsilon=function(e,t,n){return n=q.defaultValue(n,0),e===t||q.defined(e)&&q.defined(t)&&Math.abs(x.secondsDifference(e,t))<=n},x.totalDays=function(e){return e.dayNumber+e.secondsOfDay/g.SECONDS_PER_DAY},x.secondsDifference=function(e,t){return(e.dayNumber-t.dayNumber)*g.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)},x.daysDifference=function(e,t){return e.dayNumber-t.dayNumber+(e.secondsOfDay-t.secondsOfDay)/g.SECONDS_PER_DAY},x.computeTaiMinusUtc=function(e){$t.julianDate=e;var e=x.leapSeconds,t=Yt(e,$t,Kt);return e[t=t<0&&(t=~t,--t<0)?0:t].offset},x.addSeconds=function(e,t,n){return nn(e.dayNumber,e.secondsOfDay+t,n)},x.addMinutes=function(e,t,n){t=e.secondsOfDay+t*g.SECONDS_PER_MINUTE;return nn(e.dayNumber,t,n)},x.addHours=function(e,t,n){t=e.secondsOfDay+t*g.SECONDS_PER_HOUR;return nn(e.dayNumber,t,n)},x.addDays=function(e,t,n){return nn(e.dayNumber+t,e.secondsOfDay,n)},x.lessThan=function(e,t){return x.compare(e,t)<0},x.lessThanOrEquals=function(e,t){return x.compare(e,t)<=0},x.greaterThan=function(e,t){return 0<x.compare(e,t)},x.greaterThanOrEquals=function(e,t){return 0<=x.compare(e,t)},x.prototype.clone=function(e){return x.clone(this,e)},x.prototype.equals=function(e){return x.equals(this,e)},x.prototype.equalsEpsilon=function(e,t){return x.equalsEpsilon(this,e,t)},x.prototype.toString=function(){return x.toIso8601(this)},x.leapSeconds=[new w(new x(2441317,43210,v.TAI),10),new w(new x(2441499,43211,v.TAI),11),new w(new x(2441683,43212,v.TAI),12),new w(new x(2442048,43213,v.TAI),13),new w(new x(2442413,43214,v.TAI),14),new w(new x(2442778,43215,v.TAI),15),new w(new x(2443144,43216,v.TAI),16),new w(new x(2443509,43217,v.TAI),17),new w(new x(2443874,43218,v.TAI),18),new w(new x(2444239,43219,v.TAI),19),new w(new x(2444786,43220,v.TAI),20),new w(new x(2445151,43221,v.TAI),21),new w(new x(2445516,43222,v.TAI),22),new w(new x(2446247,43223,v.TAI),23),new w(new x(2447161,43224,v.TAI),24),new w(new x(2447892,43225,v.TAI),25),new w(new x(2448257,43226,v.TAI),26),new w(new x(2448804,43227,v.TAI),27),new w(new x(2449169,43228,v.TAI),28),new w(new x(2449534,43229,v.TAI),29),new w(new x(2450083,43230,v.TAI),30),new w(new x(2450630,43231,v.TAI),31),new w(new x(2451179,43232,v.TAI),32),new w(new x(2453736,43233,v.TAI),33),new w(new x(2454832,43234,v.TAI),34),new w(new x(2456109,43235,v.TAI),35),new w(new x(2457204,43236,v.TAI),36),new w(new x(2457754,43237,v.TAI),37)],d.prototype.scheme=null,d.prototype.authority=null,d.prototype.path="",d.prototype.query=null,d.prototype.fragment=null;var pn=new RegExp("^(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\\?([^#]*))?(?:#(.*))?$"),mn=(d.prototype.getScheme=function(){return this.scheme},d.prototype.getAuthority=function(){return this.authority},d.prototype.getPath=function(){return this.path},d.prototype.getQuery=function(){return this.query},d.prototype.getFragment=function(){return this.fragment},d.prototype.isAbsolute=function(){return!!this.scheme&&!this.fragment},d.prototype.isSameDocumentAs=function(e){return e.scheme==this.scheme&&e.authority==this.authority&&e.path==this.path&&e.query==this.query},d.prototype.equals=function(e){return this.isSameDocumentAs(e)&&e.fragment==this.fragment},d.prototype.normalize=function(){this.removeDotSegments(),this.scheme&&(this.scheme=this.scheme.toLowerCase()),this.authority&&(this.authority=this.authority.replace(An,wn).replace(mn,Cn)),this.path&&(this.path=this.path.replace(mn,Cn)),this.query&&(this.query=this.query.replace(mn,Cn)),this.fragment&&(this.fragment=this.fragment.replace(mn,Cn))},/%[0-9a-z]{2}/gi),yn=/[a-zA-Z0-9\-\._~]/,An=/(.*@)?([^@:]*)(:.*)?/;function Cn(e){var t=unescape(e);return yn.test(t)?t:e.toUpperCase()}function wn(e,t,n,r){return(t||"")+n.toLowerCase()+(r||"")}function gn(e,t){if(null===e||"object"!=typeof e)return e;t=q.defaultValue(t,!1);var n,r,a=new e.constructor;for(n in e)e.hasOwnProperty(n)&&(r=e[n],t&&(r=gn(r,t)),a[n]=r);return a}function vn(e,t){var n;return"undefined"!=typeof document&&(n=document),vn._implementation(e,t,n)}d.prototype.resolve=function(e){var t=new d;return this.scheme?(t.scheme=this.scheme,t.authority=this.authority,t.path=this.path,t.query=this.query):(t.scheme=e.scheme,this.authority?(t.authority=this.authority,t.path=this.path,t.query=this.query):(t.authority=e.authority,""==this.path?(t.path=e.path,t.query=this.query||e.query):("/"==this.path.charAt(0)?t.path=this.path:e.authority&&""==e.path?t.path="/"+this.path:t.path=e.path.substring(0,e.path.lastIndexOf("/")+1)+this.path,t.removeDotSegments(),t.query=this.query))),t.fragment=this.fragment,t},d.prototype.removeDotSegments=function(){var e,t=this.path.split("/"),n=[],r=""==t[0];for(r&&t.shift(),""==t[0]&&t.shift();t.length;)".."==(e=t.shift())?n.pop():"."!=e&&n.push(e);"."!=e&&".."!=e||n.push(""),r&&n.unshift(""),this.path=n.join("/")},d.prototype.toString=function(){var e="";return this.scheme&&(e+=this.scheme+":"),this.authority&&(e+="//"+this.authority),e+=this.path,this.query&&(e+="?"+this.query),this.fragment&&(e+="#"+this.fragment),e},vn._implementation=function(e,t,n){if(!q.defined(t)){if(void 0===n)return e;t=q.defaultValue(n.baseURI,n.location.href)}n=new d(t);return new d(e).resolve(n).toString()};var f,xn=/^blob:/i;function En(e){return xn.test(e)}var On=/^data:/i;function Sn(e){return On.test(e)}var h=Object.freeze({UNISSUED:0,ISSUED:1,ACTIVE:2,RECEIVED:3,CANCELLED:4,FAILED:5}),_n=Object.freeze({TERRAIN:0,IMAGERY:1,TILES3D:2,OTHER:3});function bn(e){e=q.defaultValue(e,q.defaultValue.EMPTY_OBJECT);var t=q.defaultValue(e.throttleByServer,!1),n=q.defaultValue(e.throttle,!1);this.url=e.url,this.requestFunction=e.requestFunction,this.cancelFunction=e.cancelFunction,this.priorityFunction=e.priorityFunction,this.priority=q.defaultValue(e.priority,0),this.throttle=n,this.throttleByServer=t,this.type=q.defaultValue(e.type,_n.OTHER),this.serverKey=void 0,this.state=h.UNISSUED,this.deferred=void 0,this.cancelled=!1}function Rn(e,t,n){this.statusCode=e,this.response=t,this.responseHeaders=n,"string"==typeof this.responseHeaders&&(this.responseHeaders=function(e){var t={};if(e)for(var n=e.split("\r\n"),r=0;r<n.length;++r){var a,i=n[r],s=i.indexOf(": ");0<s&&(a=i.substring(0,s),i=i.substring(s+2),t[a]=i)}return t}(this.responseHeaders))}function Mn(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}function qn(e,t){return t-e}function Tn(e){this._comparator=e.comparator,this._array=[],this._length=0,this._maximumLength=void 0}function In(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}bn.prototype.cancel=function(){this.cancelled=!0},bn.prototype.clone=function(e){return q.defined(e)?(e.url=this.url,e.requestFunction=this.requestFunction,e.cancelFunction=this.cancelFunction,e.priorityFunction=this.priorityFunction,e.priority=this.priority,e.throttle=this.throttle,e.throttleByServer=this.throttleByServer,e.type=this.type,e.serverKey=this.serverKey,e.state=this.RequestState.UNISSUED,e.deferred=void 0,e.cancelled=!1,e):new bn(this)},Rn.prototype.toString=function(){var e="Request has failed.";return q.defined(this.statusCode)&&(e+=" Status Code: "+this.statusCode),e},Object.defineProperties(Mn.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}}),Mn.prototype.addEventListener=function(e,t){this._listeners.push(e),this._scopes.push(t);var n=this;return function(){n.removeEventListener(e,t)}},Mn.prototype.removeEventListener=function(e,t){for(var n=this._listeners,r=this._scopes,a=-1,i=0;i<n.length;i++)if(n[i]===e&&r[i]===t){a=i;break}return-1!==a&&(this._insideRaiseEvent?(this._toRemove.push(a),n[a]=void 0,r[a]=void 0):(n.splice(a,1),r.splice(a,1)),!0)},Mn.prototype.raiseEvent=function(){this._insideRaiseEvent=!0;for(var e=this._listeners,t=this._scopes,n=e.length,r=0;r<n;r++){var a=e[r];q.defined(a)&&e[r].apply(t[r],arguments)}var i=this._toRemove;if(0<(n=i.length)){for(i.sort(qn),r=0;r<n;r++){var s=i[r];e.splice(s,1),t.splice(s,1)}i.length=0}this._insideRaiseEvent=!1},Object.defineProperties(Tn.prototype,{length:{get:function(){return this._length}},internalArray:{get:function(){return this._array}},maximumLength:{get:function(){return this._maximumLength},set:function(e){var t=this._length;if(e<t){for(var n=this._array,r=e;r<t;++r)n[r]=void 0;this._length=e,n.length=e}this._maximumLength=e}},comparator:{get:function(){return this._comparator}}}),Tn.prototype.reserve=function(e){e=q.defaultValue(e,this._length),this._array.length=e},Tn.prototype.heapify=function(e){e=q.defaultValue(e,0);for(var t=this._length,n=this._comparator,r=this._array,a=-1,i=!0;i;){var s=2*(e+1),o=s-1,a=o<t&&n(r[o],r[e])<0?o:e;(a=s<t&&n(r[s],r[a])<0?s:a)!==e?(In(r,a,e),e=a):i=!1}},Tn.prototype.resort=function(){for(var e=this._length,t=Math.ceil(e/2);0<=t;--t)this.heapify(t)},Tn.prototype.insert=function(e){var t,n=this._array,r=this._comparator,a=this._maximumLength,i=this._length++;for(i<n.length?n[i]=e:n.push(e);0!==i;){var s=Math.floor((i-1)/2);if(!(r(n[i],n[s])<0))break;In(n,i,s),i=s}return q.defined(a)&&this._length>a&&(t=n[a],this._length=a),t},Tn.prototype.pop=function(e){var t,n;if(e=q.defaultValue(e,0),0!==this._length)return n=(t=this._array)[e],In(t,e,--this._length),this.heapify(e),t[this._length]=void 0,n};var p={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0},zn=20,m=new Tn({comparator:function(e,t){return e.priority-t.priority}}),y=(m.maximumLength=zn,m.reserve(zn),[]),Un={},Dn="undefined"!=typeof document?new d(document.location.href):new d,Pn=new Mn;function A(){}function Nn(e){q.defined(e.priorityFunction)&&(e.priority=e.priorityFunction())}function Vn(e){return e.state===h.UNISSUED&&(e.state=h.ISSUED,e.deferred=q.when.defer()),e.deferred.promise}function Fn(e){var t,n,r=Vn(e);return e.state=h.ACTIVE,y.push(e),++p.numberOfActiveRequests,++p.numberOfActiveRequestsEver,++Un[e.serverKey],e.requestFunction().then((n=e,function(e){var t;n.state!==h.CANCELLED&&(t=n.deferred,--p.numberOfActiveRequests,--Un[n.serverKey],Pn.raiseEvent(),n.state=h.RECEIVED,n.deferred=void 0,t.resolve(e))})).otherwise((t=e,function(e){t.state!==h.CANCELLED&&(++p.numberOfFailedRequests,--p.numberOfActiveRequests,--Un[t.serverKey],Pn.raiseEvent(e),t.state=h.FAILED,t.deferred.reject(e))})),r}function Bn(e){var t,n=e.state===h.ACTIVE;e.state=h.CANCELLED,++p.numberOfCancelledRequests,q.defined(e.deferred)&&(t=e.deferred,e.deferred=void 0,t.reject()),n&&(--p.numberOfActiveRequests,--Un[e.serverKey],++p.numberOfCancelledActiveRequests),q.defined(e.cancelFunction)&&e.cancelFunction()}A.maximumRequests=50,A.maximumRequestsPerServer=6,A.requestsByServer={"api.cesium.com:443":18,"assets.cesium.com:443":18},A.throttleRequests=!0,A.debugShowStatistics=!1,A.requestCompletedEvent=Pn,Object.defineProperties(A,{statistics:{get:function(){return p}},priorityHeapLength:{get:function(){return zn},set:function(e){if(e<zn)for(;m.length>e;)Bn(m.pop());zn=e,m.maximumLength=e,m.reserve(e)}}}),A.serverHasOpenSlots=function(e,t){t=q.defaultValue(t,1);var n=q.defaultValue(A.requestsByServer[e],A.maximumRequestsPerServer);return Un[e]+t<=n},A.heapHasOpenSlots=function(e){return m.length+e<=zn},A.update=function(){for(var e,t=0,n=y.length,r=0;r<n;++r)(e=y[r]).cancelled&&Bn(e),e.state!==h.ACTIVE?++t:0<t&&(y[r-t]=e);y.length-=t;var a=m.internalArray,i=m.length;for(r=0;r<i;++r)Nn(a[r]);m.resort();for(var s=Math.max(A.maximumRequests-y.length,0),o=0;o<s&&0<m.length;)(e=m.pop()).cancelled||e.throttleByServer&&!A.serverHasOpenSlots(e.serverKey)?Bn(e):(Fn(e),++o);A.debugShowStatistics&&(0===p.numberOfActiveRequests&&0<p.lastNumberOfActiveRequests&&(0<p.numberOfAttemptedRequests&&(console.log("Number of attempted requests: "+p.numberOfAttemptedRequests),p.numberOfAttemptedRequests=0),0<p.numberOfCancelledRequests&&(console.log("Number of cancelled requests: "+p.numberOfCancelledRequests),p.numberOfCancelledRequests=0),0<p.numberOfCancelledActiveRequests&&(console.log("Number of cancelled active requests: "+p.numberOfCancelledActiveRequests),p.numberOfCancelledActiveRequests=0),0<p.numberOfFailedRequests)&&(console.log("Number of failed requests: "+p.numberOfFailedRequests),p.numberOfFailedRequests=0),p.lastNumberOfActiveRequests=p.numberOfActiveRequests)},A.getServerKey=function(e){var e=new d(e).resolve(Dn),t=(e.normalize(),e.authority),e=(/:/.test(t)||(t=t+":"+("https"===e.scheme?"443":"80")),Un[t]);return q.defined(e)||(Un[t]=0),t},A.request=function(e){if(Sn(e.url)||En(e.url))return Pn.raiseEvent(),e.state=h.RECEIVED,e.requestFunction();if(++p.numberOfAttemptedRequests,q.defined(e.serverKey)||(e.serverKey=A.getServerKey(e.url)),!A.throttleRequests||!e.throttleByServer||A.serverHasOpenSlots(e.serverKey)){if(!A.throttleRequests||!e.throttle)return Fn(e);if(!(y.length>=A.maximumRequests)){Nn(e);var t=m.insert(e);if(q.defined(t)){if(t===e)return;Bn(t)}return Vn(e)}}},A.clearForSpecs=function(){for(;0<m.length;)Bn(m.pop());for(var e=y.length,t=0;t<e;++t)Bn(y[t]);y.length=0,Un={},p.numberOfAttemptedRequests=0,p.numberOfActiveRequests=0,p.numberOfCancelledRequests=0,p.numberOfCancelledActiveRequests=0,p.numberOfFailedRequests=0,p.numberOfActiveRequestsEver=0,p.lastNumberOfActiveRequests=0},A.numberOfActiveRequestsByServer=function(e){return Un[e]},A.requestHeap=m;var Ln={},kn={};function Wn(){}function C(){}Ln.add=function(e,t){e=e.toLowerCase()+":"+t;q.defined(kn[e])||(kn[e]=!0)},Ln.remove=function(e,t){e=e.toLowerCase()+":"+t;q.defined(kn[e])&&delete kn[e]},Ln.contains=function(e){e=function(e){(e=new d(e)).normalize();var t=e.getAuthority();if(q.defined(t)){if(-1===(t=-1!==t.indexOf("@")?t.split("@")[1]:t).indexOf(":")){e=e.getScheme();if("http"===(e=q.defined(e)?e:(e=window.location.protocol).substring(0,e.length-1)))t+=":80";else{if("https"!==e)return;t+=":443"}}return t}}(e);return!(!q.defined(e)||!q.defined(kn[e]))},Ln.clear=function(){kn={}},Wn.getBaseUrlAndParams=function(e){var t,n=[],e=e.split("?");if(0===e.length)throw new Error("url传入不合法");return 1===e.length?t=e[0]:(t=e[0],n=e[1].split("&").map(function(e){var t=[],n=/(\w+)=(\w+='[^']+')/;return e.match(n)?(t[0]=e.match(n)[1],t[1]=e.match(n)[2]):t=e.split("="),{key:t[0],value:t[1]}}),3<=e.length&&console.err("url有多个'?'连接符,不合法")),{baseUrl:t,params:n}},Wn.spliceBaseUrlAndParams=function(t,e){return 0!==e.length&&(-1<t.indexOf("?")?e.forEach(function(e){t=t+"&"+e.key+"="+e.value}):(t=t+"?"+e[0].key+"="+e[0].value,e.splice(0,1),e.forEach(function(e){t=t+"&"+e.key+"="+e.value}))),t},Wn.getBaseUrlFromQAndSlash=function(e){var t,n,r=e.indexOf("?"),a=e.indexOf("/",r),i=e.indexOf("?",a);return-1!==r&&-1!==a&&-1!==i?(t=e.substring(r+1,a),n=e.substring(a),e.substring(0,r)+n+"&"+t):-1!==r&&-1!==a&&-1===i?(t=e.substring(r+1,a),n=e.substring(a),e.substring(0,r)+n+"?"+t):e},Wn.getBaseUrlFromQAndQ=function(e){return e.replace(/\?(.*?)(\?)(.*)/,"?$3&$1")},Wn.correctUrl=function(e){var t,n,r,a,i,s=e.match(/\?/g);if(!s)return a=e;if(1===s.length||2===s.length){if(3!==(e=e.match(/^(.*?)(\?.*)$/)).length)throw new Error("传入url不符合标准规范,请检查");if(t=e[1],i=(e=e[2]).match(/\/([^&^?]+)/),i=-1<e.indexOf("://")?null:i){if(!(i=i[0]))throw new Error("传入url不符合标准规范,请检查");n=t+i,i=e.replace(i,""),r=1===s.length?i:i.replace(/\?(?!.*\?)/,"&")}else n=t,r=1===s.length?e:e.replace(/\?(?!.*\?)/,"&");a=n+r}if(2<s.length)throw new Error("传入url不符合标准规范,请检查");return a},C.ServiceConfigRequestInterceptors=function(e,t){t=q.defaultValue(t,"");var n=e.request.interceptors,r=decodeURI(t);if(n&&n instanceof Array)for(var a="",i=0;i<n.length;i++){var s,o,u=n[i].urls,l=n[i].before;if(u){if("string"==typeof u)o=decodeURI(u),-1<r.indexOf(o)&&l&&l instanceof Function&&(s=l(t))&&(a+=s);else if(u instanceof Array)for(var c=0;c<u.length;c++)o=decodeURI(u[c]),-1<r.indexOf(o)&&l&&l instanceof Function&&(s=l(t))&&(a+=s)}else l&&l instanceof Function&&(s=l(t))&&(a+=s);a&&(t=a)}return t},C.ServiceConfigResponseInterceptors=function(e,t,n){if(t=q.defaultValue(t,""),e&&e.request&&e.request.interceptors){var r=e.request.interceptors,a=decodeURI(t);if(r&&r instanceof Array)for(var i=0;i<r.length;i++){var s,o,u=r[i].urls,l=r[i].after;if(!u||u instanceof Array&&0===u.length){if(l&&l instanceof Function&&(s=l(n)))return s}else if("string"==typeof u){if(o=decodeURI(u),-1<a.indexOf(o)&&l&&l instanceof Function&&(s=l(n)))return s}else if(u instanceof Array)for(var c=0;c<u.length;c++)if(o=decodeURI(u[c]),-1<a.indexOf(o)&&l&&l instanceof Function&&(s=l(n)))return s}return n}},C.ServiceConfigToken=function(e){var t="";return t=e&&e.tokenKey&&e.tokenValue?e.tokenKey+"="+e.tokenValue:t},C.AnalysisConfigToUrl=function(e,t){return e&&e.tokenKey&&e.tokenValue&&(-1<t.indexOf("?")?t+="&"+C.ServiceConfigToken(e):t+="?"+C.ServiceConfigToken(e)),t=e&&e.request&&e.request.interceptors?C.ServiceConfigRequestInterceptors(e,t):t};function jn(e){jn.instance={tokenKey:e.tokenKey,tokenValue:e.tokenValue,headers:e.headers,request:e.request}}var Yn,Hn=function(){try{var e=new XMLHttpRequest;return e.open("GET","#",!0),(e.responseType="blob")===e.responseType}catch(e){return!1}}();function Zn(e,t,n,r){var a,i=e.query;q.defined(i)&&0!==i.length&&(a=-1===i.indexOf("=")?((a={})[i]=void 0,a):function(e){var t={};if(""!==e)for(var n=e.replace(/\+/g,"%20").split(/[&]/),r=0,a=n.length;r<a;++r){var i=n[r].indexOf("="),s=n[r].substring(0,i),s=decodeURIComponent(s),i=n[r].substring(i+1,n[r].length),i=q.defined(i)?decodeURIComponent(i):"",o=t[s];"string"==typeof o?t[s]=[o,i]:Array.isArray(o)?o.push(i):t[s]=i}return t}(i),t._queryParameters=n?Gn(a,t._queryParameters,r):a,e.query=void 0)}function Xn(e,t){var t=t._queryParameters,n=Object.keys(t);1!==n.length||q.defined(t[n[0]])?e.query=function(e){var t,n="";for(t in e)if(e.hasOwnProperty(t)){var r=e[t],a=encodeURIComponent(t)+"=";if(Array.isArray(r))for(var i=0,s=r.length;i<s;++i)n+=a+encodeURIComponent(r[i])+"&";else n+=a+encodeURIComponent(r)+"&"}return n=n.slice(0,-1)}(t):e.query=n[0]}function E(e,t){return q.defined(e)?q.defined(e.clone)?e.clone():gn(e):t}function Jn(e){if(e.state===h.ISSUED||e.state===h.ACTIVE)throw new W.RuntimeError("The Resource is already being fetched.");e.state=h.UNISSUED,e.deferred=void 0}function Gn(e,t,n){if(!n)return R.combine(e,t);var r,a,i,s=gn(e,!0);for(r in t)t.hasOwnProperty(r)&&(a=s[r],i=t[r],q.defined(a)?(Array.isArray(a)||(a=s[r]=[a]),s[r]=a.concat(i)):s[r]=Array.isArray(i)?i.slice():i);return s}function O(e){"string"==typeof(e=q.defaultValue(e,q.defaultValue.EMPTY_OBJECT))&&(e={url:e}),this._url=void 0,this._templateValues=E(e.templateValues,{}),this._queryParameters=E(e.queryParameters,{}),this.headers=E(e.headers,{}),this.request=q.defaultValue(e.request,new bn),this.proxy=e.proxy,this.retryCallback=e.retryCallback,this.retryAttempts=q.defaultValue(e.retryAttempts,0),this._retryCount=0,e.url=Wn.correctUrl(e.url);e=new d(e.url);Zn(e,this,!0,!0),e.fragment=void 0,this._url=e.toString()}function Qn(e){var n=e.resource,r=e.flipY,a=e.skipColorSpaceConversion,i=e.preferImageBitmap,s=n.request,e=(s.url=n.url,s.requestFunction=function(){var e=!1,t=(n.isDataUri||n.isBlobUri||(e=n.isCrossOriginUrl),q.when.defer());return O._Implementations.createImage(s,e,t,r,a,i),t.promise},A.request(s));if(q.defined(e))return e.otherwise(function(t){return s.state!==h.FAILED?q.when.reject(t):n.retryOnError(t).then(function(e){return e?(s.state=h.UNISSUED,s.deferred=void 0,Qn({resource:n,flipY:r,skipColorSpaceConversion:a,preferImageBitmap:i})):q.when.reject(t)})})}O.createIfNeeded=function(e){return e instanceof O?e.getDerivedResource({request:e.request}):"string"!=typeof e?e:new O({url:e})},O.supportsImageBitmapOptions=function(){if(!q.defined(Yn)){if("function"!=typeof createImageBitmap)return Yn=q.when.resolve(!1);Yn=O.fetchBlob({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWP4////fwAJ+wP9CNHoHgAAAABJRU5ErkJggg=="}).then(function(e){return createImageBitmap(e,{imageOrientation:"flipY",premultiplyAlpha:"none",colorSpaceConversion:"none"})}).then(function(e){return!0}).otherwise(function(){return!1})}return Yn},Object.defineProperties(O,{isBlobSupported:{get:function(){return Hn}}}),Object.defineProperties(O.prototype,{queryParameters:{get:function(){return this._queryParameters}},templateValues:{get:function(){return this._templateValues}},url:{get:function(){return this.getUrlComponent(!0,!0)},set:function(e){e=new d(e=Wn.correctUrl(e));Zn(e,this,!1),e.fragment=void 0,this._url=e.toString()}},extension:{get:function(){return(e=new d(e=this._url)).normalize(),e=-1===(t=(e=-1!==(t=(e=e.path).lastIndexOf("/"))?e.substr(t+1):e).lastIndexOf("."))?"":e.substr(t+1);var e,t}},isDataUri:{get:function(){return Sn(this._url)}},isBlobUri:{get:function(){return En(this._url)}},isCrossOriginUrl:{get:function(){return e=this._url,(f=q.defined(f)?f:document.createElement("a")).href=window.location.href,t=f.host,n=f.protocol,f.href=e,f.href=f.href,n!==f.protocol||t!==f.host;var e,t,n}},hasHeaders:{get:function(){return 0<Object.keys(this.headers).length}}}),O.prototype.toString=function(){return this.getUrlComponent(!0,!0)},O.prototype.getUrlComponent=function(e,t){var n,r;return this.isDataUri?this._url:(n=new d(this._url),e&&Xn(n,this),e=-1<n.path.indexOf("/igs/rest/mrcs/docs/")||-1<n.path.indexOf("/igs/rest/mrfs/docs/")||-1<n.path.indexOf("/igs/rest/mrfs/layer/query")?n.toString():n.toString().replace(/%7B/g,"{").replace(/%7D/g,"}"),r=this._templateValues,e=e.replace(/{(.*?)}/g,function(e,t){t=r[t];return q.defined(t)?encodeURIComponent(t):e}),t&&q.defined(this.proxy)?this.proxy.getURL(e):e)},O.prototype.setQueryParameters=function(e,t){this._queryParameters=t?Gn(this._queryParameters,e,!1):Gn(e,this._queryParameters,!1)},O.prototype.appendQueryParameters=function(e){this._queryParameters=Gn(e,this._queryParameters,!0)},O.prototype.setTemplateValues=function(e,t){this._templateValues=t?R.combine(this._templateValues,e):R.combine(e,this._templateValues)},O.prototype.getDerivedResource=function(e){var t,n=this.clone();return n._retryCount=0,q.defined(e.url)&&(e.url=Wn.correctUrl(e.url),Zn(t=new d(e.url),n,!0,q.defaultValue(e.preserveQueryParameters,!1)),t.fragment=void 0,n._url=t.resolve(new d(vn(this._url))).toString()),q.defined(e.queryParameters)&&(n._queryParameters=R.combine(e.queryParameters,n._queryParameters)),q.defined(e.templateValues)&&(n._templateValues=R.combine(e.templateValues,n.templateValues)),q.defined(e.headers)&&(n.headers=R.combine(e.headers,n.headers)),q.defined(e.proxy)&&(n.proxy=e.proxy),q.defined(e.request)&&(n.request=e.request),q.defined(e.retryCallback)&&(n.retryCallback=e.retryCallback),q.defined(e.retryAttempts)&&(n.retryAttempts=e.retryAttempts),n},O.prototype.retryOnError=function(e){var t,n=this.retryCallback;return"function"!=typeof n||this._retryCount>=this.retryAttempts?q.when(!1):q.when(n(t=this,e)).then(function(e){return++t._retryCount,e})},O.prototype.clone=function(e){return(e=q.defined(e)?e:new O({url:this._url}))._url=this._url,e._queryParameters=gn(this._queryParameters),e._templateValues=gn(this._templateValues),e.headers=gn(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e},O.prototype.getBaseUri=function(e){return t=this.getUrlComponent(e),e=e,n="",-1!==(r=t.lastIndexOf("/"))&&(n=t.substring(0,r+1)),e&&(t=new d(t),q.defined(t.query)&&(n+="?"+t.query),q.defined(t.fragment))&&(n+="#"+t.fragment),n;var t,n,r},O.prototype.appendForwardSlash=function(){var e;this._url=(0!==(e=this._url).length&&"/"===e[e.length-1]||(e+="/"),e)},O.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})},O.fetchArrayBuffer=function(e){return new O(e).fetchArrayBuffer()},O.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})},O.fetchBlob=function(e){return new O(e).fetchBlob()},O.prototype.fetchImage=function(e){e=q.defaultValue(e,q.defaultValue.EMPTY_OBJECT);var t,n,r,a,i=q.defaultValue(e.preferImageBitmap,!1),s=q.defaultValue(e.preferBlob,!1),o=q.defaultValue(e.flipY,!1),u=q.defaultValue(e.skipColorSpaceConversion,!1);return Jn(this.request),!Hn||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!s?Qn({resource:this,flipY:o,skipColorSpaceConversion:u,preferImageBitmap:i}):(t=this.fetchBlob(),q.defined(t)?O.supportsImageBitmapOptions().then(function(e){return n=e&&i,t}).then(function(e){if(q.defined(e))return a=e,n?1===e.size?Qn({resource:r=new O({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEVSURBVHhe7cExAQAAAMKg9U/tawggAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABODQE8AAH/Cno5AAAAAElFTkSuQmCC"}),flipY:o,preferImageBitmap:!1}):O.createImageBitmapFromBlob(e,{flipY:o,premultiplyAlpha:!1,skipColorSpaceConversion:u}):(e=window.URL.createObjectURL(e),Qn({resource:r=new O({url:e}),flipY:o,skipColorSpaceConversion:u,preferImageBitmap:!1}))}).then(function(e){if(q.defined(e))return e.blob=a,n||window.URL.revokeObjectURL(r.url),e}).otherwise(function(e){return q.defined(r)&&window.URL.revokeObjectURL(r.url),e.blob=a,q.when.reject(e)}):void 0)},O.fetchImage=function(e){return new O(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})},O.prototype.fetchText=function(){return this.fetch({responseType:"text"})},O.fetchText=function(e){return new O(e).fetchText()},O.prototype.fetchJson=function(){var e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if(q.defined(e))return e.then(function(e){if(q.defined(e))return JSON.parse(e)})},O.fetchJson=function(e){return new O(e).fetchJson()},O.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})},O.fetchXML=function(e){return new O(e).fetchXML()},O.prototype.fetchJsonp=function(e){var t;for(e=q.defaultValue(e,"callback"),Jn(this.request);t="loadJsonp"+Math.random().toString().substring(2,8),q.defined(window[t]););return function n(r,a,i){var e={};e[a]=i;r.setQueryParameters(e);var s=r.request;s.url=r.url;s.requestFunction=function(){var t=q.when.defer();return window[i]=function(e){t.resolve(e);try{delete window[i]}catch(e){window[i]=void 0}},O._Implementations.loadAndExecuteScript(r.url,i,t),t.promise};e=A.request(s);if(!q.defined(e))return;return e.otherwise(function(t){return s.state!==h.FAILED?q.when.reject(t):r.retryOnError(t).then(function(e){return e?(s.state=h.UNISSUED,s.deferred=void 0,n(r,a,i)):q.when.reject(t)})})}(this,e,t)},O.fetchJsonp=function(e){return new O(e).fetchJsonp(e.callbackParameterName)},O.prototype._makeRequest=function(o){var u=this,l=(Jn(u.request),u.request),e=(l.url=u.url,l.requestFunction=function(){var e=o.responseType,t=R.combine(o.headers,u.headers),n=o.overrideMimeType,r=o.method,a=o.data,i=q.when.defer(),s=O._Implementations.loadWithXhr(u.url,e,r,a,t,i,n);return q.defined(s)&&q.defined(s.abort)&&(l.cancelFunction=function(){s.abort()}),i.promise},A.request(l));if(q.defined(e))return e.then(function(e){return l.cancelFunction=void 0,e}).otherwise(function(t){return l.cancelFunction=void 0,l.state!==h.FAILED?q.when.reject(t):u.retryOnError(t).then(function(e){return e?(l.state=h.UNISSUED,l.deferred=void 0,u.fetch(o)):q.when.reject(t)})})};var Kn=/^data:(.*?)(;base64)?,(.*)$/;function $n(e,t){t=decodeURIComponent(t);return e?atob(t):t}function er(e,t){for(var n=$n(e,t),e=new ArrayBuffer(n.length),r=new Uint8Array(e),a=0;a<n.length;a++)r[a]=n.charCodeAt(a);return e}function tr(e,t){switch(t){case"text":return e.toString("utf8");case"json":return JSON.parse(e.toString("utf8"));default:return new Uint8Array(e).buffer}}O.prototype.fetch=function(e){return(e=E(e,{})).method="GET",this._makeRequest(e)},O.fetch=function(e){return new O(e).fetch({responseType:e.responseType,overrideMimeType:e.overrideMimeType})},O.prototype.delete=function(e){return(e=E(e,{})).method="DELETE",this._makeRequest(e)},O.delete=function(e){return new O(e).delete({responseType:e.responseType,overrideMimeType:e.overrideMimeType,data:e.data})},O.prototype.head=function(e){return(e=E(e,{})).method="HEAD",this._makeRequest(e)},O.head=function(e){return new O(e).head({responseType:e.responseType,overrideMimeType:e.overrideMimeType})},O.prototype.options=function(e){return(e=E(e,{})).method="OPTIONS",this._makeRequest(e)},O.options=function(e){return new O(e).options({responseType:e.responseType,overrideMimeType:e.overrideMimeType})},O.prototype.post=function(e,t){return o.Check.defined("data",e),(t=E(t,{})).method="POST",t.data=e,this._makeRequest(t)},O.post=function(e){return new O(e).post(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})},O.prototype.put=function(e,t){return o.Check.defined("data",e),(t=E(t,{})).method="PUT",t.data=e,this._makeRequest(t)},O.put=function(e){return new O(e).put(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})},O.prototype.patch=function(e,t){return o.Check.defined("data",e),(t=E(t,{})).method="PATCH",t.data=e,this._makeRequest(t)},O.patch=function(e){return new O(e).patch(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})},(O._Implementations={}).createImage=function(s,o,u,l,c,d){var f=s.url;O.supportsImageBitmapOptions().then(function(e){var t,n,r,a,i;if(e&&d)return e=q.defaultValue(s.httpMethod,"GET"),r=s.headers,a=q.when.defer(),i=O._Implementations.loadWithXhr(f,"blob",e,s.data,r,a,void 0,void 0,void 0),q.defined(i)&&q.defined(i.abort)&&(s.cancelFunction=function(){i.abort()}),a.promise.then(function(e){if(q.defined(e))return O.createImageBitmapFromBlob(e,{flipY:l,premultiplyAlpha:!1,skipColorSpaceConversion:c});u.reject(new W.RuntimeError("Successfully retrieved "+f+" but it contained no content."))}).then(u.resolve);e=f,r=o,t=u,(n=new Image).onload=function(){t.resolve(n)},n.onerror=function(e){t.reject(e)},r&&(Ln.contains(e)?n.crossOrigin="use-credentials":n.crossOrigin=""),n.src=e}).otherwise(u.reject)},O.createImageBitmapFromBlob=function(e,t){return o.Check.defined("options",t),o.Check.typeOf.bool("options.flipY",t.flipY),o.Check.typeOf.bool("options.premultiplyAlpha",t.premultiplyAlpha),o.Check.typeOf.bool("options.skipColorSpaceConversion",t.skipColorSpaceConversion),createImageBitmap(e,{imageOrientation:t.flipY?"flipY":"none",premultiplyAlpha:t.premultiplyAlpha?"premultiply":"none",colorSpaceConversion:t.skipColorSpaceConversion?"none":"default"})};var nr="undefined"==typeof XMLHttpRequest;function rr(e){var t,n;e=q.defaultValue(e,q.defaultValue.EMPTY_OBJECT),this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._downloadPromise=void 0,this._dataError=void 0,this._addNewLeapSeconds=q.defaultValue(e.addNewLeapSeconds,!0),q.defined(e.data)?ir(this,e.data):q.defined(e.url)?(t=O.createIfNeeded(e.url),(n=this)._downloadPromise=t.fetchJson().then(function(e){ir(n,e)}).otherwise(function(){n._dataError="An error occurred while retrieving the EOP data from the URL "+t.url+"."})):ir(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}function ar(e,t){return x.compare(e.julianDate,t)}function ir(e,t){if(q.defined(t.columnNames))if(q.defined(t.samples)){var n=t.columnNames.indexOf("modifiedJulianDateUtc"),r=t.columnNames.indexOf("xPoleWanderRadians"),a=t.columnNames.indexOf("yPoleWanderRadians"),i=t.columnNames.indexOf("ut1MinusUtcSeconds"),s=t.columnNames.indexOf("xCelestialPoleOffsetRadians"),o=t.columnNames.indexOf("yCelestialPoleOffsetRadians"),u=t.columnNames.indexOf("taiMinusUtcSeconds");if(n<0||r<0||a<0||i<0||s<0||o<0||u<0)e._dataError="Error in loaded EOP data: The columnNames property must include modifiedJulianDateUtc, xPoleWanderRadians, yPoleWanderRadians, ut1MinusUtcSeconds, xCelestialPoleOffsetRadians, yCelestialPoleOffsetRadians, and taiMinusUtcSeconds columns";else for(var l,c=e._samples=t.samples,d=e._dates=[],f=(e._dateColumn=n,e._xPoleWanderRadiansColumn=r,e._yPoleWanderRadiansColumn=a,e._ut1MinusUtcSecondsColumn=i,e._xCelestialPoleOffsetRadiansColumn=s,e._yCelestialPoleOffsetRadiansColumn=o,e._taiMinusUtcSecondsColumn=u,e._columnCount=t.columnNames.length,e._lastIndex=void 0,e._addNewLeapSeconds),h=0,p=c.length;h<p;h+=e._columnCount){var m,y,A=c[h+n],C=c[h+u],A=new x(A+g.MODIFIED_JULIAN_DATE_DIFFERENCE,C,v.TAI);d.push(A),f&&(C!==l&&q.defined(l)&&(y=Yt(m=x.leapSeconds,A,ar))<0&&(A=new w(A,C),m.splice(~y,0,A)),l=C)}}else e._dataError="Error in loaded EOP data: The samples property is required.";else e._dataError="Error in loaded EOP data: The columnNames property is required."}function sr(e,t,n,r,a){n*=r;a.xPoleWander=t[n+e._xPoleWanderRadiansColumn],a.yPoleWander=t[n+e._yPoleWanderRadiansColumn],a.xPoleOffset=t[n+e._xCelestialPoleOffsetRadiansColumn],a.yPoleOffset=t[n+e._yCelestialPoleOffsetRadiansColumn],a.ut1MinusUtc=t[n+e._ut1MinusUtcSecondsColumn]}function or(e,t,n){return t+e*(n-t)}function ur(e,t,n,r,a,i,s){var o,u,l,c,d=e._columnCount;i>t.length-1?(s.xPoleWander=0,s.yPoleWander=0,s.xPoleOffset=0,s.yPoleOffset=0,s.ut1MinusUtc=0):(o=t[a],t=t[i],o.equals(t)||r.equals(o)?sr(e,n,a,d,s):r.equals(t)?sr(e,n,i,d,s):(o=x.secondsDifference(r,o)/x.secondsDifference(t,o),u=n[(a=a*d)+e._ut1MinusUtcSecondsColumn],(.5<(l=(d=n[(i=i*d)+e._ut1MinusUtcSecondsColumn])-u)||l<-.5)&&(l=n[a+e._taiMinusUtcSecondsColumn])!==(c=n[i+e._taiMinusUtcSecondsColumn])&&(t.equals(r)?u=d:d-=c-l),s.xPoleWander=or(o,n[a+e._xPoleWanderRadiansColumn],n[i+e._xPoleWanderRadiansColumn]),s.yPoleWander=or(o,n[a+e._yPoleWanderRadiansColumn],n[i+e._yPoleWanderRadiansColumn]),s.xPoleOffset=or(o,n[a+e._xCelestialPoleOffsetRadiansColumn],n[i+e._xCelestialPoleOffsetRadiansColumn]),s.yPoleOffset=or(o,n[a+e._yCelestialPoleOffsetRadiansColumn],n[i+e._yCelestialPoleOffsetRadiansColumn]),s.ut1MinusUtc=or(o,u,d)))}function S(e,t,n){this.heading=q.defaultValue(e,0),this.pitch=q.defaultValue(t,0),this.roll=q.defaultValue(n,0)}O._Implementations.loadWithXhr=function(a,i,s,e,t,o,n){var u=jn.instance,r=Kn.exec(a),l=t||void 0;if(u&&u.headers&&(l=R.combine(l||{},u.headers)),null!==r)o.resolve(function(e,t){t=q.defaultValue(t,"");var n=e[1],r=!!e[2],a=e[3];switch(t){case"":case"text":return $n(r,a);case"arraybuffer":return er(r,a);case"blob":var i=er(r,a);return new Blob([i],{type:n});case"document":return(new DOMParser).parseFromString($n(r,a),n);case"json":return JSON.parse($n(r,a))}}(r,i));else{if(a=C.AnalysisConfigToUrl(u,a),!nr){var c,d,f,h=new XMLHttpRequest;if(Ln.contains(a)&&(h.withCredentials=!0),h.open(s,a,!0),q.defined(n)&&q.defined(h.overrideMimeType)&&h.overrideMimeType(n),q.defined(l))for(var p in l)l.hasOwnProperty(p)&&h.setRequestHeader(p,l[p]);q.defined(i)&&(h.responseType=i);var m=!1;return"string"==typeof a&&(m=0===a.indexOf("file://")||"undefined"!=typeof window&&"file://"===window.location.origin),h.onload=function(){if(!(h.status<200||300<=h.status)||m&&0===h.status){var e,n,t=h.response,r=h.responseType;if("HEAD"===s||"OPTIONS"===s)e=h.getAllResponseHeaders().trim().split(/[\r\n]+/),n={},e.forEach(function(e){var e=e.split(": "),t=e.shift();n[t]=e.join(": ")}),o.resolve(n),C.ServiceConfigResponseInterceptors(u,a,t);else if(204===h.status)o.resolve();else if(!q.defined(t)||q.defined(i)&&r!==i)if("json"===i&&"string"==typeof t)try{C.ServiceConfigResponseInterceptors(u,a,t),o.resolve(JSON.parse(t))}catch(e){o.reject(e)}else(""===r||"document"===r)&&q.defined(h.responseXML)&&h.responseXML.hasChildNodes()?(C.ServiceConfigResponseInterceptors(u,a,t),o.resolve(h.responseXML)):""!==r&&"text"!==r||!q.defined(h.responseText)?o.reject(new W.RuntimeError("Invalid XMLHttpRequest response type.")):(C.ServiceConfigResponseInterceptors(u,a,t),o.resolve(h.responseText));else o.resolve(t),C.ServiceConfigResponseInterceptors(u,a,t)}else o.reject(new Rn(h.status,h.response,h.getAllResponseHeaders()))},h.onerror=function(e){o.reject(new Rn)},h.send(e),h}t=a,c=i,r=s,n=l,d=o,e="https:"===(t=require("url").parse(t)).protocol?require("https"):require("http"),f=require("zlib"),t={protocol:t.protocol,hostname:t.hostname,port:t.port,path:t.path,query:t.query,method:r,headers:n},e.request(t).on("response",function(t){var n;t.statusCode<200||300<=t.statusCode?d.reject(new Rn(t.statusCode,t,t.headers)):(n=[],t.on("data",function(e){n.push(e)}),t.on("end",function(){var e=Buffer.concat(n);"gzip"===t.headers["content-encoding"]?f.gunzip(e,function(e,t){e?d.reject(new W.RuntimeError("Error decompressing response.")):d.resolve(tr(t,c))}):d.resolve(tr(e,c))}))}).on("error",function(e){d.reject(new Rn)}).end()}},O._Implementations.loadAndExecuteScript=function(e,t,n){return e=e,r=q.when.defer(),(a=document.createElement("script")).async=!0,a.src=e,i=document.getElementsByTagName("head")[0],a.onload=function(){a.onload=void 0,i.removeChild(a),r.resolve()},a.onerror=function(e){r.reject(e)},i.appendChild(a),r.promise.otherwise(n.reject);var r,a,i},(O._DefaultImplementations={}).createImage=O._Implementations.createImage,O._DefaultImplementations.loadWithXhr=O._Implementations.loadWithXhr,O._DefaultImplementations.loadAndExecuteScript=O._Implementations.loadAndExecuteScript,O.DEFAULT=Object.freeze(new O({url:"undefined"==typeof document?"":document.location.href.split("?")[0]})),rr.NONE=Object.freeze({getPromiseToLoad:function(){return q.when.resolve()},compute:function(e,t){return q.defined(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new Ht(0,0,0,0,0),t}}),rr.prototype.getPromiseToLoad=function(){return q.when(this._downloadPromise)},rr.prototype.compute=function(e,t){if(q.defined(this._samples)){if(q.defined(t)||(t=new Ht(0,0,0,0,0)),0===this._samples.length)t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0;else{var n=this._dates,r=this._lastIndex,a=0,i=0;if(q.defined(r)){var s=n[r],o=n[r+1],s=x.lessThanOrEquals(s,e),u=!q.defined(o),l=u||x.greaterThanOrEquals(o,e);if(s&&l)return a=r,!u&&o.equals(e)&&++a,ur(this,n,this._samples,e,a,i=a+1,t),t}s=Yt(n,e,x.compare,this._dateColumn);0<=s?(s<n.length-1&&n[s+1].equals(e)&&++s,i=a=s):(a=(i=~s)-1)<0&&(a=0),this._lastIndex=a,ur(this,n,this._samples,e,a,i,t)}return t}if(q.defined(this._dataError))throw new W.RuntimeError(this._dataError)},S.fromQuaternion=function(e,t){q.defined(t)||(t=new S);var n=2*(e.w*e.y-e.z*e.x),r=1-2*(e.x*e.x+e.y*e.y),a=2*(e.w*e.x+e.y*e.z),i=1-2*(e.y*e.y+e.z*e.z),e=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(e,i),t.roll=Math.atan2(a,r),t.pitch=-F.CesiumMath.asinClamped(n),t},S.fromDegrees=function(e,t,n,r){return(r=q.defined(r)?r:new S).heading=e*F.CesiumMath.RADIANS_PER_DEGREE,r.pitch=t*F.CesiumMath.RADIANS_PER_DEGREE,r.roll=n*F.CesiumMath.RADIANS_PER_DEGREE,r},S.clone=function(e,t){if(q.defined(e))return q.defined(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new S(e.heading,e.pitch,e.roll)},S.equals=function(e,t){return e===t||q.defined(e)&&q.defined(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll},S.equalsEpsilon=function(e,t,n,r){return e===t||q.defined(e)&&q.defined(t)&&F.CesiumMath.equalsEpsilon(e.heading,t.heading,n,r)&&F.CesiumMath.equalsEpsilon(e.pitch,t.pitch,n,r)&&F.CesiumMath.equalsEpsilon(e.roll,t.roll,n,r)},S.prototype.clone=function(e){return S.clone(this,e)},S.prototype.equals=function(e){return S.equals(this,e)},S.prototype.equalsEpsilon=function(e,t,n){return S.equalsEpsilon(this,e,t,n)},S.prototype.toString=function(){return"("+this.heading+", "+this.pitch+", "+this.roll+")"};var lr,cr,dr,fr=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;function hr(e){return"undefined"==typeof document?e:((lr=q.defined(lr)?lr:document.createElement("a")).href=e,lr.href=lr.href,lr.href)}function pr(){var e;return q.defined(cr)||(e="undefined"!=typeof CESIUM_BASE_URL?CESIUM_BASE_URL:"object"==typeof define&&q.defined(define.amd)&&!define.amd.toUrlUndefined&&q.defined(require.toUrl)?vn("..",Ar("Core/buildModuleUrl.js")):function(){for(var e=document.getElementsByTagName("script"),t=0,n=e.length;t<n;++t){var r=e[t].getAttribute("src"),r=fr.exec(r);if(null!==r)return r[1]}}(),(cr=new O({url:hr(e)})).appendForwardSlash()),cr}function mr(e){return hr(require.toUrl("../"+e))}function yr(e){return pr().getDerivedResource({url:e}).url}function Ar(e){return(dr=q.defined(dr)?dr:"object"==typeof define&&q.defined(define.amd)&&!define.amd.toUrlUndefined&&q.defined(require.toUrl)?mr:yr)(e)}function Cr(e,t,n){this.x=e,this.y=t,this.s=n}function wr(e){e=q.defaultValue(e,q.defaultValue.EMPTY_OBJECT),this._xysFileUrlTemplate=O.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=q.defaultValue(e.interpolationOrder,9),this._sampleZeroJulianEphemerisDate=q.defaultValue(e.sampleZeroJulianEphemerisDate,2442396.5),this._sampleZeroDateTT=new x(this._sampleZeroJulianEphemerisDate,0,v.TAI),this._stepSizeDays=q.defaultValue(e.stepSizeDays,1),this._samplesPerXysFile=q.defaultValue(e.samplesPerXysFile,1e3),this._totalSamples=q.defaultValue(e.totalSamples,27426),this._samples=new Array(3*this._totalSamples),this._chunkDownloadsInProgress=[];for(var t=this._interpolationOrder,n=this._denominators=new Array(t+1),r=this._xTable=new Array(t+1),a=Math.pow(this._stepSizeDays,t),i=0;i<=t;++i){n[i]=a,r[i]=i*this._stepSizeDays;for(var s=0;s<=t;++s)s!==i&&(n[i]*=i-s);n[i]=1/n[i]}this._work=new Array(t+1),this._coef=new Array(t+1)}Ar._cesiumScriptRegex=fr,Ar._buildModuleUrlFromBaseUrl=yr,Ar._clearBaseResource=function(){cr=void 0},Ar.setBaseUrl=function(e){cr=O.DEFAULT.getDerivedResource({url:e})},Ar.getCesiumBaseUrl=pr;var gr=new x(0,0,v.TAI);function vr(e,t,n){var r=gr;return r.dayNumber=t,r.secondsOfDay=n,x.daysDifference(r,e._sampleZeroDateTT)}function xr(s,o){var u,e;return s._chunkDownloadsInProgress[o]||(u=q.when.defer(),s._chunkDownloadsInProgress[o]=u,e=s._xysFileUrlTemplate,e=q.defined(e)?e.getDerivedResource({templateValues:{0:o}}):new O({url:Ar("Assets/IAU2006_XYS/IAU2006_XYS_"+o+".json")}),q.when(e.fetchJson(),function(e){s._chunkDownloadsInProgress[o]=!1;for(var t=s._samples,n=e.samples,r=o*s._samplesPerXysFile*3,a=0,i=n.length;a<i;++a)t[r+a]=n[a];u.resolve()}),u.promise)}wr.prototype.preload=function(e,t,n,r){for(var e=vr(this,e,t),t=vr(this,n,r),n=e/this._stepSizeDays-this._interpolationOrder/2|0,r=t/this._stepSizeDays-this._interpolationOrder/2|0+this._interpolationOrder,e=(r>=this._totalSamples&&(r=this._totalSamples-1),(n=n<0?0:n)/this._samplesPerXysFile|0),a=r/this._samplesPerXysFile|0,i=[],s=e;s<=a;++s)i.push(xr(this,s));return q.when.all(i)},wr.prototype.computeXysRadians=function(e,t,n){e=vr(this,e,t);if(!(e<0)){t=e/this._stepSizeDays|0;if(!(t>=this._totalSamples)){var r=this._interpolationOrder,a=t-(r/2|0),t=(a=a<0?0:a)+r,i=(t>=this._totalSamples&&(a=(t=this._totalSamples-1)-r)<0&&(a=0),!1),s=this._samples;if(q.defined(s[3*a])||(xr(this,a/this._samplesPerXysFile|0),i=!0),q.defined(s[3*t])||(xr(this,t/this._samplesPerXysFile|0),i=!0),!i){q.defined(n)?(n.x=0,n.y=0,n.s=0):n=new Cr(0,0,0);for(var o,u=e-a*this._stepSizeDays,l=this._work,c=this._denominators,d=this._coef,f=this._xTable,h=0;h<=r;++h)l[h]=u-f[h];for(h=0;h<=r;++h){for(d[h]=1,o=0;o<=r;++o)o!==h&&(d[h]*=l[o]);d[h]*=c[h];var p=3*(a+h);n.x+=d[h]*s[p++],n.y+=d[h]*s[p++],n.s+=d[h]*s[p]}return n}}}};var _={},Er={up:{south:"east",north:"west",west:"south",east:"north"},down:{south:"west",north:"east",west:"north",east:"south"},south:{up:"west",down:"east",west:"down",east:"up"},north:{up:"east",down:"west",west:"up",east:"down"},west:{up:"north",down:"south",north:"down",south:"up"},east:{up:"south",down:"north",north:"up",south:"down"}},Or={north:[-1,0,0],east:[0,1,0],up:[0,0,1],south:[1,0,0],west:[0,-1,0],down:[0,0,-1]},Sr={},b={east:new M.Cartesian3,north:new M.Cartesian3,up:new M.Cartesian3,west:new M.Cartesian3,south:new M.Cartesian3,down:new M.Cartesian3},_r=new M.Cartesian3,br=new M.Cartesian3,Rr=new M.Cartesian3,Mr=(_.localFrameToFixedFrameGenerator=function(a,i){var s,e,t;if(Er.hasOwnProperty(a)&&Er[a].hasOwnProperty(i))return s=Er[a][i],q.defined(Sr[t=a+i])?e=Sr[t]:Sr[t]=e=function(e,t,n){var r;return q.defined(n)||(n=new k),M.Cartesian3.equalsEpsilon(e,M.Cartesian3.ZERO,F.CesiumMath.EPSILON14)?(M.Cartesian3.unpack(Or[a],0,_r),M.Cartesian3.unpack(Or[i],0,br),M.Cartesian3.unpack(Or[s],0,Rr)):F.CesiumMath.equalsEpsilon(e.x,0,F.CesiumMath.EPSILON14)&&F.CesiumMath.equalsEpsilon(e.y,0,F.CesiumMath.EPSILON14)?(r=F.CesiumMath.sign(e.z),M.Cartesian3.unpack(Or[a],0,_r),"east"!==a&&"west"!==a&&M.Cartesian3.multiplyByScalar(_r,r,_r),M.Cartesian3.unpack(Or[i],0,br),"east"!==i&&"west"!==i&&M.Cartesian3.multiplyByScalar(br,r,br),M.Cartesian3.unpack(Or[s],0,Rr),"east"!==s&&"west"!==s&&M.Cartesian3.multiplyByScalar(Rr,r,Rr)):((t=q.defaultValue(t,M.Ellipsoid.WGS84)).geodeticSurfaceNormal(e,b.up),r=b.up,(t=b.east).x=-e.y,t.y=e.x,t.z=0,M.Cartesian3.normalize(t,b.east),M.Cartesian3.cross(r,t,b.north),M.Cartesian3.multiplyByScalar(b.up,-1,b.down),M.Cartesian3.multiplyByScalar(b.east,-1,b.west),M.Cartesian3.multiplyByScalar(b.north,-1,b.south),_r=b[a],br=b[i],Rr=b[s]),n[0]=_r.x,n[1]=_r.y,n[2]=_r.z,n[3]=0,n[4]=br.x,n[5]=br.y,n[6]=br.z,n[7]=0,n[8]=Rr.x,n[9]=Rr.y,n[10]=Rr.z,n[11]=0,n[12]=e.x,n[13]=e.y,n[14]=e.z,n[15]=1,n},e;throw new o.DeveloperError("firstAxis and secondAxis must be east, north, up, west, south or down.")},_.eastNorthUpToFixedFrame=_.localFrameToFixedFrameGenerator("east","north"),_.northEastDownToFixedFrame=_.localFrameToFixedFrameGenerator("north","east"),_.northUpEastToFixedFrame=_.localFrameToFixedFrameGenerator("north","up"),_.northWestUpToFixedFrame=_.localFrameToFixedFrameGenerator("north","west"),new c),qr=new M.Cartesian3(1,1,1),Tr=new k,Ir=(_.headingPitchRollToFixedFrame=function(e,t,n,r,a){r=q.defaultValue(r,_.eastNorthUpToFixedFrame);t=c.fromHeadingPitchRoll(t,Mr),t=k.fromTranslationQuaternionRotationScale(M.Cartesian3.ZERO,t,qr,Tr);return a=r(e,n,a),k.multiply(a,t,a)},new k),zr=new B,Ur=(_.headingPitchRollQuaternion=function(e,t,n,r,a){e=_.headingPitchRollToFixedFrame(e,t,n,r,Ir),t=k.getMatrix3(e,zr);return c.fromRotationMatrix(t,a)},new M.Cartesian3(1,1,1)),Dr=new M.Cartesian3,Pr=new k,Nr=new k,Vr=new B,Fr=new c,Br=(_.fixedFrameToHeadingPitchRoll=function(e,t,n,r){t=q.defaultValue(t,M.Ellipsoid.WGS84),n=q.defaultValue(n,_.eastNorthUpToFixedFrame),q.defined(r)||(r=new S);var a=k.getTranslation(e,Dr);return M.Cartesian3.equals(a,M.Cartesian3.ZERO)?(r.heading=0,r.pitch=0,r.roll=0,r):(n=k.inverseTransformation(n(a,t,Pr),Pr),a=k.setScale(e,Ur,Nr),a=k.setTranslation(a,M.Cartesian3.ZERO,a),n=k.multiply(n,a,n),t=c.fromRotationMatrix(k.getMatrix3(n,Vr),Fr),t=c.normalize(t,t),S.fromQuaternion(t,r))},F.CesiumMath.TWO_PI/86400),Lr=new x,kr=(_.computeTemeToPseudoFixedMatrix=function(e,t){var e=(Lr=x.addSeconds(e,-x.computeTaiMinusUtc(e),Lr)).dayNumber,n=Lr.secondsOfDay,r=e-2451545,r=43200<=n?(.5+r)/g.DAYS_PER_JULIAN_CENTURY:(r-.5)/g.DAYS_PER_JULIAN_CENTURY,r=(24110.54841+r*(8640184.812866+r*(.093104+-62e-7*r)))*Br%F.CesiumMath.TWO_PI+(72921158553e-15+11772758384668e-32*(e-2451545.5))*((n+.5*g.SECONDS_PER_DAY)%g.SECONDS_PER_DAY),e=Math.cos(r),n=Math.sin(r);return q.defined(t)?(t[0]=e,t[1]=-n,t[2]=0,t[3]=n,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new B(e,n,0,-n,e,0,0,0,1)},_.iau2006XysData=new wr,_.earthOrientationParameters=rr.NONE,32.184),Wr=(_.preloadIcrfFixed=function(e){var t=e.start.dayNumber,n=e.start.secondsOfDay+kr,r=e.stop.dayNumber,e=e.stop.secondsOfDay+kr,t=_.iau2006XysData.preload(t,n,r,e),n=_.earthOrientationParameters.getPromiseToLoad();return q.when.all([t,n])},_.computeIcrfToFixedMatrix=function(e,t){q.defined(t)||(t=new B);e=_.computeFixedToIcrfMatrix(e,t);if(q.defined(e))return B.transpose(e,t)},new Cr(0,0,0)),jr=new Ht(0,0,0,0,0),Yr=new B,Hr=new B,Zr=(_.computeFixedToIcrfMatrix=function(e,t){q.defined(t)||(t=new B);var n=_.earthOrientationParameters.compute(e,jr);if(q.defined(n)){var r,a,i,s,o=e.dayNumber,u=e.secondsOfDay+kr,l=_.iau2006XysData.computeXysRadians(o,u,Wr);if(q.defined(l))return i=l.x+n.xPoleOffset,r=l.y+n.yPoleOffset,s=1/(1+Math.sqrt(1-i*i-r*r)),(a=Yr)[0]=1-s*i*i,a[3]=-s*i*r,a[6]=i,a[1]=-s*i*r,a[4]=1-s*r*r,a[7]=r,a[2]=-i,a[5]=-r,a[8]=1-s*(i*i+r*r),s=B.fromRotationZ(-l.s,Hr),i=B.multiply(a,s,Yr),r=e.dayNumber,a=(a=.779057273264+(l=(e.secondsOfDay-x.computeTaiMinusUtc(e)+n.ut1MinusUtc)/g.SECONDS_PER_DAY)+.00273781191135448*(r-2451545+l))%1*F.CesiumMath.TWO_PI,s=B.fromRotationZ(a,Hr),e=B.multiply(i,s,Yr),r=Math.cos(n.xPoleWander),l=Math.cos(n.yPoleWander),a=Math.sin(n.xPoleWander),i=Math.sin(n.yPoleWander),s=o-2451545+u/g.SECONDS_PER_DAY,n=-47e-6*(s/=36525)*F.CesiumMath.RADIANS_PER_DEGREE/3600,o=Math.cos(n),u=Math.sin(n),(s=Hr)[0]=r*o,s[1]=r*u,s[2]=a,s[3]=-l*u+i*a*o,s[4]=l*o+i*a*u,s[5]=-i*r,s[6]=-i*u-l*a*o,s[7]=i*o-l*a*u,s[8]=l*r,B.multiply(e,s,t)}},new L),Xr=(_.pointToWindowCoordinates=function(e,t,n,r){return(r=_.pointToGLWindowCoordinates(e,t,n,r)).y=2*t[5]-r.y,r},_.pointToGLWindowCoordinates=function(e,t,n,r){q.defined(r)||(r=new M.Cartesian2);var a=Zr;return k.multiplyByVector(e,L.fromElements(n.x,n.y,n.z,1,a),a),L.multiplyByScalar(a,1/a.w,a),k.multiplyByVector(t,a,a),M.Cartesian2.fromCartesian4(a,r)},new M.Cartesian3),Jr=new M.Cartesian3,Gr=new M.Cartesian3,Qr=(_.rotationMatrixFromPositionVelocity=function(e,t,n,r){n=q.defaultValue(n,M.Ellipsoid.WGS84).geodeticSurfaceNormal(e,Xr),e=M.Cartesian3.cross(t,n,Jr),M.Cartesian3.equalsEpsilon(e,M.Cartesian3.ZERO,F.CesiumMath.EPSILON6)&&(e=M.Cartesian3.clone(M.Cartesian3.UNIT_X,e)),n=M.Cartesian3.cross(e,t,Gr);return M.Cartesian3.normalize(n,n),M.Cartesian3.cross(t,n,e),M.Cartesian3.negate(e,e),M.Cartesian3.normalize(e,e),(r=q.defined(r)?r:new B)[0]=t.x,r[1]=t.y,r[2]=t.z,r[3]=e.x,r[4]=e.y,r[5]=e.z,r[6]=n.x,r[7]=n.y,r[8]=n.z,r},new k(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1)),Kr=new M.Cartographic,$r=new M.Cartesian3,ea=new M.Cartesian3,ta=new B,na=new k,ra=new k;_.basisTo2D=function(e,t,n){var r=k.getTranslation(t,ea),a=e.ellipsoid,i=a.cartesianToCartographic(r,Kr),e=e.project(i,$r),i=(M.Cartesian3.fromElements(e.z,e.x,e.y,e),_.eastNorthUpToFixedFrame(r,a,na)),r=k.inverseTransformation(i,ra),a=k.getMatrix3(t,ta),i=k.multiplyByMatrix3(r,a,n);return k.multiply(Qr,i,n),k.setTranslation(n,e,n),n},_.wgs84To2DModelMatrix=function(e,t,n){var r=e.ellipsoid,a=_.eastNorthUpToFixedFrame(t,r,na),a=k.inverseTransformation(a,ra),r=r.cartesianToCartographic(t,Kr),t=e.project(r,$r),e=(M.Cartesian3.fromElements(t.z,t.x,t.y,t),k.fromTranslation(t,na));return k.multiply(Qr,a,n),k.multiply(e,n,n),n},e.BoundingSphere=T,e.Cartesian4=L,e.FeatureDetection=u,e.GeographicProjection=z,e.Intersect=U,e.Interval=D,e.Matrix3=B,e.Matrix4=k,e.Quaternion=c,e.Resource=O,e.Transforms=_,e.buildModuleUrl=Ar});
@@ -1 +0,0 @@
1
- define(["exports","./when-ae2e0b60","./Check-f996273c"],function(e,o,t){"use strict";function a(e){e=o.defaultValue(e,o.defaultValue.EMPTY_OBJECT),this.position=o.defaultValue(e.position,!1),this.normal=o.defaultValue(e.normal,!1),this.st=o.defaultValue(e.st,!1),this.bitangent=o.defaultValue(e.bitangent,!1),this.tangent=o.defaultValue(e.tangent,!1),this.color=o.defaultValue(e.color,!1)}a.POSITION_ONLY=Object.freeze(new a({position:!0})),a.POSITION_AND_NORMAL=Object.freeze(new a({position:!0,normal:!0})),a.POSITION_NORMAL_AND_ST=Object.freeze(new a({position:!0,normal:!0,st:!0})),a.POSITION_AND_ST=Object.freeze(new a({position:!0,st:!0})),a.POSITION_AND_COLOR=Object.freeze(new a({position:!0,color:!0})),a.ALL=Object.freeze(new a({position:!0,normal:!0,st:!0,tangent:!0,bitangent:!0})),a.DEFAULT=a.POSITION_NORMAL_AND_ST,a.packedLength=6,a.pack=function(e,t,n){return n=o.defaultValue(n,0),t[n++]=e.position?1:0,t[n++]=e.normal?1:0,t[n++]=e.st?1:0,t[n++]=e.tangent?1:0,t[n++]=e.bitangent?1:0,t[n]=e.color?1:0,t},a.unpack=function(e,t,n){return t=o.defaultValue(t,0),(n=o.defined(n)?n:new a).position=1===e[t++],n.normal=1===e[t++],n.st=1===e[t++],n.tangent=1===e[t++],n.bitangent=1===e[t++],n.color=1===e[t],n},a.clone=function(e,t){if(o.defined(e))return(t=o.defined(t)?t:new a).position=e.position,t.normal=e.normal,t.st=e.st,t.tangent=e.tangent,t.bitangent=e.bitangent,t.color=e.color,t},e.VertexFormat=a});
@@ -1 +0,0 @@
1
- define(["exports","./arrayRemoveDuplicates-bdf50aa0","./Cartesian2-c1eb9da0","./when-ae2e0b60","./Math-5bbcea10","./PolylinePipeline-971ba240"],function(e,f,A,C,w,P){"use strict";var i={};var b=new A.Cartographic,M=new A.Cartographic;function E(e,i,t,a){var r=(i=f.arrayRemoveDuplicates(i,A.Cartesian3.equalsEpsilon)).length;if(!(r<2)){var n=C.defined(a),o=C.defined(t),l=new Array(r),s=new Array(r),h=new Array(r),g=i[0],p=(l[0]=g,e.cartesianToCartographic(g,b));o&&(p.height=t[0]),s[0]=p.height,h[0]=n?a[0]:0;for(var u,c,d=s[0]===h[0],y=1,m=1;m<r;++m){var v=i[m],P=e.cartesianToCartographic(v,M);o&&(P.height=t[m]),d=d&&0===P.height,u=p,c=P,w.CesiumMath.equalsEpsilon(u.latitude,c.latitude,w.CesiumMath.EPSILON10)&&w.CesiumMath.equalsEpsilon(u.longitude,c.longitude,w.CesiumMath.EPSILON10)?p.height<P.height&&(s[y-1]=P.height):(l[y]=v,s[y]=P.height,h[y]=n?a[m]:0,d=d&&s[y]===h[y],A.Cartographic.clone(P,p),++y)}if(!(d||y<2))return l.length=y,s.length=y,h.length=y,{positions:l,topHeights:s,bottomHeights:h}}}var F=new Array(2),H=new Array(2),L={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};i.computePositions=function(e,i,t,a,r,n){var o=E(e,i,t,a);if(C.defined(o)){i=o.positions,t=o.topHeights,a=o.bottomHeights;var l=i.length,o=l-2,s=w.CesiumMath.chordLength(r,e.maximumRadius),h=L;if(h.minDistance=s,h.ellipsoid=e,n){for(var g=0,p=0;p<l-1;p++)g+=P.PolylinePipeline.numberOfPoints(i[p],i[p+1],s)+1;var u=new Float64Array(3*g),c=new Float64Array(3*g),d=F,y=H,m=(h.positions=d,h.height=y,0);for(p=0;p<l-1;p++){d[0]=i[p],d[1]=i[p+1],y[0]=t[p],y[1]=t[p+1];var v=P.PolylinePipeline.generateArc(h);u.set(v,m),y[0]=a[p],y[1]=a[p+1],c.set(P.PolylinePipeline.generateArc(h),m),m+=v.length}}else h.positions=i,h.height=t,u=new Float64Array(P.PolylinePipeline.generateArc(h)),h.height=a,c=new Float64Array(P.PolylinePipeline.generateArc(h));return{bottomPositions:c,topPositions:u,numCorners:o}}},e.WallGeometryLibrary=i});
@@ -1 +0,0 @@
1
- define(["exports","./arrayRemoveDuplicates-bdf50aa0","./Cartesian2-c1eb9da0","./when-ae2e0b60","./Math-5bbcea10","./PolylinePipeline-6484d4ee"],function(e,f,A,C,w,P){"use strict";var i={};var b=new A.Cartographic,M=new A.Cartographic;function E(e,i,t,a){var r=(i=f.arrayRemoveDuplicates(i,A.Cartesian3.equalsEpsilon)).length;if(!(r<2)){var n=C.defined(a),o=C.defined(t),l=new Array(r),s=new Array(r),h=new Array(r),g=i[0],p=(l[0]=g,e.cartesianToCartographic(g,b));o&&(p.height=t[0]),s[0]=p.height,h[0]=n?a[0]:0;for(var u,c,d=s[0]===h[0],y=1,m=1;m<r;++m){var v=i[m],P=e.cartesianToCartographic(v,M);o&&(P.height=t[m]),d=d&&0===P.height,u=p,c=P,w.CesiumMath.equalsEpsilon(u.latitude,c.latitude,w.CesiumMath.EPSILON10)&&w.CesiumMath.equalsEpsilon(u.longitude,c.longitude,w.CesiumMath.EPSILON10)?p.height<P.height&&(s[y-1]=P.height):(l[y]=v,s[y]=P.height,h[y]=n?a[m]:0,d=d&&s[y]===h[y],A.Cartographic.clone(P,p),++y)}if(!(d||y<2))return l.length=y,s.length=y,h.length=y,{positions:l,topHeights:s,bottomHeights:h}}}var F=new Array(2),H=new Array(2),L={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};i.computePositions=function(e,i,t,a,r,n){var o=E(e,i,t,a);if(C.defined(o)){i=o.positions,t=o.topHeights,a=o.bottomHeights;var l=i.length,o=l-2,s=w.CesiumMath.chordLength(r,e.maximumRadius),h=L;if(h.minDistance=s,h.ellipsoid=e,n){for(var g=0,p=0;p<l-1;p++)g+=P.PolylinePipeline.numberOfPoints(i[p],i[p+1],s)+1;var u=new Float64Array(3*g),c=new Float64Array(3*g),d=F,y=H,m=(h.positions=d,h.height=y,0);for(p=0;p<l-1;p++){d[0]=i[p],d[1]=i[p+1],y[0]=t[p],y[1]=t[p+1];var v=P.PolylinePipeline.generateArc(h);u.set(v,m),y[0]=a[p],y[1]=a[p+1],c.set(P.PolylinePipeline.generateArc(h),m),m+=v.length}}else h.positions=i,h.height=t,u=new Float64Array(P.PolylinePipeline.generateArc(h)),h.height=a,c=new Float64Array(P.PolylinePipeline.generateArc(h));return{bottomPositions:c,topPositions:u,numCorners:o}}},e.WallGeometryLibrary=i});
@@ -1 +0,0 @@
1
- define(["exports","./arrayRemoveDuplicates-bdf50aa0","./Cartesian2-c1eb9da0","./when-ae2e0b60","./Math-5bbcea10","./PolylinePipeline-d59947c4"],function(e,f,A,C,w,P){"use strict";var i={};var b=new A.Cartographic,M=new A.Cartographic;function E(e,i,t,a){var r=(i=f.arrayRemoveDuplicates(i,A.Cartesian3.equalsEpsilon)).length;if(!(r<2)){var n=C.defined(a),o=C.defined(t),l=new Array(r),s=new Array(r),h=new Array(r),g=i[0],p=(l[0]=g,e.cartesianToCartographic(g,b));o&&(p.height=t[0]),s[0]=p.height,h[0]=n?a[0]:0;for(var u,c,d=s[0]===h[0],y=1,m=1;m<r;++m){var v=i[m],P=e.cartesianToCartographic(v,M);o&&(P.height=t[m]),d=d&&0===P.height,u=p,c=P,w.CesiumMath.equalsEpsilon(u.latitude,c.latitude,w.CesiumMath.EPSILON10)&&w.CesiumMath.equalsEpsilon(u.longitude,c.longitude,w.CesiumMath.EPSILON10)?p.height<P.height&&(s[y-1]=P.height):(l[y]=v,s[y]=P.height,h[y]=n?a[m]:0,d=d&&s[y]===h[y],A.Cartographic.clone(P,p),++y)}if(!(d||y<2))return l.length=y,s.length=y,h.length=y,{positions:l,topHeights:s,bottomHeights:h}}}var F=new Array(2),H=new Array(2),L={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};i.computePositions=function(e,i,t,a,r,n){var o=E(e,i,t,a);if(C.defined(o)){i=o.positions,t=o.topHeights,a=o.bottomHeights;var l=i.length,o=l-2,s=w.CesiumMath.chordLength(r,e.maximumRadius),h=L;if(h.minDistance=s,h.ellipsoid=e,n){for(var g=0,p=0;p<l-1;p++)g+=P.PolylinePipeline.numberOfPoints(i[p],i[p+1],s)+1;var u=new Float64Array(3*g),c=new Float64Array(3*g),d=F,y=H,m=(h.positions=d,h.height=y,0);for(p=0;p<l-1;p++){d[0]=i[p],d[1]=i[p+1],y[0]=t[p],y[1]=t[p+1];var v=P.PolylinePipeline.generateArc(h);u.set(v,m),y[0]=a[p],y[1]=a[p+1],c.set(P.PolylinePipeline.generateArc(h),m),m+=v.length}}else h.positions=i,h.height=t,u=new Float64Array(P.PolylinePipeline.generateArc(h)),h.height=a,c=new Float64Array(P.PolylinePipeline.generateArc(h));return{bottomPositions:c,topPositions:u,numCorners:o}}},e.WallGeometryLibrary=i});