@mapgis/cesium 17.6.4 → 17.6.7
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.
- package/Build/Cesium/Cesium.js +16 -16
- package/Build/Cesium/index.cjs +16 -16
- package/Build/Cesium/index.js +15 -15
- package/Documentation/Model.html +49 -49
- package/README.md +24 -0
- package/package.json +1 -1
package/Build/Cesium/Cesium.js
CHANGED
|
@@ -92,7 +92,7 @@ var Cesium=(()=>{var GXe=Object.create;var D3=Object.defineProperty;var EXe=Obje
|
|
|
92
92
|
See https://github.com/richtr/NoSleep.js/issues/15 for more details.
|
|
93
93
|
`),this.noSleepTimer=window.setInterval(()=>{document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))},15e3),this.enabled=!0,Promise.resolve()):this.noSleepVideo.play().then(n=>(this.enabled=!0,n)).catch(n=>{throw this.enabled=!1,n})}disable(){Coe()?(this._wakeLock&&this._wakeLock.release(),this._wakeLock=null):Soe()?this.noSleepTimer&&(console.warn(`
|
|
94
94
|
NoSleep now disabled for older iOS devices.
|
|
95
|
-
`),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}};dXe.exports=Loe});var Z5t={};wXe(Z5t,{AlphaMode:()=>zm,AlphaPipelineStage:()=>SW,AnchorPointDirect:()=>Lw,AnchorPointIndirect:()=>Vw,Animation:()=>HD,AnimationViewModel:()=>JD,Appearance:()=>lo,ApproximateTerrainHeights:()=>Ui,ArcGISTiledElevationTerrainProvider:()=>H$,ArcGisBaseMapType:()=>af,ArcGisMapServerImageryProvider:()=>sg,ArcGisMapService:()=>mm,ArcType:()=>Xn,ArticulationStageType:()=>bl,AssociativeArray:()=>kt,Atmosphere:()=>T5,AtmospherePipelineStage:()=>eW,AttributeCompression:()=>xn,AttributeSurfacePrimitive:()=>Die,AttributeType:()=>Yt,AutoExposure:()=>_5,AutomaticUniforms:()=>fb,Axis:()=>En,AxisAlignedBoundingBox:()=>kg,B3dmLoader:()=>Aw,B3dmParser:()=>v1,BaseLayerPicker:()=>jD,BaseLayerPickerViewModel:()=>QD,BatchTable:()=>P_,BatchTableHierarchy:()=>Pb,BatchTexture:()=>td,BatchTexturePipelineStage:()=>CW,Billboard:()=>sr,BillboardCollection:()=>Au,BillboardGraphics:()=>qc,BillboardVisualizer:()=>p2,BingMapsGeocoderService:()=>Q$,BingMapsImageryProvider:()=>C5,BingMapsStyle:()=>zR,BlendEquation:()=>Ec,BlendFunction:()=>Lr,BlendOption:()=>Rr,BlendingState:()=>Gn,BoundingRectangle:()=>$e,BoundingSphere:()=>de,BoundingSphereState:()=>Wt,BoundingVolumeSemantics:()=>kb,BoxEmitter:()=>cte,BoxGeometry:()=>ol,BoxGeometryUpdater:()=>TM,BoxGraphics:()=>H_,BoxOutlineGeometry:()=>Qh,BrdfLutGenerator:()=>Z5,Buffer:()=>nt,BufferLoader:()=>Z1,BufferUsage:()=>Me,CPUStylingPipelineStage:()=>RW,CallbackPositionProperty:()=>_M,CallbackProperty:()=>sp,Camera:()=>Ai,CameraEventAggregator:()=>H5,CameraEventType:()=>Io,CameraFlightPath:()=>B5,Cartesian2:()=>B,Cartesian3:()=>h,Cartesian4:()=>re,Cartographic:()=>me,CartographicGeocoderService:()=>q$,CatmullRomSpline:()=>$$,Cesium3DContentGroup:()=>wb,Cesium3DTile:()=>ch,Cesium3DTileBatchTable:()=>vb,Cesium3DTileColorBlendMode:()=>ul,Cesium3DTileContent:()=>Tte,Cesium3DTileContentFactory:()=>Hf,Cesium3DTileContentState:()=>bi,Cesium3DTileContentType:()=>Vo,Cesium3DTileCustomContent:()=>N7,Cesium3DTileFeature:()=>ka,Cesium3DTileFeatureTable:()=>ma,Cesium3DTileOptimizationHint:()=>Yd,Cesium3DTileOptimizations:()=>zx,Cesium3DTilePass:()=>ro,Cesium3DTilePassState:()=>Eh,Cesium3DTilePointFeature:()=>Gy,Cesium3DTileRefine:()=>zo,Cesium3DTileStyle:()=>TC,Cesium3DTileStyleEngine:()=>eS,Cesium3DTilesInspector:()=>i3,Cesium3DTilesInspectorViewModel:()=>n3,Cesium3DTilesVoxelProvider:()=>Rte,Cesium3DTileset:()=>$s,Cesium3DTilesetBaseTraversal:()=>rS,Cesium3DTilesetCache:()=>q1,Cesium3DTilesetGraphics:()=>t1,Cesium3DTilesetHeatmap:()=>$1,Cesium3DTilesetMetadata:()=>py,Cesium3DTilesetMostDetailedTraversal:()=>oS,Cesium3DTilesetSkipTraversal:()=>sS,Cesium3DTilesetStatistics:()=>sd,Cesium3DTilesetTraversal:()=>Ka,Cesium3DTilesetVisualizer:()=>tN,CesiumInspector:()=>s3,CesiumInspectorViewModel:()=>r3,CesiumTerrainProvider:()=>sC,CesiumWidget:()=>ED,Check:()=>ao,CheckerboardMaterialProperty:()=>CZ,CircleEmitter:()=>$5,CircleGeometry:()=>ree,CircleOutlineGeometry:()=>see,ClassificationModelDrawCommand:()=>XP,ClassificationPipelineStage:()=>LW,ClassificationPrimitive:()=>JL,ClassificationType:()=>ei,ClearCommand:()=>ai,ClipFillUtil:()=>FP,ClippingGeometry:()=>Uie,ClippingGeometryFS:()=>XD,ClippingGeometryType:()=>xf,ClippingGeometryVS:()=>MD,ClippingGltfFS:()=>wD,ClippingGltfVS:()=>WD,ClippingPlane:()=>Jb,ClippingPlaneCollection:()=>Vr,ClippingPolygon:()=>TV,ClippingPolygonCollection:()=>Od,ClippingType:()=>Zv,Clock:()=>vp,ClockRange:()=>Ds,ClockStep:()=>pr,ClockViewModel:()=>YD,CloudCollection:()=>wte,CloudType:()=>JR,Color:()=>z,ColorBlendMode:()=>fl,ColorCorrection:()=>uD,ColorCurrection:()=>FA,ColorGeometryInstanceAttribute:()=>cn,ColorMaterialProperty:()=>mn,Command:()=>coe,ComponentDatatype:()=>H,Composite3DTileContent:()=>dp,CompositeEntityCollection:()=>k7,CompositeMaterialProperty:()=>VZ,CompositePositionProperty:()=>gc,CompositeProperty:()=>Zl,CompressedTextureBuffer:()=>C2,ComputeCommand:()=>mp,ComputeEngine:()=>b5,ConditionsExpression:()=>J5,ConeEmitter:()=>vte,Config:()=>n2,ConstantPositionProperty:()=>Hl,ConstantProperty:()=>Fi,ConstantSpline:()=>kw,ContentMetadata:()=>wM,Context:()=>Mv,ContextLimits:()=>qt,CoplanarPolygonGeometry:()=>NN,CoplanarPolygonGeometryLibrary:()=>Yb,CoplanarPolygonOutlineGeometry:()=>Dm,CornerType:()=>Ro,CorrelationGroup:()=>Zw,CorridorGeometry:()=>m0,CorridorGeometryLibrary:()=>Fo,CorridorGeometryUpdater:()=>dN,CorridorGraphics:()=>Q_,CorridorOutlineGeometry:()=>lN,Credit:()=>Ot,CreditDisplay:()=>pF,CubeMap:()=>Ic,CubeMapFace:()=>V2,CubicRealPolynomial:()=>X_,CullFace:()=>Ti,CullingVolume:()=>Qr,CumulusCloud:()=>pm,CustomDataSource:()=>bN,CustomHeightmapTerrainProvider:()=>aee,CustomShader:()=>eL,CustomShaderMode:()=>ay,CustomShaderPipelineStage:()=>WW,CustomShaderTranslucencyMode:()=>Ix,CuttingFilterUtil:()=>Pv,CylinderGeometry:()=>c0,CylinderGeometryLibrary:()=>cS,CylinderGeometryUpdater:()=>gN,CylinderGraphics:()=>j_,CylinderOutlineGeometry:()=>yN,CzmlDataSource:()=>GN,DataSource:()=>As,DataSourceClock:()=>Np,DataSourceCollection:()=>EN,DataSourceDisplay:()=>d9,DebugAppearance:()=>Kte,DebugCameraPrimitive:()=>z0,DebugInspector:()=>yF,DebugModelMatrixPrimitive:()=>gF,DefaultProxy:()=>lee,DepthFunction:()=>al,DepthPlane:()=>CF,DequantizationPipelineStage:()=>vW,DerivedCommand:()=>fu,DeveloperError:()=>be,DeviceOrientationCameraController:()=>LF,DirectionalLight:()=>Qte,DiscardEmptyTileImagePolicy:()=>YR,DiscardMissingTileImagePolicy:()=>g5,DistanceDisplayCondition:()=>nn,DistanceDisplayConditionGeometryInstanceAttribute:()=>Ci,DoubleEndedPriorityQueue:()=>cC,DoublyLinkedList:()=>uv,DracoLoader:()=>fp,DrawCommand:()=>Je,DynamicAtmosphereLightingType:()=>yC,DynamicGeometryBatch:()=>IS,DynamicGeometryUpdater:()=>Ki,EarthOrientationParameters:()=>a2,EarthOrientationParametersSample:()=>Gg,EasingFunction:()=>zs,EllipseGeometry:()=>pd,EllipseGeometryLibrary:()=>ou,EllipseGeometryUpdater:()=>XN,EllipseGraphics:()=>q_,EllipseOutlineGeometry:()=>ju,Ellipsoid:()=>oe,EllipsoidGeodesic:()=>_b,EllipsoidGeometry:()=>Vs,EllipsoidGeometryUpdater:()=>wN,EllipsoidGraphics:()=>$_,EllipsoidOutlineGeometry:()=>ml,EllipsoidPrimitive:()=>VF,EllipsoidRhumbLine:()=>Xc,EllipsoidSurfaceAppearance:()=>Xh,EllipsoidSurfaceVoxelAppearance:()=>oZ,EllipsoidSurfaceVoxelAppearanceFS:()=>rv,EllipsoidSurfaceVoxelAppearanceVS:()=>ov,EllipsoidTangentPlane:()=>ys,EllipsoidTerrainProvider:()=>P0,EllipsoidalOccluder:()=>Py,Empty3DTileContent:()=>Xu,EncodedCartesian3:()=>_i,Entity:()=>Jr,EntityCluster:()=>Bu,EntityCollection:()=>Qa,EntityView:()=>m9,Event:()=>Se,EventHelper:()=>vs,Expression:()=>ih,ExpressionNodeType:()=>Dt,ExtrapolationType:()=>Ku,FeatureDetection:()=>bn,FeatureIdPipelineStage:()=>Ex,FlattenTool:()=>Kie,Fog:()=>GF,ForEach:()=>De,FrameBufferType:()=>a0,FrameRateMonitor:()=>EF,FrameState:()=>IF,Framebuffer:()=>Jo,FramebufferManager:()=>ki,FrustumCommands:()=>XF,FrustumGeometry:()=>dC,FrustumOutlineGeometry:()=>e5,Fullscreen:()=>fs,FullscreenButton:()=>c3,FullscreenButtonViewModel:()=>a3,GeoJsonDataSource:()=>M9,GeoJsonLoader:()=>Dw,GeocodeType:()=>DT,Geocoder:()=>d3,GeocoderService:()=>NR,GeocoderViewModel:()=>l3,GeographicProjection:()=>So,GeographicTilingScheme:()=>Uo,Geometry:()=>It,Geometry3DTileContent:()=>vv,GeometryAttribute:()=>Ee,GeometryAttributes:()=>An,GeometryFactory:()=>pee,GeometryInstance:()=>wt,GeometryInstanceAttribute:()=>cl,GeometryOffsetAttribute:()=>vn,GeometryPipeline:()=>fi,GeometryPipelineStage:()=>kW,GeometryType:()=>Em,GeometryUpdater:()=>Hi,GeometryUpdaterSet:()=>DS,GeometryVisualizer:()=>$N,GetFeatureInfoFormat:()=>ZC,Globe:()=>QF,GlobeDepth:()=>jF,GlobeEffect:()=>zie,GlobeSurfaceShaderSet:()=>vF,GlobeSurfaceTile:()=>Mh,GlobeSurfaceTileProvider:()=>DF,GlobeTranslucency:()=>UF,GlobeTranslucencyFramebuffer:()=>qF,GlobeTranslucencyState:()=>$F,GltfBufferViewLoader:()=>SV,GltfDracoLoader:()=>CV,GltfGpmLoader:()=>Gw,GltfGpmLocal:()=>wV,GltfImageLoader:()=>LV,GltfIndexBufferLoader:()=>VV,GltfJsonLoader:()=>RV,GltfLoader:()=>Dc,GltfLoaderUtil:()=>Hd,GltfMeshPrimitiveGpmLoader:()=>Mw,GltfStructuralMetadataLoader:()=>Sw,GltfTextureLoader:()=>GV,GltfVertexBufferLoader:()=>EV,GoogleEarthEnterpriseImageryProvider:()=>yne,GoogleEarthEnterpriseMapsProvider:()=>aF,GoogleEarthEnterpriseMetadata:()=>og,GoogleEarthEnterpriseTerrainData:()=>FR,GoogleEarthEnterpriseTerrainProvider:()=>See,GoogleEarthEnterpriseTileInformation:()=>n5,GoogleMaps:()=>mC,GpxDataSource:()=>v9,GregorianDate:()=>ob,GridImageryProvider:()=>gne,GridMaterialProperty:()=>WZ,GroundGeometryUpdater:()=>Gi,GroundPolylineGeometry:()=>Y_,GroundPolylinePrimitive:()=>tp,GroundPrimitive:()=>Aa,GroundPrimitiveRectangleGenerater:()=>Bie,GroupMetadata:()=>lZ,HashMap:()=>Hm,HeadingPitchRange:()=>Il,HeadingPitchRoll:()=>Gs,Heap:()=>$G,HeightReference:()=>rt,HeightmapEncoding:()=>Ch,HeightmapTerrainData:()=>Kc,HeightmapTessellator:()=>GR,HermitePolynomialApproximation:()=>xN,HermiteSpline:()=>Zx,HilbertOrder:()=>fZ,HomeButton:()=>m3,HomeButtonViewModel:()=>u3,HorizontalOrigin:()=>mo,I3SBuildingSceneLayerExplorer:()=>yoe,I3SBuildingSceneLayerExplorerViewModel:()=>h3,I3SDataProvider:()=>ff,I3SDecoder:()=>eA,I3SFeature:()=>tA,I3SField:()=>nA,I3SGeometry:()=>mG,I3SLayer:()=>vC,I3SNode:()=>hG,I3SStatistics:()=>rA,I3SSublayer:()=>aA,I3SSymbology:()=>oA,I3dmLoader:()=>Uw,I3dmParser:()=>F1,Iau2000Orientation:()=>o5,Iau2006XysData:()=>c2,Iau2006XysSample:()=>Z_,IauOrientationAxes:()=>r5,IauOrientationParameters:()=>i5,ImageBasedLighting:()=>Xb,ImageBasedLightingPipelineStage:()=>nW,ImageMaterialProperty:()=>Hg,Imagery:()=>rG,ImageryLayer:()=>Ys,ImageryLayerCollection:()=>kF,ImageryLayerFeatureInfo:()=>cf,ImageryProvider:()=>_d,ImageryState:()=>qi,Implicit3DTileContent:()=>gZ,ImplicitAvailabilityBitstream:()=>bZ,ImplicitMetadataView:()=>yZ,ImplicitSubdivisionScheme:()=>qs,ImplicitSubtree:()=>yS,ImplicitSubtreeCache:()=>j5,ImplicitSubtreeMetadata:()=>Nv,ImplicitTileCoordinates:()=>by,ImplicitTileset:()=>fy,IndexDatatype:()=>qe,InfoBox:()=>f3,InfoBoxViewModel:()=>p3,InspectorShared:()=>jc,InstanceAttributeSemantic:()=>kr,InstancingPipelineStage:()=>gW,InterceptorsUtil:()=>CL,InterpolationAlgorithm:()=>Lee,InterpolationType:()=>hp,Intersect:()=>Qt,IntersectionTests:()=>Pi,Intersections2D:()=>ng,Interval:()=>Pa,InvertClassification:()=>fG,Ion:()=>lp,IonGeocoderService:()=>c5,IonImageryProvider:()=>lg,IonResource:()=>ed,IonWorldImageryStyle:()=>dg,Iso8601:()=>tt,JobScheduler:()=>cA,JobType:()=>Ac,JsonMetadataTable:()=>jb,JulianDate:()=>ee,KTX2Transcoder:()=>L2,KeyboardEventModifier:()=>$a,KeyframeNode:()=>Qo,KmlCamera:()=>N9,KmlDataSource:()=>B9,KmlLookAt:()=>F9,KmlTour:()=>A9,KmlTourFlyTo:()=>U9,KmlTourWait:()=>k9,Label:()=>Kx,LabelCollection:()=>$m,LabelGraphics:()=>ip,LabelStyle:()=>Yr,LabelVisualizer:()=>e9,LagrangePolynomialApproximation:()=>TN,LeapSecond:()=>Do,Light:()=>Sne,LightManager:()=>q0,LightingMode:()=>Sd,LightingModel:()=>e0,LightingPipelineStage:()=>YW,LinearApproximation:()=>LS,LinearSpline:()=>Vx,M3D10MetadataTable:()=>HP,M3D20MetadataTable:()=>OP,M3D21MetadataTable:()=>tx,M3DAttContentFactory:()=>XM,M3DAttParser:()=>Bf,M3DB3dmLoader:()=>QP,M3DContentFactory:()=>Ax,M3DContentType:()=>uy,M3DDataLoader:()=>nv,M3DDataParser:()=>tv,M3DGltfLoader:()=>JP,M3DGltfParser:()=>YP,M3DI3dmLoader:()=>jP,M3DPntsLoader:()=>ev,M3DPntsParser:()=>qP,M3DTidParser:()=>zM,M3DTree:()=>eoe,MAPGIS_VERSION:()=>V5t,ManagedArray:()=>Mc,MapGISM3D:()=>Q1,MapGISM3DSet:()=>Cl,MapGISM3DTileContent:()=>dx,MapGISM3DVoxelContent:()=>cv,MapGISVoxelPrimitive:()=>J1,MapMode2D:()=>uu,MapProjection:()=>Ree,MapboxImageryProvider:()=>cF,MapboxStyleImageryProvider:()=>Cne,Material:()=>Wi,MaterialAppearance:()=>or,MaterialPipelineStage:()=>OW,MaterialProperty:()=>Hr,Math:()=>M,Matrix2:()=>Wo,Matrix3:()=>$,Matrix4:()=>P,Megatexture:()=>yG,MeshPrimitiveGpmLocal:()=>Xw,MetadataClass:()=>ua,MetadataClassProperty:()=>jf,MetadataComponentType:()=>pn,MetadataEntity:()=>ci,MetadataEnum:()=>gw,MetadataEnumValue:()=>yw,MetadataPicking:()=>lA,MetadataPickingPipelineStage:()=>Pu,MetadataPipelineStage:()=>Om,MetadataSchema:()=>Tl,MetadataSchemaLoader:()=>IV,MetadataSemantic:()=>gS,MetadataTable:()=>gl,MetadataTableProperty:()=>_V,MetadataType:()=>Jt,MipmapHint:()=>wf,Model:()=>Ya,Model3DTileContent:()=>Sl,ModelAlphaOptions:()=>gP,ModelAnimation:()=>Ow,ModelAnimationChannel:()=>Bw,ModelAnimationCollection:()=>Kw,ModelAnimationLoop:()=>Bd,ModelAnimationState:()=>_p,ModelArticulation:()=>oW,ModelArticulationStage:()=>iW,ModelClippingGeometryPipelineStage:()=>lW,ModelClippingPlanesPipelineStage:()=>aW,ModelClippingPolygonsPipelineStage:()=>mW,ModelColorPipelineStage:()=>Gx,ModelComponents:()=>hn,ModelDrawCommand:()=>MP,ModelDrawCommands:()=>PP,ModelExplosion:()=>ioe,ModelExplosionPipelineStage:()=>mP,ModelFeature:()=>Hw,ModelFeatureTable:()=>Qw,ModelFlattenPipelineStage:()=>fP,ModelGraphics:()=>Zb,ModelLightingOptions:()=>GP,ModelMatrixUpdateStage:()=>xW,ModelNode:()=>hW,ModelPMPipelineStage:()=>hP,ModelRenderResources:()=>_P,ModelRuntimeNode:()=>_W,ModelRuntimePrimitive:()=>bP,ModelSceneGraph:()=>DP,ModelSilhouettePipelineStage:()=>LP,ModelSkin:()=>yP,ModelSplitterPipelineStage:()=>ZP,ModelStatistics:()=>UP,ModelStretchPipelineStage:()=>dP,ModelSwipePipelineStage:()=>NP,ModelType:()=>xr,ModelUtility:()=>fn,ModelVisualizer:()=>t9,Moon:()=>uA,MorphTargetsPipelineStage:()=>HW,MorphWeightSpline:()=>Xee,MortonOrder:()=>Yx,Multiple3DTileContent:()=>d1,MultisampleFramebuffer:()=>ww,NavigationHelpButton:()=>y3,NavigationHelpButtonViewModel:()=>b3,NearFarScalar:()=>sn,NetCDFLoader:()=>sv,NeverTileDiscardPolicy:()=>Vne,NodeRenderResources:()=>RP,NodeStatisticsPipelineStage:()=>TW,NodeTransformationProperty:()=>e1,OIDTexturePipelineStage:()=>cP,OIT:()=>hA,Occluder:()=>l5,OffsetGeometryInstanceAttribute:()=>Ho,OpenCageGeocoderService:()=>Wee,OpenStreetMapImageryProvider:()=>bg,OrderedGroundPrimitiveCollection:()=>IN,OrientedBoundingBox:()=>Hn,OrthographicFrustum:()=>In,OrthographicOffCenterFrustum:()=>Xs,OutlineForOid:()=>BA,OutlineForPrimitives:()=>OA,OutlineRenderMode:()=>Lp,Packable:()=>Pee,PackableForInterpolation:()=>vee,ParallelLight:()=>EG,Particle:()=>xG,ParticleBurst:()=>Ine,ParticleEmitter:()=>Xne,ParticleSystem:()=>Mne,Pass:()=>Ze,PassState:()=>Gr,PathGraphics:()=>Rb,PathVisualizer:()=>n9,PeliasGeocoderService:()=>a5,PerInstanceColorAppearance:()=>Wn,PerformanceDisplay:()=>yg,PerformanceWatchdog:()=>x3,PerformanceWatchdogViewModel:()=>g3,PerspectiveFrustum:()=>Bi,PerspectiveOffCenterFrustum:()=>Td,PickDepth:()=>fA,PickDepthFramebuffer:()=>yA,PickFramebuffer:()=>xA,PickedMetadataInfo:()=>gA,Picking:()=>SA,PickingPipelineStage:()=>JW,PinBuilder:()=>$y,PixelDatatype:()=>ke,PixelFormat:()=>Ye,Plane:()=>Vn,PlaneGeometry:()=>z1,PlaneGeometryUpdater:()=>PN,PlaneGraphics:()=>hM,PlaneOutlineGeometry:()=>WN,PntsLoader:()=>zP,PntsParser:()=>B1,PointCloud:()=>LA,PointCloudEyeDomeLighting:()=>xp,PointCloudShading:()=>Bm,PointCloudStylingPipelineStage:()=>jW,PointGraphics:()=>n1,PointLight:()=>GG,PointPrimitive:()=>Za,PointPrimitiveCollection:()=>IZ,PointVisualizer:()=>o9,PolygonGeometry:()=>Nc,PolygonGeometryLibrary:()=>Zi,PolygonGeometryUpdater:()=>AN,PolygonGraphics:()=>op,PolygonHierarchy:()=>da,PolygonOutlineGeometry:()=>FN,PolygonPipeline:()=>Ji,PolygonSwiperCullingCommand:()=>cD,Polyline:()=>rh,PolylineArrowMaterialProperty:()=>vZ,PolylineCollection:()=>Gp,PolylineColorAppearance:()=>Js,PolylineDashMaterialProperty:()=>FZ,PolylineGeometry:()=>Ky,PolylineGeometryUpdater:()=>a9,PolylineGlowMaterialProperty:()=>DZ,PolylineGraphics:()=>ll,PolylineMaterialAppearance:()=>mc,PolylineOutlineMaterialProperty:()=>lT,PolylinePipeline:()=>Zo,PolylineVisualizer:()=>l9,PolylineVolumeAnimationGeometry:()=>UG,PolylineVolumeGeometry:()=>fd,PolylineVolumeGeometryLibrary:()=>Mp,PolylineVolumeGeometryUpdater:()=>BN,PolylineVolumeGraphics:()=>i1,PolylineVolumeOutlineGeometry:()=>YN,PositionProperty:()=>np,PositionPropertyArray:()=>Fy,PostProcessStage:()=>Ko,PostProcessStageCollection:()=>JA,PostProcessStageComposite:()=>Vd,PostProcessStageLibrary:()=>xu,PostProcessStageSampleMode:()=>gm,PostProcessStageTextureCache:()=>HC,PpeMetadata:()=>Iw,PpeSource:()=>ooe,PpeTexture:()=>Ew,Primitive:()=>Un,PrimitiveCollection:()=>hd,PrimitiveLoadPlan:()=>P1,PrimitiveOutlineGenerator:()=>W1,PrimitiveOutlinePipelineStage:()=>eP,PrimitivePipeline:()=>U_,PrimitiveRenderResources:()=>EP,PrimitiveState:()=>xs,PrimitiveStatisticsPipelineStage:()=>tP,PrimitiveType:()=>Fe,ProjectionPicker:()=>_3,ProjectionPickerViewModel:()=>T3,Property:()=>Q,PropertyArray:()=>kZ,PropertyAttribute:()=>$b,PropertyAttributeProperty:()=>qM,PropertyBag:()=>Ud,PropertyTable:()=>as,PropertyTexture:()=>qb,PropertyTextureProperty:()=>jM,ProviderViewModel:()=>ra,Proxy:()=>Fee,QuadraticRealPolynomial:()=>Bl,QuadtreeOccluders:()=>zF,QuadtreePrimitive:()=>JF,QuadtreeTile:()=>YF,QuadtreeTileLoadState:()=>nc,QuadtreeTileProvider:()=>Jne,QuantizedMeshTerrainData:()=>rC,QuarticRealPolynomial:()=>$2,Quaternion:()=>Be,QuaternionSpline:()=>Yw,Queue:()=>ox,Ray:()=>Dn,Rectangle:()=>he,RectangleCollisionChecker:()=>YS,RectangleGeometry:()=>Fu,RectangleGeometryLibrary:()=>Sa,RectangleGeometryUpdater:()=>ON,RectangleGraphics:()=>rp,RectangleOutlineGeometry:()=>m1,ReferenceFrame:()=>vo,ReferenceProperty:()=>Ay,RenderDebug:()=>Hie,RenderState:()=>Ne,Renderbuffer:()=>Wu,RenderbufferFormat:()=>id,Request:()=>Mr,RequestErrorEvent:()=>Vf,RequestScheduler:()=>rc,RequestState:()=>Xi,RequestType:()=>Rs,Resource:()=>Xe,ResourceCache:()=>ji,ResourceCacheKey:()=>Jd,ResourceCacheStatistics:()=>_w,ResourceLoader:()=>vi,ResourceLoaderState:()=>Xt,Rotation:()=>mh,RuntimeError:()=>le,S2Cell:()=>Bb,SDFSettings:()=>Oa,SampledPositionProperty:()=>Tc,SampledProperty:()=>Ju,Sampler:()=>un,ScaledPositionProperty:()=>x0,Scene:()=>hD,SceneFramebuffer:()=>AC,SceneMode:()=>ae,SceneMode2DPipelineStage:()=>nP,SceneModePicker:()=>C3,SceneModePickerViewModel:()=>S3,SceneProjectorEx:()=>Fie,SceneProjectorExFS:()=>ID,SceneProjectorSourceType:()=>Bs,SceneTransforms:()=>yo,SceneTransitioner:()=>jA,ScreenSpaceCameraController:()=>eD,ScreenSpaceEventHandler:()=>um,ScreenSpaceEventType:()=>qn,SectionCylinderGeometry:()=>mS,SectionFrameBuffer:()=>Rv,SectionPlaneGeometry:()=>Ha,SectionPolygonGeometry:()=>Cg,SectionRender:()=>Wv,SectionRenderUtil:()=>AP,SelectedFeatureIdPipelineStage:()=>Xx,SelectionIndicator:()=>Z3,SelectionIndicatorViewModel:()=>V3,SensorVolumePortionToDisplay:()=>OZ,ShaderBuilder:()=>k1,ShaderCache:()=>Gv,ShaderDestination:()=>xe,ShaderFunction:()=>TP,ShaderProgram:()=>zt,ShaderSource:()=>Oe,ShaderStruct:()=>xP,ShadowMap:()=>bf,ShadowMapShader:()=>H0,ShadowMode:()=>On,ShadowVolumeAppearance:()=>Ru,ShowGeometryInstanceAttribute:()=>Qn,Simon1994PlanetaryPositions:()=>Hx,SimplePolylineGeometry:()=>jee,SingleTileImageryProvider:()=>VC,SkinningPipelineStage:()=>oP,SkyAtmosphere:()=>bD,SkyBox:()=>iL,SpatialNode:()=>rD,Spdcf:()=>Rw,SpecularEnvironmentCubeMap:()=>cp,SphereEmitter:()=>Rie,SphereGeometry:()=>qee,SphereOutlineGeometry:()=>Kb,Spherical:()=>_N,Spline:()=>nr,SplitDirection:()=>ss,Splitter:()=>_G,SpotLight:()=>IG,StaticGeometryColorBatch:()=>bh,StaticGeometryPerMaterialBatch:()=>gh,StaticGroundGeometryColorBatch:()=>rR,StaticGroundGeometryPerMaterialBatch:()=>qN,StaticGroundPolylinePerMaterialBatch:()=>c9,StaticOutlineGeometryBatch:()=>aR,StencilConstants:()=>an,StencilFunction:()=>Li,StencilOperation:()=>Nt,SteppedSpline:()=>zw,Stereographic:()=>pl,StorageType:()=>_x,StripeMaterialProperty:()=>YZ,StripeOrientation:()=>Ap,StructuralMetadata:()=>ur,StyleCommandsNeeded:()=>Sp,StyleExpression:()=>Gie,Sun:()=>VD,SunLight:()=>Cy,SunPostProcess:()=>iD,SupportedImageFormats:()=>Cw,SvgPathBindingHandler:()=>kD,SwipeModeType:()=>Kn,SwiperCullingFramebuffer:()=>lD,TaskProcessor:()=>oo,Terrain:()=>ZD,TerrainData:()=>$p,TerrainEncoding:()=>Ml,TerrainFillMesh:()=>lG,TerrainMesh:()=>Vh,TerrainOffsetProperty:()=>o1,TerrainProvider:()=>ta,TerrainQuantization:()=>ja,TerrainState:()=>cr,Texture:()=>it,Texture3D:()=>av,TextureAtlas:()=>Ox,TextureCache:()=>Ev,TextureMagnificationFilter:()=>Ri,TextureManager:()=>sD,TextureMinificationFilter:()=>gn,TextureUniform:()=>Jie,TextureWrap:()=>Nn,TileAvailability:()=>ef,TileBoundingRegion:()=>pc,TileBoundingS2Cell:()=>x1,TileBoundingSphere:()=>Pc,TileBoundingVolume:()=>Eie,TileCoordinatesImageryProvider:()=>GD,TileDiscardPolicy:()=>Xie,TileEdge:()=>Jn,TileImagery:()=>sG,TileMapServiceImageryProvider:()=>HT,TileMetadata:()=>WM,TileOrientedBoundingBox:()=>vc,TileProviderError:()=>Ir,TileReplacementQueue:()=>BF,TileSelectionResult:()=>Ni,TileState:()=>Mie,Tileset3DTileContent:()=>Fv,TilesetMetadata:()=>lv,TilesetPipelineStage:()=>jw,TilingScheme:()=>$ee,TimeConstants:()=>wi,TimeDynamicImagery:()=>RC,TimeDynamicPointCloud:()=>FG,TimeInterval:()=>$n,TimeIntervalCollection:()=>Fs,TimeIntervalCollectionPositionProperty:()=>Dy,TimeIntervalCollectionProperty:()=>Uy,TimeStandard:()=>Ei,Timeline:()=>E3,TimelineHighlightRange:()=>R3,TimelineTrack:()=>G3,Tipsify:()=>kX,ToggleButtonViewModel:()=>s_,Tonemapper:()=>xg,Transforms:()=>Zt,TranslationRotationScale:()=>Jg,TranslucentTileClassification:()=>_A,TridiagonalSystemSolver:()=>UV,TrustedServers:()=>SL,TweenCollection:()=>QC,UniformState:()=>Xv,UniformType:()=>VG,UrlTemplateImageryProvider:()=>Jc,UrlUtil:()=>b4,Util:()=>Jx,VERSION:()=>L5t,VRButton:()=>X3,VRButtonViewModel:()=>I3,VRTheWorldTerrainProvider:()=>tte,VaryingType:()=>Qie,Vector3DTileBatch:()=>Yf,Vector3DTileClampedPolylines:()=>qv,Vector3DTileContent:()=>eN,Vector3DTileGeometry:()=>Vy,Vector3DTilePoints:()=>Bv,Vector3DTilePolygons:()=>Ov,Vector3DTilePolylines:()=>TS,Vector3DTilePrimitive:()=>fS,VelocityOrientationProperty:()=>CN,VelocityVectorProperty:()=>GS,VertexArray:()=>Yn,VertexArrayFacade:()=>yy,VertexAttributeSemantic:()=>ut,VertexFormat:()=>ve,VerticalExaggeration:()=>rr,VerticalExaggerationPipelineStage:()=>sP,VerticalOrigin:()=>ui,VideoSynchronizer:()=>ete,View:()=>kC,Viewer:()=>Zoe,ViewportQuad:()=>RG,ViewshedAnalysis:()=>Aie,Visibility:()=>hs,VisualAnalysisManager:()=>p5,Visualizer:()=>k$,VoxelBoxShape:()=>D0,VoxelCell:()=>CG,VoxelContent:()=>q5,VoxelCylinderShape:()=>U0,VoxelEllipsoidShape:()=>_C,VoxelInspector:()=>W3,VoxelInspectorViewModel:()=>w3,VoxelPrimitive:()=>i_,VoxelProvider:()=>vie,VoxelRenderResources:()=>U5,VoxelShape:()=>Nie,VoxelShapeType:()=>Xo,VoxelTraversal:()=>LG,VulkanConstants:()=>nte,WallGeometry:()=>HN,WallGeometryLibrary:()=>PS,WallGeometryUpdater:()=>jN,WallGraphics:()=>Gb,WallOutlineGeometry:()=>QN,WebGLConstants:()=>te,WebMapServiceImageryProvider:()=>dF,WebMapTileServiceImageryProvider:()=>mF,WebMercatorProjection:()=>Co,WebMercatorTilingScheme:()=>na,WindingOrder:()=>la,WireframeIndexGenerator:()=>HV,WireframePipelineStage:()=>aP,_shadersAcesTonemappingStage:()=>VA,_shadersAdditiveBlend:()=>tD,_shadersAdjustTranslucentFS:()=>gG,_shadersAllMaterialAppearanceFS:()=>y2,_shadersAllMaterialAppearanceVS:()=>g2,_shadersAmbientOcclusionGenerate:()=>ZA,_shadersAmbientOcclusionModulate:()=>RA,_shadersAspectRampMaterial:()=>R2,_shadersAtmosphereCommon:()=>mg,_shadersAtmosphereStageFS:()=>qw,_shadersAtmosphereStageVS:()=>$w,_shadersBasicMaterialAppearanceFS:()=>x2,_shadersBasicMaterialAppearanceVS:()=>T2,_shadersBillboardCollectionFS:()=>fv,_shadersBillboardCollectionVS:()=>bv,_shadersBlackAndWhite:()=>GA,_shadersBloomComposite:()=>EA,_shadersBrdfLutGeneratorFS:()=>L5,_shadersBrightPass:()=>nD,_shadersBrightness:()=>IA,_shadersBumpMapMaterial:()=>G2,_shadersCPUStylingStageFS:()=>ZW,_shadersCPUStylingStageVS:()=>VW,_shadersCheckerboardMaterial:()=>E2,_shadersCloudCollectionFS:()=>eF,_shadersCloudCollectionVS:()=>tF,_shadersCloudNoiseFS:()=>nF,_shadersCloudNoiseVS:()=>iF,_shadersCompareAndPackTranslucentDepth:()=>TA,_shadersCompositeOITFS:()=>mA,_shadersCompositeTranslucentClassification:()=>UC,_shadersContrastBias:()=>XA,_shadersCustomShaderStageFS:()=>EW,_shadersCustomShaderStageVS:()=>GW,_shadersCzmBuiltins:()=>W_,_shadersDepthOfField:()=>MA,_shadersDepthPlaneFS:()=>xF,_shadersDepthPlaneVS:()=>TF,_shadersDepthView:()=>wA,_shadersDepthViewPacked:()=>qie,_shadersDotMaterial:()=>I2,_shadersEdgeDetection:()=>WA,_shadersElevationBandMaterial:()=>X2,_shadersElevationContourMaterial:()=>M2,_shadersElevationRampMaterial:()=>w2,_shadersEllipsoidFS:()=>tG,_shadersEllipsoidSurfaceAppearanceFS:()=>ZF,_shadersEllipsoidSurfaceAppearanceVS:()=>RF,_shadersEllipsoidVS:()=>nG,_shadersFXAA:()=>NA,_shadersFXAA3_11:()=>YA,_shadersFadeMaterial:()=>W2,_shadersFeatureIdStageFS:()=>IW,_shadersFeatureIdStageVS:()=>XW,_shadersFilmicTonemapping:()=>PA,_shadersGaussianBlur1D:()=>t_,_shadersGeometryStageFS:()=>NW,_shadersGeometryStageVS:()=>FW,_shadersGlobeFS:()=>WF,_shadersGlobeVS:()=>PF,_shadersGridMaterial:()=>P2,_shadersGroundAtmosphere:()=>iG,_shadersHSBToRGB:()=>WI,_shadersHSLToRGB:()=>PI,_shadersImageBasedLightingStageFS:()=>tW,_shadersInstancingStageCommon:()=>pW,_shadersInstancingStageVS:()=>fW,_shadersIntersectBox:()=>w5,_shadersIntersectClippingPlanes:()=>M5,_shadersIntersectCylinder:()=>W5,_shadersIntersectDepth:()=>X5,_shadersIntersectEllipsoid:()=>P5,_shadersIntersectLongitude:()=>BR,_shadersIntersection:()=>xC,_shadersIntersectionUtils:()=>I5,_shadersLegacyInstancingStageVS:()=>bW,_shadersLensFlare:()=>AA,_shadersLightingStageFS:()=>zW,_shadersMaterialStageFS:()=>BW,_shadersMegatexture:()=>D5,_shadersMetadataStageFS:()=>MW,_shadersMetadataStageVS:()=>wW,_shadersModelClippingGeometryStageFS:()=>cW,_shadersModelClippingPlanesStageFS:()=>sW,_shadersModelClippingPolygonsStageFS:()=>uW,_shadersModelClippingPolygonsStageVS:()=>dW,_shadersModelColorStageFS:()=>rW,_shadersModelExplosionStageVS:()=>uP,_shadersModelFS:()=>WP,_shadersModelFlattenStageVS:()=>pP,_shadersModelSilhouetteStageFS:()=>SP,_shadersModelSilhouetteStageVS:()=>CP,_shadersModelSplitterStageFS:()=>VP,_shadersModelStretchStageVS:()=>lP,_shadersModelSwipePipelineStageFS:()=>vP,_shadersModelVS:()=>wP,_shadersModifiedReinhardTonemapping:()=>DA,_shadersMorphTargetsStageVS:()=>KW,_shadersNightVision:()=>UA,_shadersNormalMapMaterial:()=>v2,_shadersOctree:()=>A5,_shadersPassThrough:()=>yu,_shadersPassThroughDepth:()=>QT,_shadersPbrNeutralTonemapping:()=>vA,_shadersPerInstanceColorAppearanceFS:()=>K2,_shadersPerInstanceColorAppearanceVS:()=>H2,_shadersPerInstanceFlatColorAppearanceFS:()=>I_,_shadersPerInstanceFlatColorAppearanceVS:()=>J2,_shadersPointCloudEyeDomeLighting:()=>Pw,_shadersPointCloudStylingStageVS:()=>QW,_shadersPointPrimitiveCollectionFS:()=>cT,_shadersPointPrimitiveCollectionVS:()=>uN,_shadersPolygonSignedDistanceFS:()=>YM,_shadersPolylineArrowMaterial:()=>N2,_shadersPolylineColorAppearanceVS:()=>eM,_shadersPolylineCommon:()=>Gu,_shadersPolylineDashMaterial:()=>F2,_shadersPolylineFS:()=>O_,_shadersPolylineGlowMaterial:()=>A2,_shadersPolylineMaterialAppearanceVS:()=>tM,_shadersPolylineOutlineMaterial:()=>D2,_shadersPolylineShadowVolumeFS:()=>QX,_shadersPolylineShadowVolumeMorphFS:()=>jX,_shadersPolylineShadowVolumeMorphVS:()=>qX,_shadersPolylineShadowVolumeVS:()=>$X,_shadersPolylineVS:()=>Av,_shadersPrimitiveOutlineStageFS:()=>$W,_shadersPrimitiveOutlineStageVS:()=>qW,_shadersRGBToHSB:()=>aX,_shadersRGBToHSL:()=>cX,_shadersRGBToXYZ:()=>lX,_shadersReinhardTonemapping:()=>kA,_shadersReprojectWebMercatorFS:()=>NF,_shadersReprojectWebMercatorVS:()=>FF,_shadersRimLightingMaterial:()=>U2,_shadersSelectedFeatureIdStageCommon:()=>jie,_shadersSelectedFeatureIdStageFS:()=>AW,_shadersSelectedFeatureIdStageVS:()=>DW,_shadersShadowVolumeAppearanceFS:()=>KL,_shadersShadowVolumeAppearanceVS:()=>FX,_shadersShadowVolumeFS:()=>Yg,_shadersSilhouette:()=>zA,_shadersSkinningStageVS:()=>iP,_shadersSkyAtmosphereCommon:()=>XG,_shadersSkyAtmosphereFS:()=>pD,_shadersSkyAtmosphereVS:()=>fD,_shadersSkyBoxFS:()=>yD,_shadersSkyBoxVS:()=>gD,_shadersSlopeRampMaterial:()=>k2,_shadersStripeMaterial:()=>z2,_shadersSunFS:()=>TD,_shadersSunTextureFS:()=>_D,_shadersSunVS:()=>SD,_shadersTexturedMaterialAppearanceFS:()=>_2,_shadersTexturedMaterialAppearanceVS:()=>S2,_shadersVector3DTileClampedPolylinesFS:()=>Qv,_shadersVector3DTileClampedPolylinesVS:()=>Jv,_shadersVector3DTilePolylinesVS:()=>Kv,_shadersVectorTileVS:()=>iV,_shadersVerticalExaggerationStageVS:()=>rP,_shadersViewportQuadFS:()=>dD,_shadersViewportQuadVS:()=>lS,_shadersVoxelFS:()=>G5,_shadersVoxelUtils:()=>R5,_shadersVoxelVS:()=>E5,_shadersWater:()=>B2,_shadersWaterMaskMaterial:()=>Y2,_shadersXYZToRGB:()=>vX,_shadersacesTonemapping:()=>QE,_shadersalphaWeight:()=>jE,_shadersantialias:()=>qE,_shadersapplyColorCorrection:()=>$E,_shadersapplyHSBShift:()=>eI,_shadersapproximateSphericalCoordinates:()=>tI,_shadersapproximateTanh:()=>nI,_shadersbackFacing:()=>iI,_shadersbranchFreeTernary:()=>oI,_shaderscascadeColor:()=>rI,_shaderscascadeDistance:()=>sI,_shaderscascadeMatrix:()=>aI,_shaderscascadeWeights:()=>cI,_shadersclipPolygons:()=>lI,_shaderscolumbusViewMorph:()=>dI,_shaderscomputeAtmosphereColor:()=>uI,_shaderscomputeGroundAtmosphereScattering:()=>mI,_shaderscomputePosition:()=>hI,_shaderscomputeScattering:()=>pI,_shadersconvertUvToBox:()=>v5,_shadersconvertUvToCylinder:()=>N5,_shadersconvertUvToEllipsoid:()=>F5,_shaderscosineAndSine:()=>fI,_shaderscreateTranslationMatrix:()=>UE,_shadersdecompressTextureCoordinates:()=>bI,_shadersdegreesPerRadian:()=>iE,_shadersdepthClamp:()=>yI,_shadersdepthRange:()=>oE,_shadersdepthRangeStruct:()=>kE,_shaderseastNorthUpToEyeCoordinates:()=>gI,_shadersellipsoidContainsPoint:()=>xI,_shadersellipsoidTextureCoordinates:()=>TI,_shadersepsilon1:()=>rE,_shadersepsilon2:()=>sE,_shadersepsilon3:()=>aE,_shadersepsilon4:()=>cE,_shadersepsilon5:()=>lE,_shadersepsilon6:()=>dE,_shadersepsilon7:()=>uE,_shadersequalsEpsilon:()=>_I,_shaderseyeOffset:()=>SI,_shaderseyeToWindowCoordinates:()=>CI,_shadersfastApproximateAtan:()=>LI,_shadersfog:()=>VI,_shadersgammaCorrect:()=>ZI,_shadersgeodeticSurfaceNormal:()=>RI,_shadersgeometryClip:()=>GI,_shadersgetDefaultMaterial:()=>EI,_shadersgetDynamicAtmosphereLightDirection:()=>II,_shadersgetLambertDiffuse:()=>XI,_shadersgetSpecular:()=>MI,_shadersgetWaterNoise:()=>wI,_shadershue:()=>vI,_shadersinfinity:()=>mE,_shadersinverseGamma:()=>NI,_shadersisEmpty:()=>FI,_shadersisFull:()=>AI,_shaderslatitudeToWebMercatorFraction:()=>DI,_shaderslineDistance:()=>kI,_shaderslinearToSrgb:()=>UI,_shadersluminance:()=>zI,_shadersmaterial:()=>zE,_shadersmaterialInput:()=>YE,_shadersmaximumComponent:()=>YI,_shadersmetersPerPixel:()=>BI,_shadersmodelMaterial:()=>BE,_shadersmodelToWindowCoordinates:()=>OI,_shadersmodelVertexOutput:()=>OE,_shadersmultiplyWithColorBalance:()=>KI,_shadersnearFarScalar:()=>HI,_shadersoctDecode:()=>JI,_shadersoneOverPi:()=>hE,_shadersoneOverTwoPi:()=>pE,_shaderspackDepth:()=>QI,_shaderspassCesium3DTile:()=>fE,_shaderspassCesium3DTileClassification:()=>bE,_shaderspassCesium3DTileClassificationIgnoreShow:()=>yE,_shaderspassClassification:()=>gE,_shaderspassCompute:()=>xE,_shaderspassEnvironment:()=>TE,_shaderspassGlobe:()=>_E,_shaderspassOpaque:()=>SE,_shaderspassOverlay:()=>CE,_shaderspassTerrainClassification:()=>LE,_shaderspassTranslucent:()=>VE,_shaderspassVoxels:()=>ZE,_shaderspbrLighting:()=>jI,_shaderspbrNeutralTonemapping:()=>qI,_shadersphong:()=>$I,_shaderspi:()=>RE,_shaderspiOverFour:()=>GE,_shaderspiOverSix:()=>EE,_shaderspiOverThree:()=>IE,_shaderspiOverTwo:()=>XE,_shadersplaneDistance:()=>eX,_shaderspointAlongRay:()=>tX,_shadersradiansPerDegree:()=>ME,_shadersray:()=>KE,_shadersrayEllipsoidIntersectionInterval:()=>nX,_shadersraySegment:()=>HE,_shadersraySphereIntersectionInterval:()=>iX,_shadersreadDepth:()=>oX,_shadersreadNonPerspective:()=>rX,_shadersreverseLogDepth:()=>sX,_shadersrollerShutter:()=>dX,_shadersrollerShutterPolygon:()=>uX,_shadersrollerShutterSpyglass:()=>mX,_shadersround:()=>hX,_shaderssaturation:()=>pX,_shaderssceneMode2D:()=>wE,_shaderssceneMode3D:()=>WE,_shaderssceneModeColumbusView:()=>PE,_shaderssceneModeMorphing:()=>vE,_shadersshadowDepthCompare:()=>fX,_shadersshadowParameters:()=>JE,_shadersshadowVisibility:()=>bX,_shaderssignNotZero:()=>yX,_shaderssolarRadius:()=>NE,_shaderssphericalHarmonics:()=>gX,_shaderssrgbToLinear:()=>xX,_shaderstangentToEyeSpaceMatrix:()=>TX,_shaderstextureCube:()=>_X,_shadersthreePiOver2:()=>FE,_shaderstransformPlane:()=>SX,_shaderstranslateRelativeToEye:()=>CX,_shaderstranslucentPhong:()=>LX,_shaderstranspose:()=>VX,_shaderstwoPi:()=>AE,_shadersunpackClippingExtents:()=>ZX,_shadersunpackDepth:()=>RX,_shadersunpackFloat:()=>GX,_shadersunpackUint:()=>EX,_shadersvalueTransform:()=>IX,_shadersvertexLogDepth:()=>XX,_shaderswebMercatorMaxLatitude:()=>DE,_shaderswindowToEyeCoordinates:()=>MX,_shaderswriteDepthClamp:()=>wX,_shaderswriteLogDepth:()=>WX,_shaderswriteNonPerspective:()=>PX,addBuffer:()=>mw,addDefaults:()=>ow,addExtensionsRequired:()=>lw,addExtensionsUsed:()=>Ym,addPipelineExtras:()=>fx,addToArray:()=>Ca,appendForwardSlash:()=>QG,arrayRemoveDuplicates:()=>gr,barycentricCoordinates:()=>v_,binarySearch:()=>Xr,buildModuleUrl:()=>Sn,buildVoxelDrawCommands:()=>z5,clone:()=>Ue,combine:()=>xt,computeFlyToLocationForRectangle:()=>CC,createBillboardPointCallback:()=>xS,createCommand:()=>ti,createDefaultImageryProviderViewModels:()=>qD,createDefaultTerrainProviderViewModels:()=>$D,createElevationBandMaterial:()=>Nte,createGooglePhotorealistic3DTileset:()=>Fte,createGuid:()=>jn,createMaterialPropertyDescriptor:()=>wr,createOsmBuildingsAsync:()=>Ate,createPropertyDescriptor:()=>ge,createRawPropertyDescriptor:()=>Dd,createTangentSpaceDebugPrimitive:()=>Dte,createTaskProcessorWorker:()=>roe,createUUID:()=>tw,createUniform:()=>tE,createUniformArray:()=>nE,createWorldBathymetryAsync:()=>J9,createWorldImageryAsync:()=>ug,createWorldTerrainAsync:()=>aC,decodeGoogleEarthEnterpriseData:()=>Q9,decodeVectorPolylinePositions:()=>$v,defaultValue:()=>g,defer:()=>Xd,defined:()=>d,demodernizeShader:()=>NX,deprecationWarning:()=>lr,destroyObject:()=>fe,exportKml:()=>Kq,findAccessorMinMax:()=>X1,findContentMetadata:()=>Ab,findGroupMetadata:()=>Db,findTileMetadata:()=>l1,forEachTextureInMaterial:()=>ZV,formatError:()=>W0,freezeRenderState:()=>OJ,getAbsoluteUri:()=>Cf,getAccessorByteStride:()=>Kd,getBaseUri:()=>jG,getBinaryAccessor:()=>dl,getClipAndStyleCode:()=>MF,getClippingFunction:()=>ag,getComponentReader:()=>Qb,getElement:()=>li,getExtensionFromUri:()=>p_,getFilenameFromUri:()=>vy,getImageFromTypedArray:()=>t5,getImagePixels:()=>Kh,getJsonFromTypedArray:()=>ho,getMagic:()=>wc,getMetadataClassProperty:()=>wF,getStringFromTypedArray:()=>Wr,getTimestamp:()=>fo,hasExtension:()=>Vi,heightReferenceOnEntityPropertyChanged:()=>Eb,isBitSet:()=>wl,isBlobUri:()=>f_,isCrossOriginUrl:()=>Ig,isDataUri:()=>rb,isLeapYear:()=>Oh,knockout:()=>Re,knockout_3_5_1:()=>dL,knockout_es5:()=>UD,loadAndExecuteScript:()=>b_,loadCubeMap:()=>y5,loadImageFromTypedArray:()=>G1,loadKTX2:()=>Nd,mergeSort:()=>rg,moveTechniqueRenderStates:()=>cw,moveTechniquesToExtension:()=>dw,numberOfComponentsForType:()=>Mu,objectToQuery:()=>y_,oneTimeWarning:()=>Ft,pako_inflate:()=>a1,parseAttBatchTable:()=>Nu,parseBatchTable:()=>Tp,parseFeatureMetadataLegacy:()=>iw,parseGlb:()=>sw,parseResponseHeaders:()=>qG,parseStructuralMetadata:()=>nw,parseVoxelStyles:()=>Ux,pickModel:()=>eZ,pointInsideTriangle:()=>Nee,preprocess3DTileContent:()=>Kf,preprocessM3DContent:()=>iv,processVoxelProperties:()=>k5,queryToObject:()=>Cu,readAccessorPacked:()=>hw,removeExtension:()=>M1,removeExtensionsRequired:()=>rw,removeExtensionsUsed:()=>I1,removePipelineExtras:()=>aw,removeUnusedElements:()=>uw,resizeImageToNextPowerOfTwo:()=>yx,sampleTerrain:()=>d5,sampleTerrainMostDetailed:()=>hC,scaleToGeodeticSurface:()=>h_,srgbToLinear:()=>fC,subdivideArray:()=>AX,subscribeAndEvaluate:()=>Zc,updateAccessorComponentTypes:()=>pw,updateVersion:()=>fw,usesExtension:()=>cs,viewerCesium3DTilesInspectorMixin:()=>Roe,viewerCesiumInspectorMixin:()=>Goe,viewerDragDropMixin:()=>Ioe,viewerPerformanceWatchdogMixin:()=>Xoe,viewerVoxelInspectorMixin:()=>Moe,webGLConstantToGlslType:()=>ite,wrapFunction:()=>h5,writeTextToCanvas:()=>nS,zlib_min:()=>Oie});var jsr=S(C(),1);var vNo=S(C(),1);var oFt=S(C(),1);var X5t=S(C(),1);function Noe(e,t){return e??t}Noe.EMPTY_OBJECT=Object.freeze({});var g=Noe;var w5t=S(C(),1);function PXe(e){return e!=null}var d=PXe;var v5t=S(C(),1);function u_(e){this.name="DeveloperError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}d(Object.create)&&(u_.prototype=Object.create(Error.prototype),u_.prototype.constructor=u_);u_.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return d(this.stack)&&(e+=`
|
|
95
|
+
`),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}};dXe.exports=Loe});var Z5t={};wXe(Z5t,{AlphaMode:()=>zm,AlphaPipelineStage:()=>SW,AnchorPointDirect:()=>Lw,AnchorPointIndirect:()=>Vw,Animation:()=>HD,AnimationViewModel:()=>JD,Appearance:()=>lo,ApproximateTerrainHeights:()=>Ui,ArcGISTiledElevationTerrainProvider:()=>H$,ArcGisBaseMapType:()=>af,ArcGisMapServerImageryProvider:()=>sg,ArcGisMapService:()=>mm,ArcType:()=>Xn,ArticulationStageType:()=>bl,AssociativeArray:()=>kt,Atmosphere:()=>T5,AtmospherePipelineStage:()=>eW,AttributeCompression:()=>xn,AttributeSurfacePrimitive:()=>Die,AttributeType:()=>Yt,AutoExposure:()=>_5,AutomaticUniforms:()=>fb,Axis:()=>En,AxisAlignedBoundingBox:()=>kg,B3dmLoader:()=>Aw,B3dmParser:()=>v1,BaseLayerPicker:()=>t3,BaseLayerPickerViewModel:()=>e3,BatchTable:()=>P_,BatchTableHierarchy:()=>Pb,BatchTexture:()=>td,BatchTexturePipelineStage:()=>CW,Billboard:()=>sr,BillboardCollection:()=>Au,BillboardGraphics:()=>qc,BillboardVisualizer:()=>p2,BingMapsGeocoderService:()=>Q$,BingMapsImageryProvider:()=>C5,BingMapsStyle:()=>zR,BlendEquation:()=>Ec,BlendFunction:()=>Lr,BlendOption:()=>Rr,BlendingState:()=>Gn,BoundingRectangle:()=>$e,BoundingSphere:()=>de,BoundingSphereState:()=>Wt,BoundingVolumeSemantics:()=>kb,BoxEmitter:()=>cte,BoxGeometry:()=>ol,BoxGeometryUpdater:()=>TM,BoxGraphics:()=>H_,BoxOutlineGeometry:()=>Qh,BrdfLutGenerator:()=>Z5,Buffer:()=>nt,BufferLoader:()=>Z1,BufferUsage:()=>Me,CPUStylingPipelineStage:()=>RW,CallbackPositionProperty:()=>_M,CallbackProperty:()=>sp,Camera:()=>Ai,CameraEventAggregator:()=>H5,CameraEventType:()=>Io,CameraFlightPath:()=>B5,Cartesian2:()=>B,Cartesian3:()=>h,Cartesian4:()=>re,Cartographic:()=>me,CartographicGeocoderService:()=>q$,CatmullRomSpline:()=>$$,Cesium3DContentGroup:()=>wb,Cesium3DTile:()=>ch,Cesium3DTileBatchTable:()=>vb,Cesium3DTileColorBlendMode:()=>ul,Cesium3DTileContent:()=>Tte,Cesium3DTileContentFactory:()=>Hf,Cesium3DTileContentState:()=>bi,Cesium3DTileContentType:()=>Vo,Cesium3DTileCustomContent:()=>N7,Cesium3DTileFeature:()=>ka,Cesium3DTileFeatureTable:()=>ma,Cesium3DTileOptimizationHint:()=>Yd,Cesium3DTileOptimizations:()=>zx,Cesium3DTilePass:()=>ro,Cesium3DTilePassState:()=>Eh,Cesium3DTilePointFeature:()=>Gy,Cesium3DTileRefine:()=>zo,Cesium3DTileStyle:()=>TC,Cesium3DTileStyleEngine:()=>eS,Cesium3DTilesInspector:()=>$D,Cesium3DTilesInspectorViewModel:()=>qD,Cesium3DTilesVoxelProvider:()=>Rte,Cesium3DTileset:()=>$s,Cesium3DTilesetBaseTraversal:()=>rS,Cesium3DTilesetCache:()=>q1,Cesium3DTilesetGraphics:()=>t1,Cesium3DTilesetHeatmap:()=>$1,Cesium3DTilesetMetadata:()=>py,Cesium3DTilesetMostDetailedTraversal:()=>oS,Cesium3DTilesetSkipTraversal:()=>sS,Cesium3DTilesetStatistics:()=>sd,Cesium3DTilesetTraversal:()=>Ka,Cesium3DTilesetVisualizer:()=>tN,CesiumInspector:()=>s3,CesiumInspectorViewModel:()=>r3,CesiumTerrainProvider:()=>sC,CesiumWidget:()=>ED,Check:()=>ao,CheckerboardMaterialProperty:()=>CZ,CircleEmitter:()=>$5,CircleGeometry:()=>ree,CircleOutlineGeometry:()=>see,ClassificationModelDrawCommand:()=>XP,ClassificationPipelineStage:()=>LW,ClassificationPrimitive:()=>JL,ClassificationType:()=>ei,ClearCommand:()=>ai,ClipFillUtil:()=>FP,ClippingGeometry:()=>Uie,ClippingGeometryFS:()=>XD,ClippingGeometryType:()=>xf,ClippingGeometryVS:()=>MD,ClippingGltfFS:()=>wD,ClippingGltfVS:()=>WD,ClippingPlane:()=>Jb,ClippingPlaneCollection:()=>Vr,ClippingPolygon:()=>TV,ClippingPolygonCollection:()=>Od,ClippingType:()=>Zv,Clock:()=>vp,ClockRange:()=>Ds,ClockStep:()=>pr,ClockViewModel:()=>YD,CloudCollection:()=>wte,CloudType:()=>JR,Color:()=>z,ColorBlendMode:()=>fl,ColorCorrection:()=>uD,ColorCurrection:()=>FA,ColorGeometryInstanceAttribute:()=>cn,ColorMaterialProperty:()=>mn,Command:()=>coe,ComponentDatatype:()=>H,Composite3DTileContent:()=>dp,CompositeEntityCollection:()=>k7,CompositeMaterialProperty:()=>VZ,CompositePositionProperty:()=>gc,CompositeProperty:()=>Zl,CompressedTextureBuffer:()=>C2,ComputeCommand:()=>mp,ComputeEngine:()=>b5,ConditionsExpression:()=>J5,ConeEmitter:()=>vte,Config:()=>n2,ConstantPositionProperty:()=>Hl,ConstantProperty:()=>Fi,ConstantSpline:()=>kw,ContentMetadata:()=>wM,Context:()=>Mv,ContextLimits:()=>qt,CoplanarPolygonGeometry:()=>NN,CoplanarPolygonGeometryLibrary:()=>Yb,CoplanarPolygonOutlineGeometry:()=>Dm,CornerType:()=>Ro,CorrelationGroup:()=>Zw,CorridorGeometry:()=>m0,CorridorGeometryLibrary:()=>Fo,CorridorGeometryUpdater:()=>dN,CorridorGraphics:()=>Q_,CorridorOutlineGeometry:()=>lN,Credit:()=>Ot,CreditDisplay:()=>pF,CubeMap:()=>Ic,CubeMapFace:()=>V2,CubicRealPolynomial:()=>X_,CullFace:()=>Ti,CullingVolume:()=>Qr,CumulusCloud:()=>pm,CustomDataSource:()=>bN,CustomHeightmapTerrainProvider:()=>aee,CustomShader:()=>eL,CustomShaderMode:()=>ay,CustomShaderPipelineStage:()=>WW,CustomShaderTranslucencyMode:()=>Ix,CuttingFilterUtil:()=>Pv,CylinderGeometry:()=>c0,CylinderGeometryLibrary:()=>cS,CylinderGeometryUpdater:()=>gN,CylinderGraphics:()=>j_,CylinderOutlineGeometry:()=>yN,CzmlDataSource:()=>GN,DataSource:()=>As,DataSourceClock:()=>Np,DataSourceCollection:()=>EN,DataSourceDisplay:()=>d9,DebugAppearance:()=>Kte,DebugCameraPrimitive:()=>z0,DebugInspector:()=>yF,DebugModelMatrixPrimitive:()=>gF,DefaultProxy:()=>lee,DepthFunction:()=>al,DepthPlane:()=>CF,DequantizationPipelineStage:()=>vW,DerivedCommand:()=>fu,DeveloperError:()=>be,DeviceOrientationCameraController:()=>LF,DirectionalLight:()=>Qte,DiscardEmptyTileImagePolicy:()=>YR,DiscardMissingTileImagePolicy:()=>g5,DistanceDisplayCondition:()=>nn,DistanceDisplayConditionGeometryInstanceAttribute:()=>Ci,DoubleEndedPriorityQueue:()=>cC,DoublyLinkedList:()=>uv,DracoLoader:()=>fp,DrawCommand:()=>Je,DynamicAtmosphereLightingType:()=>yC,DynamicGeometryBatch:()=>IS,DynamicGeometryUpdater:()=>Ki,EarthOrientationParameters:()=>a2,EarthOrientationParametersSample:()=>Gg,EasingFunction:()=>zs,EllipseGeometry:()=>pd,EllipseGeometryLibrary:()=>ou,EllipseGeometryUpdater:()=>XN,EllipseGraphics:()=>q_,EllipseOutlineGeometry:()=>ju,Ellipsoid:()=>oe,EllipsoidGeodesic:()=>_b,EllipsoidGeometry:()=>Vs,EllipsoidGeometryUpdater:()=>wN,EllipsoidGraphics:()=>$_,EllipsoidOutlineGeometry:()=>ml,EllipsoidPrimitive:()=>VF,EllipsoidRhumbLine:()=>Xc,EllipsoidSurfaceAppearance:()=>Xh,EllipsoidSurfaceVoxelAppearance:()=>oZ,EllipsoidSurfaceVoxelAppearanceFS:()=>rv,EllipsoidSurfaceVoxelAppearanceVS:()=>ov,EllipsoidTangentPlane:()=>ys,EllipsoidTerrainProvider:()=>P0,EllipsoidalOccluder:()=>Py,Empty3DTileContent:()=>Xu,EncodedCartesian3:()=>_i,Entity:()=>Jr,EntityCluster:()=>Bu,EntityCollection:()=>Qa,EntityView:()=>m9,Event:()=>Se,EventHelper:()=>vs,Expression:()=>ih,ExpressionNodeType:()=>Dt,ExtrapolationType:()=>Ku,FeatureDetection:()=>bn,FeatureIdPipelineStage:()=>Ex,FlattenTool:()=>Kie,Fog:()=>GF,ForEach:()=>De,FrameBufferType:()=>a0,FrameRateMonitor:()=>EF,FrameState:()=>IF,Framebuffer:()=>Jo,FramebufferManager:()=>ki,FrustumCommands:()=>XF,FrustumGeometry:()=>dC,FrustumOutlineGeometry:()=>e5,Fullscreen:()=>fs,FullscreenButton:()=>c3,FullscreenButtonViewModel:()=>a3,GeoJsonDataSource:()=>M9,GeoJsonLoader:()=>Dw,GeocodeType:()=>DT,Geocoder:()=>d3,GeocoderService:()=>NR,GeocoderViewModel:()=>l3,GeographicProjection:()=>So,GeographicTilingScheme:()=>Uo,Geometry:()=>It,Geometry3DTileContent:()=>vv,GeometryAttribute:()=>Ee,GeometryAttributes:()=>An,GeometryFactory:()=>pee,GeometryInstance:()=>wt,GeometryInstanceAttribute:()=>cl,GeometryOffsetAttribute:()=>vn,GeometryPipeline:()=>fi,GeometryPipelineStage:()=>kW,GeometryType:()=>Em,GeometryUpdater:()=>Hi,GeometryUpdaterSet:()=>DS,GeometryVisualizer:()=>$N,GetFeatureInfoFormat:()=>ZC,Globe:()=>QF,GlobeDepth:()=>jF,GlobeEffect:()=>zie,GlobeSurfaceShaderSet:()=>vF,GlobeSurfaceTile:()=>Mh,GlobeSurfaceTileProvider:()=>DF,GlobeTranslucency:()=>UF,GlobeTranslucencyFramebuffer:()=>qF,GlobeTranslucencyState:()=>$F,GltfBufferViewLoader:()=>SV,GltfDracoLoader:()=>CV,GltfGpmLoader:()=>Gw,GltfGpmLocal:()=>wV,GltfImageLoader:()=>LV,GltfIndexBufferLoader:()=>VV,GltfJsonLoader:()=>RV,GltfLoader:()=>Dc,GltfLoaderUtil:()=>Hd,GltfMeshPrimitiveGpmLoader:()=>Mw,GltfStructuralMetadataLoader:()=>Sw,GltfTextureLoader:()=>GV,GltfVertexBufferLoader:()=>EV,GoogleEarthEnterpriseImageryProvider:()=>yne,GoogleEarthEnterpriseMapsProvider:()=>aF,GoogleEarthEnterpriseMetadata:()=>og,GoogleEarthEnterpriseTerrainData:()=>FR,GoogleEarthEnterpriseTerrainProvider:()=>See,GoogleEarthEnterpriseTileInformation:()=>n5,GoogleMaps:()=>mC,GpxDataSource:()=>v9,GregorianDate:()=>ob,GridImageryProvider:()=>gne,GridMaterialProperty:()=>WZ,GroundGeometryUpdater:()=>Gi,GroundPolylineGeometry:()=>Y_,GroundPolylinePrimitive:()=>tp,GroundPrimitive:()=>Aa,GroundPrimitiveRectangleGenerater:()=>Bie,GroupMetadata:()=>lZ,HashMap:()=>Hm,HeadingPitchRange:()=>Il,HeadingPitchRoll:()=>Gs,Heap:()=>$G,HeightReference:()=>rt,HeightmapEncoding:()=>Ch,HeightmapTerrainData:()=>Kc,HeightmapTessellator:()=>GR,HermitePolynomialApproximation:()=>xN,HermiteSpline:()=>Zx,HilbertOrder:()=>fZ,HomeButton:()=>m3,HomeButtonViewModel:()=>u3,HorizontalOrigin:()=>mo,I3SBuildingSceneLayerExplorer:()=>yoe,I3SBuildingSceneLayerExplorerViewModel:()=>h3,I3SDataProvider:()=>ff,I3SDecoder:()=>eA,I3SFeature:()=>tA,I3SField:()=>nA,I3SGeometry:()=>mG,I3SLayer:()=>vC,I3SNode:()=>hG,I3SStatistics:()=>rA,I3SSublayer:()=>aA,I3SSymbology:()=>oA,I3dmLoader:()=>Uw,I3dmParser:()=>F1,Iau2000Orientation:()=>o5,Iau2006XysData:()=>c2,Iau2006XysSample:()=>Z_,IauOrientationAxes:()=>r5,IauOrientationParameters:()=>i5,ImageBasedLighting:()=>Xb,ImageBasedLightingPipelineStage:()=>nW,ImageMaterialProperty:()=>Hg,Imagery:()=>rG,ImageryLayer:()=>Ys,ImageryLayerCollection:()=>kF,ImageryLayerFeatureInfo:()=>cf,ImageryProvider:()=>_d,ImageryState:()=>qi,Implicit3DTileContent:()=>gZ,ImplicitAvailabilityBitstream:()=>bZ,ImplicitMetadataView:()=>yZ,ImplicitSubdivisionScheme:()=>qs,ImplicitSubtree:()=>yS,ImplicitSubtreeCache:()=>j5,ImplicitSubtreeMetadata:()=>Nv,ImplicitTileCoordinates:()=>by,ImplicitTileset:()=>fy,IndexDatatype:()=>qe,InfoBox:()=>f3,InfoBoxViewModel:()=>p3,InspectorShared:()=>jc,InstanceAttributeSemantic:()=>kr,InstancingPipelineStage:()=>gW,InterceptorsUtil:()=>CL,InterpolationAlgorithm:()=>Lee,InterpolationType:()=>hp,Intersect:()=>Qt,IntersectionTests:()=>Pi,Intersections2D:()=>ng,Interval:()=>Pa,InvertClassification:()=>fG,Ion:()=>lp,IonGeocoderService:()=>c5,IonImageryProvider:()=>lg,IonResource:()=>ed,IonWorldImageryStyle:()=>dg,Iso8601:()=>tt,JobScheduler:()=>cA,JobType:()=>Ac,JsonMetadataTable:()=>jb,JulianDate:()=>ee,KTX2Transcoder:()=>L2,KeyboardEventModifier:()=>$a,KeyframeNode:()=>Qo,KmlCamera:()=>N9,KmlDataSource:()=>B9,KmlLookAt:()=>F9,KmlTour:()=>A9,KmlTourFlyTo:()=>U9,KmlTourWait:()=>k9,Label:()=>Kx,LabelCollection:()=>$m,LabelGraphics:()=>ip,LabelStyle:()=>Yr,LabelVisualizer:()=>e9,LagrangePolynomialApproximation:()=>TN,LeapSecond:()=>Do,Light:()=>Sne,LightManager:()=>q0,LightingMode:()=>Sd,LightingModel:()=>e0,LightingPipelineStage:()=>YW,LinearApproximation:()=>LS,LinearSpline:()=>Vx,M3D10MetadataTable:()=>HP,M3D20MetadataTable:()=>OP,M3D21MetadataTable:()=>tx,M3DAttContentFactory:()=>XM,M3DAttParser:()=>Bf,M3DB3dmLoader:()=>QP,M3DContentFactory:()=>Ax,M3DContentType:()=>uy,M3DDataLoader:()=>nv,M3DDataParser:()=>tv,M3DGltfLoader:()=>JP,M3DGltfParser:()=>YP,M3DI3dmLoader:()=>jP,M3DPntsLoader:()=>ev,M3DPntsParser:()=>qP,M3DTidParser:()=>zM,M3DTree:()=>eoe,MAPGIS_VERSION:()=>V5t,ManagedArray:()=>Mc,MapGISM3D:()=>Q1,MapGISM3DSet:()=>Cl,MapGISM3DTileContent:()=>dx,MapGISM3DVoxelContent:()=>cv,MapGISVoxelPrimitive:()=>J1,MapMode2D:()=>uu,MapProjection:()=>Ree,MapboxImageryProvider:()=>cF,MapboxStyleImageryProvider:()=>Cne,Material:()=>Wi,MaterialAppearance:()=>or,MaterialPipelineStage:()=>OW,MaterialProperty:()=>Hr,Math:()=>M,Matrix2:()=>Wo,Matrix3:()=>$,Matrix4:()=>P,Megatexture:()=>yG,MeshPrimitiveGpmLocal:()=>Xw,MetadataClass:()=>ua,MetadataClassProperty:()=>jf,MetadataComponentType:()=>pn,MetadataEntity:()=>ci,MetadataEnum:()=>gw,MetadataEnumValue:()=>yw,MetadataPicking:()=>lA,MetadataPickingPipelineStage:()=>Pu,MetadataPipelineStage:()=>Om,MetadataSchema:()=>Tl,MetadataSchemaLoader:()=>IV,MetadataSemantic:()=>gS,MetadataTable:()=>gl,MetadataTableProperty:()=>_V,MetadataType:()=>Jt,MipmapHint:()=>wf,Model:()=>Ya,Model3DTileContent:()=>Sl,ModelAlphaOptions:()=>gP,ModelAnimation:()=>Ow,ModelAnimationChannel:()=>Bw,ModelAnimationCollection:()=>Kw,ModelAnimationLoop:()=>Bd,ModelAnimationState:()=>_p,ModelArticulation:()=>oW,ModelArticulationStage:()=>iW,ModelClippingGeometryPipelineStage:()=>lW,ModelClippingPlanesPipelineStage:()=>aW,ModelClippingPolygonsPipelineStage:()=>mW,ModelColorPipelineStage:()=>Gx,ModelComponents:()=>hn,ModelDrawCommand:()=>MP,ModelDrawCommands:()=>PP,ModelExplosion:()=>ioe,ModelExplosionPipelineStage:()=>mP,ModelFeature:()=>Hw,ModelFeatureTable:()=>Qw,ModelFlattenPipelineStage:()=>fP,ModelGraphics:()=>Zb,ModelLightingOptions:()=>GP,ModelMatrixUpdateStage:()=>xW,ModelNode:()=>hW,ModelPMPipelineStage:()=>hP,ModelRenderResources:()=>_P,ModelRuntimeNode:()=>_W,ModelRuntimePrimitive:()=>bP,ModelSceneGraph:()=>DP,ModelSilhouettePipelineStage:()=>LP,ModelSkin:()=>yP,ModelSplitterPipelineStage:()=>ZP,ModelStatistics:()=>UP,ModelStretchPipelineStage:()=>dP,ModelSwipePipelineStage:()=>NP,ModelType:()=>xr,ModelUtility:()=>fn,ModelVisualizer:()=>t9,Moon:()=>uA,MorphTargetsPipelineStage:()=>HW,MorphWeightSpline:()=>Xee,MortonOrder:()=>Yx,Multiple3DTileContent:()=>d1,MultisampleFramebuffer:()=>ww,NavigationHelpButton:()=>y3,NavigationHelpButtonViewModel:()=>b3,NearFarScalar:()=>sn,NetCDFLoader:()=>sv,NeverTileDiscardPolicy:()=>Vne,NodeRenderResources:()=>RP,NodeStatisticsPipelineStage:()=>TW,NodeTransformationProperty:()=>e1,OIDTexturePipelineStage:()=>cP,OIT:()=>hA,Occluder:()=>l5,OffsetGeometryInstanceAttribute:()=>Ho,OpenCageGeocoderService:()=>Wee,OpenStreetMapImageryProvider:()=>bg,OrderedGroundPrimitiveCollection:()=>IN,OrientedBoundingBox:()=>Hn,OrthographicFrustum:()=>In,OrthographicOffCenterFrustum:()=>Xs,OutlineForOid:()=>BA,OutlineForPrimitives:()=>OA,OutlineRenderMode:()=>Lp,Packable:()=>Pee,PackableForInterpolation:()=>vee,ParallelLight:()=>EG,Particle:()=>xG,ParticleBurst:()=>Ine,ParticleEmitter:()=>Xne,ParticleSystem:()=>Mne,Pass:()=>Ze,PassState:()=>Gr,PathGraphics:()=>Rb,PathVisualizer:()=>n9,PeliasGeocoderService:()=>a5,PerInstanceColorAppearance:()=>Wn,PerformanceDisplay:()=>yg,PerformanceWatchdog:()=>x3,PerformanceWatchdogViewModel:()=>g3,PerspectiveFrustum:()=>Bi,PerspectiveOffCenterFrustum:()=>Td,PickDepth:()=>fA,PickDepthFramebuffer:()=>yA,PickFramebuffer:()=>xA,PickedMetadataInfo:()=>gA,Picking:()=>SA,PickingPipelineStage:()=>JW,PinBuilder:()=>$y,PixelDatatype:()=>ke,PixelFormat:()=>Ye,Plane:()=>Vn,PlaneGeometry:()=>z1,PlaneGeometryUpdater:()=>PN,PlaneGraphics:()=>hM,PlaneOutlineGeometry:()=>WN,PntsLoader:()=>zP,PntsParser:()=>B1,PointCloud:()=>LA,PointCloudEyeDomeLighting:()=>xp,PointCloudShading:()=>Bm,PointCloudStylingPipelineStage:()=>jW,PointGraphics:()=>n1,PointLight:()=>GG,PointPrimitive:()=>Za,PointPrimitiveCollection:()=>IZ,PointVisualizer:()=>o9,PolygonGeometry:()=>Nc,PolygonGeometryLibrary:()=>Zi,PolygonGeometryUpdater:()=>AN,PolygonGraphics:()=>op,PolygonHierarchy:()=>da,PolygonOutlineGeometry:()=>FN,PolygonPipeline:()=>Ji,PolygonSwiperCullingCommand:()=>cD,Polyline:()=>rh,PolylineArrowMaterialProperty:()=>vZ,PolylineCollection:()=>Gp,PolylineColorAppearance:()=>Js,PolylineDashMaterialProperty:()=>FZ,PolylineGeometry:()=>Ky,PolylineGeometryUpdater:()=>a9,PolylineGlowMaterialProperty:()=>DZ,PolylineGraphics:()=>ll,PolylineMaterialAppearance:()=>mc,PolylineOutlineMaterialProperty:()=>lT,PolylinePipeline:()=>Zo,PolylineVisualizer:()=>l9,PolylineVolumeAnimationGeometry:()=>UG,PolylineVolumeGeometry:()=>fd,PolylineVolumeGeometryLibrary:()=>Mp,PolylineVolumeGeometryUpdater:()=>BN,PolylineVolumeGraphics:()=>i1,PolylineVolumeOutlineGeometry:()=>YN,PositionProperty:()=>np,PositionPropertyArray:()=>Fy,PostProcessStage:()=>Ko,PostProcessStageCollection:()=>JA,PostProcessStageComposite:()=>Vd,PostProcessStageLibrary:()=>xu,PostProcessStageSampleMode:()=>gm,PostProcessStageTextureCache:()=>HC,PpeMetadata:()=>Iw,PpeSource:()=>ooe,PpeTexture:()=>Ew,Primitive:()=>Un,PrimitiveCollection:()=>hd,PrimitiveLoadPlan:()=>P1,PrimitiveOutlineGenerator:()=>W1,PrimitiveOutlinePipelineStage:()=>eP,PrimitivePipeline:()=>U_,PrimitiveRenderResources:()=>EP,PrimitiveState:()=>xs,PrimitiveStatisticsPipelineStage:()=>tP,PrimitiveType:()=>Fe,ProjectionPicker:()=>_3,ProjectionPickerViewModel:()=>T3,Property:()=>Q,PropertyArray:()=>kZ,PropertyAttribute:()=>$b,PropertyAttributeProperty:()=>qM,PropertyBag:()=>Ud,PropertyTable:()=>as,PropertyTexture:()=>qb,PropertyTextureProperty:()=>jM,ProviderViewModel:()=>ra,Proxy:()=>Fee,QuadraticRealPolynomial:()=>Bl,QuadtreeOccluders:()=>zF,QuadtreePrimitive:()=>JF,QuadtreeTile:()=>YF,QuadtreeTileLoadState:()=>nc,QuadtreeTileProvider:()=>Jne,QuantizedMeshTerrainData:()=>rC,QuarticRealPolynomial:()=>$2,Quaternion:()=>Be,QuaternionSpline:()=>Yw,Queue:()=>ox,Ray:()=>Dn,Rectangle:()=>he,RectangleCollisionChecker:()=>YS,RectangleGeometry:()=>Fu,RectangleGeometryLibrary:()=>Sa,RectangleGeometryUpdater:()=>ON,RectangleGraphics:()=>rp,RectangleOutlineGeometry:()=>m1,ReferenceFrame:()=>vo,ReferenceProperty:()=>Ay,RenderDebug:()=>Hie,RenderState:()=>Ne,Renderbuffer:()=>Wu,RenderbufferFormat:()=>id,Request:()=>Mr,RequestErrorEvent:()=>Vf,RequestScheduler:()=>rc,RequestState:()=>Xi,RequestType:()=>Rs,Resource:()=>Xe,ResourceCache:()=>ji,ResourceCacheKey:()=>Jd,ResourceCacheStatistics:()=>_w,ResourceLoader:()=>vi,ResourceLoaderState:()=>Xt,Rotation:()=>mh,RuntimeError:()=>le,S2Cell:()=>Bb,SDFSettings:()=>Oa,SampledPositionProperty:()=>Tc,SampledProperty:()=>Ju,Sampler:()=>un,ScaledPositionProperty:()=>x0,Scene:()=>hD,SceneFramebuffer:()=>AC,SceneMode:()=>ae,SceneMode2DPipelineStage:()=>nP,SceneModePicker:()=>C3,SceneModePickerViewModel:()=>S3,SceneProjectorEx:()=>Fie,SceneProjectorExFS:()=>ID,SceneProjectorSourceType:()=>Bs,SceneTransforms:()=>yo,SceneTransitioner:()=>jA,ScreenSpaceCameraController:()=>eD,ScreenSpaceEventHandler:()=>um,ScreenSpaceEventType:()=>qn,SectionCylinderGeometry:()=>mS,SectionFrameBuffer:()=>Rv,SectionPlaneGeometry:()=>Ha,SectionPolygonGeometry:()=>Cg,SectionRender:()=>Wv,SectionRenderUtil:()=>AP,SelectedFeatureIdPipelineStage:()=>Xx,SelectionIndicator:()=>Z3,SelectionIndicatorViewModel:()=>V3,SensorVolumePortionToDisplay:()=>OZ,ShaderBuilder:()=>k1,ShaderCache:()=>Gv,ShaderDestination:()=>xe,ShaderFunction:()=>TP,ShaderProgram:()=>zt,ShaderSource:()=>Oe,ShaderStruct:()=>xP,ShadowMap:()=>bf,ShadowMapShader:()=>H0,ShadowMode:()=>On,ShadowVolumeAppearance:()=>Ru,ShowGeometryInstanceAttribute:()=>Qn,Simon1994PlanetaryPositions:()=>Hx,SimplePolylineGeometry:()=>jee,SingleTileImageryProvider:()=>VC,SkinningPipelineStage:()=>oP,SkyAtmosphere:()=>bD,SkyBox:()=>iL,SpatialNode:()=>rD,Spdcf:()=>Rw,SpecularEnvironmentCubeMap:()=>cp,SphereEmitter:()=>Rie,SphereGeometry:()=>qee,SphereOutlineGeometry:()=>Kb,Spherical:()=>_N,Spline:()=>nr,SplitDirection:()=>ss,Splitter:()=>_G,SpotLight:()=>IG,StaticGeometryColorBatch:()=>bh,StaticGeometryPerMaterialBatch:()=>gh,StaticGroundGeometryColorBatch:()=>rR,StaticGroundGeometryPerMaterialBatch:()=>qN,StaticGroundPolylinePerMaterialBatch:()=>c9,StaticOutlineGeometryBatch:()=>aR,StencilConstants:()=>an,StencilFunction:()=>Li,StencilOperation:()=>Nt,SteppedSpline:()=>zw,Stereographic:()=>pl,StorageType:()=>_x,StripeMaterialProperty:()=>YZ,StripeOrientation:()=>Ap,StructuralMetadata:()=>ur,StyleCommandsNeeded:()=>Sp,StyleExpression:()=>Gie,Sun:()=>VD,SunLight:()=>Cy,SunPostProcess:()=>iD,SupportedImageFormats:()=>Cw,SvgPathBindingHandler:()=>kD,SwipeModeType:()=>Kn,SwiperCullingFramebuffer:()=>lD,TaskProcessor:()=>oo,Terrain:()=>ZD,TerrainData:()=>$p,TerrainEncoding:()=>Ml,TerrainFillMesh:()=>lG,TerrainMesh:()=>Vh,TerrainOffsetProperty:()=>o1,TerrainProvider:()=>ta,TerrainQuantization:()=>ja,TerrainState:()=>cr,Texture:()=>it,Texture3D:()=>av,TextureAtlas:()=>Ox,TextureCache:()=>Ev,TextureMagnificationFilter:()=>Ri,TextureManager:()=>sD,TextureMinificationFilter:()=>gn,TextureUniform:()=>Jie,TextureWrap:()=>Nn,TileAvailability:()=>ef,TileBoundingRegion:()=>pc,TileBoundingS2Cell:()=>x1,TileBoundingSphere:()=>Pc,TileBoundingVolume:()=>Eie,TileCoordinatesImageryProvider:()=>GD,TileDiscardPolicy:()=>Xie,TileEdge:()=>Jn,TileImagery:()=>sG,TileMapServiceImageryProvider:()=>HT,TileMetadata:()=>WM,TileOrientedBoundingBox:()=>vc,TileProviderError:()=>Ir,TileReplacementQueue:()=>BF,TileSelectionResult:()=>Ni,TileState:()=>Mie,Tileset3DTileContent:()=>Fv,TilesetMetadata:()=>lv,TilesetPipelineStage:()=>jw,TilingScheme:()=>$ee,TimeConstants:()=>wi,TimeDynamicImagery:()=>RC,TimeDynamicPointCloud:()=>FG,TimeInterval:()=>$n,TimeIntervalCollection:()=>Fs,TimeIntervalCollectionPositionProperty:()=>Dy,TimeIntervalCollectionProperty:()=>Uy,TimeStandard:()=>Ei,Timeline:()=>E3,TimelineHighlightRange:()=>R3,TimelineTrack:()=>G3,Tipsify:()=>kX,ToggleButtonViewModel:()=>s_,Tonemapper:()=>xg,Transforms:()=>Zt,TranslationRotationScale:()=>Jg,TranslucentTileClassification:()=>_A,TridiagonalSystemSolver:()=>UV,TrustedServers:()=>SL,TweenCollection:()=>QC,UniformState:()=>Xv,UniformType:()=>VG,UrlTemplateImageryProvider:()=>Jc,UrlUtil:()=>b4,Util:()=>Jx,VERSION:()=>L5t,VRButton:()=>X3,VRButtonViewModel:()=>I3,VRTheWorldTerrainProvider:()=>tte,VaryingType:()=>Qie,Vector3DTileBatch:()=>Yf,Vector3DTileClampedPolylines:()=>qv,Vector3DTileContent:()=>eN,Vector3DTileGeometry:()=>Vy,Vector3DTilePoints:()=>Bv,Vector3DTilePolygons:()=>Ov,Vector3DTilePolylines:()=>TS,Vector3DTilePrimitive:()=>fS,VelocityOrientationProperty:()=>CN,VelocityVectorProperty:()=>GS,VertexArray:()=>Yn,VertexArrayFacade:()=>yy,VertexAttributeSemantic:()=>ut,VertexFormat:()=>ve,VerticalExaggeration:()=>rr,VerticalExaggerationPipelineStage:()=>sP,VerticalOrigin:()=>ui,VideoSynchronizer:()=>ete,View:()=>kC,Viewer:()=>Zoe,ViewportQuad:()=>RG,ViewshedAnalysis:()=>Aie,Visibility:()=>hs,VisualAnalysisManager:()=>p5,Visualizer:()=>k$,VoxelBoxShape:()=>D0,VoxelCell:()=>CG,VoxelContent:()=>q5,VoxelCylinderShape:()=>U0,VoxelEllipsoidShape:()=>_C,VoxelInspector:()=>W3,VoxelInspectorViewModel:()=>w3,VoxelPrimitive:()=>i_,VoxelProvider:()=>vie,VoxelRenderResources:()=>U5,VoxelShape:()=>Nie,VoxelShapeType:()=>Xo,VoxelTraversal:()=>LG,VulkanConstants:()=>nte,WallGeometry:()=>HN,WallGeometryLibrary:()=>PS,WallGeometryUpdater:()=>jN,WallGraphics:()=>Gb,WallOutlineGeometry:()=>QN,WebGLConstants:()=>te,WebMapServiceImageryProvider:()=>dF,WebMapTileServiceImageryProvider:()=>mF,WebMercatorProjection:()=>Co,WebMercatorTilingScheme:()=>na,WindingOrder:()=>la,WireframeIndexGenerator:()=>HV,WireframePipelineStage:()=>aP,_shadersAcesTonemappingStage:()=>VA,_shadersAdditiveBlend:()=>tD,_shadersAdjustTranslucentFS:()=>gG,_shadersAllMaterialAppearanceFS:()=>y2,_shadersAllMaterialAppearanceVS:()=>g2,_shadersAmbientOcclusionGenerate:()=>ZA,_shadersAmbientOcclusionModulate:()=>RA,_shadersAspectRampMaterial:()=>R2,_shadersAtmosphereCommon:()=>mg,_shadersAtmosphereStageFS:()=>qw,_shadersAtmosphereStageVS:()=>$w,_shadersBasicMaterialAppearanceFS:()=>x2,_shadersBasicMaterialAppearanceVS:()=>T2,_shadersBillboardCollectionFS:()=>fv,_shadersBillboardCollectionVS:()=>bv,_shadersBlackAndWhite:()=>GA,_shadersBloomComposite:()=>EA,_shadersBrdfLutGeneratorFS:()=>L5,_shadersBrightPass:()=>nD,_shadersBrightness:()=>IA,_shadersBumpMapMaterial:()=>G2,_shadersCPUStylingStageFS:()=>ZW,_shadersCPUStylingStageVS:()=>VW,_shadersCheckerboardMaterial:()=>E2,_shadersCloudCollectionFS:()=>eF,_shadersCloudCollectionVS:()=>tF,_shadersCloudNoiseFS:()=>nF,_shadersCloudNoiseVS:()=>iF,_shadersCompareAndPackTranslucentDepth:()=>TA,_shadersCompositeOITFS:()=>mA,_shadersCompositeTranslucentClassification:()=>UC,_shadersContrastBias:()=>XA,_shadersCustomShaderStageFS:()=>EW,_shadersCustomShaderStageVS:()=>GW,_shadersCzmBuiltins:()=>W_,_shadersDepthOfField:()=>MA,_shadersDepthPlaneFS:()=>xF,_shadersDepthPlaneVS:()=>TF,_shadersDepthView:()=>wA,_shadersDepthViewPacked:()=>qie,_shadersDotMaterial:()=>I2,_shadersEdgeDetection:()=>WA,_shadersElevationBandMaterial:()=>X2,_shadersElevationContourMaterial:()=>M2,_shadersElevationRampMaterial:()=>w2,_shadersEllipsoidFS:()=>tG,_shadersEllipsoidSurfaceAppearanceFS:()=>ZF,_shadersEllipsoidSurfaceAppearanceVS:()=>RF,_shadersEllipsoidVS:()=>nG,_shadersFXAA:()=>NA,_shadersFXAA3_11:()=>YA,_shadersFadeMaterial:()=>W2,_shadersFeatureIdStageFS:()=>IW,_shadersFeatureIdStageVS:()=>XW,_shadersFilmicTonemapping:()=>PA,_shadersGaussianBlur1D:()=>t_,_shadersGeometryStageFS:()=>NW,_shadersGeometryStageVS:()=>FW,_shadersGlobeFS:()=>WF,_shadersGlobeVS:()=>PF,_shadersGridMaterial:()=>P2,_shadersGroundAtmosphere:()=>iG,_shadersHSBToRGB:()=>WI,_shadersHSLToRGB:()=>PI,_shadersImageBasedLightingStageFS:()=>tW,_shadersInstancingStageCommon:()=>pW,_shadersInstancingStageVS:()=>fW,_shadersIntersectBox:()=>w5,_shadersIntersectClippingPlanes:()=>M5,_shadersIntersectCylinder:()=>W5,_shadersIntersectDepth:()=>X5,_shadersIntersectEllipsoid:()=>P5,_shadersIntersectLongitude:()=>BR,_shadersIntersection:()=>xC,_shadersIntersectionUtils:()=>I5,_shadersLegacyInstancingStageVS:()=>bW,_shadersLensFlare:()=>AA,_shadersLightingStageFS:()=>zW,_shadersMaterialStageFS:()=>BW,_shadersMegatexture:()=>D5,_shadersMetadataStageFS:()=>MW,_shadersMetadataStageVS:()=>wW,_shadersModelClippingGeometryStageFS:()=>cW,_shadersModelClippingPlanesStageFS:()=>sW,_shadersModelClippingPolygonsStageFS:()=>uW,_shadersModelClippingPolygonsStageVS:()=>dW,_shadersModelColorStageFS:()=>rW,_shadersModelExplosionStageVS:()=>uP,_shadersModelFS:()=>WP,_shadersModelFlattenStageVS:()=>pP,_shadersModelSilhouetteStageFS:()=>SP,_shadersModelSilhouetteStageVS:()=>CP,_shadersModelSplitterStageFS:()=>VP,_shadersModelStretchStageVS:()=>lP,_shadersModelSwipePipelineStageFS:()=>vP,_shadersModelVS:()=>wP,_shadersModifiedReinhardTonemapping:()=>DA,_shadersMorphTargetsStageVS:()=>KW,_shadersNightVision:()=>UA,_shadersNormalMapMaterial:()=>v2,_shadersOctree:()=>A5,_shadersPassThrough:()=>yu,_shadersPassThroughDepth:()=>QT,_shadersPbrNeutralTonemapping:()=>vA,_shadersPerInstanceColorAppearanceFS:()=>K2,_shadersPerInstanceColorAppearanceVS:()=>H2,_shadersPerInstanceFlatColorAppearanceFS:()=>I_,_shadersPerInstanceFlatColorAppearanceVS:()=>J2,_shadersPointCloudEyeDomeLighting:()=>Pw,_shadersPointCloudStylingStageVS:()=>QW,_shadersPointPrimitiveCollectionFS:()=>cT,_shadersPointPrimitiveCollectionVS:()=>uN,_shadersPolygonSignedDistanceFS:()=>YM,_shadersPolylineArrowMaterial:()=>N2,_shadersPolylineColorAppearanceVS:()=>eM,_shadersPolylineCommon:()=>Gu,_shadersPolylineDashMaterial:()=>F2,_shadersPolylineFS:()=>O_,_shadersPolylineGlowMaterial:()=>A2,_shadersPolylineMaterialAppearanceVS:()=>tM,_shadersPolylineOutlineMaterial:()=>D2,_shadersPolylineShadowVolumeFS:()=>QX,_shadersPolylineShadowVolumeMorphFS:()=>jX,_shadersPolylineShadowVolumeMorphVS:()=>qX,_shadersPolylineShadowVolumeVS:()=>$X,_shadersPolylineVS:()=>Av,_shadersPrimitiveOutlineStageFS:()=>$W,_shadersPrimitiveOutlineStageVS:()=>qW,_shadersRGBToHSB:()=>aX,_shadersRGBToHSL:()=>cX,_shadersRGBToXYZ:()=>lX,_shadersReinhardTonemapping:()=>kA,_shadersReprojectWebMercatorFS:()=>NF,_shadersReprojectWebMercatorVS:()=>FF,_shadersRimLightingMaterial:()=>U2,_shadersSelectedFeatureIdStageCommon:()=>jie,_shadersSelectedFeatureIdStageFS:()=>AW,_shadersSelectedFeatureIdStageVS:()=>DW,_shadersShadowVolumeAppearanceFS:()=>KL,_shadersShadowVolumeAppearanceVS:()=>FX,_shadersShadowVolumeFS:()=>Yg,_shadersSilhouette:()=>zA,_shadersSkinningStageVS:()=>iP,_shadersSkyAtmosphereCommon:()=>XG,_shadersSkyAtmosphereFS:()=>pD,_shadersSkyAtmosphereVS:()=>fD,_shadersSkyBoxFS:()=>yD,_shadersSkyBoxVS:()=>gD,_shadersSlopeRampMaterial:()=>k2,_shadersStripeMaterial:()=>z2,_shadersSunFS:()=>TD,_shadersSunTextureFS:()=>_D,_shadersSunVS:()=>SD,_shadersTexturedMaterialAppearanceFS:()=>_2,_shadersTexturedMaterialAppearanceVS:()=>S2,_shadersVector3DTileClampedPolylinesFS:()=>Qv,_shadersVector3DTileClampedPolylinesVS:()=>Jv,_shadersVector3DTilePolylinesVS:()=>Kv,_shadersVectorTileVS:()=>iV,_shadersVerticalExaggerationStageVS:()=>rP,_shadersViewportQuadFS:()=>dD,_shadersViewportQuadVS:()=>lS,_shadersVoxelFS:()=>G5,_shadersVoxelUtils:()=>R5,_shadersVoxelVS:()=>E5,_shadersWater:()=>B2,_shadersWaterMaskMaterial:()=>Y2,_shadersXYZToRGB:()=>vX,_shadersacesTonemapping:()=>QE,_shadersalphaWeight:()=>jE,_shadersantialias:()=>qE,_shadersapplyColorCorrection:()=>$E,_shadersapplyHSBShift:()=>eI,_shadersapproximateSphericalCoordinates:()=>tI,_shadersapproximateTanh:()=>nI,_shadersbackFacing:()=>iI,_shadersbranchFreeTernary:()=>oI,_shaderscascadeColor:()=>rI,_shaderscascadeDistance:()=>sI,_shaderscascadeMatrix:()=>aI,_shaderscascadeWeights:()=>cI,_shadersclipPolygons:()=>lI,_shaderscolumbusViewMorph:()=>dI,_shaderscomputeAtmosphereColor:()=>uI,_shaderscomputeGroundAtmosphereScattering:()=>mI,_shaderscomputePosition:()=>hI,_shaderscomputeScattering:()=>pI,_shadersconvertUvToBox:()=>v5,_shadersconvertUvToCylinder:()=>N5,_shadersconvertUvToEllipsoid:()=>F5,_shaderscosineAndSine:()=>fI,_shaderscreateTranslationMatrix:()=>UE,_shadersdecompressTextureCoordinates:()=>bI,_shadersdegreesPerRadian:()=>iE,_shadersdepthClamp:()=>yI,_shadersdepthRange:()=>oE,_shadersdepthRangeStruct:()=>kE,_shaderseastNorthUpToEyeCoordinates:()=>gI,_shadersellipsoidContainsPoint:()=>xI,_shadersellipsoidTextureCoordinates:()=>TI,_shadersepsilon1:()=>rE,_shadersepsilon2:()=>sE,_shadersepsilon3:()=>aE,_shadersepsilon4:()=>cE,_shadersepsilon5:()=>lE,_shadersepsilon6:()=>dE,_shadersepsilon7:()=>uE,_shadersequalsEpsilon:()=>_I,_shaderseyeOffset:()=>SI,_shaderseyeToWindowCoordinates:()=>CI,_shadersfastApproximateAtan:()=>LI,_shadersfog:()=>VI,_shadersgammaCorrect:()=>ZI,_shadersgeodeticSurfaceNormal:()=>RI,_shadersgeometryClip:()=>GI,_shadersgetDefaultMaterial:()=>EI,_shadersgetDynamicAtmosphereLightDirection:()=>II,_shadersgetLambertDiffuse:()=>XI,_shadersgetSpecular:()=>MI,_shadersgetWaterNoise:()=>wI,_shadershue:()=>vI,_shadersinfinity:()=>mE,_shadersinverseGamma:()=>NI,_shadersisEmpty:()=>FI,_shadersisFull:()=>AI,_shaderslatitudeToWebMercatorFraction:()=>DI,_shaderslineDistance:()=>kI,_shaderslinearToSrgb:()=>UI,_shadersluminance:()=>zI,_shadersmaterial:()=>zE,_shadersmaterialInput:()=>YE,_shadersmaximumComponent:()=>YI,_shadersmetersPerPixel:()=>BI,_shadersmodelMaterial:()=>BE,_shadersmodelToWindowCoordinates:()=>OI,_shadersmodelVertexOutput:()=>OE,_shadersmultiplyWithColorBalance:()=>KI,_shadersnearFarScalar:()=>HI,_shadersoctDecode:()=>JI,_shadersoneOverPi:()=>hE,_shadersoneOverTwoPi:()=>pE,_shaderspackDepth:()=>QI,_shaderspassCesium3DTile:()=>fE,_shaderspassCesium3DTileClassification:()=>bE,_shaderspassCesium3DTileClassificationIgnoreShow:()=>yE,_shaderspassClassification:()=>gE,_shaderspassCompute:()=>xE,_shaderspassEnvironment:()=>TE,_shaderspassGlobe:()=>_E,_shaderspassOpaque:()=>SE,_shaderspassOverlay:()=>CE,_shaderspassTerrainClassification:()=>LE,_shaderspassTranslucent:()=>VE,_shaderspassVoxels:()=>ZE,_shaderspbrLighting:()=>jI,_shaderspbrNeutralTonemapping:()=>qI,_shadersphong:()=>$I,_shaderspi:()=>RE,_shaderspiOverFour:()=>GE,_shaderspiOverSix:()=>EE,_shaderspiOverThree:()=>IE,_shaderspiOverTwo:()=>XE,_shadersplaneDistance:()=>eX,_shaderspointAlongRay:()=>tX,_shadersradiansPerDegree:()=>ME,_shadersray:()=>KE,_shadersrayEllipsoidIntersectionInterval:()=>nX,_shadersraySegment:()=>HE,_shadersraySphereIntersectionInterval:()=>iX,_shadersreadDepth:()=>oX,_shadersreadNonPerspective:()=>rX,_shadersreverseLogDepth:()=>sX,_shadersrollerShutter:()=>dX,_shadersrollerShutterPolygon:()=>uX,_shadersrollerShutterSpyglass:()=>mX,_shadersround:()=>hX,_shaderssaturation:()=>pX,_shaderssceneMode2D:()=>wE,_shaderssceneMode3D:()=>WE,_shaderssceneModeColumbusView:()=>PE,_shaderssceneModeMorphing:()=>vE,_shadersshadowDepthCompare:()=>fX,_shadersshadowParameters:()=>JE,_shadersshadowVisibility:()=>bX,_shaderssignNotZero:()=>yX,_shaderssolarRadius:()=>NE,_shaderssphericalHarmonics:()=>gX,_shaderssrgbToLinear:()=>xX,_shaderstangentToEyeSpaceMatrix:()=>TX,_shaderstextureCube:()=>_X,_shadersthreePiOver2:()=>FE,_shaderstransformPlane:()=>SX,_shaderstranslateRelativeToEye:()=>CX,_shaderstranslucentPhong:()=>LX,_shaderstranspose:()=>VX,_shaderstwoPi:()=>AE,_shadersunpackClippingExtents:()=>ZX,_shadersunpackDepth:()=>RX,_shadersunpackFloat:()=>GX,_shadersunpackUint:()=>EX,_shadersvalueTransform:()=>IX,_shadersvertexLogDepth:()=>XX,_shaderswebMercatorMaxLatitude:()=>DE,_shaderswindowToEyeCoordinates:()=>MX,_shaderswriteDepthClamp:()=>wX,_shaderswriteLogDepth:()=>WX,_shaderswriteNonPerspective:()=>PX,addBuffer:()=>mw,addDefaults:()=>ow,addExtensionsRequired:()=>lw,addExtensionsUsed:()=>Ym,addPipelineExtras:()=>fx,addToArray:()=>Ca,appendForwardSlash:()=>QG,arrayRemoveDuplicates:()=>gr,barycentricCoordinates:()=>v_,binarySearch:()=>Xr,buildModuleUrl:()=>Sn,buildVoxelDrawCommands:()=>z5,clone:()=>Ue,combine:()=>xt,computeFlyToLocationForRectangle:()=>CC,createBillboardPointCallback:()=>xS,createCommand:()=>ti,createDefaultImageryProviderViewModels:()=>n3,createDefaultTerrainProviderViewModels:()=>i3,createElevationBandMaterial:()=>Nte,createGooglePhotorealistic3DTileset:()=>Fte,createGuid:()=>jn,createMaterialPropertyDescriptor:()=>wr,createOsmBuildingsAsync:()=>Ate,createPropertyDescriptor:()=>ge,createRawPropertyDescriptor:()=>Dd,createTangentSpaceDebugPrimitive:()=>Dte,createTaskProcessorWorker:()=>roe,createUUID:()=>tw,createUniform:()=>tE,createUniformArray:()=>nE,createWorldBathymetryAsync:()=>J9,createWorldImageryAsync:()=>ug,createWorldTerrainAsync:()=>aC,decodeGoogleEarthEnterpriseData:()=>Q9,decodeVectorPolylinePositions:()=>$v,defaultValue:()=>g,defer:()=>Xd,defined:()=>d,demodernizeShader:()=>NX,deprecationWarning:()=>lr,destroyObject:()=>fe,exportKml:()=>Kq,findAccessorMinMax:()=>X1,findContentMetadata:()=>Ab,findGroupMetadata:()=>Db,findTileMetadata:()=>l1,forEachTextureInMaterial:()=>ZV,formatError:()=>W0,freezeRenderState:()=>OJ,getAbsoluteUri:()=>Cf,getAccessorByteStride:()=>Kd,getBaseUri:()=>jG,getBinaryAccessor:()=>dl,getClipAndStyleCode:()=>MF,getClippingFunction:()=>ag,getComponentReader:()=>Qb,getElement:()=>li,getExtensionFromUri:()=>p_,getFilenameFromUri:()=>vy,getImageFromTypedArray:()=>t5,getImagePixels:()=>Kh,getJsonFromTypedArray:()=>ho,getMagic:()=>wc,getMetadataClassProperty:()=>wF,getStringFromTypedArray:()=>Wr,getTimestamp:()=>fo,hasExtension:()=>Vi,heightReferenceOnEntityPropertyChanged:()=>Eb,isBitSet:()=>wl,isBlobUri:()=>f_,isCrossOriginUrl:()=>Ig,isDataUri:()=>rb,isLeapYear:()=>Oh,knockout:()=>Re,knockout_3_5_1:()=>dL,knockout_es5:()=>UD,loadAndExecuteScript:()=>b_,loadCubeMap:()=>y5,loadImageFromTypedArray:()=>G1,loadKTX2:()=>Nd,mergeSort:()=>rg,moveTechniqueRenderStates:()=>cw,moveTechniquesToExtension:()=>dw,numberOfComponentsForType:()=>Mu,objectToQuery:()=>y_,oneTimeWarning:()=>Ft,pako_inflate:()=>a1,parseAttBatchTable:()=>Nu,parseBatchTable:()=>Tp,parseFeatureMetadataLegacy:()=>iw,parseGlb:()=>sw,parseResponseHeaders:()=>qG,parseStructuralMetadata:()=>nw,parseVoxelStyles:()=>Ux,pickModel:()=>eZ,pointInsideTriangle:()=>Nee,preprocess3DTileContent:()=>Kf,preprocessM3DContent:()=>iv,processVoxelProperties:()=>k5,queryToObject:()=>Cu,readAccessorPacked:()=>hw,removeExtension:()=>M1,removeExtensionsRequired:()=>rw,removeExtensionsUsed:()=>I1,removePipelineExtras:()=>aw,removeUnusedElements:()=>uw,resizeImageToNextPowerOfTwo:()=>yx,sampleTerrain:()=>d5,sampleTerrainMostDetailed:()=>hC,scaleToGeodeticSurface:()=>h_,srgbToLinear:()=>fC,subdivideArray:()=>AX,subscribeAndEvaluate:()=>Zc,updateAccessorComponentTypes:()=>pw,updateVersion:()=>fw,usesExtension:()=>cs,viewerCesium3DTilesInspectorMixin:()=>Roe,viewerCesiumInspectorMixin:()=>Goe,viewerDragDropMixin:()=>Ioe,viewerPerformanceWatchdogMixin:()=>Xoe,viewerVoxelInspectorMixin:()=>Moe,webGLConstantToGlslType:()=>ite,wrapFunction:()=>h5,writeTextToCanvas:()=>nS,zlib_min:()=>Oie});var jsr=S(C(),1);var vNo=S(C(),1);var oFt=S(C(),1);var X5t=S(C(),1);function Noe(e,t){return e??t}Noe.EMPTY_OBJECT=Object.freeze({});var g=Noe;var w5t=S(C(),1);function PXe(e){return e!=null}var d=PXe;var v5t=S(C(),1);function u_(e){this.name="DeveloperError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}d(Object.create)&&(u_.prototype=Object.create(Error.prototype),u_.prototype.constructor=u_);u_.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return d(this.stack)&&(e+=`
|
|
96
96
|
${this.stack.toString()}`),e};u_.throwInstantiationError=function(){throw new u_("This function defines an interface and should not be called directly.")};var be=u_;var z5t=S(C(),1);var D5t=S(C(),1);var _a={};_a.typeOf={};function vXe(e){return`${e} is required, actual value was undefined`}function fL(e,t,n){return`Expected ${n} to be typeof ${t}, actual typeof was ${e}`}_a.defined=function(e,t){if(!d(t))throw new be(vXe(e))};_a.typeOf.func=function(e,t){if(typeof t!="function")throw new be(fL(typeof t,"function",e))};_a.typeOf.string=function(e,t){if(typeof t!="string")throw new be(fL(typeof t,"string",e))};_a.typeOf.number=function(e,t){if(typeof t!="number")throw new be(fL(typeof t,"number",e))};_a.typeOf.number.lessThan=function(e,t,n){if(_a.typeOf.number(e,t),t>=n)throw new be(`Expected ${e} to be less than ${n}, actual value was ${t}`)};_a.typeOf.number.lessThanOrEquals=function(e,t,n){if(_a.typeOf.number(e,t),t>n)throw new be(`Expected ${e} to be less than or equal to ${n}, actual value was ${t}`)};_a.typeOf.number.greaterThan=function(e,t,n){if(_a.typeOf.number(e,t),t<=n)throw new be(`Expected ${e} to be greater than ${n}, actual value was ${t}`)};_a.typeOf.number.greaterThanOrEquals=function(e,t,n){if(_a.typeOf.number(e,t),t<n)throw new be(`Expected ${e} to be greater than or equal to ${n}, actual value was ${t}`)};_a.typeOf.object=function(e,t){if(typeof t!="object")throw new be(fL(typeof t,"object",e))};_a.typeOf.bool=function(e,t){if(typeof t!="boolean")throw new be(fL(typeof t,"boolean",e))};_a.typeOf.bigint=function(e,t){if(typeof t!="bigint")throw new be(fL(typeof t,"bigint",e))};_a.typeOf.number.equals=function(e,t,n,i){if(_a.typeOf.number(e,n),_a.typeOf.number(t,i),n!==i)throw new be(`${e} must be equal to ${t}, the actual values are ${n} and ${i}`)};var ao=_a;function KG(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}Object.defineProperties(KG.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}});KG.prototype.addEventListener=function(e,t){this._listeners.push(e),this._scopes.push(t);let n=this;return function(){n.removeEventListener(e,t)}};KG.prototype.removeEventListener=function(e,t){let n=this._listeners,i=this._scopes,o=-1;for(let r=0;r<n.length;r++)if(n[r]===e&&i[r]===t){o=r;break}return o!==-1?(this._insideRaiseEvent?(this._toRemove.push(o),n[o]=void 0,i[o]=void 0):(n.splice(o,1),i.splice(o,1)),!0):!1};function NXe(e,t){return t-e}KG.prototype.raiseEvent=function(){this._insideRaiseEvent=!0;let e,t=this._listeners,n=this._scopes,i=t.length;for(e=0;e<i;e++){let r=t[e];d(r)&&t[e].apply(n[e],arguments)}let o=this._toRemove;if(i=o.length,i>0){for(o.sort(NXe),e=0;e<i;e++){let r=o[e];t.splice(r,1),n.splice(r,1)}o.length=0}this._insideRaiseEvent=!1};var Se=KG;var q5t=S(C(),1);var K5t=S(C(),1);function Rg(e){this._value=void 0,this._hasClone=!1,this._hasEquals=!1,this._definitionChanged=new Se,this.setValue(e)}Object.defineProperties(Rg.prototype,{isConstant:{value:!0},definitionChanged:{get:function(){return this._definitionChanged}}});Rg.prototype.getValue=function(e,t){return this._hasClone?this._value.clone(t):this._value};Rg.prototype.setValue=function(e){let t=this._value;if(t!==e){let n=d(e),i=n&&typeof e.clone=="function",o=n&&typeof e.equals=="function";(!o||!e.equals(t))&&(this._hasClone=i,this._hasEquals=o,this._value=i?e.clone(this._value):e,this._definitionChanged.raiseEvent(this))}};Rg.prototype.equals=function(e){return this===e||e instanceof Rg&&(!this._hasEquals&&this._value===e._value||this._hasEquals&&this._value.equals(e._value))};Rg.prototype.valueOf=function(){return this._value};Rg.prototype.toString=function(){return String(this._value)};var Fi=Rg;function FXe(e,t,n,i,o){return{configurable:i,get:function(){return this[t]},set:function(r){let s=this[t],a=this[n];d(a)&&(a(),this[n]=void 0),r!==void 0&&(!d(r)||!d(r.getValue))&&d(o)&&(r=o(r)),s!==r&&(this[t]=r,this._definitionChanged.raiseEvent(this,e,r,s)),d(r)&&d(r.definitionChanged)&&(this[n]=r.definitionChanged.addEventListener(function(){this._definitionChanged.raiseEvent(this,e,r,r)},this))}}}function AXe(e){return new Fi(e)}function DXe(e,t,n){return FXe(e,`_${e.toString()}`,`_${e.toString()}Subscription`,g(t,!1),g(n,AXe))}var ge=DXe;function HG(e){this._definitionChanged=new Se,this._show=void 0,this._showSubscription=void 0,this._image=void 0,this._imageSubscription=void 0,this._scale=void 0,this._scaleSubscription=void 0,this._pixelOffset=void 0,this._pixelOffsetSubscription=void 0,this._eyeOffset=void 0,this._eyeOffsetSubscription=void 0,this._horizontalOrigin=void 0,this._horizontalOriginSubscription=void 0,this._verticalOrigin=void 0,this._verticalOriginSubscription=void 0,this._heightReference=void 0,this._heightReferenceSubscription=void 0,this._color=void 0,this._colorSubscription=void 0,this._rotation=void 0,this._rotationSubscription=void 0,this._alignedAxis=void 0,this._alignedAxisSubscription=void 0,this._sizeInMeters=void 0,this._sizeInMetersSubscription=void 0,this._width=void 0,this._widthSubscription=void 0,this._height=void 0,this._heightSubscription=void 0,this._scaleByDistance=void 0,this._scaleByDistanceSubscription=void 0,this._translucencyByDistance=void 0,this._translucencyByDistanceSubscription=void 0,this._pixelOffsetScaleByDistance=void 0,this._pixelOffsetScaleByDistanceSubscription=void 0,this._imageSubRegion=void 0,this._imageSubRegionSubscription=void 0,this._distanceDisplayCondition=void 0,this._distanceDisplayConditionSubscription=void 0,this._disableDepthTestDistance=void 0,this._disableDepthTestDistanceSubscription=void 0,this._splitDirection=void 0,this._splitDirectionSubscription=void 0,this.merge(g(e,g.EMPTY_OBJECT))}Object.defineProperties(HG.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},show:ge("show"),image:ge("image"),scale:ge("scale"),pixelOffset:ge("pixelOffset"),eyeOffset:ge("eyeOffset"),horizontalOrigin:ge("horizontalOrigin"),verticalOrigin:ge("verticalOrigin"),heightReference:ge("heightReference"),color:ge("color"),rotation:ge("rotation"),alignedAxis:ge("alignedAxis"),sizeInMeters:ge("sizeInMeters"),width:ge("width"),height:ge("height"),scaleByDistance:ge("scaleByDistance"),translucencyByDistance:ge("translucencyByDistance"),pixelOffsetScaleByDistance:ge("pixelOffsetScaleByDistance"),imageSubRegion:ge("imageSubRegion"),distanceDisplayCondition:ge("distanceDisplayCondition"),disableDepthTestDistance:ge("disableDepthTestDistance"),splitDirection:ge("splitDirection")});HG.prototype.clone=function(e){return d(e)?(e.show=this._show,e.image=this._image,e.scale=this._scale,e.pixelOffset=this._pixelOffset,e.eyeOffset=this._eyeOffset,e.horizontalOrigin=this._horizontalOrigin,e.verticalOrigin=this._verticalOrigin,e.heightReference=this._heightReference,e.color=this._color,e.rotation=this._rotation,e.alignedAxis=this._alignedAxis,e.sizeInMeters=this._sizeInMeters,e.width=this._width,e.height=this._height,e.scaleByDistance=this._scaleByDistance,e.translucencyByDistance=this._translucencyByDistance,e.pixelOffsetScaleByDistance=this._pixelOffsetScaleByDistance,e.imageSubRegion=this._imageSubRegion,e.distanceDisplayCondition=this._distanceDisplayCondition,e.disableDepthTestDistance=this._disableDepthTestDistance,e.splitDirection=this._splitDirection,e):new HG(this)};HG.prototype.merge=function(e){this.show=g(this._show,e.show),this.image=g(this._image,e.image),this.scale=g(this._scale,e.scale),this.pixelOffset=g(this._pixelOffset,e.pixelOffset),this.eyeOffset=g(this._eyeOffset,e.eyeOffset),this.horizontalOrigin=g(this._horizontalOrigin,e.horizontalOrigin),this.verticalOrigin=g(this._verticalOrigin,e.verticalOrigin),this.heightReference=g(this._heightReference,e.heightReference),this.color=g(this._color,e.color),this.rotation=g(this._rotation,e.rotation),this.alignedAxis=g(this._alignedAxis,e.alignedAxis),this.sizeInMeters=g(this._sizeInMeters,e.sizeInMeters),this.width=g(this._width,e.width),this.height=g(this._height,e.height),this.scaleByDistance=g(this._scaleByDistance,e.scaleByDistance),this.translucencyByDistance=g(this._translucencyByDistance,e.translucencyByDistance),this.pixelOffsetScaleByDistance=g(this._pixelOffsetScaleByDistance,e.pixelOffsetScaleByDistance),this.imageSubRegion=g(this._imageSubRegion,e.imageSubRegion),this.distanceDisplayCondition=g(this._distanceDisplayCondition,e.distanceDisplayCondition),this.disableDepthTestDistance=g(this._disableDepthTestDistance,e.disableDepthTestDistance),this.splitDirection=g(this.splitDirection,e.splitDirection)};var qc=HG;var JYt=S(C(),1);var aFt=S(C(),1);function m_(){this._array=[],this._hash={}}Object.defineProperties(m_.prototype,{length:{get:function(){return this._array.length}},values:{get:function(){return this._array}}});m_.prototype.contains=function(e){return d(this._hash[e])};m_.prototype.set=function(e,t){let n=this._hash[e];t!==n&&(this.remove(e),this._hash[e]=t,this._array.push(t))};m_.prototype.get=function(e){return this._hash[e]};m_.prototype.remove=function(e){let t=this._hash[e],n=d(t);if(n){let i=this._array;i.splice(i.indexOf(t),1),delete this._hash[e]}return n};m_.prototype.removeAll=function(){let e=this._array;e.length>0&&(this._hash={},e.length=0)};var kt=m_;var eYt=S(C(),1);var yFt=S(C(),1);var mFt=S(C(),1),s4=S(JG(),1);var Gt={};Gt.EPSILON1=.1;Gt.EPSILON2=.01;Gt.EPSILON3=.001;Gt.EPSILON4=1e-4;Gt.EPSILON5=1e-5;Gt.EPSILON6=1e-6;Gt.EPSILON7=1e-7;Gt.EPSILON8=1e-8;Gt.EPSILON9=1e-9;Gt.EPSILON10=1e-10;Gt.EPSILON11=1e-11;Gt.EPSILON12=1e-12;Gt.EPSILON13=1e-13;Gt.EPSILON14=1e-14;Gt.EPSILON15=1e-15;Gt.EPSILON16=1e-16;Gt.EPSILON17=1e-17;Gt.EPSILON18=1e-18;Gt.EPSILON19=1e-19;Gt.EPSILON20=1e-20;Gt.EPSILON21=1e-21;Gt.GRAVITATIONALPARAMETER=3986004418e5;Gt.SOLAR_RADIUS=6955e5;Gt.LUNAR_RADIUS=1737400;Gt.SIXTY_FOUR_KILOBYTES=64*1024;Gt.FOUR_GIGABYTES=4*1024*1024*1024;Gt.sign=g(Math.sign,function(t){return t=+t,t===0||t!==t?t:t>0?1:-1});Gt.signNotZero=function(e){return e<0?-1:1};Gt.toSNorm=function(e,t){return t=g(t,255),Math.round((Gt.clamp(e,-1,1)*.5+.5)*t)};Gt.fromSNorm=function(e,t){return t=g(t,255),Gt.clamp(e,0,t)/t*2-1};Gt.normalize=function(e,t,n){return n=Math.max(n-t,0),n===0?0:Gt.clamp((e-t)/n,0,1)};Gt.sinh=g(Math.sinh,function(t){return(Math.exp(t)-Math.exp(-t))/2});Gt.cosh=g(Math.cosh,function(t){return(Math.exp(t)+Math.exp(-t))/2});Gt.lerp=function(e,t,n){return(1-n)*e+n*t};Gt.PI=Math.PI;Gt.ONE_OVER_PI=1/Math.PI;Gt.PI_OVER_TWO=Math.PI/2;Gt.PI_OVER_THREE=Math.PI/3;Gt.PI_OVER_FOUR=Math.PI/4;Gt.PI_OVER_SIX=Math.PI/6;Gt.THREE_PI_OVER_TWO=3*Math.PI/2;Gt.TWO_PI=2*Math.PI;Gt.ONE_OVER_TWO_PI=1/(2*Math.PI);Gt.RADIANS_PER_DEGREE=Math.PI/180;Gt.DEGREES_PER_RADIAN=180/Math.PI;Gt.RADIANS_PER_ARCSECOND=Gt.RADIANS_PER_DEGREE/3600;Gt.toRadians=function(e){return e*Gt.RADIANS_PER_DEGREE};Gt.toDegrees=function(e){return e*Gt.DEGREES_PER_RADIAN};Gt.convertLongitudeRange=function(e){let t=Gt.TWO_PI,n=e-Math.floor(e/t)*t;return n<-Math.PI?n+t:n>=Math.PI?n-t:n};Gt.clampToLatitudeRange=function(e){return Gt.clamp(e,-1*Gt.PI_OVER_TWO,Gt.PI_OVER_TWO)};Gt.negativePiToPi=function(e){return e>=-Gt.PI&&e<=Gt.PI?e:Gt.zeroToTwoPi(e+Gt.PI)-Gt.PI};Gt.zeroToTwoPi=function(e){if(e>=0&&e<=Gt.TWO_PI)return e;let t=Gt.mod(e,Gt.TWO_PI);return Math.abs(t)<Gt.EPSILON14&&Math.abs(e)>Gt.EPSILON14?Gt.TWO_PI:t};Gt.mod=function(e,t){return Gt.sign(e)===Gt.sign(t)&&Math.abs(e)<Math.abs(t)?e:(e%t+t)%t};Gt.equalsEpsilon=function(e,t,n,i){n=g(n,0),i=g(i,n);let o=Math.abs(e-t);return o<=i||o<=n*Math.max(Math.abs(e),Math.abs(t))};Gt.lessThan=function(e,t,n){return e-t<-n};Gt.lessThanOrEquals=function(e,t,n){return e-t<n};Gt.greaterThan=function(e,t,n){return e-t>n};Gt.greaterThanOrEquals=function(e,t,n){return e-t>-n};var U3=[1];Gt.factorial=function(e){let t=U3.length;if(e>=t){let n=U3[t-1];for(let i=t;i<=e;i++){let o=n*i;U3.push(o),n=o}}return U3[e]};Gt.incrementWrap=function(e,t,n){return n=g(n,0),++e,e>t&&(e=n),e};Gt.isPowerOfTwo=function(e){return e!==0&&(e&e-1)===0};Gt.nextPowerOfTwo=function(e){return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e,e};Gt.previousPowerOfTwo=function(e){return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e|=e>>32,e=(e>>>0)-(e>>>1),e};Gt.clamp=function(e,t,n){return e<t?t:e>n?n:e};var Aoe=new s4.default;Gt.setRandomNumberSeed=function(e){Aoe=new s4.default(e)};Gt.nextRandomNumber=function(){return Aoe.random()};Gt.randomBetween=function(e,t){return Gt.nextRandomNumber()*(t-e)+e};Gt.acosClamped=function(e){return Math.acos(Gt.clamp(e,-1,1))};Gt.asinClamped=function(e){return Math.asin(Gt.clamp(e,-1,1))};Gt.chordLength=function(e,t){return 2*t*Math.sin(e*.5)};Gt.logBase=function(e,t){return Math.log(e)/Math.log(t)};Gt.cbrt=g(Math.cbrt,function(t){let n=Math.pow(Math.abs(t),.3333333333333333);return t<0?-n:n});Gt.log2=g(Math.log2,function(t){return Math.log(t)*Math.LOG2E});Gt.fog=function(e,t){let n=e*t;return 1-Math.exp(-(n*n))};Gt.fastApproximateAtan=function(e){return e*(-.1784*Math.abs(e)-.0663*e*e+1.0301)};Gt.fastApproximateAtan2=function(e,t){let n,i=Math.abs(e);n=Math.abs(t);let o=Math.max(i,n);n=Math.min(i,n);let r=n/o;return i=Gt.fastApproximateAtan(r),i=Math.abs(t)>Math.abs(e)?Gt.PI_OVER_TWO-i:i,i=e<0?Gt.PI-i:i,i=t<0?-i:i,i};var M=Gt;function rn(e,t){this.x=g(e,0),this.y=g(t,0)}rn.fromElements=function(e,t,n){return d(n)?(n.x=e,n.y=t,n):new rn(e,t)};rn.clone=function(e,t){if(d(e))return d(t)?(t.x=e.x,t.y=e.y,t):new rn(e.x,e.y)};rn.fromCartesian3=rn.clone;rn.fromCartesian4=rn.clone;rn.packedLength=2;rn.pack=function(e,t,n){return n=g(n,0),t[n++]=e.x,t[n]=e.y,t};rn.unpack=function(e,t,n){return t=g(t,0),d(n)||(n=new rn),n.x=e[t++],n.y=e[t],n};rn.packArray=function(e,t){let n=e.length,i=n*2;d(t)?!Array.isArray(t)&&t.length!==i||t.length!==i&&(t.length=i):t=new Array(i);for(let o=0;o<n;++o)rn.pack(e[o],t,o*2);return t};rn.unpackArray=function(e,t){let n=e.length;d(t)?t.length=n/2:t=new Array(n/2);for(let i=0;i<n;i+=2){let o=i/2;t[o]=rn.unpack(e,i,t[o])}return t};rn.fromArray=rn.unpack;rn.maximumComponent=function(e){return Math.max(e.x,e.y)};rn.minimumComponent=function(e){return Math.min(e.x,e.y)};rn.minimumByComponent=function(e,t,n){return n.x=Math.min(e.x,t.x),n.y=Math.min(e.y,t.y),n};rn.maximumByComponent=function(e,t,n){return n.x=Math.max(e.x,t.x),n.y=Math.max(e.y,t.y),n};rn.clamp=function(e,t,n,i){let o=M.clamp(e.x,t.x,n.x),r=M.clamp(e.y,t.y,n.y);return i.x=o,i.y=r,i};rn.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y};rn.magnitude=function(e){return Math.sqrt(rn.magnitudeSquared(e))};var k3=new rn;rn.distance=function(e,t){return rn.subtract(e,t,k3),rn.magnitude(k3)};rn.distanceSquared=function(e,t){return rn.subtract(e,t,k3),rn.magnitudeSquared(k3)};rn.normalize=function(e,t){let n=rn.magnitude(e);return t.x=e.x/n,t.y=e.y/n,t};rn.dot=function(e,t){return e.x*t.x+e.y*t.y};rn.cross=function(e,t){return e.x*t.y-e.y*t.x};rn.multiplyComponents=function(e,t,n){return n.x=e.x*t.x,n.y=e.y*t.y,n};rn.divideComponents=function(e,t,n){return n.x=e.x/t.x,n.y=e.y/t.y,n};rn.add=function(e,t,n){return n.x=e.x+t.x,n.y=e.y+t.y,n};rn.subtract=function(e,t,n){return n.x=e.x-t.x,n.y=e.y-t.y,n};rn.multiplyByScalar=function(e,t,n){return n.x=e.x*t,n.y=e.y*t,n};rn.divideByScalar=function(e,t,n){return n.x=e.x/t,n.y=e.y/t,n};rn.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t};rn.abs=function(e,t){return t.x=Math.abs(e.x),t.y=Math.abs(e.y),t};var Doe=new rn;rn.lerp=function(e,t,n,i){return rn.multiplyByScalar(t,n,Doe),i=rn.multiplyByScalar(e,1-n,i),rn.add(Doe,i,i)};var Uoe=new rn,koe=new rn;rn.angleBetween=function(e,t){return rn.normalize(e,Uoe),rn.normalize(t,koe),M.acosClamped(rn.dot(Uoe,koe))};var UXe=new rn;rn.mostOrthogonalAxis=function(e,t){let n=rn.normalize(e,UXe);return rn.abs(n,n),n.x<=n.y?t=rn.clone(rn.UNIT_X,t):t=rn.clone(rn.UNIT_Y,t),t};rn.equals=function(e,t){return e===t||d(e)&&d(t)&&e.x===t.x&&e.y===t.y};rn.equalsArray=function(e,t,n){return e.x===t[n]&&e.y===t[n+1]};rn.equalsEpsilon=function(e,t,n,i){return e===t||d(e)&&d(t)&&M.equalsEpsilon(e.x,t.x,n,i)&&M.equalsEpsilon(e.y,t.y,n,i)};rn.ZERO=Object.freeze(new rn(0,0));rn.ONE=Object.freeze(new rn(1,1));rn.UNIT_X=Object.freeze(new rn(1,0));rn.UNIT_Y=Object.freeze(new rn(0,1));rn.prototype.clone=function(e){return rn.clone(this,e)};rn.prototype.equals=function(e){return rn.equals(this,e)};rn.prototype.equalsEpsilon=function(e,t,n){return rn.equalsEpsilon(this,e,t,n)};rn.prototype.toString=function(){return`(${this.x}, ${this.y})`};var B=rn;var WFt=S(C(),1);var SFt=S(C(),1);function bt(e,t,n){this.x=g(e,0),this.y=g(t,0),this.z=g(n,0)}bt.fromSpherical=function(e,t){d(t)||(t=new bt);let n=e.clock,i=e.cone,o=g(e.magnitude,1),r=o*Math.sin(i);return t.x=r*Math.cos(n),t.y=r*Math.sin(n),t.z=o*Math.cos(i),t};bt.fromElements=function(e,t,n,i){return d(i)?(i.x=e,i.y=t,i.z=n,i):new bt(e,t,n)};bt.clone=function(e,t){if(d(e))return d(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t):new bt(e.x,e.y,e.z)};bt.fromCartesian4=bt.clone;bt.packedLength=3;bt.pack=function(e,t,n){return n=g(n,0),t[n++]=e.x,t[n++]=e.y,t[n]=e.z,t};bt.unpack=function(e,t,n){return t=g(t,0),d(n)||(n=new bt),n.x=e[t++],n.y=e[t++],n.z=e[t],n};bt.packArray=function(e,t){let n=e.length,i=n*3;d(t)?!Array.isArray(t)&&t.length!==i||t.length!==i&&(t.length=i):t=new Array(i);for(let o=0;o<n;++o)bt.pack(e[o],t,o*3);return t};bt.unpackArray=function(e,t){let n=e.length;d(t)?t.length=n/3:t=new Array(n/3);for(let i=0;i<n;i+=3){let o=i/3;t[o]=bt.unpack(e,i,t[o])}return t};bt.fromArray=bt.unpack;bt.maximumComponent=function(e){return Math.max(e.x,e.y,e.z)};bt.minimumComponent=function(e){return Math.min(e.x,e.y,e.z)};bt.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};bt.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};bt.clamp=function(e,t,n,i){let o=M.clamp(e.x,t.x,n.x),r=M.clamp(e.y,t.y,n.y),s=M.clamp(e.z,t.z,n.z);return i.x=o,i.y=r,i.z=s,i};bt.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z};bt.magnitude=function(e){return Math.sqrt(bt.magnitudeSquared(e))};var Y3=new bt;bt.distance=function(e,t){return bt.subtract(e,t,Y3),bt.magnitude(Y3)};bt.distanceSquared=function(e,t){return bt.subtract(e,t,Y3),bt.magnitudeSquared(Y3)};bt.normalize=function(e,t){let n=bt.magnitude(e);return t.x=e.x/n,t.y=e.y/n,t.z=e.z/n,t};bt.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z};bt.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};bt.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};bt.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};bt.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};bt.multiplyByScalar=function(e,t,n){return n.x=e.x*t,n.y=e.y*t,n.z=e.z*t,n};bt.divideByScalar=function(e,t,n){return n.x=e.x/t,n.y=e.y/t,n.z=e.z/t,n};bt.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t};bt.abs=function(e,t){return t.x=Math.abs(e.x),t.y=Math.abs(e.y),t.z=Math.abs(e.z),t};var zoe=new bt;bt.lerp=function(e,t,n,i){return bt.multiplyByScalar(t,n,zoe),i=bt.multiplyByScalar(e,1-n,i),bt.add(zoe,i,i)};var z3=new bt,a4=new bt;bt.angleBetween=function(e,t){bt.normalize(e,z3),bt.normalize(t,a4);let n=bt.dot(z3,a4),i=bt.magnitude(bt.cross(z3,a4,z3));return Math.atan2(i,n)};var kXe=new bt;bt.mostOrthogonalAxis=function(e,t){let n=bt.normalize(e,kXe);return bt.abs(n,n),n.x<=n.y?n.x<=n.z?t=bt.clone(bt.UNIT_X,t):t=bt.clone(bt.UNIT_Z,t):n.y<=n.z?t=bt.clone(bt.UNIT_Y,t):t=bt.clone(bt.UNIT_Z,t),t};bt.projectVector=function(e,t,n){let i=bt.dot(e,t)/bt.dot(t,t);return bt.multiplyByScalar(t,i,n)};bt.equals=function(e,t){return e===t||d(e)&&d(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z};bt.equalsArray=function(e,t,n){return e.x===t[n]&&e.y===t[n+1]&&e.z===t[n+2]};bt.equalsEpsilon=function(e,t,n,i){return e===t||d(e)&&d(t)&&M.equalsEpsilon(e.x,t.x,n,i)&&M.equalsEpsilon(e.y,t.y,n,i)&&M.equalsEpsilon(e.z,t.z,n,i)};bt.cross=function(e,t,n){let i=e.x,o=e.y,r=e.z,s=t.x,a=t.y,c=t.z,l=o*c-r*a,u=r*s-i*c,m=i*a-o*s;return n.x=l,n.y=u,n.z=m,n};bt.midpoint=function(e,t,n){return n.x=(e.x+t.x)*.5,n.y=(e.y+t.y)*.5,n.z=(e.z+t.z)*.5,n};bt.fromDegrees=function(e,t,n,i,o){return e=M.toRadians(e),t=M.toRadians(t),bt.fromRadians(e,t,n,i,o)};var Lm=new bt,bL=new bt;bt._ellipsoidRadiiSquared=new bt(6378137*6378137,6378137*6378137,6356752314245179e-9*6356752314245179e-9);bt.fromRadians=function(e,t,n,i,o){n=g(n,0);let r=d(i)?i.radiiSquared:bt._ellipsoidRadiiSquared,s=Math.cos(t);Lm.x=s*Math.cos(e),Lm.y=s*Math.sin(e),Lm.z=Math.sin(t),Lm=bt.normalize(Lm,Lm),bt.multiplyComponents(r,Lm,bL);let a=Math.sqrt(bt.dot(Lm,bL));return bL=bt.divideByScalar(bL,a,bL),Lm=bt.multiplyByScalar(Lm,n,Lm),d(o)||(o=new bt),bt.add(bL,Lm,o)};bt.fromDegreesArray=function(e,t,n){let i=e.length;d(n)?n.length=i/2:n=new Array(i/2);for(let o=0;o<i;o+=2){let r=e[o],s=e[o+1],a=o/2;n[a]=bt.fromDegrees(r,s,0,t,n[a])}return n};bt.fromRadiansArray=function(e,t,n){let i=e.length;d(n)?n.length=i/2:n=new Array(i/2);for(let o=0;o<i;o+=2){let r=e[o],s=e[o+1],a=o/2;n[a]=bt.fromRadians(r,s,0,t,n[a])}return n};bt.fromDegreesArrayHeights=function(e,t,n){let i=e.length;d(n)?n.length=i/3:n=new Array(i/3);for(let o=0;o<i;o+=3){let r=e[o],s=e[o+1],a=e[o+2],c=o/3;n[c]=bt.fromDegrees(r,s,a,t,n[c])}return n};bt.fromRadiansArrayHeights=function(e,t,n){let i=e.length;d(n)?n.length=i/3:n=new Array(i/3);for(let o=0;o<i;o+=3){let r=e[o],s=e[o+1],a=e[o+2],c=o/3;n[c]=bt.fromRadians(r,s,a,t,n[c])}return n};bt.ZERO=Object.freeze(new bt(0,0,0));bt.ONE=Object.freeze(new bt(1,1,1));bt.UNIT_X=Object.freeze(new bt(1,0,0));bt.UNIT_Y=Object.freeze(new bt(0,1,0));bt.UNIT_Z=Object.freeze(new bt(0,0,1));bt.prototype.clone=function(e){return bt.clone(this,e)};bt.prototype.equals=function(e){return bt.equals(this,e)};bt.prototype.equalsEpsilon=function(e,t,n){return bt.equalsEpsilon(this,e,t,n)};bt.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z})`};var h=bt;var RFt=S(C(),1);var zXe=new h,YXe=new h;function BXe(e,t,n,i,o){let r=e.x,s=e.y,a=e.z,c=t.x,l=t.y,u=t.z,m=r*r*c*c,f=s*s*l*l,b=a*a*u*u,p=m+f+b,x=Math.sqrt(1/p),T=h.multiplyByScalar(e,x,zXe);if(p<i)return isFinite(x)?h.clone(T,o):void 0;let _=n.x,L=n.y,V=n.z,Z=YXe;Z.x=T.x*_*2,Z.y=T.y*L*2,Z.z=T.z*V*2;let G=(1-x)*h.magnitude(e)/(.5*h.magnitude(Z)),I=0,w,W,v,N,y,R,E,X,F,A,Y;do{G-=I,v=1/(1+G*_),N=1/(1+G*L),y=1/(1+G*V),R=v*v,E=N*N,X=y*y,F=R*v,A=E*N,Y=X*y,w=m*R+f*E+b*X-1,W=m*F*_+f*A*L+b*Y*V;let U=-2*W;I=w/U}while(Math.abs(w)>M.EPSILON12);return d(o)?(o.x=r*v,o.y=s*N,o.z=a*y,o):new h(r*v,s*N,a*y)}var h_=BXe;function Ar(e,t,n){this.longitude=g(e,0),this.latitude=g(t,0),this.height=g(n,0)}Ar.fromRadians=function(e,t,n,i){return n=g(n,0),d(i)?(i.longitude=e,i.latitude=t,i.height=n,i):new Ar(e,t,n)};Ar.fromDegrees=function(e,t,n,i){return e=M.toRadians(e),t=M.toRadians(t),Ar.fromRadians(e,t,n,i)};var OXe=new h,KXe=new h,HXe=new h;Ar._ellipsoidOneOverRadii=new h(1/6378137,1/6378137,1/6356752314245179e-9);Ar._ellipsoidOneOverRadiiSquared=new h(1/(6378137*6378137),1/(6378137*6378137),1/(6356752314245179e-9*6356752314245179e-9));Ar._ellipsoidCenterToleranceSquared=M.EPSILON1;Ar.fromCartesian=function(e,t,n){let i=d(t)?t.oneOverRadii:Ar._ellipsoidOneOverRadii,o=d(t)?t.oneOverRadiiSquared:Ar._ellipsoidOneOverRadiiSquared,r=d(t)?t._centerToleranceSquared:Ar._ellipsoidCenterToleranceSquared,s=h_(e,i,o,r,KXe);if(!d(s))return;let a=h.multiplyComponents(s,o,OXe);a=h.normalize(a,a);let c=h.subtract(e,s,HXe),l=Math.atan2(a.y,a.x),u=Math.asin(a.z),m=M.sign(h.dot(c,e))*h.magnitude(c);return d(n)?(n.longitude=l,n.latitude=u,n.height=m,n):new Ar(l,u,m)};Ar.toCartesian=function(e,t,n){return h.fromRadians(e.longitude,e.latitude,e.height,t,n)};Ar.clone=function(e,t){if(d(e))return d(t)?(t.longitude=e.longitude,t.latitude=e.latitude,t.height=e.height,t):new Ar(e.longitude,e.latitude,e.height)};Ar.equals=function(e,t){return e===t||d(e)&&d(t)&&e.longitude===t.longitude&&e.latitude===t.latitude&&e.height===t.height};Ar.equalsEpsilon=function(e,t,n){return n=g(n,0),e===t||d(e)&&d(t)&&Math.abs(e.longitude-t.longitude)<=n&&Math.abs(e.latitude-t.latitude)<=n&&Math.abs(e.height-t.height)<=n};Ar.ZERO=Object.freeze(new Ar(0,0,0));Ar.prototype.clone=function(e){return Ar.clone(this,e)};Ar.prototype.equals=function(e){return Ar.equals(this,e)};Ar.prototype.equalsEpsilon=function(e,t){return Ar.equalsEpsilon(this,e,t)};Ar.prototype.toString=function(){return`(${this.longitude}, ${this.latitude}, ${this.height})`};var me=Ar;var zFt=S(C(),1);function Boe(e,t,n,i){t=g(t,0),n=g(n,0),i=g(i,0),e._radii=new h(t,n,i),e._radiiSquared=new h(t*t,n*n,i*i),e._radiiToTheFourth=new h(t*t*t*t,n*n*n*n,i*i*i*i),e._oneOverRadii=new h(t===0?0:1/t,n===0?0:1/n,i===0?0:1/i),e._oneOverRadiiSquared=new h(t===0?0:1/(t*t),n===0?0:1/(n*n),i===0?0:1/(i*i)),e._minimumRadius=Math.min(t,n,i),e._maximumRadius=Math.max(t,n,i),e._centerToleranceSquared=M.EPSILON1,e._radiiSquared.z!==0&&(e._squaredXOverSquaredZ=e._radiiSquared.x/e._radiiSquared.z)}function io(e,t,n){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,Boe(this,e,t,n)}Object.defineProperties(io.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}});io.clone=function(e,t){if(!d(e))return;let n=e._radii;return d(t)?(h.clone(n,t._radii),h.clone(e._radiiSquared,t._radiiSquared),h.clone(e._radiiToTheFourth,t._radiiToTheFourth),h.clone(e._oneOverRadii,t._oneOverRadii),h.clone(e._oneOverRadiiSquared,t._oneOverRadiiSquared),t._minimumRadius=e._minimumRadius,t._maximumRadius=e._maximumRadius,t._centerToleranceSquared=e._centerToleranceSquared,t):new io(n.x,n.y,n.z)};io.fromCartesian3=function(e,t){return d(t)||(t=new io),d(e)&&Boe(t,e.x,e.y,e.z),t};io.WGS84=Object.freeze(new io(6378137,6378137,6356752314245179e-9));io.CGCS2000=Object.freeze(new io(6378137,6378137,6356752314140356e-9));io.UNIT_SPHERE=Object.freeze(new io(1,1,1));io.MOON=Object.freeze(new io(M.LUNAR_RADIUS,M.LUNAR_RADIUS,M.LUNAR_RADIUS));io._default=io.WGS84;Object.defineProperties(io,{default:{get:function(){return io._default},set:function(e){io._default=e,h._ellipsoidRadiiSquared=e.radiiSquared,me._ellipsoidOneOverRadii=e.oneOverRadii,me._ellipsoidOneOverRadiiSquared=e.oneOverRadiiSquared,me._ellipsoidCenterToleranceSquared=e._centerToleranceSquared}}});io.prototype.clone=function(e){return io.clone(this,e)};io.packedLength=h.packedLength;io.pack=function(e,t,n){return n=g(n,0),h.pack(e._radii,t,n),t};io.unpack=function(e,t,n){t=g(t,0);let i=h.unpack(e,t);return io.fromCartesian3(i,n)};io.prototype.geocentricSurfaceNormal=h.normalize;io.prototype.geodeticSurfaceNormalCartographic=function(e,t){let n=e.longitude,i=e.latitude,o=Math.cos(i),r=o*Math.cos(n),s=o*Math.sin(n),a=Math.sin(i);return d(t)||(t=new h),t.x=r,t.y=s,t.z=a,h.normalize(t,t)};io.prototype.geodeticSurfaceNormal=function(e,t){if(!h.equalsEpsilon(e,h.ZERO,M.EPSILON14))return d(t)||(t=new h),t=h.multiplyComponents(e,this._oneOverRadiiSquared,t),h.normalize(t,t)};var JXe=new h,QXe=new h;io.prototype.cartographicToCartesian=function(e,t){let n=JXe,i=QXe;this.geodeticSurfaceNormalCartographic(e,n),h.multiplyComponents(this._radiiSquared,n,i);let o=Math.sqrt(h.dot(n,i));return h.divideByScalar(i,o,i),h.multiplyByScalar(n,e.height,n),d(t)||(t=new h),h.add(i,n,t)};io.prototype.cartographicArrayToCartesianArray=function(e,t){let n=e.length;d(t)?t.length=n:t=new Array(n);for(let i=0;i<n;i++)t[i]=this.cartographicToCartesian(e[i],t[i]);return t};var jXe=new h,qXe=new h,$Xe=new h;io.prototype.cartesianToCartographic=function(e,t){let n=this.scaleToGeodeticSurface(e,qXe);if(!d(n))return;let i=this.geodeticSurfaceNormal(n,jXe),o=h.subtract(e,n,$Xe),r=Math.atan2(i.y,i.x),s=Math.asin(i.z),a=M.sign(h.dot(o,e))*h.magnitude(o);return d(t)?(t.longitude=r,t.latitude=s,t.height=a,t):new me(r,s,a)};io.prototype.cartesianArrayToCartographicArray=function(e,t){let n=e.length;d(t)?t.length=n:t=new Array(n);for(let i=0;i<n;++i)t[i]=this.cartesianToCartographic(e[i],t[i]);return t};io.prototype.scaleToGeodeticSurface=function(e,t){return h_(e,this._oneOverRadii,this._oneOverRadiiSquared,this._centerToleranceSquared,t)};io.prototype.scaleToGeocentricSurface=function(e,t){d(t)||(t=new h);let n=e.x,i=e.y,o=e.z,r=this._oneOverRadiiSquared,s=1/Math.sqrt(n*n*r.x+i*i*r.y+o*o*r.z);return h.multiplyByScalar(e,s,t)};io.prototype.transformPositionToScaledSpace=function(e,t){return d(t)||(t=new h),h.multiplyComponents(e,this._oneOverRadii,t)};io.prototype.transformPositionFromScaledSpace=function(e,t){return d(t)||(t=new h),h.multiplyComponents(e,this._radii,t)};io.prototype.equals=function(e){return this===e||d(e)&&h.equals(this._radii,e._radii)};io.prototype.toString=function(){return this._radii.toString()};io.prototype.getSurfaceNormalIntersectionWithZAxis=function(e,t,n){t=g(t,0);let i=this._squaredXOverSquaredZ;if(d(n)||(n=new h),n.x=0,n.y=0,n.z=e.z*(1-i),!(Math.abs(n.z)>=this._radii.z-t))return n};var eMe=new h;io.prototype.getLocalCurvature=function(e,t){d(t)||(t=new B);let n=this.getSurfaceNormalIntersectionWithZAxis(e,0,eMe),i=h.distance(e,n),o=this.minimumRadius*i/this.maximumRadius**2,r=i*o**2;return B.fromElements(1/i,1/r,t)};var tMe=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],nMe=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function Yoe(e,t,n){let i=.5*(t+e),o=.5*(t-e),r=0;for(let s=0;s<5;s++){let a=o*tMe[s];r+=nMe[s]*(n(i+a)+n(i-a))}return r*=o,r}io.prototype.surfaceArea=function(e){let t=e.west,n=e.east,i=e.south,o=e.north;for(;n<t;)n+=M.TWO_PI;let r=this._radiiSquared,s=r.x,a=r.y,c=r.z,l=s*a;return Yoe(i,o,function(u){let m=Math.cos(u),f=Math.sin(u);return Math.cos(u)*Yoe(t,n,function(b){let p=Math.cos(b),x=Math.sin(b);return Math.sqrt(l*f*f+c*(a*p*p+s*x*x)*m*m)})})};var oe=io;var QFt=S(C(),1);function B3(e){this._ellipsoid=g(e,oe.default),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(B3.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}});B3.prototype.project=function(e,t){let n=this._semimajorAxis,i=e.longitude*n,o=e.latitude*n,r=e.height;return d(t)?(t.x=i,t.y=o,t.z=r,t):new h(i,o,r)};B3.prototype.unproject=function(e,t){let n=this._oneOverSemimajorAxis,i=e.x*n,o=e.y*n,r=e.z;return d(t)?(t.longitude=i,t.latitude=o,t.height=r,t):new me(i,o,r)};var So=B3;var qFt=S(C(),1),iMe={OUTSIDE:-1,INTERSECTING:0,INSIDE:1},Qt=Object.freeze(iMe);var Yzt=S(C(),1);var Zzt=S(C(),1);var iAt=S(C(),1);function Bt(e,t,n,i){this.x=g(e,0),this.y=g(t,0),this.z=g(n,0),this.w=g(i,0)}Bt.fromElements=function(e,t,n,i,o){return d(o)?(o.x=e,o.y=t,o.z=n,o.w=i,o):new Bt(e,t,n,i)};Bt.fromColor=function(e,t){return d(t)?(t.x=e.red,t.y=e.green,t.z=e.blue,t.w=e.alpha,t):new Bt(e.red,e.green,e.blue,e.alpha)};Bt.clone=function(e,t){if(d(e))return d(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new Bt(e.x,e.y,e.z,e.w)};Bt.packedLength=4;Bt.pack=function(e,t,n){return n=g(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t};Bt.unpack=function(e,t,n){return t=g(t,0),d(n)||(n=new Bt),n.x=e[t++],n.y=e[t++],n.z=e[t++],n.w=e[t],n};Bt.packArray=function(e,t){let n=e.length,i=n*4;d(t)?!Array.isArray(t)&&t.length!==i||t.length!==i&&(t.length=i):t=new Array(i);for(let o=0;o<n;++o)Bt.pack(e[o],t,o*4);return t};Bt.unpackArray=function(e,t){let n=e.length;d(t)?t.length=n/4:t=new Array(n/4);for(let i=0;i<n;i+=4){let o=i/4;t[o]=Bt.unpack(e,i,t[o])}return t};Bt.fromArray=Bt.unpack;Bt.maximumComponent=function(e){return Math.max(e.x,e.y,e.z,e.w)};Bt.minimumComponent=function(e){return Math.min(e.x,e.y,e.z,e.w)};Bt.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};Bt.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};Bt.clamp=function(e,t,n,i){let o=M.clamp(e.x,t.x,n.x),r=M.clamp(e.y,t.y,n.y),s=M.clamp(e.z,t.z,n.z),a=M.clamp(e.w,t.w,n.w);return i.x=o,i.y=r,i.z=s,i.w=a,i};Bt.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w};Bt.magnitude=function(e){return Math.sqrt(Bt.magnitudeSquared(e))};var O3=new Bt;Bt.distance=function(e,t){return Bt.subtract(e,t,O3),Bt.magnitude(O3)};Bt.distanceSquared=function(e,t){return Bt.subtract(e,t,O3),Bt.magnitudeSquared(O3)};Bt.normalize=function(e,t){let n=Bt.magnitude(e);return t.x=e.x/n,t.y=e.y/n,t.z=e.z/n,t.w=e.w/n,t};Bt.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w};Bt.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};Bt.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};Bt.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};Bt.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};Bt.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};Bt.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};Bt.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=-e.w,t};Bt.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};var Ooe=new Bt;Bt.lerp=function(e,t,n,i){return Bt.multiplyByScalar(t,n,Ooe),i=Bt.multiplyByScalar(e,1-n,i),Bt.add(Ooe,i,i)};var oMe=new Bt;Bt.mostOrthogonalAxis=function(e,t){let n=Bt.normalize(e,oMe);return Bt.abs(n,n),n.x<=n.y?n.x<=n.z?n.x<=n.w?t=Bt.clone(Bt.UNIT_X,t):t=Bt.clone(Bt.UNIT_W,t):n.z<=n.w?t=Bt.clone(Bt.UNIT_Z,t):t=Bt.clone(Bt.UNIT_W,t):n.y<=n.z?n.y<=n.w?t=Bt.clone(Bt.UNIT_Y,t):t=Bt.clone(Bt.UNIT_W,t):n.z<=n.w?t=Bt.clone(Bt.UNIT_Z,t):t=Bt.clone(Bt.UNIT_W,t),t};Bt.equals=function(e,t){return e===t||d(e)&&d(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w};Bt.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]};Bt.equalsEpsilon=function(e,t,n,i){return e===t||d(e)&&d(t)&&M.equalsEpsilon(e.x,t.x,n,i)&&M.equalsEpsilon(e.y,t.y,n,i)&&M.equalsEpsilon(e.z,t.z,n,i)&&M.equalsEpsilon(e.w,t.w,n,i)};Bt.ZERO=Object.freeze(new Bt(0,0,0,0));Bt.ONE=Object.freeze(new Bt(1,1,1,1));Bt.UNIT_X=Object.freeze(new Bt(1,0,0,0));Bt.UNIT_Y=Object.freeze(new Bt(0,1,0,0));Bt.UNIT_Z=Object.freeze(new Bt(0,0,1,0));Bt.UNIT_W=Object.freeze(new Bt(0,0,0,1));Bt.prototype.clone=function(e){return Bt.clone(this,e)};Bt.prototype.equals=function(e){return Bt.equals(this,e)};Bt.prototype.equalsEpsilon=function(e,t,n){return Bt.equalsEpsilon(this,e,t,n)};Bt.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};var c4=new Float32Array(1),$c=new Uint8Array(c4.buffer),rMe=new Uint32Array([287454020]),sMe=new Uint8Array(rMe.buffer),Koe=sMe[0]===68;Bt.packFloat=function(e,t){return d(t)||(t=new Bt),c4[0]=e,Koe?(t.x=$c[0],t.y=$c[1],t.z=$c[2],t.w=$c[3]):(t.x=$c[3],t.y=$c[2],t.z=$c[1],t.w=$c[0]),t};Bt.unpackFloat=function(e){return Koe?($c[0]=e.x,$c[1]=e.y,$c[2]=e.z,$c[3]=e.w):($c[0]=e.w,$c[1]=e.z,$c[2]=e.y,$c[3]=e.x),c4[0]};var re=Bt;var skt=S(C(),1);var rAt=S(C(),1);function aMe(e,t,n){let i=0,o=e.length-1,r,s;for(;i<=o;){if(r=~~((i+o)/2),s=n(e[r],t),s<0){i=r+1;continue}if(s>0){o=r-1;continue}return r}return~(o+1)}var Xr=aMe;var aAt=S(C(),1);function cMe(e,t,n,i,o){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=n,this.yPoleOffset=i,this.ut1MinusUtc=o}var Gg=cMe;var XAt=S(C(),1);var fAt=S(C(),1);var lAt=S(C(),1);function lMe(e){return e%4===0&&e%100!==0||e%400===0}var Oh=lMe;var Hoe=[31,28,31,30,31,30,31,31,30,31,30,31];function dMe(e,t,n,i,o,r,s,a){e=g(e,1),t=g(t,1),n=g(n,1),i=g(i,0),o=g(o,0),r=g(r,0),s=g(s,0),a=g(a,!1),this.year=e,this.month=t,this.day=n,this.hour=i,this.minute=o,this.second=r,this.millisecond=s,this.isLeapSecond=a;function x(){ao.typeOf.number.greaterThanOrEquals("Year",e,1),ao.typeOf.number.lessThanOrEquals("Year",e,9999),ao.typeOf.number.greaterThanOrEquals("Month",t,1),ao.typeOf.number.lessThanOrEquals("Month",t,12),ao.typeOf.number.greaterThanOrEquals("Day",n,1),ao.typeOf.number.lessThanOrEquals("Day",n,31),ao.typeOf.number.greaterThanOrEquals("Hour",i,0),ao.typeOf.number.lessThanOrEquals("Hour",i,23),ao.typeOf.number.greaterThanOrEquals("Minute",o,0),ao.typeOf.number.lessThanOrEquals("Minute",o,59),ao.typeOf.bool("IsLeapSecond",a),ao.typeOf.number.greaterThanOrEquals("Second",r,0),ao.typeOf.number.lessThanOrEquals("Second",r,a?60:59),ao.typeOf.number.greaterThanOrEquals("Millisecond",s,0),ao.typeOf.number.lessThan("Millisecond",s,1e3)}function T(){let _=t===2&&Oh(e)?Hoe[t-1]+1:Hoe[t-1];if(n>_)throw new be("Month and Day represents invalid date")}}var ob=dMe;var yAt=S(C(),1);function uMe(e,t){this.julianDate=e,this.offset=t}var Do=uMe;var xAt=S(C(),1),mMe={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:24000005e-1},wi=Object.freeze(mMe);var _At=S(C(),1),hMe={UTC:0,TAI:1},Ei=Object.freeze(hMe);var Qoe=new ob,l4=[31,28,31,30,31,30,31,31,30,31,30,31],d4=29;function u4(e,t){return en.compare(e.julianDate,t.julianDate)}var yL=new Do;function H3(e){yL.julianDate=e;let t=en.leapSeconds,n=Xr(t,yL,u4);n<0&&(n=~n),n>=t.length&&(n=t.length-1);let i=t[n].offset;n>0&&en.secondsDifference(t[n].julianDate,e)>i&&(n--,i=t[n].offset),en.addSeconds(e,i,e)}function Joe(e,t){yL.julianDate=e;let n=en.leapSeconds,i=Xr(n,yL,u4);if(i<0&&(i=~i),i===0)return en.addSeconds(e,-n[0].offset,t);if(i>=n.length)return en.addSeconds(e,-n[i-1].offset,t);let o=en.secondsDifference(n[i].julianDate,e);if(o===0)return en.addSeconds(e,-n[i].offset,t);if(!(o<=1))return en.addSeconds(e,-n[--i].offset,t)}function Eg(e,t,n){let i=t/wi.SECONDS_PER_DAY|0;return e+=i,t-=wi.SECONDS_PER_DAY*i,t<0&&(e--,t+=wi.SECONDS_PER_DAY),n.dayNumber=e,n.secondsOfDay=t,n}function m4(e,t,n,i,o,r,s){let a=(t-14)/12|0,c=e+4800+a,l=(1461*c/4|0)+(367*(t-2-12*a)/12|0)-(3*((c+100)/100|0)/4|0)+n-32075;i=i-12,i<0&&(i+=24);let u=r+(i*wi.SECONDS_PER_HOUR+o*wi.SECONDS_PER_MINUTE+s*wi.SECONDS_PER_MILLISECOND);return u>=43200&&(l-=1),[l,u]}var pMe=/^(\d{4})$/,fMe=/^(\d{4})-(\d{2})$/,bMe=/^(\d{4})-?(\d{3})$/,yMe=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,gMe=/^(\d{4})-?(\d{2})-?(\d{2})$/,h4=/([Z+\-])?(\d{2})?:?(\d{2})?$/,xMe=/^(\d{2})(\.\d+)?/.source+h4.source,TMe=/^(\d{2}):?(\d{2})(\.\d+)?/.source+h4.source,_Me=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+h4.source;function en(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=g(e,0),t=g(t,0),n=g(n,Ei.UTC);let i=e|0;t=t+(e-i)*wi.SECONDS_PER_DAY,Eg(i,t,this),n===Ei.UTC&&H3(this)}en.fromGregorianDate=function(e,t){let n=m4(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return d(t)?(Eg(n[0],n[1],t),H3(t),t):new en(n[0],n[1],Ei.UTC)};en.fromDate=function(e,t){let n=m4(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return d(t)?(Eg(n[0],n[1],t),H3(t),t):new en(n[0],n[1],Ei.UTC)};en.fromIso8601=function(e,t){e=e.replace(",",".");let n=e.split("T"),i,o=1,r=1,s=0,a=0,c=0,l=0,u=n[0],m=n[1],f,b;if(n=u.match(gMe),n!==null)i=+n[1],o=+n[2],r=+n[3];else if(n=u.match(fMe),n!==null)i=+n[1],o=+n[2];else if(n=u.match(pMe),n!==null)i=+n[1];else{let _;if(n=u.match(bMe),n!==null)i=+n[1],_=+n[2],b=Oh(i);else if(n=u.match(yMe),n!==null){i=+n[1];let L=+n[2],V=+n[3]||0,Z=new Date(Date.UTC(i,0,4));_=L*7+V-Z.getUTCDay()-3}f=new Date(Date.UTC(i,0,1)),f.setUTCDate(_),o=f.getUTCMonth()+1,r=f.getUTCDate()}b=Oh(i);let p;if(d(m)){n=m.match(_Me),n!==null?(s=+n[1],a=+n[2],c=+n[3],l=+(n[4]||0)*1e3,p=5):(n=m.match(TMe),n!==null?(s=+n[1],a=+n[2],c=+(n[3]||0)*60,p=4):(n=m.match(xMe),n!==null&&(s=+n[1],a=+(n[2]||0)*60,p=3)));let _=n[p],L=+n[p+1],V=+(n[p+2]||0);switch(_){case"+":s=s-L,a=a-V;break;case"-":s=s+L,a=a+V;break;case"Z":break;default:a=a+new Date(Date.UTC(i,o-1,r,s,a)).getTimezoneOffset();break}}let x=c===60;for(x&&c--;a>=60;)a-=60,s++;for(;s>=24;)s-=24,r++;for(f=b&&o===2?d4:l4[o-1];r>f;)r-=f,o++,o>12&&(o-=12,i++),f=b&&o===2?d4:l4[o-1];for(;a<0;)a+=60,s--;for(;s<0;)s+=24,r--;for(;r<1;)o--,o<1&&(o+=12,i--),f=b&&o===2?d4:l4[o-1],r+=f;let T=m4(i,o,r,s,a,c,l);return d(t)?(Eg(T[0],T[1],t),H3(t)):t=new en(T[0],T[1],Ei.UTC),x&&en.addSeconds(t,1,t),t};en.now=function(e){return en.fromDate(new Date,e)};var K3=new en(0,0,Ei.TAI);en.toGregorianDate=function(e,t){let n=!1,i=Joe(e,K3);d(i)||(en.addSeconds(e,-1,K3),i=Joe(K3,K3),n=!0);let o=i.dayNumber,r=i.secondsOfDay;r>=43200&&(o+=1);let s=o+68569|0,a=4*s/146097|0;s=s-((146097*a+3)/4|0)|0;let c=4e3*(s+1)/1461001|0;s=s-(1461*c/4|0)+31|0;let l=80*s/2447|0,u=s-(2447*l/80|0)|0;s=l/11|0;let m=l+2-12*s|0,f=100*(a-49)+c+s|0,b=r/wi.SECONDS_PER_HOUR|0,p=r-b*wi.SECONDS_PER_HOUR,x=p/wi.SECONDS_PER_MINUTE|0;p=p-x*wi.SECONDS_PER_MINUTE;let T=p|0,_=(p-T)/wi.SECONDS_PER_MILLISECOND;return b+=12,b>23&&(b-=24),n&&(T+=1),d(t)?(t.year=f,t.month=m,t.day=u,t.hour=b,t.minute=x,t.second=T,t.millisecond=_,t.isLeapSecond=n,t):new ob(f,m,u,b,x,T,_,n)};en.toDate=function(e){let t=en.toGregorianDate(e,Qoe),n=t.second;return t.isLeapSecond&&(n-=1),new Date(Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,n,t.millisecond))};en.toIso8601=function(e,t){let n=en.toGregorianDate(e,Qoe),i=n.year,o=n.month,r=n.day,s=n.hour,a=n.minute,c=n.second,l=n.millisecond;i===1e4&&o===1&&r===1&&s===0&&a===0&&c===0&&l===0&&(i=9999,o=12,r=31,s=24);let u;return!d(t)&&l!==0?(u=(l*.01).toString().replace(".",""),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${u}Z`):!d(t)||t===0?`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}Z`:(u=(l*.01).toFixed(t).replace(".","").slice(0,t),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${u}Z`)};en.clone=function(e,t){if(d(e))return d(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new en(e.dayNumber,e.secondsOfDay,Ei.TAI)};en.compare=function(e,t){let n=e.dayNumber-t.dayNumber;return n!==0?n:e.secondsOfDay-t.secondsOfDay};en.equals=function(e,t){return e===t||d(e)&&d(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay};en.equalsEpsilon=function(e,t,n){return n=g(n,0),e===t||d(e)&&d(t)&&Math.abs(en.secondsDifference(e,t))<=n};en.totalDays=function(e){return e.dayNumber+e.secondsOfDay/wi.SECONDS_PER_DAY};en.secondsDifference=function(e,t){return(e.dayNumber-t.dayNumber)*wi.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)};en.daysDifference=function(e,t){let n=e.dayNumber-t.dayNumber,i=(e.secondsOfDay-t.secondsOfDay)/wi.SECONDS_PER_DAY;return n+i};en.computeTaiMinusUtc=function(e){yL.julianDate=e;let t=en.leapSeconds,n=Xr(t,yL,u4);return n<0&&(n=~n,--n,n<0&&(n=0)),t[n].offset};en.addSeconds=function(e,t,n){return Eg(e.dayNumber,e.secondsOfDay+t,n)};en.addMinutes=function(e,t,n){let i=e.secondsOfDay+t*wi.SECONDS_PER_MINUTE;return Eg(e.dayNumber,i,n)};en.addHours=function(e,t,n){let i=e.secondsOfDay+t*wi.SECONDS_PER_HOUR;return Eg(e.dayNumber,i,n)};en.addDays=function(e,t,n){let i=e.dayNumber+t;return Eg(i,e.secondsOfDay,n)};en.lessThan=function(e,t){return en.compare(e,t)<0};en.lessThanOrEquals=function(e,t){return en.compare(e,t)<=0};en.greaterThan=function(e,t){return en.compare(e,t)>0};en.greaterThanOrEquals=function(e,t){return en.compare(e,t)>=0};en.prototype.clone=function(e){return en.clone(this,e)};en.prototype.equals=function(e){return en.equals(this,e)};en.prototype.equalsEpsilon=function(e,t){return en.equalsEpsilon(this,e,t)};en.prototype.toString=function(){return en.toIso8601(this)};en.leapSeconds=[new Do(new en(2441317,43210,Ei.TAI),10),new Do(new en(2441499,43211,Ei.TAI),11),new Do(new en(2441683,43212,Ei.TAI),12),new Do(new en(2442048,43213,Ei.TAI),13),new Do(new en(2442413,43214,Ei.TAI),14),new Do(new en(2442778,43215,Ei.TAI),15),new Do(new en(2443144,43216,Ei.TAI),16),new Do(new en(2443509,43217,Ei.TAI),17),new Do(new en(2443874,43218,Ei.TAI),18),new Do(new en(2444239,43219,Ei.TAI),19),new Do(new en(2444786,43220,Ei.TAI),20),new Do(new en(2445151,43221,Ei.TAI),21),new Do(new en(2445516,43222,Ei.TAI),22),new Do(new en(2446247,43223,Ei.TAI),23),new Do(new en(2447161,43224,Ei.TAI),24),new Do(new en(2447892,43225,Ei.TAI),25),new Do(new en(2448257,43226,Ei.TAI),26),new Do(new en(2448804,43227,Ei.TAI),27),new Do(new en(2449169,43228,Ei.TAI),28),new Do(new en(2449534,43229,Ei.TAI),29),new Do(new en(2450083,43230,Ei.TAI),30),new Do(new en(2450630,43231,Ei.TAI),31),new Do(new en(2451179,43232,Ei.TAI),32),new Do(new en(2453736,43233,Ei.TAI),33),new Do(new en(2454832,43234,Ei.TAI),34),new Do(new en(2456109,43235,Ei.TAI),35),new Do(new en(2457204,43236,Ei.TAI),36),new Do(new en(2457754,43237,Ei.TAI),37)];var ee=en;var HUt=S(C(),1),mae=S(Su(),1);var NAt=S(C(),1);function SMe(e){return(e.length===0||e[e.length-1]!=="/")&&(e=`${e}/`),e}var QG=SMe;var DAt=S(C(),1);function ire(e,t){if(e===null||typeof e!="object")return e;t=g(t,!1);let n=new e.constructor;for(let i in e)if(e.hasOwnProperty(i)){let o=e[i];t&&(o=ire(o,t)),n[i]=o}return n}var Ue=ire;var YAt=S(C(),1);function ore(e,t,n){n=g(n,!1);let i={},o=d(e),r=d(t),s,a,c;if(o)for(s in e)e.hasOwnProperty(s)&&(a=e[s],r&&n&&typeof a=="object"&&t.hasOwnProperty(s)?(c=t[s],typeof c=="object"?i[s]=ore(a,c,n):i[s]=a):i[s]=a);if(r)for(s in t)t.hasOwnProperty(s)&&!i.hasOwnProperty(s)&&(c=t[s],i[s]=c);return i}var xt=ore;var OAt=S(C(),1);function CMe(){let e,t,n=new Promise(function(i,o){e=i,t=o});return{resolve:e,reject:t,promise:n}}var Xd=CMe;var QAt=S(C(),1),rre=S(Su(),1);function p4(e,t){let n;return typeof document<"u"&&(n=document),p4._implementation(e,t,n)}p4._implementation=function(e,t,n){if(!d(t)){if(typeof n>"u")return e;t=g(n.baseURI,n.location.href)}let i=new rre.default(e);return i.scheme()!==""?i.toString():i.absoluteTo(t).toString()};var Cf=p4;var qAt=S(C(),1),sre=S(Su(),1);function LMe(e,t){let n="",i=e.lastIndexOf("/");return i!==-1&&(n=e.substring(0,i+1)),t&&(e=new sre.default(e),e.query().length!==0&&(n+=`?${e.query()}`),e.fragment().length!==0&&(n+=`#${e.fragment()}`)),n}var jG=LMe;var eDt=S(C(),1),are=S(Su(),1);function VMe(e){let t=new are.default(e);t.normalize();let n=t.path(),i=n.lastIndexOf("/");return i!==-1&&(n=n.substr(i+1)),i=n.lastIndexOf("."),i===-1?n="":n=n.substr(i+1),n}var p_=VMe;var iDt=S(C(),1);var cre={};function ZMe(e,t,n){d(t)||(t=e.width),d(n)||(n=e.height);let i=cre[t];d(i)||(i={},cre[t]=i);let o=i[n];if(!d(o)){let r=document.createElement("canvas");r.width=t,r.height=n,o=r.getContext("2d",{willReadFrequently:!0}),o.globalCompositeOperation="copy",i[n]=o}return o.drawImage(e,0,0,t,n),o.getImageData(0,0,t,n).data}var Kh=ZMe;var rDt=S(C(),1);var RMe=/^blob:/i;function GMe(e){return RMe.test(e)}var f_=GMe;var cDt=S(C(),1);var Lf;function EMe(e){d(Lf)||(Lf=document.createElement("a")),Lf.href=window.location.href;let t=Lf.host,n=Lf.protocol;return Lf.href=e,Lf.href=Lf.href,n!==Lf.protocol||t!==Lf.host}var Ig=EMe;var dDt=S(C(),1);var IMe=/^data:/i;function XMe(e){return IMe.test(e)}var rb=XMe;var mDt=S(C(),1);function MMe(e){let t=document.createElement("script");return t.async=!0,t.src=e,new Promise((n,i)=>{window.crossOriginIsolated&&t.setAttribute("crossorigin","anonymous");let o=document.getElementsByTagName("head")[0];t.onload=function(){t.onload=void 0,o.removeChild(t),n()},t.onerror=function(r){i(r)},o.appendChild(t)})}var b_=MMe;var pDt=S(C(),1);function wMe(e){let t="";for(let n in e)if(e.hasOwnProperty(n)){let i=e[n],o=`${encodeURIComponent(n)}=`;if(Array.isArray(i))for(let r=0,s=i.length;r<s;++r)t+=`${o+encodeURIComponent(i[r])}&`;else t+=`${o+encodeURIComponent(i)}&`}return t=t.slice(0,-1),t}var y_=wMe;var yDt=S(C(),1);function WMe(e){let t={};if(e==="")return t;let n=e.replace(/\+/g,"%20").split(/[&;]/);for(let i=0,o=n.length;i<o;++i){let r=n[i].split("="),s=decodeURIComponent(r[0]),a=r[1];d(a)?a=decodeURIComponent(a):a="";let c=t[s];typeof c=="string"?t[s]=[c,a]:Array.isArray(c)?c.push(a):t[s]=a}return t}var Cu=WMe;var RDt=S(C(),1);var xDt=S(C(),1),PMe={UNISSUED:0,ISSUED:1,ACTIVE:2,RECEIVED:3,CANCELLED:4,FAILED:5},Xi=Object.freeze(PMe);var _Dt=S(C(),1),vMe={TERRAIN:0,IMAGERY:1,TILES3D:2,OTHER:3},Rs=Object.freeze(vMe);function q3(e){e=g(e,g.EMPTY_OBJECT);let t=g(e.throttleByServer,!1),n=g(e.throttle,!1);this.url=e.url,this.requestFunction=e.requestFunction,this.cancelFunction=e.cancelFunction,this.priorityFunction=e.priorityFunction,this.priority=g(e.priority,0),this.throttle=n,this.throttleByServer=t,this.type=g(e.type,Rs.OTHER),this.serverKey=e.serverKey,this.state=Xi.UNISSUED,this.deferred=void 0,this.cancelled=!1}q3.prototype.cancel=function(){this.cancelled=!0};q3.prototype.clone=function(e){return d(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=Xi.UNISSUED,e.deferred=void 0,e.cancelled=!1,e):new q3(this)};var Mr=q3;var wDt=S(C(),1);var EDt=S(C(),1);function NMe(e){let t={};if(!e)return t;let n=e.split(`\r
|
|
97
97
|
`);for(let i=0;i<n.length;++i){let o=n[i],r=o.indexOf(": ");if(r>0){let s=o.substring(0,r),a=o.substring(r+2);t[s]=a}}return t}var qG=NMe;function lre(e,t,n){this.statusCode=e,this.response=t,this.responseHeaders=n,typeof this.responseHeaders=="string"&&(this.responseHeaders=qG(this.responseHeaders))}lre.prototype.toString=function(){let e="Request has failed.";return d(this.statusCode)&&(e+=` Status Code: ${this.statusCode}`),e};var Vf=lre;var KDt=S(C(),1),$3=S(Su(),1);var NDt=S(C(),1);function g_(e){this._comparator=e.comparator,this._array=[],this._length=0,this._maximumLength=void 0}Object.defineProperties(g_.prototype,{length:{get:function(){return this._length}},internalArray:{get:function(){return this._array}},maximumLength:{get:function(){return this._maximumLength},set:function(e){let t=this._length;if(e<t){let n=this._array;for(let i=e;i<t;++i)n[i]=void 0;this._length=e,n.length=e}this._maximumLength=e}},comparator:{get:function(){return this._comparator}}});function f4(e,t,n){let i=e[t];e[t]=e[n],e[n]=i}g_.prototype.reserve=function(e){e=g(e,this._length),this._array.length=e};g_.prototype.heapify=function(e){e=g(e,0);let t=this._length,n=this._comparator,i=this._array,o=-1,r=!0;for(;r;){let s=2*(e+1),a=s-1;a<t&&n(i[a],i[e])<0?o=a:o=e,s<t&&n(i[s],i[o])<0&&(o=s),o!==e?(f4(i,o,e),e=o):r=!1}};g_.prototype.resort=function(){let e=this._length;for(let t=Math.ceil(e/2);t>=0;--t)this.heapify(t)};g_.prototype.insert=function(e){let t=this._array,n=this._comparator,i=this._maximumLength,o=this._length++;for(o<t.length?t[o]=e:t.push(e);o!==0;){let s=Math.floor((o-1)/2);if(n(t[o],t[s])<0)f4(t,o,s),o=s;else break}let r;return d(i)&&this._length>i&&(r=t[i],this._length=i),r};g_.prototype.pop=function(e){if(e=g(e,0),this._length===0)return;let t=this._array,n=t[e];return f4(t,e,--this._length),this.heapify(e),t[this._length]=void 0,n};var $G=g_;function FMe(e,t){return e.priority-t.priority}var er={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0},TL=20,el=new $G({comparator:FMe});el.maximumLength=TL;el.reserve(TL);var Zf=[],sb={},AMe=typeof document<"u"?new $3.default(document.location.href):new $3.default,eU=new Se;function Or(){}Or.maximumRequests=50;Or.maximumRequestsPerServer=18;Or.requestsByServer={};Or.throttleRequests=!0;Or.debugShowStatistics=!1;Or.requestCompletedEvent=eU;Object.defineProperties(Or,{statistics:{get:function(){return er}},priorityHeapLength:{get:function(){return TL},set:function(e){if(e<TL)for(;el.length>e;){let t=el.pop();x_(t)}TL=e,el.maximumLength=e,el.reserve(e)}}});function dre(e){d(e.priorityFunction)&&(e.priority=e.priorityFunction())}Or.serverHasOpenSlots=function(e,t){t=g(t,1);let n=g(Or.requestsByServer[e],Or.maximumRequestsPerServer);return sb[e]+t<=n};Or.heapHasOpenSlots=function(e){return el.length+e<=TL};function ure(e){return e.state===Xi.UNISSUED&&(e.state=Xi.ISSUED,e.deferred=Xd()),e.deferred.promise}function DMe(e){return function(t){if(e.state===Xi.CANCELLED)return;let n=e.deferred;--er.numberOfActiveRequests,--sb[e.serverKey],eU.raiseEvent(),e.state=Xi.RECEIVED,e.deferred=void 0,n.resolve(t)}}function UMe(e){return function(t){e.state!==Xi.CANCELLED&&(++er.numberOfFailedRequests,--er.numberOfActiveRequests,--sb[e.serverKey],eU.raiseEvent(t),e.state=Xi.FAILED,e.deferred.reject(t))}}function mre(e){let t=ure(e);return e.state=Xi.ACTIVE,Zf.push(e),++er.numberOfActiveRequests,++er.numberOfActiveRequestsEver,++sb[e.serverKey],e.requestFunction().then(DMe(e)).catch(UMe(e)),t}function x_(e){let t=e.state===Xi.ACTIVE;if(e.state=Xi.CANCELLED,++er.numberOfCancelledRequests,d(e.deferred)){let n=e.deferred;e.deferred=void 0,n.reject()}t&&(--er.numberOfActiveRequests,--sb[e.serverKey],++er.numberOfCancelledActiveRequests),d(e.cancelFunction)&&e.cancelFunction()}Or.update=function(){let e,t,n=0,i=Zf.length;for(e=0;e<i;++e){if(t=Zf[e],t.cancelled&&x_(t),t.state!==Xi.ACTIVE){++n;continue}n>0&&(Zf[e-n]=t)}Zf.length-=n;let o=el.internalArray,r=el.length;for(e=0;e<r;++e)dre(o[e]);el.resort();let s=Math.max(Or.maximumRequests-Zf.length,0),a=0;for(;a<s&&el.length>0;){if(t=el.pop(),t.cancelled){x_(t);continue}if(t.throttleByServer&&!Or.serverHasOpenSlots(t.serverKey)){x_(t);continue}mre(t),++a}kMe()};Or.getServerKey=function(e){let t=new $3.default(e);t.scheme()===""&&(t=t.absoluteTo(AMe),t.normalize());let n=t.authority();/:/.test(n)||(n=`${n}:${t.scheme()==="https"?"443":"80"}`);let i=sb[n];return d(i)||(sb[n]=0),n};Or.request=function(e){if(rb(e.url)||f_(e.url))return eU.raiseEvent(),e.state=Xi.RECEIVED,e.requestFunction();if(++er.numberOfAttemptedRequests,d(e.serverKey)||(e.serverKey=Or.getServerKey(e.url)),Or.throttleRequests&&e.throttleByServer&&!Or.serverHasOpenSlots(e.serverKey))return;if(!Or.throttleRequests||!e.throttle)return mre(e);if(Zf.length>=Or.maximumRequests)return;dre(e);let t=el.insert(e);if(d(t)){if(t===e)return;x_(t)}return ure(e)};function kMe(){Or.debugShowStatistics&&(er.numberOfActiveRequests===0&&er.lastNumberOfActiveRequests>0&&(er.numberOfAttemptedRequests>0&&(console.log(`Number of attempted requests: ${er.numberOfAttemptedRequests}`),er.numberOfAttemptedRequests=0),er.numberOfCancelledRequests>0&&(console.log(`Number of cancelled requests: ${er.numberOfCancelledRequests}`),er.numberOfCancelledRequests=0),er.numberOfCancelledActiveRequests>0&&(console.log(`Number of cancelled active requests: ${er.numberOfCancelledActiveRequests}`),er.numberOfCancelledActiveRequests=0),er.numberOfFailedRequests>0&&(console.log(`Number of failed requests: ${er.numberOfFailedRequests}`),er.numberOfFailedRequests=0)),er.lastNumberOfActiveRequests=er.numberOfActiveRequests)}Or.clearForSpecs=function(){for(;el.length>0;){let t=el.pop();x_(t)}let e=Zf.length;for(let t=0;t<e;++t)x_(Zf[t]);Zf.length=0,sb={},er.numberOfAttemptedRequests=0,er.numberOfActiveRequests=0,er.numberOfCancelledRequests=0,er.numberOfCancelledActiveRequests=0,er.numberOfFailedRequests=0,er.numberOfActiveRequestsEver=0,er.lastNumberOfActiveRequests=0};Or.numberOfActiveRequestsByServer=function(e){return sb[e]};Or.requestHeap=el;var rc=Or;var QDt=S(C(),1);function e2(e){this.name="RuntimeError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}d(Object.create)&&(e2.prototype=Object.create(Error.prototype),e2.prototype.constructor=e2);e2.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return d(this.stack)&&(e+=`
|
|
98
98
|
${this.stack.toString()}`),e};var le=e2;var $Dt=S(C(),1),hre=S(Su(),1);var t2={},_L={};t2.add=function(e,t){let n=`${e.toLowerCase()}:${t}`;d(_L[n])||(_L[n]=!0)};t2.remove=function(e,t){let n=`${e.toLowerCase()}:${t}`;d(_L[n])&&delete _L[n]};function zMe(e){let t=new hre.default(e);t.normalize();let n=t.authority();if(n.length!==0){if(t.authority(n),n.indexOf("@")!==-1&&(n=n.split("@")[1]),n.indexOf(":")===-1){let i=t.scheme();if(i.length===0&&(i=window.location.protocol,i=i.substring(0,i.length-1)),i==="http")n+=":80";else if(i==="https")n+=":443";else return}return n}}t2.contains=function(e){let t=zMe(e);return!!(d(t)&&d(_L[t]))};t2.clear=function(){_L={}};var SL=t2;var t3t=S(C(),1);function pre(){}pre.getBaseUrlAndParams=function(t){let n,i=[],o=t.split("?");if(o.length===0)throw new Error("url\u4F20\u5165\u4E0D\u5408\u6CD5");return o.length===1?n=o[0]:(n=o[0],i=o[1].split("&").map(function(r){let s=[],a=/(\w+)=(\w+='[^']+')/;return r.match(a)?(s[0]=r.match(a)[1],s[1]=r.match(a)[2]):s=r.split("="),{key:s[0],value:s[1]}}),o.length>=3&&console.error("url\u6709\u591A\u4E2A'?'\u8FDE\u63A5\u7B26\uFF0C\u4E0D\u5408\u6CD5")),{baseUrl:n,params:i}};var b4=pre;var o3t=S(C(),1);function Xg(){}Xg.ServiceConfigRequestInterceptors=function(t,n){n=g(n,"");var i=t.request.interceptors,o=decodeURI(n);if(i&&i instanceof Array)for(var r="",s=0;s<i.length;s++){var a=i[s].urls,c=i[s].before,l,u;if(!a)c&&c instanceof Function&&(l=c(n),l&&(r+=l));else if(typeof a=="string")u=decodeURI(a),o.indexOf(u)>-1&&c&&c instanceof Function&&(l=c(n),l&&(r+=l));else if(a instanceof Array)for(var m=0;m<a.length;m++)u=decodeURI(a[m]),o.indexOf(u)>-1&&c&&c instanceof Function&&(l=c(n),l&&(r+=l));r&&(n=r)}return n};Xg.ServiceConfigResponseInterceptors=function(t,n,i){if(n=g(n,""),!(!t||!t.request||!t.request.interceptors)){var o=t.request.interceptors,r=decodeURI(n);if(o&&o instanceof Array)for(var s=0;s<o.length;s++){var a=o[s].urls,c=o[s].after,l,u;if(!a||a instanceof Array&&a.length===0){if(c&&c instanceof Function&&(l=c(i),l))return l}else if(typeof a=="string"){if(u=decodeURI(a),r.indexOf(u)>-1&&c&&c instanceof Function&&(l=c(i),l))return l}else if(a instanceof Array){for(var m=0;m<a.length;m++)if(u=decodeURI(a[m]),r.indexOf(u)>-1&&c&&c instanceof Function&&(l=c(i),l))return l}}return i}};Xg.ServiceConfigToken=function(t){var n="";return t&&t.tokenKey&&t.tokenValue&&(n=t.tokenKey+"="+t.tokenValue),n};Xg.AnalysisConfigToUrl=function(t,n){return t&&t.tokenKey&&t.tokenValue&&(n.indexOf("?")>-1?n+="&"+Xg.ServiceConfigToken(t):n+="?"+Xg.ServiceConfigToken(t)),t&&t.request&&t.request.interceptors&&(n=Xg.ServiceConfigRequestInterceptors(t,n)),n};var CL=Xg;var s3t=S(C(),1),fre=function(e){fre.instance={tokenKey:e.tokenKey,tokenValue:e.tokenValue,headers:e.headers,request:e.request}},n2=fre;var xUt=S(C());var fUt=S(C()),cc=S(AU());var dUt=S(C()),F4=S(Yse()),tl=S(iae()),aa=S(rae()),Owe=aa.BigInteger.prototype.Barrett;function kl(e,t){this.x=t,this.q=e}function Wd(e,t,n,i){this.curve=e,this.x=t,this.y=n,this.z=i??aa.BigInteger.ONE,this.zinv=null}function If(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new Wd(this,null,null),this.reducer=new Owe(this.q)}kl.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},kl.prototype.toBigInteger=function(){return this.x},kl.prototype.negate=function(){return new kl(this.q,this.x.negate().mod(this.q))},kl.prototype.add=function(e){return new kl(this.q,this.x.add(e.toBigInteger()).mod(this.q))},kl.prototype.subtract=function(e){return new kl(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},kl.prototype.multiply=function(e){return new kl(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},kl.prototype.square=function(){return new kl(this.q,this.x.square().mod(this.q))},kl.prototype.divide=function(e){return new kl(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},Wd.prototype.getX=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)},Wd.prototype.getY=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)},Wd.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(aa.BigInteger.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(aa.BigInteger.ZERO))},Wd.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(aa.BigInteger.ZERO)&&!this.y.toBigInteger().equals(aa.BigInteger.ZERO)},Wd.prototype.negate=function(){return new Wd(this.curve,this.x,this.y.negate(),this.z)},Wd.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(aa.BigInteger.ZERO.equals(n))return aa.BigInteger.ZERO.equals(t)?this.twice():this.curve.getInfinity();var i=new aa.BigInteger("3"),o=this.x.toBigInteger(),r=this.y.toBigInteger(),s=(e.x.toBigInteger(),e.y.toBigInteger(),n.square()),a=s.multiply(n),c=o.multiply(s),l=t.square().multiply(this.z),u=l.subtract(c.shiftLeft(1)).multiply(e.z).subtract(a).multiply(n).mod(this.curve.q),m=c.multiply(i).multiply(t).subtract(r.multiply(a)).subtract(l.multiply(t)).multiply(e.z).add(t.multiply(a)).mod(this.curve.q),f=a.multiply(this.z).multiply(e.z).mod(this.curve.q);return new Wd(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(m),f)},Wd.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var e=new aa.BigInteger("3"),t=this.x.toBigInteger(),n=this.y.toBigInteger(),i=n.multiply(this.z),o=i.multiply(n).mod(this.curve.q),r=this.curve.a.toBigInteger(),s=t.square().multiply(e);aa.BigInteger.ZERO.equals(r)||(s=s.add(this.z.square().multiply(r)));var a=(s=s.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(o)).shiftLeft(1).multiply(i).mod(this.curve.q),c=s.multiply(e).multiply(t).subtract(o.shiftLeft(1)).shiftLeft(2).multiply(o).subtract(s.square().multiply(s)).mod(this.curve.q),l=i.square().multiply(i).shiftLeft(3).mod(this.curve.q);return new Wd(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(c),l)},Wd.prototype.multiply=function(e){if(this.isInfinity())return this;if(e.signum()==0)return this.curve.getInfinity();var t,n=e,i=n.multiply(new aa.BigInteger("3")),o=this.negate(),r=this;for(t=i.bitLength()-2;t>0;--t){r=r.twice();var s=i.testBit(t);s!=n.testBit(t)&&(r=r.add(s?this:o))}return r},Wd.prototype.multiplyTwo=function(e,t,n){var i;i=e.bitLength()>n.bitLength()?e.bitLength()-1:n.bitLength()-1;for(var o=this.curve.getInfinity(),r=this.add(t);i>=0;)o=o.twice(),e.testBit(i)?o=n.testBit(i)?o.add(r):o.add(this):n.testBit(i)&&(o=o.add(t)),--i;return o},If.prototype.getQ=function(){return this.q},If.prototype.getA=function(){return this.a},If.prototype.getB=function(){return this.b},If.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},If.prototype.getInfinity=function(){return this.infinity},If.prototype.fromBigInteger=function(e){return new kl(this.q,e)},If.prototype.reduce=function(e){this.reducer.reduce(e)},If.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2,n=e.substr(2,t),i=e.substr(t+2,t);return new Wd(this,this.fromBigInteger(new aa.BigInteger(n,16)),this.fromBigInteger(new aa.BigInteger(i,16)));default:return null}},If.prototype.encodePointHex=function(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16),n=e.getY().toBigInteger().toString(16),i=this.getQ().toString(16).length;for(i%2!=0&&i++;t.length<i;)t="0"+t;for(;n.length<i;)n="0"+n;return"04"+t+n};var IL=function(e,t){return e<<(t%=32)|e>>>32-t};var rUt=new aa.SecureRandom,A4=function(){var e=new If(new aa.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new aa.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new aa.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16)),t=e.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:e,G:t,n:new aa.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),sUt=A4.curve,aUt=A4.G,cUt=A4.n;var OU=[[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5],[43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153],[156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98],[228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166],[71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168],[104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53],[30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135],[212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158],[234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161],[224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227],[29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111],[213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81],[141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216],[10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176],[137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132],[24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72]],KU=[2746333894,1453994832,1736282519,2993693404],Kwe=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257],HU=/^[0-9a-f]{32}$/i,cae=function(e){return OU[(4026531840&e)>>>28][(251658240&e)>>>24]<<24|OU[(15728640&e)>>>20][(983040&e)>>>16]<<16|OU[(61440&e)>>>12][(3840&e)>>>8]<<8|OU[(240&e)>>>4][(15&e)>>>0]<<0},lae=function(e){return(t=cae(e))^IL(t,2)^IL(t,10)^IL(t,18)^IL(t,24);var t},dae=function(e){var t,n=new Array(36);n[0]=e[0]^KU[0],n[1]=e[1]^KU[1],n[2]=e[2]^KU[2],n[3]=e[3]^KU[3];for(var i=new Array(32),o=0;o<32;o++)n[o+4]=n[o]^(t=cae(n[o+1]^n[o+2]^n[o+3]^Kwe[o]))^IL(t,13)^IL(t,23),i[o]=n[o+4];return i},sae=function(e,t){for(var n=dae(t),i=0;i<32;i++)e[i+4]=e[i]^lae(e[i+1]^e[i+2]^e[i+3]^n[i]);return[e[35],e[34],e[33],e[32]]},aae=function(e,t){for(var n=dae(t).reverse(),i=0;i<32;i++)e[i+4]=e[i]^lae(e[i+1]^e[i+2]^e[i+3]^n[i]);return[e[35],e[34],e[33],e[32]]},JU=function(e){return[e.readInt32BE(0),e.readInt32BE(4),e.readInt32BE(8),e.readInt32BE(12)]},QU=function(e){for(var t=tl.Buffer.alloc(16),n=0;n<4;n++)t.writeInt32BE(e[n],4*n);return t},jU={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(e,t,n){var i=n||{},o=i.mode,r=i.iv,s=i.outputEncoding;if(typeof e=="string"?e=tl.Buffer.from(e,i.inputEncoding||"utf8"):e instanceof ArrayBuffer&&(e=tl.Buffer.from(e)),!tl.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');if(!HU.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=tl.Buffer.from(t,"hex"),o===2&&!HU.test(r))throw new TypeError("Invalid value of `iv` option");return function(a,c,l,u){l&&(l=JU(l)),c=JU(c);for(var m=[],f=(a=function(G){var I=16-G.length%16,w=tl.Buffer.alloc(I,I);return tl.Buffer.concat([G,w],G.length+I)}(a)).length/16,b=0;b<f;b++)if(l){var p=16*b,x=[l[0]^a.readInt32BE(p),l[1]^a.readInt32BE(p+4),l[2]^a.readInt32BE(p+8),l[3]^a.readInt32BE(p+12)],T=sae(x,c);m.push(QU(T)),l=T.slice(0)}else{var _=16*b,L=[a.readInt32BE(_),a.readInt32BE(_+4),a.readInt32BE(_+8),a.readInt32BE(_+12)],V=sae(L,c);m.push(QU(V))}var Z=tl.Buffer.concat(m,a.length);return u?Z.toString(u):(0,F4.default)(Z)}(e,t,r=o===2?tl.Buffer.from(r,"hex"):null,s)},decrypt:function(e,t,n){var i=n||{},o=i.mode,r=i.iv,s=i.outputEncoding;if(typeof e=="string"?e=tl.Buffer.from(e,i.inputEncoding):e instanceof ArrayBuffer&&(e=tl.Buffer.from(e)),!tl.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');if(!HU.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=tl.Buffer.from(t,"hex"),o===2&&!HU.test(r))throw new TypeError("Invalid value of `iv` option");return function(a,c,l,u){l&&(l=JU(l)),c=JU(c);var m=[],f=a.length/16;if(l)for(var b=f-1;b>=0;b--){var p,x=16*b;p=b>0?[a.readInt32BE(x-16),a.readInt32BE(x-16+4),a.readInt32BE(x-16+8),a.readInt32BE(x-16+12)]:l;var T=[a.readInt32BE(x),a.readInt32BE(x+4),a.readInt32BE(x+8),a.readInt32BE(x+12)],_=aae(T,c);m.unshift(QU([_[0]^p[0],_[1]^p[1],_[2]^p[2],_[3]^p[3]]))}else for(var L=0;L<f;L++){var V=16*L,Z=[a.readInt32BE(V),a.readInt32BE(V+4),a.readInt32BE(V+8),a.readInt32BE(V+12)],G=aae(Z,c);m.push(QU(G))}var I=tl.Buffer.concat(m,a.length-m[m.length-1][15]);return u?I.toString(u):(0,F4.default)(I)}(e,t,r=o===2?tl.Buffer.from(r,"hex"):null,s)}};var uUt=S(C()),D4=S(AU());D4.default.enc.u8array={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=new Uint8Array(n),o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;i[o]=r}return i},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(e[i]&255)<<24-i%4*8;return D4.default.lib.WordArray.create(n,t)}};function Hwe(e){e=e||{};let{key:t,iv:n,algorithm:i,arrayBuffer:o,secretMsg:r}=e,s;if(!(o instanceof ArrayBuffer))throw new Error("\u52A0\u5BC6\u6587\u4EF6\u683C\u5F0F\u4F20\u5165\u9519\u8BEF\uFF0C\u8BF7\u4F20\u5165ArrayBuffer\u5BF9\u8C61");if(!r&&!t)throw new Error("\u7F3A\u5C11\u89E3\u6790\u79D8\u94A5");if(!t){let a=new TextEncoder,c=cc.default.enc.u8array.parse(a.encode("313233343536373a")),l=cc.default.AES.decrypt(r,c,{mode:cc.default.mode.ECB,padding:cc.default.pad.Pkcs7}),u=cc.default.enc.Utf8.stringify(l);if(!u||u==="null:null")throw new Error("\u89E3\u5BC6\u5931\u8D25");t=u.split(":")[0],n=u.split(":")[1]}switch(i){case"AES":case"AES/CTR":n||(n="knOzAaK1xRcPrNPvG583DQ=="),n=cc.default.enc.Base64.parse(n),t=cc.default.enc.Base64.parse(t);let a=cc.default.enc.Base64.stringify(cc.default.enc.u8array.parse(new Int8Array(o)));s=cc.default.AES.decrypt(a,t,{iv:n,mode:cc.default.mode.CTR,padding:cc.default.pad.NoPadding}),s=cc.default.enc.u8array.stringify(s);break;case"SM4":case"SM4/CBC":n||(n="xRtXf8aGB63ZXc1K8LOBfQ==");let c=cc.default.enc.Hex.stringify(cc.default.enc.Base64.parse(n)),l=cc.default.enc.Hex.stringify(cc.default.enc.Base64.parse(t));s=jU.decrypt(o,l,{iv:c,mode:jU.constants.CBC,padding:"none"});break;default:throw new Error(`\u672A\u5B9A\u4E49\u7684\u52A0\u5BC6\u7684\u7B97\u6CD5\uFF0C\u8BF7\u68C0\u67E5\u540D\u79F0\u4E3A${i}\u7684\u52A0\u5BC6\u7B97\u6CD5`)}return s}var C_=Hwe;var Jwe=S(AU());var hae=function(){try{let e=new XMLHttpRequest;return e.open("GET","#",!0),e.responseType="blob",e.responseType==="blob"}catch{return!1}}();function jt(e){e=g(e,g.EMPTY_OBJECT),typeof e=="string"&&(e={url:e}),this._url=void 0,this._templateValues=Xf(e.templateValues,{}),this._queryParameters=Xf(e.queryParameters,{}),this.headers=Xf(e.headers,{}),this.request=g(e.request,new Mr),this.proxy=e.proxy,this.retryCallback=e.retryCallback,this.retryAttempts=g(e.retryAttempts,0),this._retryCount=0,g(e.parseUrl,!0)?this.parseUrl(e.url,!0,!0):this._url=e.url,this._credits=e.credits}function Xf(e,t){return d(e)?Ue(e):t}jt.createIfNeeded=function(e){return e instanceof jt?e.getDerivedResource({request:e.request}):typeof e!="string"?e:new jt({url:e})};var XL;jt.supportsImageBitmapOptions=function(){return d(XL)?XL:typeof createImageBitmap!="function"?(XL=Promise.resolve(!1),XL):(XL=jt.fetchBlob({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAAE4g3rEiDgAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADElEQVQI12Ng6GAAAAEUAIngE3ZiAAAAAElFTkSuQmCC"}).then(function(t){let n={imageOrientation:"flipY",premultiplyAlpha:"none",colorSpaceConversion:"none"};return Promise.all([createImageBitmap(t,n),createImageBitmap(t)])}).then(function(t){let n=Kh(t[0]),i=Kh(t[1]);return n[1]!==i[1]}).catch(function(){return!1}),XL)};Object.defineProperties(jt,{isBlobSupported:{get:function(){return hae}}});Object.defineProperties(jt.prototype,{queryParameters:{get:function(){return this._queryParameters}},templateValues:{get:function(){return this._templateValues}},url:{get:function(){return this.getUrlComponent(!0,!0)},set:function(e){this.parseUrl(e,!1,!1)}},extension:{get:function(){return p_(this._url)}},isDataUri:{get:function(){return rb(this._url)}},isBlobUri:{get:function(){return f_(this._url)}},isCrossOriginUrl:{get:function(){return Ig(this._url)}},hasHeaders:{get:function(){return Object.keys(this.headers).length>0}},credits:{get:function(){return this._credits}}});jt.prototype.toString=function(){return this.getUrlComponent(!0,!0)};jt.prototype.parseUrl=function(e,t,n,i){let o=new mae.default(e),r=Qwe(o.query());this._queryParameters=t?$U(r,this.queryParameters,n):r,o.search(""),o.fragment(""),d(i)&&o.scheme()===""&&(o=o.absoluteTo(Cf(i))),this._url=o.toString()};function Qwe(e){return e.length===0?{}:e.indexOf("=")===-1?{[e]:void 0}:Cu(e)}function $U(e,t,n){if(!n)return xt(e,t);let i=Ue(e,!0);for(let o in t)if(t.hasOwnProperty(o)){let r=i[o],s=t[o];d(r)?(Array.isArray(r)||(r=i[o]=[r]),i[o]=r.concat(s)):i[o]=Array.isArray(s)?s.slice():s}return i}jt.prototype.getUrlComponent=function(e,t){if(this.isDataUri)return this._url;let n=this._url;e&&(n=`${n}${jwe(this.queryParameters)}`),n=n.replace(/%7B/g,"{").replace(/%7D/g,"}");let i=this._templateValues;return Object.keys(i).length>0&&(n=n.replace(/{(.*?)}/g,function(o,r){let s=i[r];return d(s)?encodeURIComponent(s):o})),t&&d(this.proxy)&&(n=this.proxy.getURL(n)),n};function jwe(e){let t=Object.keys(e);return t.length===0?"":t.length===1&&!d(e[t[0]])?`?${t[0]}`:`?${y_(e)}`}jt.prototype.setQueryParameters=function(e,t){t?this._queryParameters=$U(this._queryParameters,e,!1):this._queryParameters=$U(e,this._queryParameters,!1)};jt.prototype.appendQueryParameters=function(e){this._queryParameters=$U(e,this._queryParameters,!0)};jt.prototype.setTemplateValues=function(e,t){t?this._templateValues=xt(this._templateValues,e):this._templateValues=xt(e,this._templateValues)};jt.prototype.getDerivedResource=function(e){let t=this.clone();if(t._retryCount=0,d(e.url)){let n=g(e.preserveQueryParameters,!1);t.parseUrl(e.url,!0,n,this._url)}return d(e.queryParameters)&&(t._queryParameters=xt(e.queryParameters,t.queryParameters)),d(e.templateValues)&&(t._templateValues=xt(e.templateValues,t.templateValues)),d(e.headers)&&(t.headers=xt(e.headers,t.headers)),d(e.proxy)&&(t.proxy=e.proxy),d(e.request)&&(t.request=e.request),d(e.retryCallback)&&(t.retryCallback=e.retryCallback),d(e.retryAttempts)&&(t.retryAttempts=e.retryAttempts),t};jt.prototype.retryOnError=function(e){let t=this.retryCallback;if(typeof t!="function"||this._retryCount>=this.retryAttempts)return Promise.resolve(!1);let n=this;return Promise.resolve(t(this,e)).then(function(i){return++n._retryCount,i})};jt.prototype.clone=function(e){return d(e)?(e._url=this._url,e._queryParameters=Ue(this._queryParameters),e._templateValues=Ue(this._templateValues),e.headers=Ue(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e):new jt({url:this._url,queryParameters:this.queryParameters,templateValues:this.templateValues,headers:this.headers,proxy:this.proxy,retryCallback:this.retryCallback,retryAttempts:this.retryAttempts,request:this.request.clone(),parseUrl:!1,credits:d(this.credits)?this.credits.slice():void 0})};jt.prototype.getBaseUri=function(e){return jG(this.getUrlComponent(e),e)};jt.prototype.appendForwardSlash=function(){this._url=QG(this._url)};jt.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})};jt.fetchArrayBuffer=function(e){return new jt(e).fetchArrayBuffer()};jt.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})};jt.fetchBlob=function(e){return new jt(e).fetchBlob()};jt.prototype.fetchImage=function(e){e=g(e,g.EMPTY_OBJECT);let t=g(e.preferImageBitmap,!1),n=g(e.preferBlob,!1),i=g(e.flipY,!1),o=g(e.skipColorSpaceConversion,!1);if(k4(this.request),!hae||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!n)return U4({resource:this,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:t});let r=this.fetchBlob();if(!d(r))return;let s,a,c,l;return jt.supportsImageBitmapOptions().then(function(u){return s=u,a=s&&t,r}).then(function(u){if(!d(u))return;if(l=u,a)return jt.createImageBitmapFromBlob(u,{flipY:i,premultiplyAlpha:!1,skipColorSpaceConversion:o});let m=window.URL.createObjectURL(u);return c=new jt({url:m}),U4({resource:c,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:!1})}).then(function(u){if(d(u))return u.blob=l,a||window.URL.revokeObjectURL(c.url),u}).catch(function(u){return d(c)&&window.URL.revokeObjectURL(c.url),u.blob=l,Promise.reject(u)})};function U4(e){let t=e.resource,n=e.flipY,i=e.skipColorSpaceConversion,o=e.preferImageBitmap,r=t.request;r.url=t.url,r.requestFunction=function(){let a=!1;!t.isDataUri&&!t.isBlobUri&&(a=t.isCrossOriginUrl);let c=Xd();return jt._Implementations.createImage(r,a,c,n,i,o),c.promise};let s=rc.request(r);if(d(s))return s.catch(function(a){return r.state!==Xi.FAILED?Promise.reject(a):t.retryOnError(a).then(function(c){return c?(r.state=Xi.UNISSUED,r.deferred=void 0,U4({resource:t,flipY:n,skipColorSpaceConversion:i,preferImageBitmap:o})):Promise.reject(a)})})}jt.fetchImage=function(e){return new jt(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})};jt.prototype.fetchText=function(){return this.fetch({responseType:"text"})};jt.fetchText=function(e){return new jt(e).fetchText()};jt.prototype.fetchJson=function(){let e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if(d(e))return e.then(function(t){if(d(t))return JSON.parse(t)})};jt.fetchJson=function(e){return new jt(e).fetchJson()};jt.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})};jt.fetchXML=function(e){return new jt(e).fetchXML()};jt.prototype.fetchJsonp=function(e){e=g(e,"callback"),k4(this.request);let t;do t=`loadJsonp${M.nextRandomNumber().toString().substring(2,8)}`;while(d(window[t]));return pae(this,e,t)};function pae(e,t,n){let i={};i[t]=n,e.setQueryParameters(i);let o=e.request,r=e.url;o.url=r,o.requestFunction=function(){let a=Xd();return window[n]=function(c){a.resolve(c);try{delete window[n]}catch{window[n]=void 0}},jt._Implementations.loadAndExecuteScript(r,n,a),a.promise};let s=rc.request(o);if(d(s))return s.catch(function(a){return o.state!==Xi.FAILED?Promise.reject(a):e.retryOnError(a).then(function(c){return c?(o.state=Xi.UNISSUED,o.deferred=void 0,pae(e,t,n)):Promise.reject(a)})})}jt.fetchJsonp=function(e){return new jt(e).fetchJsonp(e.callbackParameterName)};jt.prototype._makeRequest=function(e){let t=this;k4(t.request);let n=t.request,i=t.url;n.url=i,n.requestFunction=function(){let r=e.responseType,s=xt(e.headers,t.headers),a=e.overrideMimeType,c=e.method,l=e.data,u=Xd(),m=jt._Implementations.loadWithXhr(i,r,c,l,s,u,a);return d(m)&&d(m.abort)&&(n.cancelFunction=function(){m.abort()}),u.promise};let o=rc.request(n);if(d(o))return o.then(function(r){return n.cancelFunction=void 0,r}).catch(function(r){return n.cancelFunction=void 0,n.state!==Xi.FAILED?Promise.reject(r):t.retryOnError(r).then(function(s){return s?(n.state=Xi.UNISSUED,n.deferred=void 0,t.fetch(e)):Promise.reject(r)})})};function k4(e){if(e.state===Xi.ISSUED||e.state===Xi.ACTIVE)throw new le("The Resource is already being fetched.");e.state=Xi.UNISSUED,e.deferred=void 0}var qwe=/^data:(.*?)(;base64)?,(.*)$/;function qU(e,t){let n=decodeURIComponent(t);return e?atob(n):n}function uae(e,t){let n=qU(e,t),i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let r=0;r<n.length;r++)o[r]=n.charCodeAt(r);return i}function $we(e,t){t=g(t,"");let n=e[1],i=!!e[2],o=e[3],r,s;switch(t){case"":case"text":return qU(i,o);case"arraybuffer":return uae(i,o);case"blob":return r=uae(i,o),new Blob([r],{type:n});case"document":return s=new DOMParser,s.parseFromString(qU(i,o),n);case"json":return JSON.parse(qU(i,o));default:}}jt.prototype.fetch=function(e){return e=Xf(e,{}),e.method="GET",this._makeRequest(e)};jt.fetch=function(e){return new jt(e).fetch({responseType:e.responseType,overrideMimeType:e.overrideMimeType})};jt.prototype.delete=function(e){return e=Xf(e,{}),e.method="DELETE",this._makeRequest(e)};jt.delete=function(e){return new jt(e).delete({responseType:e.responseType,overrideMimeType:e.overrideMimeType,data:e.data})};jt.prototype.head=function(e){return e=Xf(e,{}),e.method="HEAD",this._makeRequest(e)};jt.head=function(e){return new jt(e).head({responseType:e.responseType,overrideMimeType:e.overrideMimeType})};jt.prototype.options=function(e){return e=Xf(e,{}),e.method="OPTIONS",this._makeRequest(e)};jt.options=function(e){return new jt(e).options({responseType:e.responseType,overrideMimeType:e.overrideMimeType})};jt.prototype.post=function(e,t){return ao.defined("data",e),t=Xf(t,{}),t.method="POST",t.data=e,this._makeRequest(t)};jt.post=function(e){return new jt(e).post(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})};jt.prototype.put=function(e,t){return ao.defined("data",e),t=Xf(t,{}),t.method="PUT",t.data=e,this._makeRequest(t)};jt.put=function(e){return new jt(e).put(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})};jt.prototype.patch=function(e,t){return ao.defined("data",e),t=Xf(t,{}),t.method="PATCH",t.data=e,this._makeRequest(t)};jt.patch=function(e){return new jt(e).patch(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})};jt._Implementations={};jt._Implementations.loadImageElement=function(e,t,n){let i=new Image;i.onload=function(){i.naturalWidth===0&&i.naturalHeight===0&&i.width===0&&i.height===0&&(i.width=300,i.height=150),n.resolve(i)},i.onerror=function(o){n.reject(o)},t&&(SL.contains(e)?i.crossOrigin="use-credentials":i.crossOrigin=""),i.src=e};jt._Implementations.createImage=function(e,t,n,i,o,r){let s=e.url;jt.supportsImageBitmapOptions().then(function(a){if(!(a&&r)){jt._Implementations.loadImageElement(s,t,n);return}let c=e.decryptOptions,l=c?"arraybuffer":"blob",u="GET",m=Xd(),f=jt._Implementations.loadWithXhr(s,l,u,void 0,void 0,m,void 0);return d(f)&&d(f.abort)&&(e.cancelFunction=function(){f.abort()}),m.promise.then(function(b){let p=b;if(c){let x=C_(Object.assign({arrayBuffer:b},c));p=new Blob([x])}if(!d(p)){n.reject(new le(`Successfully retrieved ${s} but it contained no content.`));return}return jt.createImageBitmapFromBlob(p,{flipY:i,premultiplyAlpha:!1,skipColorSpaceConversion:o})}).then(function(b){n.resolve(b)})}).catch(function(a){n.reject(a)})};jt.createImageBitmapFromBlob=function(e,t){return ao.defined("options",t),ao.typeOf.bool("options.flipY",t.flipY),ao.typeOf.bool("options.premultiplyAlpha",t.premultiplyAlpha),ao.typeOf.bool("options.skipColorSpaceConversion",t.skipColorSpaceConversion),createImageBitmap(e,{imageOrientation:t.flipY?"flipY":"none",premultiplyAlpha:t.premultiplyAlpha?"premultiply":"none",colorSpaceConversion:t.skipColorSpaceConversion?"none":"default"})};function eWe(e,t,n,i,o,r,s){fetch(e,{method:n,headers:o}).then(async a=>{if(!a.ok){let c={};a.headers.forEach((l,u)=>{c[u]=l}),r.reject(new Vf(a.status,a,c));return}switch(t){case"text":r.resolve(a.text());break;case"json":r.resolve(a.json());break;default:r.resolve(new Uint8Array(await a.arrayBuffer()).buffer);break}}).catch(()=>{r.reject(new Vf)})}var tWe=typeof XMLHttpRequest>"u";jt._Implementations.loadWithXhr=function(e,t,n,i,o,r,s){let a=n2.instance,c=g(o,{});d(a)&&d(a.headers)&&(c=xt(c,a.headers));let l=qwe.exec(e);if(l!==null){r.resolve($we(l,t));return}if(e=CL.AnalysisConfigToUrl(a,e),tWe){eWe(e,t,n,i,c,r,s);return}let u=new XMLHttpRequest;if(SL.contains(e)&&(u.withCredentials=!0),u.open(n,e,!0),d(s)&&d(u.overrideMimeType)&&u.overrideMimeType(s),d(c))for(let f in c)c.hasOwnProperty(f)&&u.setRequestHeader(f,c[f]);d(t)&&(u.responseType=t);let m=!1;return typeof e=="string"&&(m=e.indexOf("file://")===0||typeof window<"u"&&window.location.origin==="file://"),u.onload=function(){if((u.status<200||u.status>=300)&&!(m&&u.status===0)){r.reject(new Vf(u.status,u.response,u.getAllResponseHeaders()));return}let f=u.response,b=u.responseType;if(CL.ServiceConfigResponseInterceptors(a,e,f),n==="HEAD"||n==="OPTIONS"){let x=u.getAllResponseHeaders().trim().split(/[\r\n]+/),T={};x.forEach(function(_){let L=_.split(": "),V=L.shift();T[V]=L.join(": ")}),r.resolve(T);return}if(u.status===204)r.resolve(void 0);else if(d(f)&&(!d(t)||b===t))r.resolve(f);else if(t==="json"&&typeof f=="string")try{r.resolve(JSON.parse(f))}catch(p){r.reject(p)}else(b===""||b==="document")&&d(u.responseXML)&&u.responseXML.hasChildNodes()?r.resolve(u.responseXML):(b===""||b==="text")&&d(u.responseText)?r.resolve(u.responseText):r.reject(new le("Invalid XMLHttpRequest response type."))},u.onerror=function(f){r.reject(new Vf)},u.send(i),u};jt._Implementations.loadAndExecuteScript=function(e,t,n){return b_(e,t).catch(function(i){n.reject(i)})};jt._DefaultImplementations={};jt._DefaultImplementations.createImage=jt._Implementations.createImage;jt._DefaultImplementations.loadWithXhr=jt._Implementations.loadWithXhr;jt._DefaultImplementations.loadAndExecuteScript=jt._Implementations.loadAndExecuteScript;jt.DEFAULT=Object.freeze(new jt({url:typeof document>"u"?"":document.location.href.split("?")[0]}));var Xe=jt;function s2(e){e=g(e,g.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._addNewLeapSeconds=g(e.addNewLeapSeconds,!0),d(e.data)?fae(this,e.data):fae(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}s2.fromUrl=async function(e,t){t=g(t,g.EMPTY_OBJECT);let n=Xe.createIfNeeded(e),i;try{i=await n.fetchJson()}catch{throw new le(`An error occurred while retrieving the EOP data from the URL ${n.url}.`)}return new s2({addNewLeapSeconds:t.addNewLeapSeconds,data:i})};s2.NONE=Object.freeze({compute:function(e,t){return d(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new Gg(0,0,0,0,0),t}});s2.prototype.compute=function(e,t){if(!d(this._samples))return;if(d(t)||(t=new Gg(0,0,0,0,0)),this._samples.length===0)return t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0,t;let n=this._dates,i=this._lastIndex,o=0,r=0;if(d(i)){let a=n[i],c=n[i+1],l=ee.lessThanOrEquals(a,e),u=!d(c),m=u||ee.greaterThanOrEquals(c,e);if(l&&m)return o=i,!u&&c.equals(e)&&++o,r=o+1,yae(this,n,this._samples,e,o,r,t),t}let s=Xr(n,e,ee.compare,this._dateColumn);return s>=0?(s<n.length-1&&n[s+1].equals(e)&&++s,o=s,r=s):(r=~s,o=r-1,o<0&&(o=0)),this._lastIndex=o,yae(this,n,this._samples,e,o,r,t),t};function nWe(e,t){return ee.compare(e.julianDate,t)}function fae(e,t){if(!d(t.columnNames))throw new le("Error in loaded EOP data: The columnNames property is required.");if(!d(t.samples))throw new le("Error in loaded EOP data: The samples property is required.");let n=t.columnNames.indexOf("modifiedJulianDateUtc"),i=t.columnNames.indexOf("xPoleWanderRadians"),o=t.columnNames.indexOf("yPoleWanderRadians"),r=t.columnNames.indexOf("ut1MinusUtcSeconds"),s=t.columnNames.indexOf("xCelestialPoleOffsetRadians"),a=t.columnNames.indexOf("yCelestialPoleOffsetRadians"),c=t.columnNames.indexOf("taiMinusUtcSeconds");if(n<0||i<0||o<0||r<0||s<0||a<0||c<0)throw new le("Error in loaded EOP data: The columnNames property must include modifiedJulianDateUtc, xPoleWanderRadians, yPoleWanderRadians, ut1MinusUtcSeconds, xCelestialPoleOffsetRadians, yCelestialPoleOffsetRadians, and taiMinusUtcSeconds columns");let l=e._samples=t.samples,u=e._dates=[];e._dateColumn=n,e._xPoleWanderRadiansColumn=i,e._yPoleWanderRadiansColumn=o,e._ut1MinusUtcSecondsColumn=r,e._xCelestialPoleOffsetRadiansColumn=s,e._yCelestialPoleOffsetRadiansColumn=a,e._taiMinusUtcSecondsColumn=c,e._columnCount=t.columnNames.length,e._lastIndex=void 0;let m,f=e._addNewLeapSeconds;for(let b=0,p=l.length;b<p;b+=e._columnCount){let x=l[b+n],T=l[b+c],_=x+wi.MODIFIED_JULIAN_DATE_DIFFERENCE,L=new ee(_,T,Ei.TAI);if(u.push(L),f){if(T!==m&&d(m)){let V=ee.leapSeconds,Z=Xr(V,L,nWe);if(Z<0){let G=new Do(L,T);V.splice(~Z,0,G)}}m=T}}}function bae(e,t,n,i,o){let r=n*i;o.xPoleWander=t[r+e._xPoleWanderRadiansColumn],o.yPoleWander=t[r+e._yPoleWanderRadiansColumn],o.xPoleOffset=t[r+e._xCelestialPoleOffsetRadiansColumn],o.yPoleOffset=t[r+e._yCelestialPoleOffsetRadiansColumn],o.ut1MinusUtc=t[r+e._ut1MinusUtcSecondsColumn]}function r2(e,t,n){return t+e*(n-t)}function yae(e,t,n,i,o,r,s){let a=e._columnCount;if(r>t.length-1)return s.xPoleWander=0,s.yPoleWander=0,s.xPoleOffset=0,s.yPoleOffset=0,s.ut1MinusUtc=0,s;let c=t[o],l=t[r];if(c.equals(l)||i.equals(c))return bae(e,n,o,a,s),s;if(i.equals(l))return bae(e,n,r,a,s),s;let u=ee.secondsDifference(i,c)/ee.secondsDifference(l,c),m=o*a,f=r*a,b=n[m+e._ut1MinusUtcSecondsColumn],p=n[f+e._ut1MinusUtcSecondsColumn],x=p-b;if(x>.5||x<-.5){let T=n[m+e._taiMinusUtcSecondsColumn],_=n[f+e._taiMinusUtcSecondsColumn];T!==_&&(l.equals(i)?b=p:p-=_-T)}return s.xPoleWander=r2(u,n[m+e._xPoleWanderRadiansColumn],n[f+e._xPoleWanderRadiansColumn]),s.yPoleWander=r2(u,n[m+e._yPoleWanderRadiansColumn],n[f+e._yPoleWanderRadiansColumn]),s.xPoleOffset=r2(u,n[m+e._xCelestialPoleOffsetRadiansColumn],n[f+e._xCelestialPoleOffsetRadiansColumn]),s.yPoleOffset=r2(u,n[m+e._yCelestialPoleOffsetRadiansColumn],n[f+e._yCelestialPoleOffsetRadiansColumn]),s.ut1MinusUtc=r2(u,b,p),s}var a2=s2;var ukt=S(C(),1);function nl(e,t,n){this.heading=g(e,0),this.pitch=g(t,0),this.roll=g(n,0)}nl.fromQuaternion=function(e,t){d(t)||(t=new nl);let n=2*(e.w*e.y-e.z*e.x),i=1-2*(e.x*e.x+e.y*e.y),o=2*(e.w*e.x+e.y*e.z),r=1-2*(e.y*e.y+e.z*e.z),s=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(s,r),t.roll=Math.atan2(o,i),t.pitch=-M.asinClamped(n),t};nl.fromDegrees=function(e,t,n,i){return d(i)||(i=new nl),i.heading=e*M.RADIANS_PER_DEGREE,i.pitch=t*M.RADIANS_PER_DEGREE,i.roll=n*M.RADIANS_PER_DEGREE,i};nl.clone=function(e,t){if(d(e))return d(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new nl(e.heading,e.pitch,e.roll)};nl.equals=function(e,t){return e===t||d(e)&&d(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll};nl.equalsEpsilon=function(e,t,n,i){return e===t||d(e)&&d(t)&&M.equalsEpsilon(e.heading,t.heading,n,i)&&M.equalsEpsilon(e.pitch,t.pitch,n,i)&&M.equalsEpsilon(e.roll,t.roll,n,i)};nl.prototype.clone=function(e){return nl.clone(this,e)};nl.prototype.equals=function(e){return nl.equals(this,e)};nl.prototype.equalsEpsilon=function(e,t,n){return nl.equalsEpsilon(this,e,t,n)};nl.prototype.toString=function(){return`(${this.heading}, ${this.pitch}, ${this.roll})`};var Gs=nl;var Gkt=S(C(),1);var bkt=S(C(),1);var gae={};var xae=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;function iWe(){let e=document.getElementsByTagName("script");for(let t=0,n=e.length;t<n;++t){let i=e[t].getAttribute("src"),o=xae.exec(i);if(o!==null)return o[1]}}var ek;function Tae(e){return typeof document>"u"?e:(d(ek)||(ek=document.createElement("a")),ek.href=e,ek.href)}var L_;function _ae(){if(d(L_))return L_;let e;return typeof CESIUM_BASE_URL<"u"?e=CESIUM_BASE_URL:d(gae?.url)?e=Cf(".",gae.url):typeof define=="object"&&d(define.amd)&&!define.amd.toUrlUndefined&&d(Bh.toUrl)?e=Cf("..",V_("Core/buildModuleUrl.js")):e=iWe(),L_=new Xe({url:Tae(e)}),L_.appendForwardSlash(),L_}function oWe(e){return Tae(Bh.toUrl(`../${e}`))}function Sae(e){return _ae().getDerivedResource({url:e}).url}var tk;function V_(e){return d(tk)||(typeof define=="object"&&d(define.amd)&&!define.amd.toUrlUndefined&&d(Bh.toUrl)?tk=oWe:tk=Sae),tk(e)}V_._cesiumScriptRegex=xae;V_._buildModuleUrlFromBaseUrl=Sae;V_._clearBaseResource=function(){L_=void 0};V_.setBaseUrl=function(e){L_=Xe.DEFAULT.getDerivedResource({url:e})};V_.getCesiumBaseUrl=_ae;var Sn=V_;var xkt=S(C(),1);function rWe(e,t,n){this.x=e,this.y=t,this.s=n}var Z_=rWe;function B4(e){e=g(e,g.EMPTY_OBJECT),this._xysFileUrlTemplate=Xe.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=g(e.interpolationOrder,9),this._sampleZeroJulianEphemerisDate=g(e.sampleZeroJulianEphemerisDate,24423965e-1),this._sampleZeroDateTT=new ee(this._sampleZeroJulianEphemerisDate,0,Ei.TAI),this._stepSizeDays=g(e.stepSizeDays,1),this._samplesPerXysFile=g(e.samplesPerXysFile,1e3),this._totalSamples=g(e.totalSamples,27426),this._samples=new Array(this._totalSamples*3),this._chunkDownloadsInProgress=[];let t=this._interpolationOrder,n=this._denominators=new Array(t+1),i=this._xTable=new Array(t+1),o=Math.pow(this._stepSizeDays,t);for(let r=0;r<=t;++r){n[r]=o,i[r]=r*this._stepSizeDays;for(let s=0;s<=t;++s)s!==r&&(n[r]*=r-s);n[r]=1/n[r]}this._work=new Array(t+1),this._coef=new Array(t+1)}var sWe=new ee(0,0,Ei.TAI);function z4(e,t,n){let i=sWe;return i.dayNumber=t,i.secondsOfDay=n,ee.daysDifference(i,e._sampleZeroDateTT)}B4.prototype.preload=function(e,t,n,i){let o=z4(this,e,t),r=z4(this,n,i),s=o/this._stepSizeDays-this._interpolationOrder/2|0;s<0&&(s=0);let a=r/this._stepSizeDays-this._interpolationOrder/2|0+this._interpolationOrder;a>=this._totalSamples&&(a=this._totalSamples-1);let c=s/this._samplesPerXysFile|0,l=a/this._samplesPerXysFile|0,u=[];for(let m=c;m<=l;++m)u.push(Y4(this,m));return Promise.all(u)};B4.prototype.computeXysRadians=function(e,t,n){let i=z4(this,e,t);if(i<0)return;let o=i/this._stepSizeDays|0;if(o>=this._totalSamples)return;let r=this._interpolationOrder,s=o-(r/2|0);s<0&&(s=0);let a=s+r;a>=this._totalSamples&&(a=this._totalSamples-1,s=a-r,s<0&&(s=0));let c=!1,l=this._samples;if(d(l[s*3])||(Y4(this,s/this._samplesPerXysFile|0),c=!0),d(l[a*3])||(Y4(this,a/this._samplesPerXysFile|0),c=!0),c)return;d(n)?(n.x=0,n.y=0,n.s=0):n=new Z_(0,0,0);let u=i-s*this._stepSizeDays,m=this._work,f=this._denominators,b=this._coef,p=this._xTable,x,T;for(x=0;x<=r;++x)m[x]=u-p[x];for(x=0;x<=r;++x){for(b[x]=1,T=0;T<=r;++T)T!==x&&(b[x]*=m[T]);b[x]*=f[x];let _=(s+x)*3;n.x+=b[x]*l[_++],n.y+=b[x]*l[_++],n.s+=b[x]*l[_]}return n};function Y4(e,t){if(e._chunkDownloadsInProgress[t])return e._chunkDownloadsInProgress[t];let n,i=e._xysFileUrlTemplate;d(i)?n=i.getDerivedResource({templateValues:{0:t}}):n=new Xe({url:Sn(`Assets/IAU2006_XYS/IAU2006_XYS_${t}.json`)});let o=n.fetchJson().then(function(r){e._chunkDownloadsInProgress[t]=!1;let s=e._samples,a=r.samples,c=t*e._samplesPerXysFile*3;for(let l=0,u=a.length;l<u;++l)s[c+l]=a[l]});return e._chunkDownloadsInProgress[t]=o,o}var c2=B4;var Wkt=S(C(),1);function Tt(e,t,n,i,o,r,s,a,c){this[0]=g(e,0),this[1]=g(i,0),this[2]=g(s,0),this[3]=g(t,0),this[4]=g(o,0),this[5]=g(a,0),this[6]=g(n,0),this[7]=g(r,0),this[8]=g(c,0)}Tt.packedLength=9;Tt.pack=function(e,t,n){return n=g(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};Tt.unpack=function(e,t,n){return t=g(t,0),d(n)||(n=new Tt),n[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};Tt.packArray=function(e,t){let n=e.length,i=n*9;d(t)?!Array.isArray(t)&&t.length!==i||t.length!==i&&(t.length=i):t=new Array(i);for(let o=0;o<n;++o)Tt.pack(e[o],t,o*9);return t};Tt.unpackArray=function(e,t){let n=e.length;d(t)?t.length=n/9:t=new Array(n/9);for(let i=0;i<n;i+=9){let o=i/9;t[o]=Tt.unpack(e,i,t[o])}return t};Tt.clone=function(e,t){if(d(e))return d(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 Tt(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8])};Tt.fromArray=Tt.unpack;Tt.fromColumnMajorArray=function(e,t){return Tt.clone(e,t)};Tt.fromRowMajorArray=function(e,t){return d(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 Tt(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])};Tt.fromQuaternion=function(e,t){let n=e.x*e.x,i=e.x*e.y,o=e.x*e.z,r=e.x*e.w,s=e.y*e.y,a=e.y*e.z,c=e.y*e.w,l=e.z*e.z,u=e.z*e.w,m=e.w*e.w,f=n-s-l+m,b=2*(i-u),p=2*(o+c),x=2*(i+u),T=-n+s-l+m,_=2*(a-r),L=2*(o-c),V=2*(a+r),Z=-n-s+l+m;return d(t)?(t[0]=f,t[1]=x,t[2]=L,t[3]=b,t[4]=T,t[5]=V,t[6]=p,t[7]=_,t[8]=Z,t):new Tt(f,b,p,x,T,_,L,V,Z)};Tt.fromHeadingPitchRoll=function(e,t){let n=Math.cos(-e.pitch),i=Math.cos(-e.heading),o=Math.cos(e.roll),r=Math.sin(-e.pitch),s=Math.sin(-e.heading),a=Math.sin(e.roll),c=n*i,l=-o*s+a*r*i,u=a*s+o*r*i,m=n*s,f=o*i+a*r*s,b=-a*i+o*r*s,p=-r,x=a*n,T=o*n;return d(t)?(t[0]=c,t[1]=m,t[2]=p,t[3]=l,t[4]=f,t[5]=x,t[6]=u,t[7]=b,t[8]=T,t):new Tt(c,l,u,m,f,b,p,x,T)};Tt.fromScale=function(e,t){return d(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 Tt(e.x,0,0,0,e.y,0,0,0,e.z)};Tt.fromUniformScale=function(e,t){return d(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 Tt(e,0,0,0,e,0,0,0,e)};Tt.fromCrossProduct=function(e,t){return d(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 Tt(0,-e.z,e.y,e.z,0,-e.x,-e.y,e.x,0)};Tt.fromRotationX=function(e,t){let n=Math.cos(e),i=Math.sin(e);return d(t)?(t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=n,t[5]=i,t[6]=0,t[7]=-i,t[8]=n,t):new Tt(1,0,0,0,n,-i,0,i,n)};Tt.fromRotationY=function(e,t){let n=Math.cos(e),i=Math.sin(e);return d(t)?(t[0]=n,t[1]=0,t[2]=-i,t[3]=0,t[4]=1,t[5]=0,t[6]=i,t[7]=0,t[8]=n,t):new Tt(n,0,i,0,1,0,-i,0,n)};Tt.fromRotationZ=function(e,t){let n=Math.cos(e),i=Math.sin(e);return d(t)?(t[0]=n,t[1]=i,t[2]=0,t[3]=-i,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new Tt(n,-i,0,i,n,0,0,0,1)};Tt.toArray=function(e,t){return d(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]]};Tt.getElementIndex=function(e,t){return e*3+t};Tt.getColumn=function(e,t,n){let i=t*3,o=e[i],r=e[i+1],s=e[i+2];return n.x=o,n.y=r,n.z=s,n};Tt.setColumn=function(e,t,n,i){i=Tt.clone(e,i);let o=t*3;return i[o]=n.x,i[o+1]=n.y,i[o+2]=n.z,i};Tt.getRow=function(e,t,n){let i=e[t],o=e[t+3],r=e[t+6];return n.x=i,n.y=o,n.z=r,n};Tt.setRow=function(e,t,n,i){return i=Tt.clone(e,i),i[t]=n.x,i[t+3]=n.y,i[t+6]=n.z,i};var aWe=new h;Tt.setScale=function(e,t,n){let i=Tt.getScale(e,aWe),o=t.x/i.x,r=t.y/i.y,s=t.z/i.z;return n[0]=e[0]*o,n[1]=e[1]*o,n[2]=e[2]*o,n[3]=e[3]*r,n[4]=e[4]*r,n[5]=e[5]*r,n[6]=e[6]*s,n[7]=e[7]*s,n[8]=e[8]*s,n};var cWe=new h;Tt.setUniformScale=function(e,t,n){let i=Tt.getScale(e,cWe),o=t/i.x,r=t/i.y,s=t/i.z;return n[0]=e[0]*o,n[1]=e[1]*o,n[2]=e[2]*o,n[3]=e[3]*r,n[4]=e[4]*r,n[5]=e[5]*r,n[6]=e[6]*s,n[7]=e[7]*s,n[8]=e[8]*s,n};var O4=new h;Tt.getScale=function(e,t){return t.x=h.magnitude(h.fromElements(e[0],e[1],e[2],O4)),t.y=h.magnitude(h.fromElements(e[3],e[4],e[5],O4)),t.z=h.magnitude(h.fromElements(e[6],e[7],e[8],O4)),t};var Cae=new h;Tt.getMaximumScale=function(e){return Tt.getScale(e,Cae),h.maximumComponent(Cae)};var lWe=new h;Tt.setRotation=function(e,t,n){let i=Tt.getScale(e,lWe);return n[0]=t[0]*i.x,n[1]=t[1]*i.x,n[2]=t[2]*i.x,n[3]=t[3]*i.y,n[4]=t[4]*i.y,n[5]=t[5]*i.y,n[6]=t[6]*i.z,n[7]=t[7]*i.z,n[8]=t[8]*i.z,n};var dWe=new h;Tt.getRotation=function(e,t){let n=Tt.getScale(e,dWe);return t[0]=e[0]/n.x,t[1]=e[1]/n.x,t[2]=e[2]/n.x,t[3]=e[3]/n.y,t[4]=e[4]/n.y,t[5]=e[5]/n.y,t[6]=e[6]/n.z,t[7]=e[7]/n.z,t[8]=e[8]/n.z,t};Tt.multiply=function(e,t,n){let i=e[0]*t[0]+e[3]*t[1]+e[6]*t[2],o=e[1]*t[0]+e[4]*t[1]+e[7]*t[2],r=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],a=e[1]*t[3]+e[4]*t[4]+e[7]*t[5],c=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],u=e[1]*t[6]+e[4]*t[7]+e[7]*t[8],m=e[2]*t[6]+e[5]*t[7]+e[8]*t[8];return n[0]=i,n[1]=o,n[2]=r,n[3]=s,n[4]=a,n[5]=c,n[6]=l,n[7]=u,n[8]=m,n};Tt.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};Tt.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};Tt.multiplyByVector=function(e,t,n){let i=t.x,o=t.y,r=t.z,s=e[0]*i+e[3]*o+e[6]*r,a=e[1]*i+e[4]*o+e[7]*r,c=e[2]*i+e[5]*o+e[8]*r;return n.x=s,n.y=a,n.z=c,n};Tt.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};Tt.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};Tt.multiplyByUniformScale=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};Tt.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};Tt.transpose=function(e,t){let n=e[0],i=e[3],o=e[6],r=e[1],s=e[4],a=e[7],c=e[2],l=e[5],u=e[8];return t[0]=n,t[1]=i,t[2]=o,t[3]=r,t[4]=s,t[5]=a,t[6]=c,t[7]=l,t[8]=u,t};function uWe(e){let t=0;for(let n=0;n<9;++n){let i=e[n];t+=i*i}return Math.sqrt(t)}var K4=[1,0,0],H4=[2,2,1];function mWe(e){let t=0;for(let n=0;n<3;++n){let i=e[Tt.getElementIndex(H4[n],K4[n])];t+=2*i*i}return Math.sqrt(t)}function hWe(e,t){let n=M.EPSILON15,i=0,o=1;for(let l=0;l<3;++l){let u=Math.abs(e[Tt.getElementIndex(H4[l],K4[l])]);u>i&&(o=l,i=u)}let r=1,s=0,a=K4[o],c=H4[o];if(Math.abs(e[Tt.getElementIndex(c,a)])>n){let l=e[Tt.getElementIndex(c,c)],u=e[Tt.getElementIndex(a,a)],m=e[Tt.getElementIndex(c,a)],f=(l-u)/2/m,b;f<0?b=-1/(-f+Math.sqrt(1+f*f)):b=1/(f+Math.sqrt(1+f*f)),r=1/Math.sqrt(1+b*b),s=b*r}return t=Tt.clone(Tt.IDENTITY,t),t[Tt.getElementIndex(a,a)]=t[Tt.getElementIndex(c,c)]=r,t[Tt.getElementIndex(c,a)]=s,t[Tt.getElementIndex(a,c)]=-s,t}var nk=new Tt,Lae=new Tt;Tt.computeEigenDecomposition=function(e,t){let n=M.EPSILON20,i=10,o=0,r=0;d(t)||(t={});let s=t.unitary=Tt.clone(Tt.IDENTITY,t.unitary),a=t.diagonal=Tt.clone(e,t.diagonal),c=n*uWe(a);for(;r<i&&mWe(a)>c;)hWe(a,nk),Tt.transpose(nk,Lae),Tt.multiply(a,nk,a),Tt.multiply(Lae,a,a),Tt.multiply(s,nk,s),++o>2&&(++r,o=0);return t};Tt.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};Tt.determinant=function(e){let t=e[0],n=e[3],i=e[6],o=e[1],r=e[4],s=e[7],a=e[2],c=e[5],l=e[8];return t*(r*l-c*s)+o*(c*i-n*l)+a*(n*s-r*i)};Tt.inverse=function(e,t){let n=e[0],i=e[1],o=e[2],r=e[3],s=e[4],a=e[5],c=e[6],l=e[7],u=e[8],m=Tt.determinant(e);t[0]=s*u-l*a,t[1]=l*o-i*u,t[2]=i*a-s*o,t[3]=c*a-r*u,t[4]=n*u-c*o,t[5]=r*o-n*a,t[6]=r*l-c*s,t[7]=c*i-n*l,t[8]=n*s-r*i;let f=1/m;return Tt.multiplyByScalar(t,f,t)};var pWe=new Tt;Tt.inverseTranspose=function(e,t){return Tt.inverse(Tt.transpose(e,pWe),t)};Tt.equals=function(e,t){return e===t||d(e)&&d(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]};Tt.equalsEpsilon=function(e,t,n){return n=g(n,0),e===t||d(e)&&d(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};Tt.IDENTITY=Object.freeze(new Tt(1,0,0,0,1,0,0,0,1));Tt.ZERO=Object.freeze(new Tt(0,0,0,0,0,0,0,0,0));Tt.COLUMN0ROW0=0;Tt.COLUMN0ROW1=1;Tt.COLUMN0ROW2=2;Tt.COLUMN1ROW0=3;Tt.COLUMN1ROW1=4;Tt.COLUMN1ROW2=5;Tt.COLUMN2ROW0=6;Tt.COLUMN2ROW1=7;Tt.COLUMN2ROW2=8;Object.defineProperties(Tt.prototype,{length:{get:function(){return Tt.packedLength}}});Tt.prototype.clone=function(e){return Tt.clone(this,e)};Tt.prototype.equals=function(e){return Tt.equals(this,e)};Tt.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]};Tt.prototype.equalsEpsilon=function(e,t){return Tt.equalsEpsilon(this,e,t)};Tt.prototype.toString=function(){return`(${this[0]}, ${this[3]}, ${this[6]})
|
|
@@ -9609,7 +9609,7 @@ void main()
|
|
|
9609
9609
|
}
|
|
9610
9610
|
return clipAmount;
|
|
9611
9611
|
}
|
|
9612
|
-
`}gi.prototype.destroy=function(){this._clipFillCommandMap.clear()};function m7e(e,t){return gi._clipFillDiffuseUrl!==e&&(gi._clipFillDiffuseUrl=e,gi._clipFillDiffuseImage=new Image,gi._clipFillDiffuseImage.crossOrigin="anonymous",gi._clipFillDiffuseImage.onload=function(n){gi._clipFillDiffuseTexture=new it({context:t,width:gi._clipFillDiffuseImage.width,height:gi._clipFillDiffuseImage.height,pixelFormat:Ye.RGBA,pixelDatatype:ke.UNSIGNED_BYTE,source:gi._clipFillDiffuseImage})},gi._clipFillDiffuseImage.src=e,gi._clipFillDiffuseTexture=new it({context:t,width:1,height:1,pixelFormat:Ye.RGBA,pixelDatatype:ke.UNSIGNED_BYTE,source:{arrayBufferView:new Uint8Array([200,200,200,255])}})),function(){return gi._clipFillDiffuseTexture}}var FP=gi;var AHn=S(C(),1);function h7e(e,t){let n={},i=e.primitive?.attributes,o;for(let s=0;s<i.length;s++)i[s].name==="TEXCOORD_0"&&(o={vertexCoordDisAC:1,texCoordDisAC:1});let r=t.content?.tileset._version;if(r==="2.0"){let s;for(let l=0;l<i.length;l++)i[l].name==="_OID"&&(s=i[l].typedArray);let a=new Uint32Array(s.length/4);a.fill(s[0]);let c={};for(let l=0;l<a.length;l++){let u=p7e(a[l]),m=new z(u[3]/255,u[2]/255,u[1]/255,u[0]/255);c[a[l]]={pickID:m,textureParam:o}}n=c}else if(r==="2.1"||r==="2.2"){let s;for(let c=0;c<i.length;c++)i[c].name==="_BATCHID"&&(s=i[c].typedArray);let a={};for(let c=0;c<s.length;c++)a[s[c]]={textureParam:o};n=a}return n}function p7e(e){let t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e),new Uint8Array(t)}var AP=h7e;function vu(e){e=g(e,g.EMPTY_OBJECT);let t=e.modelComponents;this._model=e.model,this._components=t,this._pipelineStages=[],this._updateStages=[],this._runtimeNodes=[],this._rootNodes=[],this._skinnedNodes=[],this._runtimeSkins=[],this.modelPipelineStages=[],this._boundingSphere=void 0,this._boundingSphere2D=void 0,this._computedModelMatrix=P.clone(P.IDENTITY),this._computedModelMatrix2D=P.clone(P.IDENTITY),this._axisCorrectionMatrix=fn.getAxisCorrectionMatrix(t.upAxis,t.forwardAxis,new P),this._runtimeArticulations={},f7e(this)}Object.defineProperties(vu.prototype,{components:{get:function(){return this._components}},computedModelMatrix:{get:function(){return this._computedModelMatrix}},axisCorrectionMatrix:{get:function(){return this._axisCorrectionMatrix}},boundingSphere:{get:function(){return this._boundingSphere}}});function f7e(e){let t=e._components,n=t.scene,o=e._model.modelMatrix;u0e(e,o);let r=t.articulations,s=r.length,a=e._runtimeArticulations;for(let L=0;L<s;L++){let V=r[L],Z=new oW({articulation:V,sceneGraph:e}),G=Z.name;a[G]=Z}let c=t.nodes,l=c.length;e._runtimeNodes=new Array(l);let m=n.nodes.length,f=P.IDENTITY;for(let L=0;L<m;L++){let V=n.nodes[L],Z=m0e(e,V,f);e._rootNodes.push(Z)}let b=t.skins,p=e._runtimeSkins,x=b.length;for(let L=0;L<x;L++){let V=b[L];p.push(new yP({skin:V,sceneGraph:e}))}let T=e._skinnedNodes,_=T.length;for(let L=0;L<_;L++){let V=T[L],Z=e._runtimeNodes[V],I=c[V].skin.index;Z._runtimeSkin=p[I],Z.updateJointMatrices()}e.applyArticulations()}function u0e(e,t){let n=e._components,i=e._model;e._computedModelMatrix=P.multiplyTransformation(t,n.transform,e._computedModelMatrix),e._computedModelMatrix=P.multiplyTransformation(e._computedModelMatrix,e._axisCorrectionMatrix,e._computedModelMatrix),e._computedModelMatrix=P.multiplyByUniformScale(e._computedModelMatrix,i.computedScale,e._computedModelMatrix)}var b7e=new h;function y7e(e,t){let n=e._computedModelMatrix,i=P.getTranslation(n,b7e);if(!h.equals(i,h.ZERO))e._computedModelMatrix2D=Zt.basisTo2D(t.mapProjection,n,e._computedModelMatrix2D);else{let o=e.boundingSphere.center,r=Zt.ellipsoidTo2DModelMatrix(t.mapProjection,o,e._computedModelMatrix2D);e._computedModelMatrix2D=P.multiply(r,n,e._computedModelMatrix2D)}e._boundingSphere2D=de.transform(e._boundingSphere,e._computedModelMatrix2D,e._boundingSphere2D)}function m0e(e,t,n){let i=[],o=fn.getNodeTransform(t),r=t.children.length;for(let u=0;u<r;u++){let m=t.children[u],f=P.multiplyTransformation(n,o,new P),b=m0e(e,m,f);i.push(b)}let s=new _W({node:t,transform:o,transformToRoot:n,children:i,sceneGraph:e}),a=t.primitives.length;for(let u=0;u<a;u++)s.runtimePrimitives.push(new bP({primitive:t.primitives[u],node:t,model:e._model}));let c=t.index;e._runtimeNodes[c]=s,d(t.skin)&&e._skinnedNodes.push(c);let l=t.name;if(d(l)){let u=e._model,m=new hW(u,s);u._nodesByName[l]=m}return c}var g7e=new h,x7e=new h,T7e=new h,_7e=new h;vu.prototype.buildDrawCommands=function(e){let t=this._model,n=new _P(t);t.statistics.clear(),this.configurePipeline(e);let i=this.modelPipelineStages,o,r,s;for(o=0;o<i.length;o++)i[o].process(n,t,e);let a=h.fromElements(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,g7e),c=h.fromElements(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE,x7e),l=[];for(o=0;o<this._runtimeNodes.length;o++){let u=this._runtimeNodes[o];if(!d(u))continue;u.configurePipeline();let m=u.pipelineStages,f=new RP(n,u);for(r=0;r<m.length;r++)m[r].process(f,u.node,e);let b=u.computedTransform;for(r=0;r<u.runtimePrimitives.length;r++){let p=u.runtimePrimitives[r];p.configurePipeline(e);let x=p.pipelineStages,T=new EP(f,p);for(s=0;s<x.length;s++)x[s].process(T,p.primitive,e);p.boundingSphere=de.clone(T.boundingSphere,new de);let _=P.multiplyByPoint(b,T.positionMin,T7e),L=P.multiplyByPoint(b,T.positionMax,_7e);h.minimumByComponent(a,_,a),h.maximumByComponent(c,L,c);let V=PP.buildModelDrawCommand(T,e);p.drawCommand=V,d(t._clipFillUtil)&&t._clipFillUtil.destroy(),t._fillClip&&(d(t._clipFillUtil)||(t._clipFillUtil=new FP({model:t})),t._clipFillUtil.parsePrimitiveInfo(p,V,!1)),t._hasSectionGeometry&&(V.primitiveInfo=AP(p,t)),l.push(V)}}t._nodeCommands=l,this._boundingSphere=de.fromCornerPoints(a,c,new de),this._boundingSphere=de.transformWithoutScale(this._boundingSphere,this._axisCorrectionMatrix,this._boundingSphere),this._boundingSphere=de.transform(this._boundingSphere,this._components.transform,this._boundingSphere),t._boundingSphere=de.transform(this._boundingSphere,t.modelMatrix,t._boundingSphere),t._initialRadius=t._boundingSphere.radius,t._boundingSphere.radius*=t._clampedScale};vu.prototype.configurePipeline=function(e){let t=this.modelPipelineStages;t.length=0;let n=this._model,i=e.fog.enabled&&e.fog.renderable;d(n.color)&&t.push(Gx),!d(n.classificationType)&&(n.imageBasedLighting.enabled&&t.push(nW),n.isClippingEnabled()&&t.push(aW),n.isGeometryClipEnabled()&&t.push(lW),n.isClippingPolygonsEnabled()&&t.push(mW),n.hasSilhouette(e)&&t.push(LP),d(n.splitDirection)&&n.splitDirection!==ss.NONE&&t.push(ZP),d(n.swiper)&&n.swiper.swipeEnabled===!0&&t.push(NP),xr.is3DTiles(n.type)&&t.push(jw),i&&t.push(eW))};vu.prototype.update=function(e,t){let n,i,o;for(n=0;n<this._runtimeNodes.length;n++){let r=this._runtimeNodes[n];if(!d(r))continue;for(i=0;i<r.updateStages.length;i++)r.updateStages[i].update(r,this,e);let s=e.mode!==ae.SCENE3D&&this._model._projectTo2D;for(t&&!s&&this.updateJointMatrices(),i=0;i<r.runtimePrimitives.length;i++){let a=r.runtimePrimitives[i];for(o=0;o<a.updateStages.length;o++)a.updateStages[o].update(a,this)}}};vu.prototype.updateModelMatrix=function(e,t){u0e(this,e),t.mode!==ae.SCENE3D&&y7e(this,t);let n=this._rootNodes;for(let i=0;i<n.length;i++){let o=this._runtimeNodes[n[i]];o._transformDirty=!0}};vu.prototype.updateJointMatrices=function(){let e=this._skinnedNodes,t=e.length;for(let n=0;n<t;n++){let i=e[n];this._runtimeNodes[i].updateJointMatrices()}};function h0e(e,t,n,i,o){if(n&&!t.show)return;let r=t.children.length;for(let c=0;c<r;c++){let l=t.getChild(c);h0e(e,l,n,i,o)}let s=t.runtimePrimitives,a=s.length;for(let c=0;c<a;c++){let l=s[c];i(l,o)}}function kz(e,t,n,i){let o=e._rootNodes,r=o.length;for(let s=0;s<r;s++){let a=o[s],c=e._runtimeNodes[a];h0e(e,c,t,n,i)}}var S7e={backFaceCulling:void 0};vu.prototype.updateBackFaceCulling=function(e){let t=S7e;t.backFaceCulling=e,kz(this,!1,C7e,t)};function C7e(e,t){let n=e.drawCommand;n.backFaceCulling=t.backFaceCulling}var L7e={shadowMode:void 0};vu.prototype.updateShadows=function(e){let t=L7e;t.shadowMode=e,kz(this,!1,V7e,t)};function V7e(e,t){let n=e.drawCommand;n.shadows=t.shadowMode}var Z7e={debugShowBoundingVolume:void 0};vu.prototype.updateShowBoundingVolume=function(e){let t=Z7e;t.debugShowBoundingVolume=e,kz(this,!1,R7e,t)};function R7e(e,t){let n=e.drawCommand;n.debugShowBoundingVolume=t.debugShowBoundingVolume}var p0e=[],G7e={frameState:void 0,hasSilhouette:void 0};vu.prototype.pushDrawCommands=function(e){let t=p0e;t.length=0;let n=G7e;n.hasSilhouette=this._model.hasSilhouette(e),n.frameState=e,kz(this,!0,E7e,n),e.commandList.push.apply(e.commandList,t)};function E7e(e,t){let n=t.frameState,i=t.hasSilhouette,o=n.passes,r=p0e,s=e.drawCommand;s.pushCommands(n,n.commandList),i&&!o.pick&&s.pushSilhouetteCommands(n,r)}vu.prototype.setArticulationStage=function(e,t){let n=e.split(" ");if(n.length!==2)return;let i=n[0],o=n[1],r=this._runtimeArticulations[i];d(r)&&r.setArticulationStage(o,t)};vu.prototype.applyArticulations=function(){let e=this._runtimeArticulations;for(let t in e)e.hasOwnProperty(t)&&e[t].apply()};var DP=vu;var _4n=S(C(),1);function $V(){this.pointsLength=0,this.trianglesLength=0,this.geometryByteLength=0,this.texturesByteLength=0,this.propertyTablesByteLength=0,this._bufferIdSet={},this._textureIdSet={},this._batchTextureIdMap=new kt}Object.defineProperties($V.prototype,{batchTexturesByteLength:{get:function(){let e=this._batchTextureIdMap.length,t=this._batchTextureIdMap.values,n=0;for(let i=0;i<e;i++)n+=t[i].byteLength;return n}}});$V.prototype.clear=function(){this.pointsLength=0,this.trianglesLength=0,this.geometryByteLength=0,this.texturesByteLength=0,this.propertyTablesByteLength=0,this._bufferIdSet={},this._textureIdSet={},this._batchTextureIdMap.removeAll()};$V.prototype.addBuffer=function(e,t){if(!this._bufferIdSet.hasOwnProperty(e._id)){let n=t?2:1;this.geometryByteLength+=e.sizeInBytes*n}this._bufferIdSet[e._id]=!0};$V.prototype.addTexture=function(e){this._textureIdSet.hasOwnProperty(e._id)||(this.texturesByteLength+=e.sizeInBytes),this._textureIdSet[e._id]=!0};$V.prototype.addBatchTexture=function(e){this._batchTextureIdMap.contains(e._id)||this._batchTextureIdMap.set(e._id,e)};var UP=$V;var oJn=S(C(),1);var g0e=S(JG(),1);var W4n=S(C(),1);var f0e={},Y1=Uint32Array.BYTES_PER_ELEMENT;f0e.parse=function(e,t){t=g(t,0);let n=new Uint8Array(e),i=new DataView(e);t+=Y1;let o=i.getUint32(t,!0);if(o!==1)throw new le(`Only Point Cloud tile version 1 is supported. Version ${o} is not.`);t+=Y1,t+=Y1;let r=i.getUint32(t,!0);if(r===0)throw new le("Feature table must have a byte length greater than zero");t+=Y1;let s=i.getUint32(t,!0);t+=Y1;let a=i.getUint32(t,!0);t+=Y1;let c=i.getUint32(t,!0);t+=Y1;let l=ho(n,t,r);t+=r;let u=new Uint8Array(e,t,s);t+=s;let m,f;a>0&&(m=ho(n,t,a),t+=a,c>0&&(f=new Uint8Array(e,t,c),t+=c));let b=new ma(l,u),p=b.getGlobalProperty("POINTS_LENGTH");if(b.featuresLength=p,!d(p))throw new le("Feature table global property: POINTS_LENGTH must be defined");let x=b.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(x)&&(x=h.unpack(x));let T=I7e(b,m);if(T.rtcCenter=x,T.pointsLength=p,!T.hasPositions){let _=X7e(b);T.positions=_,T.hasPositions=T.hasPositions||d(_)}if(!T.hasPositions)throw new le("Either POSITION or POSITION_QUANTIZED must be defined.");if(!T.hasNormals){let _=w7e(b);T.normals=_,T.hasNormals=T.hasNormals||d(_)}if(!T.hasColors){let _=M7e(b);T.colors=_,T.hasColors=T.hasColors||d(_),T.hasConstantColor=d(T.constantColor),T.isTranslucent=d(_)&&_.isTranslucent}if(!T.hasBatchIds){let _=W7e(b);T.batchIds=_,T.hasBatchIds=T.hasBatchIds||d(_)}if(T.hasBatchIds){let _=b.getGlobalProperty("BATCH_LENGTH");if(!d(_))throw new le("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");T.batchLength=_}return d(f)&&(f=new Uint8Array(f),T.batchTableJson=m,T.batchTableBinary=f),T};function I7e(e,t){let n=e.json,i,o,r,s=d(n.extensions)?n.extensions["3DTILES_draco_point_compression"]:void 0,a=d(t)&&d(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;d(a)&&(r=a.properties);let c,l,u,m,f;if(d(s)){o=s.properties;let p=s.byteOffset,x=s.byteLength;if(!d(o)||!d(p)||!d(x))throw new le("Draco properties, byteOffset, and byteLength must be defined");i=e.buffer.slice(p,p+x),c=d(o.POSITION),l=d(o.RGB)||d(o.RGBA),u=d(o.NORMAL),m=d(o.BATCH_ID),f=d(o.RGBA)}let b;return d(i)&&(b={buffer:i,featureTableProperties:o,batchTableProperties:r,properties:xt(o,r),dequantizeInShader:!0}),{draco:b,hasPositions:c,hasColors:l,isTranslucent:f,hasNormals:u,hasBatchIds:m}}function X7e(e){let t=e.json,n;if(d(t.POSITION))return n=e.getPropertyArray("POSITION",H.FLOAT,3),{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!1,componentDatatype:H.FLOAT,type:Yt.VEC3};if(d(t.POSITION_QUANTIZED)){n=e.getPropertyArray("POSITION_QUANTIZED",H.UNSIGNED_SHORT,3);let i=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",H.FLOAT,3);if(!d(i))throw new le("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let o=65535,r=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",H.FLOAT,3);if(!d(r))throw new le("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!0,componentDatatype:H.FLOAT,type:Yt.VEC3,quantizedRange:o,quantizedVolumeOffset:h.unpack(r),quantizedVolumeScale:h.unpack(i),quantizedComponentDatatype:H.UNSIGNED_SHORT,quantizedType:Yt.VEC3}}}function M7e(e){let t=e.json,n;if(d(t.RGBA))return n=e.getPropertyArray("RGBA",H.UNSIGNED_BYTE,4),{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if(d(t.RGB))return n=e.getPropertyArray("RGB",H.UNSIGNED_BYTE,3),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if(d(t.RGB565))return n=e.getPropertyArray("RGB565",H.UNSIGNED_SHORT,1),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.FLOAT,type:Yt.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if(d(t.CONSTANT_RGBA)){let i=e.getGlobalProperty("CONSTANT_RGBA",H.UNSIGNED_BYTE,4),o=i[3],r=z.fromBytes(i[0],i[1],i[2],o),s=o<255;return{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:r,componentDatatype:H.FLOAT,type:Yt.VEC4,isQuantized:!1,isTranslucent:s}}}function w7e(e){let t=e.json,n;if(d(t.NORMAL))return n=e.getPropertyArray("NORMAL",H.FLOAT,3),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!1,octEncodedZXY:!1,componentDatatype:H.FLOAT,type:Yt.VEC3};if(d(t.NORMAL_OCT16P))return n=e.getPropertyArray("NORMAL_OCT16P",H.UNSIGNED_BYTE,2),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<8)-1,quantizedType:Yt.VEC2,quantizedComponentDatatype:H.UNSIGNED_BYTE,componentDatatype:H.FLOAT,type:Yt.VEC3}}function W7e(e){let t=e.json;if(d(t.BATCH_ID)){let n=e.getPropertyArray("BATCH_ID",H.UNSIGNED_SHORT,1);return{name:ut.FEATURE_ID,semantic:ut.FEATURE_ID,setIndex:0,typedArray:n,componentDatatype:H.fromTypedArray(n),type:Yt.SCALAR}}}var B1=f0e;var P7e=hn.Components,v7e=hn.Scene,N7e=hn.Node,F7e=hn.Primitive,A7e=hn.Attribute,b0e=hn.Quantization,D7e=hn.FeatureIdAttribute,U7e=hn.Material,k7e=hn.MetallicRoughness;function Mx(e){e=g(e,g.EMPTY_OBJECT);let t=e.arrayBuffer,n=g(e.byteOffset,0);this._arrayBuffer=t,this._byteOffset=n,this._loadAttributesFor2D=g(e.loadAttributesFor2D,!1),this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=void 0,this._error=void 0,this._state=Xt.UNLOADED,this._buffers=[],this._components=void 0,this._transform=P.IDENTITY,this._generateUniqueId=e.generateUniqueId}d(Object.create)&&(Mx.prototype=Object.create(vi.prototype),Mx.prototype.constructor=Mx);Object.defineProperties(Mx.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}});Mx.prototype.load=function(){if(d(this._promise))return this._promise;this._parsedContent=B1.parse(this._arrayBuffer,this._byteOffset),this._state=Xt.PROCESSING,this._promise=Promise.resolve(this)};Mx.prototype.process=function(e){if(d(this._error)){let t=this._error;throw this._error=void 0,t}if(this._state===Xt.READY)return!0;if(this._state===Xt.PROCESSING){if(d(this._decodePromise))return!1;this._decodePromise=z7e(this,e.context)}return!1};function z7e(e,t){let i=e._parsedContent.draco,o;if(d(i)?o=fp.decodePointCloud(i,t):o=Promise.resolve(),!!d(o))return e._decodePromise=o,o.then(function(r){if(!e.isDestroyed())return d(r)&&Y7e(e,i,r),t6e(e,t),e._state=Xt.READY,e}).catch(function(r){e.unload(),e._state=Xt.FAILED;let s="Failed to load Draco pnts";e._error=e.getError(s,r)})}function Y7e(e,t,n){e._state=Xt.READY;let i=e._parsedContent,o;if(d(n.POSITION)){if(o={name:"POSITION",semantic:ut.POSITION,typedArray:n.POSITION.array,componentDatatype:H.FLOAT,type:Yt.VEC3,isQuantized:!1},d(n.POSITION.data.quantization)){let a=n.POSITION.data.quantization,c=a.range,l=h.fromElements(c,c,c),u=h.unpack(a.minValues),m=(1<<a.quantizationBits)-1;o.isQuantized=!0,o.quantizedRange=m,o.quantizedVolumeOffset=u,o.quantizedVolumeScale=l,o.quantizedComponentDatatype=m<=255?H.UNSIGNED_BYTE:H.UNSIGNED_SHORT,o.quantizedType=Yt.VEC3}i.positions=o}if(d(n.NORMAL)){if(o={name:"NORMAL",semantic:ut.NORMAL,typedArray:n.NORMAL.array,componentDatatype:H.FLOAT,type:Yt.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},d(n.NORMAL.data.quantization)){let a=(1<<n.NORMAL.data.quantization.quantizationBits)-1;o.quantizedRange=a,o.octEncoded=!0,o.octEncodedZXY=!0,o.quantizedComponentDatatype=H.UNSIGNED_BYTE,o.quantizedType=Yt.VEC2}i.normals=o}if(d(n.RGBA)?i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGBA.array,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC4,normalized:!0,isTranslucent:!0}:d(n.RGB)&&(i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGB.array,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC3,normalized:!0,isTranslucent:!1}),d(n.BATCH_ID)){let a=n.BATCH_ID.array;i.batchIds={name:"_FEATURE_ID",semantic:ut.FEATURE_ID,setIndex:0,typedArray:a,componentDatatype:H.fromTypedArray(a),type:Yt.SCALAR}}let r=i.batchTableJson,s=t.batchTableProperties;for(let a in s)if(s.hasOwnProperty(a)){let c=n[a];d(r)||(r={}),i.hasDracoBatchTable=!0;let l=c.data;r[a]={byteOffset:l.byteOffset,type:B7e(l.componentsPerAttribute),componentType:O7e(l.componentDatatype),typedArray:c.array}}i.batchTableJson=r}function B7e(e){switch(e){case 1:return"SCALAR";case 2:return"VEC2";case 3:return"VEC3";case 4:return"VEC4"}}function O7e(e){switch(e){case te.BYTE:return"BYTE";case te.UNSIGNED_BYTE:return"UNSIGNED_BYTE";case te.SHORT:return"SHORT";case te.UNSIGNED_SHORT:return"UNSIGNED_SHORT";case te.INT:return"INT";case te.UNSIGNED_INT:return"UNSIGNED_INT";case te.DOUBLE:return"DOUBLE";case te.FLOAT:return"FLOAT"}}function kP(e,t,n){let i=t.typedArray,o;if(t.octEncoded&&(o=new b0e,o.octEncoded=t.octEncoded,o.octEncodedZXY=t.octEncodedZXY,o.normalizationRange=t.quantizedRange,o.type=t.quantizedType,o.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){o=new b0e;let a=t.quantizedRange;o.normalizationRange=a,o.quantizedVolumeOffset=h.ZERO;let c=t.quantizedVolumeScale;o.quantizedVolumeDimensions=c,o.quantizedVolumeStepSize=h.divideByScalar(c,a,new h),o.componentDatatype=t.quantizedComponentDatatype,o.type=t.quantizedType}let r=new A7e;if(r.name=t.name,r.semantic=t.semantic,r.setIndex=t.setIndex,r.componentDatatype=t.componentDatatype,r.type=t.type,r.normalized=g(t.normalized,!1),r.min=t.min,r.max=t.max,r.quantization=o,t.isRGB565&&(i=xn.decodeRGB565(i)),d(t.constantColor)){let a=new Array(4);r.constant=z.pack(t.constantColor,a)}else{let a=nt.createVertexBuffer({typedArray:i,context:n,usage:Me.STATIC_DRAW});a.vertexArrayDestroyable=!1,e._buffers.push(a),r.buffer=a}let s=e._loadAttributesFor2D;return r.semantic===ut.POSITION&&s&&(r.typedArray=i),r}var y0e,zz;function K7e(e){if(!d(zz)){y0e=new g0e.default(0),zz=new Array(e);for(let t=0;t<e;++t)zz[t]=y0e.random()}return zz}var H7e=new h,J7e=new h,Q7e=new h;function j7e(e){let t=e.typedArray,n=20,i=t.length/3,o=Math.min(i,n),r=K7e(n),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=h.fromElements(s,s,s,H7e),l=h.fromElements(a,a,a,J7e),u,m,f;if(e.isQuantized)c=h.ZERO,l=e.quantizedVolumeScale;else for(u=0;u<o;++u)m=Math.floor(r[u]*i),f=h.unpack(t,m*3,Q7e),h.minimumByComponent(c,f,c),h.maximumByComponent(l,f,l);e.min=h.clone(c),e.max=h.clone(l)}var q7e={name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:z.DARKGRAY,componentDatatype:H.FLOAT,type:Yt.VEC4,isQuantized:!1,isTranslucent:!1};function $7e(e,t,n){let i=[],o,r=t.positions;return d(r)&&(j7e(r),o=kP(e,r,n),o.count=t.pointsLength,i.push(o)),d(t.normals)&&(o=kP(e,t.normals,n),i.push(o)),d(t.colors)?(o=kP(e,t.colors,n),i.push(o)):(o=kP(e,q7e,n),i.push(o)),d(t.batchIds)&&(o=kP(e,t.batchIds,n),i.push(o)),i}function e6e(e,t,n){let i=e.batchLength,o=e.pointsLength,r=e.batchTableBinary,s=!d(e.batchIds);if(d(r)||e.hasDracoBatchTable){let a=g(i,o);return Tp({count:a,batchTable:e.batchTableJson,binaryBody:r,parseAsPropertyAttributes:s,customAttributeOutput:t,generateUniqueId:n})}return new ur({schema:{},propertyTables:[]})}function t6e(e,t){let n=e._parsedContent,i=new k7e;i.metallicFactor=0,i.roughnessFactor=.9;let o=new U7e;o.metallicRoughness=i;let r=n.colors;d(r)&&r.isTranslucent&&(o.alphaMode=zm.BLEND);let s=!d(n.normals);o.unlit=s;let a=new F7e;if(a.attributes=$7e(e,n,t),a.primitiveType=Fe.POINTS,a.material=o,d(n.batchIds)){let b=new D7e;b.propertyTableId=0,b.setIndex=0,b.positionalLabel="featureId_0",a.featureIds.push(b)}let c=new N7e;c.index=0,c.primitives=[a];let l=new v7e;l.nodes=[c],l.upAxis=En.Z,l.forwardAxis=En.X;let u=new P7e;u.scene=l,u.nodes=[c];let m=[];u.structuralMetadata=e6e(n,m,e._generateUniqueId),m.length>0&&n6e(e,a,m,t),d(n.rtcCenter)&&(u.transform=P.multiplyByTranslation(u.transform,n.rtcCenter,u.transform));let f=n.positions;d(f)&&f.isQuantized&&(u.transform=P.multiplyByTranslation(u.transform,f.quantizedVolumeOffset,u.transform)),e._components=u,e._parsedContent=void 0,e._arrayBuffer=void 0}function n6e(e,t,n,i){let o=t.attributes,r=n.length;for(let s=0;s<r;s++){let a=n[s],c=nt.createVertexBuffer({typedArray:a.typedArray,context:i,usage:Me.STATIC_DRAW});c.vertexArrayDestroyable=!1,e._buffers.push(c),a.buffer=c,a.typedArray=void 0,o.push(a)}t.propertyAttributeIds=[0]}Mx.prototype.unload=function(){let e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0,this._arrayBuffer=void 0};var zP=Mx;var LJn=S(C(),1);var i6e=new h,o6e=new h,r6e=new h,s6e=new P,a6e=new P,c6e=new P,l6e=new me,d6e=new de;function eZ(e,t,n,i,o,r,s){if(!e._ready||n.mode===ae.MORPHING)return;let a=Number.MAX_VALUE,c=e.sceneGraph,l=c._runtimeNodes;for(let u=0;u<l.length;u++){let m=l[u],f=m.node,b=P.clone(m.computedTransform,s6e),p=P.clone(c.computedModelMatrix,a6e),x=f.instances;d(x)&&x.transformInWorldSpace&&(p=P.multiplyTransformation(e.modelMatrix,c.components.transform,p),b=P.multiplyTransformation(c.axisCorrectionMatrix,m.computedTransform,b));let T=P.multiplyTransformation(p,b,c6e);n.mode!==ae.SCENE3D&&(T=Zt.basisTo2D(n.mapProjection,T,T));let _=[];if(d(x)){let V=x.attributes[0].count,Z=x.attributes[0].componentDatatype,G=12,I=m.transformsTypedArray;if(!d(I)){let w=m.instancingTransformsBuffer;d(w)&&n.context.webgl2&&(I=H.createTypedArray(Z,V*G),w.getBufferData(I))}if(d(I))for(let w=0;w<V;w++){let W=w*G,v=new P(I[W],I[W+1],I[W+2],I[W+3],I[W+4],I[W+5],I[W+6],I[W+7],I[W+8],I[W+9],I[W+10],I[W+11],0,0,0,1);x.transformInWorldSpace?(P.multiplyTransformation(v,b,v),P.multiplyTransformation(p,v,v)):P.multiplyTransformation(v,T,v),_.push(v)}}_.length===0&&_.push(T);let L=m.runtimePrimitives.length;for(let V=0;V<L;V++){let Z=m.runtimePrimitives[V],G=Z.primitive;if(d(Z.boundingSphere)&&!d(x)){let K=de.transform(Z.boundingSphere,T,d6e),j=Pi.raySphere(t,K);if(!d(j))continue}let I=fn.getAttributeBySemantic(G,ut.POSITION),w=I.byteOffset,W=I.byteStride,v=I.count;if(!d(G.indices))continue;let N=G.indices.typedArray;if(!d(N)){let K=G.indices.buffer,j=G.indices.count,J=G.indices.indexDatatype;d(K)&&n.context.webgl2&&(J===qe.UNSIGNED_BYTE?N=new Uint8Array(j):J===qe.UNSIGNED_SHORT?N=new Uint16Array(j):J===qe.UNSIGNED_INT&&(N=new Uint32Array(j)),K.getBufferData(N))}let y=I.typedArray,R=I.componentDatatype,E=I.type,X=I.quantization;d(X)&&(R=I.quantization.componentDatatype,E=I.quantization.type);let F=Yt.getNumberOfComponents(E),A=H.getSizeInBytes(R),Y=!d(y)&&d(W)&&W!==F*A,U=F,k=0;Y&&(U=W/A,k=w/A);let D=v*U;if(!d(y)){let K=I.buffer;d(K)&&n.context.webgl2&&(y=H.createTypedArray(R,D),K.getBufferData(y,Y?0:w,0,D)),X&&I.normalized&&(y=xn.dequantize(y,R,E,v))}if(!d(N)||!d(y))return;r=g(r,oe.default),i=g(i,1),o=g(o,0);let O=N.length;for(let K=0;K<O;K+=3){let j=N[K],J=N[K+1],ne=N[K+2];for(let q of _){let ye=_8(y,j,k,U,X,q,i,o,r,i6e),_e=_8(y,J,k,U,X,q,i,o,r,o6e),ue=_8(y,ne,k,U,X,q,i,o,r,r6e),Ce=Pi.rayTriangleParametric(t,ye,_e,ue,g(e.backFaceCulling,!0));d(Ce)&&Ce<a&&Ce>=0&&(a=Ce)}}}}if(a!==Number.MAX_VALUE){if(s=Dn.getPoint(t,a,s),n.mode!==ae.SCENE3D){h.fromElements(s.y,s.z,s.x,s);let u=n.mapProjection,m=u.ellipsoid,f=u.unproject(s,l6e);m.cartographicToCartesian(f,s)}return s}}function _8(e,t,n,i,o,r,s,a,c,l){let u=n+t*i;if(l.x=e[u],l.y=e[u+1],l.z=e[u+2],d(o))if(o.octEncoded){if(l=xn.octDecodeInRange(l,o.normalizationRange,l),o.octEncodedZXY){let m=l.x;l.x=l.z,l.z=l.y,l.y=m}}else l=h.multiplyComponents(l,o.quantizedVolumeStepSize,l),l=h.add(l,o.quantizedVolumeOffset,l);return l=P.multiplyByPoint(r,l,l),s!==1&&rr.getPosition(l,c,s,a,l),l}var VQn=S(C(),1);var EJn=S(C(),1);var tZ={};tZ._deprecationWarning=lr;var x0e=Uint32Array.BYTES_PER_ELEMENT;tZ.parse=function(e,t){t=g(t,0);let i=0,o=0,r=0,s=0,a;r>=570425344?(t-=x0e*2,a=i,r=o,s=0,i=0,o=0,tZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):s>=570425344&&(t-=x0e,a=r,r=i,s=o,i=0,o=0,tZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel."));let c;i===0?c={BATCH_LENGTH:g(a,0)}:(c=ho(uint8Array,t,i),t+=i);let l=new Uint8Array(e,t,o);t+=o;let u,m;r>0&&(u=ho(uint8Array,t,r),t+=r,s>0&&(m=new Uint8Array(e,t,s),m=new Uint8Array(m),t+=s));let f=e.byteLength,b;return t%4===0?b=new Uint8Array(e,t,f):(tZ._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),b=new Uint8Array(uint8Array.subarray(t,t+f))),{batchLength:a,featureTableJson:c,featureTableBinary:l,batchTableJson:u,batchTableBinary:m,gltf:b}};var YP=tZ;var sQn=S(C(),1);var WJn=S(C(),1);var u6e={};function BP(e){this._count=e.count,this._properties=e.properties,this._batchTableJson=e.batchTableJson}BP.prototype.hasProperty=function(e){return ci.hasProperty(e,this._properties,u6e)};BP.prototype.getPropertyIds=function(e,t){e=d(e)?e:[],e.length=0;let n=Object.keys(this._properties);return e.push.apply(e,n),e};BP.prototype.getProperty=function(e,t){let n=this._properties[t];if(d(n))return Ue(n[e],!0)};BP.prototype.setProperty=function(e,t,n){let i=this._properties[t];d(i)||(i=new Array(this._count),this._properties[t]=i),i[e]=Ue(n,!0)};var OP=BP;var AJn=S(C(),1);var m6e={};function KP(e){this._count=e.count,this._properties=e.properties,this._batchTableJson=e.batchTableJson}KP.prototype.hasProperty=function(e){return ci.hasProperty(e,this._properties,m6e)};KP.prototype.getPropertyIds=function(e,t){e=d(e)?e:[],e.length=0;let n=Object.keys(this._properties);return e.push.apply(e,n),e};KP.prototype.getProperty=function(e,t){let n=this._properties[t];if(d(n))return Ue(n[e],!0)};KP.prototype.setProperty=function(e,t,n){let i=this._properties[t];d(i)||(i=new Array(this._count),this._properties[t]=i),i[e]=Ue(n,!0)};var HP=KP;function Yz(e){let t=e.count,n=e.binaryBody,i=e.batchTable,o=e.binaryBody,r=e.tilesetVersion,s=g(e.parseAsPropertyAttributes,!1),a=e.customAttributeOutput,c={jsonProperties:i,binaryProperties:o},l;(r==="2.1"||r==="2.2")&&d(c.jsonProperties)?l=new tx({count:t,properties:i,batchTableJson:i,batchTableBinary:o}):r==="2.0"&&d(c.jsonProperties)?l=new OP({count:t,properties:i,batchTableJson:i}):r==="1.0"&&d(c.jsonProperties)&&(l=new HP({count:t,properties:i,batchTableJson:i}));let u;d(c.hierarchy)&&(u=new Pb({extension:c.hierarchy,binaryBody:n}));let m=ua.BATCH_TABLE_CLASS_NAME,f=c.binaryProperties,b,p,x;if(s){let L=p6e(t,m,f,n,a);x=L.transcodedSchema,p=[new $b({propertyAttribute:L.propertyAttributeJson,class:L.transcodedClass})]}else{let L=h6e(t,m,f,n);x=L.transcodedSchema;let V=L.featureTableJson;b=new gl({count:V.count,properties:V.properties,class:L.transcodedClass,bufferViews:L.bufferViewsTypedArrays}),p=[]}let T=[];if(d(b)||d(l)||d(u)){let L=new as({id:0,name:"Batch Table",count:t,metadataTable:b,jsonMetadataTable:l,batchTableHierarchy:u});T.push(L)}let _={schema:x,propertyTables:T,propertyAttributes:p,extensions:c.extensions,extras:c.extras};return new ur(_)}function h6e(e,t,n,i){let o={},r={},s={},a=0;for(let m in n){if(!n.hasOwnProperty(m))continue;if(!d(i))throw new le(`Property ${m} requires a batch table binary.`);let f=n[m],b=dl(f);r[m]={bufferView:a},o[m]=T0e(f),s[a]=b.createArrayBufferView(i.buffer,i.byteOffset+f.byteOffset,e),a++}let c={classes:{}};c.classes[t]={properties:o};let l=Tl.fromJson(c);return{featureTableJson:{class:t,count:e,properties:r},bufferViewsTypedArrays:s,transcodedSchema:l,transcodedClass:l.classes[t]}}function p6e(e,t,n,i,o){let r={},s={},a=0;for(let m in n){if(!n.hasOwnProperty(m))continue;let f=n[m];if(!d(i)&&!d(f.typedArray))throw new le(`Property ${m} requires a batch table binary.`);let b=fn.sanitizeGlslIdentifier(m);(b===""||r.hasOwnProperty(b))&&(b=`property_${a}`,a++);let p=T0e(f);p.name=m,r[b]=p;let x=b.toUpperCase();x.startsWith("_")||(x=`_${x}`);let T=f.typedArray;d(T)||(T=dl(f).createArrayBufferView(i.buffer,i.byteOffset+f.byteOffset,e));let _=new hn.Attribute;_.name=x,_.count=e,_.type=f.type;let L=H.fromTypedArray(T);(L===H.INT||L===H.UNSIGNED_INT||L===H.DOUBLE)&&(Yz._oneTimeWarning("Cast pnts property to floats",`Point cloud property "${x}" will be cast to a float array because INT, UNSIGNED_INT, and DOUBLE are not valid WebGL vertex attribute types. Some precision may be lost.`),T=new Float32Array(T)),_.componentDatatype=H.fromTypedArray(T),_.typedArray=T,o.push(_),s[b]={attribute:x}}let c={classes:{}};c.classes[t]={properties:r};let l=Tl.fromJson(c);return{class:t,propertyAttributeJson:{properties:s},transcodedSchema:l,transcodedClass:l.classes[t]}}function T0e(e){let t=f6e(e.componentType);return{type:e.type,componentType:t}}function f6e(e){switch(e){case"BYTE":return"INT8";case"UNSIGNED_BYTE":return"UINT8";case"SHORT":return"INT16";case"UNSIGNED_SHORT":return"UINT16";case"INT":return"INT32";case"UNSIGNED_INT":return"UINT32";case"FLOAT":return"FLOAT32";case"DOUBLE":return"FLOAT64"}}Yz._deprecationWarning=lr;Yz._oneTimeWarning=Ft;var Nu=Yz;var O1={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},b6e=hn.FeatureIdAttribute;function wx(e){e=g(e,g.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,En.Y),l=g(e.forwardAxis,En.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadAttributesFor2D,!1),f=g(e.enablePick,!1),b=g(e.loadIndicesForWireframe,!1),p=g(e.loadPrimitiveOutline,!0),x=g(e.loadForClassification,!1);n=d(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadAttributesFor2D=m,this._enablePick=f,this._loadIndicesForWireframe=b,this._loadPrimitiveOutline=p,this._loadForClassification=x,this._state=O1.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=P.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(wx.prototype=Object.create(vi.prototype),wx.prototype.constructor=wx);Object.defineProperties(wx.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});wx.prototype.load=function(){if(d(this._promise))return this._promise;let e=YP.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,n=e.featureTableBinary,i=new ma(t,n);this._tilesetVersion==="2.1"||this._tilesetVersion==="2.2"?this._batchLength=this._attBatchTable?.batchTableJson?.tid?.tidsLength:this._tilesetVersion==="2.0"&&d(this._attBatchTable)&&(this._batchLength=this._attBatchTable?.batchTableJson?.OID?.length),d(this._batchLength)||(this._batchLength=0);let o=i.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(o)&&(this._transform=P.fromTranslation(h.fromArray(o))),d(this._attBatchTable)&&(this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary});let r=new Dc({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,tilesetVersion:this._tilesetVersion,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=r,this._state=O1.LOADING;let s=this;return this._promise=r.load().then(function(){if(!s.isDestroyed())return s._state=O1.PROCESSING,s}).catch(function(a){if(!s.isDestroyed())return y6e(s,a)}),this._promise};function y6e(e,t){return e.unload(),e._state=O1.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}wx.prototype.process=function(e){if(this._state===O1.READY)return!0;if(this._state!==O1.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=P.multiplyTransformation(this._transform,n.transform,n.transform),g6e(this,n),this._components=n,this._arrayBuffer=void 0,this._state=O1.READY,!0};function g6e(e,t){let n=e._batchTable,i=e._batchLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n?.json))r=Nu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let c=new as({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new ur({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)_0e(s[c]);t.structuralMetadata=r}function _0e(e){let t=e.children.length;for(let i=0;i<t;i++)_0e(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let o=e.primitives[i],r=fn.getAttributeBySemantic(o,ut.FEATURE_ID);if(d(r)){r.setIndex=0;let s=new b6e;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",o.featureIds.push(s)}}}wx.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var JP=wx;var YQn=S(C(),1);var K1={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},x6e=hn.FeatureIdAttribute;function Wx(e){e=g(e,g.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,En.Y),l=g(e.forwardAxis,En.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadAttributesFor2D,!1),f=g(e.enablePick,!1),b=g(e.loadIndicesForWireframe,!1),p=g(e.loadPrimitiveOutline,!0),x=g(e.loadForClassification,!1);n=d(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadAttributesFor2D=m,this._enablePick=f,this._loadIndicesForWireframe=b,this._loadPrimitiveOutline=p,this._loadForClassification=x,this._state=K1.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=P.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(Wx.prototype=Object.create(vi.prototype),Wx.prototype.constructor=Wx);Object.defineProperties(Wx.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Wx.prototype.load=function(){if(d(this._promise))return this._promise;let e=v1.parse(this._arrayBuffer,this._byteOffset),t=e.batchLength,n=e.featureTableJson,i=e.featureTableBinary,o=new ma(n,i);t=o.getGlobalProperty("BATCH_LENGTH"),this._batchLength=t;let r=o.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(r)&&(this._transform=P.fromTranslation(h.fromArray(r))),this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary};let s=new Dc({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=s,this._state=K1.LOADING;let a=this;return this._promise=s.load().then(function(){if(!a.isDestroyed())return a._state=K1.PROCESSING,a}).catch(function(c){if(!a.isDestroyed())return T6e(a,c)}),this._promise};function T6e(e,t){return e.unload(),e._state=K1.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}Wx.prototype.process=function(e){if(this._state===K1.READY)return!0;if(this._state!==K1.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=P.multiplyTransformation(this._transform,n.transform,n.transform),_6e(this,n),this._components=n,this._arrayBuffer=void 0,this._state=K1.READY,!0};function _6e(e,t){let n=e._batchTable,i=e._batchLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n.json))r=Nu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let c=new as({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new ur({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)S0e(s[c]);t.structuralMetadata=r}function S0e(e){let t=e.children.length;for(let i=0;i<t;i++)S0e(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let o=e.primitives[i],r=fn.getAttributeBySemantic(o,ut.FEATURE_ID);if(d(r)){r.setIndex=0;let s=new x6e;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",o.featureIds.push(s)}}}Wx.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var QP=Wx;var Tjn=S(C(),1);var ly={NOT_LOADED:0,LOADING:1,PROCESSING:2,POST_PROCESSING:3,READY:4,FAILED:5,UNLOADED:6},Bz=hn.Attribute,S6e=hn.FeatureIdAttribute,L0e=hn.Instances;function dy(e){e=g(e,g.EMPTY_OBJECT);let t=e.i3dmResource,n=e.arrayBuffer,i=e.baseResource,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,En.Y),l=g(e.forwardAxis,En.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadIndicesForWireframe,!1),f=g(e.loadPrimitiveOutline,!0),b=g(e.enablePick,!1);i=d(i)?i:t.clone(),this._i3dmResource=t,this._baseResource=i,this._arrayBuffer=n,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadIndicesForWireframe=m,this._loadPrimitiveOutline=f,this._enablePick=b,this._state=ly.NOT_LOADED,this._promise=void 0,this._gltfLoader=void 0,this._buffers=[],this._components=void 0,this._transform=P.IDENTITY,this._batchTable=void 0,this._featureTable=void 0,this._instancesLength=0,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(dy.prototype=Object.create(vi.prototype),dy.prototype.constructor=dy);Object.defineProperties(dy.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});dy.prototype.load=function(){if(d(this._promise))return this._promise;let e=F1.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,n=e.featureTableBinary,i=e.gltfFormat,o=new ma(t,n);this._featureTable=o;let r=o.getGlobalProperty("INSTANCES_LENGTH");if(o.featuresLength=r,!d(r))throw new le("Feature table global property: INSTANCES_LENGTH must be defined");this._instancesLength=r;let s=o.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(s)&&(this._transform=P.fromTranslation(h.fromArray(s))),this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary};let a={upAxis:this._upAxis,forwardAxis:this._forwardAxis,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry};if(i===0){let l=Wr(e.gltf);l=l.replace(/[\s\0]+$/,"");let u=this._baseResource.getDerivedResource({url:l});a.gltfResource=u,a.baseResource=u}else a.gltfResource=this._i3dmResource,a.typedArray=e.gltf;let c=new Dc(a);return this._gltfLoader=c,this._state=ly.LOADING,this._promise=c.load().then(()=>{if(!this.isDestroyed())return this._state=ly.PROCESSING,this}).catch(l=>{if(!this.isDestroyed())throw C6e(this,l)}),this._promise};function C6e(e,t){return e.unload(),e._state=ly.FAILED,e.getError("Failed to load i3dm",t)}dy.prototype.process=function(e){if(this._state===ly.READY)return!0;let t=this._gltfLoader,n=!1;if(this._state===ly.PROCESSING&&(n=t.process(e)),!n)return!1;let i=t.components;return i.transform=P.multiplyTransformation(this._transform,i.transform,i.transform),Z6e(this,i,e),L6e(this,i),this._components=i,this._arrayBuffer=void 0,this._state=ly.READY,!0};function L6e(e,t){let n=e._batchTable,i=e._instancesLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n.json))r=Nu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let s=new as({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new ur({schema:{},propertyTables:[s]})}t.structuralMetadata=r}var Oz=new h,S8=new Array(4),V6e=new P;function Z6e(e,t,n){let i,o=e._featureTable,r=e._instancesLength;if(r===0)return;let s=o.getGlobalProperty("RTC_CENTER",H.FLOAT,3),a=o.getGlobalProperty("EAST_NORTH_UP"),c=o.hasProperty("NORMAL_UP")||o.hasProperty("NORMAL_UP_OCT32P")||a,l=o.hasProperty("SCALE")||o.hasProperty("SCALE_NON_UNIFORM"),u=G6e(o,r),m;c&&(m=new Float32Array(4*r));let f;l&&(f=new Float32Array(3*r));let b=new Float32Array(r),p=h.unpackArray(u),x=new h,T=new h,_=new h,L=new h,V=new $,Z=new Be,G=new Array(4),I=new h,w=new Array(3),W=new P;if(!d(s)||h.equals(h.unpack(s),h.ZERO)){let U=de.fromPoints(p);for(i=0;i<p.length;i++)h.subtract(p[i],U.center,Oz),u[3*i+0]=Oz.x,u[3*i+1]=Oz.y,u[3*i+2]=Oz.z;let k=P.fromTranslation(U.center,V6e);t.transform=P.multiplyTransformation(k,t.transform,t.transform)}for(i=0;i<r;i++){x=h.clone(p[i]),d(s)&&h.add(x,h.unpack(s),x),c&&(E6e(o,a,i,Z,x,_,T,L,V,W),Be.pack(Z,G,0),m[4*i+0]=G[0],m[4*i+1]=G[1],m[4*i+2]=G[2],m[4*i+3]=G[3]),l&&(I6e(o,i,I),h.pack(I,w,0),f[3*i+0]=w[0],f[3*i+1]=w[1],f[3*i+2]=w[2]);let U=o.getProperty("BATCH_ID",H.UNSIGNED_SHORT,1,i);d(U)||(U=i),b[i]=U}let v=new L0e;v.transformInWorldSpace=!0;let N=e._buffers,y=new Bz;if(y.name="Instance Translation",y.semantic=kr.TRANSLATION,y.componentDatatype=H.FLOAT,y.type=Yt.VEC3,y.count=r,y.typedArray=u,!c){let U=nt.createVertexBuffer({context:n.context,typedArray:u,usage:Me.STATIC_DRAW});U.vertexArrayDestroyable=!1,N.push(U),y.buffer=U}if(v.attributes.push(y),c){let U=new Bz;U.name="Instance Rotation",U.semantic=kr.ROTATION,U.componentDatatype=H.FLOAT,U.type=Yt.VEC4,U.count=r,U.typedArray=m,v.attributes.push(U)}if(l){let U=new Bz;if(U.name="Instance Scale",U.semantic=kr.SCALE,U.componentDatatype=H.FLOAT,U.type=Yt.VEC3,U.count=r,c)U.typedArray=f;else{let k=nt.createVertexBuffer({context:n.context,typedArray:f,usage:Me.STATIC_DRAW});k.vertexArrayDestroyable=!1,N.push(k),U.buffer=k}v.attributes.push(U)}let R=new Bz;R.name="Instance Feature ID",R.setIndex=0,R.semantic=kr.FEATURE_ID,R.componentDatatype=H.FLOAT,R.type=Yt.SCALAR,R.count=r;let E=nt.createVertexBuffer({context:n.context,typedArray:b,usage:Me.STATIC_DRAW});E.vertexArrayDestroyable=!1,N.push(E),R.buffer=E,v.attributes.push(R);let X=new S6e;X.propertyTableId=0,X.setIndex=0,X.positionalLabel="instanceFeatureId_0",v.featureIds.push(X);let F=t.nodes,A=F.length,Y=!1;for(i=0;i<A;i++){let U=F[i];U.primitives.length>0&&(U.instances=Y?R6e(v):v,Y=!0)}}function R6e(e){let t=new L0e;t.transformInWorldSpace=e.transformInWorldSpace;let n=e.attributes,i=n.length;for(let o=0;o<i;o++){let r=Ue(n[o],!1);t.attributes.push(r)}return t.featureIds=e.featureIds,t}function G6e(e,t){if(e.hasProperty("POSITION"))return e.getPropertyArray("POSITION",H.FLOAT,3);if(e.hasProperty("POSITION_QUANTIZED")){let n=e.getPropertyArray("POSITION_QUANTIZED",H.UNSIGNED_SHORT,3),i=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",H.FLOAT,3);if(!d(i))throw new le("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");let o=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",H.FLOAT,3);if(!d(o))throw new le("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let r=new Float32Array(n.length);for(let s=0;s<n.length/3;s++)for(let a=0;a<3;a++){let c=3*s+a;r[c]=n[c]/65535*o[a]+i[a]}return r}else throw new le("Either POSITION or POSITION_QUANTIZED must be defined for each instance.")}var C0e=new Array(4);function E6e(e,t,n,i,o,r,s,a,c,l){let u=e.getProperty("NORMAL_UP",H.FLOAT,3,n,S8),m=e.getProperty("NORMAL_RIGHT",H.FLOAT,3,n,C0e),f=!1;if(d(u)){if(!d(m))throw new le("To define a custom orientation, both NORMAL_UP and NORMAL_RIGHT must be defined.");h.unpack(u,0,r),h.unpack(m,0,s),f=!0}else{let b=e.getProperty("NORMAL_UP_OCT32P",H.UNSIGNED_SHORT,2,n,S8),p=e.getProperty("NORMAL_RIGHT_OCT32P",H.UNSIGNED_SHORT,2,n,C0e);if(d(b)){if(!d(p))throw new le("To define a custom orientation with oct-encoded vectors, both NORMAL_UP_OCT32P and NORMAL_RIGHT_OCT32P must be defined.");xn.octDecodeInRange(b[0],b[1],65535,r),xn.octDecodeInRange(p[0],p[1],65535,s),f=!0}else t?(Zt.eastNorthUpToFixedFrame(o,oe.WGS84,l),P.getMatrix3(l,c)):$.clone($.IDENTITY,c)}f&&(h.cross(s,r,a),h.normalize(a,a),$.setColumn(c,0,s,c),$.setColumn(c,1,r,c),$.setColumn(c,2,a,c)),Be.fromRotationMatrix(c,i)}function I6e(e,t,n){n=h.fromElements(1,1,1,n);let i=e.getProperty("SCALE",H.FLOAT,1,t);d(i)&&h.multiplyByScalar(n,i,n);let o=e.getProperty("SCALE_NON_UNIFORM",H.FLOAT,3,t,S8);d(o)&&(n.x*=o[0],n.y*=o[1],n.z*=o[2])}function X6e(e){let t=e._buffers,n=t.length;for(let i=0;i<n;i++){let o=t[i];o.isDestroyed()||o.destroy()}t.length=0}dy.prototype.isUnloaded=function(){return this._state===ly.UNLOADED};dy.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),X6e(this),this._components=void 0,this._arrayBuffer=void 0,this._state=ly.UNLOADED};var jP=dy;var r8n=S(C(),1);var G0e=S(JG(),1);var Wjn=S(C(),1);var V0e={},Cp=Uint32Array.BYTES_PER_ELEMENT;V0e.parse=function(e,t,n,i,o){t=g(t,0);let r=new Uint8Array(e),s=new DataView(e),a=0,c=0,l,u;if(n.version==="1.0"||n.version==="0.0"){let _=s.getUint32(t,!0);t+=Cp;let L=s.getUint32(t,!0);if(L===0)throw new le("Feature table must have a byte length greater than zero");t+=Cp;let V=s.getUint32(t,!0);if(t+=Cp,c=s.getUint32(t,!0),t+=Cp,_>0){let G=Wr(r,t,_),I=JSON.parse(G);n.loadChildTileSet(o,I,i)}t+=_;let Z=Wr(r,t,L);l=JSON.parse(Z),t+=L,u=new Uint8Array(e,t,V),t+=V}else{t+=Cp;let _=s.getUint32(t,!0);if(_!==1)throw new le(`Only Point Cloud tile version 1 is supported. Version ${_} is not.`);t+=Cp,t+=Cp;let L=s.getUint32(t,!0);if(L===0)throw new le("Feature table must have a byte length greater than zero");t+=Cp;let V=s.getUint32(t,!0);t+=Cp,a=s.getUint32(t,!0),t+=Cp,c=s.getUint32(t,!0),t+=Cp,l=ho(r,t,L),t+=L,u=new Uint8Array(e,t,V),t+=V}let m,f;a>0&&(m=ho(r,t,a),t+=a,c>0&&(f=new Uint8Array(e,t,c),t+=c));let b=new ma(l,u),p=b.getGlobalProperty("POINTS_LENGTH");if(b.featuresLength=p,!d(p))throw new le("Feature table global property: POINTS_LENGTH must be defined");let x=b.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(x)&&(x=h.unpack(x));let T=M6e(b,m);if(T.rtcCenter=x,T.pointsLength=p,!T.hasPositions){let _=w6e(b);T.positions=_,T.hasPositions=T.hasPositions||d(_)}if(!T.hasPositions)throw new le("Either POSITION or POSITION_QUANTIZED must be defined.");if(!T.hasNormals){let _=P6e(b);T.normals=_,T.hasNormals=T.hasNormals||d(_)}if(!T.hasColors){let _=W6e(b);T.colors=_,T.hasColors=T.hasColors||d(_),T.hasConstantColor=d(T.constantColor),T.isTranslucent=d(_)&&_.isTranslucent}if(!T.hasBatchIds){let _=v6e(b);T.batchIds=_,T.hasBatchIds=T.hasBatchIds||d(_)}if(T.hasBatchIds){let _=b.getGlobalProperty("BATCH_LENGTH");if(!d(_))throw new le("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");T.batchLength=_}return d(f)&&(f=new Uint8Array(f),T.batchTableJson=m,T.batchTableBinary=f),T.batchTableJson=m,T};function M6e(e,t){let n=e.json,i,o,r,s=d(n.extensions)?n.extensions["3DTILES_draco_point_compression"]:void 0,a=d(t)&&d(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;d(a)&&(r=a.properties);let c,l,u,m,f;if(d(s)){o=s.properties;let p=s.byteOffset,x=s.byteLength;if(!d(o)||!d(p)||!d(x))throw new le("Draco properties, byteOffset, and byteLength must be defined");i=e.buffer.slice(p,p+x),c=d(o.POSITION),l=d(o.RGB)||d(o.RGBA),u=d(o.NORMAL),m=d(o.BATCH_ID),f=d(o.RGBA)}let b;return d(i)&&(b={buffer:i,featureTableProperties:o,batchTableProperties:r,properties:xt(o,r),dequantizeInShader:!0}),{draco:b,hasPositions:c,hasColors:l,isTranslucent:f,hasNormals:u,hasBatchIds:m}}function w6e(e){let t=e.json,n;if(d(t.POSITION))return n=e.getPropertyArray("POSITION",H.FLOAT,3),{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!1,componentDatatype:H.FLOAT,type:Yt.VEC3};if(d(t.POSITION_QUANTIZED)){n=e.getPropertyArray("POSITION_QUANTIZED",H.UNSIGNED_SHORT,3);let i=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",H.FLOAT,3);if(!d(i))throw new le("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let o=65535,r=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",H.FLOAT,3);if(!d(r))throw new le("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!0,componentDatatype:H.FLOAT,type:Yt.VEC3,quantizedRange:o,quantizedVolumeOffset:h.unpack(r),quantizedVolumeScale:h.unpack(i),quantizedComponentDatatype:H.UNSIGNED_SHORT,quantizedType:Yt.VEC3}}}function W6e(e){let t=e.json,n;if(d(t.RGBA))return n=e.getPropertyArray("RGBA",H.UNSIGNED_BYTE,4),{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if(d(t.RGB))return n=e.getPropertyArray("RGB",H.UNSIGNED_BYTE,3),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if(d(t.RGB565))return n=e.getPropertyArray("RGB565",H.UNSIGNED_SHORT,1),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.FLOAT,type:Yt.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if(d(t.CONSTANT_RGBA)){let i=e.getGlobalProperty("CONSTANT_RGBA",H.UNSIGNED_BYTE,4),o=i[3],r=z.fromBytes(i[0],i[1],i[2],o),s=o<255;return{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:r,componentDatatype:H.FLOAT,type:Yt.VEC4,isQuantized:!1,isTranslucent:s}}}function P6e(e){let t=e.json,n;if(d(t.NORMAL))return n=e.getPropertyArray("NORMAL",H.FLOAT,3),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!1,octEncodedZXY:!1,componentDatatype:H.FLOAT,type:Yt.VEC3};if(d(t.NORMAL_OCT16P))return n=e.getPropertyArray("NORMAL_OCT16P",H.UNSIGNED_BYTE,2),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<8)-1,quantizedType:Yt.VEC2,quantizedComponentDatatype:H.UNSIGNED_BYTE,componentDatatype:H.FLOAT,type:Yt.VEC3}}function v6e(e){let t=e.json;if(d(t.BATCH_ID)){let n=e.getPropertyArray("BATCH_ID",H.UNSIGNED_SHORT,1);return{name:ut.FEATURE_ID,semantic:ut.FEATURE_ID,setIndex:0,typedArray:n,componentDatatype:H.fromTypedArray(n),type:Yt.SCALAR}}}var qP=V0e;var N6e=hn.Components,F6e=hn.Scene,A6e=hn.Node,D6e=hn.Primitive,U6e=hn.Attribute,Z0e=hn.Quantization,k6e=hn.FeatureIdAttribute,z6e=hn.Material,Y6e=hn.MetallicRoughness;function Px(e){e=g(e,g.EMPTY_OBJECT);let t=e.arrayBuffer,n=g(e.byteOffset,0);this._arrayBuffer=t,this._byteOffset=n,this._loadAttributesFor2D=g(e.loadAttributesFor2D,!1),this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=void 0,this._error=void 0,this._state=Xt.UNLOADED,this._buffers=[],this._components=void 0,this._transform=P.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._tileset=e.tileset,this._tile=e.tile,this._resource=e.resource}d(Object.create)&&(Px.prototype=Object.create(vi.prototype),Px.prototype.constructor=Px);Object.defineProperties(Px.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}});Px.prototype.load=function(){if(d(this._promise))return this._promise;this._parsedContent=qP.parse(this._arrayBuffer,this._byteOffset,this._tileset,this._tile,this._resource),(this._tilesetVersion==="2.1"||this._tilesetVersion==="2.2")&&(this._parsedContent.batchTableJson=this._attBatchTable?.batchTableJson,this._parsedContent.batchTableBinary=this._attBatchTable?.batchTableBinary),this._state=Xt.PROCESSING,this._promise=Promise.resolve(this)};Px.prototype.process=function(e){if(d(this._error)){let t=this._error;throw this._error=void 0,t}if(this._state===Xt.READY)return!0;if(this._state===Xt.PROCESSING){if(d(this._decodePromise))return!1;this._decodePromise=B6e(this,e.context)}return!1};function B6e(e,t){let i=e._parsedContent.draco,o;if(d(i)?o=fp.decodePointCloud(i,t):o=Promise.resolve(),!!d(o))return e._decodePromise=o,o.then(function(r){if(!e.isDestroyed())return d(r)&&O6e(e,i,r),iqe(e,t),e._state=Xt.READY,e}).catch(function(r){e.unload(),e._state=Xt.FAILED;let s="Failed to load Draco pnts";e._error=e.getError(s,r)})}function O6e(e,t,n){e._state=Xt.READY;let i=e._parsedContent,o;if(d(n.POSITION)){if(o={name:"POSITION",semantic:ut.POSITION,typedArray:n.POSITION.array,componentDatatype:H.FLOAT,type:Yt.VEC3,isQuantized:!1},d(n.POSITION.data.quantization)){let a=n.POSITION.data.quantization,c=a.range,l=h.fromElements(c,c,c),u=h.unpack(a.minValues),m=(1<<a.quantizationBits)-1;o.isQuantized=!0,o.quantizedRange=m,o.quantizedVolumeOffset=u,o.quantizedVolumeScale=l,o.quantizedComponentDatatype=m<=255?H.UNSIGNED_BYTE:H.UNSIGNED_SHORT,o.quantizedType=Yt.VEC3}i.positions=o}if(d(n.NORMAL)){if(o={name:"NORMAL",semantic:ut.NORMAL,typedArray:n.NORMAL.array,componentDatatype:H.FLOAT,type:Yt.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},d(n.NORMAL.data.quantization)){let a=(1<<n.NORMAL.data.quantization.quantizationBits)-1;o.quantizedRange=a,o.octEncoded=!0,o.octEncodedZXY=!0,o.quantizedComponentDatatype=H.UNSIGNED_BYTE,o.quantizedType=Yt.VEC2}i.normals=o}if(d(n.RGBA)?i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGBA.array,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC4,normalized:!0,isTranslucent:!0}:d(n.RGB)&&(i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGB.array,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC3,normalized:!0,isTranslucent:!1}),d(n.BATCH_ID)){let a=n.BATCH_ID.array;i.batchIds={name:"_FEATURE_ID",semantic:ut.FEATURE_ID,setIndex:0,typedArray:a,componentDatatype:H.fromTypedArray(a),type:Yt.SCALAR}}let r=i.batchTableJson,s=t.batchTableProperties;for(let a in s)if(s.hasOwnProperty(a)){let c=n[a];d(r)||(r={}),i.hasDracoBatchTable=!0;let l=c.data;r[a]={byteOffset:l.byteOffset,type:K6e(l.componentsPerAttribute),componentType:H6e(l.componentDatatype),typedArray:c.array}}i.batchTableJson=r}function K6e(e){switch(e){case 1:return"SCALAR";case 2:return"VEC2";case 3:return"VEC3";case 4:return"VEC4"}}function H6e(e){switch(e){case te.BYTE:return"BYTE";case te.UNSIGNED_BYTE:return"UNSIGNED_BYTE";case te.SHORT:return"SHORT";case te.UNSIGNED_SHORT:return"UNSIGNED_SHORT";case te.INT:return"INT";case te.UNSIGNED_INT:return"UNSIGNED_INT";case te.DOUBLE:return"DOUBLE";case te.FLOAT:return"FLOAT"}}function $P(e,t,n){let i=t.typedArray,o;if(t.octEncoded&&(o=new Z0e,o.octEncoded=t.octEncoded,o.octEncodedZXY=t.octEncodedZXY,o.normalizationRange=t.quantizedRange,o.type=t.quantizedType,o.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){o=new Z0e;let a=t.quantizedRange;o.normalizationRange=a,o.quantizedVolumeOffset=h.ZERO;let c=t.quantizedVolumeScale;o.quantizedVolumeDimensions=c,o.quantizedVolumeStepSize=h.divideByScalar(c,a,new h),o.componentDatatype=t.quantizedComponentDatatype,o.type=t.quantizedType}let r=new U6e;if(r.name=t.name,r.semantic=t.semantic,r.setIndex=t.setIndex,r.componentDatatype=t.componentDatatype,r.type=t.type,r.normalized=g(t.normalized,!1),r.min=t.min,r.max=t.max,r.quantization=o,t.isRGB565&&(i=xn.decodeRGB565(i)),d(t.constantColor)){let a=new Array(4);r.constant=z.pack(t.constantColor,a)}else{let a=nt.createVertexBuffer({typedArray:i,context:n,usage:Me.STATIC_DRAW});a.vertexArrayDestroyable=!1,e._buffers.push(a),r.buffer=a}let s=e._loadAttributesFor2D;return r.semantic===ut.POSITION&&s&&(r.typedArray=i),r}var R0e,Kz;function J6e(e){if(!d(Kz)){R0e=new G0e.default(0),Kz=new Array(e);for(let t=0;t<e;++t)Kz[t]=R0e.random()}return Kz}var Q6e=new h,j6e=new h,q6e=new h;function $6e(e){let t=e.typedArray,n=20,i=t.length/3,o=Math.min(i,n),r=J6e(n),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=h.fromElements(s,s,s,Q6e),l=h.fromElements(a,a,a,j6e),u,m,f;if(e.isQuantized)c=h.ZERO,l=e.quantizedVolumeScale;else for(u=0;u<o;++u)m=Math.floor(r[u]*i),f=h.unpack(t,m*3,q6e),h.minimumByComponent(c,f,c),h.maximumByComponent(l,f,l);e.min=h.clone(c),e.max=h.clone(l)}var eqe={name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:z.DARKGRAY,componentDatatype:H.FLOAT,type:Yt.VEC4,isQuantized:!1,isTranslucent:!1};function tqe(e,t,n){let i=[],o,r=t.positions;return d(r)&&($6e(r),o=$P(e,r,n),o.count=t.pointsLength,i.push(o)),d(t.normals)&&(o=$P(e,t.normals,n),i.push(o)),d(t.colors)?(o=$P(e,t.colors,n),i.push(o)):(o=$P(e,eqe,n),i.push(o)),d(t.batchIds)&&(o=$P(e,t.batchIds,n),i.push(o)),i}function nqe(e,t,n){let i=e.batchLength,o=e.pointsLength,r=e.batchTableBinary,s=!d(e.batchIds);if(d(r)||e.hasDracoBatchTable||e.batchTableJson){let a=g(i,o);if(n==="2.1"||n==="2.2")return Nu({count:a,batchTable:e.batchTableJson,binaryBody:r,parseAsPropertyAttributes:s,customAttributeOutput:t,tilesetVersion:n});if(n==="2.0")return Tp({count:a,batchTable:e.batchTableJson,binaryBody:r,parseAsPropertyAttributes:s,customAttributeOutput:t})}return new ur({schema:{},propertyTables:[]})}function iqe(e,t){let n=e._parsedContent,i=e._tilesetVersion,o=new Y6e;o.metallicFactor=0,o.roughnessFactor=.9;let r=new z6e;r.metallicRoughness=o;let s=n.colors;d(s)&&s.isTranslucent&&(r.alphaMode=zm.BLEND);let a=!d(n.normals);r.unlit=a;let c=new D6e;if(c.attributes=tqe(e,n,t),c.primitiveType=Fe.POINTS,c.material=r,d(n.batchIds)){let p=new k6e;p.propertyTableId=0,p.setIndex=0,p.positionalLabel="featureId_0",c.featureIds.push(p)}let l=new A6e;l.index=0,l.primitives=[c];let u=new F6e;u.nodes=[l],u.upAxis=En.Z,u.forwardAxis=En.X;let m=new N6e;m.scene=u,m.nodes=[l];let f=[];m.structuralMetadata=nqe(n,f,i),f.length>0&&oqe(e,c,f,t),d(n.rtcCenter)&&(m.transform=P.multiplyByTranslation(m.transform,n.rtcCenter,m.transform));let b=n.positions;d(b)&&b.isQuantized&&(m.transform=P.multiplyByTranslation(m.transform,b.quantizedVolumeOffset,m.transform)),e._components=m,e._parsedContent=void 0,e._arrayBuffer=void 0}function oqe(e,t,n,i){let o=t.attributes,r=n.length;for(let s=0;s<r;s++){let a=n[s],c=nt.createVertexBuffer({typedArray:a.typedArray,context:i,usage:Me.STATIC_DRAW});c.vertexArrayDestroyable=!1,e._buffers.push(c),a.buffer=c,a.typedArray=void 0,o.push(a)}t.propertyAttributeIds=[0]}Px.prototype.unload=function(){let e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0,this._arrayBuffer=void 0};var ev=Px;var I8n=S(C(),1);var u8n=S(C(),1);var nZ={};nZ._deprecationWarning=lr;var vx=Uint32Array.BYTES_PER_ELEMENT;nZ.parse=function(e,t,n,i){t=g(t,0);let r=new DataView(e),s=new Uint8Array(e),a=0,c=0,l=0,u=0,m=r.getUint32(t,!0);t+=vx;let f;if(m>0){let Z=Wr(s,t,m);t+=m,f=JSON.parse(Z),i.tileset.loadChildTileSet(n,f,i)}t+=vx,a=r.getUint32(t,!0),t+=vx,c=r.getUint32(t,!0),t+=vx,l=r.getUint32(t,!0),t+=vx,u=r.getUint32(t,!0),t+=vx;let b;m=r.getUint32(t,!0),l>=570425344?(t-=vx*2,b=a,l=c,u=0,a=0,c=0,nZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):u>=570425344&&(t-=vx,b=l,l=a,u=c,a=0,c=0,nZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel."));let p;a===0?p={BATCH_LENGTH:g(b,0)}:(p=ho(s,t,a),t+=a);let x=new Uint8Array(e,t,c);t+=c;let T,_;l>0&&(T=ho(s,t,l),t+=l,u>0&&(_=new Uint8Array(e,t,u),_=new Uint8Array(_),t+=u));let L=e.byteLength-t,V;return t%4===0?V=new Uint8Array(e,t,L):(nZ._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),V=new Uint8Array(s.subarray(t,t+L))),{batchLength:b,featureTableJson:p,featureTableBinary:x,batchTableJson:T,batchTableBinary:_,gltf:V}};var tv=nZ;var H1={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},rqe=hn.FeatureIdAttribute;function Nx(e){e=g(e,g.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,En.Y),l=g(e.forwardAxis,En.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadAttributesFor2D,!1),f=g(e.enablePick,!1),b=g(e.loadIndicesForWireframe,!1),p=g(e.loadPrimitiveOutline,!0),x=g(e.loadForClassification,!1);n=d(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadAttributesFor2D=m,this._enablePick=f,this._loadIndicesForWireframe=b,this._loadPrimitiveOutline=p,this._loadForClassification=x,this._state=H1.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=P.IDENTITY,this._tilesetVersion=e.tilesetVersion,this._tile=e.tile,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(Nx.prototype=Object.create(vi.prototype),Nx.prototype.constructor=Nx);Object.defineProperties(Nx.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Nx.prototype.load=function(){if(d(this._promise))return this._promise;let e=tv.parse(this._arrayBuffer,this._byteOffset,this._baseResource,this._tile),t=e.featureTableJson,n=e.featureTableBinary,i=e.batchTableJson,o=e.batchTableBinary,r=new ma(t,n);this._tilesetVersion==="1.0"&&(this._batchLength=r.getGlobalProperty("BATCH_LENGTH"));let s=r.getGlobalProperty("RTC_CENTER",H.FLOAT,3);if(d(s)&&(this._transform=P.fromTranslation(h.fromArray(s))),d(i)){if(i.hasOwnProperty("name")){i.OID=[];let l=i.name;for(let u=0;u<l.length;u++){let m=l[u].split("_"),f=parseInt(m[2]);i.OID.push(f)}}this._batchTable={json:i,binary:o}}let a=new Dc({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=a,this._state=H1.LOADING;let c=this;return this._promise=a.load().then(function(){if(!c.isDestroyed())return c._state=H1.PROCESSING,c}).catch(function(l){if(!c.isDestroyed())return sqe(c,l)}),this._promise};function sqe(e,t){return e.unload(),e._state=H1.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}Nx.prototype.process=function(e){if(this._state===H1.READY)return!0;if(this._state!==H1.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=P.multiplyTransformation(this._transform,n.transform,n.transform),aqe(this,n),this._components=n,this._arrayBuffer=void 0,this._state=H1.READY,!0};function aqe(e,t){let n=e._batchTable,i=e._batchLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n?.json))r=Nu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let c=new as({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new ur({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)E0e(s[c]);t.structuralMetadata=r}function E0e(e){let t=e.children.length;for(let i=0;i<t;i++)E0e(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let o=e.primitives[i],r=fn.getAttributeBySemantic(o,ut.FEATURE_ID);if(d(r)){r.setIndex=0;let s=new rqe;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",o.featureIds.push(s)}}}Nx.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var nv=Nx;var M8n=S(C(),1),cqe={FILL:0,SILHOUETTE:1,ALL:2},Lp=Object.freeze(cqe);function zi(e){e=g(e,g.EMPTY_OBJECT),this._loader=e.loader,this._resource=e.resource,this.type=g(e.type,xr.GLTF),this.modelMatrix=P.clone(g(e.modelMatrix,P.IDENTITY)),this._modelMatrix=P.clone(this.modelMatrix),this._scale=g(e.scale,1),this._minimumPixelSize=g(e.minimumPixelSize,0),this._maximumScale=e.maximumScale,this._clampedScale=d(this._maximumScale)?Math.min(this._scale,this._maximumScale):this._scale,this._computedScale=this._clampedScale,this._updateModelMatrix=!1,this.referenceMatrix=void 0,this._iblReferenceFrameMatrix=$.clone($.IDENTITY),this._resourcesLoaded=!1,this._drawCommandsBuilt=!1,this._ready=!1,this._customShader=e.customShader,this._content=e.content,this._texturesLoaded=!1,this._defaultTexture=void 0,this._activeAnimations=new Kw(this),this._clampAnimations=g(e.clampAnimations,!0),this._userAnimationDirty=!1,this._id=e.id,this._idDirty=!1,this._color=z.clone(e.color),this._backupColor=z.clone(e.color),this._colorBlendMode=g(e.colorBlendMode,fl.HIGHLIGHT),this._colorBlendAmount=g(e.colorBlendAmount,.5);let t=g(e.silhouetteColor,z.RED);this._silhouetteColor=z.clone(t),this._silhouetteSize=g(e.silhouetteSize,0),this._silhouetteDirty=!1,this._silhouetteId=void 0,this._cull=g(e.cull,!0),this._opaquePass=g(e.opaquePass,Ze.OPAQUE),this._allowPicking=g(e.allowPicking,!0),this._show=g(e.show,!0),this._style=void 0,this._styleDirty=!1,this._styleCommandsNeeded=void 0;let n=g(e.featureIdLabel,"featureId_0");typeof n=="number"&&(n=`featureId_${n}`),this._featureIdLabel=n;let i=g(e.instanceFeatureIdLabel,"instanceFeatureId_0");typeof i=="number"&&(i=`instanceFeatureId_${i}`),this._instanceFeatureIdLabel=i,this._featureTables=[],this._featureTableId=void 0,this._featureTableIdDirty=!0,this._pipelineResources=[],this._modelResources=[],this._pickIds=[],this._boundingSphere=new de,this._initialRadius=void 0,this._heightReference=g(e.heightReference,rt.NONE),this._heightDirty=this._heightReference!==rt.NONE,this._removeUpdateHeightCallback=void 0,this._enableVerticalExaggeration=g(e.enableVerticalExaggeration,!0),this._hasVerticalExaggeration=!1,this._clampedModelMatrix=void 0;let o=e.scene;d(o)&&d(o.terrainProviderChanged)&&(this._terrainProviderChangedCallback=o.terrainProviderChanged.addEventListener(()=>{this._heightDirty=!0})),this._scene=o,this._distanceDisplayCondition=e.distanceDisplayCondition;let r=new Bm(e.pointCloudShading);this._pointCloudShading=r,this._attenuation=r.attenuation,this._pointCloudBackFaceCulling=r.backFaceCulling;let s=e.clippingPlanes;d(s)&&s.owner===void 0?Vr.setOwner(s,this,"_clippingPlanes"):this._clippingPlanes=s,this._clippingPlanesState=0,this._clippingPlanesMatrix=P.clone(P.IDENTITY);let a=e.clippingPolygons;d(a)&&a.owner===void 0?Od.setOwner(a,this,"_clippingPolygons"):this._clippingPolygons=a,this._clippingPolygonsState=0,this._lightColor=h.clone(e.lightColor),this._imageBasedLighting=d(e.imageBasedLighting)?e.imageBasedLighting:new Xb,this._shouldDestroyImageBasedLighting=!d(e.imageBasedLighting),this._backFaceCulling=g(e.backFaceCulling,!0),this._backFaceCullingDirty=!1,this._shadows=g(e.shadows,On.ENABLED),this._shadowsDirty=!1,this._debugShowBoundingVolumeDirty=!1,this._debugShowBoundingVolume=g(e.debugShowBoundingVolume,!1),this._enableDebugWireframe=g(e.enableDebugWireframe,!1),this._enableShowOutline=g(e.enableShowOutline,!0),this._debugWireframe=g(e.debugWireframe,!1),this._debugWireframe===!0&&this._enableDebugWireframe===!1&&this.type===xr.GLTF&&Ft("model-debug-wireframe-ignored","enableDebugWireframe must be set to true in Model.fromGltf, otherwise debugWireframe will be ignored.");let c=e.credit;typeof c=="string"&&(c=new Ot(c)),this._credits=[],this._credit=c,this._resourceCredits=[],this._gltfCredits=[],this._showCreditsOnScreen=g(e.showCreditsOnScreen,!1),this._showCreditsOnScreenDirty=!0,this._splitDirection=g(e.splitDirection,ss.NONE),this._swipeInverse=!1,this._swiper={},this._enableShowOutline=g(e.enableShowOutline,!0),this.showOutline=g(e.showOutline,!0),this.outlineColor=g(e.outlineColor,z.BLACK),this._classificationType=e.classificationType,this._statistics=new UP,this._sceneMode=void 0,this._projectTo2D=g(e.projectTo2D,!1),this._enablePick=g(e.enablePick,!1),this._fogRenderable=void 0,this._skipLevelOfDetail=!1,this._ignoreCommands=g(e.ignoreCommands,!1),this._errorEvent=new Se,this._readyEvent=new Se,this._texturesReadyEvent=new Se,this._sceneGraph=void 0,this._nodesByName={},this.pickObject=e.pickObject,this._fillClip=g(e.fillClip,!1),this._hasSectionGeometry=g(e.hasSectionGeometry,!1),this._clippingFillImage=g(e.clippingFillImage,void 0),this._lightState={pointLightNum:0,directionalLigthNum:0,spotLightNum:0},this._renderMode=g(e.renderMode,Lp.FILL),this._deleteVerticalPlane=g(e.deleteVerticalPlane,!1),this._hasSectionGeometry=this.content?.tileset._hasSectionGeometry,this._clippingGeometries=e.clippingGeometries,this._brightness=0,this._modelUpAxis=En.Y,this._exposure=0,this._contrast=1,this._hue=0,this._saturation=0,this._gamma=1}function C8(e,t){if(e._errorEvent.numberOfListeners>0){e._errorEvent.raiseEvent(t);return}console.log(t)}function lqe(e,t){let n=e._featureTables,i=t.propertyTables,o=i.length;for(let r=0;r<o;r++){let s=i[r],a=new Qw({model:e,propertyTable:s});n.push(a)}return n}function dqe(e,t){let n=t._featureIdLabel,i=t._instanceFeatureIdLabel,o,r,s,a;for(o=0;o<e.nodes.length;o++)if(a=e.nodes[o],d(a.instances)&&(s=fn.getFeatureIdsByLabel(a.instances.featureIds,i),d(s)&&d(s.propertyTableId)))return s.propertyTableId;for(o=0;o<e.nodes.length;o++)for(a=e.nodes[o],r=0;r<a.primitives.length;r++){let c=a.primitives[r],l=fn.getFeatureIdsByLabel(c.featureIds,n);if(d(l))return l.propertyTableId}if(t._featureTables.length===1)return 0}function Z8(e,t){if(!d(e)&&!d(t))return!1;if(d(e)!==d(t))return!0;let n=e.alpha,i=t.alpha;return Math.floor(n)!==Math.floor(i)||Math.ceil(n)!==Math.ceil(i)}Object.defineProperties(zi.prototype,{ready:{get:function(){return this._ready}},errorEvent:{get:function(){return this._errorEvent}},readyEvent:{get:function(){return this._readyEvent}},incrementallyLoadTextures:{get:function(){return g(this._loader.incrementallyLoadTextures,!1)}},texturesReadyEvent:{get:function(){return this._texturesReadyEvent}},loader:{get:function(){return this._loader}},statistics:{get:function(){return this._statistics}},activeAnimations:{get:function(){return this._activeAnimations}},clampAnimations:{get:function(){return this._clampAnimations},set:function(e){this._clampAnimations=e}},cull:{get:function(){return this._cull}},opaquePass:{get:function(){return this._opaquePass}},pointCloudShading:{get:function(){return this._pointCloudShading},set:function(e){e!==this._pointCloudShading&&this.resetDrawCommands(),this._pointCloudShading=e}},customShader:{get:function(){return this._customShader},set:function(e){e!==this._customShader&&this.resetDrawCommands(),this._customShader=e}},sceneGraph:{get:function(){return this._sceneGraph}},content:{get:function(){return this._content}},heightReference:{get:function(){return this._heightReference},set:function(e){e!==this._heightReference&&(this._heightDirty=!0),this._heightReference=e}},distanceDisplayCondition:{get:function(){return this._distanceDisplayCondition},set:function(e){this._distanceDisplayCondition=nn.clone(e,this._distanceDisplayCondition)}},structuralMetadata:{get:function(){return this._sceneGraph.components.structuralMetadata}},featureTableId:{get:function(){return this._featureTableId},set:function(e){this._featureTableId=e}},featureTables:{get:function(){return this._featureTables},set:function(e){this._featureTables=e}},id:{get:function(){return this._id},set:function(e){e!==this._id&&(this._idDirty=!0),this._id=e}},allowPicking:{get:function(){return this._allowPicking}},style:{get:function(){return this._style},set:function(e){this._style=e,this._styleDirty=!0}},color:{get:function(){return this._color},set:function(e){Z8(e,this._color)&&this.resetDrawCommands(),this._color=z.clone(e,this._color)}},colorBlendMode:{get:function(){return this._colorBlendMode},set:function(e){this._colorBlendMode=e}},colorBlendAmount:{get:function(){return this._colorBlendAmount},set:function(e){this._colorBlendAmount=e}},silhouetteColor:{get:function(){return this._silhouetteColor},set:function(e){if(!z.equals(e,this._silhouetteColor)){let t=Z8(e,this._silhouetteColor);this._silhouetteDirty=this._silhouetteDirty||t}this._silhouetteColor=z.clone(e,this._silhouetteColor)}},silhouetteSize:{get:function(){return this._silhouetteSize},set:function(e){if(e!==this._silhouetteSize){let t=this._silhouetteSize,n=e>0&&t===0||e===0&&t>0;this._silhouetteDirty=this._silhouetteDirty||n,this._backFaceCullingDirty=this._backFaceCullingDirty||n}this._silhouetteSize=e}},boundingSphere:{get:function(){let e=d(this._clampedModelMatrix)?this._clampedModelMatrix:this.modelMatrix;return M0e(this,e),this._boundingSphere}},localBoundingSphere:{get:function(){let e=d(this._maximumScale)?Math.min(this._scale,this._maximumScale):this._scale,t=this._boundingSphere.clone();return t.center=h.multiplyByScalar(this._sceneGraph.boundingSphere.center,e,t.center),t.radius=this._initialRadius*this._clampedScale,t}},debugShowBoundingVolume:{get:function(){return this._debugShowBoundingVolume},set:function(e){this._debugShowBoundingVolume!==e&&(this._debugShowBoundingVolumeDirty=!0),this._debugShowBoundingVolume=e}},debugWireframe:{get:function(){return this._debugWireframe},set:function(e){this._debugWireframe!==e&&this.resetDrawCommands(),this._debugWireframe=e,this._debugWireframe===!0&&this._enableDebugWireframe===!1&&this.type===xr.GLTF&&Ft("model-debug-wireframe-ignored","enableDebugWireframe must be set to true in Model.fromGltfAsync, otherwise debugWireframe will be ignored.")}},show:{get:function(){return this._show},set:function(e){this._show=e}},featureIdLabel:{get:function(){return this._featureIdLabel},set:function(e){typeof e=="number"&&(e=`featureId_${e}`),e!==this._featureIdLabel&&(this._featureTableIdDirty=!0),this._featureIdLabel=e}},instanceFeatureIdLabel:{get:function(){return this._instanceFeatureIdLabel},set:function(e){typeof e=="number"&&(e=`instanceFeatureId_${e}`),e!==this._instanceFeatureIdLabel&&(this._featureTableIdDirty=!0),this._instanceFeatureIdLabel=e}},clippingPlanes:{get:function(){return this._clippingPlanes},set:function(e){e!==this._clippingPlanes&&(Vr.setOwner(e,this,"_clippingPlanes"),this.resetDrawCommands())}},clippingGeometries:{get:function(){return this._clippingGeometries},set:function(e){this._clippingGeometries!==e&&(this._clippingGeometries=e,this.resetDrawCommands())}},clippingPolygons:{get:function(){return this._clippingPolygons},set:function(e){e!==this._clippingPolygons&&(Od.setOwner(e,this,"_clippingPolygons"),this.resetDrawCommands())}},enableVerticalExaggeration:{get:function(){return this._enableVerticalExaggeration},set:function(e){e!==this._enableVerticalExaggeration&&this.resetDrawCommands(),this._enableVerticalExaggeration=e}},hasVerticalExaggeration:{get:function(){return this._hasVerticalExaggeration}},lightColor:{get:function(){return this._lightColor},set:function(e){d(e)!==d(this._lightColor)&&this.resetDrawCommands(),this._lightColor=h.clone(e,this._lightColor)}},imageBasedLighting:{get:function(){return this._imageBasedLighting},set:function(e){e!==this._imageBasedLighting&&(this._shouldDestroyImageBasedLighting&&!this._imageBasedLighting.isDestroyed()&&this._imageBasedLighting.destroy(),this._imageBasedLighting=e,this._shouldDestroyImageBasedLighting=!1,this.resetDrawCommands())}},backFaceCulling:{get:function(){return this._backFaceCulling},set:function(e){e!==this._backFaceCulling&&(this._backFaceCullingDirty=!0),this._backFaceCulling=e}},scale:{get:function(){return this._scale},set:function(e){e!==this._scale&&(this._updateModelMatrix=!0),this._scale=e}},computedScale:{get:function(){return this._computedScale}},renderMode:{get:function(){return this._renderMode},set:function(e){this._renderMode=e}},minimumPixelSize:{get:function(){return this._minimumPixelSize},set:function(e){e!==this._minimumPixelSize&&(this._updateModelMatrix=!0),this._minimumPixelSize=e}},maximumScale:{get:function(){return this._maximumScale},set:function(e){e!==this._maximumScale&&(this._updateModelMatrix=!0),this._maximumScale=e}},shadows:{get:function(){return this._shadows},set:function(e){e!==this._shadows&&(this._shadowsDirty=!0),this._shadows=e}},credit:{get:function(){return this._credit}},showCreditsOnScreen:{get:function(){return this._showCreditsOnScreen},set:function(e){this._showCreditsOnScreen!==e&&(this._showCreditsOnScreenDirty=!0),this._showCreditsOnScreen=e}},splitDirection:{get:function(){return this._splitDirection},set:function(e){this._splitDirection!==e&&this.resetDrawCommands(),this._splitDirection=e}},rollerShutterRegion:{get:function(){return this._rollerShutterRegion},set:function(e){this._rollerShutterRegion=e}},rollerShutterSpyglassRegion:{get:function(){return this._rollerShutterSpyglassRegion},set:function(e){this._rollerShutterSpyglassRegion=e}},rollerShutterPolygonRegion:{get:function(){return this._rollerShutterPolygonRegion},set:function(e){this._rollerShutterPolygonRegion=e}},swipeInverse:{get:function(){return this._swipeInverse},set:function(e){this._swipeInverse=e}},swiper:{get:function(){return this._swiper},set:function(e){this._swiper=e}},classificationType:{get:function(){return this._classificationType}},pickIds:{get:function(){return this._pickIds}},styleCommandsNeeded:{get:function(){return this._styleCommandsNeeded}}});zi.prototype.getNode=function(e){return this._nodesByName[e]};zi.prototype.setArticulationStage=function(e,t){this._sceneGraph.setArticulationStage(e,t)};zi.prototype.applyArticulations=function(){this._sceneGraph.applyArticulations()};zi.prototype.getExtension=function(e){return this._loader.components.extensions[e]};zi.prototype.makeStyleDirty=function(){this._styleDirty=!0};zi.prototype.resetDrawCommands=function(){this._drawCommandsBuilt=!1};var uqe=new P,mqe=new $,hqe=new P;zi.prototype.update=function(e){let t=!1;try{t=pqe(this,e)}catch(n){if(!this._loader.incrementallyLoadTextures&&n.name==="TextureError")C8(this,n);else{let i=fn.getError("model",this._resource,n);C8(this,i)}}if(fqe(this,e),bqe(this,e),!this._resourcesLoaded&&t){this._resourcesLoaded=!0;let n=this._loader.components;if(!d(n)){if(this._loader.isUnloaded())return;let r=fn.getError("model",this._resource,new le("Failed to load model."));C8(r),this._rejectLoad=this._rejectLoad&&this._rejectLoad(r)}let i=n.structuralMetadata;d(i)&&i.propertyTableCount>0&&lqe(this,i);let o=new DP({model:this,modelComponents:n});this._sceneGraph=o,this._gltfCredits=o.components.asset.credits}if(!(!this._resourcesLoaded||e.mode===ae.MORPHING)){if(yqe(this),gqe(this),xqe(this,e),Tqe(this),_qe(this,e),Sqe(this,e),Cqe(this,e),Lqe(this,e),Vqe(this,e),Zqe(this,e),Rqe(this,e),Iqe(this,e),Xqe(this,e),Mqe(this,e),Wqe(this,e),wqe(this,e),Pqe(this,e),vqe(this,e),this._defaultTexture=e.context.defaultTexture,Nqe(this,e),Fqe(this,e),Aqe(this),Dqe(this,e),Yqe(this,e),Eqe(this,e),!this._ready){e.afterRender.push(()=>{this._ready=!0,this._readyEvent.raiseEvent(this)});return}this._loader.incrementallyLoadTextures&&!this._texturesLoaded&&this._loader.texturesLoaded&&(this.resetDrawCommands(),this._texturesLoaded=!0,this._texturesReadyEvent.raiseEvent(this)),kqe(this),Bqe(this,e),Oqe(this),Gqe(this,e),Kqe(this,e)}};function pqe(e,t){return!e._resourcesLoaded||e._loader.incrementallyLoadTextures&&!e._texturesLoaded?(t.afterRender.push(()=>!0),e._loader.process(t)):!0}function fqe(e,t){d(e._customShader)&&e._customShader.update(t)}function bqe(e,t){e._imageBasedLighting.update(t),e._imageBasedLighting.shouldRegenerateShaders&&e.resetDrawCommands()}function yqe(e){if(!e._featureTableIdDirty)return;e._featureTableIdDirty=!1;let t=e._sceneGraph.components,n=t.structuralMetadata;d(n)&&n.propertyTableCount>0&&(e.featureTableId=dqe(t,e),e._styleDirty=!0,e.resetDrawCommands())}function gqe(e){e._styleDirty&&(e.applyStyle(e._style),e._styleDirty=!1)}function xqe(e,t){let n=e._featureTables,i=n.length,o=!1;for(let r=0;r<i;r++)e._content&&e._content.tileset&&e.isFlatten&&n[r].applyFlatten(e._content.tileset._flattenOIds,e._content.tileset.version,t),n[r].update(t),n[r].styleCommandsNeededDirty&&(o=!0);o&&X0e(e)}function X0e(e){let t=e.featureTables[e.featureTableId];e._styleCommandsNeeded=Sp.getStyleCommandsNeeded(t.featuresLength,t.batchTexture.translucentFeaturesLength)}function Tqe(e){let t=e.pointCloudShading;t.attenuation!==e._attenuation&&(e.resetDrawCommands(),e._attenuation=t.attenuation),t.backFaceCulling!==e._pointCloudBackFaceCulling&&(e.resetDrawCommands(),e._pointCloudBackFaceCulling=t.backFaceCulling)}function _qe(e,t){e._silhouetteDirty&&(w0e(t)&&e.resetDrawCommands(),e._silhouetteDirty=!1)}function Sqe(e,t){let n=e.hasSkipLevelOfDetail(t);n!==e._skipLevelOfDetail&&(e.resetDrawCommands(),e._skipLevelOfDetail=n)}function Cqe(e,t){let n=0;e.isClippingEnabled()&&(e._clippingPlanes.owner===e&&e._clippingPlanes.update(t),n=e._clippingPlanes.clippingPlanesState),n!==e._clippingPlanesState&&(e.resetDrawCommands(),e._clippingPlanesState=n,e._clipFillUtil=void 0)}function Lqe(e,t){let n=0;e.isClippingPolygonsEnabled()&&(e._clippingPolygons.owner===e&&(e._clippingPolygons.update(t),e._clippingPolygons.queueCommands(t)),n=e._clippingPolygons.clippingPolygonsState),n!==e._clippingPolygonsState&&(e.resetDrawCommands(),e._clippingPolygonsState=n)}function Vqe(e,t){t.mode!==e._sceneMode&&(e._projectTo2D?e.resetDrawCommands():e._updateModelMatrix=!0,e._sceneMode=t.mode)}function Zqe(e,t){let n=t.fog.enabled&&t.fog.renderable;n!==e._fogRenderable&&(e.resetDrawCommands(),e._fogRenderable=n)}function Rqe(e,t){if(e.enableVerticalExaggeration){let n=t.verticalExaggeration!==1;e.hasVerticalExaggeration!==n&&(e.resetDrawCommands(),e._hasVerticalExaggeration=n)}else e.hasVerticalExaggeration&&(e.resetDrawCommands(),e._hasVerticalExaggeration=!1)}function Gqe(e,t){e._clippingFillImage=e?.content?.tileset?.clippingFillImage,e._fillClip&&d(e._clipFillUtil)&&(e.isClippingEnabled()||e.isGeometryClipEnabled())&&e._clipFillUtil.update(t)}function Eqe(e,t){let n=e?.content?.tileset?._sectionRenders;if(d(n))for(let i=0;i<n.length;i++)n[i].updateModel(t,e)}function Iqe(e,t){let n=e?.content?.tileset;d(n)&&d(n._explosionTextureData)&&d(n._explosionIdTexture)&&d(n._explosionDirectionTexture)&&e.resetDrawCommands()}function Xqe(e,t){let n=t.lightManager,i=!1;e._lightState.pointLightNum!==n.pointLights.length&&(i=!0,e._lightState.pointLightNum=n.pointLights.length),e._lightState.directionalLigthNum!==n.directionalLights.length&&(i=!0,e._lightState.directionalLigthNum=n.directionalLights.length),e._lightState.spotLightNum!==n.spotLights.length&&(i=!0,e._lightState.spotLightNum=n.spotLights.length),i&&e.resetDrawCommands()}function Mqe(e,t){let n=e?.content?.tileset;d(n)&&n._enableStretch&&n._stretchFactor!==1&&e.resetDrawCommands()}function wqe(e,t){let n=e?.content?.tileset;d(n)&&n._deleteVerticalPlane&&(e._deleteVerticalPlane=n._deleteVerticalPlane,e.resetDrawCommands(),n._deleteVerticalPlaneChanged=!1)}function Wqe(e,t){let n=e?.content?.tileset;d(n)&&n.swipeEnabled&&e.resetDrawCommands()}function Pqe(e,t){let n=e?.content?.tileset;d(n)&&n.isFlatten&&(e._flattenWithId=!!(n._flattenOIds&&n._flattenOIds.length>0),e._modelUpAxis=n._modelUpAxis,e.resetDrawCommands())}function vqe(e,t){let n=e?.content?.tileset;if(n?.version==="2.0"){let o=e?.content?.tile;d(o.nodeColor)&&n._changeNodeColor?z.equals(e._color,o.nodeColor)||(e._color=o.nodeColor,e.resetDrawCommands()):d(e._color)&&!n._changeNodeColor&&!d(e._style)&&(e._color=void 0,e.resetDrawCommands())}}function Nqe(e,t){e._drawCommandsBuilt||(e.destroyPipelineResources(),e._sceneGraph.buildDrawCommands(t),e._drawCommandsBuilt=!0)}function Fqe(e,t){P.equals(e.modelMatrix,e._modelMatrix)||(e._updateModelMatrix=!0,e._modelMatrix=P.clone(e.modelMatrix,e._modelMatrix))}var Fx=new h,L8=new me;function Aqe(e){if(!e._updateModelMatrix&&!e._heightDirty&&e._minimumPixelSize===0)return;d(e._removeUpdateHeightCallback)&&(e._removeUpdateHeightCallback(),e._removeUpdateHeightCallback=void 0);let t=e._scene;if(!d(t)||e.heightReference===rt.NONE){e._clampedModelMatrix=void 0;return}let n=g(t.ellipsoid,oe.default),i=e.modelMatrix;Fx.x=i[12],Fx.y=i[13],Fx.z=i[14];let o=n.cartesianToCartographic(Fx);d(e._clampedModelMatrix)||(e._clampedModelMatrix=P.clone(i,new P)),e._removeUpdateHeightCallback=t.updateHeight(o,I0e(e,n,o),e.heightReference);let r=t.getHeight(o,e.heightReference);if(d(r)){let s=I0e(e,n,o);me.clone(o,L8),L8.height=r,s(L8)}e._heightDirty=!1,e._updateModelMatrix=!0}function Dqe(e,t){if(!e._updateModelMatrix&&e._minimumPixelSize===0)return;let n=d(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;M0e(e,n),Uqe(e,n,t)}function M0e(e,t){e._clampedScale=d(e._maximumScale)?Math.min(e._scale,e._maximumScale):e._scale,e._boundingSphere.center=h.multiplyByScalar(e._sceneGraph.boundingSphere.center,e._clampedScale,e._boundingSphere.center),e._boundingSphere.radius=e._initialRadius*e._clampedScale,e._boundingSphere=de.transform(e._boundingSphere,t,e._boundingSphere)}function Uqe(e,t,n){let i=e.scale;if(e.minimumPixelSize!==0&&!e._projectTo2D){let o=n.context,r=Math.max(o.drawingBufferWidth,o.drawingBufferHeight);P.getTranslation(t,Fx),e._sceneMode!==ae.SCENE3D&&yo.computeActualEllipsoidPosition(n,Fx,Fx);let s=e._boundingSphere.radius,a=Hqe(Fx,s,n),c=1/a;Math.min(c*(2*s),r)<e.minimumPixelSize&&(i=e.minimumPixelSize*a/(2*e._initialRadius))}e._computedScale=d(e.maximumScale)?Math.min(e.maximumScale,i):i}function kqe(e){if(!e._idDirty)return;e._idDirty=!1;let t=e._id,n=e._pickIds,i=n.length;for(let o=0;o<i;++o)n[o].object.id=t}var zqe=new $(1,0,0,0,0,1,0,-1,0);function Yqe(e,t){let n=d(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix,i=g(e.referenceMatrix,n),o=t.context,r=e._imageBasedLighting;if(r.useSphericalHarmonicCoefficients||r.useSpecularEnvironmentMaps){let s=mqe,a=uqe;a=P.multiply(o.uniformState.view3D,i,a),s=P.getRotation(a,s),s=$.transpose(s,s),e._iblReferenceFrameMatrix=$.multiply(zqe,s,e._iblReferenceFrameMatrix)}if(e.isClippingEnabled()){let s=hqe;s=P.multiply(o.uniformState.view3D,i,s),s=P.multiply(s,e._clippingPlanes.modelMatrix,s),e._clippingPlanesMatrix=P.inverseTranspose(s,e._clippingPlanesMatrix)}}function Bqe(e,t){let n=e._sceneGraph;if(e._updateModelMatrix||e._minimumPixelSize!==0){let o=d(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;n.updateModelMatrix(o,t),e._updateModelMatrix=!1}e._backFaceCullingDirty&&(n.updateBackFaceCulling(e._backFaceCulling),e._backFaceCullingDirty=!1),e._shadowsDirty&&(n.updateShadows(e._shadows),e._shadowsDirty=!1),e._debugShowBoundingVolumeDirty&&(n.updateShowBoundingVolume(e._debugShowBoundingVolume),e._debugShowBoundingVolumeDirty=!1);let i=!1;d(e.classificationType)||(i=e._userAnimationDirty||e._activeAnimations.update(t)),n.update(t,i),e._userAnimationDirty=!1}function Oqe(e){if(!e._showCreditsOnScreenDirty)return;e._showCreditsOnScreenDirty=!1,e._credits.length=0;let t=e._showCreditsOnScreen;if(d(e._credit)){let s=Ot.clone(e._credit);s.showOnScreen=s.showOnScreen||t,e._credits.push(s)}let n=e._resourceCredits,i=n.length;for(let s=0;s<i;s++){let a=Ot.clone(n[s]);a.showOnScreen=a.showOnScreen||t,e._credits.push(a)}let o=e._gltfCredits,r=o.length;for(let s=0;s<r;s++){let a=Ot.clone(o[s]);a.showOnScreen=a.showOnScreen||t,e._credits.push(a)}}function Kqe(e,t){let n=Qqe(e,t),i=e.isInvisible(),o=e.hasSilhouette(t),r=e._show&&e._computedScale!==0&&n&&(!i||o),s=t.passes,a=s.render||s.pick&&e.allowPicking,c=e.content?.tileset._sectionOnly;r&&!e._ignoreCommands&&a&&!c&&(jqe(e,t),e._sceneGraph.pushDrawCommands(t))}var V8=new de;function Hqe(e,t,n){return V8.center=e,V8.radius=t,n.camera.getPixelSize(V8,n.context.drawingBufferWidth,n.context.drawingBufferHeight)}var Hz=new h;function I0e(e,t,n){return function(i){NL(e.heightReference)&&(i.height+=n.height),t.cartographicToCartesian(i,Hz);let o=e._clampedModelMatrix;P.clone(e.modelMatrix,o),o[12]=Hz.x,o[13]=Hz.y,o[14]=Hz.z,e._heightDirty=!0}}var Jqe=new h;function Qqe(e,t){let n=e.distanceDisplayCondition;if(!d(n))return!0;let i=n.near*n.near,o=n.far*n.far,r;if(t.mode===ae.SCENE2D){let a=(t.camera.frustum.right-t.camera.frustum.left)*.5;r=a*a}else{let s=P.getTranslation(e.modelMatrix,Jqe);yo.computeActualEllipsoidPosition(t,s,s),r=h.distanceSquared(s,t.camera.positionWC)}return r>=i&&r<=o}function jqe(e,t){let n=t.creditDisplay,i=e._credits,o=i.length;for(let r=0;r<o;r++)n.addCreditToNextFrame(i[r])}zi.prototype.isTranslucent=function(){let e=this.color;return d(e)&&e.alpha>0&&e.alpha<1};zi.prototype.isInvisible=function(){let e=this.color;return d(e)&&e.alpha===0};function w0e(e){return e.context.stencilBuffer}zi.prototype.hasSilhouette=function(e){return w0e(e)&&this._silhouetteSize>0&&this._silhouetteColor.alpha>0&&!d(this._classificationType)};zi.prototype.hasSkipLevelOfDetail=function(e){if(!xr.is3DTiles(this.type))return!1;let t=e.context.stencilBuffer,n=this._content.tileset;return t&&n.isSkippingLevelOfDetail};zi.prototype.isClippingEnabled=function(){let e=this._clippingPlanes;return d(e)&&e.enabled&&e.length!==0};zi.prototype.isGeometryClipEnabled=function(){let e=this._clippingGeometries;return d(e)};zi.prototype.pick=function(e,t,n,i,o){return eZ(this,e,t,n,i,o)};zi.prototype.isClippingPolygonsEnabled=function(){let e=this._clippingPolygons;return d(e)&&e.enabled&&e.length!==0};zi.prototype.isDestroyed=function(){return!1};zi.prototype.destroy=function(){let e=this._loader;d(e)&&e.destroy();let t=this._featureTables;if(d(t)){let r=t.length;for(let s=0;s<r;s++)t[s].destroy()}this.destroyPipelineResources(),this.destroyModelResources(),d(this._removeUpdateHeightCallback)&&(this._removeUpdateHeightCallback(),this._removeUpdateHeightCallback=void 0),d(this._terrainProviderChangedCallback)&&(this._terrainProviderChangedCallback(),this._terrainProviderChangedCallback=void 0);let n=this._clippingPlanes;d(n)&&!n.isDestroyed()&&n.owner===this&&n.destroy(),this._clippingPlanes=void 0;let i=this._clippingPolygons;d(i)&&!i.isDestroyed()&&i.owner===this&&i.destroy(),this._clippingPolygons=void 0,this._shouldDestroyImageBasedLighting&&!this._imageBasedLighting.isDestroyed()&&this._imageBasedLighting.destroy(),this._imageBasedLighting=void 0;let o=this._nodeCommands;for(let r=0;r<o.length;++r){let s=o[r],a=s.stencilCommand;d(a)&&d(a.shaderProgram)&&!a.shaderProgram.isDestroyed()&&(a.shaderProgram=a.shaderProgram.destroy()),a=s.sectionCommand,d(a)&&d(a.shaderProgram)&&!a.shaderProgram.isDestroyed()&&(a.shaderProgram=a.shaderProgram.destroy())}fe(this)};zi.prototype.destroyPipelineResources=function(){let e=this._pipelineResources;for(let t=0;t<e.length;t++)e[t].destroy();this._pipelineResources.length=0,this._pickIds.length=0};zi.prototype.destroyModelResources=function(){let e=this._modelResources;for(let t=0;t<e.length;t++)e[t].destroy();this._modelResources.length=0};zi.fromGltfAsync=async function(e){e=g(e,g.EMPTY_OBJECT);let t=g(e.url,e.gltf),n={releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),generateUniqueId:e.generateUniqueId},i=g(e.basePath,""),o=Xe.createIfNeeded(i);d(t.asset)?(n.gltfJson=t,n.baseResource=o,n.gltfResource=o):t instanceof Uint8Array?(n.typedArray=t,n.baseResource=o,n.gltfResource=o):n.gltfResource=Xe.createIfNeeded(t);let r=new Dc(n),a=d(e.content)?xr.TILE_GLTF:xr.GLTF,c=n.gltfResource,l=t0(r,a,e);l.resource=c;try{await r.load()}catch(b){throw r.destroy(),fn.getError("model",c,b)}let u=e.gltfCallback;d(u)&&u(r.gltfJson);let m=new zi(l),f=m._resource.credits;if(d(f)){let b=f.length;for(let p=0;p<b;p++)m._resourceCredits.push(Ot.clone(f[p]))}return m};zi.fromM3DData=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,tile:e.tile,hasSectionGeometry:e.hasSectionGeometry},n=new nv(t);try{await n.load();let i=t0(n,xr.TILE_B3DM,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromM3DGltf=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new JP(t);try{await n.load();let i=t0(n,xr.TILE_B3DM,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromM3DB3dm=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new QP(t);try{await n.load();let i=t0(n,xr.TILE_B3DM,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromM3DI3dm=async function(e){let t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new jP(t);try{await n.load();let i=t0(n,xr.TILE_I3DM,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromM3DPnts=async function(e){let t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,loadAttributesFor2D:e.projectTo2D,attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,tileset:e.tileset,tile:e.tile,resource:e.resource},n=new ev(t);try{await n.load();let i=t0(n,xr.TILE_PNTS,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromB3dm=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),generateUniqueId:e.generateUniqueId},n=new Aw(t);try{await n.load();let i=t0(n,xr.TILE_B3DM,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromPnts=async function(e){let t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,loadAttributesFor2D:e.projectTo2D,generateUniqueId:e.generateUniqueId},n=new zP(t);try{await n.load();let i=t0(n,xr.TILE_PNTS,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromI3dm=async function(e){let t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,generateUniqueId:e.generateUniqueId},n=new Uw(t);try{await n.load();let i=t0(n,xr.TILE_I3DM,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromGeoJson=async function(e){let t={geoJson:e.geoJson},n=new Dw(t),i=t0(n,xr.TILE_GEOJSON,e);return new zi(i)};var qqe=new z;zi.prototype.applyColorAndShow=function(e){let t=z.clone(this._color,qqe),n=d(e)&&d(e.color),i=d(e)&&d(e.show);this._color=n?e.color.evaluateColor(void 0,this._color):z.clone(z.WHITE,this._color),this._show=i?e.show.evaluate(void 0):!0,Z8(t,this._color)&&this.resetDrawCommands()};zi.prototype.applyStyle=function(e){let t=this.type===xr.TILE_PNTS,n=d(this.featureTableId)&&this.featureTables[this.featureTableId].featuresLength>0,i=d(this.structuralMetadata)?this.structuralMetadata.propertyAttributes:void 0,o=d(i)&&d(i[0]);if(t&&(!n||o)){this.resetDrawCommands();return}n?(this.featureTables[this.featureTableId].applyStyle(e),X0e(this,e)):(this.applyColorAndShow(e),this._styleCommandsNeeded=void 0)};function t0(e,t,n){return{loader:e,type:t,resource:n.resource,show:n.show,modelMatrix:n.modelMatrix,scale:n.scale,enableVerticalExaggeration:n.enableVerticalExaggeration,minimumPixelSize:n.minimumPixelSize,maximumScale:n.maximumScale,id:n.id,allowPicking:n.allowPicking,clampAnimations:n.clampAnimations,shadows:n.shadows,debugShowBoundingVolume:n.debugShowBoundingVolume,enableDebugWireframe:n.enableDebugWireframe,debugWireframe:n.debugWireframe,cull:n.cull,opaquePass:n.opaquePass,customShader:n.customShader,content:n.content,heightReference:n.heightReference,scene:n.scene,distanceDisplayCondition:n.distanceDisplayCondition,color:n.color,colorBlendAmount:n.colorBlendAmount,colorBlendMode:n.colorBlendMode,silhouetteColor:n.silhouetteColor,silhouetteSize:n.silhouetteSize,enableShowOutline:n.enableShowOutline,showOutline:n.showOutline,outlineColor:n.outlineColor,clippingPlanes:n.clippingPlanes,clippingPolygons:n.clippingPolygons,lightColor:n.lightColor,imageBasedLighting:n.imageBasedLighting,backFaceCulling:n.backFaceCulling,credit:n.credit,showCreditsOnScreen:n.showCreditsOnScreen,splitDirection:n.splitDirection,projectTo2D:n.projectTo2D,enablePick:n.enablePick,featureIdLabel:n.featureIdLabel,instanceFeatureIdLabel:n.instanceFeatureIdLabel,pointCloudShading:n.pointCloudShading,classificationType:n.classificationType,pickObject:n.pickObject,fillClip:n.fillClip,clippingFillImage:n.clippingFillImage}}var Ya=zi;function mr(e,t,n){this._tileset=e,this._tile=t,this._resource=n,this._model=void 0,this._metadata=void 0,this._group=void 0,this._ready=!1}Object.defineProperties(mr.prototype,{featuresLength:{get:function(){let e=this._model,t=e.featureTables,n=e.featureTableId;return d(t)&&d(t[n])?t[n].featuresLength:0}},pointsLength:{get:function(){return this._model.statistics.pointsLength}},trianglesLength:{get:function(){return this._model.statistics.trianglesLength}},geometryByteLength:{get:function(){return this._model.statistics.geometryByteLength}},texturesByteLength:{get:function(){return this._model.statistics.texturesByteLength}},batchTableByteLength:{get:function(){let e=this._model.statistics;return e.propertyTablesByteLength+e.batchTexturesByteLength}},innerContents:{get:function(){}},ready:{get:function(){return this._ready}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){let e=this._model,t=e.featureTables,n=e.featureTableId;if(d(t)&&d(t[n]))return t[n]}},metadata:{get:function(){return this._metadata},set:function(e){this._metadata=e}},group:{get:function(){return this._group},set:function(e){this._group=e}}});mr.prototype.getExtension=function(e){return this._model.getExtension(e)};mr.prototype.getFeature=function(e){let t=this._model,n=t.featureTableId;return t.featureTables[n].getFeature(e)};mr.prototype.hasProperty=function(e,t){let n=this._model,i=n.featureTableId;return d(i)?n.featureTables[i].hasProperty(e,t):!1};mr.prototype.applyDebugSettings=function(e,t){t=e?t:z.WHITE,this.featuresLength===0?this._model.color=t:d(this.batchTable)&&this.batchTable.setAllColor(t)};mr.prototype.applyStyle=function(e){this._model.style=e};mr.prototype.update=function(e,t){let n=this._model,i=this._tile;if(n.colorBlendAmount=e.colorBlendAmount,n.colorBlendMode=e.colorBlendMode,n.modelMatrix=i.computedTransform,n.customShader=e.customShader,n.featureIdLabel=e.featureIdLabel,n.instanceFeatureIdLabel=e.instanceFeatureIdLabel,n.lightColor=e.lightColor,n.imageBasedLighting=e.imageBasedLighting,n.backFaceCulling=e.backFaceCulling,n.shadows=e.shadows,n.showCreditsOnScreen=e.showCreditsOnScreen,n.splitDirection=e.splitDirection,n.debugWireframe=e.debugWireframe,n.rollerShutterRegion=new re(0,0,0,0),n.rollerShutterSpyglassRegion=void 0,n.rollerShutterPolygonRegion=void 0,(n.swiper.type!==t.swiper.type||n.swiper.swipeEnabled!==e.swipeEnabled)&&(n._shouldRegenerateShaders=!0),n.swiper=Ue(t.swiper),n.swiper.swipeEnabled=e.swipeEnabled,e.swipeEnabled){let s=t.swiper.type;s===Kn.HORIZONTAL||s===Kn.VERTICAL||s===Kn.RECTANGLE?n.rollerShutterRegion=t.context.uniformState._swipeRegion:s===Kn.SPYGLASS?n.rollerShutterSpyglassRegion=t.context.uniformState._swipeRegion:s===Kn.POLYGON&&(n.rollerShutterPolygonRegion=t.context.uniformState._swipeRegion),n.swipeInverse=e.swipeInverse===0?t.swiper.inverse:e.swipeInverse}n.showOutline=e.showOutline,n.outlineColor=e.outlineColor,n.pointCloudShading=e.pointCloudShading,n.textureCoordScale=e.textureCoordScale,n.clippingGeometries=e._clippingGeometries;let o=e.clippingPlanes;n.referenceMatrix=e.clippingPlanesOriginMatrix,d(o)&&i.clippingPlanesDirty&&(n._clippingPlanes=o.enabled&&i._isClipped?o:void 0,o.enabled&&i._isClipped&&(n._clippingPlanesState=0)),d(o)&&d(n._clippingPlanes)&&n._clippingPlanes!==o&&(n._clippingPlanes=o,n._clippingPlanesState=0);let r=e.clippingPolygons;if(d(r)&&i.clippingPolygonsDirty&&(n._clippingPolygons=r.enabled&&i._isClippedByPolygon?r:void 0),d(r)&&d(n._clippingPolygons)&&n._clippingPolygons!==r&&(n._clippingPolygons=r,n._clippingPolygonsState=0),n.enableExplosion=e.enableExplosion,n.enableCuttingFilter=e.enableCuttingFilter,n.enableExplosion||n.enableCuttingFilter){n.explosionIdTexture=e._explosionIdTexture,n.explosionDirectionTexture=e._explosionDirectionTexture,d(e._explosionTextureData)&&Array.isArray(e._explosionTextureData)?n.explosionTextureDataLength=e._explosionTextureData.length:n.explosionTextureDataLength=0;let s=0;if(e._version==="2.0"){let a=n.content.batchTable?._propertyTable._jsonMetadataTable._batchTableJson.OID;d(a)&&(s=a.length)}else if(e._version==="2.1"||e._version==="2.2"){let a=n.content.batchTable?._propertyTable._jsonMetadataTable._batchTableJson.tid;if(d(a)&&(s=a.tids.length,!d(n.explosionIdTableTexture))){let c=a.tids.map(u=>[u,0,0]),l=Float32Array.from(c.flat());n.explosionIdTableTexture=new it({context:t.context,source:{arrayBufferView:l,width:l.length/3,height:1},pixelFormat:Ye.RGB,pixelDatatype:ke.FLOAT})}}n.explosionIdCount=s}n.deleteVerticalPlane=e._deleteVerticalPlane,n.isFlatten=e._isFlatten,n.flattenHeight=e._flattenHeight,n.positionArray=e._positionArray,n.arrayLength=e._positionArray?.length,d(e._brightness)&&(n._brightness=e._brightness),d(e._exposure)&&(n._exposure=e._exposure),d(e._contrast)&&(n._contrast=e._contrast),d(e._hue)&&(n._hue=e._hue),d(e._saturation)&&(n._saturation=e._saturation),d(e._gamma)&&(n._gamma=e._gamma),n.update(t),!this._ready&&n.ready&&(n.activeAnimations.addAll({loop:Bd.REPEAT}),this._ready=!0)};mr.prototype.isDestroyed=function(){return!1};mr.prototype.destroy=function(){return this._model=this._model&&this._model.destroy(),fe(this)};mr.fromGltf=async function(e,t,n,i){let o=new mr(e,t,n),s=n0(e,t,o,{gltf:i,basePath:n}),a=e.vectorClassificationOnly?void 0:e.classificationType;s.classificationType=a,s.generateUniqueId=e._generateUniqueId;let c=await Ya.fromGltfAsync(s);return o._model=c,o};mr.fromM3DData=async function(e,t,n,i,o){let r=new mr(e,t,n),a=n0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n}),c=e.vectorClassificationOnly?void 0:e.classificationType;a.classificationType=c,a.tilesetVersion=e._version,a.tile=t,a.fillClip=e._fillClip,a.hasSectionGeometry=e._hasSectionGeometry,a.clippingFillImage=e._clippingFillImage,a.clippingGeometries=e._clippingGeometries;let l=await Ya.fromM3DData(a);return r._model=l,r};mr.fromM3DGltf=async function(e,t,n,i,o,r){let s=new mr(e,t,n),c=n0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n}),l=e.vectorClassificationOnly?void 0:e.classificationType;c.classificationType=l,c.attBatchTable=r,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let u=await Ya.fromM3DGltf(c);return s._model=u,s};mr.fromM3DB3dm=async function(e,t,n,i,o,r){let s=new mr(e,t,n),c=n0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n}),l=e.vectorClassificationOnly?void 0:e.classificationType;c.classificationType=l,c.attBatchTable=r,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let u=await Ya.fromM3DB3dm(c);return s._model=u,s};mr.fromM3DI3dm=async function(e,t,n,i,o,r){let s=new mr(e,t,n),c=n0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n});c.attBatchTable=r,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let l=await Ya.fromM3DI3dm(c);return s._model=l,s};mr.fromM3DPnts=async function(e,t,n,i,o,r){let s=new mr(e,t,n),c=n0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n});c.attBatchTable=r,c.tilesetVersion=e._version,c.tileset=e,c.tile=t,c.resource=s._resource;let l=await Ya.fromM3DPnts(c);return s._model=l,s};mr.fromB3dm=async function(e,t,n,i,o){let r=new mr(e,t,n),a=n0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n}),c=e.vectorClassificationOnly?void 0:e.classificationType;a.classificationType=c,a.generateUniqueId=e._generateUniqueId;let l=await Ya.fromB3dm(a);return r._model=l,r};mr.fromI3dm=async function(e,t,n,i,o){let r=new mr(e,t,n),a=n0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n});a.generateUniqueId=e._generateUniqueId;let c=await Ya.fromI3dm(a);return r._model=c,r};mr.fromPnts=async function(e,t,n,i,o){let r=new mr(e,t,n),a=n0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n});a.generateUniqueId=e._generateUniqueId;let c=await Ya.fromPnts(a);return r._model=c,r};mr.fromGeoJson=async function(e,t,n,i){let o=new mr(e,t,n),s=n0(e,t,o,{geoJson:i,resource:n}),a=await Ya.fromGeoJson(s);return o._model=a,o};mr.prototype.pick=function(e,t,n){if(!d(this._model)||!this._ready)return;let i=t.verticalExaggeration,o=t.verticalExaggerationRelativeHeight;return this._model.pick(e,t,i,o,oe.WGS84,n)};function n0(e,t,n,i){let o={cull:!1,releaseGltfJson:!0,opaquePass:Ze.CESIUM_3D_TILE,modelMatrix:t.computedTransform,upAxis:e._modelUpAxis,forwardAxis:e._modelForwardAxis,incrementallyLoadTextures:!1,customShader:e.customShader,content:n,colorBlendMode:e.colorBlendMode,colorBlendAmount:e.colorBlendAmount,lightColor:e.lightColor,imageBasedLighting:e.imageBasedLighting,featureIdLabel:e.featureIdLabel,instanceFeatureIdLabel:e.instanceFeatureIdLabel,pointCloudShading:e.pointCloudShading,clippingPlanes:e.clippingPlanes,backFaceCulling:e.backFaceCulling,shadows:e.shadows,showCreditsOnScreen:e.showCreditsOnScreen,splitDirection:e.splitDirection,enableDebugWireframe:e._enableDebugWireframe,debugWireframe:e.debugWireframe,projectTo2D:e._projectTo2D,enablePick:e._enablePick,enableShowOutline:e._enableShowOutline,showOutline:e.showOutline,outlineColor:e.outlineColor};return xt(i,o)}var Sl=mr;var W0e={M3DData:function(e,t,n,i,o){return Sl.fromM3DData(e,t,n,i,o)},M3DGltf:function(e,t,n,i,o,r){return Sl.fromM3DGltf(e,t,n,i,o,r)},M3DCmpt:function(e,t,n,i,o,r){return dp.fromM3DTileType(e,t,n,i,o,W0e,r)},M3DB3dm:function(e,t,n,i,o,r){return Sl.fromM3DB3dm(e,t,n,i,o,r)},M3DI3dm:function(e,t,n,i,o,r){return Sl.fromM3DI3dm(e,t,n,i,o,r)},M3DPnts:function(e,t,n,i,o,r){return Sl.fromM3DPnts(e,t,n,i,o,r)}},Ax=W0e;var n6n=S(C(),1);var J7n=S(C(),1),P0e={JSON:`{
|
|
9612
|
+
`}gi.prototype.destroy=function(){this._clipFillCommandMap.clear()};function m7e(e,t){return gi._clipFillDiffuseUrl!==e&&(gi._clipFillDiffuseUrl=e,gi._clipFillDiffuseImage=new Image,gi._clipFillDiffuseImage.crossOrigin="anonymous",gi._clipFillDiffuseImage.onload=function(n){gi._clipFillDiffuseTexture=new it({context:t,width:gi._clipFillDiffuseImage.width,height:gi._clipFillDiffuseImage.height,pixelFormat:Ye.RGBA,pixelDatatype:ke.UNSIGNED_BYTE,source:gi._clipFillDiffuseImage})},gi._clipFillDiffuseImage.src=e,gi._clipFillDiffuseTexture=new it({context:t,width:1,height:1,pixelFormat:Ye.RGBA,pixelDatatype:ke.UNSIGNED_BYTE,source:{arrayBufferView:new Uint8Array([200,200,200,255])}})),function(){return gi._clipFillDiffuseTexture}}var FP=gi;var AHn=S(C(),1);function h7e(e,t){let n={},i=e.primitive?.attributes,o;for(let s=0;s<i.length;s++)i[s].name==="TEXCOORD_0"&&(o={vertexCoordDisAC:1,texCoordDisAC:1});let r=t.content?.tileset._version;if(r==="2.0"){let s;for(let l=0;l<i.length;l++)i[l].name==="_OID"&&(s=i[l].typedArray);let a=new Uint32Array(s.length/4);a.fill(s[0]);let c={};for(let l=0;l<a.length;l++){let u=p7e(a[l]),m=new z(u[3]/255,u[2]/255,u[1]/255,u[0]/255);c[a[l]]={pickID:m,textureParam:o}}n=c}else if(r==="2.1"||r==="2.2"){let s;for(let c=0;c<i.length;c++)i[c].name==="_BATCHID"&&(s=i[c].typedArray);let a={};for(let c=0;c<s.length;c++)a[s[c]]={textureParam:o};n=a}return n}function p7e(e){let t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e),new Uint8Array(t)}var AP=h7e;function vu(e){e=g(e,g.EMPTY_OBJECT);let t=e.modelComponents;this._model=e.model,this._components=t,this._pipelineStages=[],this._updateStages=[],this._runtimeNodes=[],this._rootNodes=[],this._skinnedNodes=[],this._runtimeSkins=[],this.modelPipelineStages=[],this._boundingSphere=void 0,this._boundingSphere2D=void 0,this._computedModelMatrix=P.clone(P.IDENTITY),this._computedModelMatrix2D=P.clone(P.IDENTITY),this._axisCorrectionMatrix=fn.getAxisCorrectionMatrix(t.upAxis,t.forwardAxis,new P),this._runtimeArticulations={},f7e(this)}Object.defineProperties(vu.prototype,{components:{get:function(){return this._components}},computedModelMatrix:{get:function(){return this._computedModelMatrix}},axisCorrectionMatrix:{get:function(){return this._axisCorrectionMatrix}},boundingSphere:{get:function(){return this._boundingSphere}}});function f7e(e){let t=e._components,n=t.scene,o=e._model.modelMatrix;u0e(e,o);let r=t.articulations,s=r.length,a=e._runtimeArticulations;for(let L=0;L<s;L++){let V=r[L],Z=new oW({articulation:V,sceneGraph:e}),G=Z.name;a[G]=Z}let c=t.nodes,l=c.length;e._runtimeNodes=new Array(l);let m=n.nodes.length,f=P.IDENTITY;for(let L=0;L<m;L++){let V=n.nodes[L],Z=m0e(e,V,f);e._rootNodes.push(Z)}let b=t.skins,p=e._runtimeSkins,x=b.length;for(let L=0;L<x;L++){let V=b[L];p.push(new yP({skin:V,sceneGraph:e}))}let T=e._skinnedNodes,_=T.length;for(let L=0;L<_;L++){let V=T[L],Z=e._runtimeNodes[V],I=c[V].skin.index;Z._runtimeSkin=p[I],Z.updateJointMatrices()}e.applyArticulations()}function u0e(e,t){let n=e._components,i=e._model;e._computedModelMatrix=P.multiplyTransformation(t,n.transform,e._computedModelMatrix),e._computedModelMatrix=P.multiplyTransformation(e._computedModelMatrix,e._axisCorrectionMatrix,e._computedModelMatrix),e._computedModelMatrix=P.multiplyByUniformScale(e._computedModelMatrix,i.computedScale,e._computedModelMatrix)}var b7e=new h;function y7e(e,t){let n=e._computedModelMatrix,i=P.getTranslation(n,b7e);if(!h.equals(i,h.ZERO))e._computedModelMatrix2D=Zt.basisTo2D(t.mapProjection,n,e._computedModelMatrix2D);else{let o=e.boundingSphere.center,r=Zt.ellipsoidTo2DModelMatrix(t.mapProjection,o,e._computedModelMatrix2D);e._computedModelMatrix2D=P.multiply(r,n,e._computedModelMatrix2D)}e._boundingSphere2D=de.transform(e._boundingSphere,e._computedModelMatrix2D,e._boundingSphere2D)}function m0e(e,t,n){let i=[],o=fn.getNodeTransform(t),r=t.children.length;for(let u=0;u<r;u++){let m=t.children[u],f=P.multiplyTransformation(n,o,new P),b=m0e(e,m,f);i.push(b)}let s=new _W({node:t,transform:o,transformToRoot:n,children:i,sceneGraph:e}),a=t.primitives.length;for(let u=0;u<a;u++)s.runtimePrimitives.push(new bP({primitive:t.primitives[u],node:t,model:e._model}));let c=t.index;e._runtimeNodes[c]=s,d(t.skin)&&e._skinnedNodes.push(c);let l=t.name;if(d(l)){let u=e._model,m=new hW(u,s);u._nodesByName[l]=m}return c}var g7e=new h,x7e=new h,T7e=new h,_7e=new h;vu.prototype.buildDrawCommands=function(e){let t=this._model,n=new _P(t);t.statistics.clear(),this.configurePipeline(e);let i=this.modelPipelineStages,o,r,s;for(o=0;o<i.length;o++)i[o].process(n,t,e);let a=h.fromElements(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,g7e),c=h.fromElements(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE,x7e),l=[];for(o=0;o<this._runtimeNodes.length;o++){let u=this._runtimeNodes[o];if(!d(u))continue;u.configurePipeline();let m=u.pipelineStages,f=new RP(n,u);for(r=0;r<m.length;r++)m[r].process(f,u.node,e);let b=u.computedTransform;for(r=0;r<u.runtimePrimitives.length;r++){let p=u.runtimePrimitives[r];p.configurePipeline(e);let x=p.pipelineStages,T=new EP(f,p);for(s=0;s<x.length;s++)x[s].process(T,p.primitive,e);p.boundingSphere=de.clone(T.boundingSphere,new de);let _=P.multiplyByPoint(b,T.positionMin,T7e),L=P.multiplyByPoint(b,T.positionMax,_7e);h.minimumByComponent(a,_,a),h.maximumByComponent(c,L,c);let V=PP.buildModelDrawCommand(T,e);p.drawCommand=V,d(t._clipFillUtil)&&t._clipFillUtil.destroy(),t._fillClip&&(d(t._clipFillUtil)||(t._clipFillUtil=new FP({model:t})),t._clipFillUtil.parsePrimitiveInfo(p,V,!1)),t._hasSectionGeometry&&(V.primitiveInfo=AP(p,t)),l.push(V)}}t._nodeCommands=l,this._boundingSphere=de.fromCornerPoints(a,c,new de),this._boundingSphere=de.transformWithoutScale(this._boundingSphere,this._axisCorrectionMatrix,this._boundingSphere),this._boundingSphere=de.transform(this._boundingSphere,this._components.transform,this._boundingSphere),t._boundingSphere=de.transform(this._boundingSphere,t.modelMatrix,t._boundingSphere),t._initialRadius=t._boundingSphere.radius,t._boundingSphere.radius*=t._clampedScale};vu.prototype.configurePipeline=function(e){let t=this.modelPipelineStages;t.length=0;let n=this._model,i=e.fog.enabled&&e.fog.renderable;d(n.color)&&t.push(Gx),!d(n.classificationType)&&(n.imageBasedLighting.enabled&&t.push(nW),n.isClippingEnabled()&&t.push(aW),n.isGeometryClipEnabled()&&t.push(lW),n.isClippingPolygonsEnabled()&&t.push(mW),n.hasSilhouette(e)&&t.push(LP),d(n.splitDirection)&&n.splitDirection!==ss.NONE&&t.push(ZP),d(n.swiper)&&n.swiper.swipeEnabled===!0&&t.push(NP),xr.is3DTiles(n.type)&&t.push(jw),i&&t.push(eW))};vu.prototype.update=function(e,t){let n,i,o;for(n=0;n<this._runtimeNodes.length;n++){let r=this._runtimeNodes[n];if(!d(r))continue;for(i=0;i<r.updateStages.length;i++)r.updateStages[i].update(r,this,e);let s=e.mode!==ae.SCENE3D&&this._model._projectTo2D;for(t&&!s&&this.updateJointMatrices(),i=0;i<r.runtimePrimitives.length;i++){let a=r.runtimePrimitives[i];for(o=0;o<a.updateStages.length;o++)a.updateStages[o].update(a,this)}}};vu.prototype.updateModelMatrix=function(e,t){u0e(this,e),t.mode!==ae.SCENE3D&&y7e(this,t);let n=this._rootNodes;for(let i=0;i<n.length;i++){let o=this._runtimeNodes[n[i]];o._transformDirty=!0}};vu.prototype.updateJointMatrices=function(){let e=this._skinnedNodes,t=e.length;for(let n=0;n<t;n++){let i=e[n];this._runtimeNodes[i].updateJointMatrices()}};function h0e(e,t,n,i,o){if(n&&!t.show)return;let r=t.children.length;for(let c=0;c<r;c++){let l=t.getChild(c);h0e(e,l,n,i,o)}let s=t.runtimePrimitives,a=s.length;for(let c=0;c<a;c++){let l=s[c];i(l,o)}}function kz(e,t,n,i){let o=e._rootNodes,r=o.length;for(let s=0;s<r;s++){let a=o[s],c=e._runtimeNodes[a];h0e(e,c,t,n,i)}}var S7e={backFaceCulling:void 0};vu.prototype.updateBackFaceCulling=function(e){let t=S7e;t.backFaceCulling=e,kz(this,!1,C7e,t)};function C7e(e,t){let n=e.drawCommand;n.backFaceCulling=t.backFaceCulling}var L7e={shadowMode:void 0};vu.prototype.updateShadows=function(e){let t=L7e;t.shadowMode=e,kz(this,!1,V7e,t)};function V7e(e,t){let n=e.drawCommand;n.shadows=t.shadowMode}var Z7e={debugShowBoundingVolume:void 0};vu.prototype.updateShowBoundingVolume=function(e){let t=Z7e;t.debugShowBoundingVolume=e,kz(this,!1,R7e,t)};function R7e(e,t){let n=e.drawCommand;n.debugShowBoundingVolume=t.debugShowBoundingVolume}var p0e=[],G7e={frameState:void 0,hasSilhouette:void 0};vu.prototype.pushDrawCommands=function(e){let t=p0e;t.length=0;let n=G7e;n.hasSilhouette=this._model.hasSilhouette(e),n.frameState=e,kz(this,!0,E7e,n),e.commandList.push.apply(e.commandList,t)};function E7e(e,t){let n=t.frameState,i=t.hasSilhouette,o=n.passes,r=p0e,s=e.drawCommand;s.pushCommands(n,n.commandList),i&&!o.pick&&s.pushSilhouetteCommands(n,r)}vu.prototype.setArticulationStage=function(e,t){let n=e.split(" ");if(n.length!==2)return;let i=n[0],o=n[1],r=this._runtimeArticulations[i];d(r)&&r.setArticulationStage(o,t)};vu.prototype.applyArticulations=function(){let e=this._runtimeArticulations;for(let t in e)e.hasOwnProperty(t)&&e[t].apply()};var DP=vu;var _4n=S(C(),1);function $V(){this.pointsLength=0,this.trianglesLength=0,this.geometryByteLength=0,this.texturesByteLength=0,this.propertyTablesByteLength=0,this._bufferIdSet={},this._textureIdSet={},this._batchTextureIdMap=new kt}Object.defineProperties($V.prototype,{batchTexturesByteLength:{get:function(){let e=this._batchTextureIdMap.length,t=this._batchTextureIdMap.values,n=0;for(let i=0;i<e;i++)n+=t[i].byteLength;return n}}});$V.prototype.clear=function(){this.pointsLength=0,this.trianglesLength=0,this.geometryByteLength=0,this.texturesByteLength=0,this.propertyTablesByteLength=0,this._bufferIdSet={},this._textureIdSet={},this._batchTextureIdMap.removeAll()};$V.prototype.addBuffer=function(e,t){if(!this._bufferIdSet.hasOwnProperty(e._id)){let n=t?2:1;this.geometryByteLength+=e.sizeInBytes*n}this._bufferIdSet[e._id]=!0};$V.prototype.addTexture=function(e){this._textureIdSet.hasOwnProperty(e._id)||(this.texturesByteLength+=e.sizeInBytes),this._textureIdSet[e._id]=!0};$V.prototype.addBatchTexture=function(e){this._batchTextureIdMap.contains(e._id)||this._batchTextureIdMap.set(e._id,e)};var UP=$V;var oJn=S(C(),1);var g0e=S(JG(),1);var W4n=S(C(),1);var f0e={},Y1=Uint32Array.BYTES_PER_ELEMENT;f0e.parse=function(e,t){t=g(t,0);let n=new Uint8Array(e),i=new DataView(e);t+=Y1;let o=i.getUint32(t,!0);if(o!==1)throw new le(`Only Point Cloud tile version 1 is supported. Version ${o} is not.`);t+=Y1,t+=Y1;let r=i.getUint32(t,!0);if(r===0)throw new le("Feature table must have a byte length greater than zero");t+=Y1;let s=i.getUint32(t,!0);t+=Y1;let a=i.getUint32(t,!0);t+=Y1;let c=i.getUint32(t,!0);t+=Y1;let l=ho(n,t,r);t+=r;let u=new Uint8Array(e,t,s);t+=s;let m,f;a>0&&(m=ho(n,t,a),t+=a,c>0&&(f=new Uint8Array(e,t,c),t+=c));let b=new ma(l,u),p=b.getGlobalProperty("POINTS_LENGTH");if(b.featuresLength=p,!d(p))throw new le("Feature table global property: POINTS_LENGTH must be defined");let x=b.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(x)&&(x=h.unpack(x));let T=I7e(b,m);if(T.rtcCenter=x,T.pointsLength=p,!T.hasPositions){let _=X7e(b);T.positions=_,T.hasPositions=T.hasPositions||d(_)}if(!T.hasPositions)throw new le("Either POSITION or POSITION_QUANTIZED must be defined.");if(!T.hasNormals){let _=w7e(b);T.normals=_,T.hasNormals=T.hasNormals||d(_)}if(!T.hasColors){let _=M7e(b);T.colors=_,T.hasColors=T.hasColors||d(_),T.hasConstantColor=d(T.constantColor),T.isTranslucent=d(_)&&_.isTranslucent}if(!T.hasBatchIds){let _=W7e(b);T.batchIds=_,T.hasBatchIds=T.hasBatchIds||d(_)}if(T.hasBatchIds){let _=b.getGlobalProperty("BATCH_LENGTH");if(!d(_))throw new le("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");T.batchLength=_}return d(f)&&(f=new Uint8Array(f),T.batchTableJson=m,T.batchTableBinary=f),T};function I7e(e,t){let n=e.json,i,o,r,s=d(n.extensions)?n.extensions["3DTILES_draco_point_compression"]:void 0,a=d(t)&&d(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;d(a)&&(r=a.properties);let c,l,u,m,f;if(d(s)){o=s.properties;let p=s.byteOffset,x=s.byteLength;if(!d(o)||!d(p)||!d(x))throw new le("Draco properties, byteOffset, and byteLength must be defined");i=e.buffer.slice(p,p+x),c=d(o.POSITION),l=d(o.RGB)||d(o.RGBA),u=d(o.NORMAL),m=d(o.BATCH_ID),f=d(o.RGBA)}let b;return d(i)&&(b={buffer:i,featureTableProperties:o,batchTableProperties:r,properties:xt(o,r),dequantizeInShader:!0}),{draco:b,hasPositions:c,hasColors:l,isTranslucent:f,hasNormals:u,hasBatchIds:m}}function X7e(e){let t=e.json,n;if(d(t.POSITION))return n=e.getPropertyArray("POSITION",H.FLOAT,3),{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!1,componentDatatype:H.FLOAT,type:Yt.VEC3};if(d(t.POSITION_QUANTIZED)){n=e.getPropertyArray("POSITION_QUANTIZED",H.UNSIGNED_SHORT,3);let i=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",H.FLOAT,3);if(!d(i))throw new le("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let o=65535,r=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",H.FLOAT,3);if(!d(r))throw new le("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!0,componentDatatype:H.FLOAT,type:Yt.VEC3,quantizedRange:o,quantizedVolumeOffset:h.unpack(r),quantizedVolumeScale:h.unpack(i),quantizedComponentDatatype:H.UNSIGNED_SHORT,quantizedType:Yt.VEC3}}}function M7e(e){let t=e.json,n;if(d(t.RGBA))return n=e.getPropertyArray("RGBA",H.UNSIGNED_BYTE,4),{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if(d(t.RGB))return n=e.getPropertyArray("RGB",H.UNSIGNED_BYTE,3),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if(d(t.RGB565))return n=e.getPropertyArray("RGB565",H.UNSIGNED_SHORT,1),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.FLOAT,type:Yt.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if(d(t.CONSTANT_RGBA)){let i=e.getGlobalProperty("CONSTANT_RGBA",H.UNSIGNED_BYTE,4),o=i[3],r=z.fromBytes(i[0],i[1],i[2],o),s=o<255;return{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:r,componentDatatype:H.FLOAT,type:Yt.VEC4,isQuantized:!1,isTranslucent:s}}}function w7e(e){let t=e.json,n;if(d(t.NORMAL))return n=e.getPropertyArray("NORMAL",H.FLOAT,3),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!1,octEncodedZXY:!1,componentDatatype:H.FLOAT,type:Yt.VEC3};if(d(t.NORMAL_OCT16P))return n=e.getPropertyArray("NORMAL_OCT16P",H.UNSIGNED_BYTE,2),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<8)-1,quantizedType:Yt.VEC2,quantizedComponentDatatype:H.UNSIGNED_BYTE,componentDatatype:H.FLOAT,type:Yt.VEC3}}function W7e(e){let t=e.json;if(d(t.BATCH_ID)){let n=e.getPropertyArray("BATCH_ID",H.UNSIGNED_SHORT,1);return{name:ut.FEATURE_ID,semantic:ut.FEATURE_ID,setIndex:0,typedArray:n,componentDatatype:H.fromTypedArray(n),type:Yt.SCALAR}}}var B1=f0e;var P7e=hn.Components,v7e=hn.Scene,N7e=hn.Node,F7e=hn.Primitive,A7e=hn.Attribute,b0e=hn.Quantization,D7e=hn.FeatureIdAttribute,U7e=hn.Material,k7e=hn.MetallicRoughness;function Mx(e){e=g(e,g.EMPTY_OBJECT);let t=e.arrayBuffer,n=g(e.byteOffset,0);this._arrayBuffer=t,this._byteOffset=n,this._loadAttributesFor2D=g(e.loadAttributesFor2D,!1),this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=void 0,this._error=void 0,this._state=Xt.UNLOADED,this._buffers=[],this._components=void 0,this._transform=P.IDENTITY,this._generateUniqueId=e.generateUniqueId}d(Object.create)&&(Mx.prototype=Object.create(vi.prototype),Mx.prototype.constructor=Mx);Object.defineProperties(Mx.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}});Mx.prototype.load=function(){if(d(this._promise))return this._promise;this._parsedContent=B1.parse(this._arrayBuffer,this._byteOffset),this._state=Xt.PROCESSING,this._promise=Promise.resolve(this)};Mx.prototype.process=function(e){if(d(this._error)){let t=this._error;throw this._error=void 0,t}if(this._state===Xt.READY)return!0;if(this._state===Xt.PROCESSING){if(d(this._decodePromise))return!1;this._decodePromise=z7e(this,e.context)}return!1};function z7e(e,t){let i=e._parsedContent.draco,o;if(d(i)?o=fp.decodePointCloud(i,t):o=Promise.resolve(),!!d(o))return e._decodePromise=o,o.then(function(r){if(!e.isDestroyed())return d(r)&&Y7e(e,i,r),t6e(e,t),e._state=Xt.READY,e}).catch(function(r){e.unload(),e._state=Xt.FAILED;let s="Failed to load Draco pnts";e._error=e.getError(s,r)})}function Y7e(e,t,n){e._state=Xt.READY;let i=e._parsedContent,o;if(d(n.POSITION)){if(o={name:"POSITION",semantic:ut.POSITION,typedArray:n.POSITION.array,componentDatatype:H.FLOAT,type:Yt.VEC3,isQuantized:!1},d(n.POSITION.data.quantization)){let a=n.POSITION.data.quantization,c=a.range,l=h.fromElements(c,c,c),u=h.unpack(a.minValues),m=(1<<a.quantizationBits)-1;o.isQuantized=!0,o.quantizedRange=m,o.quantizedVolumeOffset=u,o.quantizedVolumeScale=l,o.quantizedComponentDatatype=m<=255?H.UNSIGNED_BYTE:H.UNSIGNED_SHORT,o.quantizedType=Yt.VEC3}i.positions=o}if(d(n.NORMAL)){if(o={name:"NORMAL",semantic:ut.NORMAL,typedArray:n.NORMAL.array,componentDatatype:H.FLOAT,type:Yt.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},d(n.NORMAL.data.quantization)){let a=(1<<n.NORMAL.data.quantization.quantizationBits)-1;o.quantizedRange=a,o.octEncoded=!0,o.octEncodedZXY=!0,o.quantizedComponentDatatype=H.UNSIGNED_BYTE,o.quantizedType=Yt.VEC2}i.normals=o}if(d(n.RGBA)?i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGBA.array,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC4,normalized:!0,isTranslucent:!0}:d(n.RGB)&&(i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGB.array,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC3,normalized:!0,isTranslucent:!1}),d(n.BATCH_ID)){let a=n.BATCH_ID.array;i.batchIds={name:"_FEATURE_ID",semantic:ut.FEATURE_ID,setIndex:0,typedArray:a,componentDatatype:H.fromTypedArray(a),type:Yt.SCALAR}}let r=i.batchTableJson,s=t.batchTableProperties;for(let a in s)if(s.hasOwnProperty(a)){let c=n[a];d(r)||(r={}),i.hasDracoBatchTable=!0;let l=c.data;r[a]={byteOffset:l.byteOffset,type:B7e(l.componentsPerAttribute),componentType:O7e(l.componentDatatype),typedArray:c.array}}i.batchTableJson=r}function B7e(e){switch(e){case 1:return"SCALAR";case 2:return"VEC2";case 3:return"VEC3";case 4:return"VEC4"}}function O7e(e){switch(e){case te.BYTE:return"BYTE";case te.UNSIGNED_BYTE:return"UNSIGNED_BYTE";case te.SHORT:return"SHORT";case te.UNSIGNED_SHORT:return"UNSIGNED_SHORT";case te.INT:return"INT";case te.UNSIGNED_INT:return"UNSIGNED_INT";case te.DOUBLE:return"DOUBLE";case te.FLOAT:return"FLOAT"}}function kP(e,t,n){let i=t.typedArray,o;if(t.octEncoded&&(o=new b0e,o.octEncoded=t.octEncoded,o.octEncodedZXY=t.octEncodedZXY,o.normalizationRange=t.quantizedRange,o.type=t.quantizedType,o.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){o=new b0e;let a=t.quantizedRange;o.normalizationRange=a,o.quantizedVolumeOffset=h.ZERO;let c=t.quantizedVolumeScale;o.quantizedVolumeDimensions=c,o.quantizedVolumeStepSize=h.divideByScalar(c,a,new h),o.componentDatatype=t.quantizedComponentDatatype,o.type=t.quantizedType}let r=new A7e;if(r.name=t.name,r.semantic=t.semantic,r.setIndex=t.setIndex,r.componentDatatype=t.componentDatatype,r.type=t.type,r.normalized=g(t.normalized,!1),r.min=t.min,r.max=t.max,r.quantization=o,t.isRGB565&&(i=xn.decodeRGB565(i)),d(t.constantColor)){let a=new Array(4);r.constant=z.pack(t.constantColor,a)}else{let a=nt.createVertexBuffer({typedArray:i,context:n,usage:Me.STATIC_DRAW});a.vertexArrayDestroyable=!1,e._buffers.push(a),r.buffer=a}let s=e._loadAttributesFor2D;return r.semantic===ut.POSITION&&s&&(r.typedArray=i),r}var y0e,zz;function K7e(e){if(!d(zz)){y0e=new g0e.default(0),zz=new Array(e);for(let t=0;t<e;++t)zz[t]=y0e.random()}return zz}var H7e=new h,J7e=new h,Q7e=new h;function j7e(e){let t=e.typedArray,n=20,i=t.length/3,o=Math.min(i,n),r=K7e(n),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=h.fromElements(s,s,s,H7e),l=h.fromElements(a,a,a,J7e),u,m,f;if(e.isQuantized)c=h.ZERO,l=e.quantizedVolumeScale;else for(u=0;u<o;++u)m=Math.floor(r[u]*i),f=h.unpack(t,m*3,Q7e),h.minimumByComponent(c,f,c),h.maximumByComponent(l,f,l);e.min=h.clone(c),e.max=h.clone(l)}var q7e={name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:z.DARKGRAY,componentDatatype:H.FLOAT,type:Yt.VEC4,isQuantized:!1,isTranslucent:!1};function $7e(e,t,n){let i=[],o,r=t.positions;return d(r)&&(j7e(r),o=kP(e,r,n),o.count=t.pointsLength,i.push(o)),d(t.normals)&&(o=kP(e,t.normals,n),i.push(o)),d(t.colors)?(o=kP(e,t.colors,n),i.push(o)):(o=kP(e,q7e,n),i.push(o)),d(t.batchIds)&&(o=kP(e,t.batchIds,n),i.push(o)),i}function e6e(e,t,n){let i=e.batchLength,o=e.pointsLength,r=e.batchTableBinary,s=!d(e.batchIds);if(d(r)||e.hasDracoBatchTable){let a=g(i,o);return Tp({count:a,batchTable:e.batchTableJson,binaryBody:r,parseAsPropertyAttributes:s,customAttributeOutput:t,generateUniqueId:n})}return new ur({schema:{},propertyTables:[]})}function t6e(e,t){let n=e._parsedContent,i=new k7e;i.metallicFactor=0,i.roughnessFactor=.9;let o=new U7e;o.metallicRoughness=i;let r=n.colors;d(r)&&r.isTranslucent&&(o.alphaMode=zm.BLEND);let s=!d(n.normals);o.unlit=s;let a=new F7e;if(a.attributes=$7e(e,n,t),a.primitiveType=Fe.POINTS,a.material=o,d(n.batchIds)){let b=new D7e;b.propertyTableId=0,b.setIndex=0,b.positionalLabel="featureId_0",a.featureIds.push(b)}let c=new N7e;c.index=0,c.primitives=[a];let l=new v7e;l.nodes=[c],l.upAxis=En.Z,l.forwardAxis=En.X;let u=new P7e;u.scene=l,u.nodes=[c];let m=[];u.structuralMetadata=e6e(n,m,e._generateUniqueId),m.length>0&&n6e(e,a,m,t),d(n.rtcCenter)&&(u.transform=P.multiplyByTranslation(u.transform,n.rtcCenter,u.transform));let f=n.positions;d(f)&&f.isQuantized&&(u.transform=P.multiplyByTranslation(u.transform,f.quantizedVolumeOffset,u.transform)),e._components=u,e._parsedContent=void 0,e._arrayBuffer=void 0}function n6e(e,t,n,i){let o=t.attributes,r=n.length;for(let s=0;s<r;s++){let a=n[s],c=nt.createVertexBuffer({typedArray:a.typedArray,context:i,usage:Me.STATIC_DRAW});c.vertexArrayDestroyable=!1,e._buffers.push(c),a.buffer=c,a.typedArray=void 0,o.push(a)}t.propertyAttributeIds=[0]}Mx.prototype.unload=function(){let e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0,this._arrayBuffer=void 0};var zP=Mx;var LJn=S(C(),1);var i6e=new h,o6e=new h,r6e=new h,s6e=new P,a6e=new P,c6e=new P,l6e=new me,d6e=new de;function eZ(e,t,n,i,o,r,s){if(!e._ready||n.mode===ae.MORPHING)return;let a=Number.MAX_VALUE,c=e.sceneGraph,l=c._runtimeNodes;for(let u=0;u<l.length;u++){let m=l[u],f=m.node,b=P.clone(m.computedTransform,s6e),p=P.clone(c.computedModelMatrix,a6e),x=f.instances;d(x)&&x.transformInWorldSpace&&(p=P.multiplyTransformation(e.modelMatrix,c.components.transform,p),b=P.multiplyTransformation(c.axisCorrectionMatrix,m.computedTransform,b));let T=P.multiplyTransformation(p,b,c6e);n.mode!==ae.SCENE3D&&(T=Zt.basisTo2D(n.mapProjection,T,T));let _=[];if(d(x)){let V=x.attributes[0].count,Z=x.attributes[0].componentDatatype,G=12,I=m.transformsTypedArray;if(!d(I)){let w=m.instancingTransformsBuffer;d(w)&&n.context.webgl2&&(I=H.createTypedArray(Z,V*G),w.getBufferData(I))}if(d(I))for(let w=0;w<V;w++){let W=w*G,v=new P(I[W],I[W+1],I[W+2],I[W+3],I[W+4],I[W+5],I[W+6],I[W+7],I[W+8],I[W+9],I[W+10],I[W+11],0,0,0,1);x.transformInWorldSpace?(P.multiplyTransformation(v,b,v),P.multiplyTransformation(p,v,v)):P.multiplyTransformation(v,T,v),_.push(v)}}_.length===0&&_.push(T);let L=m.runtimePrimitives.length;for(let V=0;V<L;V++){let Z=m.runtimePrimitives[V],G=Z.primitive;if(d(Z.boundingSphere)&&!d(x)){let K=de.transform(Z.boundingSphere,T,d6e),j=Pi.raySphere(t,K);if(!d(j))continue}let I=fn.getAttributeBySemantic(G,ut.POSITION),w=I.byteOffset,W=I.byteStride,v=I.count;if(!d(G.indices))continue;let N=G.indices.typedArray;if(!d(N)){let K=G.indices.buffer,j=G.indices.count,J=G.indices.indexDatatype;d(K)&&n.context.webgl2&&(J===qe.UNSIGNED_BYTE?N=new Uint8Array(j):J===qe.UNSIGNED_SHORT?N=new Uint16Array(j):J===qe.UNSIGNED_INT&&(N=new Uint32Array(j)),K.getBufferData(N))}let y=I.typedArray,R=I.componentDatatype,E=I.type,X=I.quantization;d(X)&&(R=I.quantization.componentDatatype,E=I.quantization.type);let F=Yt.getNumberOfComponents(E),A=H.getSizeInBytes(R),Y=!d(y)&&d(W)&&W!==F*A,U=F,k=0;Y&&(U=W/A,k=w/A);let D=v*U;if(!d(y)){let K=I.buffer;d(K)&&n.context.webgl2&&(y=H.createTypedArray(R,D),K.getBufferData(y,Y?0:w,0,D)),X&&I.normalized&&(y=xn.dequantize(y,R,E,v))}if(!d(N)||!d(y))return;r=g(r,oe.default),i=g(i,1),o=g(o,0);let O=N.length;for(let K=0;K<O;K+=3){let j=N[K],J=N[K+1],ne=N[K+2];for(let q of _){let ye=_8(y,j,k,U,X,q,i,o,r,i6e),_e=_8(y,J,k,U,X,q,i,o,r,o6e),ue=_8(y,ne,k,U,X,q,i,o,r,r6e),Ce=Pi.rayTriangleParametric(t,ye,_e,ue,g(e.backFaceCulling,!0));d(Ce)&&Ce<a&&Ce>=0&&(a=Ce)}}}}if(a!==Number.MAX_VALUE){if(s=Dn.getPoint(t,a,s),n.mode!==ae.SCENE3D){h.fromElements(s.y,s.z,s.x,s);let u=n.mapProjection,m=u.ellipsoid,f=u.unproject(s,l6e);m.cartographicToCartesian(f,s)}return s}}function _8(e,t,n,i,o,r,s,a,c,l){let u=n+t*i;if(l.x=e[u],l.y=e[u+1],l.z=e[u+2],d(o))if(o.octEncoded){if(l=xn.octDecodeInRange(l,o.normalizationRange,l),o.octEncodedZXY){let m=l.x;l.x=l.z,l.z=l.y,l.y=m}}else l=h.multiplyComponents(l,o.quantizedVolumeStepSize,l),l=h.add(l,o.quantizedVolumeOffset,l);return l=P.multiplyByPoint(r,l,l),s!==1&&rr.getPosition(l,c,s,a,l),l}var VQn=S(C(),1);var EJn=S(C(),1);var tZ={};tZ._deprecationWarning=lr;var x0e=Uint32Array.BYTES_PER_ELEMENT;tZ.parse=function(e,t){t=g(t,0);let i=0,o=0,r=0,s=0,a;r>=570425344?(t-=x0e*2,a=i,r=o,s=0,i=0,o=0,tZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):s>=570425344&&(t-=x0e,a=r,r=i,s=o,i=0,o=0,tZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel."));let c;i===0?c={BATCH_LENGTH:g(a,0)}:(c=ho(uint8Array,t,i),t+=i);let l=new Uint8Array(e,t,o);t+=o;let u,m;r>0&&(u=ho(uint8Array,t,r),t+=r,s>0&&(m=new Uint8Array(e,t,s),m=new Uint8Array(m),t+=s));let f=e.byteLength,b;return t%4===0?b=new Uint8Array(e,t,f):(tZ._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),b=new Uint8Array(uint8Array.subarray(t,t+f))),{batchLength:a,featureTableJson:c,featureTableBinary:l,batchTableJson:u,batchTableBinary:m,gltf:b}};var YP=tZ;var sQn=S(C(),1);var WJn=S(C(),1);var u6e={};function BP(e){this._count=e.count,this._properties=e.properties,this._batchTableJson=e.batchTableJson}BP.prototype.hasProperty=function(e){return ci.hasProperty(e,this._properties,u6e)};BP.prototype.getPropertyIds=function(e,t){e=d(e)?e:[],e.length=0;let n=Object.keys(this._properties);return e.push.apply(e,n),e};BP.prototype.getProperty=function(e,t){let n=this._properties[t];if(d(n))return Ue(n[e],!0)};BP.prototype.setProperty=function(e,t,n){let i=this._properties[t];d(i)||(i=new Array(this._count),this._properties[t]=i),i[e]=Ue(n,!0)};var OP=BP;var AJn=S(C(),1);var m6e={};function KP(e){this._count=e.count,this._properties=e.properties,this._batchTableJson=e.batchTableJson}KP.prototype.hasProperty=function(e){return ci.hasProperty(e,this._properties,m6e)};KP.prototype.getPropertyIds=function(e,t){e=d(e)?e:[],e.length=0;let n=Object.keys(this._properties);return e.push.apply(e,n),e};KP.prototype.getProperty=function(e,t){let n=this._properties[t];if(d(n))return Ue(n[e],!0)};KP.prototype.setProperty=function(e,t,n){let i=this._properties[t];d(i)||(i=new Array(this._count),this._properties[t]=i),i[e]=Ue(n,!0)};var HP=KP;function Yz(e){let t=e.count,n=e.binaryBody,i=e.batchTable,o=e.binaryBody,r=e.tilesetVersion,s=g(e.parseAsPropertyAttributes,!1),a=e.customAttributeOutput,c={jsonProperties:i,binaryProperties:o},l;(r==="2.1"||r==="2.2")&&d(c.jsonProperties)?l=new tx({count:t,properties:i,batchTableJson:i,batchTableBinary:o}):r==="2.0"&&d(c.jsonProperties)?l=new OP({count:t,properties:i,batchTableJson:i}):r==="1.0"&&d(c.jsonProperties)&&(l=new HP({count:t,properties:i,batchTableJson:i}));let u;d(c.hierarchy)&&(u=new Pb({extension:c.hierarchy,binaryBody:n}));let m=ua.BATCH_TABLE_CLASS_NAME,f=c.binaryProperties,b,p,x;if(s){let L=p6e(t,m,f,n,a);x=L.transcodedSchema,p=[new $b({propertyAttribute:L.propertyAttributeJson,class:L.transcodedClass})]}else{let L=h6e(t,m,f,n);x=L.transcodedSchema;let V=L.featureTableJson;b=new gl({count:V.count,properties:V.properties,class:L.transcodedClass,bufferViews:L.bufferViewsTypedArrays}),p=[]}let T=[];if(d(b)||d(l)||d(u)){let L=new as({id:0,name:"Batch Table",count:t,metadataTable:b,jsonMetadataTable:l,batchTableHierarchy:u});T.push(L)}let _={schema:x,propertyTables:T,propertyAttributes:p,extensions:c.extensions,extras:c.extras};return new ur(_)}function h6e(e,t,n,i){let o={},r={},s={},a=0;for(let m in n){if(!n.hasOwnProperty(m))continue;if(!d(i))throw new le(`Property ${m} requires a batch table binary.`);let f=n[m],b=dl(f);r[m]={bufferView:a},o[m]=T0e(f),s[a]=b.createArrayBufferView(i.buffer,i.byteOffset+f.byteOffset,e),a++}let c={classes:{}};c.classes[t]={properties:o};let l=Tl.fromJson(c);return{featureTableJson:{class:t,count:e,properties:r},bufferViewsTypedArrays:s,transcodedSchema:l,transcodedClass:l.classes[t]}}function p6e(e,t,n,i,o){let r={},s={},a=0;for(let m in n){if(!n.hasOwnProperty(m))continue;let f=n[m];if(!d(i)&&!d(f.typedArray))throw new le(`Property ${m} requires a batch table binary.`);let b=fn.sanitizeGlslIdentifier(m);(b===""||r.hasOwnProperty(b))&&(b=`property_${a}`,a++);let p=T0e(f);p.name=m,r[b]=p;let x=b.toUpperCase();x.startsWith("_")||(x=`_${x}`);let T=f.typedArray;d(T)||(T=dl(f).createArrayBufferView(i.buffer,i.byteOffset+f.byteOffset,e));let _=new hn.Attribute;_.name=x,_.count=e,_.type=f.type;let L=H.fromTypedArray(T);(L===H.INT||L===H.UNSIGNED_INT||L===H.DOUBLE)&&(Yz._oneTimeWarning("Cast pnts property to floats",`Point cloud property "${x}" will be cast to a float array because INT, UNSIGNED_INT, and DOUBLE are not valid WebGL vertex attribute types. Some precision may be lost.`),T=new Float32Array(T)),_.componentDatatype=H.fromTypedArray(T),_.typedArray=T,o.push(_),s[b]={attribute:x}}let c={classes:{}};c.classes[t]={properties:r};let l=Tl.fromJson(c);return{class:t,propertyAttributeJson:{properties:s},transcodedSchema:l,transcodedClass:l.classes[t]}}function T0e(e){let t=f6e(e.componentType);return{type:e.type,componentType:t}}function f6e(e){switch(e){case"BYTE":return"INT8";case"UNSIGNED_BYTE":return"UINT8";case"SHORT":return"INT16";case"UNSIGNED_SHORT":return"UINT16";case"INT":return"INT32";case"UNSIGNED_INT":return"UINT32";case"FLOAT":return"FLOAT32";case"DOUBLE":return"FLOAT64"}}Yz._deprecationWarning=lr;Yz._oneTimeWarning=Ft;var Nu=Yz;var O1={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},b6e=hn.FeatureIdAttribute;function wx(e){e=g(e,g.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,En.Y),l=g(e.forwardAxis,En.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadAttributesFor2D,!1),f=g(e.enablePick,!1),b=g(e.loadIndicesForWireframe,!1),p=g(e.loadPrimitiveOutline,!0),x=g(e.loadForClassification,!1);n=d(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadAttributesFor2D=m,this._enablePick=f,this._loadIndicesForWireframe=b,this._loadPrimitiveOutline=p,this._loadForClassification=x,this._state=O1.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=P.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(wx.prototype=Object.create(vi.prototype),wx.prototype.constructor=wx);Object.defineProperties(wx.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});wx.prototype.load=function(){if(d(this._promise))return this._promise;let e=YP.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,n=e.featureTableBinary,i=new ma(t,n);this._tilesetVersion==="2.1"||this._tilesetVersion==="2.2"?this._batchLength=this._attBatchTable?.batchTableJson?.tid?.tidsLength:this._tilesetVersion==="2.0"&&d(this._attBatchTable)&&(this._batchLength=this._attBatchTable?.batchTableJson?.OID?.length),d(this._batchLength)||(this._batchLength=0);let o=i.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(o)&&(this._transform=P.fromTranslation(h.fromArray(o))),d(this._attBatchTable)&&(this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary});let r=new Dc({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,tilesetVersion:this._tilesetVersion,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=r,this._state=O1.LOADING;let s=this;return this._promise=r.load().then(function(){if(!s.isDestroyed())return s._state=O1.PROCESSING,s}).catch(function(a){if(!s.isDestroyed())return y6e(s,a)}),this._promise};function y6e(e,t){return e.unload(),e._state=O1.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}wx.prototype.process=function(e){if(this._state===O1.READY)return!0;if(this._state!==O1.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=P.multiplyTransformation(this._transform,n.transform,n.transform),g6e(this,n),this._components=n,this._arrayBuffer=void 0,this._state=O1.READY,!0};function g6e(e,t){let n=e._batchTable,i=e._batchLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n?.json))r=Nu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let c=new as({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new ur({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)_0e(s[c]);t.structuralMetadata=r}function _0e(e){let t=e.children.length;for(let i=0;i<t;i++)_0e(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let o=e.primitives[i],r=fn.getAttributeBySemantic(o,ut.FEATURE_ID);if(d(r)){r.setIndex=0;let s=new b6e;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",o.featureIds.push(s)}}}wx.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var JP=wx;var YQn=S(C(),1);var K1={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},x6e=hn.FeatureIdAttribute;function Wx(e){e=g(e,g.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,En.Y),l=g(e.forwardAxis,En.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadAttributesFor2D,!1),f=g(e.enablePick,!1),b=g(e.loadIndicesForWireframe,!1),p=g(e.loadPrimitiveOutline,!0),x=g(e.loadForClassification,!1);n=d(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadAttributesFor2D=m,this._enablePick=f,this._loadIndicesForWireframe=b,this._loadPrimitiveOutline=p,this._loadForClassification=x,this._state=K1.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=P.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(Wx.prototype=Object.create(vi.prototype),Wx.prototype.constructor=Wx);Object.defineProperties(Wx.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Wx.prototype.load=function(){if(d(this._promise))return this._promise;let e=v1.parse(this._arrayBuffer,this._byteOffset),t=e.batchLength,n=e.featureTableJson,i=e.featureTableBinary,o=new ma(n,i);t=o.getGlobalProperty("BATCH_LENGTH"),this._batchLength=t;let r=o.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(r)&&(this._transform=P.fromTranslation(h.fromArray(r))),this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary};let s=new Dc({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=s,this._state=K1.LOADING;let a=this;return this._promise=s.load().then(function(){if(!a.isDestroyed())return a._state=K1.PROCESSING,a}).catch(function(c){if(!a.isDestroyed())return T6e(a,c)}),this._promise};function T6e(e,t){return e.unload(),e._state=K1.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}Wx.prototype.process=function(e){if(this._state===K1.READY)return!0;if(this._state!==K1.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=P.multiplyTransformation(this._transform,n.transform,n.transform),_6e(this,n),this._components=n,this._arrayBuffer=void 0,this._state=K1.READY,!0};function _6e(e,t){let n=e._batchTable,i=e._batchLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n.json))r=Nu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let c=new as({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new ur({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)S0e(s[c]);t.structuralMetadata=r}function S0e(e){let t=e.children.length;for(let i=0;i<t;i++)S0e(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let o=e.primitives[i],r=fn.getAttributeBySemantic(o,ut.FEATURE_ID);if(d(r)){r.setIndex=0;let s=new x6e;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",o.featureIds.push(s)}}}Wx.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var QP=Wx;var Tjn=S(C(),1);var ly={NOT_LOADED:0,LOADING:1,PROCESSING:2,POST_PROCESSING:3,READY:4,FAILED:5,UNLOADED:6},Bz=hn.Attribute,S6e=hn.FeatureIdAttribute,L0e=hn.Instances;function dy(e){e=g(e,g.EMPTY_OBJECT);let t=e.i3dmResource,n=e.arrayBuffer,i=e.baseResource,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,En.Y),l=g(e.forwardAxis,En.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadIndicesForWireframe,!1),f=g(e.loadPrimitiveOutline,!0),b=g(e.enablePick,!1);i=d(i)?i:t.clone(),this._i3dmResource=t,this._baseResource=i,this._arrayBuffer=n,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadIndicesForWireframe=m,this._loadPrimitiveOutline=f,this._enablePick=b,this._state=ly.NOT_LOADED,this._promise=void 0,this._gltfLoader=void 0,this._buffers=[],this._components=void 0,this._transform=P.IDENTITY,this._batchTable=void 0,this._featureTable=void 0,this._instancesLength=0,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(dy.prototype=Object.create(vi.prototype),dy.prototype.constructor=dy);Object.defineProperties(dy.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});dy.prototype.load=function(){if(d(this._promise))return this._promise;let e=F1.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,n=e.featureTableBinary,i=e.gltfFormat,o=new ma(t,n);this._featureTable=o;let r=o.getGlobalProperty("INSTANCES_LENGTH");if(o.featuresLength=r,!d(r))throw new le("Feature table global property: INSTANCES_LENGTH must be defined");this._instancesLength=r;let s=o.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(s)&&(this._transform=P.fromTranslation(h.fromArray(s))),this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary};let a={upAxis:this._upAxis,forwardAxis:this._forwardAxis,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry};if(i===0){let l=Wr(e.gltf);l=l.replace(/[\s\0]+$/,"");let u=this._baseResource.getDerivedResource({url:l});a.gltfResource=u,a.baseResource=u}else a.gltfResource=this._i3dmResource,a.typedArray=e.gltf;let c=new Dc(a);return this._gltfLoader=c,this._state=ly.LOADING,this._promise=c.load().then(()=>{if(!this.isDestroyed())return this._state=ly.PROCESSING,this}).catch(l=>{if(!this.isDestroyed())throw C6e(this,l)}),this._promise};function C6e(e,t){return e.unload(),e._state=ly.FAILED,e.getError("Failed to load i3dm",t)}dy.prototype.process=function(e){if(this._state===ly.READY)return!0;let t=this._gltfLoader,n=!1;if(this._state===ly.PROCESSING&&(n=t.process(e)),!n)return!1;let i=t.components;return i.transform=P.multiplyTransformation(this._transform,i.transform,i.transform),Z6e(this,i,e),L6e(this,i),this._components=i,this._arrayBuffer=void 0,this._state=ly.READY,!0};function L6e(e,t){let n=e._batchTable,i=e._instancesLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n.json))r=Nu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let s=new as({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new ur({schema:{},propertyTables:[s]})}t.structuralMetadata=r}var Oz=new h,S8=new Array(4),V6e=new P;function Z6e(e,t,n){let i,o=e._featureTable,r=e._instancesLength;if(r===0)return;let s=o.getGlobalProperty("RTC_CENTER",H.FLOAT,3),a=o.getGlobalProperty("EAST_NORTH_UP"),c=o.hasProperty("NORMAL_UP")||o.hasProperty("NORMAL_UP_OCT32P")||a,l=o.hasProperty("SCALE")||o.hasProperty("SCALE_NON_UNIFORM"),u=G6e(o,r),m;c&&(m=new Float32Array(4*r));let f;l&&(f=new Float32Array(3*r));let b=new Float32Array(r),p=h.unpackArray(u),x=new h,T=new h,_=new h,L=new h,V=new $,Z=new Be,G=new Array(4),I=new h,w=new Array(3),W=new P;if(!d(s)||h.equals(h.unpack(s),h.ZERO)){let U=de.fromPoints(p);for(i=0;i<p.length;i++)h.subtract(p[i],U.center,Oz),u[3*i+0]=Oz.x,u[3*i+1]=Oz.y,u[3*i+2]=Oz.z;let k=P.fromTranslation(U.center,V6e);t.transform=P.multiplyTransformation(k,t.transform,t.transform)}for(i=0;i<r;i++){x=h.clone(p[i]),d(s)&&h.add(x,h.unpack(s),x),c&&(E6e(o,a,i,Z,x,_,T,L,V,W),Be.pack(Z,G,0),m[4*i+0]=G[0],m[4*i+1]=G[1],m[4*i+2]=G[2],m[4*i+3]=G[3]),l&&(I6e(o,i,I),h.pack(I,w,0),f[3*i+0]=w[0],f[3*i+1]=w[1],f[3*i+2]=w[2]);let U=o.getProperty("BATCH_ID",H.UNSIGNED_SHORT,1,i);d(U)||(U=i),b[i]=U}let v=new L0e;v.transformInWorldSpace=!0;let N=e._buffers,y=new Bz;if(y.name="Instance Translation",y.semantic=kr.TRANSLATION,y.componentDatatype=H.FLOAT,y.type=Yt.VEC3,y.count=r,y.typedArray=u,!c){let U=nt.createVertexBuffer({context:n.context,typedArray:u,usage:Me.STATIC_DRAW});U.vertexArrayDestroyable=!1,N.push(U),y.buffer=U}if(v.attributes.push(y),c){let U=new Bz;U.name="Instance Rotation",U.semantic=kr.ROTATION,U.componentDatatype=H.FLOAT,U.type=Yt.VEC4,U.count=r,U.typedArray=m,v.attributes.push(U)}if(l){let U=new Bz;if(U.name="Instance Scale",U.semantic=kr.SCALE,U.componentDatatype=H.FLOAT,U.type=Yt.VEC3,U.count=r,c)U.typedArray=f;else{let k=nt.createVertexBuffer({context:n.context,typedArray:f,usage:Me.STATIC_DRAW});k.vertexArrayDestroyable=!1,N.push(k),U.buffer=k}v.attributes.push(U)}let R=new Bz;R.name="Instance Feature ID",R.setIndex=0,R.semantic=kr.FEATURE_ID,R.componentDatatype=H.FLOAT,R.type=Yt.SCALAR,R.count=r;let E=nt.createVertexBuffer({context:n.context,typedArray:b,usage:Me.STATIC_DRAW});E.vertexArrayDestroyable=!1,N.push(E),R.buffer=E,v.attributes.push(R);let X=new S6e;X.propertyTableId=0,X.setIndex=0,X.positionalLabel="instanceFeatureId_0",v.featureIds.push(X);let F=t.nodes,A=F.length,Y=!1;for(i=0;i<A;i++){let U=F[i];U.primitives.length>0&&(U.instances=Y?R6e(v):v,Y=!0)}}function R6e(e){let t=new L0e;t.transformInWorldSpace=e.transformInWorldSpace;let n=e.attributes,i=n.length;for(let o=0;o<i;o++){let r=Ue(n[o],!1);t.attributes.push(r)}return t.featureIds=e.featureIds,t}function G6e(e,t){if(e.hasProperty("POSITION"))return e.getPropertyArray("POSITION",H.FLOAT,3);if(e.hasProperty("POSITION_QUANTIZED")){let n=e.getPropertyArray("POSITION_QUANTIZED",H.UNSIGNED_SHORT,3),i=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",H.FLOAT,3);if(!d(i))throw new le("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");let o=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",H.FLOAT,3);if(!d(o))throw new le("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let r=new Float32Array(n.length);for(let s=0;s<n.length/3;s++)for(let a=0;a<3;a++){let c=3*s+a;r[c]=n[c]/65535*o[a]+i[a]}return r}else throw new le("Either POSITION or POSITION_QUANTIZED must be defined for each instance.")}var C0e=new Array(4);function E6e(e,t,n,i,o,r,s,a,c,l){let u=e.getProperty("NORMAL_UP",H.FLOAT,3,n,S8),m=e.getProperty("NORMAL_RIGHT",H.FLOAT,3,n,C0e),f=!1;if(d(u)){if(!d(m))throw new le("To define a custom orientation, both NORMAL_UP and NORMAL_RIGHT must be defined.");h.unpack(u,0,r),h.unpack(m,0,s),f=!0}else{let b=e.getProperty("NORMAL_UP_OCT32P",H.UNSIGNED_SHORT,2,n,S8),p=e.getProperty("NORMAL_RIGHT_OCT32P",H.UNSIGNED_SHORT,2,n,C0e);if(d(b)){if(!d(p))throw new le("To define a custom orientation with oct-encoded vectors, both NORMAL_UP_OCT32P and NORMAL_RIGHT_OCT32P must be defined.");xn.octDecodeInRange(b[0],b[1],65535,r),xn.octDecodeInRange(p[0],p[1],65535,s),f=!0}else t?(Zt.eastNorthUpToFixedFrame(o,oe.WGS84,l),P.getMatrix3(l,c)):$.clone($.IDENTITY,c)}f&&(h.cross(s,r,a),h.normalize(a,a),$.setColumn(c,0,s,c),$.setColumn(c,1,r,c),$.setColumn(c,2,a,c)),Be.fromRotationMatrix(c,i)}function I6e(e,t,n){n=h.fromElements(1,1,1,n);let i=e.getProperty("SCALE",H.FLOAT,1,t);d(i)&&h.multiplyByScalar(n,i,n);let o=e.getProperty("SCALE_NON_UNIFORM",H.FLOAT,3,t,S8);d(o)&&(n.x*=o[0],n.y*=o[1],n.z*=o[2])}function X6e(e){let t=e._buffers,n=t.length;for(let i=0;i<n;i++){let o=t[i];o.isDestroyed()||o.destroy()}t.length=0}dy.prototype.isUnloaded=function(){return this._state===ly.UNLOADED};dy.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),X6e(this),this._components=void 0,this._arrayBuffer=void 0,this._state=ly.UNLOADED};var jP=dy;var r8n=S(C(),1);var G0e=S(JG(),1);var Wjn=S(C(),1);var V0e={},Cp=Uint32Array.BYTES_PER_ELEMENT;V0e.parse=function(e,t,n,i,o){t=g(t,0);let r=new Uint8Array(e),s=new DataView(e),a=0,c=0,l,u;if(n.version==="1.0"||n.version==="0.0"){let _=s.getUint32(t,!0);t+=Cp;let L=s.getUint32(t,!0);if(L===0)throw new le("Feature table must have a byte length greater than zero");t+=Cp;let V=s.getUint32(t,!0);if(t+=Cp,c=s.getUint32(t,!0),t+=Cp,_>0){let G=Wr(r,t,_),I=JSON.parse(G);n.loadChildTileSet(o,I,i)}t+=_;let Z=Wr(r,t,L);l=JSON.parse(Z),t+=L,u=new Uint8Array(e,t,V),t+=V}else{t+=Cp;let _=s.getUint32(t,!0);if(_!==1)throw new le(`Only Point Cloud tile version 1 is supported. Version ${_} is not.`);t+=Cp,t+=Cp;let L=s.getUint32(t,!0);if(L===0)throw new le("Feature table must have a byte length greater than zero");t+=Cp;let V=s.getUint32(t,!0);t+=Cp,a=s.getUint32(t,!0),t+=Cp,c=s.getUint32(t,!0),t+=Cp,l=ho(r,t,L),t+=L,u=new Uint8Array(e,t,V),t+=V}let m,f;a>0&&(m=ho(r,t,a),t+=a,c>0&&(f=new Uint8Array(e,t,c),t+=c));let b=new ma(l,u),p=b.getGlobalProperty("POINTS_LENGTH");if(b.featuresLength=p,!d(p))throw new le("Feature table global property: POINTS_LENGTH must be defined");let x=b.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(x)&&(x=h.unpack(x));let T=M6e(b,m);if(T.rtcCenter=x,T.pointsLength=p,!T.hasPositions){let _=w6e(b);T.positions=_,T.hasPositions=T.hasPositions||d(_)}if(!T.hasPositions)throw new le("Either POSITION or POSITION_QUANTIZED must be defined.");if(!T.hasNormals){let _=P6e(b);T.normals=_,T.hasNormals=T.hasNormals||d(_)}if(!T.hasColors){let _=W6e(b);T.colors=_,T.hasColors=T.hasColors||d(_),T.hasConstantColor=d(T.constantColor),T.isTranslucent=d(_)&&_.isTranslucent}if(!T.hasBatchIds){let _=v6e(b);T.batchIds=_,T.hasBatchIds=T.hasBatchIds||d(_)}if(T.hasBatchIds){let _=b.getGlobalProperty("BATCH_LENGTH");if(!d(_))throw new le("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");T.batchLength=_}return d(f)&&(f=new Uint8Array(f),T.batchTableJson=m,T.batchTableBinary=f),T.batchTableJson=m,T};function M6e(e,t){let n=e.json,i,o,r,s=d(n.extensions)?n.extensions["3DTILES_draco_point_compression"]:void 0,a=d(t)&&d(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;d(a)&&(r=a.properties);let c,l,u,m,f;if(d(s)){o=s.properties;let p=s.byteOffset,x=s.byteLength;if(!d(o)||!d(p)||!d(x))throw new le("Draco properties, byteOffset, and byteLength must be defined");i=e.buffer.slice(p,p+x),c=d(o.POSITION),l=d(o.RGB)||d(o.RGBA),u=d(o.NORMAL),m=d(o.BATCH_ID),f=d(o.RGBA)}let b;return d(i)&&(b={buffer:i,featureTableProperties:o,batchTableProperties:r,properties:xt(o,r),dequantizeInShader:!0}),{draco:b,hasPositions:c,hasColors:l,isTranslucent:f,hasNormals:u,hasBatchIds:m}}function w6e(e){let t=e.json,n;if(d(t.POSITION))return n=e.getPropertyArray("POSITION",H.FLOAT,3),{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!1,componentDatatype:H.FLOAT,type:Yt.VEC3};if(d(t.POSITION_QUANTIZED)){n=e.getPropertyArray("POSITION_QUANTIZED",H.UNSIGNED_SHORT,3);let i=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",H.FLOAT,3);if(!d(i))throw new le("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let o=65535,r=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",H.FLOAT,3);if(!d(r))throw new le("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!0,componentDatatype:H.FLOAT,type:Yt.VEC3,quantizedRange:o,quantizedVolumeOffset:h.unpack(r),quantizedVolumeScale:h.unpack(i),quantizedComponentDatatype:H.UNSIGNED_SHORT,quantizedType:Yt.VEC3}}}function W6e(e){let t=e.json,n;if(d(t.RGBA))return n=e.getPropertyArray("RGBA",H.UNSIGNED_BYTE,4),{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if(d(t.RGB))return n=e.getPropertyArray("RGB",H.UNSIGNED_BYTE,3),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if(d(t.RGB565))return n=e.getPropertyArray("RGB565",H.UNSIGNED_SHORT,1),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.FLOAT,type:Yt.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if(d(t.CONSTANT_RGBA)){let i=e.getGlobalProperty("CONSTANT_RGBA",H.UNSIGNED_BYTE,4),o=i[3],r=z.fromBytes(i[0],i[1],i[2],o),s=o<255;return{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:r,componentDatatype:H.FLOAT,type:Yt.VEC4,isQuantized:!1,isTranslucent:s}}}function P6e(e){let t=e.json,n;if(d(t.NORMAL))return n=e.getPropertyArray("NORMAL",H.FLOAT,3),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!1,octEncodedZXY:!1,componentDatatype:H.FLOAT,type:Yt.VEC3};if(d(t.NORMAL_OCT16P))return n=e.getPropertyArray("NORMAL_OCT16P",H.UNSIGNED_BYTE,2),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<8)-1,quantizedType:Yt.VEC2,quantizedComponentDatatype:H.UNSIGNED_BYTE,componentDatatype:H.FLOAT,type:Yt.VEC3}}function v6e(e){let t=e.json;if(d(t.BATCH_ID)){let n=e.getPropertyArray("BATCH_ID",H.UNSIGNED_SHORT,1);return{name:ut.FEATURE_ID,semantic:ut.FEATURE_ID,setIndex:0,typedArray:n,componentDatatype:H.fromTypedArray(n),type:Yt.SCALAR}}}var qP=V0e;var N6e=hn.Components,F6e=hn.Scene,A6e=hn.Node,D6e=hn.Primitive,U6e=hn.Attribute,Z0e=hn.Quantization,k6e=hn.FeatureIdAttribute,z6e=hn.Material,Y6e=hn.MetallicRoughness;function Px(e){e=g(e,g.EMPTY_OBJECT);let t=e.arrayBuffer,n=g(e.byteOffset,0);this._arrayBuffer=t,this._byteOffset=n,this._loadAttributesFor2D=g(e.loadAttributesFor2D,!1),this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=void 0,this._error=void 0,this._state=Xt.UNLOADED,this._buffers=[],this._components=void 0,this._transform=P.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._tileset=e.tileset,this._tile=e.tile,this._resource=e.resource}d(Object.create)&&(Px.prototype=Object.create(vi.prototype),Px.prototype.constructor=Px);Object.defineProperties(Px.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}});Px.prototype.load=function(){if(d(this._promise))return this._promise;this._parsedContent=qP.parse(this._arrayBuffer,this._byteOffset,this._tileset,this._tile,this._resource),(this._tilesetVersion==="2.1"||this._tilesetVersion==="2.2")&&(this._parsedContent.batchTableJson=this._attBatchTable?.batchTableJson,this._parsedContent.batchTableBinary=this._attBatchTable?.batchTableBinary),this._state=Xt.PROCESSING,this._promise=Promise.resolve(this)};Px.prototype.process=function(e){if(d(this._error)){let t=this._error;throw this._error=void 0,t}if(this._state===Xt.READY)return!0;if(this._state===Xt.PROCESSING){if(d(this._decodePromise))return!1;this._decodePromise=B6e(this,e.context)}return!1};function B6e(e,t){let i=e._parsedContent.draco,o;if(d(i)?o=fp.decodePointCloud(i,t):o=Promise.resolve(),!!d(o))return e._decodePromise=o,o.then(function(r){if(!e.isDestroyed())return d(r)&&O6e(e,i,r),iqe(e,t),e._state=Xt.READY,e}).catch(function(r){e.unload(),e._state=Xt.FAILED;let s="Failed to load Draco pnts";e._error=e.getError(s,r)})}function O6e(e,t,n){e._state=Xt.READY;let i=e._parsedContent,o;if(d(n.POSITION)){if(o={name:"POSITION",semantic:ut.POSITION,typedArray:n.POSITION.array,componentDatatype:H.FLOAT,type:Yt.VEC3,isQuantized:!1},d(n.POSITION.data.quantization)){let a=n.POSITION.data.quantization,c=a.range,l=h.fromElements(c,c,c),u=h.unpack(a.minValues),m=(1<<a.quantizationBits)-1;o.isQuantized=!0,o.quantizedRange=m,o.quantizedVolumeOffset=u,o.quantizedVolumeScale=l,o.quantizedComponentDatatype=m<=255?H.UNSIGNED_BYTE:H.UNSIGNED_SHORT,o.quantizedType=Yt.VEC3}i.positions=o}if(d(n.NORMAL)){if(o={name:"NORMAL",semantic:ut.NORMAL,typedArray:n.NORMAL.array,componentDatatype:H.FLOAT,type:Yt.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},d(n.NORMAL.data.quantization)){let a=(1<<n.NORMAL.data.quantization.quantizationBits)-1;o.quantizedRange=a,o.octEncoded=!0,o.octEncodedZXY=!0,o.quantizedComponentDatatype=H.UNSIGNED_BYTE,o.quantizedType=Yt.VEC2}i.normals=o}if(d(n.RGBA)?i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGBA.array,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC4,normalized:!0,isTranslucent:!0}:d(n.RGB)&&(i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGB.array,componentDatatype:H.UNSIGNED_BYTE,type:Yt.VEC3,normalized:!0,isTranslucent:!1}),d(n.BATCH_ID)){let a=n.BATCH_ID.array;i.batchIds={name:"_FEATURE_ID",semantic:ut.FEATURE_ID,setIndex:0,typedArray:a,componentDatatype:H.fromTypedArray(a),type:Yt.SCALAR}}let r=i.batchTableJson,s=t.batchTableProperties;for(let a in s)if(s.hasOwnProperty(a)){let c=n[a];d(r)||(r={}),i.hasDracoBatchTable=!0;let l=c.data;r[a]={byteOffset:l.byteOffset,type:K6e(l.componentsPerAttribute),componentType:H6e(l.componentDatatype),typedArray:c.array}}i.batchTableJson=r}function K6e(e){switch(e){case 1:return"SCALAR";case 2:return"VEC2";case 3:return"VEC3";case 4:return"VEC4"}}function H6e(e){switch(e){case te.BYTE:return"BYTE";case te.UNSIGNED_BYTE:return"UNSIGNED_BYTE";case te.SHORT:return"SHORT";case te.UNSIGNED_SHORT:return"UNSIGNED_SHORT";case te.INT:return"INT";case te.UNSIGNED_INT:return"UNSIGNED_INT";case te.DOUBLE:return"DOUBLE";case te.FLOAT:return"FLOAT"}}function $P(e,t,n){let i=t.typedArray,o;if(t.octEncoded&&(o=new Z0e,o.octEncoded=t.octEncoded,o.octEncodedZXY=t.octEncodedZXY,o.normalizationRange=t.quantizedRange,o.type=t.quantizedType,o.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){o=new Z0e;let a=t.quantizedRange;o.normalizationRange=a,o.quantizedVolumeOffset=h.ZERO;let c=t.quantizedVolumeScale;o.quantizedVolumeDimensions=c,o.quantizedVolumeStepSize=h.divideByScalar(c,a,new h),o.componentDatatype=t.quantizedComponentDatatype,o.type=t.quantizedType}let r=new U6e;if(r.name=t.name,r.semantic=t.semantic,r.setIndex=t.setIndex,r.componentDatatype=t.componentDatatype,r.type=t.type,r.normalized=g(t.normalized,!1),r.min=t.min,r.max=t.max,r.quantization=o,t.isRGB565&&(i=xn.decodeRGB565(i)),d(t.constantColor)){let a=new Array(4);r.constant=z.pack(t.constantColor,a)}else{let a=nt.createVertexBuffer({typedArray:i,context:n,usage:Me.STATIC_DRAW});a.vertexArrayDestroyable=!1,e._buffers.push(a),r.buffer=a}let s=e._loadAttributesFor2D;return r.semantic===ut.POSITION&&s&&(r.typedArray=i),r}var R0e,Kz;function J6e(e){if(!d(Kz)){R0e=new G0e.default(0),Kz=new Array(e);for(let t=0;t<e;++t)Kz[t]=R0e.random()}return Kz}var Q6e=new h,j6e=new h,q6e=new h;function $6e(e){let t=e.typedArray,n=20,i=t.length/3,o=Math.min(i,n),r=J6e(n),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=h.fromElements(s,s,s,Q6e),l=h.fromElements(a,a,a,j6e),u,m,f;if(e.isQuantized)c=h.ZERO,l=e.quantizedVolumeScale;else for(u=0;u<o;++u)m=Math.floor(r[u]*i),f=h.unpack(t,m*3,q6e),h.minimumByComponent(c,f,c),h.maximumByComponent(l,f,l);e.min=h.clone(c),e.max=h.clone(l)}var eqe={name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:z.DARKGRAY,componentDatatype:H.FLOAT,type:Yt.VEC4,isQuantized:!1,isTranslucent:!1};function tqe(e,t,n){let i=[],o,r=t.positions;return d(r)&&($6e(r),o=$P(e,r,n),o.count=t.pointsLength,i.push(o)),d(t.normals)&&(o=$P(e,t.normals,n),i.push(o)),d(t.colors)?(o=$P(e,t.colors,n),i.push(o)):(o=$P(e,eqe,n),i.push(o)),d(t.batchIds)&&(o=$P(e,t.batchIds,n),i.push(o)),i}function nqe(e,t,n){let i=e.batchLength,o=e.pointsLength,r=e.batchTableBinary,s=!d(e.batchIds);if(d(r)||e.hasDracoBatchTable||e.batchTableJson){let a=g(i,o);if(n==="2.1"||n==="2.2")return Nu({count:a,batchTable:e.batchTableJson,binaryBody:r,parseAsPropertyAttributes:s,customAttributeOutput:t,tilesetVersion:n});if(n==="2.0")return Tp({count:a,batchTable:e.batchTableJson,binaryBody:r,parseAsPropertyAttributes:s,customAttributeOutput:t})}return new ur({schema:{},propertyTables:[]})}function iqe(e,t){let n=e._parsedContent,i=e._tilesetVersion,o=new Y6e;o.metallicFactor=0,o.roughnessFactor=.9;let r=new z6e;r.metallicRoughness=o;let s=n.colors;d(s)&&s.isTranslucent&&(r.alphaMode=zm.BLEND);let a=!d(n.normals);r.unlit=a;let c=new D6e;if(c.attributes=tqe(e,n,t),c.primitiveType=Fe.POINTS,c.material=r,d(n.batchIds)){let p=new k6e;p.propertyTableId=0,p.setIndex=0,p.positionalLabel="featureId_0",c.featureIds.push(p)}let l=new A6e;l.index=0,l.primitives=[c];let u=new F6e;u.nodes=[l],u.upAxis=En.Z,u.forwardAxis=En.X;let m=new N6e;m.scene=u,m.nodes=[l];let f=[];m.structuralMetadata=nqe(n,f,i),f.length>0&&oqe(e,c,f,t),d(n.rtcCenter)&&(m.transform=P.multiplyByTranslation(m.transform,n.rtcCenter,m.transform));let b=n.positions;d(b)&&b.isQuantized&&(m.transform=P.multiplyByTranslation(m.transform,b.quantizedVolumeOffset,m.transform)),e._components=m,e._parsedContent=void 0,e._arrayBuffer=void 0}function oqe(e,t,n,i){let o=t.attributes,r=n.length;for(let s=0;s<r;s++){let a=n[s],c=nt.createVertexBuffer({typedArray:a.typedArray,context:i,usage:Me.STATIC_DRAW});c.vertexArrayDestroyable=!1,e._buffers.push(c),a.buffer=c,a.typedArray=void 0,o.push(a)}t.propertyAttributeIds=[0]}Px.prototype.unload=function(){let e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0,this._arrayBuffer=void 0};var ev=Px;var I8n=S(C(),1);var u8n=S(C(),1);var nZ={};nZ._deprecationWarning=lr;var vx=Uint32Array.BYTES_PER_ELEMENT;nZ.parse=function(e,t,n,i){t=g(t,0);let r=new DataView(e),s=new Uint8Array(e),a=0,c=0,l=0,u=0,m=r.getUint32(t,!0);t+=vx;let f;if(m>0){let Z=Wr(s,t,m);t+=m,f=JSON.parse(Z),i.tileset.loadChildTileSet(n,f,i)}t+=vx,a=r.getUint32(t,!0),t+=vx,c=r.getUint32(t,!0),t+=vx,l=r.getUint32(t,!0),t+=vx,u=r.getUint32(t,!0),t+=vx;let b;m=r.getUint32(t,!0),l>=570425344?(t-=vx*2,b=a,l=c,u=0,a=0,c=0,nZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):u>=570425344&&(t-=vx,b=l,l=a,u=c,a=0,c=0,nZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel."));let p;a===0?p={BATCH_LENGTH:g(b,0)}:(p=ho(s,t,a),t+=a);let x=new Uint8Array(e,t,c);t+=c;let T,_;l>0&&(T=ho(s,t,l),t+=l,u>0&&(_=new Uint8Array(e,t,u),_=new Uint8Array(_),t+=u));let L=e.byteLength-t,V;return t%4===0?V=new Uint8Array(e,t,L):(nZ._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),V=new Uint8Array(s.subarray(t,t+L))),{batchLength:b,featureTableJson:p,featureTableBinary:x,batchTableJson:T,batchTableBinary:_,gltf:V}};var tv=nZ;var H1={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},rqe=hn.FeatureIdAttribute;function Nx(e){e=g(e,g.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,En.Y),l=g(e.forwardAxis,En.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadAttributesFor2D,!1),f=g(e.enablePick,!1),b=g(e.loadIndicesForWireframe,!1),p=g(e.loadPrimitiveOutline,!0),x=g(e.loadForClassification,!1);n=d(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadAttributesFor2D=m,this._enablePick=f,this._loadIndicesForWireframe=b,this._loadPrimitiveOutline=p,this._loadForClassification=x,this._state=H1.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=P.IDENTITY,this._tilesetVersion=e.tilesetVersion,this._tile=e.tile,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(Nx.prototype=Object.create(vi.prototype),Nx.prototype.constructor=Nx);Object.defineProperties(Nx.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Nx.prototype.load=function(){if(d(this._promise))return this._promise;let e=tv.parse(this._arrayBuffer,this._byteOffset,this._baseResource,this._tile),t=e.featureTableJson,n=e.featureTableBinary,i=e.batchTableJson,o=e.batchTableBinary,r=new ma(t,n);this._tilesetVersion==="1.0"&&(this._batchLength=r.getGlobalProperty("BATCH_LENGTH"));let s=r.getGlobalProperty("RTC_CENTER",H.FLOAT,3);if(d(s)&&(this._transform=P.fromTranslation(h.fromArray(s))),d(i)){if(i.hasOwnProperty("name")){i.OID=[];let l=i.name;for(let u=0;u<l.length;u++){let m=l[u].split("_"),f=parseInt(m[2]);i.OID.push(f)}}this._batchTable={json:i,binary:o}}let a=new Dc({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=a,this._state=H1.LOADING;let c=this;return this._promise=a.load().then(function(){if(!c.isDestroyed())return c._state=H1.PROCESSING,c}).catch(function(l){if(!c.isDestroyed())return sqe(c,l)}),this._promise};function sqe(e,t){return e.unload(),e._state=H1.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}Nx.prototype.process=function(e){if(this._state===H1.READY)return!0;if(this._state!==H1.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=P.multiplyTransformation(this._transform,n.transform,n.transform),aqe(this,n),this._components=n,this._arrayBuffer=void 0,this._state=H1.READY,!0};function aqe(e,t){let n=e._batchTable,i=e._batchLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n?.json))r=Nu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let c=new as({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new ur({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)E0e(s[c]);t.structuralMetadata=r}function E0e(e){let t=e.children.length;for(let i=0;i<t;i++)E0e(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let o=e.primitives[i],r=fn.getAttributeBySemantic(o,ut.FEATURE_ID);if(d(r)){r.setIndex=0;let s=new rqe;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",o.featureIds.push(s)}}}Nx.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var nv=Nx;var M8n=S(C(),1),cqe={FILL:0,SILHOUETTE:1,ALL:2},Lp=Object.freeze(cqe);function zi(e){e=g(e,g.EMPTY_OBJECT),this._loader=e.loader,this._resource=e.resource,this.type=g(e.type,xr.GLTF),this.modelMatrix=P.clone(g(e.modelMatrix,P.IDENTITY)),this._modelMatrix=P.clone(this.modelMatrix),this._scale=g(e.scale,1),this._minimumPixelSize=g(e.minimumPixelSize,0),this._maximumScale=e.maximumScale,this._clampedScale=d(this._maximumScale)?Math.min(this._scale,this._maximumScale):this._scale,this._computedScale=this._clampedScale,this._updateModelMatrix=!1,this.referenceMatrix=void 0,this._iblReferenceFrameMatrix=$.clone($.IDENTITY),this._resourcesLoaded=!1,this._drawCommandsBuilt=!1,this._ready=!1,this._customShader=e.customShader,this._content=e.content,this._texturesLoaded=!1,this._defaultTexture=void 0,this._activeAnimations=new Kw(this),this._clampAnimations=g(e.clampAnimations,!0),this._userAnimationDirty=!1,this._id=e.id,this._idDirty=!1,this._color=z.clone(e.color),this._backupColor=z.clone(e.color),this._colorBlendMode=g(e.colorBlendMode,fl.HIGHLIGHT),this._colorBlendAmount=g(e.colorBlendAmount,.5);let t=g(e.silhouetteColor,z.RED);this._silhouetteColor=z.clone(t),this._silhouetteSize=g(e.silhouetteSize,0),this._silhouetteDirty=!1,this._silhouetteId=void 0,this._cull=g(e.cull,!0),this._opaquePass=g(e.opaquePass,Ze.OPAQUE),this._allowPicking=g(e.allowPicking,!0),this._show=g(e.show,!0),this._style=void 0,this._styleDirty=!1,this._styleCommandsNeeded=void 0;let n=g(e.featureIdLabel,"featureId_0");typeof n=="number"&&(n=`featureId_${n}`),this._featureIdLabel=n;let i=g(e.instanceFeatureIdLabel,"instanceFeatureId_0");typeof i=="number"&&(i=`instanceFeatureId_${i}`),this._instanceFeatureIdLabel=i,this._featureTables=[],this._featureTableId=void 0,this._featureTableIdDirty=!0,this._pipelineResources=[],this._modelResources=[],this._pickIds=[],this._boundingSphere=new de,this._initialRadius=void 0,this._heightReference=g(e.heightReference,rt.NONE),this._heightDirty=this._heightReference!==rt.NONE,this._removeUpdateHeightCallback=void 0,this._enableVerticalExaggeration=g(e.enableVerticalExaggeration,!0),this._hasVerticalExaggeration=!1,this._clampedModelMatrix=void 0;let o=e.scene;d(o)&&d(o.terrainProviderChanged)&&(this._terrainProviderChangedCallback=o.terrainProviderChanged.addEventListener(()=>{this._heightDirty=!0})),this._scene=o,this._distanceDisplayCondition=e.distanceDisplayCondition;let r=new Bm(e.pointCloudShading);this._pointCloudShading=r,this._attenuation=r.attenuation,this._pointCloudBackFaceCulling=r.backFaceCulling;let s=e.clippingPlanes;d(s)&&s.owner===void 0?Vr.setOwner(s,this,"_clippingPlanes"):this._clippingPlanes=s,this._clippingPlanesState=0,this._clippingPlanesMatrix=P.clone(P.IDENTITY);let a=e.clippingPolygons;d(a)&&a.owner===void 0?Od.setOwner(a,this,"_clippingPolygons"):this._clippingPolygons=a,this._clippingPolygonsState=0,this._lightColor=h.clone(e.lightColor),this._imageBasedLighting=d(e.imageBasedLighting)?e.imageBasedLighting:new Xb,this._shouldDestroyImageBasedLighting=!d(e.imageBasedLighting),this._backFaceCulling=g(e.backFaceCulling,!0),this._backFaceCullingDirty=!1,this._shadows=g(e.shadows,On.ENABLED),this._shadowsDirty=!1,this._debugShowBoundingVolumeDirty=!1,this._debugShowBoundingVolume=g(e.debugShowBoundingVolume,!1),this._enableDebugWireframe=g(e.enableDebugWireframe,!1),this._enableShowOutline=g(e.enableShowOutline,!0),this._debugWireframe=g(e.debugWireframe,!1),this._debugWireframe===!0&&this._enableDebugWireframe===!1&&this.type===xr.GLTF&&Ft("model-debug-wireframe-ignored","enableDebugWireframe must be set to true in Model.fromGltf, otherwise debugWireframe will be ignored.");let c=e.credit;typeof c=="string"&&(c=new Ot(c)),this._credits=[],this._credit=c,this._resourceCredits=[],this._gltfCredits=[],this._showCreditsOnScreen=g(e.showCreditsOnScreen,!1),this._showCreditsOnScreenDirty=!0,this._splitDirection=g(e.splitDirection,ss.NONE),this._swipeInverse=!1,this._swiper={},this._enableShowOutline=g(e.enableShowOutline,!0),this.showOutline=g(e.showOutline,!0),this.outlineColor=g(e.outlineColor,z.BLACK),this._classificationType=e.classificationType,this._statistics=new UP,this._sceneMode=void 0,this._projectTo2D=g(e.projectTo2D,!1),this._enablePick=g(e.enablePick,!1),this._fogRenderable=void 0,this._skipLevelOfDetail=!1,this._ignoreCommands=g(e.ignoreCommands,!1),this._errorEvent=new Se,this._readyEvent=new Se,this._texturesReadyEvent=new Se,this._sceneGraph=void 0,this._nodesByName={},this.pickObject=e.pickObject,this._fillClip=g(e.fillClip,!1),this._hasSectionGeometry=g(e.hasSectionGeometry,!1),this._clippingFillImage=g(e.clippingFillImage,void 0),this._lightState={pointLightNum:0,directionalLigthNum:0,spotLightNum:0},this._renderMode=g(e.renderMode,Lp.FILL),this._deleteVerticalPlane=g(e.deleteVerticalPlane,!1),this._hasSectionGeometry=this.content?.tileset._hasSectionGeometry,this._clippingGeometries=e.clippingGeometries,this._brightness=0,this._modelUpAxis=En.Y,this._exposure=0,this._contrast=1,this._hue=0,this._saturation=0,this._gamma=1,this._nodeCommands=[]}function C8(e,t){if(e._errorEvent.numberOfListeners>0){e._errorEvent.raiseEvent(t);return}console.log(t)}function lqe(e,t){let n=e._featureTables,i=t.propertyTables,o=i.length;for(let r=0;r<o;r++){let s=i[r],a=new Qw({model:e,propertyTable:s});n.push(a)}return n}function dqe(e,t){let n=t._featureIdLabel,i=t._instanceFeatureIdLabel,o,r,s,a;for(o=0;o<e.nodes.length;o++)if(a=e.nodes[o],d(a.instances)&&(s=fn.getFeatureIdsByLabel(a.instances.featureIds,i),d(s)&&d(s.propertyTableId)))return s.propertyTableId;for(o=0;o<e.nodes.length;o++)for(a=e.nodes[o],r=0;r<a.primitives.length;r++){let c=a.primitives[r],l=fn.getFeatureIdsByLabel(c.featureIds,n);if(d(l))return l.propertyTableId}if(t._featureTables.length===1)return 0}function Z8(e,t){if(!d(e)&&!d(t))return!1;if(d(e)!==d(t))return!0;let n=e.alpha,i=t.alpha;return Math.floor(n)!==Math.floor(i)||Math.ceil(n)!==Math.ceil(i)}Object.defineProperties(zi.prototype,{ready:{get:function(){return this._ready}},errorEvent:{get:function(){return this._errorEvent}},readyEvent:{get:function(){return this._readyEvent}},incrementallyLoadTextures:{get:function(){return g(this._loader.incrementallyLoadTextures,!1)}},texturesReadyEvent:{get:function(){return this._texturesReadyEvent}},loader:{get:function(){return this._loader}},statistics:{get:function(){return this._statistics}},activeAnimations:{get:function(){return this._activeAnimations}},clampAnimations:{get:function(){return this._clampAnimations},set:function(e){this._clampAnimations=e}},cull:{get:function(){return this._cull}},opaquePass:{get:function(){return this._opaquePass}},pointCloudShading:{get:function(){return this._pointCloudShading},set:function(e){e!==this._pointCloudShading&&this.resetDrawCommands(),this._pointCloudShading=e}},customShader:{get:function(){return this._customShader},set:function(e){e!==this._customShader&&this.resetDrawCommands(),this._customShader=e}},sceneGraph:{get:function(){return this._sceneGraph}},content:{get:function(){return this._content}},heightReference:{get:function(){return this._heightReference},set:function(e){e!==this._heightReference&&(this._heightDirty=!0),this._heightReference=e}},distanceDisplayCondition:{get:function(){return this._distanceDisplayCondition},set:function(e){this._distanceDisplayCondition=nn.clone(e,this._distanceDisplayCondition)}},structuralMetadata:{get:function(){return this._sceneGraph.components.structuralMetadata}},featureTableId:{get:function(){return this._featureTableId},set:function(e){this._featureTableId=e}},featureTables:{get:function(){return this._featureTables},set:function(e){this._featureTables=e}},id:{get:function(){return this._id},set:function(e){e!==this._id&&(this._idDirty=!0),this._id=e}},allowPicking:{get:function(){return this._allowPicking}},style:{get:function(){return this._style},set:function(e){this._style=e,this._styleDirty=!0}},color:{get:function(){return this._color},set:function(e){Z8(e,this._color)&&this.resetDrawCommands(),this._color=z.clone(e,this._color)}},colorBlendMode:{get:function(){return this._colorBlendMode},set:function(e){this._colorBlendMode=e}},colorBlendAmount:{get:function(){return this._colorBlendAmount},set:function(e){this._colorBlendAmount=e}},silhouetteColor:{get:function(){return this._silhouetteColor},set:function(e){if(!z.equals(e,this._silhouetteColor)){let t=Z8(e,this._silhouetteColor);this._silhouetteDirty=this._silhouetteDirty||t}this._silhouetteColor=z.clone(e,this._silhouetteColor)}},silhouetteSize:{get:function(){return this._silhouetteSize},set:function(e){if(e!==this._silhouetteSize){let t=this._silhouetteSize,n=e>0&&t===0||e===0&&t>0;this._silhouetteDirty=this._silhouetteDirty||n,this._backFaceCullingDirty=this._backFaceCullingDirty||n}this._silhouetteSize=e}},boundingSphere:{get:function(){let e=d(this._clampedModelMatrix)?this._clampedModelMatrix:this.modelMatrix;return M0e(this,e),this._boundingSphere}},localBoundingSphere:{get:function(){let e=d(this._maximumScale)?Math.min(this._scale,this._maximumScale):this._scale,t=this._boundingSphere.clone();return t.center=h.multiplyByScalar(this._sceneGraph.boundingSphere.center,e,t.center),t.radius=this._initialRadius*this._clampedScale,t}},debugShowBoundingVolume:{get:function(){return this._debugShowBoundingVolume},set:function(e){this._debugShowBoundingVolume!==e&&(this._debugShowBoundingVolumeDirty=!0),this._debugShowBoundingVolume=e}},debugWireframe:{get:function(){return this._debugWireframe},set:function(e){this._debugWireframe!==e&&this.resetDrawCommands(),this._debugWireframe=e,this._debugWireframe===!0&&this._enableDebugWireframe===!1&&this.type===xr.GLTF&&Ft("model-debug-wireframe-ignored","enableDebugWireframe must be set to true in Model.fromGltfAsync, otherwise debugWireframe will be ignored.")}},show:{get:function(){return this._show},set:function(e){this._show=e}},featureIdLabel:{get:function(){return this._featureIdLabel},set:function(e){typeof e=="number"&&(e=`featureId_${e}`),e!==this._featureIdLabel&&(this._featureTableIdDirty=!0),this._featureIdLabel=e}},instanceFeatureIdLabel:{get:function(){return this._instanceFeatureIdLabel},set:function(e){typeof e=="number"&&(e=`instanceFeatureId_${e}`),e!==this._instanceFeatureIdLabel&&(this._featureTableIdDirty=!0),this._instanceFeatureIdLabel=e}},clippingPlanes:{get:function(){return this._clippingPlanes},set:function(e){e!==this._clippingPlanes&&(Vr.setOwner(e,this,"_clippingPlanes"),this.resetDrawCommands())}},clippingGeometries:{get:function(){return this._clippingGeometries},set:function(e){this._clippingGeometries!==e&&(this._clippingGeometries=e,this.resetDrawCommands())}},clippingPolygons:{get:function(){return this._clippingPolygons},set:function(e){e!==this._clippingPolygons&&(Od.setOwner(e,this,"_clippingPolygons"),this.resetDrawCommands())}},enableVerticalExaggeration:{get:function(){return this._enableVerticalExaggeration},set:function(e){e!==this._enableVerticalExaggeration&&this.resetDrawCommands(),this._enableVerticalExaggeration=e}},hasVerticalExaggeration:{get:function(){return this._hasVerticalExaggeration}},lightColor:{get:function(){return this._lightColor},set:function(e){d(e)!==d(this._lightColor)&&this.resetDrawCommands(),this._lightColor=h.clone(e,this._lightColor)}},imageBasedLighting:{get:function(){return this._imageBasedLighting},set:function(e){e!==this._imageBasedLighting&&(this._shouldDestroyImageBasedLighting&&!this._imageBasedLighting.isDestroyed()&&this._imageBasedLighting.destroy(),this._imageBasedLighting=e,this._shouldDestroyImageBasedLighting=!1,this.resetDrawCommands())}},backFaceCulling:{get:function(){return this._backFaceCulling},set:function(e){e!==this._backFaceCulling&&(this._backFaceCullingDirty=!0),this._backFaceCulling=e}},scale:{get:function(){return this._scale},set:function(e){e!==this._scale&&(this._updateModelMatrix=!0),this._scale=e}},computedScale:{get:function(){return this._computedScale}},renderMode:{get:function(){return this._renderMode},set:function(e){this._renderMode=e}},minimumPixelSize:{get:function(){return this._minimumPixelSize},set:function(e){e!==this._minimumPixelSize&&(this._updateModelMatrix=!0),this._minimumPixelSize=e}},maximumScale:{get:function(){return this._maximumScale},set:function(e){e!==this._maximumScale&&(this._updateModelMatrix=!0),this._maximumScale=e}},shadows:{get:function(){return this._shadows},set:function(e){e!==this._shadows&&(this._shadowsDirty=!0),this._shadows=e}},credit:{get:function(){return this._credit}},showCreditsOnScreen:{get:function(){return this._showCreditsOnScreen},set:function(e){this._showCreditsOnScreen!==e&&(this._showCreditsOnScreenDirty=!0),this._showCreditsOnScreen=e}},splitDirection:{get:function(){return this._splitDirection},set:function(e){this._splitDirection!==e&&this.resetDrawCommands(),this._splitDirection=e}},rollerShutterRegion:{get:function(){return this._rollerShutterRegion},set:function(e){this._rollerShutterRegion=e}},rollerShutterSpyglassRegion:{get:function(){return this._rollerShutterSpyglassRegion},set:function(e){this._rollerShutterSpyglassRegion=e}},rollerShutterPolygonRegion:{get:function(){return this._rollerShutterPolygonRegion},set:function(e){this._rollerShutterPolygonRegion=e}},swipeInverse:{get:function(){return this._swipeInverse},set:function(e){this._swipeInverse=e}},swiper:{get:function(){return this._swiper},set:function(e){this._swiper=e}},classificationType:{get:function(){return this._classificationType}},pickIds:{get:function(){return this._pickIds}},styleCommandsNeeded:{get:function(){return this._styleCommandsNeeded}}});zi.prototype.getNode=function(e){return this._nodesByName[e]};zi.prototype.setArticulationStage=function(e,t){this._sceneGraph.setArticulationStage(e,t)};zi.prototype.applyArticulations=function(){this._sceneGraph.applyArticulations()};zi.prototype.getExtension=function(e){return this._loader.components.extensions[e]};zi.prototype.makeStyleDirty=function(){this._styleDirty=!0};zi.prototype.resetDrawCommands=function(){this._drawCommandsBuilt=!1};var uqe=new P,mqe=new $,hqe=new P;zi.prototype.update=function(e){let t=!1;try{t=pqe(this,e)}catch(n){if(!this._loader.incrementallyLoadTextures&&n.name==="TextureError")C8(this,n);else{let i=fn.getError("model",this._resource,n);C8(this,i)}}if(fqe(this,e),bqe(this,e),!this._resourcesLoaded&&t){this._resourcesLoaded=!0;let n=this._loader.components;if(!d(n)){if(this._loader.isUnloaded())return;let r=fn.getError("model",this._resource,new le("Failed to load model."));C8(r),this._rejectLoad=this._rejectLoad&&this._rejectLoad(r)}let i=n.structuralMetadata;d(i)&&i.propertyTableCount>0&&lqe(this,i);let o=new DP({model:this,modelComponents:n});this._sceneGraph=o,this._gltfCredits=o.components.asset.credits}if(!(!this._resourcesLoaded||e.mode===ae.MORPHING)){if(yqe(this),gqe(this),xqe(this,e),Tqe(this),_qe(this,e),Sqe(this,e),Cqe(this,e),Lqe(this,e),Vqe(this,e),Zqe(this,e),Rqe(this,e),Iqe(this,e),Xqe(this,e),Mqe(this,e),Wqe(this,e),wqe(this,e),Pqe(this,e),vqe(this,e),this._defaultTexture=e.context.defaultTexture,Nqe(this,e),Fqe(this,e),Aqe(this),Dqe(this,e),Yqe(this,e),Eqe(this,e),!this._ready){e.afterRender.push(()=>{this._ready=!0,this._readyEvent.raiseEvent(this)});return}this._loader.incrementallyLoadTextures&&!this._texturesLoaded&&this._loader.texturesLoaded&&(this.resetDrawCommands(),this._texturesLoaded=!0,this._texturesReadyEvent.raiseEvent(this)),kqe(this),Bqe(this,e),Oqe(this),Gqe(this,e),Kqe(this,e)}};function pqe(e,t){return!e._resourcesLoaded||e._loader.incrementallyLoadTextures&&!e._texturesLoaded?(t.afterRender.push(()=>!0),e._loader.process(t)):!0}function fqe(e,t){d(e._customShader)&&e._customShader.update(t)}function bqe(e,t){e._imageBasedLighting.update(t),e._imageBasedLighting.shouldRegenerateShaders&&e.resetDrawCommands()}function yqe(e){if(!e._featureTableIdDirty)return;e._featureTableIdDirty=!1;let t=e._sceneGraph.components,n=t.structuralMetadata;d(n)&&n.propertyTableCount>0&&(e.featureTableId=dqe(t,e),e._styleDirty=!0,e.resetDrawCommands())}function gqe(e){e._styleDirty&&(e.applyStyle(e._style),e._styleDirty=!1)}function xqe(e,t){let n=e._featureTables,i=n.length,o=!1;for(let r=0;r<i;r++)e._content&&e._content.tileset&&e.isFlatten&&n[r].applyFlatten(e._content.tileset._flattenOIds,e._content.tileset.version,t),n[r].update(t),n[r].styleCommandsNeededDirty&&(o=!0);o&&X0e(e)}function X0e(e){let t=e.featureTables[e.featureTableId];e._styleCommandsNeeded=Sp.getStyleCommandsNeeded(t.featuresLength,t.batchTexture.translucentFeaturesLength)}function Tqe(e){let t=e.pointCloudShading;t.attenuation!==e._attenuation&&(e.resetDrawCommands(),e._attenuation=t.attenuation),t.backFaceCulling!==e._pointCloudBackFaceCulling&&(e.resetDrawCommands(),e._pointCloudBackFaceCulling=t.backFaceCulling)}function _qe(e,t){e._silhouetteDirty&&(w0e(t)&&e.resetDrawCommands(),e._silhouetteDirty=!1)}function Sqe(e,t){let n=e.hasSkipLevelOfDetail(t);n!==e._skipLevelOfDetail&&(e.resetDrawCommands(),e._skipLevelOfDetail=n)}function Cqe(e,t){let n=0;e.isClippingEnabled()&&(e._clippingPlanes.owner===e&&e._clippingPlanes.update(t),n=e._clippingPlanes.clippingPlanesState),n!==e._clippingPlanesState&&(e.resetDrawCommands(),e._clippingPlanesState=n,e._clipFillUtil=void 0)}function Lqe(e,t){let n=0;e.isClippingPolygonsEnabled()&&(e._clippingPolygons.owner===e&&(e._clippingPolygons.update(t),e._clippingPolygons.queueCommands(t)),n=e._clippingPolygons.clippingPolygonsState),n!==e._clippingPolygonsState&&(e.resetDrawCommands(),e._clippingPolygonsState=n)}function Vqe(e,t){t.mode!==e._sceneMode&&(e._projectTo2D?e.resetDrawCommands():e._updateModelMatrix=!0,e._sceneMode=t.mode)}function Zqe(e,t){let n=t.fog.enabled&&t.fog.renderable;n!==e._fogRenderable&&(e.resetDrawCommands(),e._fogRenderable=n)}function Rqe(e,t){if(e.enableVerticalExaggeration){let n=t.verticalExaggeration!==1;e.hasVerticalExaggeration!==n&&(e.resetDrawCommands(),e._hasVerticalExaggeration=n)}else e.hasVerticalExaggeration&&(e.resetDrawCommands(),e._hasVerticalExaggeration=!1)}function Gqe(e,t){e._clippingFillImage=e?.content?.tileset?.clippingFillImage,e._fillClip&&d(e._clipFillUtil)&&(e.isClippingEnabled()||e.isGeometryClipEnabled())&&e._clipFillUtil.update(t)}function Eqe(e,t){let n=e?.content?.tileset?._sectionRenders;if(d(n))for(let i=0;i<n.length;i++)n[i].updateModel(t,e)}function Iqe(e,t){let n=e?.content?.tileset;d(n)&&d(n._explosionTextureData)&&d(n._explosionIdTexture)&&d(n._explosionDirectionTexture)&&e.resetDrawCommands()}function Xqe(e,t){let n=t.lightManager,i=!1;e._lightState.pointLightNum!==n.pointLights.length&&(i=!0,e._lightState.pointLightNum=n.pointLights.length),e._lightState.directionalLigthNum!==n.directionalLights.length&&(i=!0,e._lightState.directionalLigthNum=n.directionalLights.length),e._lightState.spotLightNum!==n.spotLights.length&&(i=!0,e._lightState.spotLightNum=n.spotLights.length),i&&e.resetDrawCommands()}function Mqe(e,t){let n=e?.content?.tileset;d(n)&&n._enableStretch&&n._stretchFactor!==1&&e.resetDrawCommands()}function wqe(e,t){let n=e?.content?.tileset;d(n)&&n._deleteVerticalPlane&&(e._deleteVerticalPlane=n._deleteVerticalPlane,e.resetDrawCommands(),n._deleteVerticalPlaneChanged=!1)}function Wqe(e,t){let n=e?.content?.tileset;d(n)&&n.swipeEnabled&&e.resetDrawCommands()}function Pqe(e,t){let n=e?.content?.tileset;d(n)&&n.isFlatten&&(e._flattenWithId=!!(n._flattenOIds&&n._flattenOIds.length>0),e._modelUpAxis=n._modelUpAxis,e.resetDrawCommands())}function vqe(e,t){let n=e?.content?.tileset;if(n?.version==="2.0"){let o=e?.content?.tile;d(o.nodeColor)&&n._changeNodeColor?z.equals(e._color,o.nodeColor)||(e._color=o.nodeColor,e.resetDrawCommands()):d(e._color)&&!n._changeNodeColor&&!d(e._style)&&(e._color=void 0,e.resetDrawCommands())}}function Nqe(e,t){e._drawCommandsBuilt||(e.destroyPipelineResources(),e._sceneGraph.buildDrawCommands(t),e._drawCommandsBuilt=!0)}function Fqe(e,t){P.equals(e.modelMatrix,e._modelMatrix)||(e._updateModelMatrix=!0,e._modelMatrix=P.clone(e.modelMatrix,e._modelMatrix))}var Fx=new h,L8=new me;function Aqe(e){if(!e._updateModelMatrix&&!e._heightDirty&&e._minimumPixelSize===0)return;d(e._removeUpdateHeightCallback)&&(e._removeUpdateHeightCallback(),e._removeUpdateHeightCallback=void 0);let t=e._scene;if(!d(t)||e.heightReference===rt.NONE){e._clampedModelMatrix=void 0;return}let n=g(t.ellipsoid,oe.default),i=e.modelMatrix;Fx.x=i[12],Fx.y=i[13],Fx.z=i[14];let o=n.cartesianToCartographic(Fx);d(e._clampedModelMatrix)||(e._clampedModelMatrix=P.clone(i,new P)),e._removeUpdateHeightCallback=t.updateHeight(o,I0e(e,n,o),e.heightReference);let r=t.getHeight(o,e.heightReference);if(d(r)){let s=I0e(e,n,o);me.clone(o,L8),L8.height=r,s(L8)}e._heightDirty=!1,e._updateModelMatrix=!0}function Dqe(e,t){if(!e._updateModelMatrix&&e._minimumPixelSize===0)return;let n=d(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;M0e(e,n),Uqe(e,n,t)}function M0e(e,t){e._clampedScale=d(e._maximumScale)?Math.min(e._scale,e._maximumScale):e._scale,e._boundingSphere.center=h.multiplyByScalar(e._sceneGraph.boundingSphere.center,e._clampedScale,e._boundingSphere.center),e._boundingSphere.radius=e._initialRadius*e._clampedScale,e._boundingSphere=de.transform(e._boundingSphere,t,e._boundingSphere)}function Uqe(e,t,n){let i=e.scale;if(e.minimumPixelSize!==0&&!e._projectTo2D){let o=n.context,r=Math.max(o.drawingBufferWidth,o.drawingBufferHeight);P.getTranslation(t,Fx),e._sceneMode!==ae.SCENE3D&&yo.computeActualEllipsoidPosition(n,Fx,Fx);let s=e._boundingSphere.radius,a=Hqe(Fx,s,n),c=1/a;Math.min(c*(2*s),r)<e.minimumPixelSize&&(i=e.minimumPixelSize*a/(2*e._initialRadius))}e._computedScale=d(e.maximumScale)?Math.min(e.maximumScale,i):i}function kqe(e){if(!e._idDirty)return;e._idDirty=!1;let t=e._id,n=e._pickIds,i=n.length;for(let o=0;o<i;++o)n[o].object.id=t}var zqe=new $(1,0,0,0,0,1,0,-1,0);function Yqe(e,t){let n=d(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix,i=g(e.referenceMatrix,n),o=t.context,r=e._imageBasedLighting;if(r.useSphericalHarmonicCoefficients||r.useSpecularEnvironmentMaps){let s=mqe,a=uqe;a=P.multiply(o.uniformState.view3D,i,a),s=P.getRotation(a,s),s=$.transpose(s,s),e._iblReferenceFrameMatrix=$.multiply(zqe,s,e._iblReferenceFrameMatrix)}if(e.isClippingEnabled()){let s=hqe;s=P.multiply(o.uniformState.view3D,i,s),s=P.multiply(s,e._clippingPlanes.modelMatrix,s),e._clippingPlanesMatrix=P.inverseTranspose(s,e._clippingPlanesMatrix)}}function Bqe(e,t){let n=e._sceneGraph;if(e._updateModelMatrix||e._minimumPixelSize!==0){let o=d(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;n.updateModelMatrix(o,t),e._updateModelMatrix=!1}e._backFaceCullingDirty&&(n.updateBackFaceCulling(e._backFaceCulling),e._backFaceCullingDirty=!1),e._shadowsDirty&&(n.updateShadows(e._shadows),e._shadowsDirty=!1),e._debugShowBoundingVolumeDirty&&(n.updateShowBoundingVolume(e._debugShowBoundingVolume),e._debugShowBoundingVolumeDirty=!1);let i=!1;d(e.classificationType)||(i=e._userAnimationDirty||e._activeAnimations.update(t)),n.update(t,i),e._userAnimationDirty=!1}function Oqe(e){if(!e._showCreditsOnScreenDirty)return;e._showCreditsOnScreenDirty=!1,e._credits.length=0;let t=e._showCreditsOnScreen;if(d(e._credit)){let s=Ot.clone(e._credit);s.showOnScreen=s.showOnScreen||t,e._credits.push(s)}let n=e._resourceCredits,i=n.length;for(let s=0;s<i;s++){let a=Ot.clone(n[s]);a.showOnScreen=a.showOnScreen||t,e._credits.push(a)}let o=e._gltfCredits,r=o.length;for(let s=0;s<r;s++){let a=Ot.clone(o[s]);a.showOnScreen=a.showOnScreen||t,e._credits.push(a)}}function Kqe(e,t){let n=Qqe(e,t),i=e.isInvisible(),o=e.hasSilhouette(t),r=e._show&&e._computedScale!==0&&n&&(!i||o),s=t.passes,a=s.render||s.pick&&e.allowPicking,c=e.content?.tileset._sectionOnly;r&&!e._ignoreCommands&&a&&!c&&(jqe(e,t),e._sceneGraph.pushDrawCommands(t))}var V8=new de;function Hqe(e,t,n){return V8.center=e,V8.radius=t,n.camera.getPixelSize(V8,n.context.drawingBufferWidth,n.context.drawingBufferHeight)}var Hz=new h;function I0e(e,t,n){return function(i){NL(e.heightReference)&&(i.height+=n.height),t.cartographicToCartesian(i,Hz);let o=e._clampedModelMatrix;P.clone(e.modelMatrix,o),o[12]=Hz.x,o[13]=Hz.y,o[14]=Hz.z,e._heightDirty=!0}}var Jqe=new h;function Qqe(e,t){let n=e.distanceDisplayCondition;if(!d(n))return!0;let i=n.near*n.near,o=n.far*n.far,r;if(t.mode===ae.SCENE2D){let a=(t.camera.frustum.right-t.camera.frustum.left)*.5;r=a*a}else{let s=P.getTranslation(e.modelMatrix,Jqe);yo.computeActualEllipsoidPosition(t,s,s),r=h.distanceSquared(s,t.camera.positionWC)}return r>=i&&r<=o}function jqe(e,t){let n=t.creditDisplay,i=e._credits,o=i.length;for(let r=0;r<o;r++)n.addCreditToNextFrame(i[r])}zi.prototype.isTranslucent=function(){let e=this.color;return d(e)&&e.alpha>0&&e.alpha<1};zi.prototype.isInvisible=function(){let e=this.color;return d(e)&&e.alpha===0};function w0e(e){return e.context.stencilBuffer}zi.prototype.hasSilhouette=function(e){return w0e(e)&&this._silhouetteSize>0&&this._silhouetteColor.alpha>0&&!d(this._classificationType)};zi.prototype.hasSkipLevelOfDetail=function(e){if(!xr.is3DTiles(this.type))return!1;let t=e.context.stencilBuffer,n=this._content.tileset;return t&&n.isSkippingLevelOfDetail};zi.prototype.isClippingEnabled=function(){let e=this._clippingPlanes;return d(e)&&e.enabled&&e.length!==0};zi.prototype.isGeometryClipEnabled=function(){let e=this._clippingGeometries;return d(e)};zi.prototype.pick=function(e,t,n,i,o){return eZ(this,e,t,n,i,o)};zi.prototype.isClippingPolygonsEnabled=function(){let e=this._clippingPolygons;return d(e)&&e.enabled&&e.length!==0};zi.prototype.isDestroyed=function(){return!1};zi.prototype.destroy=function(){let e=this._loader;d(e)&&e.destroy();let t=this._featureTables;if(d(t)){let r=t.length;for(let s=0;s<r;s++)t[s].destroy()}this.destroyPipelineResources(),this.destroyModelResources(),d(this._removeUpdateHeightCallback)&&(this._removeUpdateHeightCallback(),this._removeUpdateHeightCallback=void 0),d(this._terrainProviderChangedCallback)&&(this._terrainProviderChangedCallback(),this._terrainProviderChangedCallback=void 0);let n=this._clippingPlanes;d(n)&&!n.isDestroyed()&&n.owner===this&&n.destroy(),this._clippingPlanes=void 0;let i=this._clippingPolygons;d(i)&&!i.isDestroyed()&&i.owner===this&&i.destroy(),this._clippingPolygons=void 0,this._shouldDestroyImageBasedLighting&&!this._imageBasedLighting.isDestroyed()&&this._imageBasedLighting.destroy(),this._imageBasedLighting=void 0;let o=this._nodeCommands;for(let r=0;r<o.length;++r){let s=o[r],a=s.stencilCommand;d(a)&&d(a.shaderProgram)&&!a.shaderProgram.isDestroyed()&&(a.shaderProgram=a.shaderProgram.destroy()),a=s.sectionCommand,d(a)&&d(a.shaderProgram)&&!a.shaderProgram.isDestroyed()&&(a.shaderProgram=a.shaderProgram.destroy())}fe(this)};zi.prototype.destroyPipelineResources=function(){let e=this._pipelineResources;for(let t=0;t<e.length;t++)e[t].destroy();this._pipelineResources.length=0,this._pickIds.length=0};zi.prototype.destroyModelResources=function(){let e=this._modelResources;for(let t=0;t<e.length;t++)e[t].destroy();this._modelResources.length=0};zi.fromGltfAsync=async function(e){e=g(e,g.EMPTY_OBJECT);let t=g(e.url,e.gltf),n={releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),generateUniqueId:e.generateUniqueId},i=g(e.basePath,""),o=Xe.createIfNeeded(i);d(t.asset)?(n.gltfJson=t,n.baseResource=o,n.gltfResource=o):t instanceof Uint8Array?(n.typedArray=t,n.baseResource=o,n.gltfResource=o):n.gltfResource=Xe.createIfNeeded(t);let r=new Dc(n),a=d(e.content)?xr.TILE_GLTF:xr.GLTF,c=n.gltfResource,l=t0(r,a,e);l.resource=c;try{await r.load()}catch(b){throw r.destroy(),fn.getError("model",c,b)}let u=e.gltfCallback;d(u)&&u(r.gltfJson);let m=new zi(l),f=m._resource.credits;if(d(f)){let b=f.length;for(let p=0;p<b;p++)m._resourceCredits.push(Ot.clone(f[p]))}return m};zi.fromM3DData=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,tile:e.tile,hasSectionGeometry:e.hasSectionGeometry},n=new nv(t);try{await n.load();let i=t0(n,xr.TILE_B3DM,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromM3DGltf=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new JP(t);try{await n.load();let i=t0(n,xr.TILE_B3DM,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromM3DB3dm=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new QP(t);try{await n.load();let i=t0(n,xr.TILE_B3DM,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromM3DI3dm=async function(e){let t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new jP(t);try{await n.load();let i=t0(n,xr.TILE_I3DM,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromM3DPnts=async function(e){let t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,loadAttributesFor2D:e.projectTo2D,attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,tileset:e.tileset,tile:e.tile,resource:e.resource},n=new ev(t);try{await n.load();let i=t0(n,xr.TILE_PNTS,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromB3dm=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),generateUniqueId:e.generateUniqueId},n=new Aw(t);try{await n.load();let i=t0(n,xr.TILE_B3DM,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromPnts=async function(e){let t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,loadAttributesFor2D:e.projectTo2D,generateUniqueId:e.generateUniqueId},n=new zP(t);try{await n.load();let i=t0(n,xr.TILE_PNTS,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromI3dm=async function(e){let t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,generateUniqueId:e.generateUniqueId},n=new Uw(t);try{await n.load();let i=t0(n,xr.TILE_I3DM,e);return new zi(i)}catch(i){throw n.destroy(),i}};zi.fromGeoJson=async function(e){let t={geoJson:e.geoJson},n=new Dw(t),i=t0(n,xr.TILE_GEOJSON,e);return new zi(i)};var qqe=new z;zi.prototype.applyColorAndShow=function(e){let t=z.clone(this._color,qqe),n=d(e)&&d(e.color),i=d(e)&&d(e.show);this._color=n?e.color.evaluateColor(void 0,this._color):z.clone(z.WHITE,this._color),this._show=i?e.show.evaluate(void 0):!0,Z8(t,this._color)&&this.resetDrawCommands()};zi.prototype.applyStyle=function(e){let t=this.type===xr.TILE_PNTS,n=d(this.featureTableId)&&this.featureTables[this.featureTableId].featuresLength>0,i=d(this.structuralMetadata)?this.structuralMetadata.propertyAttributes:void 0,o=d(i)&&d(i[0]);if(t&&(!n||o)){this.resetDrawCommands();return}n?(this.featureTables[this.featureTableId].applyStyle(e),X0e(this,e)):(this.applyColorAndShow(e),this._styleCommandsNeeded=void 0)};function t0(e,t,n){return{loader:e,type:t,resource:n.resource,show:n.show,modelMatrix:n.modelMatrix,scale:n.scale,enableVerticalExaggeration:n.enableVerticalExaggeration,minimumPixelSize:n.minimumPixelSize,maximumScale:n.maximumScale,id:n.id,allowPicking:n.allowPicking,clampAnimations:n.clampAnimations,shadows:n.shadows,debugShowBoundingVolume:n.debugShowBoundingVolume,enableDebugWireframe:n.enableDebugWireframe,debugWireframe:n.debugWireframe,cull:n.cull,opaquePass:n.opaquePass,customShader:n.customShader,content:n.content,heightReference:n.heightReference,scene:n.scene,distanceDisplayCondition:n.distanceDisplayCondition,color:n.color,colorBlendAmount:n.colorBlendAmount,colorBlendMode:n.colorBlendMode,silhouetteColor:n.silhouetteColor,silhouetteSize:n.silhouetteSize,enableShowOutline:n.enableShowOutline,showOutline:n.showOutline,outlineColor:n.outlineColor,clippingPlanes:n.clippingPlanes,clippingPolygons:n.clippingPolygons,lightColor:n.lightColor,imageBasedLighting:n.imageBasedLighting,backFaceCulling:n.backFaceCulling,credit:n.credit,showCreditsOnScreen:n.showCreditsOnScreen,splitDirection:n.splitDirection,projectTo2D:n.projectTo2D,enablePick:n.enablePick,featureIdLabel:n.featureIdLabel,instanceFeatureIdLabel:n.instanceFeatureIdLabel,pointCloudShading:n.pointCloudShading,classificationType:n.classificationType,pickObject:n.pickObject,fillClip:n.fillClip,clippingFillImage:n.clippingFillImage}}var Ya=zi;function mr(e,t,n){this._tileset=e,this._tile=t,this._resource=n,this._model=void 0,this._metadata=void 0,this._group=void 0,this._ready=!1}Object.defineProperties(mr.prototype,{featuresLength:{get:function(){let e=this._model,t=e.featureTables,n=e.featureTableId;return d(t)&&d(t[n])?t[n].featuresLength:0}},pointsLength:{get:function(){return this._model.statistics.pointsLength}},trianglesLength:{get:function(){return this._model.statistics.trianglesLength}},geometryByteLength:{get:function(){return this._model.statistics.geometryByteLength}},texturesByteLength:{get:function(){return this._model.statistics.texturesByteLength}},batchTableByteLength:{get:function(){let e=this._model.statistics;return e.propertyTablesByteLength+e.batchTexturesByteLength}},innerContents:{get:function(){}},ready:{get:function(){return this._ready}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){let e=this._model,t=e.featureTables,n=e.featureTableId;if(d(t)&&d(t[n]))return t[n]}},metadata:{get:function(){return this._metadata},set:function(e){this._metadata=e}},group:{get:function(){return this._group},set:function(e){this._group=e}}});mr.prototype.getExtension=function(e){return this._model.getExtension(e)};mr.prototype.getFeature=function(e){let t=this._model,n=t.featureTableId;return t.featureTables[n].getFeature(e)};mr.prototype.hasProperty=function(e,t){let n=this._model,i=n.featureTableId;return d(i)?n.featureTables[i].hasProperty(e,t):!1};mr.prototype.applyDebugSettings=function(e,t){t=e?t:z.WHITE,this.featuresLength===0?this._model.color=t:d(this.batchTable)&&this.batchTable.setAllColor(t)};mr.prototype.applyStyle=function(e){this._model.style=e};mr.prototype.update=function(e,t){let n=this._model,i=this._tile;if(n.colorBlendAmount=e.colorBlendAmount,n.colorBlendMode=e.colorBlendMode,n.modelMatrix=i.computedTransform,n.customShader=e.customShader,n.featureIdLabel=e.featureIdLabel,n.instanceFeatureIdLabel=e.instanceFeatureIdLabel,n.lightColor=e.lightColor,n.imageBasedLighting=e.imageBasedLighting,n.backFaceCulling=e.backFaceCulling,n.shadows=e.shadows,n.showCreditsOnScreen=e.showCreditsOnScreen,n.splitDirection=e.splitDirection,n.debugWireframe=e.debugWireframe,n.rollerShutterRegion=new re(0,0,0,0),n.rollerShutterSpyglassRegion=void 0,n.rollerShutterPolygonRegion=void 0,(n.swiper.type!==t.swiper.type||n.swiper.swipeEnabled!==e.swipeEnabled)&&(n._shouldRegenerateShaders=!0),n.swiper=Ue(t.swiper),n.swiper.swipeEnabled=e.swipeEnabled,e.swipeEnabled){let s=t.swiper.type;s===Kn.HORIZONTAL||s===Kn.VERTICAL||s===Kn.RECTANGLE?n.rollerShutterRegion=t.context.uniformState._swipeRegion:s===Kn.SPYGLASS?n.rollerShutterSpyglassRegion=t.context.uniformState._swipeRegion:s===Kn.POLYGON&&(n.rollerShutterPolygonRegion=t.context.uniformState._swipeRegion),n.swipeInverse=e.swipeInverse===0?t.swiper.inverse:e.swipeInverse}n.showOutline=e.showOutline,n.outlineColor=e.outlineColor,n.pointCloudShading=e.pointCloudShading,n.textureCoordScale=e.textureCoordScale,n.clippingGeometries=e._clippingGeometries;let o=e.clippingPlanes;n.referenceMatrix=e.clippingPlanesOriginMatrix,d(o)&&i.clippingPlanesDirty&&(n._clippingPlanes=o.enabled&&i._isClipped?o:void 0,o.enabled&&i._isClipped&&(n._clippingPlanesState=0)),d(o)&&d(n._clippingPlanes)&&n._clippingPlanes!==o&&(n._clippingPlanes=o,n._clippingPlanesState=0);let r=e.clippingPolygons;if(d(r)&&i.clippingPolygonsDirty&&(n._clippingPolygons=r.enabled&&i._isClippedByPolygon?r:void 0),d(r)&&d(n._clippingPolygons)&&n._clippingPolygons!==r&&(n._clippingPolygons=r,n._clippingPolygonsState=0),n.enableExplosion=e.enableExplosion,n.enableCuttingFilter=e.enableCuttingFilter,n.enableExplosion||n.enableCuttingFilter){n.explosionIdTexture=e._explosionIdTexture,n.explosionDirectionTexture=e._explosionDirectionTexture,d(e._explosionTextureData)&&Array.isArray(e._explosionTextureData)?n.explosionTextureDataLength=e._explosionTextureData.length:n.explosionTextureDataLength=0;let s=0;if(e._version==="2.0"){let a=n.content.batchTable?._propertyTable._jsonMetadataTable._batchTableJson.OID;d(a)&&(s=a.length)}else if(e._version==="2.1"||e._version==="2.2"){let a=n.content.batchTable?._propertyTable._jsonMetadataTable._batchTableJson.tid;if(d(a)&&(s=a.tids.length,!d(n.explosionIdTableTexture))){let c=a.tids.map(u=>[u,0,0]),l=Float32Array.from(c.flat());n.explosionIdTableTexture=new it({context:t.context,source:{arrayBufferView:l,width:l.length/3,height:1},pixelFormat:Ye.RGB,pixelDatatype:ke.FLOAT})}}n.explosionIdCount=s}n.deleteVerticalPlane=e._deleteVerticalPlane,n.isFlatten=e._isFlatten,n.flattenHeight=e._flattenHeight,n.positionArray=e._positionArray,n.arrayLength=e._positionArray?.length,d(e._brightness)&&(n._brightness=e._brightness),d(e._exposure)&&(n._exposure=e._exposure),d(e._contrast)&&(n._contrast=e._contrast),d(e._hue)&&(n._hue=e._hue),d(e._saturation)&&(n._saturation=e._saturation),d(e._gamma)&&(n._gamma=e._gamma),n.update(t),!this._ready&&n.ready&&(n.activeAnimations.addAll({loop:Bd.REPEAT}),this._ready=!0)};mr.prototype.isDestroyed=function(){return!1};mr.prototype.destroy=function(){return this._model=this._model&&this._model.destroy(),fe(this)};mr.fromGltf=async function(e,t,n,i){let o=new mr(e,t,n),s=n0(e,t,o,{gltf:i,basePath:n}),a=e.vectorClassificationOnly?void 0:e.classificationType;s.classificationType=a,s.generateUniqueId=e._generateUniqueId;let c=await Ya.fromGltfAsync(s);return o._model=c,o};mr.fromM3DData=async function(e,t,n,i,o){let r=new mr(e,t,n),a=n0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n}),c=e.vectorClassificationOnly?void 0:e.classificationType;a.classificationType=c,a.tilesetVersion=e._version,a.tile=t,a.fillClip=e._fillClip,a.hasSectionGeometry=e._hasSectionGeometry,a.clippingFillImage=e._clippingFillImage,a.clippingGeometries=e._clippingGeometries;let l=await Ya.fromM3DData(a);return r._model=l,r};mr.fromM3DGltf=async function(e,t,n,i,o,r){let s=new mr(e,t,n),c=n0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n}),l=e.vectorClassificationOnly?void 0:e.classificationType;c.classificationType=l,c.attBatchTable=r,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let u=await Ya.fromM3DGltf(c);return s._model=u,s};mr.fromM3DB3dm=async function(e,t,n,i,o,r){let s=new mr(e,t,n),c=n0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n}),l=e.vectorClassificationOnly?void 0:e.classificationType;c.classificationType=l,c.attBatchTable=r,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let u=await Ya.fromM3DB3dm(c);return s._model=u,s};mr.fromM3DI3dm=async function(e,t,n,i,o,r){let s=new mr(e,t,n),c=n0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n});c.attBatchTable=r,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let l=await Ya.fromM3DI3dm(c);return s._model=l,s};mr.fromM3DPnts=async function(e,t,n,i,o,r){let s=new mr(e,t,n),c=n0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n});c.attBatchTable=r,c.tilesetVersion=e._version,c.tileset=e,c.tile=t,c.resource=s._resource;let l=await Ya.fromM3DPnts(c);return s._model=l,s};mr.fromB3dm=async function(e,t,n,i,o){let r=new mr(e,t,n),a=n0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n}),c=e.vectorClassificationOnly?void 0:e.classificationType;a.classificationType=c,a.generateUniqueId=e._generateUniqueId;let l=await Ya.fromB3dm(a);return r._model=l,r};mr.fromI3dm=async function(e,t,n,i,o){let r=new mr(e,t,n),a=n0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n});a.generateUniqueId=e._generateUniqueId;let c=await Ya.fromI3dm(a);return r._model=c,r};mr.fromPnts=async function(e,t,n,i,o){let r=new mr(e,t,n),a=n0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n});a.generateUniqueId=e._generateUniqueId;let c=await Ya.fromPnts(a);return r._model=c,r};mr.fromGeoJson=async function(e,t,n,i){let o=new mr(e,t,n),s=n0(e,t,o,{geoJson:i,resource:n}),a=await Ya.fromGeoJson(s);return o._model=a,o};mr.prototype.pick=function(e,t,n){if(!d(this._model)||!this._ready)return;let i=t.verticalExaggeration,o=t.verticalExaggerationRelativeHeight;return this._model.pick(e,t,i,o,oe.WGS84,n)};function n0(e,t,n,i){let o={cull:!1,releaseGltfJson:!0,opaquePass:Ze.CESIUM_3D_TILE,modelMatrix:t.computedTransform,upAxis:e._modelUpAxis,forwardAxis:e._modelForwardAxis,incrementallyLoadTextures:!1,customShader:e.customShader,content:n,colorBlendMode:e.colorBlendMode,colorBlendAmount:e.colorBlendAmount,lightColor:e.lightColor,imageBasedLighting:e.imageBasedLighting,featureIdLabel:e.featureIdLabel,instanceFeatureIdLabel:e.instanceFeatureIdLabel,pointCloudShading:e.pointCloudShading,clippingPlanes:e.clippingPlanes,backFaceCulling:e.backFaceCulling,shadows:e.shadows,showCreditsOnScreen:e.showCreditsOnScreen,splitDirection:e.splitDirection,enableDebugWireframe:e._enableDebugWireframe,debugWireframe:e.debugWireframe,projectTo2D:e._projectTo2D,enablePick:e._enablePick,enableShowOutline:e._enableShowOutline,showOutline:e.showOutline,outlineColor:e.outlineColor};return xt(i,o)}var Sl=mr;var W0e={M3DData:function(e,t,n,i,o){return Sl.fromM3DData(e,t,n,i,o)},M3DGltf:function(e,t,n,i,o,r){return Sl.fromM3DGltf(e,t,n,i,o,r)},M3DCmpt:function(e,t,n,i,o,r){return dp.fromM3DTileType(e,t,n,i,o,W0e,r)},M3DB3dm:function(e,t,n,i,o,r){return Sl.fromM3DB3dm(e,t,n,i,o,r)},M3DI3dm:function(e,t,n,i,o,r){return Sl.fromM3DI3dm(e,t,n,i,o,r)},M3DPnts:function(e,t,n,i,o,r){return Sl.fromM3DPnts(e,t,n,i,o,r)}},Ax=W0e;var n6n=S(C(),1);var J7n=S(C(),1),P0e={JSON:`{
|
|
9613
9613
|
`,M3D20:"PK",M3D21:"PK",M3D10_M3D:"m3d\0",M3D10_ZIPX:"zipx"};P0e.isBinaryFormat=function(e){return!e.includes("{")};var uy=Object.freeze(P0e);function $qe(e){let t=new Uint8Array(e),n=wc(t);if(uy.isBinaryFormat(n))return{contentType:n,binaryPayload:t};let i=e$e(t);if(d(i))return{contentType:n,binaryPayload:t};throw new le("Invalid tile content.")}function e$e(e){let t;try{t=ho(e)}catch{throw new le("Invalid tile content.")}return t}var iv=$qe;var o6n=S(C(),1);function Km(){this._length=0,this._obj={}}Object.defineProperties(Km.prototype,{length:{get:function(){return this._length}}});Km.prototype.isEmpty=function(){return this.length===0};Km.prototype.containsKey=function(e){return e in this._obj};Km.prototype.containsValue=function(e){for(let t in this._obj)if(this._obj[t]===e)return!0;return!1};Km.prototype.put=function(e,t){this.containsKey(e)||this._length++,this._obj[e]=t};Km.prototype.get=function(e){return this.containsKey(e)?this._obj[e]:null};Km.prototype.remove=function(e){this.containsKey(e)&&delete this._obj[e]&&this._length--};Km.prototype.values=function(){let e=[];for(let t in this._obj)Object.prototype.hasOwnProperty.call(this._obj,t)&&e.push(this._obj[t]);return e};Km.prototype.keySet=function(){let e=[];for(let t in this._obj)Object.prototype.hasOwnProperty.call(this._obj,t)&&e.push(t);return e};Km.prototype.size=function(){return this._length};Km.prototype.clear=function(){this._length=0,this._obj={}};var Hm=Km;var kqn=S(C(),1);var wqn=S(C(),1);var f6n=S(C(),1);var s6n=S(C(),1),ov=`in vec3 position3DHigh;
|
|
9614
9614
|
in vec3 position3DLow;
|
|
9615
9615
|
in float batchId;
|
|
@@ -18999,8 +18999,8 @@ void main()
|
|
|
18999
18999
|
float scale = pow(z_ndc * 0.5 + 0.5, 8.0);
|
|
19000
19000
|
out_FragColor = vec4(mix(vec3(0.0), vec3(1.0), scale), 1.0);
|
|
19001
19001
|
}
|
|
19002
|
-
`;var TNo=S(C(),1);function Tf(e,t){e=g(e,{}),this._options=g(t,{}),this._url=g(e.url,void 0),this._depth=0,this._index=void 0,this._indexHashMap=new Hm,this._resourse=Xe.createIfNeeded(this._url),this._m3dtreeChildren=[],this._m3dtreeParent=g(e.m3dtreeParent,void 0),this._queryResult=void 0,this._attMap=void 0,this._nodeName=void 0,this._init=!1}Object.defineProperties(Tf.prototype,{depth:{get:function(){return this._depth},set:function(e){this._depth=e}},index:{get:function(){return this._index},set:function(e){this._index=e}},indexHashMap:{get:function(){return this._indexHashMap},set:function(e){this._indexHashMap=e}},m3dtreeParent:{get:function(){return this._m3dtreeParent},set:function(e){this._m3dtreeParent=e}},m3dtreeChildren:{get:function(){return this._m3dtreeChildren},set:function(e){this._m3dtreeChildren=e}},attMap:{get:function(){return this._attMap},set:function(e){this._attMap=e}},nodeName:{get:function(){return this._nodeName},set:function(e){this._nodeName=e}}});function XIe(e,t,n){let i=[];if(i=t.children,d(i))for(let o=0;o<i.length;o++){let r=i[o];if(d(r._header.name)){let s=new Tf;if(d(r._content)&&d(r._content._attMap)&&(s.attMap=r._content._attMap),d(n)){if(r._depth<n){let c=r._header.name;s.indexHashMap.containsKey(c)||s.indexHashMap.put(c,r)}}else{let a=r._header.name,c=e.index+"-",l=a.replace(c,"");s.indexHashMap.containsKey(a)||s.indexHashMap.put(a,r),s.depth=r._depth,s.index=a,s.nodeName=l,s.m3dtreeParent=e,e.m3dtreeChildren.push(s),e=s}}XIe(e,r,n)}}Tf.prototype.createM3DTreeByTileset=function(e,t){if(!this._init){if(!d(e))return!1;let n=e.root,i=n._header,o="";return d(i)&&(d(i.dataName)?o=i.dataName:d(i.name)&&(o=i.name)),this.depth=n._depth,this.index=o,this.indexHashMap.containsKey(o)||this.indexHashMap.put(o,n),XIe(this,n,t),this._init=!0,!0}};var EH=!1,MIe;function wIe(e,t){let n=e.indexHashMap;if(n.containsKey(t)){let i=n.get(t);EH=!0,MIe=i}else if(!n.containsKey(t)){let i=e.m3dtreeChildren;if(d(i))for(let o=0;o<i.length;o++)if(EH){if(EH)break}else{let r=i[o];wIe(r,t)}}}Tf.prototype.getM3DByName=function(e){return wIe(this,e),EH=!1,MIe};Tf.prototype.createChildByParentNode=function(e){};Tf.prototype.createM3DTreeByRequest=function(e){$ie(this,e)};Tf.createM3DTree=function(e,t){let n=new Tf(e,t);if(d(n._options.createType)){let i=n._options.createType;i==="ModelLoaded"?n.createM3DTreeByTileset(e):(i==="ModelUrl"||i==="")&&d(n._options.url)&&n.createM3DTreeByRequest(n._options.url)}return n};function $ie(e,t,n,i){let o="";if(d(n)){n=n.replace("./","");let s=t.split("/");for(let a=0;a<s.length-1;a++)o+=s[a]+"/";o+=n}else o=t;new Xe({url:o}).fetchJson().then(function(s){let a;if(d(s.dataName)?a=s.dataName:d(s.name)&&(a=s.name),e.index=a,d(i)){let l=i.index+"-",u=e.index.replace(l,"");e.nodeName=u,e.depth=i.depth+1}else e.nodeName=a;let c="";if(d(s.rootNode)){let l=new Tf;c=s.rootNode.uri,d(i)?l._m3dtreeParent=i:l._m3dtreeParent=e,e._m3dtreeChildren.push(l),$ie(l,o,c,e)}else if(d(s.childrenNode))for(let l=0;l<s.childrenNode.length;l++){let u=new Tf,m=s.childrenNode[l];d(i)&&(e._m3dtreeParent=i),e._m3dtreeChildren.push(u),c=m.uri,$ie(u,o,c,e)}else!d(s.rootNode)&&!d(s.childrenNode)&&d(i)&&(e._m3dtreeParent=i)})}var eoe=Tf;var ENo=S(C(),1);function IH(e){this._viewer=e,this._scene=this._viewer.scene,this._intervalId=void 0,this._preRenderHandler=void 0}Object.defineProperties(IH.prototype,{models:{get:function(){return this._models},set:function(e){this._models=e}}});IH.prototype.resetExplosionByField=function(e){if(!Array.isArray(e))throw new le("tilesets\u5FC5\u987B\u662F\u4E00\u4E2A\u6570\u7EC4");for(let t=0;t<e.length;t++)e[t].enableExplosion=!1};function toe(e,t){if(!Array.isArray(e))throw new le("tilesets\u5FC5\u987B\u662F\u4E00\u4E2A\u6570\u7EC4");for(let n=0;n<e.length;n++){let i=e[n],o;i._version==="2.1"||i._version==="2.2"?o="tid":i._version==="2.0"&&(o="OID"),i.enableExplosion=!0;let r=[],s=g(t.valueGroups,[]),a=g(t.moveDirection,new h(0,0,0)),c=g(t.field,Number.NaN),l=g(t.type,"unique");for(let u=0;u<s.length;u++){let m=s[u];if(m.moveDirection=a,l==="unique")if(c===o)r=AD(m.value,m.value,m,r);else{let f=noe(m.value,m.value,i,c,l);for(let b=0;b<f.length;b++)r=AD(f[b],f[b],m,r)}else if(l==="range")if(c===o)r=AD(m.start,m.end,m,r);else{let f=noe(m.start,m.end,i,c,l);for(let b=0;b<f.length;b++)r=AD(f[b],f[b],m,r)}else if(l==="contain"){let f=noe(m.value,m.value,i,c,l);for(let b=0;b<f.length;b++)r=AD(f[b],f[b],m,r)}}i.explosionTextureData=r}}function UNt(e,t,n){if(t<0||t>n)return;let i=e.x*t/n,o=e.y*t/n,r=e.z*t/n;return new h(i,o,r)}function kNt(e,t,n){if(!(t<0||t>n))return e/n*t}IH.prototype.explosionByField=function(e,t){if(t=g(t,g.EMPTY_OBJECT),t.duration>0){let n=0,i=t.valueGroups,o=t.duration;d(this._preRenderHandler)&&this._scene.preRender.removeEventListener(this._preRenderHandler),this._preRenderTime=new Date().getTime(),this._preRenderHandler=()=>{if(n<=o){let r=[];if(d(t.moveDirection)){for(let a=0;a<i.length;a++)r.push({value:i[a].value,distance:kNt(i[a].distance,n,o)});toe(e,{valueGroups:r,moveDirection:t.moveDirection,type:t.type,field:t.field})}else{for(let a=0;a<i.length;a++)r.push({value:i[a].value,direction:UNt(i[a].direction,n,o)});toe(e,{valueGroups:r,type:t.type,field:t.field})}let s=new Date().getTime();n+=s-this._preRenderTime,this._preRenderTime=s}else{this._scene.preRender.removeEventListener(this._preRenderHandler),this._preRenderHandler=void 0;return}},this._scene.preRender.addEventListener(this._preRenderHandler)}else toe(e,t)};function AD(e,t,n,i){if(i.push(e,t),d(n.distance)){let o=n.moveDirection.x*n.distance,r=n.moveDirection.y*n.distance,s=n.moveDirection.z*n.distance;i.push(o,r,s)}else if(d(n.direction)){let o=n.direction,r=o.x,s=o.y,a=o.z;i.push(r,s,a)}return i}function noe(e,t,n,i,o){let s=[n.root],a=[],c=[],l;for(n._version==="2.1"||n._version==="2.2"?l="tid":n._version==="2.0"&&(l="OID");s.length>0;){let u=s.pop();if(u.children.length>0)for(let m=0;m<u.children.length;m++)s.push(u.children[m]);if(!(u.content instanceof Xu||u.content instanceof dx)){u.content instanceof dp?a=u.content._contents:a=[u.content];for(let m=0;m<a.length;m++){let f=a[m]?.batchTable?._features;if(d(f))for(let b=0;b<f.length;b++){let p=f[b].getProperty(i),x=f[b].getProperty(l);if(o==="unique")p===e&&c.push(x);else if(o==="range")p>=e&&p<=t&&c.push(x);else if(o==="contain"){if(typeof p!="string"){console.warn(`\u5F53\u524D\u83B7\u53D6\u5230\u7684\u5C5E\u6027\u503C\u7C7B\u578B\u4E3A${typeof p}, \u5305\u542B\u5173\u7CFB\u4EC5\u652F\u6301\u5B57\u7B26\u4E32\u7C7B\u578B\u503C\u7684\u6BD4\u8F83`);continue}p.includes(e)&&c.push(x)}}}}}return c}var ioe=IH;var XNo=S(C(),1),zNt={SIGX:"SIGX",SIGY:"SIGY",SIGZ:"SIGZ",VARX:"VARX",VARY:"VARY",VARZ:"VARZ",SIGR:"VARZ"},ooe=Object.freeze(zNt);var WNo=S(C(),1);function YNt(e){async function t({data:i}){let o=[],r={id:i.id,result:void 0,error:void 0};self.CESIUM_BASE_URL=i.baseUrl;try{let s=await e(i.parameters,o);r.result=s}catch(s){s instanceof Error?r.error={name:s.name,message:s.message,stack:s.stack}:r.error=s}i.canTransferArrayBuffer||(o.length=0);try{postMessage(r,o)}catch(s){r.result=void 0,r.error=`postMessage failed with error: ${W0(s)}
|
|
19003
|
-
with responseMessage: ${JSON.stringify(r)}`,postMessage(r)}}function n(i){postMessage({id:i.data?.id,error:`postMessage failed with error: ${JSON.stringify(i)}`})}return self.onmessage=t,self.onmessageerror=n,self}var roe=YNt;globalThis.CESIUM_VERSION="1.122.0";globalThis.MAPGIS_VERSION="17.6.
|
|
19002
|
+
`;var TNo=S(C(),1);function Tf(e,t){e=g(e,{}),this._options=g(t,{}),this._url=g(e.url,void 0),this._depth=0,this._index=void 0,this._indexHashMap=new Hm,this._resourse=Xe.createIfNeeded(this._url),this._m3dtreeChildren=[],this._m3dtreeParent=g(e.m3dtreeParent,void 0),this._queryResult=void 0,this._attMap=void 0,this._nodeName=void 0,this._init=!1}Object.defineProperties(Tf.prototype,{depth:{get:function(){return this._depth},set:function(e){this._depth=e}},index:{get:function(){return this._index},set:function(e){this._index=e}},indexHashMap:{get:function(){return this._indexHashMap},set:function(e){this._indexHashMap=e}},m3dtreeParent:{get:function(){return this._m3dtreeParent},set:function(e){this._m3dtreeParent=e}},m3dtreeChildren:{get:function(){return this._m3dtreeChildren},set:function(e){this._m3dtreeChildren=e}},attMap:{get:function(){return this._attMap},set:function(e){this._attMap=e}},nodeName:{get:function(){return this._nodeName},set:function(e){this._nodeName=e}}});function XIe(e,t,n){let i=[];if(i=t.children,d(i))for(let o=0;o<i.length;o++){let r=i[o];if(d(r._header.name)){let s=new Tf;if(d(r._content)&&d(r._content._attMap)&&(s.attMap=r._content._attMap),d(n)){if(r._depth<n){let c=r._header.name;s.indexHashMap.containsKey(c)||s.indexHashMap.put(c,r)}}else{let a=r._header.name,c=e.index+"-",l=a.replace(c,"");s.indexHashMap.containsKey(a)||s.indexHashMap.put(a,r),s.depth=r._depth,s.index=a,s.nodeName=l,s.m3dtreeParent=e,e.m3dtreeChildren.push(s),e=s}}XIe(e,r,n)}}Tf.prototype.createM3DTreeByTileset=function(e,t){if(!this._init){if(!d(e))return!1;let n=e.root,i=n._header,o="";return d(i)&&(d(i.dataName)?o=i.dataName:d(i.name)&&(o=i.name)),this.depth=n._depth,this.index=o,this.indexHashMap.containsKey(o)||this.indexHashMap.put(o,n),XIe(this,n,t),this._init=!0,!0}};var EH=!1,MIe;function wIe(e,t){let n=e.indexHashMap;if(n.containsKey(t)){let i=n.get(t);EH=!0,MIe=i}else if(!n.containsKey(t)){let i=e.m3dtreeChildren;if(d(i))for(let o=0;o<i.length;o++)if(EH){if(EH)break}else{let r=i[o];wIe(r,t)}}}Tf.prototype.getM3DByName=function(e){return wIe(this,e),EH=!1,MIe};Tf.prototype.createChildByParentNode=function(e){};Tf.prototype.createM3DTreeByRequest=function(e){$ie(this,e)};Tf.createM3DTree=function(e,t){let n=new Tf(e,t);if(d(n._options.createType)){let i=n._options.createType;i==="ModelLoaded"?n.createM3DTreeByTileset(e):(i==="ModelUrl"||i==="")&&d(n._options.url)&&n.createM3DTreeByRequest(n._options.url)}return n};function $ie(e,t,n,i){let o="";if(d(n)){n=n.replace("./","");let s=t.split("/");for(let a=0;a<s.length-1;a++)o+=s[a]+"/";o+=n}else o=t;new Xe({url:o}).fetchJson().then(function(s){let a;if(d(s.dataName)?a=s.dataName:d(s.name)&&(a=s.name),e.index=a,d(i)){let l=i.index+"-",u=e.index.replace(l,"");e.nodeName=u,e.depth=i.depth+1}else e.nodeName=a;let c="";if(d(s.rootNode)){let l=new Tf;c=s.rootNode.uri,d(i)?l._m3dtreeParent=i:l._m3dtreeParent=e,e._m3dtreeChildren.push(l),$ie(l,o,c,e)}else if(d(s.childrenNode))for(let l=0;l<s.childrenNode.length;l++){let u=new Tf,m=s.childrenNode[l];d(i)&&(e._m3dtreeParent=i),e._m3dtreeChildren.push(u),c=m.uri,$ie(u,o,c,e)}else!d(s.rootNode)&&!d(s.childrenNode)&&d(i)&&(e._m3dtreeParent=i)})}var eoe=Tf;var ENo=S(C(),1);function IH(e){this._viewer=e,this._scene=this._viewer.scene,this._intervalId=void 0,this._preRenderHandler=void 0}Object.defineProperties(IH.prototype,{models:{get:function(){return this._models},set:function(e){this._models=e}}});IH.prototype.resetExplosionByField=function(e){if(!Array.isArray(e))throw new le("tilesets\u5FC5\u987B\u662F\u4E00\u4E2A\u6570\u7EC4");for(let t=0;t<e.length;t++)e[t].enableExplosion=!1};function toe(e,t){if(!Array.isArray(e))throw new le("tilesets\u5FC5\u987B\u662F\u4E00\u4E2A\u6570\u7EC4");for(let n=0;n<e.length;n++){let i=e[n],o;i._version==="2.1"||i._version==="2.2"?o="tid":i._version==="2.0"&&(o="OID"),i.enableExplosion=!0;let r=[],s=g(t.valueGroups,[]),a=g(t.moveDirection,new h(0,0,0)),c=g(t.field,Number.NaN),l=g(t.type,"unique");for(let u=0;u<s.length;u++){let m=s[u];if(m.moveDirection=a,l==="unique")if(c===o)r=AD(m.value,m.value,m,r);else{let f=noe(m.value,m.value,i,c,l);for(let b=0;b<f.length;b++)r=AD(f[b],f[b],m,r)}else if(l==="range")if(c===o)r=AD(m.start,m.end,m,r);else{let f=noe(m.start,m.end,i,c,l);for(let b=0;b<f.length;b++)r=AD(f[b],f[b],m,r)}else if(l==="contain"){let f=noe(m.value,m.value,i,c,l);for(let b=0;b<f.length;b++)r=AD(f[b],f[b],m,r)}}i.explosionTextureData=r}}function UNt(e,t,n){if(t<0||t>n)return;let i=e.x*t/n,o=e.y*t/n,r=e.z*t/n;return new h(i,o,r)}function kNt(e,t,n){if(!(t<0||t>n))return e/n*t}IH.prototype.explosionByField=function(e,t){if(t=g(t,g.EMPTY_OBJECT),t.duration>0){let n=0,i=t.valueGroups,o=t.duration;d(this._preRenderHandler)&&this._scene.preRender.removeEventListener(this._preRenderHandler),this._preRenderTime=new Date().getTime(),this._preRenderHandler=()=>{if(n<=o){let r=[];if(d(t.moveDirection)){for(let a=0;a<i.length;a++)r.push({value:i[a].value,distance:kNt(i[a].distance,n,o)});toe(e,{valueGroups:r,moveDirection:t.moveDirection,type:t.type,field:t.field})}else{for(let a=0;a<i.length;a++)r.push({value:i[a].value,direction:UNt(i[a].direction,n,o)});toe(e,{valueGroups:r,type:t.type,field:t.field})}let s=new Date().getTime();n+=s-this._preRenderTime,this._preRenderTime=s}else{this._scene.preRender.removeEventListener(this._preRenderHandler),this._preRenderHandler=void 0;return}},this._scene.preRender.addEventListener(this._preRenderHandler)}else toe(e,t)};function AD(e,t,n,i){if(i.push(e,t),d(n.distance)){let o=n.moveDirection.x*n.distance,r=n.moveDirection.y*n.distance,s=n.moveDirection.z*n.distance;i.push(o,r,s)}else if(d(n.direction)){let o=n.direction,r=o.x,s=o.y,a=o.z;i.push(r,s,a)}return i}function noe(e,t,n,i,o){let s=[n.root],a=[],c=[],l;for(n._version==="2.1"||n._version==="2.2"?l="tid":n._version==="2.0"&&(l="OID");s.length>0;){let u=s.pop();if(u.children.length>0)for(let m=0;m<u.children.length;m++)s.push(u.children[m]);if(!(u.content instanceof Xu||u.content instanceof dx)){u.content instanceof dp?a=u.content._contents:a=[u.content];for(let m=0;m<a.length;m++){let f=a[m]?.batchTable?._features;if(d(f))for(let b=0;b<f.length;b++){let p=f[b].getProperty(i),x=f[b].getProperty(l);if(o==="unique")p===e&&c.indexOf(x)===-1&&c.push(x);else if(o==="range")p>=e&&p<=t&&c.indexOf(x)===-1&&c.push(x);else if(o==="contain"){if(typeof p!="string"){console.warn(`\u5F53\u524D\u83B7\u53D6\u5230\u7684\u5C5E\u6027\u503C\u7C7B\u578B\u4E3A${typeof p}, \u5305\u542B\u5173\u7CFB\u4EC5\u652F\u6301\u5B57\u7B26\u4E32\u7C7B\u578B\u503C\u7684\u6BD4\u8F83`);continue}p.includes(e)&&c.indexOf(x)===-1&&c.push(x)}}}}}return c}var ioe=IH;var XNo=S(C(),1),zNt={SIGX:"SIGX",SIGY:"SIGY",SIGZ:"SIGZ",VARX:"VARX",VARY:"VARY",VARZ:"VARZ",SIGR:"VARZ"},ooe=Object.freeze(zNt);var WNo=S(C(),1);function YNt(e){async function t({data:i}){let o=[],r={id:i.id,result:void 0,error:void 0};self.CESIUM_BASE_URL=i.baseUrl;try{let s=await e(i.parameters,o);r.result=s}catch(s){s instanceof Error?r.error={name:s.name,message:s.message,stack:s.stack}:r.error=s}i.canTransferArrayBuffer||(o.length=0);try{postMessage(r,o)}catch(s){r.result=void 0,r.error=`postMessage failed with error: ${W0(s)}
|
|
19003
|
+
with responseMessage: ${JSON.stringify(r)}`,postMessage(r)}}function n(i){postMessage({id:i.data?.id,error:`postMessage failed with error: ${JSON.stringify(i)}`})}return self.onmessage=t,self.onmessageerror=n,self}var roe=YNt;globalThis.CESIUM_VERSION="1.122.0";globalThis.MAPGIS_VERSION="17.6.7";var Qrr=S(C(),1);var Ver=S(C(),1);var _er=S(C(),1);var mer=S(C(),1),DD;typeof ko<"u"&&(DD=ko);(function(){/*!
|
|
19004
19004
|
* Knockout JavaScript library v3.5.1
|
|
19005
19005
|
* (c) The Knockout.js team - http://knockoutjs.com/
|
|
19006
19006
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
@@ -19014,8 +19014,15 @@ Message: `+ft.message,ft}})}return Pe=et===e,{shouldBindDescendants:Pe,bindingCo
|
|
|
19014
19014
|
* Knockout ES5 plugin - https://github.com/SteveSanderson/knockout-es5
|
|
19015
19015
|
* Copyright (c) Steve Sanderson
|
|
19016
19016
|
* MIT license
|
|
19017
|
-
*/var soe="__knockoutObservables",aoe="__knockoutSubscribable";function WIe(e,t){if(!e)throw new Error("When calling ko.track, you must pass an object as the first parameter.");var n=this,i=PIe(e,!0);return t=t||Object.getOwnPropertyNames(e),t.forEach(function(o){if(!(o===soe||o===aoe)&&!(o in i)){var r=e[o],s=r instanceof Array,a=n.isObservable(r)?r:s?n.observableArray(r):n.observable(r);Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:a,set:n.isWriteableObservable(a)?a:void 0}),i[o]=a,s&&KNt(n,a)}}),e}function PIe(e,t){var n=e[soe];return!n&&t&&(n={},Object.defineProperty(e,soe,{value:n})),n}function ONt(e,t,n){var i=this,o={owner:e,deferEvaluation:!0};if(typeof n=="function")o.read=n;else{if("value"in n)throw new Error('For ko.defineProperty, you must not specify a "value" for the property. You must provide a "get" function.');if(typeof n.get!="function")throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, or an options object containing a function called "get".');o.read=n.get,o.write=n.set}return e[t]=i.computed(o),WIe.call(i,e,[t]),e}function KNt(e,t){var n=null;e.computed(function(){n&&(n.dispose(),n=null);var i=t();i instanceof Array&&(n=HNt(e,t,i))})}function HNt(e,t,n){var i=JNt(e,n);return i.subscribe(t)}function JNt(e,t){var n=t[aoe];if(!n){n=new e.subscribable,Object.defineProperty(t,aoe,{value:n});var i={};QNt(t,n,i),jNt(e,t,n,i)}return n}function QNt(e,t,n){["pop","push","reverse","shift","sort","splice","unshift"].forEach(function(i){var o=e[i];e[i]=function(){var r=o.apply(this,arguments);return n.pause!==!0&&t.notifySubscribers(this),r}})}function jNt(e,t,n,i){["remove","removeAll","destroy","destroyAll","replace"].forEach(function(o){Object.defineProperty(t,o,{enumerable:!1,value:function(){var r;i.pause=!0;try{r=e.observableArray.fn[o].apply(e.observableArray(t),arguments)}finally{i.pause=!1}return n.notifySubscribers(t),r}})})}function vIe(e,t){if(!e)return null;var n=PIe(e,!1);return n&&n[t]||null}function qNt(e,t){var n=vIe(e,t);n&&n.valueHasMutated()}function $Nt(e){e.track=WIe,e.getObservable=vIe,e.valueHasMutated=qNt,e.defineProperty=ONt}var UD={attachToKo:$Nt};var ber=S(C(),1),NIe="http://www.w3.org/2000/svg",FIe="cesium-svgPath-svg",e9t={register:function(e){e.bindingHandlers.cesiumSvgPath={init:function(t,n){let i=document.createElementNS(NIe,"svg:svg");i.setAttribute("class",FIe);let o=document.createElementNS(NIe,"path");return i.appendChild(o),e.virtualElements.setDomNodeChildren(t,[i]),e.computed({read:function(){let r=e.unwrap(n());o.setAttribute("d",e.unwrap(r.path));let s=e.unwrap(r.width),a=e.unwrap(r.height);i.setAttribute("width",s),i.setAttribute("height",a),i.setAttribute("viewBox",`0 0 ${s} ${a}`),r.css&&i.setAttribute("class",`${FIe} ${e.unwrap(r.css)}`)},disposeWhenNodeIsRemoved:t}),{controlsDescendantBindings:!0}}},e.virtualElements.allowedBindings.cesiumSvgPath=!0}},kD=e9t;UD.attachToKo(dL);kD.register(dL);var Re=dL;function zD(e){d(e)||(e=new vp),this._clock=e,this._eventHelper=new vs,this._eventHelper.add(e.onTick,this.synchronize,this),this.systemTime=Re.observable(ee.now()),this.systemTime.equalityComparer=ee.equals,this.startTime=Re.observable(e.startTime),this.startTime.equalityComparer=ee.equals,this.startTime.subscribe(function(t){e.startTime=t,this.synchronize()},this),this.stopTime=Re.observable(e.stopTime),this.stopTime.equalityComparer=ee.equals,this.stopTime.subscribe(function(t){e.stopTime=t,this.synchronize()},this),this.currentTime=Re.observable(e.currentTime),this.currentTime.equalityComparer=ee.equals,this.currentTime.subscribe(function(t){e.currentTime=t,this.synchronize()},this),this.multiplier=Re.observable(e.multiplier),this.multiplier.subscribe(function(t){e.multiplier=t,this.synchronize()},this),this.clockStep=Re.observable(e.clockStep),this.clockStep.subscribe(function(t){e.clockStep=t,this.synchronize()},this),this.clockRange=Re.observable(e.clockRange),this.clockRange.subscribe(function(t){e.clockRange=t,this.synchronize()},this),this.canAnimate=Re.observable(e.canAnimate),this.canAnimate.subscribe(function(t){e.canAnimate=t,this.synchronize()},this),this.shouldAnimate=Re.observable(e.shouldAnimate),this.shouldAnimate.subscribe(function(t){e.shouldAnimate=t,this.synchronize()},this),Re.track(this,["systemTime","startTime","stopTime","currentTime","multiplier","clockStep","clockRange","canAnimate","shouldAnimate"])}Object.defineProperties(zD.prototype,{clock:{get:function(){return this._clock}}});zD.prototype.synchronize=function(){let e=this._clock;this.systemTime=ee.now(),this.startTime=e.startTime,this.stopTime=e.stopTime,this.currentTime=e.currentTime,this.multiplier=e.multiplier,this.clockStep=e.clockStep,this.clockRange=e.clockRange,this.canAnimate=e.canAnimate,this.shouldAnimate=e.shouldAnimate};zD.prototype.isDestroyed=function(){return!1};zD.prototype.destroy=function(){this._eventHelper.removeAll(),fe(this)};var YD=zD;var Ger=S(C(),1);function t9t(){this.canExecute=void 0,this.beforeExecute=void 0,this.afterExecute=void 0,be.throwInstantiationError()}var coe=t9t;var Wer=S(C(),1);function n9t(e,t){t=g(t,!0);let n=new Se,i=new Se;function o(){let r={args:arguments,cancel:!1},s;return n.raiseEvent(r),r.cancel||(s=e.apply(null,arguments),i.raiseEvent(s)),s}return o.canExecute=t,Re.track(o,["canExecute"]),Object.defineProperties(o,{beforeExecute:{value:n},afterExecute:{value:i}}),o}var ti=n9t;var Fer=S(C(),1);var BD={};BD.createCheckbox=function(e,t,n){let i=document.createElement("div"),o=document.createElement("label"),r=document.createElement("input");r.type="checkbox";let s=`checked: ${t}`;return d(n)&&(s+=`, enable: ${n}`),r.setAttribute("data-bind",s),o.appendChild(r),o.appendChild(document.createTextNode(e)),i.appendChild(o),i};BD.createSection=function(e,t,n,i){let o=document.createElement("div");o.className="cesium-cesiumInspector-section",o.setAttribute("data-bind",`css: { "cesium-cesiumInspector-section-collapsed": !${n} }`),e.appendChild(o);let r=document.createElement("h3");r.className="cesium-cesiumInspector-sectionHeader",r.appendChild(document.createTextNode(t)),r.setAttribute("data-bind",`click: ${i}`),o.appendChild(r);let s=document.createElement("div");return s.className="cesium-cesiumInspector-sectionContent",o.appendChild(s),s};BD.createRangeInput=function(e,t,n,i,o,r){r=g(r,t);let s=document.createElement("input");s.setAttribute("data-bind",`value: ${r}`),s.type="number";let a=document.createElement("input");a.type="range",a.min=n,a.max=i,a.step=g(o,"any"),a.setAttribute("data-bind",`valueUpdate: "input", value: ${t}`);let c=document.createElement("div");c.appendChild(a);let l=document.createElement("div");return l.className="cesium-cesiumInspector-slider",l.appendChild(document.createTextNode(e)),l.appendChild(s),l.appendChild(c),l};BD.createButton=function(e,t,n){let i=document.createElement("button");i.type="button",i.textContent=e,i.className="cesium-cesiumInspector-pickButton";let o=`click: ${t}`;return d(n)&&(o+=`, css: {"cesium-cesiumInspector-pickButtonHighlight" : ${n}}`),i.setAttribute("data-bind",o),i};var jc=BD;var Uer=S(C(),1);function i9t(e,t,n,i,o){return n.call(i,e[t]),Re.getObservable(e,t).subscribe(n,i,o)}var Zc=i9t;var Ker=S(C(),1);function AIe(e,t){this._command=e,t=g(t,g.EMPTY_OBJECT),this.toggled=g(t.toggled,!1),this.tooltip=g(t.tooltip,""),Re.track(this,["toggled","tooltip"])}Object.defineProperties(AIe.prototype,{command:{get:function(){return this._command}}});var s_=AIe;var qer=S(C(),1);var uL="http://www.w3.org/2000/svg",kIe="http://www.w3.org/1999/xlink",XH,OD=z.fromCssColorString("rgba(247,250,255,0.384)"),MH=z.fromCssColorString("rgba(143,191,255,0.216)"),loe=z.fromCssColorString("rgba(153,197,255,0.098)"),wH=z.fromCssColorString("rgba(255,255,255,0.086)"),o9t=z.fromCssColorString("rgba(255,255,255,0.267)"),r9t=z.fromCssColorString("rgba(255,255,255,0)"),DIe=z.fromCssColorString("rgba(66,67,68,0.3)"),UIe=z.fromCssColorString("rgba(0,0,0,0.5)");function a_(e){return z.fromCssColorString(window.getComputedStyle(e).getPropertyValue("color"))}var KD={animation_pathReset:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.316,5.318,9.833,13.682,9.833,5.5,5.5,5.5,5.5,25.5,9.833,25.5,9.833,17.318,24.316,25.682z"},animation_pathPause:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M13,5.5,7.5,5.5,7.5,25.5,13,25.5zM24.5,5.5,19,5.5,19,25.5,24.5,25.5z"},animation_pathPlay:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathPlayReverse:{tagName:"path",transform:"translate(16,16) scale(-0.85,0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathLoop:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.249,15.499c-0.009,4.832-3.918,8.741-8.75,8.75c-2.515,0-4.768-1.064-6.365-2.763l2.068-1.442l-7.901-3.703l0.744,8.694l2.193-1.529c2.244,2.594,5.562,4.242,9.26,4.242c6.767,0,12.249-5.482,12.249-12.249H24.249zM15.499,6.75c2.516,0,4.769,1.065,6.367,2.764l-2.068,1.443l7.901,3.701l-0.746-8.693l-2.192,1.529c-2.245-2.594-5.562-4.245-9.262-4.245C8.734,3.25,3.25,8.734,3.249,15.499H6.75C6.758,10.668,10.668,6.758,15.499,6.75z"},animation_pathClock:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-15.5)",d:"M15.5,2.374C8.251,2.375,2.376,8.251,2.374,15.5C2.376,22.748,8.251,28.623,15.5,28.627c7.249-0.004,13.124-5.879,13.125-13.127C28.624,8.251,22.749,2.375,15.5,2.374zM15.5,25.623C9.909,25.615,5.385,21.09,5.375,15.5C5.385,9.909,9.909,5.384,15.5,5.374c5.59,0.01,10.115,4.535,10.124,10.125C25.615,21.09,21.091,25.615,15.5,25.623zM8.625,15.5c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,16.5,8.624,16.053,8.625,15.5zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.887,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM22.822,12.428c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,12.54,22.344,12.705,22.822,12.428zM12.062,21.455c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,22.344,12.54,21.732,12.062,21.455zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM22.823,18.572c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.092,0.367,1.367c0.477,0.275,1.089,0.113,1.365-0.365C23.464,19.461,23.3,18.848,22.823,18.572zM19.938,7.813c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM23.378,14.5c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,14.949,23.929,14.5,23.378,14.5zM15.501,6.624c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.365c0.275,0.479,0.889,0.643,1.365,0.367l3.305-1.676C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876C16.501,7.072,16.053,6.624,15.501,6.624zM15.501,22.377c-0.552,0-1,0.447-1,1s0.448,1,1,1s1-0.447,1-1S16.053,22.377,15.501,22.377zM18.939,21.455c-0.479,0.277-0.643,0.889-0.366,1.367c0.275,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.889,0.366-1.365C20.028,21.344,19.417,21.18,18.939,21.455z"},animation_pathWingButton:{tagName:"path",d:"m 4.5,0.5 c -2.216,0 -4,1.784 -4,4 l 0,24 c 0,2.216 1.784,4 4,4 l 13.71875,0 C 22.478584,27.272785 27.273681,22.511272 32.5,18.25 l 0,-13.75 c 0,-2.216 -1.784,-4 -4,-4 l -24,0 z"},animation_pathPointer:{tagName:"path",d:"M-15,-65,-15,-55,15,-55,15,-65,0,-95z"},animation_pathSwooshFX:{tagName:"path",d:"m 85,0 c 0,16.617 -4.813944,35.356 -13.131081,48.4508 h 6.099803 c 8.317138,-13.0948 13.13322,-28.5955 13.13322,-45.2124 0,-46.94483 -38.402714,-85.00262 -85.7743869,-85.00262 -1.0218522,0 -2.0373001,0.0241 -3.0506131,0.0589 45.958443,1.59437 82.723058,35.77285 82.723058,81.70532 z"}};function _f(e){let t=document.createElementNS(uL,e.tagName);for(let n in e)if(e.hasOwnProperty(n)&&n!=="tagName")if(n==="children"){let i=e.children.length;for(let o=0;o<i;++o)t.appendChild(_f(e.children[o]))}else n.indexOf("xlink:")===0?t.setAttributeNS(kIe,n.substring(6),e[n]):n==="textContent"?t.textContent=e[n]:t.setAttribute(n,e[n]);return t}function doe(e,t,n){let i=document.createElementNS(uL,"text");i.setAttribute("x",e),i.setAttribute("y",t),i.setAttribute("class","cesium-animation-svgText");let o=document.createElementNS(uL,"tspan");return o.textContent=n,i.appendChild(o),i}function s9t(e,t,n){e.setAttribute("transform",`translate(100,100) rotate(${n})`),t.setAttribute("transform",`rotate(${n})`)}var WH=new z;function oa(e,t){let n=t.alpha,i=1-n;return WH.red=e.red*i+t.red*n,WH.green=e.green*i+t.green*n,WH.blue=e.blue*i+t.blue*n,WH.toCssColorString()}function uoe(e,t,n){let i=KD[n],o={tagName:"g",class:"cesium-animation-rectButton",transform:`translate(${e},${t})`,children:[{tagName:"rect",class:"cesium-animation-buttonGlow",width:32,height:32,rx:2,ry:2},{tagName:"rect",class:"cesium-animation-buttonMain",width:32,height:32,rx:4,ry:4},{class:"cesium-animation-buttonPath",id:n,tagName:i.tagName,transform:i.transform,d:i.d},{tagName:"title",textContent:""}]};return _f(o)}function a9t(e,t,n){let i=KD[n],o=KD.animation_pathWingButton,r={tagName:"g",class:"cesium-animation-rectButton",transform:`translate(${e},${t})`,children:[{class:"cesium-animation-buttonGlow",id:"animation_pathWingButton",tagName:o.tagName,d:o.d},{class:"cesium-animation-buttonMain",id:"animation_pathWingButton",tagName:o.tagName,d:o.d},{class:"cesium-animation-buttonPath",id:n,tagName:i.tagName,transform:i.transform,d:i.d},{tagName:"title",textContent:""}]};return _f(r)}function c9t(e,t){let n=e._viewModel,i=n.shuttleRingDragging;if(!(i&&XH!==e))if(t.type==="mousedown"||i&&t.type==="mousemove"||t.type==="touchstart"&&t.touches.length===1||i&&t.type==="touchmove"&&t.touches.length===1){let o=e._centerX,r=e._centerY,a=e._svgNode.getBoundingClientRect(),c,l;if(t.type==="touchstart"||t.type==="touchmove"?(c=t.touches[0].clientX,l=t.touches[0].clientY):(c=t.clientX,l=t.clientY),!i&&(c>a.right||c<a.left||l<a.top||l>a.bottom))return;let u=e._shuttleRingPointer.getBoundingClientRect(),m=c-o-a.left,f=l-r-a.top,b=Math.atan2(f,m)*180/Math.PI+90;b>180&&(b-=360);let p=n.shuttleRingAngle;i||c<u.right&&c>u.left&&l>u.top&&l<u.bottom?(XH=e,n.shuttleRingDragging=!0,n.shuttleRingAngle=b):b<p?n.slower():b>p&&n.faster(),t.preventDefault()}else e===XH&&(XH=void 0),n.shuttleRingDragging=!1}function Vg(e,t){this._viewModel=t,this.svgElement=e,this._enabled=void 0,this._toggled=void 0;let n=this;this._clickFunction=function(){let i=n._viewModel.command;i.canExecute&&i()},e.addEventListener("click",this._clickFunction,!0),this._subscriptions=[Zc(t,"toggled",this.setToggled,this),Zc(t,"tooltip",this.setTooltip,this),Zc(t.command,"canExecute",this.setEnabled,this)]}Vg.prototype.destroy=function(){this.svgElement.removeEventListener("click",this._clickFunction,!0);let e=this._subscriptions;for(let t=0,n=e.length;t<n;t++)e[t].dispose();fe(this)};Vg.prototype.isDestroyed=function(){return!1};Vg.prototype.setEnabled=function(e){if(this._enabled!==e){if(this._enabled=e,!e){this.svgElement.setAttribute("class","cesium-animation-buttonDisabled");return}if(this._toggled){this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled");return}this.svgElement.setAttribute("class","cesium-animation-rectButton")}};Vg.prototype.setToggled=function(e){this._toggled!==e&&(this._toggled=e,this._enabled&&(e?this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled"):this.svgElement.setAttribute("class","cesium-animation-rectButton")))};Vg.prototype.setTooltip=function(e){this.svgElement.getElementsByTagName("title")[0].textContent=e};function YG(e,t){e=li(e),this._viewModel=t,this._container=e,this._centerX=0,this._centerY=0,this._defsElement=void 0,this._svgNode=void 0,this._topG=void 0,this._lastHeight=void 0,this._lastWidth=void 0;let n=e.ownerDocument,i=document.createElement("style");i.textContent=".cesium-animation-rectButton .cesium-animation-buttonGlow { filter: url(#animation_blurred); }.cesium-animation-rectButton .cesium-animation-buttonMain { fill: url(#animation_buttonNormal); }.cesium-animation-buttonToggled .cesium-animation-buttonMain { fill: url(#animation_buttonToggled); }.cesium-animation-rectButton:hover .cesium-animation-buttonMain { fill: url(#animation_buttonHovered); }.cesium-animation-buttonDisabled .cesium-animation-buttonMain { fill: url(#animation_buttonDisabled); }.cesium-animation-shuttleRingG .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshGradient); }.cesium-animation-shuttleRingG:hover .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshHovered); }.cesium-animation-shuttleRingPointer { fill: url(#animation_shuttleRingPointerGradient); }.cesium-animation-shuttleRingPausePointer { fill: url(#animation_shuttleRingPointerPaused); }.cesium-animation-knobOuter { fill: url(#animation_knobOuter); }.cesium-animation-knobInner { fill: url(#animation_knobInner); }",n.head.insertBefore(i,n.head.childNodes[0]);let o=document.createElement("div");o.className="cesium-animation-theme",o.innerHTML='<div class="cesium-animation-themeNormal"></div><div class="cesium-animation-themeHover"></div><div class="cesium-animation-themeSelect"></div><div class="cesium-animation-themeDisabled"></div><div class="cesium-animation-themeKnob"></div><div class="cesium-animation-themePointer"></div><div class="cesium-animation-themeSwoosh"></div><div class="cesium-animation-themeSwooshHover"></div>',this._theme=o,this._themeNormal=o.childNodes[0],this._themeHover=o.childNodes[1],this._themeSelect=o.childNodes[2],this._themeDisabled=o.childNodes[3],this._themeKnob=o.childNodes[4],this._themePointer=o.childNodes[5],this._themeSwoosh=o.childNodes[6],this._themeSwooshHover=o.childNodes[7];let r=document.createElementNS(uL,"svg:svg");this._svgNode=r,r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",kIe);let s=document.createElementNS(uL,"g");this._topG=s,this._realtimeSVG=new Vg(a9t(3,4,"animation_pathClock"),t.playRealtimeViewModel),this._playReverseSVG=new Vg(uoe(44,99,"animation_pathPlayReverse"),t.playReverseViewModel),this._playForwardSVG=new Vg(uoe(124,99,"animation_pathPlay"),t.playForwardViewModel),this._pauseSVG=new Vg(uoe(84,99,"animation_pathPause"),t.pauseViewModel);let a=document.createElementNS(uL,"g");a.appendChild(this._realtimeSVG.svgElement),a.appendChild(this._playReverseSVG.svgElement),a.appendChild(this._playForwardSVG.svgElement),a.appendChild(this._pauseSVG.svgElement);let c=_f({tagName:"circle",class:"cesium-animation-shuttleRingBack",cx:100,cy:100,r:99});this._shuttleRingBackPanel=c;let l=KD.animation_pathSwooshFX,u=KD.animation_pathPointer,m=_f({tagName:"g",class:"cesium-animation-shuttleRingSwoosh",children:[{tagName:l.tagName,transform:"translate(100,97) scale(-1,1)",id:"animation_pathSwooshFX",d:l.d},{tagName:l.tagName,transform:"translate(100,97)",id:"animation_pathSwooshFX",d:l.d},{tagName:"line",x1:100,y1:8,x2:100,y2:22}]});this._shuttleRingSwooshG=m,this._shuttleRingPointer=_f({class:"cesium-animation-shuttleRingPointer",id:"animation_pathPointer",tagName:u.tagName,d:u.d});let f=_f({tagName:"g",transform:"translate(100,100)"});this._knobOuter=_f({tagName:"circle",class:"cesium-animation-knobOuter",cx:0,cy:0,r:71});let b=61,p=_f({tagName:"circle",class:"cesium-animation-knobInner",cx:0,cy:0,r:b});this._knobDate=doe(0,-24,""),this._knobTime=doe(0,-7,""),this._knobStatus=doe(0,-41,"");let x=_f({tagName:"circle",class:"cesium-animation-blank",cx:0,cy:0,r:b}),T=document.createElementNS(uL,"g");T.setAttribute("class","cesium-animation-shuttleRingG"),e.appendChild(o),s.appendChild(T),s.appendChild(f),s.appendChild(a),T.appendChild(c),T.appendChild(m),T.appendChild(this._shuttleRingPointer),f.appendChild(this._knobOuter),f.appendChild(p),f.appendChild(this._knobDate),f.appendChild(this._knobTime),f.appendChild(this._knobStatus),f.appendChild(x),r.appendChild(s),e.appendChild(r);let _=this;function L(w){c9t(_,w)}this._mouseCallback=L,c.addEventListener("mousedown",L,!0),c.addEventListener("touchstart",L,!0),m.addEventListener("mousedown",L,!0),m.addEventListener("touchstart",L,!0),n.addEventListener("mousemove",L,!0),n.addEventListener("touchmove",L,!0),n.addEventListener("mouseup",L,!0),n.addEventListener("touchend",L,!0),n.addEventListener("touchcancel",L,!0),this._shuttleRingPointer.addEventListener("mousedown",L,!0),this._shuttleRingPointer.addEventListener("touchstart",L,!0),this._knobOuter.addEventListener("mousedown",L,!0),this._knobOuter.addEventListener("touchstart",L,!0);let V=this._knobTime.childNodes[0],Z=this._knobDate.childNodes[0],G=this._knobStatus.childNodes[0],I;this._subscriptions=[Zc(t.pauseViewModel,"toggled",function(w){I!==w&&(I=w,I?_._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPausePointer"):_._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPointer"))}),Zc(t,"shuttleRingAngle",function(w){s9t(_._shuttleRingPointer,_._knobOuter,w)}),Zc(t,"dateLabel",function(w){Z.textContent!==w&&(Z.textContent=w)}),Zc(t,"timeLabel",function(w){V.textContent!==w&&(V.textContent=w)}),Zc(t,"multiplierLabel",function(w){G.textContent!==w&&(G.textContent=w)})],this.applyThemeChanges(),this.resize()}Object.defineProperties(YG.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});YG.prototype.isDestroyed=function(){return!1};YG.prototype.destroy=function(){d(this._observer)&&(this._observer.disconnect(),this._observer=void 0);let e=this._container.ownerDocument,t=this._mouseCallback;this._shuttleRingBackPanel.removeEventListener("mousedown",t,!0),this._shuttleRingBackPanel.removeEventListener("touchstart",t,!0),this._shuttleRingSwooshG.removeEventListener("mousedown",t,!0),this._shuttleRingSwooshG.removeEventListener("touchstart",t,!0),e.removeEventListener("mousemove",t,!0),e.removeEventListener("touchmove",t,!0),e.removeEventListener("mouseup",t,!0),e.removeEventListener("touchend",t,!0),e.removeEventListener("touchcancel",t,!0),this._shuttleRingPointer.removeEventListener("mousedown",t,!0),this._shuttleRingPointer.removeEventListener("touchstart",t,!0),this._knobOuter.removeEventListener("mousedown",t,!0),this._knobOuter.removeEventListener("touchstart",t,!0),this._container.removeChild(this._svgNode),this._container.removeChild(this._theme),this._realtimeSVG.destroy(),this._playReverseSVG.destroy(),this._playForwardSVG.destroy(),this._pauseSVG.destroy();let n=this._subscriptions;for(let i=0,o=n.length;i<o;i++)n[i].dispose();return fe(this)};YG.prototype.resize=function(){let e=this._container.clientWidth,t=this._container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;let n=this._svgNode,i=200,o=132,r=e,s=t;e===0&&t===0?(r=i,s=o):e===0?(s=t,r=i*(t/o)):t===0&&(r=e,s=o*(e/i));let a=r/i,c=s/o;n.style.cssText=`width: ${r}px; height: ${s}px; position: absolute; bottom: 0; left: 0; overflow: hidden;`,n.setAttribute("width",r),n.setAttribute("height",s),n.setAttribute("viewBox",`0 0 ${r} ${s}`),this._topG.setAttribute("transform",`scale(${a},${c})`),this._centerX=Math.max(1,100*a),this._centerY=Math.max(1,100*c),this._lastHeight=e,this._lastWidth=t};YG.prototype.applyThemeChanges=function(){let e=this._container.ownerDocument;if(!e.body.contains(this._container)){if(d(this._observer))return;let u=this;u._observer=new MutationObserver(function(){e.body.contains(u._container)&&(u._observer.disconnect(),u._observer=void 0,u.applyThemeChanges())}),u._observer.observe(e,{childList:!0,subtree:!0});return}let t=a_(this._themeNormal),n=a_(this._themeHover),i=a_(this._themeSelect),o=a_(this._themeDisabled),r=a_(this._themeKnob),s=a_(this._themePointer),a=a_(this._themeSwoosh),c=a_(this._themeSwooshHover),l=_f({tagName:"defs",children:[{id:"animation_buttonNormal",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(t,OD)},{tagName:"stop",offset:"12%","stop-color":oa(t,MH)},{tagName:"stop",offset:"46%","stop-color":oa(t,loe)},{tagName:"stop",offset:"81%","stop-color":oa(t,wH)}]},{id:"animation_buttonHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(n,OD)},{tagName:"stop",offset:"12%","stop-color":oa(n,MH)},{tagName:"stop",offset:"46%","stop-color":oa(n,loe)},{tagName:"stop",offset:"81%","stop-color":oa(n,wH)}]},{id:"animation_buttonToggled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(i,OD)},{tagName:"stop",offset:"12%","stop-color":oa(i,MH)},{tagName:"stop",offset:"46%","stop-color":oa(i,loe)},{tagName:"stop",offset:"81%","stop-color":oa(i,wH)}]},{id:"animation_buttonDisabled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(o,o9t)},{tagName:"stop",offset:"75%","stop-color":oa(o,r9t)}]},{id:"animation_blurred",tagName:"filter",width:"200%",height:"200%",x:"-50%",y:"-50%",children:[{tagName:"feGaussianBlur",stdDeviation:4,in:"SourceGraphic"}]},{id:"animation_shuttleRingSwooshGradient",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":a.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":a.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":a.toCssColorString()}]},{id:"animation_shuttleRingSwooshHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":c.toCssColorString()}]},{id:"animation_shuttleRingPointerGradient",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":s.toCssColorString()},{tagName:"stop",offset:"40%","stop-color":s.toCssColorString()},{tagName:"stop",offset:"60%","stop-color":oa(s,UIe)},{tagName:"stop",offset:"100%","stop-color":oa(s,UIe)}]},{id:"animation_shuttleRingPointerPaused",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":"#CCC"},{tagName:"stop",offset:"40%","stop-color":"#CCC"},{tagName:"stop",offset:"60%","stop-color":"#555"},{tagName:"stop",offset:"100%","stop-color":"#555"}]},{id:"animation_knobOuter",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":oa(r,OD)},{tagName:"stop",offset:"60%","stop-color":oa(r,DIe)},{tagName:"stop",offset:"85%","stop-color":oa(r,MH)}]},{id:"animation_knobInner",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":oa(r,DIe)},{tagName:"stop",offset:"60%","stop-color":oa(r,OD)},{tagName:"stop",offset:"85%","stop-color":oa(r,wH)}]}]});d(this._defsElement)?this._svgNode.replaceChild(l,this._defsElement):this._svgNode.appendChild(l),this._defsElement=l};var HD=YG;var str=S(C(),1);var l9t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],c_=15,BG=105;function zIe(e,t){return e-t}function moe(e,t){let n=Xr(t,e,zIe);return n<0?~n:n}function d9t(e,t){if(Math.abs(e)<=c_)return e/c_;let n=c_,i=BG,o,r=0,s;return e>0?(o=Math.log(t[t.length-1]),s=(o-r)/(i-n),Math.exp(r+s*(e-n))):(o=Math.log(-t[0]),s=(o-r)/(i-n),-Math.exp(r+s*(Math.abs(e)-n)))}function u9t(e,t,n){if(n.clockStep===pr.SYSTEM_CLOCK)return c_;if(Math.abs(e)<=1)return e*c_;let i=t[t.length-1];e>i?e=i:e<-i&&(e=-i);let o=c_,r=BG,s,a=0,c;return e>0?(s=Math.log(i),c=(s-a)/(r-o),(Math.log(e)-a)/c+o):(s=Math.log(-t[0]),c=(s-a)/(r-o),-((Math.log(Math.abs(e))-a)/c+o))}function Fh(e){let t=this;this._clockViewModel=e,this._allShuttleRingTicks=[],this._dateFormatter=Fh.defaultDateFormatter,this._timeFormatter=Fh.defaultTimeFormatter,this.shuttleRingDragging=!1,this.snapToTicks=!1,Re.track(this,["_allShuttleRingTicks","_dateFormatter","_timeFormatter","shuttleRingDragging","snapToTicks"]),this._sortedFilteredPositiveTicks=[],this.setShuttleRingTicks(Fh.defaultTicks),this.timeLabel=void 0,Re.defineProperty(this,"timeLabel",function(){return t._timeFormatter(t._clockViewModel.currentTime,t)}),this.dateLabel=void 0,Re.defineProperty(this,"dateLabel",function(){return t._dateFormatter(t._clockViewModel.currentTime,t)}),this.multiplierLabel=void 0,Re.defineProperty(this,"multiplierLabel",function(){let s=t._clockViewModel;if(s.clockStep===pr.SYSTEM_CLOCK)return"Today";let a=s.multiplier;return a%1===0?`${a.toFixed(0)}x`:`${a.toFixed(3).replace(/0{0,3}$/,"")}x`}),this.shuttleRingAngle=void 0,Re.defineProperty(this,"shuttleRingAngle",{get:function(){return u9t(e.multiplier,t._allShuttleRingTicks,e)},set:function(s){s=Math.max(Math.min(s,BG),-BG);let a=t._allShuttleRingTicks,c=t._clockViewModel;if(c.clockStep=pr.SYSTEM_CLOCK_MULTIPLIER,Math.abs(s)===BG){c.multiplier=s>0?a[a.length-1]:a[0];return}let l=d9t(s,a);if(t.snapToTicks)l=a[moe(l,a)];else if(l!==0){let u=Math.abs(l);if(u>100){let m=u.toFixed(0).length-2,f=Math.pow(10,m);l=Math.round(l/f)*f|0}else u>c_?l=Math.round(l):u>1?l=+l.toFixed(1):u>0&&(l=+l.toFixed(2))}c.multiplier=l}}),this._canAnimate=void 0,Re.defineProperty(this,"_canAnimate",function(){let s=t._clockViewModel,a=s.clockRange;if(t.shuttleRingDragging||a===Ds.UNBOUNDED)return!0;let c=s.multiplier,l=s.currentTime,u=s.startTime,m=!1;if(a===Ds.LOOP_STOP)m=ee.greaterThan(l,u)||l.equals(u)&&c>0;else{let f=s.stopTime;m=ee.greaterThan(l,u)&&ee.lessThan(l,f)||l.equals(u)&&c>0||l.equals(f)&&c<0}return m||(s.shouldAnimate=!1),m}),this._isSystemTimeAvailable=void 0,Re.defineProperty(this,"_isSystemTimeAvailable",function(){let s=t._clockViewModel;if(s.clockRange===Ds.UNBOUNDED)return!0;let c=s.systemTime;return ee.greaterThanOrEquals(c,s.startTime)&&ee.lessThanOrEquals(c,s.stopTime)}),this._isAnimating=void 0,Re.defineProperty(this,"_isAnimating",function(){return t._clockViewModel.shouldAnimate&&(t._canAnimate||t.shuttleRingDragging)});let n=ti(function(){let s=t._clockViewModel;s.shouldAnimate?s.shouldAnimate=!1:t._canAnimate&&(s.shouldAnimate=!0)});this._pauseViewModel=new s_(n,{toggled:Re.computed(function(){return!t._isAnimating}),tooltip:"Pause"});let i=ti(function(){let s=t._clockViewModel,a=s.multiplier;a>0&&(s.multiplier=-a),s.shouldAnimate=!0});this._playReverseViewModel=new s_(i,{toggled:Re.computed(function(){return t._isAnimating&&e.multiplier<0}),tooltip:"Play Reverse"});let o=ti(function(){let s=t._clockViewModel,a=s.multiplier;a<0&&(s.multiplier=-a),s.shouldAnimate=!0});this._playForwardViewModel=new s_(o,{toggled:Re.computed(function(){return t._isAnimating&&e.multiplier>0&&e.clockStep!==pr.SYSTEM_CLOCK}),tooltip:"Play Forward"});let r=ti(function(){t._clockViewModel.clockStep=pr.SYSTEM_CLOCK},Re.getObservable(this,"_isSystemTimeAvailable"));this._playRealtimeViewModel=new s_(r,{toggled:Re.computed(function(){return e.clockStep===pr.SYSTEM_CLOCK}),tooltip:Re.computed(function(){return t._isSystemTimeAvailable?"Today (real-time)":"Current time not in range"})}),this._slower=ti(function(){let s=t._clockViewModel,a=t._allShuttleRingTicks,c=s.multiplier,l=moe(c,a)-1;l>=0&&(s.multiplier=a[l])}),this._faster=ti(function(){let s=t._clockViewModel,a=t._allShuttleRingTicks,c=s.multiplier,l=moe(c,a)+1;l<a.length&&(s.multiplier=a[l])})}Fh.defaultDateFormatter=function(e,t){let n=ee.toGregorianDate(e);return`${l9t[n.month-1]} ${n.day} ${n.year}`};Fh.defaultTicks=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800];Fh.defaultTimeFormatter=function(e,t){let n=ee.toGregorianDate(e),i=Math.round(n.millisecond);return Math.abs(t._clockViewModel.multiplier)<1?`${n.hour.toString().padStart(2,"0")}:${n.minute.toString().padStart(2,"0")}:${n.second.toString().padStart(2,"0")}.${i.toString().padStart(3,"0")}`:`${n.hour.toString().padStart(2,"0")}:${n.minute.toString().padStart(2,"0")}:${n.second.toString().padStart(2,"0")} UTC`};Fh.prototype.getShuttleRingTicks=function(){return this._sortedFilteredPositiveTicks.slice(0)};Fh.prototype.setShuttleRingTicks=function(e){let t,n,i,o={},r=this._sortedFilteredPositiveTicks;for(r.length=0,t=0,n=e.length;t<n;++t)i=e[t],o.hasOwnProperty(i)||(o[i]=!0,r.push(i));r.sort(zIe);let s=[];for(n=r.length,t=n-1;t>=0;--t)i=r[t],i!==0&&s.push(-i);Array.prototype.push.apply(s,r),this._allShuttleRingTicks=s};Object.defineProperties(Fh.prototype,{slower:{get:function(){return this._slower}},faster:{get:function(){return this._faster}},clockViewModel:{get:function(){return this._clockViewModel}},pauseViewModel:{get:function(){return this._pauseViewModel}},playReverseViewModel:{get:function(){return this._playReverseViewModel}},playForwardViewModel:{get:function(){return this._playForwardViewModel}},playRealtimeViewModel:{get:function(){return this._playRealtimeViewModel}},dateFormatter:{get:function(){return this._dateFormatter},set:function(e){this._dateFormatter=e}},timeFormatter:{get:function(){return this._timeFormatter},set:function(e){this._timeFormatter=e}}});Fh._maxShuttleRingAngle=BG;Fh._realtimeShuttleRingAngle=c_;var JD=Fh;var xtr=S(C(),1);var mtr=S(C(),1);function YIe(e){e=g(e,g.EMPTY_OBJECT);let t=e.globe,n=g(e.imageryProviderViewModels,[]),i=g(e.terrainProviderViewModels,[]);this._globe=t,this.imageryProviderViewModels=n.slice(0),this.terrainProviderViewModels=i.slice(0),this.dropDownVisible=!1,Re.track(this,["imageryProviderViewModels","terrainProviderViewModels","dropDownVisible"]);let o=Re.getObservable(this,"imageryProviderViewModels"),r=Re.pureComputed(function(){let m=o(),f={},b;for(b=0;b<m.length;b++){let T=m[b],_=T.category;d(f[_])?f[_].push(T):f[_]=[T]}let p=Object.keys(f),x=[];for(b=0;b<p.length;b++){let T=p[b];x.push({name:T,providers:f[T]})}return x});this._imageryProviders=r;let s=Re.getObservable(this,"terrainProviderViewModels"),a=Re.pureComputed(function(){let m=s(),f={},b;for(b=0;b<m.length;b++){let T=m[b],_=T.category;d(f[_])?f[_].push(T):f[_]=[T]}let p=Object.keys(f),x=[];for(b=0;b<p.length;b++){let T=p[b];x.push({name:T,providers:f[T]})}return x});this._terrainProviders=a,this.buttonTooltip=void 0,Re.defineProperty(this,"buttonTooltip",function(){let m=this.selectedImagery,f=this.selectedTerrain,b=d(m)?m.name:void 0,p=d(f)?f.name:void 0;return d(b)&&d(p)?`${b}
|
|
19018
|
-
|
|
19017
|
+
*/var soe="__knockoutObservables",aoe="__knockoutSubscribable";function WIe(e,t){if(!e)throw new Error("When calling ko.track, you must pass an object as the first parameter.");var n=this,i=PIe(e,!0);return t=t||Object.getOwnPropertyNames(e),t.forEach(function(o){if(!(o===soe||o===aoe)&&!(o in i)){var r=e[o],s=r instanceof Array,a=n.isObservable(r)?r:s?n.observableArray(r):n.observable(r);Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:a,set:n.isWriteableObservable(a)?a:void 0}),i[o]=a,s&&KNt(n,a)}}),e}function PIe(e,t){var n=e[soe];return!n&&t&&(n={},Object.defineProperty(e,soe,{value:n})),n}function ONt(e,t,n){var i=this,o={owner:e,deferEvaluation:!0};if(typeof n=="function")o.read=n;else{if("value"in n)throw new Error('For ko.defineProperty, you must not specify a "value" for the property. You must provide a "get" function.');if(typeof n.get!="function")throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, or an options object containing a function called "get".');o.read=n.get,o.write=n.set}return e[t]=i.computed(o),WIe.call(i,e,[t]),e}function KNt(e,t){var n=null;e.computed(function(){n&&(n.dispose(),n=null);var i=t();i instanceof Array&&(n=HNt(e,t,i))})}function HNt(e,t,n){var i=JNt(e,n);return i.subscribe(t)}function JNt(e,t){var n=t[aoe];if(!n){n=new e.subscribable,Object.defineProperty(t,aoe,{value:n});var i={};QNt(t,n,i),jNt(e,t,n,i)}return n}function QNt(e,t,n){["pop","push","reverse","shift","sort","splice","unshift"].forEach(function(i){var o=e[i];e[i]=function(){var r=o.apply(this,arguments);return n.pause!==!0&&t.notifySubscribers(this),r}})}function jNt(e,t,n,i){["remove","removeAll","destroy","destroyAll","replace"].forEach(function(o){Object.defineProperty(t,o,{enumerable:!1,value:function(){var r;i.pause=!0;try{r=e.observableArray.fn[o].apply(e.observableArray(t),arguments)}finally{i.pause=!1}return n.notifySubscribers(t),r}})})}function vIe(e,t){if(!e)return null;var n=PIe(e,!1);return n&&n[t]||null}function qNt(e,t){var n=vIe(e,t);n&&n.valueHasMutated()}function $Nt(e){e.track=WIe,e.getObservable=vIe,e.valueHasMutated=qNt,e.defineProperty=ONt}var UD={attachToKo:$Nt};var ber=S(C(),1),NIe="http://www.w3.org/2000/svg",FIe="cesium-svgPath-svg",e9t={register:function(e){e.bindingHandlers.cesiumSvgPath={init:function(t,n){let i=document.createElementNS(NIe,"svg:svg");i.setAttribute("class",FIe);let o=document.createElementNS(NIe,"path");return i.appendChild(o),e.virtualElements.setDomNodeChildren(t,[i]),e.computed({read:function(){let r=e.unwrap(n());o.setAttribute("d",e.unwrap(r.path));let s=e.unwrap(r.width),a=e.unwrap(r.height);i.setAttribute("width",s),i.setAttribute("height",a),i.setAttribute("viewBox",`0 0 ${s} ${a}`),r.css&&i.setAttribute("class",`${FIe} ${e.unwrap(r.css)}`)},disposeWhenNodeIsRemoved:t}),{controlsDescendantBindings:!0}}},e.virtualElements.allowedBindings.cesiumSvgPath=!0}},kD=e9t;UD.attachToKo(dL);kD.register(dL);var Re=dL;function zD(e){d(e)||(e=new vp),this._clock=e,this._eventHelper=new vs,this._eventHelper.add(e.onTick,this.synchronize,this),this.systemTime=Re.observable(ee.now()),this.systemTime.equalityComparer=ee.equals,this.startTime=Re.observable(e.startTime),this.startTime.equalityComparer=ee.equals,this.startTime.subscribe(function(t){e.startTime=t,this.synchronize()},this),this.stopTime=Re.observable(e.stopTime),this.stopTime.equalityComparer=ee.equals,this.stopTime.subscribe(function(t){e.stopTime=t,this.synchronize()},this),this.currentTime=Re.observable(e.currentTime),this.currentTime.equalityComparer=ee.equals,this.currentTime.subscribe(function(t){e.currentTime=t,this.synchronize()},this),this.multiplier=Re.observable(e.multiplier),this.multiplier.subscribe(function(t){e.multiplier=t,this.synchronize()},this),this.clockStep=Re.observable(e.clockStep),this.clockStep.subscribe(function(t){e.clockStep=t,this.synchronize()},this),this.clockRange=Re.observable(e.clockRange),this.clockRange.subscribe(function(t){e.clockRange=t,this.synchronize()},this),this.canAnimate=Re.observable(e.canAnimate),this.canAnimate.subscribe(function(t){e.canAnimate=t,this.synchronize()},this),this.shouldAnimate=Re.observable(e.shouldAnimate),this.shouldAnimate.subscribe(function(t){e.shouldAnimate=t,this.synchronize()},this),Re.track(this,["systemTime","startTime","stopTime","currentTime","multiplier","clockStep","clockRange","canAnimate","shouldAnimate"])}Object.defineProperties(zD.prototype,{clock:{get:function(){return this._clock}}});zD.prototype.synchronize=function(){let e=this._clock;this.systemTime=ee.now(),this.startTime=e.startTime,this.stopTime=e.stopTime,this.currentTime=e.currentTime,this.multiplier=e.multiplier,this.clockStep=e.clockStep,this.clockRange=e.clockRange,this.canAnimate=e.canAnimate,this.shouldAnimate=e.shouldAnimate};zD.prototype.isDestroyed=function(){return!1};zD.prototype.destroy=function(){this._eventHelper.removeAll(),fe(this)};var YD=zD;var Ger=S(C(),1);function t9t(){this.canExecute=void 0,this.beforeExecute=void 0,this.afterExecute=void 0,be.throwInstantiationError()}var coe=t9t;var Wer=S(C(),1);function n9t(e,t){t=g(t,!0);let n=new Se,i=new Se;function o(){let r={args:arguments,cancel:!1},s;return n.raiseEvent(r),r.cancel||(s=e.apply(null,arguments),i.raiseEvent(s)),s}return o.canExecute=t,Re.track(o,["canExecute"]),Object.defineProperties(o,{beforeExecute:{value:n},afterExecute:{value:i}}),o}var ti=n9t;var Fer=S(C(),1);var BD={};BD.createCheckbox=function(e,t,n){let i=document.createElement("div"),o=document.createElement("label"),r=document.createElement("input");r.type="checkbox";let s=`checked: ${t}`;return d(n)&&(s+=`, enable: ${n}`),r.setAttribute("data-bind",s),o.appendChild(r),o.appendChild(document.createTextNode(e)),i.appendChild(o),i};BD.createSection=function(e,t,n,i){let o=document.createElement("div");o.className="cesium-cesiumInspector-section",o.setAttribute("data-bind",`css: { "cesium-cesiumInspector-section-collapsed": !${n} }`),e.appendChild(o);let r=document.createElement("h3");r.className="cesium-cesiumInspector-sectionHeader",r.appendChild(document.createTextNode(t)),r.setAttribute("data-bind",`click: ${i}`),o.appendChild(r);let s=document.createElement("div");return s.className="cesium-cesiumInspector-sectionContent",o.appendChild(s),s};BD.createRangeInput=function(e,t,n,i,o,r){r=g(r,t);let s=document.createElement("input");s.setAttribute("data-bind",`value: ${r}`),s.type="number";let a=document.createElement("input");a.type="range",a.min=n,a.max=i,a.step=g(o,"any"),a.setAttribute("data-bind",`valueUpdate: "input", value: ${t}`);let c=document.createElement("div");c.appendChild(a);let l=document.createElement("div");return l.className="cesium-cesiumInspector-slider",l.appendChild(document.createTextNode(e)),l.appendChild(s),l.appendChild(c),l};BD.createButton=function(e,t,n){let i=document.createElement("button");i.type="button",i.textContent=e,i.className="cesium-cesiumInspector-pickButton";let o=`click: ${t}`;return d(n)&&(o+=`, css: {"cesium-cesiumInspector-pickButtonHighlight" : ${n}}`),i.setAttribute("data-bind",o),i};var jc=BD;var Uer=S(C(),1);function i9t(e,t,n,i,o){return n.call(i,e[t]),Re.getObservable(e,t).subscribe(n,i,o)}var Zc=i9t;var Ker=S(C(),1);function AIe(e,t){this._command=e,t=g(t,g.EMPTY_OBJECT),this.toggled=g(t.toggled,!1),this.tooltip=g(t.tooltip,""),Re.track(this,["toggled","tooltip"])}Object.defineProperties(AIe.prototype,{command:{get:function(){return this._command}}});var s_=AIe;var qer=S(C(),1);var uL="http://www.w3.org/2000/svg",kIe="http://www.w3.org/1999/xlink",XH,OD=z.fromCssColorString("rgba(247,250,255,0.384)"),MH=z.fromCssColorString("rgba(143,191,255,0.216)"),loe=z.fromCssColorString("rgba(153,197,255,0.098)"),wH=z.fromCssColorString("rgba(255,255,255,0.086)"),o9t=z.fromCssColorString("rgba(255,255,255,0.267)"),r9t=z.fromCssColorString("rgba(255,255,255,0)"),DIe=z.fromCssColorString("rgba(66,67,68,0.3)"),UIe=z.fromCssColorString("rgba(0,0,0,0.5)");function a_(e){return z.fromCssColorString(window.getComputedStyle(e).getPropertyValue("color"))}var KD={animation_pathReset:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.316,5.318,9.833,13.682,9.833,5.5,5.5,5.5,5.5,25.5,9.833,25.5,9.833,17.318,24.316,25.682z"},animation_pathPause:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M13,5.5,7.5,5.5,7.5,25.5,13,25.5zM24.5,5.5,19,5.5,19,25.5,24.5,25.5z"},animation_pathPlay:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathPlayReverse:{tagName:"path",transform:"translate(16,16) scale(-0.85,0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathLoop:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.249,15.499c-0.009,4.832-3.918,8.741-8.75,8.75c-2.515,0-4.768-1.064-6.365-2.763l2.068-1.442l-7.901-3.703l0.744,8.694l2.193-1.529c2.244,2.594,5.562,4.242,9.26,4.242c6.767,0,12.249-5.482,12.249-12.249H24.249zM15.499,6.75c2.516,0,4.769,1.065,6.367,2.764l-2.068,1.443l7.901,3.701l-0.746-8.693l-2.192,1.529c-2.245-2.594-5.562-4.245-9.262-4.245C8.734,3.25,3.25,8.734,3.249,15.499H6.75C6.758,10.668,10.668,6.758,15.499,6.75z"},animation_pathClock:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-15.5)",d:"M15.5,2.374C8.251,2.375,2.376,8.251,2.374,15.5C2.376,22.748,8.251,28.623,15.5,28.627c7.249-0.004,13.124-5.879,13.125-13.127C28.624,8.251,22.749,2.375,15.5,2.374zM15.5,25.623C9.909,25.615,5.385,21.09,5.375,15.5C5.385,9.909,9.909,5.384,15.5,5.374c5.59,0.01,10.115,4.535,10.124,10.125C25.615,21.09,21.091,25.615,15.5,25.623zM8.625,15.5c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,16.5,8.624,16.053,8.625,15.5zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.887,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM22.822,12.428c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,12.54,22.344,12.705,22.822,12.428zM12.062,21.455c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,22.344,12.54,21.732,12.062,21.455zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM22.823,18.572c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.092,0.367,1.367c0.477,0.275,1.089,0.113,1.365-0.365C23.464,19.461,23.3,18.848,22.823,18.572zM19.938,7.813c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM23.378,14.5c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,14.949,23.929,14.5,23.378,14.5zM15.501,6.624c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.365c0.275,0.479,0.889,0.643,1.365,0.367l3.305-1.676C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876C16.501,7.072,16.053,6.624,15.501,6.624zM15.501,22.377c-0.552,0-1,0.447-1,1s0.448,1,1,1s1-0.447,1-1S16.053,22.377,15.501,22.377zM18.939,21.455c-0.479,0.277-0.643,0.889-0.366,1.367c0.275,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.889,0.366-1.365C20.028,21.344,19.417,21.18,18.939,21.455z"},animation_pathWingButton:{tagName:"path",d:"m 4.5,0.5 c -2.216,0 -4,1.784 -4,4 l 0,24 c 0,2.216 1.784,4 4,4 l 13.71875,0 C 22.478584,27.272785 27.273681,22.511272 32.5,18.25 l 0,-13.75 c 0,-2.216 -1.784,-4 -4,-4 l -24,0 z"},animation_pathPointer:{tagName:"path",d:"M-15,-65,-15,-55,15,-55,15,-65,0,-95z"},animation_pathSwooshFX:{tagName:"path",d:"m 85,0 c 0,16.617 -4.813944,35.356 -13.131081,48.4508 h 6.099803 c 8.317138,-13.0948 13.13322,-28.5955 13.13322,-45.2124 0,-46.94483 -38.402714,-85.00262 -85.7743869,-85.00262 -1.0218522,0 -2.0373001,0.0241 -3.0506131,0.0589 45.958443,1.59437 82.723058,35.77285 82.723058,81.70532 z"}};function _f(e){let t=document.createElementNS(uL,e.tagName);for(let n in e)if(e.hasOwnProperty(n)&&n!=="tagName")if(n==="children"){let i=e.children.length;for(let o=0;o<i;++o)t.appendChild(_f(e.children[o]))}else n.indexOf("xlink:")===0?t.setAttributeNS(kIe,n.substring(6),e[n]):n==="textContent"?t.textContent=e[n]:t.setAttribute(n,e[n]);return t}function doe(e,t,n){let i=document.createElementNS(uL,"text");i.setAttribute("x",e),i.setAttribute("y",t),i.setAttribute("class","cesium-animation-svgText");let o=document.createElementNS(uL,"tspan");return o.textContent=n,i.appendChild(o),i}function s9t(e,t,n){e.setAttribute("transform",`translate(100,100) rotate(${n})`),t.setAttribute("transform",`rotate(${n})`)}var WH=new z;function oa(e,t){let n=t.alpha,i=1-n;return WH.red=e.red*i+t.red*n,WH.green=e.green*i+t.green*n,WH.blue=e.blue*i+t.blue*n,WH.toCssColorString()}function uoe(e,t,n){let i=KD[n],o={tagName:"g",class:"cesium-animation-rectButton",transform:`translate(${e},${t})`,children:[{tagName:"rect",class:"cesium-animation-buttonGlow",width:32,height:32,rx:2,ry:2},{tagName:"rect",class:"cesium-animation-buttonMain",width:32,height:32,rx:4,ry:4},{class:"cesium-animation-buttonPath",id:n,tagName:i.tagName,transform:i.transform,d:i.d},{tagName:"title",textContent:""}]};return _f(o)}function a9t(e,t,n){let i=KD[n],o=KD.animation_pathWingButton,r={tagName:"g",class:"cesium-animation-rectButton",transform:`translate(${e},${t})`,children:[{class:"cesium-animation-buttonGlow",id:"animation_pathWingButton",tagName:o.tagName,d:o.d},{class:"cesium-animation-buttonMain",id:"animation_pathWingButton",tagName:o.tagName,d:o.d},{class:"cesium-animation-buttonPath",id:n,tagName:i.tagName,transform:i.transform,d:i.d},{tagName:"title",textContent:""}]};return _f(r)}function c9t(e,t){let n=e._viewModel,i=n.shuttleRingDragging;if(!(i&&XH!==e))if(t.type==="mousedown"||i&&t.type==="mousemove"||t.type==="touchstart"&&t.touches.length===1||i&&t.type==="touchmove"&&t.touches.length===1){let o=e._centerX,r=e._centerY,a=e._svgNode.getBoundingClientRect(),c,l;if(t.type==="touchstart"||t.type==="touchmove"?(c=t.touches[0].clientX,l=t.touches[0].clientY):(c=t.clientX,l=t.clientY),!i&&(c>a.right||c<a.left||l<a.top||l>a.bottom))return;let u=e._shuttleRingPointer.getBoundingClientRect(),m=c-o-a.left,f=l-r-a.top,b=Math.atan2(f,m)*180/Math.PI+90;b>180&&(b-=360);let p=n.shuttleRingAngle;i||c<u.right&&c>u.left&&l>u.top&&l<u.bottom?(XH=e,n.shuttleRingDragging=!0,n.shuttleRingAngle=b):b<p?n.slower():b>p&&n.faster(),t.preventDefault()}else e===XH&&(XH=void 0),n.shuttleRingDragging=!1}function Vg(e,t){this._viewModel=t,this.svgElement=e,this._enabled=void 0,this._toggled=void 0;let n=this;this._clickFunction=function(){let i=n._viewModel.command;i.canExecute&&i()},e.addEventListener("click",this._clickFunction,!0),this._subscriptions=[Zc(t,"toggled",this.setToggled,this),Zc(t,"tooltip",this.setTooltip,this),Zc(t.command,"canExecute",this.setEnabled,this)]}Vg.prototype.destroy=function(){this.svgElement.removeEventListener("click",this._clickFunction,!0);let e=this._subscriptions;for(let t=0,n=e.length;t<n;t++)e[t].dispose();fe(this)};Vg.prototype.isDestroyed=function(){return!1};Vg.prototype.setEnabled=function(e){if(this._enabled!==e){if(this._enabled=e,!e){this.svgElement.setAttribute("class","cesium-animation-buttonDisabled");return}if(this._toggled){this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled");return}this.svgElement.setAttribute("class","cesium-animation-rectButton")}};Vg.prototype.setToggled=function(e){this._toggled!==e&&(this._toggled=e,this._enabled&&(e?this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled"):this.svgElement.setAttribute("class","cesium-animation-rectButton")))};Vg.prototype.setTooltip=function(e){this.svgElement.getElementsByTagName("title")[0].textContent=e};function YG(e,t){e=li(e),this._viewModel=t,this._container=e,this._centerX=0,this._centerY=0,this._defsElement=void 0,this._svgNode=void 0,this._topG=void 0,this._lastHeight=void 0,this._lastWidth=void 0;let n=e.ownerDocument,i=document.createElement("style");i.textContent=".cesium-animation-rectButton .cesium-animation-buttonGlow { filter: url(#animation_blurred); }.cesium-animation-rectButton .cesium-animation-buttonMain { fill: url(#animation_buttonNormal); }.cesium-animation-buttonToggled .cesium-animation-buttonMain { fill: url(#animation_buttonToggled); }.cesium-animation-rectButton:hover .cesium-animation-buttonMain { fill: url(#animation_buttonHovered); }.cesium-animation-buttonDisabled .cesium-animation-buttonMain { fill: url(#animation_buttonDisabled); }.cesium-animation-shuttleRingG .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshGradient); }.cesium-animation-shuttleRingG:hover .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshHovered); }.cesium-animation-shuttleRingPointer { fill: url(#animation_shuttleRingPointerGradient); }.cesium-animation-shuttleRingPausePointer { fill: url(#animation_shuttleRingPointerPaused); }.cesium-animation-knobOuter { fill: url(#animation_knobOuter); }.cesium-animation-knobInner { fill: url(#animation_knobInner); }",n.head.insertBefore(i,n.head.childNodes[0]);let o=document.createElement("div");o.className="cesium-animation-theme",o.innerHTML='<div class="cesium-animation-themeNormal"></div><div class="cesium-animation-themeHover"></div><div class="cesium-animation-themeSelect"></div><div class="cesium-animation-themeDisabled"></div><div class="cesium-animation-themeKnob"></div><div class="cesium-animation-themePointer"></div><div class="cesium-animation-themeSwoosh"></div><div class="cesium-animation-themeSwooshHover"></div>',this._theme=o,this._themeNormal=o.childNodes[0],this._themeHover=o.childNodes[1],this._themeSelect=o.childNodes[2],this._themeDisabled=o.childNodes[3],this._themeKnob=o.childNodes[4],this._themePointer=o.childNodes[5],this._themeSwoosh=o.childNodes[6],this._themeSwooshHover=o.childNodes[7];let r=document.createElementNS(uL,"svg:svg");this._svgNode=r,r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",kIe);let s=document.createElementNS(uL,"g");this._topG=s,this._realtimeSVG=new Vg(a9t(3,4,"animation_pathClock"),t.playRealtimeViewModel),this._playReverseSVG=new Vg(uoe(44,99,"animation_pathPlayReverse"),t.playReverseViewModel),this._playForwardSVG=new Vg(uoe(124,99,"animation_pathPlay"),t.playForwardViewModel),this._pauseSVG=new Vg(uoe(84,99,"animation_pathPause"),t.pauseViewModel);let a=document.createElementNS(uL,"g");a.appendChild(this._realtimeSVG.svgElement),a.appendChild(this._playReverseSVG.svgElement),a.appendChild(this._playForwardSVG.svgElement),a.appendChild(this._pauseSVG.svgElement);let c=_f({tagName:"circle",class:"cesium-animation-shuttleRingBack",cx:100,cy:100,r:99});this._shuttleRingBackPanel=c;let l=KD.animation_pathSwooshFX,u=KD.animation_pathPointer,m=_f({tagName:"g",class:"cesium-animation-shuttleRingSwoosh",children:[{tagName:l.tagName,transform:"translate(100,97) scale(-1,1)",id:"animation_pathSwooshFX",d:l.d},{tagName:l.tagName,transform:"translate(100,97)",id:"animation_pathSwooshFX",d:l.d},{tagName:"line",x1:100,y1:8,x2:100,y2:22}]});this._shuttleRingSwooshG=m,this._shuttleRingPointer=_f({class:"cesium-animation-shuttleRingPointer",id:"animation_pathPointer",tagName:u.tagName,d:u.d});let f=_f({tagName:"g",transform:"translate(100,100)"});this._knobOuter=_f({tagName:"circle",class:"cesium-animation-knobOuter",cx:0,cy:0,r:71});let b=61,p=_f({tagName:"circle",class:"cesium-animation-knobInner",cx:0,cy:0,r:b});this._knobDate=doe(0,-24,""),this._knobTime=doe(0,-7,""),this._knobStatus=doe(0,-41,"");let x=_f({tagName:"circle",class:"cesium-animation-blank",cx:0,cy:0,r:b}),T=document.createElementNS(uL,"g");T.setAttribute("class","cesium-animation-shuttleRingG"),e.appendChild(o),s.appendChild(T),s.appendChild(f),s.appendChild(a),T.appendChild(c),T.appendChild(m),T.appendChild(this._shuttleRingPointer),f.appendChild(this._knobOuter),f.appendChild(p),f.appendChild(this._knobDate),f.appendChild(this._knobTime),f.appendChild(this._knobStatus),f.appendChild(x),r.appendChild(s),e.appendChild(r);let _=this;function L(w){c9t(_,w)}this._mouseCallback=L,c.addEventListener("mousedown",L,!0),c.addEventListener("touchstart",L,!0),m.addEventListener("mousedown",L,!0),m.addEventListener("touchstart",L,!0),n.addEventListener("mousemove",L,!0),n.addEventListener("touchmove",L,!0),n.addEventListener("mouseup",L,!0),n.addEventListener("touchend",L,!0),n.addEventListener("touchcancel",L,!0),this._shuttleRingPointer.addEventListener("mousedown",L,!0),this._shuttleRingPointer.addEventListener("touchstart",L,!0),this._knobOuter.addEventListener("mousedown",L,!0),this._knobOuter.addEventListener("touchstart",L,!0);let V=this._knobTime.childNodes[0],Z=this._knobDate.childNodes[0],G=this._knobStatus.childNodes[0],I;this._subscriptions=[Zc(t.pauseViewModel,"toggled",function(w){I!==w&&(I=w,I?_._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPausePointer"):_._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPointer"))}),Zc(t,"shuttleRingAngle",function(w){s9t(_._shuttleRingPointer,_._knobOuter,w)}),Zc(t,"dateLabel",function(w){Z.textContent!==w&&(Z.textContent=w)}),Zc(t,"timeLabel",function(w){V.textContent!==w&&(V.textContent=w)}),Zc(t,"multiplierLabel",function(w){G.textContent!==w&&(G.textContent=w)})],this.applyThemeChanges(),this.resize()}Object.defineProperties(YG.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});YG.prototype.isDestroyed=function(){return!1};YG.prototype.destroy=function(){d(this._observer)&&(this._observer.disconnect(),this._observer=void 0);let e=this._container.ownerDocument,t=this._mouseCallback;this._shuttleRingBackPanel.removeEventListener("mousedown",t,!0),this._shuttleRingBackPanel.removeEventListener("touchstart",t,!0),this._shuttleRingSwooshG.removeEventListener("mousedown",t,!0),this._shuttleRingSwooshG.removeEventListener("touchstart",t,!0),e.removeEventListener("mousemove",t,!0),e.removeEventListener("touchmove",t,!0),e.removeEventListener("mouseup",t,!0),e.removeEventListener("touchend",t,!0),e.removeEventListener("touchcancel",t,!0),this._shuttleRingPointer.removeEventListener("mousedown",t,!0),this._shuttleRingPointer.removeEventListener("touchstart",t,!0),this._knobOuter.removeEventListener("mousedown",t,!0),this._knobOuter.removeEventListener("touchstart",t,!0),this._container.removeChild(this._svgNode),this._container.removeChild(this._theme),this._realtimeSVG.destroy(),this._playReverseSVG.destroy(),this._playForwardSVG.destroy(),this._pauseSVG.destroy();let n=this._subscriptions;for(let i=0,o=n.length;i<o;i++)n[i].dispose();return fe(this)};YG.prototype.resize=function(){let e=this._container.clientWidth,t=this._container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;let n=this._svgNode,i=200,o=132,r=e,s=t;e===0&&t===0?(r=i,s=o):e===0?(s=t,r=i*(t/o)):t===0&&(r=e,s=o*(e/i));let a=r/i,c=s/o;n.style.cssText=`width: ${r}px; height: ${s}px; position: absolute; bottom: 0; left: 0; overflow: hidden;`,n.setAttribute("width",r),n.setAttribute("height",s),n.setAttribute("viewBox",`0 0 ${r} ${s}`),this._topG.setAttribute("transform",`scale(${a},${c})`),this._centerX=Math.max(1,100*a),this._centerY=Math.max(1,100*c),this._lastHeight=e,this._lastWidth=t};YG.prototype.applyThemeChanges=function(){let e=this._container.ownerDocument;if(!e.body.contains(this._container)){if(d(this._observer))return;let u=this;u._observer=new MutationObserver(function(){e.body.contains(u._container)&&(u._observer.disconnect(),u._observer=void 0,u.applyThemeChanges())}),u._observer.observe(e,{childList:!0,subtree:!0});return}let t=a_(this._themeNormal),n=a_(this._themeHover),i=a_(this._themeSelect),o=a_(this._themeDisabled),r=a_(this._themeKnob),s=a_(this._themePointer),a=a_(this._themeSwoosh),c=a_(this._themeSwooshHover),l=_f({tagName:"defs",children:[{id:"animation_buttonNormal",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(t,OD)},{tagName:"stop",offset:"12%","stop-color":oa(t,MH)},{tagName:"stop",offset:"46%","stop-color":oa(t,loe)},{tagName:"stop",offset:"81%","stop-color":oa(t,wH)}]},{id:"animation_buttonHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(n,OD)},{tagName:"stop",offset:"12%","stop-color":oa(n,MH)},{tagName:"stop",offset:"46%","stop-color":oa(n,loe)},{tagName:"stop",offset:"81%","stop-color":oa(n,wH)}]},{id:"animation_buttonToggled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(i,OD)},{tagName:"stop",offset:"12%","stop-color":oa(i,MH)},{tagName:"stop",offset:"46%","stop-color":oa(i,loe)},{tagName:"stop",offset:"81%","stop-color":oa(i,wH)}]},{id:"animation_buttonDisabled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(o,o9t)},{tagName:"stop",offset:"75%","stop-color":oa(o,r9t)}]},{id:"animation_blurred",tagName:"filter",width:"200%",height:"200%",x:"-50%",y:"-50%",children:[{tagName:"feGaussianBlur",stdDeviation:4,in:"SourceGraphic"}]},{id:"animation_shuttleRingSwooshGradient",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":a.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":a.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":a.toCssColorString()}]},{id:"animation_shuttleRingSwooshHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":c.toCssColorString()}]},{id:"animation_shuttleRingPointerGradient",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":s.toCssColorString()},{tagName:"stop",offset:"40%","stop-color":s.toCssColorString()},{tagName:"stop",offset:"60%","stop-color":oa(s,UIe)},{tagName:"stop",offset:"100%","stop-color":oa(s,UIe)}]},{id:"animation_shuttleRingPointerPaused",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":"#CCC"},{tagName:"stop",offset:"40%","stop-color":"#CCC"},{tagName:"stop",offset:"60%","stop-color":"#555"},{tagName:"stop",offset:"100%","stop-color":"#555"}]},{id:"animation_knobOuter",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":oa(r,OD)},{tagName:"stop",offset:"60%","stop-color":oa(r,DIe)},{tagName:"stop",offset:"85%","stop-color":oa(r,MH)}]},{id:"animation_knobInner",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":oa(r,DIe)},{tagName:"stop",offset:"60%","stop-color":oa(r,OD)},{tagName:"stop",offset:"85%","stop-color":oa(r,wH)}]}]});d(this._defsElement)?this._svgNode.replaceChild(l,this._defsElement):this._svgNode.appendChild(l),this._defsElement=l};var HD=YG;var str=S(C(),1);var l9t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],c_=15,BG=105;function zIe(e,t){return e-t}function moe(e,t){let n=Xr(t,e,zIe);return n<0?~n:n}function d9t(e,t){if(Math.abs(e)<=c_)return e/c_;let n=c_,i=BG,o,r=0,s;return e>0?(o=Math.log(t[t.length-1]),s=(o-r)/(i-n),Math.exp(r+s*(e-n))):(o=Math.log(-t[0]),s=(o-r)/(i-n),-Math.exp(r+s*(Math.abs(e)-n)))}function u9t(e,t,n){if(n.clockStep===pr.SYSTEM_CLOCK)return c_;if(Math.abs(e)<=1)return e*c_;let i=t[t.length-1];e>i?e=i:e<-i&&(e=-i);let o=c_,r=BG,s,a=0,c;return e>0?(s=Math.log(i),c=(s-a)/(r-o),(Math.log(e)-a)/c+o):(s=Math.log(-t[0]),c=(s-a)/(r-o),-((Math.log(Math.abs(e))-a)/c+o))}function Fh(e){let t=this;this._clockViewModel=e,this._allShuttleRingTicks=[],this._dateFormatter=Fh.defaultDateFormatter,this._timeFormatter=Fh.defaultTimeFormatter,this.shuttleRingDragging=!1,this.snapToTicks=!1,Re.track(this,["_allShuttleRingTicks","_dateFormatter","_timeFormatter","shuttleRingDragging","snapToTicks"]),this._sortedFilteredPositiveTicks=[],this.setShuttleRingTicks(Fh.defaultTicks),this.timeLabel=void 0,Re.defineProperty(this,"timeLabel",function(){return t._timeFormatter(t._clockViewModel.currentTime,t)}),this.dateLabel=void 0,Re.defineProperty(this,"dateLabel",function(){return t._dateFormatter(t._clockViewModel.currentTime,t)}),this.multiplierLabel=void 0,Re.defineProperty(this,"multiplierLabel",function(){let s=t._clockViewModel;if(s.clockStep===pr.SYSTEM_CLOCK)return"Today";let a=s.multiplier;return a%1===0?`${a.toFixed(0)}x`:`${a.toFixed(3).replace(/0{0,3}$/,"")}x`}),this.shuttleRingAngle=void 0,Re.defineProperty(this,"shuttleRingAngle",{get:function(){return u9t(e.multiplier,t._allShuttleRingTicks,e)},set:function(s){s=Math.max(Math.min(s,BG),-BG);let a=t._allShuttleRingTicks,c=t._clockViewModel;if(c.clockStep=pr.SYSTEM_CLOCK_MULTIPLIER,Math.abs(s)===BG){c.multiplier=s>0?a[a.length-1]:a[0];return}let l=d9t(s,a);if(t.snapToTicks)l=a[moe(l,a)];else if(l!==0){let u=Math.abs(l);if(u>100){let m=u.toFixed(0).length-2,f=Math.pow(10,m);l=Math.round(l/f)*f|0}else u>c_?l=Math.round(l):u>1?l=+l.toFixed(1):u>0&&(l=+l.toFixed(2))}c.multiplier=l}}),this._canAnimate=void 0,Re.defineProperty(this,"_canAnimate",function(){let s=t._clockViewModel,a=s.clockRange;if(t.shuttleRingDragging||a===Ds.UNBOUNDED)return!0;let c=s.multiplier,l=s.currentTime,u=s.startTime,m=!1;if(a===Ds.LOOP_STOP)m=ee.greaterThan(l,u)||l.equals(u)&&c>0;else{let f=s.stopTime;m=ee.greaterThan(l,u)&&ee.lessThan(l,f)||l.equals(u)&&c>0||l.equals(f)&&c<0}return m||(s.shouldAnimate=!1),m}),this._isSystemTimeAvailable=void 0,Re.defineProperty(this,"_isSystemTimeAvailable",function(){let s=t._clockViewModel;if(s.clockRange===Ds.UNBOUNDED)return!0;let c=s.systemTime;return ee.greaterThanOrEquals(c,s.startTime)&&ee.lessThanOrEquals(c,s.stopTime)}),this._isAnimating=void 0,Re.defineProperty(this,"_isAnimating",function(){return t._clockViewModel.shouldAnimate&&(t._canAnimate||t.shuttleRingDragging)});let n=ti(function(){let s=t._clockViewModel;s.shouldAnimate?s.shouldAnimate=!1:t._canAnimate&&(s.shouldAnimate=!0)});this._pauseViewModel=new s_(n,{toggled:Re.computed(function(){return!t._isAnimating}),tooltip:"Pause"});let i=ti(function(){let s=t._clockViewModel,a=s.multiplier;a>0&&(s.multiplier=-a),s.shouldAnimate=!0});this._playReverseViewModel=new s_(i,{toggled:Re.computed(function(){return t._isAnimating&&e.multiplier<0}),tooltip:"Play Reverse"});let o=ti(function(){let s=t._clockViewModel,a=s.multiplier;a<0&&(s.multiplier=-a),s.shouldAnimate=!0});this._playForwardViewModel=new s_(o,{toggled:Re.computed(function(){return t._isAnimating&&e.multiplier>0&&e.clockStep!==pr.SYSTEM_CLOCK}),tooltip:"Play Forward"});let r=ti(function(){t._clockViewModel.clockStep=pr.SYSTEM_CLOCK},Re.getObservable(this,"_isSystemTimeAvailable"));this._playRealtimeViewModel=new s_(r,{toggled:Re.computed(function(){return e.clockStep===pr.SYSTEM_CLOCK}),tooltip:Re.computed(function(){return t._isSystemTimeAvailable?"Today (real-time)":"Current time not in range"})}),this._slower=ti(function(){let s=t._clockViewModel,a=t._allShuttleRingTicks,c=s.multiplier,l=moe(c,a)-1;l>=0&&(s.multiplier=a[l])}),this._faster=ti(function(){let s=t._clockViewModel,a=t._allShuttleRingTicks,c=s.multiplier,l=moe(c,a)+1;l<a.length&&(s.multiplier=a[l])})}Fh.defaultDateFormatter=function(e,t){let n=ee.toGregorianDate(e);return`${l9t[n.month-1]} ${n.day} ${n.year}`};Fh.defaultTicks=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800];Fh.defaultTimeFormatter=function(e,t){let n=ee.toGregorianDate(e),i=Math.round(n.millisecond);return Math.abs(t._clockViewModel.multiplier)<1?`${n.hour.toString().padStart(2,"0")}:${n.minute.toString().padStart(2,"0")}:${n.second.toString().padStart(2,"0")}.${i.toString().padStart(3,"0")}`:`${n.hour.toString().padStart(2,"0")}:${n.minute.toString().padStart(2,"0")}:${n.second.toString().padStart(2,"0")} UTC`};Fh.prototype.getShuttleRingTicks=function(){return this._sortedFilteredPositiveTicks.slice(0)};Fh.prototype.setShuttleRingTicks=function(e){let t,n,i,o={},r=this._sortedFilteredPositiveTicks;for(r.length=0,t=0,n=e.length;t<n;++t)i=e[t],o.hasOwnProperty(i)||(o[i]=!0,r.push(i));r.sort(zIe);let s=[];for(n=r.length,t=n-1;t>=0;--t)i=r[t],i!==0&&s.push(-i);Array.prototype.push.apply(s,r),this._allShuttleRingTicks=s};Object.defineProperties(Fh.prototype,{slower:{get:function(){return this._slower}},faster:{get:function(){return this._faster}},clockViewModel:{get:function(){return this._clockViewModel}},pauseViewModel:{get:function(){return this._pauseViewModel}},playReverseViewModel:{get:function(){return this._playReverseViewModel}},playForwardViewModel:{get:function(){return this._playForwardViewModel}},playRealtimeViewModel:{get:function(){return this._playRealtimeViewModel}},dateFormatter:{get:function(){return this._dateFormatter},set:function(e){this._dateFormatter=e}},timeFormatter:{get:function(){return this._timeFormatter},set:function(e){this._timeFormatter=e}}});Fh._maxShuttleRingAngle=BG;Fh._realtimeShuttleRingAngle=c_;var JD=Fh;var gtr=S(C(),1);var utr=S(C(),1);function m9t(e){return function(t){let n=e._scene.pick(t.position);d(n)&&(n.primitive instanceof $s||n.primitive instanceof Cl)&&(e.tileset=n.primitive),e.pickActive=!1}}function BIe(e,t){t?e._eventHandler.setInputAction(function(n){let i=e._scene.pick(n.endPosition);d(i)&&(i.primitive instanceof $s||i.primitive instanceof Cl)&&(e.tileset=i.primitive)},qn.MOUSE_MOVE):(e._eventHandler.removeInputAction(qn.MOUSE_MOVE),e.picking=e.picking)}var h9t={maximumFractionDigits:3};function QD(e){let t=e/1048576;return t<1?t.toLocaleString(void 0,h9t):Math.round(t).toLocaleString()}function jD(e,t){if(!d(e))return"";let n=t?e._statisticsPerPass[ro.PICK]:e._statisticsPerPass[ro.RENDER],i='<ul class="cesium-cesiumInspector-statistics">';return i+=`<li><strong>Visited: </strong>${n.visited.toLocaleString()}</li><li><strong>Selected: </strong>${n.selected.toLocaleString()}</li><li><strong>Commands: </strong>${n.numberOfCommands.toLocaleString()}</li>`,i+="</ul>",t||(i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Requests: </strong>${n.numberOfPendingRequests.toLocaleString()}</li><li><strong>Attempted: </strong>${n.numberOfAttemptedRequests.toLocaleString()}</li><li><strong>Processing: </strong>${n.numberOfTilesProcessing.toLocaleString()}</li><li><strong>Content Ready: </strong>${n.numberOfTilesWithContentReady.toLocaleString()}</li><li><strong>Total: </strong>${n.numberOfTilesTotal.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Features Selected: </strong>${n.numberOfFeaturesSelected.toLocaleString()}</li><li><strong>Features Loaded: </strong>${n.numberOfFeaturesLoaded.toLocaleString()}</li><li><strong>Points Selected: </strong>${n.numberOfPointsSelected.toLocaleString()}</li><li><strong>Points Loaded: </strong>${n.numberOfPointsLoaded.toLocaleString()}</li><li><strong>Triangles Selected: </strong>${n.numberOfTrianglesSelected.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Tiles styled: </strong>${n.numberOfTilesStyled.toLocaleString()}</li><li><strong>Features styled: </strong>${n.numberOfFeaturesStyled.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Children Union Culled: </strong>${n.numberOfTilesCulledWithChildrenUnion.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Geometry Memory (MB): </strong>${QD(n.geometryByteLength)}</li><li><strong>Texture Memory (MB): </strong>${QD(n.texturesByteLength)}</li><li><strong>Batch Table Memory (MB): </strong>${QD(n.batchTableByteLength)}</li>`,i+="</ul>"),i}function OIe(){let e=ji.statistics;return`
|
|
19018
|
+
<ul class="cesium-cesiumInspector-statistics">
|
|
19019
|
+
<li><strong>Geometry Memory (MB): </strong>${QD(e.geometryByteLength)}</li>
|
|
19020
|
+
<li><strong>Texture Memory (MB): </strong>${QD(e.texturesByteLength)}</li>
|
|
19021
|
+
</ul>
|
|
19022
|
+
`}var p9t=[{text:"Highlight",value:ul.HIGHLIGHT},{text:"Replace",value:ul.REPLACE},{text:"Mix",value:ul.MIX}],YIe=new z(1,1,0,.4),f9t=new z,PH=new z;function Rc(e,t){let n=this,i=e.canvas;this._eventHandler=new um(i),this._scene=e,this._performanceContainer=t,this._canvas=i,this._performanceDisplay=new yg({container:t}),this._statisticsText="",this._pickStatisticsText="",this._resourceCacheStatisticsText="",this._editorError="",this.performance=!1,this.showStatistics=!0,this.showPickStatistics=!0,this.showResourceCacheStatistics=!1,this.inspectorVisible=!0,this.tilesetVisible=!1,this.displayVisible=!1,this.updateVisible=!1,this.loggingVisible=!1,this.styleVisible=!1,this.tileDebugLabelsVisible=!1,this.optimizationVisible=!1,this.styleString="{}",this.hasEnabledWireframe=!1,this._tileset=void 0,this._feature=void 0,this._tile=void 0,Re.track(this,["performance","inspectorVisible","_statisticsText","_pickStatisticsText","_resourceCacheStatisticsText","_editorError","showPickStatistics","showStatistics","showResourceCacheStatistics","tilesetVisible","displayVisible","updateVisible","loggingVisible","styleVisible","optimizationVisible","tileDebugLabelsVisible","styleString","_feature","_tile","_tileset","hasEnabledWireframe"]),this._properties=Re.observable({}),this.properties=[],Re.defineProperty(this,"properties",function(){let D=[],O=n._properties();for(let K in O)O.hasOwnProperty(K)&&D.push(K);return D});let o=Re.observable();Re.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return o()},set:function(D){o(D),d(n._tileset)&&(n._tileset.dynamicScreenSpaceError=D)}}),this.dynamicScreenSpaceError=!1;let r=Re.observable();Re.defineProperty(this,"colorBlendMode",{get:function(){return r()},set:function(D){r(D),d(n._tileset)&&(n._tileset.colorBlendMode=D,n._scene.requestRender())}}),this.colorBlendMode=ul.HIGHLIGHT;let s=Re.observable(),a=Re.observable();Re.defineProperty(this,"picking",{get:function(){return a()},set:function(D){a(D),D?n._eventHandler.setInputAction(function(O){let K=e.pick(O.endPosition);if(K instanceof ka?(n.feature=K,n.tile=K.content.tile):d(K)&&d(K.content)?(n.feature=void 0,n.tile=K.content.tile):(n.feature=void 0,n.tile=void 0),!!d(n._tileset)){if(s&&d(K)&&d(K.content)){let j;e.pickPositionSupported&&(j=e.pickPosition(O.endPosition),d(j)&&(n._tileset.debugPickPosition=j)),n._tileset.debugPickedTile=K.content.tile}else n._tileset.debugPickedTile=void 0;n._scene.requestRender()}},qn.MOUSE_MOVE):(n.feature=void 0,n.tile=void 0,n._eventHandler.removeInputAction(qn.MOUSE_MOVE))}}),this.picking=!0;let c=Re.observable();Re.defineProperty(this,"colorize",{get:function(){return c()},set:function(D){c(D),d(n._tileset)&&(n._tileset.debugColorizeTiles=D,n._scene.requestRender())}}),this.colorize=!1;let l=Re.observable();Re.defineProperty(this,"wireframe",{get:function(){return l()},set:function(D){l(D),d(n._tileset)&&(n._tileset.debugWireframe=D,n._scene.requestRender())}}),this.wireframe=!1;let u=Re.observable();Re.defineProperty(this,"showBoundingVolumes",{get:function(){return u()},set:function(D){u(D),d(n._tileset)&&(n._tileset.debugShowBoundingVolume=D,n._scene.requestRender())}}),this.showBoundingVolumes=!1;let m=Re.observable();Re.defineProperty(this,"showContentBoundingVolumes",{get:function(){return m()},set:function(D){m(D),d(n._tileset)&&(n._tileset.debugShowContentBoundingVolume=D,n._scene.requestRender())}}),this.showContentBoundingVolumes=!1;let f=Re.observable();Re.defineProperty(this,"showRequestVolumes",{get:function(){return f()},set:function(D){f(D),d(n._tileset)&&(n._tileset.debugShowViewerRequestVolume=D,n._scene.requestRender())}}),this.showRequestVolumes=!1;let b=Re.observable();Re.defineProperty(this,"freezeFrame",{get:function(){return b()},set:function(D){b(D),d(n._tileset)&&(n._tileset.debugFreezeFrame=D,n._scene.debugShowFrustumPlanes=D,n._scene.requestRender())}}),this.freezeFrame=!1,Re.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return s()},set:function(D){s(D),d(n._tileset)&&(n._tileset.debugPickedTileLabelOnly=D,n._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;let p=Re.observable();Re.defineProperty(this,"showGeometricError",{get:function(){return p()},set:function(D){p(D),d(n._tileset)&&(n._tileset.debugShowGeometricError=D,n._scene.requestRender())}}),this.showGeometricError=!1;let x=Re.observable();Re.defineProperty(this,"showRenderingStatistics",{get:function(){return x()},set:function(D){x(D),d(n._tileset)&&(n._tileset.debugShowRenderingStatistics=D,n._scene.requestRender())}}),this.showRenderingStatistics=!1;let T=Re.observable();Re.defineProperty(this,"showMemoryUsage",{get:function(){return T()},set:function(D){T(D),d(n._tileset)&&(n._tileset.debugShowMemoryUsage=D,n._scene.requestRender())}}),this.showMemoryUsage=!1;let _=Re.observable();Re.defineProperty(this,"showUrl",{get:function(){return _()},set:function(D){_(D),d(n._tileset)&&(n._tileset.debugShowUrl=D,n._scene.requestRender())}}),this.showUrl=!1;let L=Re.observable();Re.defineProperty(this,"maximumScreenSpaceError",{get:function(){return L()},set:function(D){D=Number(D),isNaN(D)||(L(D),d(n._tileset)&&(n._tileset.maximumScreenSpaceError=D))}}),this.maximumScreenSpaceError=16;let V=Re.observable();Re.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return V()},set:function(D){D=Number(D),isNaN(D)||(V(D),d(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorDensity=D))}}),this.dynamicScreenSpaceErrorDensity=2e-4,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,Re.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(V(),1/6)},set:function(D){let O=Math.pow(D,6);V(O),d(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorDensity=O)}});let Z=Re.observable();Re.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return Z()},set:function(D){D=Number(D),isNaN(D)||(Z(D),d(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorFactor=D))}}),this.dynamicScreenSpaceErrorFactor=24;let G=m9t(this),I=Re.observable();Re.defineProperty(this,"pickActive",{get:function(){return I()},set:function(D){I(D),D?n._eventHandler.setInputAction(G,qn.LEFT_CLICK):n._eventHandler.removeInputAction(qn.LEFT_CLICK)}});let w=Re.observable();Re.defineProperty(this,"pointCloudShading",{get:function(){return w()},set:function(D){w(D),d(n._tileset)&&(n._tileset.pointCloudShading.attenuation=D)}}),this.pointCloudShading=!1;let W=Re.observable();Re.defineProperty(this,"geometricErrorScale",{get:function(){return W()},set:function(D){D=Number(D),isNaN(D)||(W(D),d(n._tileset)&&(n._tileset.pointCloudShading.geometricErrorScale=D))}}),this.geometricErrorScale=1;let v=Re.observable();Re.defineProperty(this,"maximumAttenuation",{get:function(){return v()},set:function(D){D=Number(D),isNaN(D)||(v(D),d(n._tileset)&&(n._tileset.pointCloudShading.maximumAttenuation=D===0?void 0:D))}}),this.maximumAttenuation=0;let N=Re.observable();Re.defineProperty(this,"baseResolution",{get:function(){return N()},set:function(D){D=Number(D),isNaN(D)||(N(D),d(n._tileset)&&(n._tileset.pointCloudShading.baseResolution=D===0?void 0:D))}}),this.baseResolution=0;let y=Re.observable();Re.defineProperty(this,"eyeDomeLighting",{get:function(){return y()},set:function(D){y(D),d(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLighting=D)}}),this.eyeDomeLighting=!1;let R=Re.observable();Re.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return R()},set:function(D){D=Number(D),isNaN(D)||(R(D),d(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLightingStrength=D))}}),this.eyeDomeLightingStrength=1;let E=Re.observable();Re.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return E()},set:function(D){D=Number(D),isNaN(D)||(E(D),d(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLightingRadius=D))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;let X=Re.observable();Re.defineProperty(this,"skipLevelOfDetail",{get:function(){return X()},set:function(D){X(D),d(n._tileset)&&(n._tileset.skipLevelOfDetail=D)}}),this.skipLevelOfDetail=!0;let F=Re.observable();Re.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return F()},set:function(D){D=Number(D),isNaN(D)||(F(D),d(n._tileset)&&(n._tileset.skipScreenSpaceErrorFactor=D))}}),this.skipScreenSpaceErrorFactor=16;let A=Re.observable();Re.defineProperty(this,"baseScreenSpaceError",{get:function(){return A()},set:function(D){D=Number(D),isNaN(D)||(A(D),d(n._tileset)&&(n._tileset.baseScreenSpaceError=D))}}),this.baseScreenSpaceError=1024;let Y=Re.observable();Re.defineProperty(this,"skipLevels",{get:function(){return Y()},set:function(D){D=Number(D),isNaN(D)||(Y(D),d(n._tileset)&&(n._tileset.skipLevels=D))}}),this.skipLevels=1;let U=Re.observable();Re.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return U()},set:function(D){U(D),d(n._tileset)&&(n._tileset.immediatelyLoadDesiredLevelOfDetail=D)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;let k=Re.observable();Re.defineProperty(this,"loadSiblings",{get:function(){return k()},set:function(D){k(D),d(n._tileset)&&(n._tileset.loadSiblings=D)}}),this.loadSiblings=!1,this._style=void 0,this._shouldStyle=!1,this._definedProperties=["properties","dynamicScreenSpaceError","colorBlendMode","picking","colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","maximumScreenSpaceError","dynamicScreenSpaceErrorDensity","baseScreenSpaceError","skipScreenSpaceErrorFactor","skipLevelOfDetail","skipLevels","immediatelyLoadDesiredLevelOfDetail","loadSiblings","dynamicScreenSpaceErrorDensitySliderValue","dynamicScreenSpaceErrorFactor","pickActive","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl","pointCloudShading","geometricErrorScale","maximumAttenuation","baseResolution","eyeDomeLighting","eyeDomeLightingStrength","eyeDomeLightingRadius"],this._removePostRenderEvent=e.postRender.addEventListener(function(){n._update()}),d(this._tileset)||BIe(this,!0)}Object.defineProperties(Rc.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},statisticsText:{get:function(){return this._statisticsText}},pickStatisticsText:{get:function(){return this._pickStatisticsText}},resourceCacheStatisticsText:{get:function(){return this._resourceCacheStatisticsText}},colorBlendModes:{get:function(){return p9t}},editorError:{get:function(){return this._editorError}},tileset:{get:function(){return this._tileset},set:function(e){if(this._tileset=e,this._style=void 0,this.styleString="{}",this.feature=void 0,this.tile=void 0,d(e)){this._properties(e.properties);let t=["colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl"],n=t.length;for(let o=0;o<n;++o){let r=t[o];this[r]=this[r]}this.maximumScreenSpaceError=e.maximumScreenSpaceError,this.dynamicScreenSpaceError=e.dynamicScreenSpaceError,this.dynamicScreenSpaceErrorDensity=e.dynamicScreenSpaceErrorDensity,this.dynamicScreenSpaceErrorFactor=e.dynamicScreenSpaceErrorFactor,this.colorBlendMode=e.colorBlendMode,this.skipLevelOfDetail=e.skipLevelOfDetail,this.skipScreenSpaceErrorFactor=e.skipScreenSpaceErrorFactor,this.baseScreenSpaceError=e.baseScreenSpaceError,this.skipLevels=e.skipLevels,this.immediatelyLoadDesiredLevelOfDetail=e.immediatelyLoadDesiredLevelOfDetail,this.loadSiblings=e.loadSiblings,this.hasEnabledWireframe=e._enableDebugWireframe;let i=e.pointCloudShading;this.pointCloudShading=i.attenuation,this.geometricErrorScale=i.geometricErrorScale,this.maximumAttenuation=i.maximumAttenuation?i.maximumAttenuation:0,this.baseResolution=i.baseResolution?i.baseResolution:0,this.eyeDomeLighting=i.eyeDomeLighting,this.eyeDomeLightingStrength=i.eyeDomeLightingStrength,this.eyeDomeLightingRadius=i.eyeDomeLightingRadius,this._scene.requestRender()}else this._properties({});this._statisticsText=jD(e,!1),this._pickStatisticsText=jD(e,!0),this._resourceCacheStatisticsText=OIe(),BIe(this,!1)}},feature:{get:function(){return this._feature},set:function(e){if(this._feature===e)return;let t=this._feature;d(t)&&!t.content.isDestroyed()&&(!this.colorize&&d(this._style)?t.color=d(this._style.color)?this._style.color.evaluateColor(t,f9t):z.WHITE:t.color=PH,this._scene.requestRender()),d(e)&&(z.clone(e.color,PH),e.color=YIe,this._scene.requestRender()),this._feature=e}},tile:{get:function(){return this._tile},set:function(e){if(this._tile===e)return;let t=this._tile;d(t)&&!t.isDestroyed()&&!hoe(t.content)&&(t.color=PH,this._scene.requestRender()),d(e)&&!hoe(e.content)&&(z.clone(e.color,PH),e.color=YIe,this._scene.requestRender()),this._tile=e}}});function hoe(e){if(!d(e))return!1;if(e.featuresLength>0)return!0;let t=e.innerContents;if(d(t)){let n=t.length;for(let i=0;i<n;++i)if(!hoe(t[i]))return!1;return!0}return!1}Rc.prototype.togglePickTileset=function(){this.pickActive=!this.pickActive};Rc.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};Rc.prototype.toggleTileset=function(){this.tilesetVisible=!this.tilesetVisible};Rc.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};Rc.prototype.toggleUpdate=function(){this.updateVisible=!this.updateVisible};Rc.prototype.toggleLogging=function(){this.loggingVisible=!this.loggingVisible};Rc.prototype.toggleStyle=function(){this.styleVisible=!this.styleVisible};Rc.prototype.toggleTileDebugLabels=function(){this.tileDebugLabelsVisible=!this.tileDebugLabelsVisible};Rc.prototype.toggleOptimization=function(){this.optimizationVisible=!this.optimizationVisible};Rc.prototype.trimTilesCache=function(){d(this._tileset)&&this._tileset.trimLoadedTiles()};Rc.prototype.compileStyle=function(){let e=this._tileset;if(!(!d(e)||this.styleString===JSON.stringify(e.style))){this._editorError="";try{this.styleString.length===0&&(this.styleString="{}"),this._style=new TC(JSON.parse(this.styleString)),this._shouldStyle=!0,this._scene.requestRender()}catch(t){this._editorError=t.toString()}this.feature=this._feature,this.tile=this._tile}};Rc.prototype.styleEditorKeyPress=function(e,t){if(t.keyCode===9){t.preventDefault();let n=t.target,i=n.selectionStart,o=n.selectionEnd,r=o,a=n.value.slice(i,o).split(`
|
|
19023
|
+
`),c=a.length,l;if(t.shiftKey)for(l=0;l<c;++l)a[l][0]===" "&&(a[l][1]===" "?(a[l]=a[l].substr(2),r-=2):(a[l]=a[l].substr(1),r-=1));else for(l=0;l<c;++l)a[l]=` ${a[l]}`,r+=2;let u=a.join(`
|
|
19024
|
+
`);n.value=n.value.slice(0,i)+u+n.value.slice(o),n.selectionStart=i!==o?i:r,n.selectionEnd=r}else t.ctrlKey&&(t.keyCode===10||t.keyCode===13)&&this.compileStyle();return!0};Rc.prototype._update=function(){let e=this._tileset;if(this.performance&&this._performanceDisplay.update(),d(e)){if(e.isDestroyed()){this.tile=void 0,this.feature=void 0,this.tileset=void 0;return}let t=e.style;this._style!==e.style&&(this._shouldStyle?(e.style=this._style,this._shouldStyle=!1):(this._style=t,this.styleString=JSON.stringify(t.style,null," ")))}this.showStatistics&&(this._statisticsText=jD(e,!1),this._pickStatisticsText=jD(e,!0),this._resourceCacheStatisticsText=OIe())};Rc.prototype.isDestroyed=function(){return!1};Rc.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let e=this;return this._definedProperties.forEach(function(t){Re.getObservable(e,t).dispose()}),fe(this)};Rc.getStatistics=jD;var qD=Rc;function vH(e,t){e=li(e);let n=document.createElement("div"),i=document.createElement("div");i.setAttribute("data-bind","visible: performance");let o=new qD(t,i);this._viewModel=o,this._container=e,this._element=n;let r=document.createElement("div");r.textContent="3D Tiles / M3D Inspector",r.className="cesium-cesiumInspector-button",r.setAttribute("data-bind","click: toggleInspector"),n.appendChild(r),n.className="cesium-cesiumInspector cesium-3DTilesInspector",n.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(n);let s=document.createElement("div");s.className="cesium-cesiumInspector-dropDown",n.appendChild(s);let a=jc.createSection,c=jc.createCheckbox,l=jc.createRangeInput,u=jc.createButton,m=a(s,"Tileset","tilesetVisible","toggleTileset"),f=a(s,"Display","displayVisible","toggleDisplay"),b=a(s,"Update","updateVisible","toggleUpdate"),p=a(s,"Logging","loggingVisible","toggleLogging"),x=a(s,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),T=a(s,"Style","styleVisible","toggleStyle"),_=a(s,"Optimization","optimizationVisible","toggleOptimization"),L=document.createElement("div");L.className="field-group";let V=document.createElement("label");V.className="field-label",V.appendChild(document.createTextNode("Properties: "));let Z=document.createElement("div");Z.setAttribute("data-bind","text: properties"),L.appendChild(V),L.appendChild(Z),m.appendChild(L),m.appendChild(u("Pick Tileset","togglePickTileset","pickActive")),m.appendChild(u("Trim Tiles Cache","trimTilesCache")),m.appendChild(c("Enable Picking","picking")),f.appendChild(c("Colorize","colorize"));let G=f.appendChild(c("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),I=document.createElement("p");I.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),I.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),I.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",G.appendChild(I),f.appendChild(c("Bounding Volumes","showBoundingVolumes")),f.appendChild(c("Content Volumes","showContentBoundingVolumes")),f.appendChild(c("Request Volumes","showRequestVolumes")),f.appendChild(c("Point Cloud Shading","pointCloudShading"));let w=document.createElement("div");w.setAttribute("data-bind","visible: pointCloudShading"),w.appendChild(l("Geometric Error Scale","geometricErrorScale",0,2,.01)),w.appendChild(l("Maximum Attenuation","maximumAttenuation",0,32,1)),w.appendChild(l("Base Resolution","baseResolution",0,1,.01)),w.appendChild(c("Eye Dome Lighting (EDL)","eyeDomeLighting")),f.appendChild(w);let W=document.createElement("div");W.setAttribute("data-bind","visible: eyeDomeLighting"),W.appendChild(l("EDL Strength","eyeDomeLightingStrength",0,2,.1)),W.appendChild(l("EDL Radius","eyeDomeLightingRadius",0,4,.1)),w.appendChild(W),b.appendChild(c("Freeze Frame","freezeFrame")),b.appendChild(c("Dynamic Screen Space Error","dynamicScreenSpaceError"));let v=document.createElement("div");v.appendChild(l("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),b.appendChild(v);let N=document.createElement("div");N.setAttribute("data-bind","visible: dynamicScreenSpaceError"),N.appendChild(l("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),N.appendChild(l("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),b.appendChild(N),p.appendChild(c("Performance","performance")),p.appendChild(i),p.appendChild(c("Statistics","showStatistics"));let y=document.createElement("div");y.className="cesium-3dTilesInspector-statistics",y.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),p.appendChild(y),p.appendChild(c("Pick Statistics","showPickStatistics"));let R=document.createElement("div");R.className="cesium-3dTilesInspector-statistics",R.setAttribute("data-bind","html: pickStatisticsText, visible: showPickStatistics"),p.appendChild(R),p.appendChild(c("Resource Cache Statistics","showResourceCacheStatistics"));let E=document.createElement("div");E.className="cesium-3dTilesInspector-statistics",E.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),p.appendChild(E);let X=document.createElement("div");T.appendChild(X),X.appendChild(document.createTextNode("Color Blend Mode: "));let F=document.createElement("select");F.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),X.appendChild(F);let A=document.createElement("textarea");A.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),X.className="cesium-cesiumInspector-styleEditor",X.appendChild(A);let Y=u("Compile (Ctrl+Enter)","compileStyle");X.appendChild(Y);let U=document.createElement("div");U.className="cesium-cesiumInspector-error",U.setAttribute("data-bind","text: editorError"),X.appendChild(U),x.appendChild(c("Show Picked Only","showOnlyPickedTileDebugLabel")),x.appendChild(c("Geometric Error","showGeometricError")),x.appendChild(c("Rendering Statistics","showRenderingStatistics")),x.appendChild(c("Memory Usage (MB)","showMemoryUsage")),x.appendChild(c("Url","showUrl")),_.appendChild(c("Skip Tile LODs","skipLevelOfDetail"));let k=document.createElement("div");k.appendChild(l("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),_.appendChild(k);let D=document.createElement("div");D.appendChild(l("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),_.appendChild(D);let O=document.createElement("div");O.appendChild(l("Min. levels to skip","skipLevels",0,10,1)),_.appendChild(O),_.appendChild(c("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),_.appendChild(c("Load siblings of visible tiles","loadSiblings")),Re.applyBindings(o,n)}Object.defineProperties(vH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});vH.prototype.isDestroyed=function(){return!1};vH.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),fe(this)};var $D=vH;var Xtr=S(C(),1);var Ltr=S(C(),1);function KIe(e){e=g(e,g.EMPTY_OBJECT);let t=e.globe,n=g(e.imageryProviderViewModels,[]),i=g(e.terrainProviderViewModels,[]);this._globe=t,this.imageryProviderViewModels=n.slice(0),this.terrainProviderViewModels=i.slice(0),this.dropDownVisible=!1,Re.track(this,["imageryProviderViewModels","terrainProviderViewModels","dropDownVisible"]);let o=Re.getObservable(this,"imageryProviderViewModels"),r=Re.pureComputed(function(){let m=o(),f={},b;for(b=0;b<m.length;b++){let T=m[b],_=T.category;d(f[_])?f[_].push(T):f[_]=[T]}let p=Object.keys(f),x=[];for(b=0;b<p.length;b++){let T=p[b];x.push({name:T,providers:f[T]})}return x});this._imageryProviders=r;let s=Re.getObservable(this,"terrainProviderViewModels"),a=Re.pureComputed(function(){let m=s(),f={},b;for(b=0;b<m.length;b++){let T=m[b],_=T.category;d(f[_])?f[_].push(T):f[_]=[T]}let p=Object.keys(f),x=[];for(b=0;b<p.length;b++){let T=p[b];x.push({name:T,providers:f[T]})}return x});this._terrainProviders=a,this.buttonTooltip=void 0,Re.defineProperty(this,"buttonTooltip",function(){let m=this.selectedImagery,f=this.selectedTerrain,b=d(m)?m.name:void 0,p=d(f)?f.name:void 0;return d(b)&&d(p)?`${b}
|
|
19025
|
+
${p}`:d(b)?b:p}),this.buttonImageUrl=void 0,Re.defineProperty(this,"buttonImageUrl",function(){let m=this.selectedImagery;if(d(m))return m.iconUrl}),this.selectedImagery=void 0;let c=Re.observable();this._currentImageryLayers=[],Re.defineProperty(this,"selectedImagery",{get:function(){return c()},set:function(m){if(c()===m){this.dropDownVisible=!1;return}let f,b=this._currentImageryLayers,p=b.length,x=this._globe.imageryLayers,T=!1;for(f=0;f<p;f++){let _=x.length;for(let L=0;L<_;L++){let V=x.get(L);if(V===b[f]){x.remove(V),T=!0;break}}}if(d(m)){let _=m.creationCommand();if(Array.isArray(_)){let L=_.length;for(this._currentImageryLayers=[],f=L-1;f>=0;f--){let V=Ys.fromProviderAsync(_[f]);x.add(V,0),this._currentImageryLayers.push(V)}}else{this._currentImageryLayers=[];let L=Ys.fromProviderAsync(_);if(L.name=m.name,T)x.add(L,0);else{let V=x.get(0);d(V)&&x.remove(V),x.add(L,0)}this._currentImageryLayers.push(L)}}c(m),this.dropDownVisible=!1}}),this.selectedTerrain=void 0;let l=Re.observable();Re.defineProperty(this,"selectedTerrain",{get:function(){return l()},set:function(m){if(l()===m){this.dropDownVisible=!1;return}let f;if(d(m)&&(f=m.creationCommand()),d(f)&&!d(f.then))this._globe.depthTestAgainstTerrain=!(f instanceof P0),this._globe.terrainProvider=f;else if(d(f)){let b=!1,p=this._globe.terrainProviderChanged.addEventListener(()=>{b=!0,p()}),T=new ZD(f).readyEvent.addEventListener(_=>{b||(this._globe.depthTestAgainstTerrain=!(_ instanceof P0),this._globe.terrainProvider=_,T())})}l(m),this.dropDownVisible=!1}});let u=this;this._toggleDropDown=ti(function(){u.dropDownVisible=!u.dropDownVisible}),this.selectedImagery=g(e.selectedImageryProviderViewModel,n[0]),this.selectedTerrain=e.selectedTerrainProviderViewModel}Object.defineProperties(KIe.prototype,{toggleDropDown:{get:function(){return this._toggleDropDown}},globe:{get:function(){return this._globe}}});var e3=KIe;function NH(e,t){e=li(e);let n=new e3(t),i=document.createElement("button");i.type="button",i.className="cesium-button cesium-toolbar-button",i.setAttribute("data-bind","attr: { title: buttonTooltip },click: toggleDropDown"),e.appendChild(i);let o=document.createElement("img");o.setAttribute("draggable","false"),o.className="cesium-baseLayerPicker-selected",o.setAttribute("data-bind","attr: { src: buttonImageUrl }, visible: !!buttonImageUrl"),i.appendChild(o);let r=document.createElement("div");r.className="cesium-baseLayerPicker-dropDown",r.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-dropDown-visible" : dropDownVisible }'),e.appendChild(r);let s=document.createElement("div");s.className="cesium-baseLayerPicker-sectionTitle",s.setAttribute("data-bind","visible: imageryProviderViewModels.length > 0"),s.innerHTML="Imagery",r.appendChild(s);let a=document.createElement("div");a.className="cesium-baseLayerPicker-section",a.setAttribute("data-bind","foreach: _imageryProviders"),r.appendChild(a);let c=document.createElement("div");c.className="cesium-baseLayerPicker-category",a.appendChild(c);let l=document.createElement("div");l.className="cesium-baseLayerPicker-categoryTitle",l.setAttribute("data-bind","text: name"),c.appendChild(l);let u=document.createElement("div");u.className="cesium-baseLayerPicker-choices",u.setAttribute("data-bind","foreach: providers"),c.appendChild(u);let m=document.createElement("div");m.className="cesium-baseLayerPicker-item",m.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-selectedItem" : $data === $parents[1].selectedImagery },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedImagery = $data; }'),u.appendChild(m);let f=document.createElement("img");f.className="cesium-baseLayerPicker-itemIcon",f.setAttribute("data-bind","attr: { src: iconUrl }"),f.setAttribute("draggable","false"),m.appendChild(f);let b=document.createElement("div");b.className="cesium-baseLayerPicker-itemLabel",b.setAttribute("data-bind","text: name"),m.appendChild(b);let p=document.createElement("div");p.className="cesium-baseLayerPicker-sectionTitle",p.setAttribute("data-bind","visible: terrainProviderViewModels.length > 0"),p.innerHTML="Terrain",r.appendChild(p);let x=document.createElement("div");x.className="cesium-baseLayerPicker-section",x.setAttribute("data-bind","foreach: _terrainProviders"),r.appendChild(x);let T=document.createElement("div");T.className="cesium-baseLayerPicker-category",x.appendChild(T);let _=document.createElement("div");_.className="cesium-baseLayerPicker-categoryTitle",_.setAttribute("data-bind","text: name"),T.appendChild(_);let L=document.createElement("div");L.className="cesium-baseLayerPicker-choices",L.setAttribute("data-bind","foreach: providers"),T.appendChild(L);let V=document.createElement("div");V.className="cesium-baseLayerPicker-item",V.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-selectedItem" : $data === $parents[1].selectedTerrain },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedTerrain = $data; }'),L.appendChild(V);let Z=document.createElement("img");Z.className="cesium-baseLayerPicker-itemIcon",Z.setAttribute("data-bind","attr: { src: iconUrl }"),Z.setAttribute("draggable","false"),V.appendChild(Z);let G=document.createElement("div");G.className="cesium-baseLayerPicker-itemLabel",G.setAttribute("data-bind","text: name"),V.appendChild(G),Re.applyBindings(n,i),Re.applyBindings(n,r),this._viewModel=n,this._container=e,this._element=i,this._dropPanel=r,this._closeDropDown=function(I){i.contains(I.target)||r.contains(I.target)||(n.dropDownVisible=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(NH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});NH.prototype.isDestroyed=function(){return!1};NH.prototype.destroy=function(){return bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Re.cleanNode(this._element),Re.cleanNode(this._dropPanel),this._container.removeChild(this._element),this._container.removeChild(this._dropPanel),fe(this)};var t3=NH;var Utr=S(C(),1);var Ntr=S(C(),1);function HIe(e){let t=e.creationFunction;d(t.canExecute)||(t=ti(t)),this._creationCommand=t,this.name=e.name,this.tooltip=e.tooltip,this.iconUrl=e.iconUrl,this._category=g(e.category,""),Re.track(this,["name","tooltip","iconUrl"])}Object.defineProperties(HIe.prototype,{creationCommand:{get:function(){return this._creationCommand}},category:{get:function(){return this._category}}});var ra=HIe;function b9t(){let e=[],t=devicePixelRatio>=2;return e.push(new ra({name:"Bing Maps Aerial",iconUrl:Sn("Widgets/Images/ImageryProviders/bingAerial.png"),tooltip:"Bing Maps aerial imagery, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return ug({style:dg.AERIAL})}})),e.push(new ra({name:"Bing Maps Aerial with Labels",iconUrl:Sn("Widgets/Images/ImageryProviders/bingAerialLabels.png"),tooltip:"Bing Maps aerial imagery with labels, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return ug({style:dg.AERIAL_WITH_LABELS})}})),e.push(new ra({name:"Bing Maps Roads",iconUrl:Sn("Widgets/Images/ImageryProviders/bingRoads.png"),tooltip:"Bing Maps standard road maps, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return ug({style:dg.ROAD})}})),e.push(new ra({name:"ArcGIS World Imagery",iconUrl:Sn("Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png"),tooltip:`ArcGIS World Imagery provides one meter or better satellite and aerial imagery in many parts of the world and lower resolution satellite imagery worldwide. The map includes 15m TerraColor imagery at small and mid-scales (~1:591M down to ~1:288k) for the world. The map features Maxar imagery at 0.3m resolution for select metropolitan areas around the world, 0.5m resolution across the United States and parts of Western Europe, and 1m resolution imagery across the rest of the world. In addition to commercial sources, the World Imagery map features high-resolution aerial photography contributed by the GIS User Community. This imagery ranges from 0.3m to 0.03m resolution (down to ~1:280 nin select communities). For more information on this map, including the terms of use, visit us online at
|
|
19019
19026
|
https://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9`,category:"Other",creationFunction:function(){return sg.fromBasemapType(af.SATELLITE,{enablePickFeatures:!1})}})),e.push(new ra({name:"ArcGIS World Hillshade",iconUrl:Sn("Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png"),tooltip:`ArcGIS World Hillshade map portrays elevation as an artistic hillshade. This map is designed to be used as a backdrop for topographical, soil, hydro, landcover or other outdoor recreational maps. The map was compiled from a variety of sources from several data providers. The basemap has global coverage down to a scale of ~1:72k. In select areas of the United States and Europe, coverage is available down to ~1:9k. For more information on this map, including the terms of use, visit us online at
|
|
19020
19027
|
https://www.arcgis.com/home/item.html?id=1b243539f4514b6ba35e7d995890db1d`,category:"Other",creationFunction:function(){return sg.fromBasemapType(af.HILLSHADE,{enablePickFeatures:!1})}})),e.push(new ra({name:"Esri World Ocean",iconUrl:Sn("Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png"),tooltip:`ArcGIS World Ocean map is designed to be used as a base map by marine GIS professionals and as a reference map by anyone interested in ocean data. The base map features marine bathymetry. Land features include inland waters and roads overlaid on land cover and shaded relief imagery. The map was compiled from a variety of best available sources from several data providers, including General Bathymetric Chart of the Oceans GEBCO_08 Grid, National Oceanic and Atmospheric Administration (NOAA), and National Geographic, Garmin, HERE, Geonames.org, and Esri, and various other contributors. The base map currently provides coverage for the world down to a scale of ~1:577k, and coverage down to 1:72k in US coastal areas, and various other areas. Coverage down to ~ 1:9k is available limited areas based on regional hydrographic survey data. The base map was designed and developed by Esri. For more information on this map, including our terms of use, visit us online at
|
|
19021
19028
|
https://www.arcgis.com/home/item.html?id=1e126e7520f9466c9ca28b8f28b5e500`,category:"Other",creationFunction:function(){return sg.fromBasemapType(af.OCEANS,{enablePickFeatures:!1})}})),e.push(new ra({name:"Open\xADStreet\xADMap",iconUrl:Sn("Widgets/Images/ImageryProviders/openStreetMap.png"),tooltip:`OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world.
|
|
@@ -19034,14 +19041,7 @@ https://docs.stadiamaps.com/map-styles/alidade-smooth/`,category:"Other",creatio
|
|
|
19034
19041
|
https://docs.stadiamaps.com/map-styles/alidade-smooth-dark/`,category:"Other",creationFunction:function(){return new bg({url:"https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/",retinaTiles:t,credit:`© <a href="https://www.stadiamaps.com/" target="_blank">Stadia Maps</a>
|
|
19035
19042
|
© <a href="https://openmaptiles.org/" target="_blank">OpenMapTiles</a>
|
|
19036
19043
|
© <a href="https://www.openstreetmap.org/about/" target="_blank">OpenStreetMap contributors</a>`})}})),e.push(new ra({name:"Sentinel-2",iconUrl:Sn("Widgets/Images/ImageryProviders/sentinel-2.png"),tooltip:"Sentinel-2 cloudless by EOX IT Services GmbH (Contains modified Copernicus Sentinel data 2016 and 2017).",category:"Cesium ion",creationFunction:function(){return lg.fromAssetId(3954)}})),e.push(new ra({name:"Blue Marble",iconUrl:Sn("Widgets/Images/ImageryProviders/blueMarble.png"),tooltip:"Blue Marble Next Generation July, 2004 imagery from NASA.",category:"Cesium ion",creationFunction:function(){return lg.fromAssetId(3845)}})),e.push(new ra({name:"Earth at night",iconUrl:Sn("Widgets/Images/ImageryProviders/earthAtNight.png"),tooltip:"The Earth at night, also known as The Black Marble, is a 500 meter resolution global composite imagery layer released by NASA.",category:"Cesium ion",creationFunction:function(){return lg.fromAssetId(3812)}})),e.push(new ra({name:"Natural Earth\xA0II",iconUrl:Sn("Widgets/Images/ImageryProviders/naturalEarthII.png"),tooltip:`Natural Earth II, darkened for contrast.
|
|
19037
|
-
http://www.naturalearthdata.com/`,category:"Cesium ion",creationFunction:function(){return HT.fromUrl(Sn("Assets/Textures/NaturalEarthII"))}})),e}var qD=m9t;var wtr=S(C(),1);function h9t(){let e=[];return e.push(new ra({name:"WGS84 Ellipsoid",iconUrl:Sn("Widgets/Images/TerrainProviders/Ellipsoid.png"),tooltip:"WGS84 standard ellipsoid, also known as EPSG:4326",category:"Cesium ion",creationFunction:function(){return new P0({ellipsoid:oe.WGS84})}})),e.push(new ra({name:"Cesium World Terrain",iconUrl:Sn("Widgets/Images/TerrainProviders/CesiumWorldTerrain.png"),tooltip:"High-resolution global terrain tileset curated from several datasources and hosted by Cesium ion",category:"Cesium ion",creationFunction:function(){return aC({requestWaterMask:!0,requestVertexNormals:!0})}})),e}var $D=h9t;var Btr=S(C(),1);var Ftr=S(C(),1);function p9t(e){return function(t){let n=e._scene.pick(t.position);d(n)&&(n.primitive instanceof $s||n.primitive instanceof Cl)&&(e.tileset=n.primitive),e.pickActive=!1}}function KIe(e,t){t?e._eventHandler.setInputAction(function(n){let i=e._scene.pick(n.endPosition);d(i)&&(i.primitive instanceof $s||i.primitive instanceof Cl)&&(e.tileset=i.primitive)},qn.MOUSE_MOVE):(e._eventHandler.removeInputAction(qn.MOUSE_MOVE),e.picking=e.picking)}var f9t={maximumFractionDigits:3};function e3(e){let t=e/1048576;return t<1?t.toLocaleString(void 0,f9t):Math.round(t).toLocaleString()}function t3(e,t){if(!d(e))return"";let n=t?e._statisticsPerPass[ro.PICK]:e._statisticsPerPass[ro.RENDER],i='<ul class="cesium-cesiumInspector-statistics">';return i+=`<li><strong>Visited: </strong>${n.visited.toLocaleString()}</li><li><strong>Selected: </strong>${n.selected.toLocaleString()}</li><li><strong>Commands: </strong>${n.numberOfCommands.toLocaleString()}</li>`,i+="</ul>",t||(i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Requests: </strong>${n.numberOfPendingRequests.toLocaleString()}</li><li><strong>Attempted: </strong>${n.numberOfAttemptedRequests.toLocaleString()}</li><li><strong>Processing: </strong>${n.numberOfTilesProcessing.toLocaleString()}</li><li><strong>Content Ready: </strong>${n.numberOfTilesWithContentReady.toLocaleString()}</li><li><strong>Total: </strong>${n.numberOfTilesTotal.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Features Selected: </strong>${n.numberOfFeaturesSelected.toLocaleString()}</li><li><strong>Features Loaded: </strong>${n.numberOfFeaturesLoaded.toLocaleString()}</li><li><strong>Points Selected: </strong>${n.numberOfPointsSelected.toLocaleString()}</li><li><strong>Points Loaded: </strong>${n.numberOfPointsLoaded.toLocaleString()}</li><li><strong>Triangles Selected: </strong>${n.numberOfTrianglesSelected.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Tiles styled: </strong>${n.numberOfTilesStyled.toLocaleString()}</li><li><strong>Features styled: </strong>${n.numberOfFeaturesStyled.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Children Union Culled: </strong>${n.numberOfTilesCulledWithChildrenUnion.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Geometry Memory (MB): </strong>${e3(n.geometryByteLength)}</li><li><strong>Texture Memory (MB): </strong>${e3(n.texturesByteLength)}</li><li><strong>Batch Table Memory (MB): </strong>${e3(n.batchTableByteLength)}</li>`,i+="</ul>"),i}function HIe(){let e=ji.statistics;return`
|
|
19038
|
-
<ul class="cesium-cesiumInspector-statistics">
|
|
19039
|
-
<li><strong>Geometry Memory (MB): </strong>${e3(e.geometryByteLength)}</li>
|
|
19040
|
-
<li><strong>Texture Memory (MB): </strong>${e3(e.texturesByteLength)}</li>
|
|
19041
|
-
</ul>
|
|
19042
|
-
`}var b9t=[{text:"Highlight",value:ul.HIGHLIGHT},{text:"Replace",value:ul.REPLACE},{text:"Mix",value:ul.MIX}],OIe=new z(1,1,0,.4),y9t=new z,vH=new z;function Rc(e,t){let n=this,i=e.canvas;this._eventHandler=new um(i),this._scene=e,this._performanceContainer=t,this._canvas=i,this._performanceDisplay=new yg({container:t}),this._statisticsText="",this._pickStatisticsText="",this._resourceCacheStatisticsText="",this._editorError="",this.performance=!1,this.showStatistics=!0,this.showPickStatistics=!0,this.showResourceCacheStatistics=!1,this.inspectorVisible=!0,this.tilesetVisible=!1,this.displayVisible=!1,this.updateVisible=!1,this.loggingVisible=!1,this.styleVisible=!1,this.tileDebugLabelsVisible=!1,this.optimizationVisible=!1,this.styleString="{}",this.hasEnabledWireframe=!1,this._tileset=void 0,this._feature=void 0,this._tile=void 0,Re.track(this,["performance","inspectorVisible","_statisticsText","_pickStatisticsText","_resourceCacheStatisticsText","_editorError","showPickStatistics","showStatistics","showResourceCacheStatistics","tilesetVisible","displayVisible","updateVisible","loggingVisible","styleVisible","optimizationVisible","tileDebugLabelsVisible","styleString","_feature","_tile","_tileset","hasEnabledWireframe"]),this._properties=Re.observable({}),this.properties=[],Re.defineProperty(this,"properties",function(){let D=[],O=n._properties();for(let K in O)O.hasOwnProperty(K)&&D.push(K);return D});let o=Re.observable();Re.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return o()},set:function(D){o(D),d(n._tileset)&&(n._tileset.dynamicScreenSpaceError=D)}}),this.dynamicScreenSpaceError=!1;let r=Re.observable();Re.defineProperty(this,"colorBlendMode",{get:function(){return r()},set:function(D){r(D),d(n._tileset)&&(n._tileset.colorBlendMode=D,n._scene.requestRender())}}),this.colorBlendMode=ul.HIGHLIGHT;let s=Re.observable(),a=Re.observable();Re.defineProperty(this,"picking",{get:function(){return a()},set:function(D){a(D),D?n._eventHandler.setInputAction(function(O){let K=e.pick(O.endPosition);if(K instanceof ka?(n.feature=K,n.tile=K.content.tile):d(K)&&d(K.content)?(n.feature=void 0,n.tile=K.content.tile):(n.feature=void 0,n.tile=void 0),!!d(n._tileset)){if(s&&d(K)&&d(K.content)){let j;e.pickPositionSupported&&(j=e.pickPosition(O.endPosition),d(j)&&(n._tileset.debugPickPosition=j)),n._tileset.debugPickedTile=K.content.tile}else n._tileset.debugPickedTile=void 0;n._scene.requestRender()}},qn.MOUSE_MOVE):(n.feature=void 0,n.tile=void 0,n._eventHandler.removeInputAction(qn.MOUSE_MOVE))}}),this.picking=!0;let c=Re.observable();Re.defineProperty(this,"colorize",{get:function(){return c()},set:function(D){c(D),d(n._tileset)&&(n._tileset.debugColorizeTiles=D,n._scene.requestRender())}}),this.colorize=!1;let l=Re.observable();Re.defineProperty(this,"wireframe",{get:function(){return l()},set:function(D){l(D),d(n._tileset)&&(n._tileset.debugWireframe=D,n._scene.requestRender())}}),this.wireframe=!1;let u=Re.observable();Re.defineProperty(this,"showBoundingVolumes",{get:function(){return u()},set:function(D){u(D),d(n._tileset)&&(n._tileset.debugShowBoundingVolume=D,n._scene.requestRender())}}),this.showBoundingVolumes=!1;let m=Re.observable();Re.defineProperty(this,"showContentBoundingVolumes",{get:function(){return m()},set:function(D){m(D),d(n._tileset)&&(n._tileset.debugShowContentBoundingVolume=D,n._scene.requestRender())}}),this.showContentBoundingVolumes=!1;let f=Re.observable();Re.defineProperty(this,"showRequestVolumes",{get:function(){return f()},set:function(D){f(D),d(n._tileset)&&(n._tileset.debugShowViewerRequestVolume=D,n._scene.requestRender())}}),this.showRequestVolumes=!1;let b=Re.observable();Re.defineProperty(this,"freezeFrame",{get:function(){return b()},set:function(D){b(D),d(n._tileset)&&(n._tileset.debugFreezeFrame=D,n._scene.debugShowFrustumPlanes=D,n._scene.requestRender())}}),this.freezeFrame=!1,Re.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return s()},set:function(D){s(D),d(n._tileset)&&(n._tileset.debugPickedTileLabelOnly=D,n._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;let p=Re.observable();Re.defineProperty(this,"showGeometricError",{get:function(){return p()},set:function(D){p(D),d(n._tileset)&&(n._tileset.debugShowGeometricError=D,n._scene.requestRender())}}),this.showGeometricError=!1;let x=Re.observable();Re.defineProperty(this,"showRenderingStatistics",{get:function(){return x()},set:function(D){x(D),d(n._tileset)&&(n._tileset.debugShowRenderingStatistics=D,n._scene.requestRender())}}),this.showRenderingStatistics=!1;let T=Re.observable();Re.defineProperty(this,"showMemoryUsage",{get:function(){return T()},set:function(D){T(D),d(n._tileset)&&(n._tileset.debugShowMemoryUsage=D,n._scene.requestRender())}}),this.showMemoryUsage=!1;let _=Re.observable();Re.defineProperty(this,"showUrl",{get:function(){return _()},set:function(D){_(D),d(n._tileset)&&(n._tileset.debugShowUrl=D,n._scene.requestRender())}}),this.showUrl=!1;let L=Re.observable();Re.defineProperty(this,"maximumScreenSpaceError",{get:function(){return L()},set:function(D){D=Number(D),isNaN(D)||(L(D),d(n._tileset)&&(n._tileset.maximumScreenSpaceError=D))}}),this.maximumScreenSpaceError=16;let V=Re.observable();Re.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return V()},set:function(D){D=Number(D),isNaN(D)||(V(D),d(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorDensity=D))}}),this.dynamicScreenSpaceErrorDensity=2e-4,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,Re.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(V(),1/6)},set:function(D){let O=Math.pow(D,6);V(O),d(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorDensity=O)}});let Z=Re.observable();Re.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return Z()},set:function(D){D=Number(D),isNaN(D)||(Z(D),d(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorFactor=D))}}),this.dynamicScreenSpaceErrorFactor=24;let G=p9t(this),I=Re.observable();Re.defineProperty(this,"pickActive",{get:function(){return I()},set:function(D){I(D),D?n._eventHandler.setInputAction(G,qn.LEFT_CLICK):n._eventHandler.removeInputAction(qn.LEFT_CLICK)}});let w=Re.observable();Re.defineProperty(this,"pointCloudShading",{get:function(){return w()},set:function(D){w(D),d(n._tileset)&&(n._tileset.pointCloudShading.attenuation=D)}}),this.pointCloudShading=!1;let W=Re.observable();Re.defineProperty(this,"geometricErrorScale",{get:function(){return W()},set:function(D){D=Number(D),isNaN(D)||(W(D),d(n._tileset)&&(n._tileset.pointCloudShading.geometricErrorScale=D))}}),this.geometricErrorScale=1;let v=Re.observable();Re.defineProperty(this,"maximumAttenuation",{get:function(){return v()},set:function(D){D=Number(D),isNaN(D)||(v(D),d(n._tileset)&&(n._tileset.pointCloudShading.maximumAttenuation=D===0?void 0:D))}}),this.maximumAttenuation=0;let N=Re.observable();Re.defineProperty(this,"baseResolution",{get:function(){return N()},set:function(D){D=Number(D),isNaN(D)||(N(D),d(n._tileset)&&(n._tileset.pointCloudShading.baseResolution=D===0?void 0:D))}}),this.baseResolution=0;let y=Re.observable();Re.defineProperty(this,"eyeDomeLighting",{get:function(){return y()},set:function(D){y(D),d(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLighting=D)}}),this.eyeDomeLighting=!1;let R=Re.observable();Re.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return R()},set:function(D){D=Number(D),isNaN(D)||(R(D),d(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLightingStrength=D))}}),this.eyeDomeLightingStrength=1;let E=Re.observable();Re.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return E()},set:function(D){D=Number(D),isNaN(D)||(E(D),d(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLightingRadius=D))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;let X=Re.observable();Re.defineProperty(this,"skipLevelOfDetail",{get:function(){return X()},set:function(D){X(D),d(n._tileset)&&(n._tileset.skipLevelOfDetail=D)}}),this.skipLevelOfDetail=!0;let F=Re.observable();Re.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return F()},set:function(D){D=Number(D),isNaN(D)||(F(D),d(n._tileset)&&(n._tileset.skipScreenSpaceErrorFactor=D))}}),this.skipScreenSpaceErrorFactor=16;let A=Re.observable();Re.defineProperty(this,"baseScreenSpaceError",{get:function(){return A()},set:function(D){D=Number(D),isNaN(D)||(A(D),d(n._tileset)&&(n._tileset.baseScreenSpaceError=D))}}),this.baseScreenSpaceError=1024;let Y=Re.observable();Re.defineProperty(this,"skipLevels",{get:function(){return Y()},set:function(D){D=Number(D),isNaN(D)||(Y(D),d(n._tileset)&&(n._tileset.skipLevels=D))}}),this.skipLevels=1;let U=Re.observable();Re.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return U()},set:function(D){U(D),d(n._tileset)&&(n._tileset.immediatelyLoadDesiredLevelOfDetail=D)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;let k=Re.observable();Re.defineProperty(this,"loadSiblings",{get:function(){return k()},set:function(D){k(D),d(n._tileset)&&(n._tileset.loadSiblings=D)}}),this.loadSiblings=!1,this._style=void 0,this._shouldStyle=!1,this._definedProperties=["properties","dynamicScreenSpaceError","colorBlendMode","picking","colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","maximumScreenSpaceError","dynamicScreenSpaceErrorDensity","baseScreenSpaceError","skipScreenSpaceErrorFactor","skipLevelOfDetail","skipLevels","immediatelyLoadDesiredLevelOfDetail","loadSiblings","dynamicScreenSpaceErrorDensitySliderValue","dynamicScreenSpaceErrorFactor","pickActive","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl","pointCloudShading","geometricErrorScale","maximumAttenuation","baseResolution","eyeDomeLighting","eyeDomeLightingStrength","eyeDomeLightingRadius"],this._removePostRenderEvent=e.postRender.addEventListener(function(){n._update()}),d(this._tileset)||KIe(this,!0)}Object.defineProperties(Rc.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},statisticsText:{get:function(){return this._statisticsText}},pickStatisticsText:{get:function(){return this._pickStatisticsText}},resourceCacheStatisticsText:{get:function(){return this._resourceCacheStatisticsText}},colorBlendModes:{get:function(){return b9t}},editorError:{get:function(){return this._editorError}},tileset:{get:function(){return this._tileset},set:function(e){if(this._tileset=e,this._style=void 0,this.styleString="{}",this.feature=void 0,this.tile=void 0,d(e)){this._properties(e.properties);let t=["colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl"],n=t.length;for(let o=0;o<n;++o){let r=t[o];this[r]=this[r]}this.maximumScreenSpaceError=e.maximumScreenSpaceError,this.dynamicScreenSpaceError=e.dynamicScreenSpaceError,this.dynamicScreenSpaceErrorDensity=e.dynamicScreenSpaceErrorDensity,this.dynamicScreenSpaceErrorFactor=e.dynamicScreenSpaceErrorFactor,this.colorBlendMode=e.colorBlendMode,this.skipLevelOfDetail=e.skipLevelOfDetail,this.skipScreenSpaceErrorFactor=e.skipScreenSpaceErrorFactor,this.baseScreenSpaceError=e.baseScreenSpaceError,this.skipLevels=e.skipLevels,this.immediatelyLoadDesiredLevelOfDetail=e.immediatelyLoadDesiredLevelOfDetail,this.loadSiblings=e.loadSiblings,this.hasEnabledWireframe=e._enableDebugWireframe;let i=e.pointCloudShading;this.pointCloudShading=i.attenuation,this.geometricErrorScale=i.geometricErrorScale,this.maximumAttenuation=i.maximumAttenuation?i.maximumAttenuation:0,this.baseResolution=i.baseResolution?i.baseResolution:0,this.eyeDomeLighting=i.eyeDomeLighting,this.eyeDomeLightingStrength=i.eyeDomeLightingStrength,this.eyeDomeLightingRadius=i.eyeDomeLightingRadius,this._scene.requestRender()}else this._properties({});this._statisticsText=t3(e,!1),this._pickStatisticsText=t3(e,!0),this._resourceCacheStatisticsText=HIe(),KIe(this,!1)}},feature:{get:function(){return this._feature},set:function(e){if(this._feature===e)return;let t=this._feature;d(t)&&!t.content.isDestroyed()&&(!this.colorize&&d(this._style)?t.color=d(this._style.color)?this._style.color.evaluateColor(t,y9t):z.WHITE:t.color=vH,this._scene.requestRender()),d(e)&&(z.clone(e.color,vH),e.color=OIe,this._scene.requestRender()),this._feature=e}},tile:{get:function(){return this._tile},set:function(e){if(this._tile===e)return;let t=this._tile;d(t)&&!t.isDestroyed()&&!hoe(t.content)&&(t.color=vH,this._scene.requestRender()),d(e)&&!hoe(e.content)&&(z.clone(e.color,vH),e.color=OIe,this._scene.requestRender()),this._tile=e}}});function hoe(e){if(!d(e))return!1;if(e.featuresLength>0)return!0;let t=e.innerContents;if(d(t)){let n=t.length;for(let i=0;i<n;++i)if(!hoe(t[i]))return!1;return!0}return!1}Rc.prototype.togglePickTileset=function(){this.pickActive=!this.pickActive};Rc.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};Rc.prototype.toggleTileset=function(){this.tilesetVisible=!this.tilesetVisible};Rc.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};Rc.prototype.toggleUpdate=function(){this.updateVisible=!this.updateVisible};Rc.prototype.toggleLogging=function(){this.loggingVisible=!this.loggingVisible};Rc.prototype.toggleStyle=function(){this.styleVisible=!this.styleVisible};Rc.prototype.toggleTileDebugLabels=function(){this.tileDebugLabelsVisible=!this.tileDebugLabelsVisible};Rc.prototype.toggleOptimization=function(){this.optimizationVisible=!this.optimizationVisible};Rc.prototype.trimTilesCache=function(){d(this._tileset)&&this._tileset.trimLoadedTiles()};Rc.prototype.compileStyle=function(){let e=this._tileset;if(!(!d(e)||this.styleString===JSON.stringify(e.style))){this._editorError="";try{this.styleString.length===0&&(this.styleString="{}"),this._style=new TC(JSON.parse(this.styleString)),this._shouldStyle=!0,this._scene.requestRender()}catch(t){this._editorError=t.toString()}this.feature=this._feature,this.tile=this._tile}};Rc.prototype.styleEditorKeyPress=function(e,t){if(t.keyCode===9){t.preventDefault();let n=t.target,i=n.selectionStart,o=n.selectionEnd,r=o,a=n.value.slice(i,o).split(`
|
|
19043
|
-
`),c=a.length,l;if(t.shiftKey)for(l=0;l<c;++l)a[l][0]===" "&&(a[l][1]===" "?(a[l]=a[l].substr(2),r-=2):(a[l]=a[l].substr(1),r-=1));else for(l=0;l<c;++l)a[l]=` ${a[l]}`,r+=2;let u=a.join(`
|
|
19044
|
-
`);n.value=n.value.slice(0,i)+u+n.value.slice(o),n.selectionStart=i!==o?i:r,n.selectionEnd=r}else t.ctrlKey&&(t.keyCode===10||t.keyCode===13)&&this.compileStyle();return!0};Rc.prototype._update=function(){let e=this._tileset;if(this.performance&&this._performanceDisplay.update(),d(e)){if(e.isDestroyed()){this.tile=void 0,this.feature=void 0,this.tileset=void 0;return}let t=e.style;this._style!==e.style&&(this._shouldStyle?(e.style=this._style,this._shouldStyle=!1):(this._style=t,this.styleString=JSON.stringify(t.style,null," ")))}this.showStatistics&&(this._statisticsText=t3(e,!1),this._pickStatisticsText=t3(e,!0),this._resourceCacheStatisticsText=HIe())};Rc.prototype.isDestroyed=function(){return!1};Rc.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let e=this;return this._definedProperties.forEach(function(t){Re.getObservable(e,t).dispose()}),fe(this)};Rc.getStatistics=t3;var n3=Rc;function NH(e,t){e=li(e);let n=document.createElement("div"),i=document.createElement("div");i.setAttribute("data-bind","visible: performance");let o=new n3(t,i);this._viewModel=o,this._container=e,this._element=n;let r=document.createElement("div");r.textContent="3D Tiles / M3D Inspector",r.className="cesium-cesiumInspector-button",r.setAttribute("data-bind","click: toggleInspector"),n.appendChild(r),n.className="cesium-cesiumInspector cesium-3DTilesInspector",n.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(n);let s=document.createElement("div");s.className="cesium-cesiumInspector-dropDown",n.appendChild(s);let a=jc.createSection,c=jc.createCheckbox,l=jc.createRangeInput,u=jc.createButton,m=a(s,"Tileset","tilesetVisible","toggleTileset"),f=a(s,"Display","displayVisible","toggleDisplay"),b=a(s,"Update","updateVisible","toggleUpdate"),p=a(s,"Logging","loggingVisible","toggleLogging"),x=a(s,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),T=a(s,"Style","styleVisible","toggleStyle"),_=a(s,"Optimization","optimizationVisible","toggleOptimization"),L=document.createElement("div");L.className="field-group";let V=document.createElement("label");V.className="field-label",V.appendChild(document.createTextNode("Properties: "));let Z=document.createElement("div");Z.setAttribute("data-bind","text: properties"),L.appendChild(V),L.appendChild(Z),m.appendChild(L),m.appendChild(u("Pick Tileset","togglePickTileset","pickActive")),m.appendChild(u("Trim Tiles Cache","trimTilesCache")),m.appendChild(c("Enable Picking","picking")),f.appendChild(c("Colorize","colorize"));let G=f.appendChild(c("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),I=document.createElement("p");I.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),I.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),I.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",G.appendChild(I),f.appendChild(c("Bounding Volumes","showBoundingVolumes")),f.appendChild(c("Content Volumes","showContentBoundingVolumes")),f.appendChild(c("Request Volumes","showRequestVolumes")),f.appendChild(c("Point Cloud Shading","pointCloudShading"));let w=document.createElement("div");w.setAttribute("data-bind","visible: pointCloudShading"),w.appendChild(l("Geometric Error Scale","geometricErrorScale",0,2,.01)),w.appendChild(l("Maximum Attenuation","maximumAttenuation",0,32,1)),w.appendChild(l("Base Resolution","baseResolution",0,1,.01)),w.appendChild(c("Eye Dome Lighting (EDL)","eyeDomeLighting")),f.appendChild(w);let W=document.createElement("div");W.setAttribute("data-bind","visible: eyeDomeLighting"),W.appendChild(l("EDL Strength","eyeDomeLightingStrength",0,2,.1)),W.appendChild(l("EDL Radius","eyeDomeLightingRadius",0,4,.1)),w.appendChild(W),b.appendChild(c("Freeze Frame","freezeFrame")),b.appendChild(c("Dynamic Screen Space Error","dynamicScreenSpaceError"));let v=document.createElement("div");v.appendChild(l("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),b.appendChild(v);let N=document.createElement("div");N.setAttribute("data-bind","visible: dynamicScreenSpaceError"),N.appendChild(l("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),N.appendChild(l("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),b.appendChild(N),p.appendChild(c("Performance","performance")),p.appendChild(i),p.appendChild(c("Statistics","showStatistics"));let y=document.createElement("div");y.className="cesium-3dTilesInspector-statistics",y.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),p.appendChild(y),p.appendChild(c("Pick Statistics","showPickStatistics"));let R=document.createElement("div");R.className="cesium-3dTilesInspector-statistics",R.setAttribute("data-bind","html: pickStatisticsText, visible: showPickStatistics"),p.appendChild(R),p.appendChild(c("Resource Cache Statistics","showResourceCacheStatistics"));let E=document.createElement("div");E.className="cesium-3dTilesInspector-statistics",E.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),p.appendChild(E);let X=document.createElement("div");T.appendChild(X),X.appendChild(document.createTextNode("Color Blend Mode: "));let F=document.createElement("select");F.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),X.appendChild(F);let A=document.createElement("textarea");A.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),X.className="cesium-cesiumInspector-styleEditor",X.appendChild(A);let Y=u("Compile (Ctrl+Enter)","compileStyle");X.appendChild(Y);let U=document.createElement("div");U.className="cesium-cesiumInspector-error",U.setAttribute("data-bind","text: editorError"),X.appendChild(U),x.appendChild(c("Show Picked Only","showOnlyPickedTileDebugLabel")),x.appendChild(c("Geometric Error","showGeometricError")),x.appendChild(c("Rendering Statistics","showRenderingStatistics")),x.appendChild(c("Memory Usage (MB)","showMemoryUsage")),x.appendChild(c("Url","showUrl")),_.appendChild(c("Skip Tile LODs","skipLevelOfDetail"));let k=document.createElement("div");k.appendChild(l("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),_.appendChild(k);let D=document.createElement("div");D.appendChild(l("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),_.appendChild(D);let O=document.createElement("div");O.appendChild(l("Min. levels to skip","skipLevels",0,10,1)),_.appendChild(O),_.appendChild(c("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),_.appendChild(c("Load siblings of visible tiles","loadSiblings")),Re.applyBindings(o,n)}Object.defineProperties(NH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});NH.prototype.isDestroyed=function(){return!1};NH.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),fe(this)};var i3=NH;var rnr=S(C(),1);var jtr=S(C(),1);function g9t(e){let t;if(d(e)){t="Command Statistics";let n=e.commandsInFrustums;for(let i in n)if(n.hasOwnProperty(i)){let o=parseInt(i,10),r;if(o===7)r="1, 2 and 3";else{let s=[];for(let a=2;a>=0;a--){let c=Math.pow(2,a);o>=c&&(s.push(a+1),o-=c)}r=s.reverse().join(" and ")}t+=`<br> ${n[i]} in frustum ${r}`}t+=`<br>Total: ${e.totalCommands}`}return t}function poe(e,t,n){let i=Math.min(n,t);return i=Math.max(i,e),i}var x9t=new Dn,T9t=new h;function o3(e,t){let n=this,i=e.canvas,o=new um(i);this._eventHandler=o,this._scene=e,this._canvas=i,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=t;let r=this._scene.globe;r.depthTestAgainstTerrain=!0,this.frustums=!1,this.frustumPlanes=!1,this.performance=!1,this.shaderCacheText="",this.primitiveBoundingSphere=!1,this.primitiveReferenceFrame=!1,this.filterPrimitive=!1,this.tileBoundingSphere=!1,this.filterTile=!1,this.wireframe=!1,this.depthFrustum=1,this._numberOfFrustums=1,this.suspendUpdates=!1,this.tileCoordinates=!1,this.frustumStatisticText=!1,this.tileText="",this.hasPickedPrimitive=!1,this.hasPickedTile=!1,this.pickPrimitiveActive=!1,this.pickTileActive=!1,this.dropDownVisible=!0,this.generalVisible=!0,this.primitivesVisible=!1,this.terrainVisible=!1,this.depthFrustumText="",Re.track(this,["frustums","frustumPlanes","performance","shaderCacheText","primitiveBoundingSphere","primitiveReferenceFrame","filterPrimitive","tileBoundingSphere","filterTile","wireframe","depthFrustum","suspendUpdates","tileCoordinates","frustumStatisticText","tileText","hasPickedPrimitive","hasPickedTile","pickPrimitiveActive","pickTileActive","dropDownVisible","generalVisible","primitivesVisible","terrainVisible","depthFrustumText"]),this._toggleDropDown=ti(function(){n.dropDownVisible=!n.dropDownVisible}),this._toggleGeneral=ti(function(){n.generalVisible=!n.generalVisible}),this._togglePrimitives=ti(function(){n.primitivesVisible=!n.primitivesVisible}),this._toggleTerrain=ti(function(){n.terrainVisible=!n.terrainVisible}),this._frustumsSubscription=Re.getObservable(this,"frustums").subscribe(function(l){n._scene.debugShowFrustums=l,n._scene.requestRender()}),this._frustumPlanesSubscription=Re.getObservable(this,"frustumPlanes").subscribe(function(l){n._scene.debugShowFrustumPlanes=l,n._scene.requestRender()}),this._performanceSubscription=Re.getObservable(this,"performance").subscribe(function(l){l?n._performanceDisplay=new yg({container:n._performanceContainer}):n._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=ti(function(){return n._primitive.debugShowBoundingVolume=n.primitiveBoundingSphere,n._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=Re.getObservable(this,"primitiveBoundingSphere").subscribe(function(){n._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=ti(function(){if(n.primitiveReferenceFrame){let l=n._primitive.modelMatrix;n._modelMatrixPrimitive=new gF({modelMatrix:l}),n._scene.primitives.add(n._modelMatrixPrimitive)}else d(n._modelMatrixPrimitive)&&(n._scene.primitives.remove(n._modelMatrixPrimitive),n._modelMatrixPrimitive=void 0);return n._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=Re.getObservable(this,"primitiveReferenceFrame").subscribe(function(){n._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=ti(function(){return n.filterPrimitive?n._scene.debugCommandFilter=function(l){return d(n._modelMatrixPrimitive)&&l.owner===n._modelMatrixPrimitive._primitive?!0:d(n._primitive)?l.owner===n._primitive||l.owner===n._primitive._billboardCollection||l.owner.primitive===n._primitive:!1}:n._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=Re.getObservable(this,"filterPrimitive").subscribe(function(){n._doFilterPrimitive(),n._scene.requestRender()}),this._wireframeSubscription=Re.getObservable(this,"wireframe").subscribe(function(l){r._surface.tileProvider._debug.wireframe=l,n._scene.requestRender()}),this._depthFrustumSubscription=Re.getObservable(this,"depthFrustum").subscribe(function(l){n._scene.debugShowDepthFrustum=l,n._scene.requestRender()}),this._incrementDepthFrustum=ti(function(){let l=n.depthFrustum+1;return n.depthFrustum=poe(1,n._numberOfFrustums,l),n._scene.requestRender(),!0}),this._decrementDepthFrustum=ti(function(){let l=n.depthFrustum-1;return n.depthFrustum=poe(1,n._numberOfFrustums,l),n._scene.requestRender(),!0}),this._suspendUpdatesSubscription=Re.getObservable(this,"suspendUpdates").subscribe(function(l){r._surface._debug.suspendLodUpdate=l,l||(n.filterTile=!1)});let s;this._showTileCoordinates=ti(function(){return n.tileCoordinates&&!d(s)?s=e.imageryLayers.addImageryProvider(new GD({tilingScheme:e.terrainProvider.tilingScheme})):!n.tileCoordinates&&d(s)&&(e.imageryLayers.remove(s),s=void 0),!0}),this._tileCoordinatesSubscription=Re.getObservable(this,"tileCoordinates").subscribe(function(){n._showTileCoordinates(),n._scene.requestRender()}),this._tileBoundingSphereSubscription=Re.getObservable(this,"tileBoundingSphere").subscribe(function(){n._showTileBoundingSphere(),n._scene.requestRender()}),this._showTileBoundingSphere=ti(function(){return n.tileBoundingSphere?r._surface.tileProvider._debug.boundingSphereTile=n._tile:r._surface.tileProvider._debug.boundingSphereTile=void 0,n._scene.requestRender(),!0}),this._doFilterTile=ti(function(){return n.filterTile?(n.suspendUpdates=!0,r._surface._tilesToRender=[],d(n._tile)&&n._tile.renderable&&r._surface._tilesToRender.push(n._tile)):n.suspendUpdates=!1,!0}),this._filterTileSubscription=Re.getObservable(this,"filterTile").subscribe(function(){n.doFilterTile(),n._scene.requestRender()});function a(l){let u=n._scene.pick({x:l.position.x,y:l.position.y});d(u)&&(n.primitive=d(u.collection)?u.collection:u.primitive),n._scene.requestRender(),n.pickPrimitiveActive=!1}this._pickPrimitive=ti(function(){n.pickPrimitiveActive=!n.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=Re.getObservable(this,"pickPrimitiveActive").subscribe(function(l){l?o.setInputAction(a,qn.LEFT_CLICK):o.removeInputAction(qn.LEFT_CLICK)});function c(l){let u,m=r.ellipsoid,f=n._scene.camera.getPickRay(l.position,x9t),b=r.pick(f,n._scene,T9t);if(d(b)){let p=m.cartesianToCartographic(b),x=r._surface.tileProvider._tilesToRenderByTextureCount;for(let T=0;!u&&T<x.length;++T){let _=x[T];if(d(_))for(let L=0;!u&&L<_.length;++L){let V=_[L];he.contains(V.rectangle,p)&&(u=V)}}}n.tile=u,n.pickTileActive=!1}this._pickTile=ti(function(){n.pickTileActive=!n.pickTileActive}),this._pickTileActiveSubscription=Re.getObservable(this,"pickTileActive").subscribe(function(l){l?o.setInputAction(c,qn.LEFT_CLICK):o.removeInputAction(qn.LEFT_CLICK)}),this._removePostRenderEvent=e.postRender.addEventListener(function(){n._update()})}Object.defineProperties(o3.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},toggleDropDown:{get:function(){return this._toggleDropDown}},showPrimitiveBoundingSphere:{get:function(){return this._showPrimitiveBoundingSphere}},showPrimitiveReferenceFrame:{get:function(){return this._showPrimitiveReferenceFrame}},doFilterPrimitive:{get:function(){return this._doFilterPrimitive}},incrementDepthFrustum:{get:function(){return this._incrementDepthFrustum}},decrementDepthFrustum:{get:function(){return this._decrementDepthFrustum}},showTileCoordinates:{get:function(){return this._showTileCoordinates}},showTileBoundingSphere:{get:function(){return this._showTileBoundingSphere}},doFilterTile:{get:function(){return this._doFilterTile}},toggleGeneral:{get:function(){return this._toggleGeneral}},togglePrimitives:{get:function(){return this._togglePrimitives}},toggleTerrain:{get:function(){return this._toggleTerrain}},pickPrimitive:{get:function(){return this._pickPrimitive}},pickTile:{get:function(){return this._pickTile}},selectParent:{get:function(){let e=this;return ti(function(){e.tile=e.tile.parent})}},selectNW:{get:function(){let e=this;return ti(function(){e.tile=e.tile.northwestChild})}},selectNE:{get:function(){let e=this;return ti(function(){e.tile=e.tile.northeastChild})}},selectSW:{get:function(){let e=this;return ti(function(){e.tile=e.tile.southwestChild})}},selectSE:{get:function(){let e=this;return ti(function(){e.tile=e.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(e){let t=this._primitive;e!==t&&(this.hasPickedPrimitive=!0,d(t)&&(t.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,d(this._modelMatrixPrimitive)&&(this._scene.primitives.remove(this._modelMatrixPrimitive),this._modelMatrixPrimitive=void 0),this._primitive=e,e.show=!1,setTimeout(function(){e.show=!0},50),this.showPrimitiveBoundingSphere(),this.showPrimitiveReferenceFrame(),this.doFilterPrimitive())}},tile:{get:function(){return this._tile},set:function(e){if(d(e)){this.hasPickedTile=!0;let t=this._tile;if(e!==t){this.tileText=`L: ${e.level} X: ${e.x} Y: ${e.y}`,this.tileText+=`<br>SW corner: ${e.rectangle.west}, ${e.rectangle.south}`,this.tileText+=`<br>NE corner: ${e.rectangle.east}, ${e.rectangle.north}`;let n=e.data;d(n)&&d(n.tileBoundingRegion)?this.tileText+=`<br>Min: ${n.tileBoundingRegion.minimumHeight} Max: ${n.tileBoundingRegion.maximumHeight}`:this.tileText+="<br>(Tile is not loaded)"}this._tile=e,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}});o3.prototype._update=function(){this.frustums&&(this.frustumStatisticText=g9t(this._scene.debugFrustumStatistics));let e=this._scene.numberOfFrustums;this._numberOfFrustums=e,this.depthFrustum=poe(1,e,this.depthFrustum),this.depthFrustumText=`${this.depthFrustum} of ${e}`,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText=`Cached shaders: ${this._scene.context.shaderCache.numberOfShaders}`};o3.prototype.isDestroyed=function(){return!1};o3.prototype.destroy=function(){return this._eventHandler.destroy(),this._removePostRenderEvent(),this._frustumsSubscription.dispose(),this._frustumPlanesSubscription.dispose(),this._performanceSubscription.dispose(),this._primitiveBoundingSphereSubscription.dispose(),this._primitiveReferenceFrameSubscription.dispose(),this._filterPrimitiveSubscription.dispose(),this._wireframeSubscription.dispose(),this._depthFrustumSubscription.dispose(),this._suspendUpdatesSubscription.dispose(),this._tileCoordinatesSubscription.dispose(),this._tileBoundingSphereSubscription.dispose(),this._filterTileSubscription.dispose(),this._pickPrimitiveActiveSubscription.dispose(),this._pickTileActiveSubscription.dispose(),fe(this)};var r3=o3;function FH(e,t){e=li(e);let n=document.createElement("div"),i=new r3(t,n);this._viewModel=i,this._container=e;let o=document.createElement("div");this._element=o;let r=document.createElement("div");r.textContent="Cesium Inspector",r.className="cesium-cesiumInspector-button",r.setAttribute("data-bind","click: toggleDropDown"),o.appendChild(r),o.className="cesium-cesiumInspector",o.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),e.appendChild(this._element);let s=document.createElement("div");s.className="cesium-cesiumInspector-dropDown",o.appendChild(s);let a=jc.createSection,c=jc.createCheckbox,l=a(s,"General","generalVisible","toggleGeneral"),u=c("Show Frustums","frustums"),m=document.createElement("div");m.className="cesium-cesiumInspector-frustumStatistics",m.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),u.appendChild(m),l.appendChild(u),l.appendChild(c("Show Frustum Planes","frustumPlanes")),l.appendChild(c("Performance Display","performance")),n.className="cesium-cesiumInspector-performanceDisplay",l.appendChild(n);let f=document.createElement("div");f.className="cesium-cesiumInspector-shaderCache",f.setAttribute("data-bind","html: shaderCacheText"),l.appendChild(f);let b=document.createElement("div");l.appendChild(b);let p=document.createElement("span");p.setAttribute("data-bind",'html: " Frustum:"'),b.appendChild(p);let x=document.createElement("span");x.setAttribute("data-bind","text: depthFrustumText"),b.appendChild(x);let T=document.createElement("input");T.type="button",T.value="-",T.className="cesium-cesiumInspector-pickButton",T.setAttribute("data-bind","click: decrementDepthFrustum"),b.appendChild(T);let _=document.createElement("input");_.type="button",_.value="+",_.className="cesium-cesiumInspector-pickButton",_.setAttribute("data-bind","click: incrementDepthFrustum"),b.appendChild(_);let L=a(s,"Primitives","primitivesVisible","togglePrimitives"),V=document.createElement("div");V.className="cesium-cesiumInspector-pickSection",L.appendChild(V);let Z=document.createElement("input");Z.type="button",Z.value="Pick a primitive",Z.className="cesium-cesiumInspector-pickButton",Z.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let G=document.createElement("div");G.className="cesium-cesiumInspector-center",G.appendChild(Z),V.appendChild(G),V.appendChild(c("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),V.appendChild(c("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=c("Show only selected","filterPrimitive","hasPickedPrimitive"),V.appendChild(this._primitiveOnly);let I=a(s,"Terrain","terrainVisible","toggleTerrain"),w=document.createElement("div");w.className="cesium-cesiumInspector-pickSection",I.appendChild(w);let W=document.createElement("input");W.type="button",W.value="Pick a tile",W.className="cesium-cesiumInspector-pickButton",W.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),G=document.createElement("div"),G.appendChild(W),G.className="cesium-cesiumInspector-center",w.appendChild(G);let v=document.createElement("div");w.appendChild(v);let N=document.createElement("input");N.type="button",N.value="Parent",N.className="cesium-cesiumInspector-pickButton",N.setAttribute("data-bind","click: selectParent");let y=document.createElement("input");y.type="button",y.value="NW",y.className="cesium-cesiumInspector-pickButton",y.setAttribute("data-bind","click: selectNW");let R=document.createElement("input");R.type="button",R.value="NE",R.className="cesium-cesiumInspector-pickButton",R.setAttribute("data-bind","click: selectNE");let E=document.createElement("input");E.type="button",E.value="SW",E.className="cesium-cesiumInspector-pickButton",E.setAttribute("data-bind","click: selectSW");let X=document.createElement("input");X.type="button",X.value="SE",X.className="cesium-cesiumInspector-pickButton",X.setAttribute("data-bind","click: selectSE");let F=document.createElement("div");F.className="cesium-cesiumInspector-tileText",v.className="cesium-cesiumInspector-frustumStatistics",v.appendChild(F),v.setAttribute("data-bind","visible: hasPickedTile"),F.setAttribute("data-bind","html: tileText");let A=document.createElement("div");A.className="cesium-cesiumInspector-relativeText",A.textContent="Select relative:",v.appendChild(A);let Y=document.createElement("table"),U=document.createElement("tr"),k=document.createElement("tr"),D=document.createElement("td");D.appendChild(N);let O=document.createElement("td");O.appendChild(y);let K=document.createElement("td");K.appendChild(R),U.appendChild(D),U.appendChild(O),U.appendChild(K);let j=document.createElement("td"),J=document.createElement("td");J.appendChild(E);let ne=document.createElement("td");ne.appendChild(X),k.appendChild(j),k.appendChild(J),k.appendChild(ne),Y.appendChild(U),Y.appendChild(k),v.appendChild(Y),w.appendChild(c("Show bounding volume","tileBoundingSphere","hasPickedTile")),w.appendChild(c("Show only selected","filterTile","hasPickedTile")),I.appendChild(c("Wireframe","wireframe")),I.appendChild(c("Suspend LOD update","suspendUpdates")),I.appendChild(c("Show tile coordinates","tileCoordinates")),Re.applyBindings(i,this._element)}Object.defineProperties(FH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});FH.prototype.isDestroyed=function(){return!1};FH.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),fe(this)};var s3=FH;var gnr=S(C(),1);var unr=S(C(),1);function AH(e,t){d(t)||(t=document.body),t=li(t);let n=this,i=Re.observable(fs.fullscreen),o=Re.observable(fs.enabled),r=t.ownerDocument;this.isFullscreen=void 0,Re.defineProperty(this,"isFullscreen",{get:function(){return i()}}),this.isFullscreenEnabled=void 0,Re.defineProperty(this,"isFullscreenEnabled",{get:function(){return o()},set:function(s){o(s&&fs.enabled)}}),this.tooltip=void 0,Re.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?i()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=ti(function(){fs.fullscreen?fs.exitFullscreen():fs.requestFullscreen(n._fullscreenElement)},Re.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=g(li(e),r.body),this._callback=function(){i(fs.fullscreen)},r.addEventListener(fs.changeEventName,this._callback)}Object.defineProperties(AH.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(e){this._fullscreenElement=e}},command:{get:function(){return this._command}}});AH.prototype.isDestroyed=function(){return!1};AH.prototype.destroy=function(){document.removeEventListener(fs.changeEventName,this._callback),fe(this)};var a3=AH;var _9t="M 83.96875 17.5625 L 83.96875 17.59375 L 76.65625 24.875 L 97.09375 24.96875 L 76.09375 45.96875 L 81.9375 51.8125 L 102.78125 30.9375 L 102.875 51.15625 L 110.15625 43.875 L 110.1875 17.59375 L 83.96875 17.5625 z M 44.125 17.59375 L 17.90625 17.625 L 17.9375 43.90625 L 25.21875 51.1875 L 25.3125 30.96875 L 46.15625 51.8125 L 52 45.96875 L 31 25 L 51.4375 24.90625 L 44.125 17.59375 z M 46.0625 76.03125 L 25.1875 96.875 L 25.09375 76.65625 L 17.8125 83.9375 L 17.8125 110.21875 L 44 110.25 L 51.3125 102.9375 L 30.90625 102.84375 L 51.875 81.875 L 46.0625 76.03125 z M 82 76.15625 L 76.15625 82 L 97.15625 103 L 76.71875 103.0625 L 84.03125 110.375 L 110.25 110.34375 L 110.21875 84.0625 L 102.9375 76.8125 L 102.84375 97 L 82 76.15625 z",S9t="M 104.34375 17.5625 L 83.5 38.4375 L 83.40625 18.21875 L 76.125 25.5 L 76.09375 51.78125 L 102.3125 51.8125 L 102.3125 51.78125 L 109.625 44.5 L 89.1875 44.40625 L 110.1875 23.40625 L 104.34375 17.5625 z M 23.75 17.59375 L 17.90625 23.4375 L 38.90625 44.4375 L 18.5 44.53125 L 25.78125 51.8125 L 52 51.78125 L 51.96875 25.53125 L 44.6875 18.25 L 44.625 38.46875 L 23.75 17.59375 z M 25.6875 76.03125 L 18.375 83.3125 L 38.78125 83.40625 L 17.8125 104.40625 L 23.625 110.25 L 44.5 89.375 L 44.59375 109.59375 L 51.875 102.3125 L 51.875 76.0625 L 25.6875 76.03125 z M 102.375 76.15625 L 76.15625 76.1875 L 76.1875 102.4375 L 83.46875 109.71875 L 83.5625 89.53125 L 104.40625 110.375 L 110.25 104.53125 L 89.25 83.53125 L 109.6875 83.46875 L 102.375 76.15625 z";function DH(e,t){e=li(e);let n=new a3(t,e);n._exitFullScreenPath=S9t,n._enterFullScreenPath=_9t;let i=document.createElement("button");i.type="button",i.className="cesium-button cesium-fullscreenButton",i.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),e.appendChild(i),Re.applyBindings(n,i),this._container=e,this._viewModel=n,this._element=i}Object.defineProperties(DH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});DH.prototype.isDestroyed=function(){return!1};DH.prototype.destroy=function(){return this._viewModel.destroy(),Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var c3=DH;var Xnr=S(C(),1);var Lnr=S(C(),1);var JIe=1e3;function Ah(e){d(e.geocoderServices)?this._geocoderServices=e.geocoderServices:this._geocoderServices=[new c5({scene:e.scene})],this._viewContainer=e.container,this._scene=e.scene,this._flightDuration=e.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._wasGeocodeCancelled=!1,this._previousCredits=[],this._complete=new Se,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=jIe,this._handleArrowUp=QIe;let t=this;this._suggestionsVisible=Re.pureComputed(function(){let o=Re.getObservable(t,"_suggestions")().length>0,r=Re.getObservable(t,"_showSuggestions")();return o&&r}),this._searchCommand=ti(function(i){if(i=g(i,DT.SEARCH),t._focusTextbox=!1,d(t._selectedSuggestion))return t.activateSuggestion(t._selectedSuggestion),!1;if(t.hideSuggestions(),t.isSearchInProgress)G9t(t);else return Z9t(t,t._geocoderServices,i)}),this.deselectSuggestion=function(){t._selectedSuggestion=void 0},this.handleKeyDown=function(i,o){let r=o.key==="ArrowDown"||o.key==="Down"||o.keyCode===40,s=o.key==="ArrowUp"||o.key==="Up"||o.keyCode===38;return(r||s)&&o.preventDefault(),!0},this.handleKeyUp=function(i,o){let r=o.key==="ArrowDown"||o.key==="Down"||o.keyCode===40,s=o.key==="ArrowUp"||o.key==="Up"||o.keyCode===38,a=o.key==="Enter"||o.keyCode===13;return s?QIe(t):r?jIe(t):a&&t._searchCommand(),!0},this.activateSuggestion=function(i){t.hideSuggestions(),t._searchText=i.displayName;let o=i.destination;eXe(t),t.destinationFound(t,o)},this.hideSuggestions=function(){t._showSuggestions=!1,t._selectedSuggestion=void 0},this.showSuggestions=function(){t._showSuggestions=!0},this.handleMouseover=function(i,o){i!==t._selectedSuggestion&&(t._selectedSuggestion=i)},this.keepExpanded=!1,this.autoComplete=g(e.autocomplete,!0),this.destinationFound=g(e.destinationFound,Ah.flyToDestination),this._focusTextbox=!1,Re.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let n=Re.getObservable(this,"_searchText");n.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=n.subscribe(function(){Ah._updateSearchSuggestions(t)}),this.isSearchInProgress=void 0,Re.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,Re.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(i){this._searchText=i}}),this.flightDuration=void 0,Re.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(i){this._flightDuration=i}})}Object.defineProperties(Ah.prototype,{complete:{get:function(){return this._complete}},scene:{get:function(){return this._scene}},search:{get:function(){return this._searchCommand}},selectedSuggestion:{get:function(){return this._selectedSuggestion}},suggestions:{get:function(){return this._suggestions}}});Ah.prototype.destroy=function(){this._suggestionSubscription.dispose()};function QIe(e){if(e._suggestions.length===0)return;let t=e._suggestions.indexOf(e._selectedSuggestion);if(t===-1||t===0){e._selectedSuggestion=void 0;return}let n=t-1;e._selectedSuggestion=e._suggestions[n],Ah._adjustSuggestionsScroll(e,n)}function jIe(e){if(e._suggestions.length===0)return;let t=e._suggestions.length,i=(e._suggestions.indexOf(e._selectedSuggestion)+1)%t;e._selectedSuggestion=e._suggestions[i],Ah._adjustSuggestionsScroll(e,i)}function C9t(e,t){let n=d(t)?t.availability:void 0;return d(n)?hC(t,[e]).then(function(i){return e=i[0],e.height+=JIe,e}):(e.height+=JIe,Promise.resolve(e))}function L9t(e,t){let n=e._scene,i=n.ellipsoid,o=n.camera,r=n.terrainProvider,s=t,a;return t instanceof he?M.equalsEpsilon(t.south,t.north,M.EPSILON7)&&M.equalsEpsilon(t.east,t.west,M.EPSILON7)?t=he.center(t):a=CC(t,n):t=i.cartesianToCartographic(t),d(a)||(a=C9t(t,r)),a.then(function(c){s=i.cartographicToCartesian(c)}).finally(function(){o.flyTo({destination:s,complete:function(){e._complete.raiseEvent()},duration:e._flightDuration,endTransform:P.IDENTITY})})}async function V9t(e,t,n){try{return{state:"fulfilled",value:await e.geocode(t,n),credits:e.credit}}catch(i){return{state:"rejected",reason:i}}}async function Z9t(e,t,n){let i=e._searchText;if($Ie(i)){e.showSuggestions();return}e._isSearchInProgress=!0,e._wasGeocodeCancelled=!1;let o,r;for(o=0;o<t.length;o++){if(e._wasGeocodeCancelled)return;if(r=await V9t(t[o],i,n),d(r)&&r.state==="fulfilled"&&r.value.length>0)break}if(e._wasGeocodeCancelled)return;e._isSearchInProgress=!1,boe(e);let s=r.value;if(r.state==="fulfilled"&&d(s)&&s.length>0){e._searchText=s[0].displayName,e.destinationFound(e,s[0].destination);let a=qIe(e,NR.getCreditsFromResult(s[0]));d(a)||foe(e,t[o].credit);return}e._searchText=`${i} (not found)`}function foe(e,t){d(t)&&!e._scene.isDestroyed()&&!e._scene.frameState.creditDisplay.isDestroyed()&&(e._scene.frameState.creditDisplay.addStaticCredit(t),e._previousCredits.push(t))}function qIe(e,t){return d(t)&&t.forEach(n=>foe(e,n)),t}function boe(e){!e._scene.isDestroyed()&&!e._scene.frameState.creditDisplay.isDestroyed()&&e._previousCredits.forEach(t=>{e._scene.frameState.creditDisplay.removeStaticCredit(t)}),e._previousCredits.length=0}function R9t(e,t){let n=li(e._viewContainer),i=n.getElementsByClassName("search-results")[0],r=n.getElementsByTagName("li")[t];if(t===0){i.scrollTop=0;return}let s=r.offsetTop;s+r.clientHeight>i.clientHeight?i.scrollTop=s+r.clientHeight:s<i.scrollTop&&(i.scrollTop=s)}function G9t(e){e._isSearchInProgress&&(e._isSearchInProgress=!1,e._wasGeocodeCancelled=!0)}function $Ie(e){return/^\s*$/.test(e)}function eXe(e){Re.getObservable(e,"_suggestions").removeAll()}async function E9t(e){if(!e.autoComplete)return;let t=e._searchText;if(eXe(e),boe(e),!$Ie(t))for(let n of e._geocoderServices){let i=await n.geocode(t,DT.AUTOCOMPLETE);if(e._suggestions=e._suggestions.concat(i),i.length>0){let o=!0;i.forEach(r=>{let s=NR.getCreditsFromResult(r);o=o&&!d(s),qIe(e,s)}),o&&foe(e,n.credit)}if(e._suggestions.length>=5)return}}Ah.flyToDestination=L9t;Ah._updateSearchSuggestions=E9t;Ah._adjustSuggestionsScroll=R9t;Ah.prototype.isDestroyed=function(){return!1};Ah.prototype.destroy=function(){return boe(this),fe(this)};var l3=Ah;var I9t="M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z",X9t="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z";function UH(e){let t=li(e.container),n=new l3(e);n._startSearchPath=I9t,n._stopSearchPath=X9t;let i=document.createElement("form");i.setAttribute("data-bind","submit: search");let o=document.createElement("input");o.type="search",o.className="cesium-geocoder-input",o.setAttribute("placeholder","Enter an address or landmark..."),o.setAttribute("data-bind",'textInput: searchText,disable: isSearchInProgress,event: { keyup: handleKeyUp, keydown: handleKeyDown, mouseover: deselectSuggestion },css: { "cesium-geocoder-input-wide" : keepExpanded || searchText.length > 0 },hasFocus: _focusTextbox'),this._onTextBoxFocus=function(){setTimeout(function(){o.select()},0)},o.addEventListener("focus",this._onTextBoxFocus,!1),i.appendChild(o),this._textBox=o;let r=document.createElement("span");r.className="cesium-geocoder-searchButton",r.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),i.appendChild(r),t.appendChild(i);let s=document.createElement("div");s.className="search-results",s.setAttribute("data-bind","visible: _suggestionsVisible");let a=document.createElement("ul");a.setAttribute("data-bind","foreach: _suggestions");let c=document.createElement("li");a.appendChild(c),c.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),s.appendChild(a),t.appendChild(s),Re.applyBindings(n,i),Re.applyBindings(n,s),this._container=t,this._searchSuggestionsContainer=s,this._viewModel=n,this._form=i,this._onInputBegin=function(l){let u=l.target;typeof l.composedPath=="function"&&(u=l.composedPath()[0]),t.contains(u)||(n._focusTextbox=!1,n.hideSuggestions())},this._onInputEnd=function(l){n._focusTextbox=!0,n.showSuggestions()},bn.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),t.addEventListener("pointerup",this._onInputEnd,!0),t.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),t.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),t.addEventListener("touchend",this._onInputEnd,!0),t.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(UH.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});UH.prototype.isDestroyed=function(){return!1};UH.prototype.destroy=function(){let e=this._container;return bn.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),e.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),e.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),e.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),Re.cleanNode(this._form),Re.cleanNode(this._searchSuggestionsContainer),e.removeChild(this._form),e.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),fe(this)};var d3=UH;var knr=S(C(),1);var Pnr=S(C(),1);function tXe(e,t){this._scene=e,this._duration=t;let n=this;this._command=ti(function(){n._scene.camera.flyHome(n._duration)}),this.tooltip="View Home",Re.track(this,["tooltip"])}Object.defineProperties(tXe.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(e){this._duration=e}}});var u3=tXe;function kH(e,t,n){e=li(e);let i=new u3(t,n);i._svgPath="M14,4l-10,8.75h20l-4.25-3.7188v-4.6562h-2.812v2.1875l-2.938-2.5625zm-7.0938,9.906v10.094h14.094v-10.094h-14.094zm2.1876,2.313h3.3122v4.25h-3.3122v-4.25zm5.8442,1.281h3.406v6.438h-3.406v-6.438z";let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button cesium-home-button",o.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),e.appendChild(o),Re.applyBindings(i,o),this._container=e,this._viewModel=i,this._element=o}Object.defineProperties(kH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});kH.prototype.isDestroyed=function(){return!1};kH.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var m3=kH;var qnr=S(C(),1);var Onr=S(C(),1);function M9t(e,t){t.currentTarget.parentElement.parentElement.querySelector(`#${e.name}-expander`).classList.toggle("active"),t.currentTarget.textContent=t.currentTarget.textContent==="+"?"-":"+"}function iXe(e,t){Re.track(e);for(let n=0;n<e.sublayers.length;n++)iXe(e.sublayers[n],t)}function zH(e){return e.modelName==="FullModel"}function oXe(e){return e.modelName==="Overview"}function rXe(e){return oXe(e)||zH(e)}function nXe(e,t){if(rXe(e)){e.visibility=!1;for(let i=0;i<e.sublayers.length;i++)e.sublayers[i].visibility=!0;let n={name:e.name,modelName:e.modelName,disable:Re.observable(!1),index:t.sublayers.length};return t.topLayers.push(n),t.sublayers.push(e),n}}function w9t(e,t){if(rXe(e)){t.sublayers.forEach(i=>i.visibility=!1),t.sublayers[e.index].visibility=!0;let n=document.getElementById("bsl-wrapper");zH(e)?(t.currentLevel=t.selectedLevel,n.style.display="block"):(t.selectedLevel=t.currentLevel,t.currentLevel="All",n.style.display="none")}}async function W9t(e,t){try{let n=e.getAttributeNames();for(let i=0;i<n.length;i++)if(n[i]==="BldgLevel"){let o=e.getAttributeValues(n[i]);for(let r=0;r<o.length;r++)t.push(o[r])}t.sort((i,o)=>i-o),t.unshift("All")}catch(n){console.log(`There was an error getting attributes: ${n}`)}}function P9t(e){let t=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:Re.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:Re.observable(!0),index:-1}],currentLayer:Re.observable(),expandClickHandler:M9t,setOptionDisable:function(i,o){Re.applyBindingsToNode(i,{disable:o.disable},o)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(i){w9t(i,t.viewModel)});let n=e.sublayers;for(let i=0;i<n.length;i++){iXe(n[i],this.viewModel);let o=nXe(n[i],this.viewModel);d(o)&&(oXe(o)||!d(this.viewModel.defaultLayer)&&zH(o))&&(this.viewModel.defaultLayer=o)}if(this.viewModel.topLayers.length===1&&n.length>0){e.show=!1;let i={name:"Full Model",modelName:"FullModel",visibility:e.show,sublayers:e.sublayers};this.viewModel.defaultLayer=nXe(i,this.viewModel),this.viewModel.currentLayer.subscribe(function(o){e.show=zH(o)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return W9t(e,this.levels),this.viewModel.currentLevel.subscribe(function(i){i!=="All"?e.filterByAttributes([{name:"BldgLevel",values:[i]}]):e.filterByAttributes()}),this.viewModel}var h3=P9t;function v9t(e,t){let n=document.getElementById(e),i=document.createElement("div");i.classList.add("cesium-viewer-i3s-explorer"),i.innerHTML=`
|
|
19044
|
+
http://www.naturalearthdata.com/`,category:"Cesium ion",creationFunction:function(){return HT.fromUrl(Sn("Assets/Textures/NaturalEarthII"))}})),e}var n3=b9t;var Btr=S(C(),1);function y9t(){let e=[];return e.push(new ra({name:"WGS84 Ellipsoid",iconUrl:Sn("Widgets/Images/TerrainProviders/Ellipsoid.png"),tooltip:"WGS84 standard ellipsoid, also known as EPSG:4326",category:"Cesium ion",creationFunction:function(){return new P0({ellipsoid:oe.WGS84})}})),e.push(new ra({name:"Cesium World Terrain",iconUrl:Sn("Widgets/Images/TerrainProviders/CesiumWorldTerrain.png"),tooltip:"High-resolution global terrain tileset curated from several datasources and hosted by Cesium ion",category:"Cesium ion",creationFunction:function(){return aC({requestWaterMask:!0,requestVertexNormals:!0})}})),e}var i3=y9t;var rnr=S(C(),1);var jtr=S(C(),1);function g9t(e){let t;if(d(e)){t="Command Statistics";let n=e.commandsInFrustums;for(let i in n)if(n.hasOwnProperty(i)){let o=parseInt(i,10),r;if(o===7)r="1, 2 and 3";else{let s=[];for(let a=2;a>=0;a--){let c=Math.pow(2,a);o>=c&&(s.push(a+1),o-=c)}r=s.reverse().join(" and ")}t+=`<br> ${n[i]} in frustum ${r}`}t+=`<br>Total: ${e.totalCommands}`}return t}function poe(e,t,n){let i=Math.min(n,t);return i=Math.max(i,e),i}var x9t=new Dn,T9t=new h;function o3(e,t){let n=this,i=e.canvas,o=new um(i);this._eventHandler=o,this._scene=e,this._canvas=i,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=t;let r=this._scene.globe;r.depthTestAgainstTerrain=!0,this.frustums=!1,this.frustumPlanes=!1,this.performance=!1,this.shaderCacheText="",this.primitiveBoundingSphere=!1,this.primitiveReferenceFrame=!1,this.filterPrimitive=!1,this.tileBoundingSphere=!1,this.filterTile=!1,this.wireframe=!1,this.depthFrustum=1,this._numberOfFrustums=1,this.suspendUpdates=!1,this.tileCoordinates=!1,this.frustumStatisticText=!1,this.tileText="",this.hasPickedPrimitive=!1,this.hasPickedTile=!1,this.pickPrimitiveActive=!1,this.pickTileActive=!1,this.dropDownVisible=!0,this.generalVisible=!0,this.primitivesVisible=!1,this.terrainVisible=!1,this.depthFrustumText="",Re.track(this,["frustums","frustumPlanes","performance","shaderCacheText","primitiveBoundingSphere","primitiveReferenceFrame","filterPrimitive","tileBoundingSphere","filterTile","wireframe","depthFrustum","suspendUpdates","tileCoordinates","frustumStatisticText","tileText","hasPickedPrimitive","hasPickedTile","pickPrimitiveActive","pickTileActive","dropDownVisible","generalVisible","primitivesVisible","terrainVisible","depthFrustumText"]),this._toggleDropDown=ti(function(){n.dropDownVisible=!n.dropDownVisible}),this._toggleGeneral=ti(function(){n.generalVisible=!n.generalVisible}),this._togglePrimitives=ti(function(){n.primitivesVisible=!n.primitivesVisible}),this._toggleTerrain=ti(function(){n.terrainVisible=!n.terrainVisible}),this._frustumsSubscription=Re.getObservable(this,"frustums").subscribe(function(l){n._scene.debugShowFrustums=l,n._scene.requestRender()}),this._frustumPlanesSubscription=Re.getObservable(this,"frustumPlanes").subscribe(function(l){n._scene.debugShowFrustumPlanes=l,n._scene.requestRender()}),this._performanceSubscription=Re.getObservable(this,"performance").subscribe(function(l){l?n._performanceDisplay=new yg({container:n._performanceContainer}):n._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=ti(function(){return n._primitive.debugShowBoundingVolume=n.primitiveBoundingSphere,n._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=Re.getObservable(this,"primitiveBoundingSphere").subscribe(function(){n._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=ti(function(){if(n.primitiveReferenceFrame){let l=n._primitive.modelMatrix;n._modelMatrixPrimitive=new gF({modelMatrix:l}),n._scene.primitives.add(n._modelMatrixPrimitive)}else d(n._modelMatrixPrimitive)&&(n._scene.primitives.remove(n._modelMatrixPrimitive),n._modelMatrixPrimitive=void 0);return n._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=Re.getObservable(this,"primitiveReferenceFrame").subscribe(function(){n._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=ti(function(){return n.filterPrimitive?n._scene.debugCommandFilter=function(l){return d(n._modelMatrixPrimitive)&&l.owner===n._modelMatrixPrimitive._primitive?!0:d(n._primitive)?l.owner===n._primitive||l.owner===n._primitive._billboardCollection||l.owner.primitive===n._primitive:!1}:n._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=Re.getObservable(this,"filterPrimitive").subscribe(function(){n._doFilterPrimitive(),n._scene.requestRender()}),this._wireframeSubscription=Re.getObservable(this,"wireframe").subscribe(function(l){r._surface.tileProvider._debug.wireframe=l,n._scene.requestRender()}),this._depthFrustumSubscription=Re.getObservable(this,"depthFrustum").subscribe(function(l){n._scene.debugShowDepthFrustum=l,n._scene.requestRender()}),this._incrementDepthFrustum=ti(function(){let l=n.depthFrustum+1;return n.depthFrustum=poe(1,n._numberOfFrustums,l),n._scene.requestRender(),!0}),this._decrementDepthFrustum=ti(function(){let l=n.depthFrustum-1;return n.depthFrustum=poe(1,n._numberOfFrustums,l),n._scene.requestRender(),!0}),this._suspendUpdatesSubscription=Re.getObservable(this,"suspendUpdates").subscribe(function(l){r._surface._debug.suspendLodUpdate=l,l||(n.filterTile=!1)});let s;this._showTileCoordinates=ti(function(){return n.tileCoordinates&&!d(s)?s=e.imageryLayers.addImageryProvider(new GD({tilingScheme:e.terrainProvider.tilingScheme})):!n.tileCoordinates&&d(s)&&(e.imageryLayers.remove(s),s=void 0),!0}),this._tileCoordinatesSubscription=Re.getObservable(this,"tileCoordinates").subscribe(function(){n._showTileCoordinates(),n._scene.requestRender()}),this._tileBoundingSphereSubscription=Re.getObservable(this,"tileBoundingSphere").subscribe(function(){n._showTileBoundingSphere(),n._scene.requestRender()}),this._showTileBoundingSphere=ti(function(){return n.tileBoundingSphere?r._surface.tileProvider._debug.boundingSphereTile=n._tile:r._surface.tileProvider._debug.boundingSphereTile=void 0,n._scene.requestRender(),!0}),this._doFilterTile=ti(function(){return n.filterTile?(n.suspendUpdates=!0,r._surface._tilesToRender=[],d(n._tile)&&n._tile.renderable&&r._surface._tilesToRender.push(n._tile)):n.suspendUpdates=!1,!0}),this._filterTileSubscription=Re.getObservable(this,"filterTile").subscribe(function(){n.doFilterTile(),n._scene.requestRender()});function a(l){let u=n._scene.pick({x:l.position.x,y:l.position.y});d(u)&&(n.primitive=d(u.collection)?u.collection:u.primitive),n._scene.requestRender(),n.pickPrimitiveActive=!1}this._pickPrimitive=ti(function(){n.pickPrimitiveActive=!n.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=Re.getObservable(this,"pickPrimitiveActive").subscribe(function(l){l?o.setInputAction(a,qn.LEFT_CLICK):o.removeInputAction(qn.LEFT_CLICK)});function c(l){let u,m=r.ellipsoid,f=n._scene.camera.getPickRay(l.position,x9t),b=r.pick(f,n._scene,T9t);if(d(b)){let p=m.cartesianToCartographic(b),x=r._surface.tileProvider._tilesToRenderByTextureCount;for(let T=0;!u&&T<x.length;++T){let _=x[T];if(d(_))for(let L=0;!u&&L<_.length;++L){let V=_[L];he.contains(V.rectangle,p)&&(u=V)}}}n.tile=u,n.pickTileActive=!1}this._pickTile=ti(function(){n.pickTileActive=!n.pickTileActive}),this._pickTileActiveSubscription=Re.getObservable(this,"pickTileActive").subscribe(function(l){l?o.setInputAction(c,qn.LEFT_CLICK):o.removeInputAction(qn.LEFT_CLICK)}),this._removePostRenderEvent=e.postRender.addEventListener(function(){n._update()})}Object.defineProperties(o3.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},toggleDropDown:{get:function(){return this._toggleDropDown}},showPrimitiveBoundingSphere:{get:function(){return this._showPrimitiveBoundingSphere}},showPrimitiveReferenceFrame:{get:function(){return this._showPrimitiveReferenceFrame}},doFilterPrimitive:{get:function(){return this._doFilterPrimitive}},incrementDepthFrustum:{get:function(){return this._incrementDepthFrustum}},decrementDepthFrustum:{get:function(){return this._decrementDepthFrustum}},showTileCoordinates:{get:function(){return this._showTileCoordinates}},showTileBoundingSphere:{get:function(){return this._showTileBoundingSphere}},doFilterTile:{get:function(){return this._doFilterTile}},toggleGeneral:{get:function(){return this._toggleGeneral}},togglePrimitives:{get:function(){return this._togglePrimitives}},toggleTerrain:{get:function(){return this._toggleTerrain}},pickPrimitive:{get:function(){return this._pickPrimitive}},pickTile:{get:function(){return this._pickTile}},selectParent:{get:function(){let e=this;return ti(function(){e.tile=e.tile.parent})}},selectNW:{get:function(){let e=this;return ti(function(){e.tile=e.tile.northwestChild})}},selectNE:{get:function(){let e=this;return ti(function(){e.tile=e.tile.northeastChild})}},selectSW:{get:function(){let e=this;return ti(function(){e.tile=e.tile.southwestChild})}},selectSE:{get:function(){let e=this;return ti(function(){e.tile=e.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(e){let t=this._primitive;e!==t&&(this.hasPickedPrimitive=!0,d(t)&&(t.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,d(this._modelMatrixPrimitive)&&(this._scene.primitives.remove(this._modelMatrixPrimitive),this._modelMatrixPrimitive=void 0),this._primitive=e,e.show=!1,setTimeout(function(){e.show=!0},50),this.showPrimitiveBoundingSphere(),this.showPrimitiveReferenceFrame(),this.doFilterPrimitive())}},tile:{get:function(){return this._tile},set:function(e){if(d(e)){this.hasPickedTile=!0;let t=this._tile;if(e!==t){this.tileText=`L: ${e.level} X: ${e.x} Y: ${e.y}`,this.tileText+=`<br>SW corner: ${e.rectangle.west}, ${e.rectangle.south}`,this.tileText+=`<br>NE corner: ${e.rectangle.east}, ${e.rectangle.north}`;let n=e.data;d(n)&&d(n.tileBoundingRegion)?this.tileText+=`<br>Min: ${n.tileBoundingRegion.minimumHeight} Max: ${n.tileBoundingRegion.maximumHeight}`:this.tileText+="<br>(Tile is not loaded)"}this._tile=e,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}});o3.prototype._update=function(){this.frustums&&(this.frustumStatisticText=g9t(this._scene.debugFrustumStatistics));let e=this._scene.numberOfFrustums;this._numberOfFrustums=e,this.depthFrustum=poe(1,e,this.depthFrustum),this.depthFrustumText=`${this.depthFrustum} of ${e}`,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText=`Cached shaders: ${this._scene.context.shaderCache.numberOfShaders}`};o3.prototype.isDestroyed=function(){return!1};o3.prototype.destroy=function(){return this._eventHandler.destroy(),this._removePostRenderEvent(),this._frustumsSubscription.dispose(),this._frustumPlanesSubscription.dispose(),this._performanceSubscription.dispose(),this._primitiveBoundingSphereSubscription.dispose(),this._primitiveReferenceFrameSubscription.dispose(),this._filterPrimitiveSubscription.dispose(),this._wireframeSubscription.dispose(),this._depthFrustumSubscription.dispose(),this._suspendUpdatesSubscription.dispose(),this._tileCoordinatesSubscription.dispose(),this._tileBoundingSphereSubscription.dispose(),this._filterTileSubscription.dispose(),this._pickPrimitiveActiveSubscription.dispose(),this._pickTileActiveSubscription.dispose(),fe(this)};var r3=o3;function FH(e,t){e=li(e);let n=document.createElement("div"),i=new r3(t,n);this._viewModel=i,this._container=e;let o=document.createElement("div");this._element=o;let r=document.createElement("div");r.textContent="Cesium Inspector",r.className="cesium-cesiumInspector-button",r.setAttribute("data-bind","click: toggleDropDown"),o.appendChild(r),o.className="cesium-cesiumInspector",o.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),e.appendChild(this._element);let s=document.createElement("div");s.className="cesium-cesiumInspector-dropDown",o.appendChild(s);let a=jc.createSection,c=jc.createCheckbox,l=a(s,"General","generalVisible","toggleGeneral"),u=c("Show Frustums","frustums"),m=document.createElement("div");m.className="cesium-cesiumInspector-frustumStatistics",m.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),u.appendChild(m),l.appendChild(u),l.appendChild(c("Show Frustum Planes","frustumPlanes")),l.appendChild(c("Performance Display","performance")),n.className="cesium-cesiumInspector-performanceDisplay",l.appendChild(n);let f=document.createElement("div");f.className="cesium-cesiumInspector-shaderCache",f.setAttribute("data-bind","html: shaderCacheText"),l.appendChild(f);let b=document.createElement("div");l.appendChild(b);let p=document.createElement("span");p.setAttribute("data-bind",'html: " Frustum:"'),b.appendChild(p);let x=document.createElement("span");x.setAttribute("data-bind","text: depthFrustumText"),b.appendChild(x);let T=document.createElement("input");T.type="button",T.value="-",T.className="cesium-cesiumInspector-pickButton",T.setAttribute("data-bind","click: decrementDepthFrustum"),b.appendChild(T);let _=document.createElement("input");_.type="button",_.value="+",_.className="cesium-cesiumInspector-pickButton",_.setAttribute("data-bind","click: incrementDepthFrustum"),b.appendChild(_);let L=a(s,"Primitives","primitivesVisible","togglePrimitives"),V=document.createElement("div");V.className="cesium-cesiumInspector-pickSection",L.appendChild(V);let Z=document.createElement("input");Z.type="button",Z.value="Pick a primitive",Z.className="cesium-cesiumInspector-pickButton",Z.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let G=document.createElement("div");G.className="cesium-cesiumInspector-center",G.appendChild(Z),V.appendChild(G),V.appendChild(c("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),V.appendChild(c("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=c("Show only selected","filterPrimitive","hasPickedPrimitive"),V.appendChild(this._primitiveOnly);let I=a(s,"Terrain","terrainVisible","toggleTerrain"),w=document.createElement("div");w.className="cesium-cesiumInspector-pickSection",I.appendChild(w);let W=document.createElement("input");W.type="button",W.value="Pick a tile",W.className="cesium-cesiumInspector-pickButton",W.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),G=document.createElement("div"),G.appendChild(W),G.className="cesium-cesiumInspector-center",w.appendChild(G);let v=document.createElement("div");w.appendChild(v);let N=document.createElement("input");N.type="button",N.value="Parent",N.className="cesium-cesiumInspector-pickButton",N.setAttribute("data-bind","click: selectParent");let y=document.createElement("input");y.type="button",y.value="NW",y.className="cesium-cesiumInspector-pickButton",y.setAttribute("data-bind","click: selectNW");let R=document.createElement("input");R.type="button",R.value="NE",R.className="cesium-cesiumInspector-pickButton",R.setAttribute("data-bind","click: selectNE");let E=document.createElement("input");E.type="button",E.value="SW",E.className="cesium-cesiumInspector-pickButton",E.setAttribute("data-bind","click: selectSW");let X=document.createElement("input");X.type="button",X.value="SE",X.className="cesium-cesiumInspector-pickButton",X.setAttribute("data-bind","click: selectSE");let F=document.createElement("div");F.className="cesium-cesiumInspector-tileText",v.className="cesium-cesiumInspector-frustumStatistics",v.appendChild(F),v.setAttribute("data-bind","visible: hasPickedTile"),F.setAttribute("data-bind","html: tileText");let A=document.createElement("div");A.className="cesium-cesiumInspector-relativeText",A.textContent="Select relative:",v.appendChild(A);let Y=document.createElement("table"),U=document.createElement("tr"),k=document.createElement("tr"),D=document.createElement("td");D.appendChild(N);let O=document.createElement("td");O.appendChild(y);let K=document.createElement("td");K.appendChild(R),U.appendChild(D),U.appendChild(O),U.appendChild(K);let j=document.createElement("td"),J=document.createElement("td");J.appendChild(E);let ne=document.createElement("td");ne.appendChild(X),k.appendChild(j),k.appendChild(J),k.appendChild(ne),Y.appendChild(U),Y.appendChild(k),v.appendChild(Y),w.appendChild(c("Show bounding volume","tileBoundingSphere","hasPickedTile")),w.appendChild(c("Show only selected","filterTile","hasPickedTile")),I.appendChild(c("Wireframe","wireframe")),I.appendChild(c("Suspend LOD update","suspendUpdates")),I.appendChild(c("Show tile coordinates","tileCoordinates")),Re.applyBindings(i,this._element)}Object.defineProperties(FH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});FH.prototype.isDestroyed=function(){return!1};FH.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),fe(this)};var s3=FH;var gnr=S(C(),1);var unr=S(C(),1);function AH(e,t){d(t)||(t=document.body),t=li(t);let n=this,i=Re.observable(fs.fullscreen),o=Re.observable(fs.enabled),r=t.ownerDocument;this.isFullscreen=void 0,Re.defineProperty(this,"isFullscreen",{get:function(){return i()}}),this.isFullscreenEnabled=void 0,Re.defineProperty(this,"isFullscreenEnabled",{get:function(){return o()},set:function(s){o(s&&fs.enabled)}}),this.tooltip=void 0,Re.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?i()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=ti(function(){fs.fullscreen?fs.exitFullscreen():fs.requestFullscreen(n._fullscreenElement)},Re.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=g(li(e),r.body),this._callback=function(){i(fs.fullscreen)},r.addEventListener(fs.changeEventName,this._callback)}Object.defineProperties(AH.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(e){this._fullscreenElement=e}},command:{get:function(){return this._command}}});AH.prototype.isDestroyed=function(){return!1};AH.prototype.destroy=function(){document.removeEventListener(fs.changeEventName,this._callback),fe(this)};var a3=AH;var _9t="M 83.96875 17.5625 L 83.96875 17.59375 L 76.65625 24.875 L 97.09375 24.96875 L 76.09375 45.96875 L 81.9375 51.8125 L 102.78125 30.9375 L 102.875 51.15625 L 110.15625 43.875 L 110.1875 17.59375 L 83.96875 17.5625 z M 44.125 17.59375 L 17.90625 17.625 L 17.9375 43.90625 L 25.21875 51.1875 L 25.3125 30.96875 L 46.15625 51.8125 L 52 45.96875 L 31 25 L 51.4375 24.90625 L 44.125 17.59375 z M 46.0625 76.03125 L 25.1875 96.875 L 25.09375 76.65625 L 17.8125 83.9375 L 17.8125 110.21875 L 44 110.25 L 51.3125 102.9375 L 30.90625 102.84375 L 51.875 81.875 L 46.0625 76.03125 z M 82 76.15625 L 76.15625 82 L 97.15625 103 L 76.71875 103.0625 L 84.03125 110.375 L 110.25 110.34375 L 110.21875 84.0625 L 102.9375 76.8125 L 102.84375 97 L 82 76.15625 z",S9t="M 104.34375 17.5625 L 83.5 38.4375 L 83.40625 18.21875 L 76.125 25.5 L 76.09375 51.78125 L 102.3125 51.8125 L 102.3125 51.78125 L 109.625 44.5 L 89.1875 44.40625 L 110.1875 23.40625 L 104.34375 17.5625 z M 23.75 17.59375 L 17.90625 23.4375 L 38.90625 44.4375 L 18.5 44.53125 L 25.78125 51.8125 L 52 51.78125 L 51.96875 25.53125 L 44.6875 18.25 L 44.625 38.46875 L 23.75 17.59375 z M 25.6875 76.03125 L 18.375 83.3125 L 38.78125 83.40625 L 17.8125 104.40625 L 23.625 110.25 L 44.5 89.375 L 44.59375 109.59375 L 51.875 102.3125 L 51.875 76.0625 L 25.6875 76.03125 z M 102.375 76.15625 L 76.15625 76.1875 L 76.1875 102.4375 L 83.46875 109.71875 L 83.5625 89.53125 L 104.40625 110.375 L 110.25 104.53125 L 89.25 83.53125 L 109.6875 83.46875 L 102.375 76.15625 z";function DH(e,t){e=li(e);let n=new a3(t,e);n._exitFullScreenPath=S9t,n._enterFullScreenPath=_9t;let i=document.createElement("button");i.type="button",i.className="cesium-button cesium-fullscreenButton",i.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),e.appendChild(i),Re.applyBindings(n,i),this._container=e,this._viewModel=n,this._element=i}Object.defineProperties(DH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});DH.prototype.isDestroyed=function(){return!1};DH.prototype.destroy=function(){return this._viewModel.destroy(),Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var c3=DH;var Xnr=S(C(),1);var Lnr=S(C(),1);var JIe=1e3;function Ah(e){d(e.geocoderServices)?this._geocoderServices=e.geocoderServices:this._geocoderServices=[new c5({scene:e.scene})],this._viewContainer=e.container,this._scene=e.scene,this._flightDuration=e.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._wasGeocodeCancelled=!1,this._previousCredits=[],this._complete=new Se,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=jIe,this._handleArrowUp=QIe;let t=this;this._suggestionsVisible=Re.pureComputed(function(){let o=Re.getObservable(t,"_suggestions")().length>0,r=Re.getObservable(t,"_showSuggestions")();return o&&r}),this._searchCommand=ti(function(i){if(i=g(i,DT.SEARCH),t._focusTextbox=!1,d(t._selectedSuggestion))return t.activateSuggestion(t._selectedSuggestion),!1;if(t.hideSuggestions(),t.isSearchInProgress)G9t(t);else return Z9t(t,t._geocoderServices,i)}),this.deselectSuggestion=function(){t._selectedSuggestion=void 0},this.handleKeyDown=function(i,o){let r=o.key==="ArrowDown"||o.key==="Down"||o.keyCode===40,s=o.key==="ArrowUp"||o.key==="Up"||o.keyCode===38;return(r||s)&&o.preventDefault(),!0},this.handleKeyUp=function(i,o){let r=o.key==="ArrowDown"||o.key==="Down"||o.keyCode===40,s=o.key==="ArrowUp"||o.key==="Up"||o.keyCode===38,a=o.key==="Enter"||o.keyCode===13;return s?QIe(t):r?jIe(t):a&&t._searchCommand(),!0},this.activateSuggestion=function(i){t.hideSuggestions(),t._searchText=i.displayName;let o=i.destination;eXe(t),t.destinationFound(t,o)},this.hideSuggestions=function(){t._showSuggestions=!1,t._selectedSuggestion=void 0},this.showSuggestions=function(){t._showSuggestions=!0},this.handleMouseover=function(i,o){i!==t._selectedSuggestion&&(t._selectedSuggestion=i)},this.keepExpanded=!1,this.autoComplete=g(e.autocomplete,!0),this.destinationFound=g(e.destinationFound,Ah.flyToDestination),this._focusTextbox=!1,Re.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let n=Re.getObservable(this,"_searchText");n.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=n.subscribe(function(){Ah._updateSearchSuggestions(t)}),this.isSearchInProgress=void 0,Re.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,Re.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(i){this._searchText=i}}),this.flightDuration=void 0,Re.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(i){this._flightDuration=i}})}Object.defineProperties(Ah.prototype,{complete:{get:function(){return this._complete}},scene:{get:function(){return this._scene}},search:{get:function(){return this._searchCommand}},selectedSuggestion:{get:function(){return this._selectedSuggestion}},suggestions:{get:function(){return this._suggestions}}});Ah.prototype.destroy=function(){this._suggestionSubscription.dispose()};function QIe(e){if(e._suggestions.length===0)return;let t=e._suggestions.indexOf(e._selectedSuggestion);if(t===-1||t===0){e._selectedSuggestion=void 0;return}let n=t-1;e._selectedSuggestion=e._suggestions[n],Ah._adjustSuggestionsScroll(e,n)}function jIe(e){if(e._suggestions.length===0)return;let t=e._suggestions.length,i=(e._suggestions.indexOf(e._selectedSuggestion)+1)%t;e._selectedSuggestion=e._suggestions[i],Ah._adjustSuggestionsScroll(e,i)}function C9t(e,t){let n=d(t)?t.availability:void 0;return d(n)?hC(t,[e]).then(function(i){return e=i[0],e.height+=JIe,e}):(e.height+=JIe,Promise.resolve(e))}function L9t(e,t){let n=e._scene,i=n.ellipsoid,o=n.camera,r=n.terrainProvider,s=t,a;return t instanceof he?M.equalsEpsilon(t.south,t.north,M.EPSILON7)&&M.equalsEpsilon(t.east,t.west,M.EPSILON7)?t=he.center(t):a=CC(t,n):t=i.cartesianToCartographic(t),d(a)||(a=C9t(t,r)),a.then(function(c){s=i.cartographicToCartesian(c)}).finally(function(){o.flyTo({destination:s,complete:function(){e._complete.raiseEvent()},duration:e._flightDuration,endTransform:P.IDENTITY})})}async function V9t(e,t,n){try{return{state:"fulfilled",value:await e.geocode(t,n),credits:e.credit}}catch(i){return{state:"rejected",reason:i}}}async function Z9t(e,t,n){let i=e._searchText;if($Ie(i)){e.showSuggestions();return}e._isSearchInProgress=!0,e._wasGeocodeCancelled=!1;let o,r;for(o=0;o<t.length;o++){if(e._wasGeocodeCancelled)return;if(r=await V9t(t[o],i,n),d(r)&&r.state==="fulfilled"&&r.value.length>0)break}if(e._wasGeocodeCancelled)return;e._isSearchInProgress=!1,boe(e);let s=r.value;if(r.state==="fulfilled"&&d(s)&&s.length>0){e._searchText=s[0].displayName,e.destinationFound(e,s[0].destination);let a=qIe(e,NR.getCreditsFromResult(s[0]));d(a)||foe(e,t[o].credit);return}e._searchText=`${i} (not found)`}function foe(e,t){d(t)&&!e._scene.isDestroyed()&&!e._scene.frameState.creditDisplay.isDestroyed()&&(e._scene.frameState.creditDisplay.addStaticCredit(t),e._previousCredits.push(t))}function qIe(e,t){return d(t)&&t.forEach(n=>foe(e,n)),t}function boe(e){!e._scene.isDestroyed()&&!e._scene.frameState.creditDisplay.isDestroyed()&&e._previousCredits.forEach(t=>{e._scene.frameState.creditDisplay.removeStaticCredit(t)}),e._previousCredits.length=0}function R9t(e,t){let n=li(e._viewContainer),i=n.getElementsByClassName("search-results")[0],r=n.getElementsByTagName("li")[t];if(t===0){i.scrollTop=0;return}let s=r.offsetTop;s+r.clientHeight>i.clientHeight?i.scrollTop=s+r.clientHeight:s<i.scrollTop&&(i.scrollTop=s)}function G9t(e){e._isSearchInProgress&&(e._isSearchInProgress=!1,e._wasGeocodeCancelled=!0)}function $Ie(e){return/^\s*$/.test(e)}function eXe(e){Re.getObservable(e,"_suggestions").removeAll()}async function E9t(e){if(!e.autoComplete)return;let t=e._searchText;if(eXe(e),boe(e),!$Ie(t))for(let n of e._geocoderServices){let i=await n.geocode(t,DT.AUTOCOMPLETE);if(e._suggestions=e._suggestions.concat(i),i.length>0){let o=!0;i.forEach(r=>{let s=NR.getCreditsFromResult(r);o=o&&!d(s),qIe(e,s)}),o&&foe(e,n.credit)}if(e._suggestions.length>=5)return}}Ah.flyToDestination=L9t;Ah._updateSearchSuggestions=E9t;Ah._adjustSuggestionsScroll=R9t;Ah.prototype.isDestroyed=function(){return!1};Ah.prototype.destroy=function(){return boe(this),fe(this)};var l3=Ah;var I9t="M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z",X9t="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z";function UH(e){let t=li(e.container),n=new l3(e);n._startSearchPath=I9t,n._stopSearchPath=X9t;let i=document.createElement("form");i.setAttribute("data-bind","submit: search");let o=document.createElement("input");o.type="search",o.className="cesium-geocoder-input",o.setAttribute("placeholder","Enter an address or landmark..."),o.setAttribute("data-bind",'textInput: searchText,disable: isSearchInProgress,event: { keyup: handleKeyUp, keydown: handleKeyDown, mouseover: deselectSuggestion },css: { "cesium-geocoder-input-wide" : keepExpanded || searchText.length > 0 },hasFocus: _focusTextbox'),this._onTextBoxFocus=function(){setTimeout(function(){o.select()},0)},o.addEventListener("focus",this._onTextBoxFocus,!1),i.appendChild(o),this._textBox=o;let r=document.createElement("span");r.className="cesium-geocoder-searchButton",r.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),i.appendChild(r),t.appendChild(i);let s=document.createElement("div");s.className="search-results",s.setAttribute("data-bind","visible: _suggestionsVisible");let a=document.createElement("ul");a.setAttribute("data-bind","foreach: _suggestions");let c=document.createElement("li");a.appendChild(c),c.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),s.appendChild(a),t.appendChild(s),Re.applyBindings(n,i),Re.applyBindings(n,s),this._container=t,this._searchSuggestionsContainer=s,this._viewModel=n,this._form=i,this._onInputBegin=function(l){let u=l.target;typeof l.composedPath=="function"&&(u=l.composedPath()[0]),t.contains(u)||(n._focusTextbox=!1,n.hideSuggestions())},this._onInputEnd=function(l){n._focusTextbox=!0,n.showSuggestions()},bn.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),t.addEventListener("pointerup",this._onInputEnd,!0),t.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),t.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),t.addEventListener("touchend",this._onInputEnd,!0),t.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(UH.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});UH.prototype.isDestroyed=function(){return!1};UH.prototype.destroy=function(){let e=this._container;return bn.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),e.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),e.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),e.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),Re.cleanNode(this._form),Re.cleanNode(this._searchSuggestionsContainer),e.removeChild(this._form),e.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),fe(this)};var d3=UH;var knr=S(C(),1);var Pnr=S(C(),1);function tXe(e,t){this._scene=e,this._duration=t;let n=this;this._command=ti(function(){n._scene.camera.flyHome(n._duration)}),this.tooltip="View Home",Re.track(this,["tooltip"])}Object.defineProperties(tXe.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(e){this._duration=e}}});var u3=tXe;function kH(e,t,n){e=li(e);let i=new u3(t,n);i._svgPath="M14,4l-10,8.75h20l-4.25-3.7188v-4.6562h-2.812v2.1875l-2.938-2.5625zm-7.0938,9.906v10.094h14.094v-10.094h-14.094zm2.1876,2.313h3.3122v4.25h-3.3122v-4.25zm5.8442,1.281h3.406v6.438h-3.406v-6.438z";let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button cesium-home-button",o.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),e.appendChild(o),Re.applyBindings(i,o),this._container=e,this._viewModel=i,this._element=o}Object.defineProperties(kH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});kH.prototype.isDestroyed=function(){return!1};kH.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var m3=kH;var qnr=S(C(),1);var Onr=S(C(),1);function M9t(e,t){t.currentTarget.parentElement.parentElement.querySelector(`#${e.name}-expander`).classList.toggle("active"),t.currentTarget.textContent=t.currentTarget.textContent==="+"?"-":"+"}function iXe(e,t){Re.track(e);for(let n=0;n<e.sublayers.length;n++)iXe(e.sublayers[n],t)}function zH(e){return e.modelName==="FullModel"}function oXe(e){return e.modelName==="Overview"}function rXe(e){return oXe(e)||zH(e)}function nXe(e,t){if(rXe(e)){e.visibility=!1;for(let i=0;i<e.sublayers.length;i++)e.sublayers[i].visibility=!0;let n={name:e.name,modelName:e.modelName,disable:Re.observable(!1),index:t.sublayers.length};return t.topLayers.push(n),t.sublayers.push(e),n}}function w9t(e,t){if(rXe(e)){t.sublayers.forEach(i=>i.visibility=!1),t.sublayers[e.index].visibility=!0;let n=document.getElementById("bsl-wrapper");zH(e)?(t.currentLevel=t.selectedLevel,n.style.display="block"):(t.selectedLevel=t.currentLevel,t.currentLevel="All",n.style.display="none")}}async function W9t(e,t){try{let n=e.getAttributeNames();for(let i=0;i<n.length;i++)if(n[i]==="BldgLevel"){let o=e.getAttributeValues(n[i]);for(let r=0;r<o.length;r++)t.push(o[r])}t.sort((i,o)=>i-o),t.unshift("All")}catch(n){console.log(`There was an error getting attributes: ${n}`)}}function P9t(e){let t=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:Re.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:Re.observable(!0),index:-1}],currentLayer:Re.observable(),expandClickHandler:M9t,setOptionDisable:function(i,o){Re.applyBindingsToNode(i,{disable:o.disable},o)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(i){w9t(i,t.viewModel)});let n=e.sublayers;for(let i=0;i<n.length;i++){iXe(n[i],this.viewModel);let o=nXe(n[i],this.viewModel);d(o)&&(oXe(o)||!d(this.viewModel.defaultLayer)&&zH(o))&&(this.viewModel.defaultLayer=o)}if(this.viewModel.topLayers.length===1&&n.length>0){e.show=!1;let i={name:"Full Model",modelName:"FullModel",visibility:e.show,sublayers:e.sublayers};this.viewModel.defaultLayer=nXe(i,this.viewModel),this.viewModel.currentLayer.subscribe(function(o){e.show=zH(o)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return W9t(e,this.levels),this.viewModel.currentLevel.subscribe(function(i){i!=="All"?e.filterByAttributes([{name:"BldgLevel",values:[i]}]):e.filterByAttributes()}),this.viewModel}var h3=P9t;function v9t(e,t){let n=document.getElementById(e),i=document.createElement("div");i.classList.add("cesium-viewer-i3s-explorer"),i.innerHTML=`
|
|
19045
19045
|
<h3>Building explorer</h3>
|
|
19046
19046
|
<select
|
|
19047
19047
|
data-bind="options: topLayers, optionsText: 'name', optionsAfterRender: setOptionDisable, value: currentLayer"
|
|
@@ -19083,8 +19083,8 @@ http://www.naturalearthdata.com/`,category:"Cesium ion",creationFunction:functio
|
|
|
19083
19083
|
</li>
|
|
19084
19084
|
</ul>
|
|
19085
19085
|
</ul>
|
|
19086
|
-
</div>`,n.appendChild(i);let o=new h3(t);Re.track(o),Re.applyBindings(o,n),d(o.defaultLayer)&&(o.currentLayer=o.defaultLayer)}var yoe=v9t;var lir=S(C(),1);var nir=S(C(),1);var N9t="M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4853444 22.104033 11.423165 24.0625 13.84375 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 8.975298 28.305952 7.03125 25.875 7.03125 L 13.84375 7.03125 z",F9t="M 27.34375 1.65625 L 5.28125 27.9375 L 8.09375 30.3125 L 30.15625 4.03125 L 27.34375 1.65625 z M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4724893 20.232036 9.5676108 20.7379 9.75 21.21875 L 21.65625 7.03125 L 13.84375 7.03125 z M 28.21875 7.71875 L 14.53125 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 9.8371439 29.456025 8.4902779 28.21875 7.71875 z";function goe(){this._cameraClicked=new Se,this._closeClicked=new Se,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",Re.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='<div class="cesium-infoBox-loadingContainer"><span class="cesium-infoBox-loading"></span></div>',this.cameraIconPath=void 0,Re.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?F9t:N9t}}),Re.defineProperty(this,"_bodyless",{get:function(){return!d(this.description)||this.description.length===0}})}goe.prototype.maxHeightOffset=function(e){return`${this.maxHeight-e}px`};Object.defineProperties(goe.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var p3=goe;function YH(e){e=li(e);let t=document.createElement("div");t.className="cesium-infoBox",t.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),e.appendChild(t);let n=document.createElement("div");n.className="cesium-infoBox-title",n.setAttribute("data-bind","text: titleText"),t.appendChild(n);let i=document.createElement("button");i.type="button",i.className="cesium-button cesium-infoBox-camera",i.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),t.appendChild(i);let o=document.createElement("button");o.type="button",o.className="cesium-infoBox-close",o.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),o.innerHTML="×",t.appendChild(o);let r=document.createElement("iframe");r.className="cesium-infoBox-iframe",r.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),r.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),r.setAttribute("allowfullscreen",!0),t.appendChild(r);let s=new p3;Re.applyBindings(s,t),this._container=e,this._element=t,this._frame=r,this._viewModel=s,this._descriptionSubscription=void 0;let a=this;r.addEventListener("load",function(){let c=r.contentDocument,l=c.createElement("link");l.href=Sn("Widgets/InfoBox/InfoBoxDescription.css"),l.rel="stylesheet",l.type="text/css";let u=c.createElement("div");u.className="cesium-infoBox-description",c.head.appendChild(l),c.body.appendChild(u),a._descriptionSubscription=Zc(s,"description",function(m){r.style.height="5px",u.innerHTML=m;let f=null,b=u.firstElementChild;if(b!==null&&u.childNodes.length===1){let x=window.getComputedStyle(b);if(x!==null){let T=x["background-color"],_=z.fromCssColorString(T);d(_)&&_.alpha!==0&&(f=x["background-color"])}}t.style["background-color"]=f;let p=u.getBoundingClientRect().height;r.style.height=`${p}px`})}),r.setAttribute("src","about:blank")}Object.defineProperties(YH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});YH.prototype.isDestroyed=function(){return!1};YH.prototype.destroy=function(){let e=this._container;return Re.cleanNode(this._element),e.removeChild(this._element),d(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),fe(this)};var f3=YH;var Tir=S(C(),1);var hir=S(C(),1);function sXe(){this.showInstructions=!1;let e=this;this._command=ti(function(){e.showInstructions=!e.showInstructions}),this._showClick=ti(function(){e._touch=!1}),this._showTouch=ti(function(){e._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",Re.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(sXe.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var b3=sXe;function BH(e){let t=li(e.container),n=new b3,i=g(e.instructionsInitiallyVisible,!1);n.showInstructions=i,n._svgPath="M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466z M17.328,24.371h-2.707v-2.596h2.707V24.371zM17.328,19.003v0.858h-2.707v-1.057c0-3.19,3.63-3.696,3.63-5.963c0-1.034-0.924-1.826-2.134-1.826c-1.254,0-2.354,0.924-2.354,0.924l-1.541-1.915c0,0,1.519-1.584,4.137-1.584c2.487,0,4.796,1.54,4.796,4.136C21.156,16.208,17.328,16.627,17.328,19.003z";let o=document.createElement("span");o.className="cesium-navigationHelpButton-wrapper",t.appendChild(o);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",r.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),o.appendChild(r);let s=document.createElement("div");s.className="cesium-navigation-help",s.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),o.appendChild(s);let a=document.createElement("button");a.type="button",a.className="cesium-navigation-button cesium-navigation-button-left",a.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let c=document.createElement("img");c.src=Sn("Widgets/Images/NavigationHelp/Mouse.svg"),c.className="cesium-navigation-button-icon",c.style.width="25px",c.style.height="25px",a.appendChild(c),a.appendChild(document.createTextNode("Mouse"));let l=document.createElement("button");l.type="button",l.className="cesium-navigation-button cesium-navigation-button-right",l.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let u=document.createElement("img");u.src=Sn("Widgets/Images/NavigationHelp/Touch.svg"),u.className="cesium-navigation-button-icon",u.style.width="25px",u.style.height="25px",l.appendChild(u),l.appendChild(document.createTextNode("Touch")),s.appendChild(a),s.appendChild(l);let m=document.createElement("div");m.className="cesium-click-navigation-help cesium-navigation-help-instructions",m.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),m.innerHTML=` <table> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/MouseLeft.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">Left click + drag</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/MouseRight.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Right click + drag, or</div> <div class="cesium-navigation-help-details">Mouse wheel scroll</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/MouseMiddle.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Rotate view</div> <div class="cesium-navigation-help-details">Middle click + drag, or</div> <div class="cesium-navigation-help-details">CTRL + Left/Right click + drag</div> </td> </tr> </table>`,s.appendChild(m);let f=document.createElement("div");f.className="cesium-touch-navigation-help cesium-navigation-help-instructions",f.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),f.innerHTML=` <table> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchDrag.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">One finger drag</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchZoom.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Two finger pinch</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchTilt.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Tilt view</div> <div class="cesium-navigation-help-details">Two finger drag, same direction</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchRotate.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-tilt">Rotate view</div> <div class="cesium-navigation-help-details">Two finger drag, opposite direction</div> </td> </tr> </table>`,s.appendChild(f),Re.applyBindings(n,o),this._container=t,this._viewModel=n,this._wrapper=o,this._closeInstructions=function(b){o.contains(b.target)||(n.showInstructions=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(BH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});BH.prototype.isDestroyed=function(){return!1};BH.prototype.destroy=function(){return bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),Re.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),fe(this)};var y3=BH;var Wir=S(C(),1);var Rir=S(C(),1);function xoe(e){this._scene=e.scene,this.lowFrameRateMessage=g(e.lowFrameRateMessage,"This application appears to be performing poorly on your system. Please try using a different web browser or updating your video drivers."),this.lowFrameRateMessageDismissed=!1,this.showingLowFrameRateMessage=!1,Re.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let t=this;this._dismissMessage=ti(function(){t.showingLowFrameRateMessage=!1,t.lowFrameRateMessageDismissed=!0});let n=EF.fromScene(e.scene);this._unsubscribeLowFrameRate=n.lowFrameRate.addEventListener(function(){t.lowFrameRateMessageDismissed||(t.showingLowFrameRateMessage=!0)}),this._unsubscribeNominalFrameRate=n.nominalFrameRate.addEventListener(function(){t.showingLowFrameRateMessage=!1})}Object.defineProperties(xoe.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});xoe.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),fe(this)};var g3=xoe;function OH(e){let t=li(e.container),n=new g3(e),i=document.createElement("div");i.className="cesium-performance-watchdog-message-area",i.setAttribute("data-bind","visible: showingLowFrameRateMessage");let o=document.createElement("button");o.setAttribute("type","button"),o.className="cesium-performance-watchdog-message-dismiss",o.innerHTML="×",o.setAttribute("data-bind","click: dismissMessage"),i.appendChild(o);let r=document.createElement("div");r.className="cesium-performance-watchdog-message",r.setAttribute("data-bind","html: lowFrameRateMessage"),i.appendChild(r),t.appendChild(i),Re.applyBindings(n,i),this._container=t,this._viewModel=n,this._element=i}Object.defineProperties(OH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});OH.prototype.isDestroyed=function(){return!1};OH.prototype.destroy=function(){return this._viewModel.destroy(),Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var x3=OH;var Kir=S(C(),1);var Dir=S(C(),1);function KH(e){this._scene=e,this._orthographic=e.camera.frustum instanceof In,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=e.mode,Re.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let t=this;Re.defineProperty(this,"selectedTooltip",function(){return t._orthographic?t.tooltipOrthographic:t.tooltipPerspective}),this._toggleDropDown=ti(function(){t.sceneMode===ae.SCENE2D||t._flightInProgress||(t.dropDownVisible=!t.dropDownVisible)}),this._eventHelper=new vs,this._eventHelper.add(e.morphComplete,function(n,i,o,r){t.sceneMode=o,t._orthographic=o===ae.SCENE2D||t._scene.camera.frustum instanceof In}),this._eventHelper.add(e.preRender,function(){t._flightInProgress=d(e.camera._currentFlight)}),this._switchToPerspective=ti(function(){t.sceneMode!==ae.SCENE2D&&(t._scene.camera.switchToPerspectiveFrustum(),t._orthographic=!1,t.dropDownVisible=!1)}),this._switchToOrthographic=ti(function(){t.sceneMode!==ae.SCENE2D&&(t._scene.camera.switchToOrthographicFrustum(),t._orthographic=!0,t.dropDownVisible=!1)}),this._sceneMode=ae}Object.defineProperties(KH.prototype,{scene:{get:function(){return this._scene}},toggleDropDown:{get:function(){return this._toggleDropDown}},switchToPerspective:{get:function(){return this._switchToPerspective}},switchToOrthographic:{get:function(){return this._switchToOrthographic}},isOrthographicProjection:{get:function(){return this._orthographic}}});KH.prototype.isDestroyed=function(){return!1};KH.prototype.destroy=function(){this._eventHelper.removeAll(),fe(this)};var T3=KH;var A9t="M 28.15625,10.4375 9.125,13.21875 13.75,43.25 41.75,55.09375 50.8125,37 54.5,11.9375 z m 0.125,3 19.976451,0.394265 L 43.03125,16.875 22.6875,14.28125 z M 50.971746,15.705477 47.90625,36.03125 42.53125,46 44.84375,19.3125 z M 12.625,16.03125 l 29.15625,3.6875 -2.65625,31 L 16.4375,41.125 z",D9t="m 31.560594,6.5254438 -20.75,12.4687502 0.1875,24.5625 22.28125,11.8125 19.5,-12 0.65625,-0.375 0,-0.75 0.0312,-23.21875 z m 0.0625,3.125 16.65625,9.5000002 -16.125,10.28125 -17.34375,-9.71875 z m 18.96875,11.1875002 0.15625,20.65625 -17.46875,10.59375 0.15625,-20.28125 z m -37.0625,1.25 17.21875,9.625 -0.15625,19.21875 -16.9375,-9 z";function HH(e,t){e=li(e);let n=new T3(t);n._perspectivePath=A9t,n._orthographicPath=D9t;let i=document.createElement("span");i.className="cesium-projectionPicker-wrapper cesium-toolbar-button",e.appendChild(i);let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button",o.setAttribute("data-bind",'css: { "cesium-projectionPicker-buttonPerspective": !_orthographic, "cesium-projectionPicker-buttonOrthographic": _orthographic, "cesium-button-disabled" : sceneMode === _sceneMode.SCENE2D || _flightInProgress, "cesium-projectionPicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),o.innerHTML='<!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --><!-- /ko -->',i.appendChild(o);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",r.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && _orthographic), "cesium-projectionPicker-none" : !_orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible },attr: { title: tooltipPerspective },click: switchToPerspective,cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64 }'),i.appendChild(r);let s=document.createElement("button");s.type="button",s.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",s.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && !_orthographic), "cesium-projectionPicker-none" : _orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible},attr: { title: tooltipOrthographic },click: switchToOrthographic,cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64 }'),i.appendChild(s),Re.applyBindings(n,i),this._viewModel=n,this._container=e,this._wrapper=i,this._closeDropDown=function(a){i.contains(a.target)||(n.dropDownVisible=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(HH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});HH.prototype.isDestroyed=function(){return!1};HH.prototype.destroy=function(){return this._viewModel.destroy(),bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Re.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),fe(this)};var _3=HH;var aor=S(C(),1);var eor=S(C(),1);function JH(e,t){this._scene=e;let n=this,i=function(o,r,s,a){n.sceneMode=s,n.dropDownVisible=!1};this._eventHelper=new vs,this._eventHelper.add(e.morphStart,i),this._duration=g(t,2),this.sceneMode=e.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",Re.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,Re.defineProperty(this,"selectedTooltip",function(){let o=n.sceneMode;return o===ae.SCENE2D?n.tooltip2D:o===ae.SCENE3D?n.tooltip3D:n.tooltipColumbusView}),this._toggleDropDown=ti(function(){n.dropDownVisible=!n.dropDownVisible}),this._morphTo2D=ti(function(){e.morphTo2D(n._duration)}),this._morphTo3D=ti(function(){e.morphTo3D(n._duration)}),this._morphToColumbusView=ti(function(){e.morphToColumbusView(n._duration)}),this._sceneMode=ae}Object.defineProperties(JH.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(e){this._duration=e}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}});JH.prototype.isDestroyed=function(){return!1};JH.prototype.destroy=function(){this._eventHelper.removeAll(),fe(this)};var S3=JH;var U9t="m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z",k9t="m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z",z9t="m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z";function QH(e,t,n){e=li(e);let i=new S3(t,n);i._globePath=U9t,i._flatMapPath=k9t,i._columbusViewPath=z9t;let o=document.createElement("span");o.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",e.appendChild(o);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button",r.setAttribute("data-bind",'css: { "cesium-sceneModePicker-button2D": sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-button3D": sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-buttonColumbusView": sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),r.innerHTML='<!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --><!-- /ko -->',o.appendChild(r);let s=document.createElement("button");s.type="button",s.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",s.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE3D)) || (!dropDownVisible && (sceneMode === _sceneMode.SCENE3D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip3D },click: morphTo3D,cesiumSvgPath: { path: _globePath, width: 64, height: 64 }'),o.appendChild(s);let a=document.createElement("button");a.type="button",a.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",a.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE2D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),o.appendChild(a);let c=document.createElement("button");c.type="button",c.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",c.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.COLUMBUS_VIEW)) || (!dropDownVisible && (sceneMode === _sceneMode.COLUMBUS_VIEW)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-hidden" : !dropDownVisible},attr: { title: tooltipColumbusView },click: morphToColumbusView,cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64 }'),o.appendChild(c),Re.applyBindings(i,o),this._viewModel=i,this._container=e,this._wrapper=o,this._closeDropDown=function(l){o.contains(l.target)||(i.dropDownVisible=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(QH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});QH.prototype.isDestroyed=function(){return!1};QH.prototype.destroy=function(){return this._viewModel.destroy(),bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Re.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),fe(this)};var C3=QH;var Tor=S(C(),1);var mor=S(C(),1);var Y9t=new B,jH="-1000px";function L3(e,t,n){this._scene=e,this._screenPositionX=jH,this._screenPositionY=jH,this._tweens=e.tweens,this._container=g(n,document.body),this._selectionIndicatorElement=t,this._scale=1,this.position=void 0,this.showSelection=!1,Re.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,Re.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&d(this.position)}}),Re.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(i,o){return yo.worldToWindowCoordinates(e,i,o)}}L3.prototype.update=function(){if(this.showSelection&&d(this.position)){let e=this.computeScreenSpacePosition(this.position,Y9t);if(!d(e))this._screenPositionX=jH,this._screenPositionY=jH;else{let t=this._container,n=t.parentNode.clientWidth,i=t.parentNode.clientHeight,o=this._selectionIndicatorElement.clientWidth,r=o*.5;e.x=Math.min(Math.max(e.x,-o),n+o)-r,e.y=Math.min(Math.max(e.y,-o),i+o)-r,this._screenPositionX=`${Math.floor(e.x+.25)}px`,this._screenPositionY=`${Math.floor(e.y+.25)}px`}}};L3.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:zs.EXPONENTIAL_OUT})};L3.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:zs.EXPONENTIAL_OUT})};Object.defineProperties(L3.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var V3=L3;function qH(e,t){e=li(e),this._container=e;let n=document.createElement("div");n.className="cesium-selection-wrapper",n.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),e.appendChild(n),this._element=n;let i="http://www.w3.org/2000/svg",o="M -34 -34 L -34 -11.25 L -30 -15.25 L -30 -30 L -15.25 -30 L -11.25 -34 L -34 -34 z M 11.25 -34 L 15.25 -30 L 30 -30 L 30 -15.25 L 34 -11.25 L 34 -34 L 11.25 -34 z M -34 11.25 L -34 34 L -11.25 34 L -15.25 30 L -30 30 L -30 15.25 L -34 11.25 z M 34 11.25 L 30 15.25 L 30 30 L 15.25 30 L 11.25 34 L 34 34 L 34 11.25 z",r=document.createElementNS(i,"svg:svg");r.setAttribute("width",160),r.setAttribute("height",160),r.setAttribute("viewBox","0 0 160 160");let s=document.createElementNS(i,"g");s.setAttribute("transform","translate(80,80)"),r.appendChild(s);let a=document.createElementNS(i,"path");a.setAttribute("data-bind","attr: { transform: _transform }"),a.setAttribute("d",o),s.appendChild(a),n.appendChild(r);let c=new V3(t,this._element,this._container);this._viewModel=c,Re.applyBindings(this._viewModel,this._element)}Object.defineProperties(qH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});qH.prototype.isDestroyed=function(){return!1};qH.prototype.destroy=function(){let e=this._container;return Re.cleanNode(this._element),e.removeChild(this._element),fe(this)};var Z3=qH;var Mor=S(C(),1);var Cor=S(C(),1);function mL(e,t,n){this._color=e,this._height=t,this._base=g(n,0)}mL.prototype.getHeight=function(){return this._height};mL.prototype.getBase=function(){return this._base};mL.prototype.getStartTime=function(){return this._start};mL.prototype.getStopTime=function(){return this._stop};mL.prototype.setRange=function(e,t){this._start=e,this._stop=t};mL.prototype.render=function(e){let t="";if(this._start&&this._stop&&this._color){let n=ee.secondsDifference(this._start,e.epochJulian),i=Math.round(e.timeBarWidth*e.getAlpha(n)),o=ee.secondsDifference(this._stop,e.epochJulian),r=Math.round(e.timeBarWidth*e.getAlpha(o))-i;i<0&&(r+=i,i=0),i+r>e.timeBarWidth&&(r=e.timeBarWidth-i),r>0&&(t=`<span class="cesium-timeline-highlight" style="left: ${i.toString()}px; width: ${r.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return t};var R3=mL;var Zor=S(C(),1);function aXe(e,t,n,i){this.interval=e,this.height=t,this.color=n||new z(.5,.5,.5,1),this.backgroundColor=i||new z(0,0,0,0)}aXe.prototype.render=function(e,t){let n=this.interval.start,i=this.interval.stop,o=t.startJulian,r=ee.addSeconds(t.startJulian,t.duration,new ee);if(ee.lessThan(n,o)&&ee.greaterThan(i,r))e.fillStyle=this.color.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height);else if(ee.lessThanOrEquals(n,r)&&ee.greaterThanOrEquals(i,o)){let s,a,c;for(s=0;s<t.timeBarWidth;++s){let l=ee.addSeconds(t.startJulian,s/t.timeBarWidth*t.duration,new ee);!d(a)&&ee.greaterThanOrEquals(l,n)?a=s:!d(c)&&ee.greaterThanOrEquals(l,i)&&(c=s)}e.fillStyle=this.backgroundColor.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height),d(a)&&(d(c)||(c=t.timeBarWidth),e.fillStyle=this.color.toCssColorString(),e.fillRect(a,t.y,Math.max(c-a,1),this.height))}};var G3=aXe;var Toe=1e12,Dh={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},Ed={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},l_=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800,1296e3,2592e3,5184e3,7776e3,15552e3,31536e3,63072e3,126144e3,15768e4,31536e4,63072e4,126144e4,15768e5,31536e5,63072e5,126144e5,15768e6,31536e6],B9t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Id(e,t){e=li(e);let n=e.ownerDocument;this.container=e;let i=n.createElement("div");i.className="cesium-timeline-main",e.appendChild(i),this._topDiv=i,this._endJulian=void 0,this._epochJulian=void 0,this._lastXPos=void 0,this._scrubElement=void 0,this._startJulian=void 0,this._timeBarSecondsSpan=void 0,this._clock=t,this._scrubJulian=t.currentTime,this._mainTicSpan=-1,this._mouseMode=Dh.none,this._touchMode=Ed.none,this._touchState={centerX:0,spanX:0},this._mouseX=0,this._timelineDrag=0,this._timelineDragLocation=void 0,this._lastHeight=void 0,this._lastWidth=void 0,this._topDiv.innerHTML='<div class="cesium-timeline-bar"></div><div class="cesium-timeline-trackContainer"><canvas class="cesium-timeline-tracks" width="10" height="1"></canvas></div><div class="cesium-timeline-needle"></div><span class="cesium-timeline-ruler"></span>',this._timeBarEle=this._topDiv.childNodes[0],this._trackContainer=this._topDiv.childNodes[1],this._trackListEle=this._topDiv.childNodes[1].childNodes[0],this._needleEle=this._topDiv.childNodes[2],this._rulerEle=this._topDiv.childNodes[3],this._context=this._trackListEle.getContext("2d"),this._trackList=[],this._highlightRanges=[],this.zoomTo(t.startTime,t.stopTime),this._onMouseDown=O9t(this),this._onMouseUp=K9t(this),this._onMouseMove=H9t(this),this._onMouseWheel=J9t(this),this._onTouchStart=Q9t(this),this._onTouchMove=q9t(this),this._onTouchEnd=j9t(this);let o=this._timeBarEle;n.addEventListener("mouseup",this._onMouseUp,!1),n.addEventListener("mousemove",this._onMouseMove,!1),o.addEventListener("mousedown",this._onMouseDown,!1),o.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),o.addEventListener("mousewheel",this._onMouseWheel,!1),o.addEventListener("touchstart",this._onTouchStart,!1),o.addEventListener("touchmove",this._onTouchMove,!1),o.addEventListener("touchend",this._onTouchEnd,!1),o.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},t.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}Id.prototype.addEventListener=function(e,t,n){this._topDiv.addEventListener(e,t,n)};Id.prototype.removeEventListener=function(e,t,n){this._topDiv.removeEventListener(e,t,n)};Id.prototype.isDestroyed=function(){return!1};Id.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);let e=this.container.ownerDocument;e.removeEventListener("mouseup",this._onMouseUp,!1),e.removeEventListener("mousemove",this._onMouseMove,!1);let t=this._timeBarEle;t.removeEventListener("mousedown",this._onMouseDown,!1),t.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),t.removeEventListener("mousewheel",this._onMouseWheel,!1),t.removeEventListener("touchstart",this._onTouchStart,!1),t.removeEventListener("touchmove",this._onTouchMove,!1),t.removeEventListener("touchend",this._onTouchEnd,!1),t.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),fe(this)};Id.prototype.addHighlightRange=function(e,t,n){let i=new R3(e,t,n);return this._highlightRanges.push(i),this.resize(),i};Id.prototype.addTrack=function(e,t,n,i){let o=new G3(e,t,n,i);return this._trackList.push(o),this._lastHeight=void 0,this.resize(),o};Id.prototype.zoomTo=function(e,t){if(this._startJulian=e,this._endJulian=t,this._timeBarSecondsSpan=ee.secondsDifference(t,e),this._clock&&this._clock.clockRange!==Ds.UNBOUNDED){let i=this._clock.startTime,o=this._clock.stopTime,r=ee.secondsDifference(o,i),s=ee.secondsDifference(i,this._startJulian),a=ee.secondsDifference(o,this._endJulian);this._timeBarSecondsSpan>=r?(this._timeBarSecondsSpan=r,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):s>0?(this._endJulian=ee.addSeconds(this._endJulian,s,new ee),this._startJulian=i,this._timeBarSecondsSpan=ee.secondsDifference(this._endJulian,this._startJulian)):a<0&&(this._startJulian=ee.addSeconds(this._startJulian,a,new ee),this._endJulian=o,this._timeBarSecondsSpan=ee.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();let n=document.createEvent("Event");n.initEvent("setzoom",!0,!0),n.startJulian=this._startJulian,n.endJulian=this._endJulian,n.epochJulian=this._epochJulian,n.totalSpan=this._timeBarSecondsSpan,n.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(n)};Id.prototype.zoomFrom=function(e){let t=ee.secondsDifference(this._scrubJulian,this._startJulian);e>1||t<0||t>this._timeBarSecondsSpan?t=this._timeBarSecondsSpan*.5:t+=t-this._timeBarSecondsSpan*.5;let n=this._timeBarSecondsSpan-t;this.zoomTo(ee.addSeconds(this._startJulian,t-t*e,new ee),ee.addSeconds(this._endJulian,n*e-n,new ee))};function _oe(e){return e<10?`0${e.toString()}`:e.toString()}Id.prototype.makeLabel=function(e){let t=ee.toGregorianDate(e),n=t.millisecond,i=" UTC";if(n>0&&this._timeBarSecondsSpan<3600){for(i=Math.floor(n).toString();i.length<3;)i=`0${i}`;i=`.${i}`}return`${B9t[t.month-1]} ${t.day} ${t.year} ${_oe(t.hour)}:${_oe(t.minute)}:${_oe(t.second)}${i}`};Id.prototype.smallestTicInPixels=7;Id.prototype._makeTics=function(){let e=this._timeBarEle,t=ee.secondsDifference(this._scrubJulian,this._startJulian),n=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan),i=n-8,o,r=this;this._needleEle.style.left=`${n.toString()}px`;let s="",a=.01,c=31536e6,l=1e-10,u=0,m=this._timeBarSecondsSpan;m<a?(m=a,this._timeBarSecondsSpan=a,this._endJulian=ee.addSeconds(this._startJulian,a,new ee)):m>c&&(m=c,this._timeBarSecondsSpan=c,this._endJulian=ee.addSeconds(this._startJulian,c,new ee));let f=this._timeBarEle.clientWidth;f<10&&(f=10);let b=this._startJulian,p=Math.min(m/f*1e-5,.4),x,T=ee.toGregorianDate(b);m>31536e4?x=ee.fromDate(new Date(Date.UTC(Math.floor(T.year/100)*100,0))):m>31536e3?x=ee.fromDate(new Date(Date.UTC(Math.floor(T.year/10)*10,0))):m>86400?x=ee.fromDate(new Date(Date.UTC(T.year,0))):x=ee.fromDate(new Date(Date.UTC(T.year,T.month,T.day)));let _=ee.secondsDifference(this._startJulian,ee.addSeconds(x,p,new ee)),L=_+m;this._epochJulian=x;function V(D){return Math.floor(_/D)*D}function Z(D,O){return Math.ceil(D/O+.5)*O}function G(D){return(D-_)/m}function I(D,O){return D-O*Math.round(D/O)}this._rulerEle.innerHTML=this.makeLabel(ee.addSeconds(this._endJulian,-a,new ee));let w=this._rulerEle.offsetWidth+20;w<30&&(w=180);let W=u;u-=l;let v={startTime:_,startJulian:b,epochJulian:x,duration:m,timeBarWidth:f,getAlpha:G};this._highlightRanges.forEach(function(D){s+=D.render(v)});let N=0,y=0,R=0,E=w/f;E>1&&(E=1),E*=this._timeBarSecondsSpan;let X=-1,F=-1,A=l_.length,Y;for(Y=0;Y<A;++Y){let D=l_[Y];if(++X,N=D,D>E&&D>u)break;F<0&&f*(D/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(F=X)}if(X>0){for(;X>0;)if(--X,Math.abs(I(N,l_[X]))<1e-5){l_[X]>=u&&(y=l_[X]);break}if(F>=0)for(;F<X;){if(Math.abs(I(y,l_[F]))<1e-5&&l_[F]>=u){R=l_[F];break}++F}}u=W,u>l&&R<1e-5&&Math.abs(u-N)>l&&(R=u,u<=N+l&&(y=0));let U=-999999,k;if(f*(R/this._timeBarSecondsSpan)>=3)for(o=V(R);o<=L;o=Z(o,R))s+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(f*G(o)).toString()}px;"></span>`;if(f*(y/this._timeBarSecondsSpan)>=3)for(o=V(y);o<=L;o=Z(o,y))s+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(f*G(o)).toString()}px;"></span>`;if(f*(N/this._timeBarSecondsSpan)>=2){this._mainTicSpan=N,L+=N,o=V(N);let D=ee.computeTaiMinusUtc(x);for(;o<=L;){let O=ee.addSeconds(b,o-_,new ee);if(N>2.1){let ne=ee.computeTaiMinusUtc(O);Math.abs(ne-D)>.1&&(o+=ne-D,O=ee.addSeconds(b,o-_,new ee))}let K=Math.round(f*G(o)),j=this.makeLabel(O);this._rulerEle.innerHTML=j,k=this._rulerEle.offsetWidth,k<10&&(k=w);let J=K-(k/2-1);J>U?(U=J+k+5,s+=`<span class="cesium-timeline-ticMain" style="left: ${K.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${J.toString()}px;">${j}</span>`):s+=`<span class="cesium-timeline-ticSub" style="left: ${K.toString()}px;"></span>`,o=Z(o,N)}}else this._mainTicSpan=-1;s+=`<span class="cesium-timeline-icon16" style="left:${i}px;bottom:0;background-position: 0 0;"></span>`,e.innerHTML=s,this._scrubElement=e.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),v.y=0,this._trackList.forEach(function(D){D.render(r._context,v),v.y+=D.height})};Id.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let e=this._scrubElement;if(d(this._scrubElement)){let t=ee.secondsDifference(this._scrubJulian,this._startJulian),n=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==n&&(this._lastXPos=n,e.style.left=`${n-8}px`,this._needleEle.style.left=`${n}px`)}d(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo(ee.addSeconds(this._startJulian,this._timelineDrag,new ee),ee.addSeconds(this._endJulian,this._timelineDrag,new ee)))};Id.prototype._setTimeBarTime=function(e,t){if(e=Math.round(e),this._scrubJulian=ee.addSeconds(this._startJulian,t,new ee),this._scrubElement){let i=e-8;this._scrubElement.style.left=`${i.toString()}px`,this._needleEle.style.left=`${e.toString()}px`}let n=document.createEvent("Event");n.initEvent("settime",!0,!0),n.clientX=e,n.timeSeconds=t,n.timeJulian=this._scrubJulian,n.clock=this._clock,this._topDiv.dispatchEvent(n)};function O9t(e){return function(t){e._mouseMode!==Dh.touchOnly&&(t.button===0?(e._mouseMode=Dh.scrub,e._scrubElement&&(e._scrubElement.style.backgroundPosition="-16px 0"),e._onMouseMove(t)):(e._mouseX=t.clientX,t.button===2?e._mouseMode=Dh.zoom:e._mouseMode=Dh.slide)),t.preventDefault()}}function K9t(e){return function(t){e._mouseMode=Dh.none,e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0"),e._timelineDrag=0,e._timelineDragLocation=void 0}}function H9t(e){return function(t){let n;if(e._mouseMode===Dh.scrub){t.preventDefault();let i=t.clientX-e._topDiv.getBoundingClientRect().left;i<0?(e._timelineDragLocation=0,e._timelineDrag=-.01*e._timeBarSecondsSpan):i>e._topDiv.clientWidth?(e._timelineDragLocation=e._topDiv.clientWidth,e._timelineDrag=.01*e._timeBarSecondsSpan):(e._timelineDragLocation=void 0,e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))}else if(e._mouseMode===Dh.slide){if(n=e._mouseX-t.clientX,e._mouseX=t.clientX,n!==0){let i=n*e._timeBarSecondsSpan/e._topDiv.clientWidth;e.zoomTo(ee.addSeconds(e._startJulian,i,new ee),ee.addSeconds(e._endJulian,i,new ee))}}else e._mouseMode===Dh.zoom&&(n=e._mouseX-t.clientX,e._mouseX=t.clientX,n!==0&&e.zoomFrom(Math.pow(1.01,n)))}}function J9t(e){return function(t){let n=t.wheelDeltaY||t.wheelDelta||-t.detail;Toe=Math.max(Math.min(Math.abs(n),Toe),1),n/=Toe,e.zoomFrom(Math.pow(1.05,-n))}}function Q9t(e){return function(t){let n=t.touches.length,i,o,r=e._topDiv.getBoundingClientRect().left;t.preventDefault(),e._mouseMode=Dh.touchOnly,n===1?(i=ee.secondsDifference(e._scrubJulian,e._startJulian),o=Math.round(i*e._topDiv.clientWidth/e._timeBarSecondsSpan+r),Math.abs(t.touches[0].clientX-o)<50?(e._touchMode=Ed.scrub,e._scrubElement&&(e._scrubElement.style.backgroundPosition=n===1?"-16px 0":"0 0")):(e._touchMode=Ed.singleTap,e._touchState.centerX=t.touches[0].clientX-r)):n===2?(e._touchMode=Ed.slideZoom,e._touchState.centerX=(t.touches[0].clientX+t.touches[1].clientX)*.5-r,e._touchState.spanX=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):e._touchMode=Ed.ignore}}function j9t(e){return function(t){let n=t.touches.length,i=e._topDiv.getBoundingClientRect().left;e._touchMode===Ed.singleTap?(e._touchMode=Ed.scrub,e._onTouchMove(t)):e._touchMode===Ed.scrub&&e._onTouchMove(t),e._mouseMode=Dh.touchOnly,n!==1?e._touchMode=n>0?Ed.ignore:Ed.none:e._touchMode===Ed.slideZoom&&(e._touchState.centerX=t.touches[0].clientX-i),e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0")}}function q9t(e){return function(t){let n,i,o,r,s,a,c=1,l=e._topDiv.getBoundingClientRect().left;e._touchMode===Ed.singleTap&&(e._touchMode=Ed.slideZoom),e._mouseMode=Dh.touchOnly,e._touchMode===Ed.scrub?(t.preventDefault(),t.changedTouches.length===1&&(i=t.changedTouches[0].clientX-l,i>=0&&i<=e._topDiv.clientWidth&&e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))):e._touchMode===Ed.slideZoom&&(o=t.touches.length,o===2?(r=(t.touches[0].clientX+t.touches[1].clientX)*.5-l,s=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):o===1&&(r=t.touches[0].clientX-l,s=0),d(r)&&(s>0&&e._touchState.spanX>0?(c=e._touchState.spanX/s,a=ee.addSeconds(e._startJulian,(e._touchState.centerX*e._timeBarSecondsSpan-r*e._timeBarSecondsSpan*c)/e._topDiv.clientWidth,new ee)):(n=e._touchState.centerX-r,a=ee.addSeconds(e._startJulian,n*e._timeBarSecondsSpan/e._topDiv.clientWidth,new ee)),e.zoomTo(a,ee.addSeconds(a,e._timeBarSecondsSpan*c,new ee)),e._touchState.centerX=r,e._touchState.spanX=s))}}Id.prototype.resize=function(){let e=this.container.clientWidth,t=this.container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;this._trackContainer.style.height=`${t}px`;let n=1;this._trackList.forEach(function(i){n+=i.height}),this._trackListEle.style.height=`${n.toString()}px`,this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=n,this._makeTics(),this._lastXPos=void 0,this._lastWidth=e,this._lastHeight=t};var E3=Id;var yrr=S(C(),1);var Jor=S(C(),1);var kor=S(C(),1);var mXe=S(uXe(),1);function t5t(e){let t=!1,n=window.screen;return d(n)&&(d(n.lockOrientation)?t=n.lockOrientation(e):d(n.mozLockOrientation)?t=n.mozLockOrientation(e):d(n.msLockOrientation)?t=n.msLockOrientation(e):d(n.orientation&&n.orientation.lock)&&(t=n.orientation.lock(e))),t}function hXe(){let e=window.screen;d(e)&&(d(e.unlockOrientation)?e.unlockOrientation():d(e.mozUnlockOrientation)?e.mozUnlockOrientation():d(e.msUnlockOrientation)?e.msUnlockOrientation():d(e.orientation&&e.orientation.unlock)&&e.orientation.unlock())}function n5t(e,t,n,i){i()||(n()?(t.useWebVR=!1,e._locked&&(hXe(),e._locked=!1),e._noSleep.disable(),fs.exitFullscreen(),n(!1)):(fs.fullscreen||fs.requestFullscreen(e._vrElement),e._noSleep.enable(),e._locked||(e._locked=t5t("landscape")),t.useWebVR=!0,n(!0)))}function $H(e,t){let n=this,i=Re.observable(fs.enabled),o=Re.observable(!1);this.isVRMode=void 0,Re.defineProperty(this,"isVRMode",{get:function(){return o()}}),this.isVREnabled=void 0,Re.defineProperty(this,"isVREnabled",{get:function(){return i()},set:function(s){i(s&&fs.enabled)}}),this.tooltip=void 0,Re.defineProperty(this,"tooltip",function(){return i()?o()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let r=Re.observable(!1);this._isOrthographic=void 0,Re.defineProperty(this,"_isOrthographic",{get:function(){return r()}}),this._eventHelper=new vs,this._eventHelper.add(e.preRender,function(){r(e.camera.frustum instanceof In)}),this._locked=!1,this._noSleep=new mXe.default,this._command=ti(function(){n5t(n,e,o,r)},Re.getObservable(this,"isVREnabled")),this._vrElement=g(li(t),document.body),this._callback=function(){!fs.fullscreen&&o()&&(e.useWebVR=!1,n._locked&&(hXe(),n._locked=!1),n._noSleep.disable(),o(!1))},document.addEventListener(fs.changeEventName,this._callback)}Object.defineProperties($H.prototype,{vrElement:{get:function(){return this._vrElement},set:function(e){this._vrElement=e}},command:{get:function(){return this._command}}});$H.prototype.isDestroyed=function(){return!1};$H.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(fs.changeEventName,this._callback),fe(this)};var I3=$H;var i5t="M 5.3125 6.375 C 4.008126 6.375 2.96875 7.4141499 2.96875 8.71875 L 2.96875 19.5 C 2.96875 20.8043 4.008126 21.875 5.3125 21.875 L 13.65625 21.875 C 13.71832 20.0547 14.845166 18.59375 16.21875 18.59375 C 17.592088 18.59375 18.71881 20.0552 18.78125 21.875 L 27.09375 21.875 C 28.398125 21.875 29.4375 20.8043 29.4375 19.5 L 29.4375 8.71875 C 29.4375 7.4141499 28.398125 6.375 27.09375 6.375 L 5.3125 6.375 z M 9.625 10.4375 C 11.55989 10.4375 13.125 12.03385 13.125 13.96875 C 13.125 15.90365 11.55989 17.46875 9.625 17.46875 C 7.69011 17.46875 6.125 15.90365 6.125 13.96875 C 6.125 12.03385 7.69011 10.4375 9.625 10.4375 z M 22.46875 10.4375 C 24.40364 10.4375 25.96875 12.03385 25.96875 13.96875 C 25.96875 15.90365 24.40364 17.46875 22.46875 17.46875 C 20.53386 17.46875 18.96875 15.90365 18.96875 13.96875 C 18.96875 12.03385 20.53386 10.4375 22.46875 10.4375 z",o5t="M 25.770585,2.4552065 C 15.72282,13.962707 10.699956,19.704407 8.1768352,22.580207 c -1.261561,1.4379 -1.902282,2.1427 -2.21875,2.5 -0.141624,0.1599 -0.208984,0.2355 -0.25,0.2813 l 0.6875,0.75 c 10e-5,-10e-5 0.679191,0.727 0.6875,0.7187 0.01662,-0.016 0.02451,-0.024 0.03125,-0.031 0.01348,-0.014 0.04013,-0.038 0.0625,-0.062 0.04474,-0.05 0.120921,-0.1315 0.28125,-0.3126 0.320657,-0.3619 0.956139,-1.0921 2.2187499,-2.5312 2.5252219,-2.8781 7.5454589,-8.6169 17.5937499,-20.1250005 l -1.5,-1.3125 z m -20.5624998,3.9063 c -1.304375,0 -2.34375,1.0391 -2.34375,2.3437 l 0,10.8125005 c 0,1.3043 1.039375,2.375 2.34375,2.375 l 2.25,0 c 1.9518039,-2.2246 7.4710958,-8.5584 13.5624998,-15.5312005 l -15.8124998,0 z m 21.1249998,0 c -1.855467,2.1245 -2.114296,2.4005 -3.59375,4.0936995 1.767282,0.1815 3.15625,1.685301 3.15625,3.500001 0,1.9349 -1.56511,3.5 -3.5,3.5 -1.658043,0 -3.043426,-1.1411 -3.40625,-2.6875 -1.089617,1.2461 -2.647139,2.9988 -3.46875,3.9375 0.191501,-0.062 0.388502,-0.094 0.59375,-0.094 1.373338,0 2.50006,1.4614 2.5625,3.2812 l 8.3125,0 c 1.304375,0 2.34375,-1.0707 2.34375,-2.375 l 0,-10.8125005 c 0,-1.3046 -1.039375,-2.3437 -2.34375,-2.3437 l -0.65625,0 z M 9.5518351,10.423906 c 1.9348899,0 3.4999999,1.596401 3.4999999,3.531301 0,1.9349 -1.56511,3.5 -3.4999999,3.5 -1.9348899,0 -3.4999999,-1.5651 -3.4999999,-3.5 0,-1.9349 1.56511,-3.531301 3.4999999,-3.531301 z m 4.2187499,10.312601 c -0.206517,0.2356 -0.844218,0.9428 -1.03125,1.1562 l 0.8125,0 c 0.01392,-0.4081 0.107026,-0.7968 0.21875,-1.1562 z";function e4(e,t,n){e=li(e);let i=new I3(t,n);i._exitVRPath=o5t,i._enterVRPath=i5t;let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-vrButton",o.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),e.appendChild(o),Re.applyBindings(i,o),this._container=e,this._viewModel=i,this._element=o}Object.defineProperties(e4.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});e4.prototype.isDestroyed=function(){return!1};e4.prototype.destroy=function(){return this._viewModel.destroy(),Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var X3=e4;var d_=new de;function bXe(e){let t=e.clock;t.currentTime=e.timeJulian,t.shouldAnimate=!1}function r5t(e){let t=e.getPropertyIds(),n="";return Array.isArray(t)&&(t.forEach(function(i){let o=e.getProperty(i);d(o)&&(n+=`<tr><th>${i}</th><td>${o}</td></tr>`)}),n.length>0&&(n=`<table class="cesium-infoBox-defaultTable"><tbody>${n}</tbody></table>`)),n}function s5t(e){let t,n=[],i=e.getPropertyIds();for(t=0;t<i.length;t++){let r=i[t];/^name$/i.test(r)?n[0]=e.getProperty(r):/name/i.test(r)?n[1]=e.getProperty(r):/^title$/i.test(r)?n[2]=e.getProperty(r):/^(id|identifier)$/i.test(r)?n[3]=e.getProperty(r):/element/i.test(r)?n[4]=e.getProperty(r):/(id|identifier)$/i.test(r)&&(n[5]=e.getProperty(r))}let o=n.length;for(t=0;t<o;t++){let r=n[t];if(d(r)&&r!=="")return r}return"Unnamed Feature"}function pXe(e,t){let n=e.scene.pick(t.position);if(d(n)){let i=g(n.id,n.primitive.id);if(i instanceof Jr)return i;if(n instanceof ka)return new Jr({name:s5t(n),description:r5t(n),feature:n})}if(d(e.scene.globe))return l5t(e,t.position)}var a5t=new ee;function yXe(e,t,n){if(d(n)){let i=n.clock;if(d(i)&&(i.getValue(t),d(e))){let o=i.startTime,r=i.stopTime;ee.equals(o,r)&&(r=ee.addSeconds(o,M.EPSILON2,a5t)),e.updateFromClock(),e.zoomTo(o,r)}}}var c5t=new h;function l5t(e,t){let n=e.scene,i=n.camera.getPickRay(t),o=n.imageryLayers.pickImageryLayerFeatures(i,n);if(!d(o))return;let r=new Jr({id:"Loading...",description:"Loading feature information..."});return o.then(function(s){if(e.selectedEntity!==r)return;if(!d(s)||s.length===0){e.selectedEntity=fXe();return}let a=s[0],c=new Jr({id:a.name,description:a.description});if(d(a.position)){let l=e.scene.ellipsoid.cartographicToCartesian(a.position,c5t);c.position=new Hl(l)}e.selectedEntity=c},function(){e.selectedEntity===r&&(e.selectedEntity=fXe())}),r}function fXe(){return new Jr({id:"None",description:"No features found."})}function d5t(e,t){let n=e._geocoder,i=e._homeButton,o=e._sceneModePicker,r=e._projectionPicker,s=e._baseLayerPicker,a=e._animation,c=e._timeline,l=e._fullscreenButton,u=e._infoBox,m=e._selectionIndicator,f=t?"hidden":"visible";if(d(n)&&(n.container.style.visibility=f),d(i)&&(i.container.style.visibility=f),d(o)&&(o.container.style.visibility=f),d(r)&&(r.container.style.visibility=f),d(s)&&(s.container.style.visibility=f),d(a)&&(a.container.style.visibility=f),d(c)&&(c.container.style.visibility=f),d(l)&&l.viewModel.isFullscreenEnabled&&(l.container.style.visibility=f),d(u)&&(u.container.style.visibility=f),d(m)&&(m.container.style.visibility=f),e._container){let b=t||!d(l)?0:l.container.clientWidth;e._vrButton.container.style.right=`${b}px`,e.forceResize()}}function To(e,t){e=li(e),t=g(t,{}),t.selectionIndicator=g(t.selectionIndicator,!1),t.infoBox=g(t.selectionIndicator,!1),t.geocoder=g(t.geocoder,!1),t.homeButton=g(t.homeButton,!1),t.sceneModePicker=g(t.sceneModePicker,!1),t.baseLayerPicker=g(t.baseLayerPicker,!1),t.navigationHelpButton=g(t.navigationHelpButton,!1),t.timeline=g(t.timeline,!1),t.animation=g(t.animation,!1),t.fullscreenButton=g(t.fullscreenButton,!1);let n=(!d(t.globe)||t.globe!==!1)&&(!d(t.baseLayerPicker)||t.baseLayerPicker!==!1),i=this,o=document.createElement("div");o.className="cesium-viewer",e.appendChild(o);let r=document.createElement("div");r.className="cesium-viewer-cesiumWidgetContainer",o.appendChild(r);let s=document.createElement("div");s.className="cesium-viewer-bottom";let a=g(t.scene3DOnly,!1),c,l,u=!1;d(t.clockViewModel)?(l=t.clockViewModel,c=l.clock):(c=new vp,l=new YD(c),u=!0),d(t.shouldAnimate)&&(c.shouldAnimate=t.shouldAnimate);let m=1;if(d(t.logoScale)){let j=parseFloat(t.logoScale);d(j)&&j>=.2&&(m=j)}let f=new ED(r,{baseLayer:n&&d(t.selectedImageryProviderViewModel)||d(t.baseLayer)||d(t.imageryProvider)?!1:void 0,clock:c,skyBox:t.skyBox,skyAtmosphere:t.skyAtmosphere,sceneMode:t.sceneMode,ellipsoid:t.ellipsoid,mapProjection:t.mapProjection,globe:t.globe,orderIndependentTranslucency:t.orderIndependentTranslucency,contextOptions:t.contextOptions,useDefaultRenderLoop:t.useDefaultRenderLoop,targetFrameRate:t.targetFrameRate,showRenderLoopErrors:t.showRenderLoopErrors,useBrowserRecommendedResolution:t.useBrowserRecommendedResolution,creditContainer:d(t.creditContainer)?t.creditContainer:s,creditViewport:t.creditViewport,scene3DOnly:a,logoScale:m,shadows:t.shadows,terrainShadows:t.terrainShadows,mapMode2D:t.mapMode2D,blurActiveElementOnCanvasFocus:t.blurActiveElementOnCanvasFocus,requestRenderMode:t.requestRenderMode,maximumRenderTimeChange:t.maximumRenderTimeChange,depthPlaneEllipsoidOffset:t.depthPlaneEllipsoidOffset,msaaSamples:t.msaaSamples}),b=t.dataSources,p=!1;d(b)||(b=new EN,p=!0);let x=f.scene,T=new d9({scene:x,dataSourceCollection:b}),_=new vs;_.add(c.onTick,To.prototype._onTick,this),_.add(x.morphStart,To.prototype._clearTrackedObject,this);let L;if(!d(t.selectionIndicator)||t.selectionIndicator!==!1){let j=document.createElement("div");j.className="cesium-viewer-selectionIndicatorContainer",o.appendChild(j),L=new Z3(j,x)}let V;if(!d(t.infoBox)||t.infoBox!==!1){let j=document.createElement("div");j.className="cesium-viewer-infoBoxContainer",o.appendChild(j),V=new f3(j);let J=V.viewModel;_.add(J.cameraClicked,To.prototype._onInfoBoxCameraClicked,this),_.add(J.closeClicked,To.prototype._onInfoBoxClockClicked,this)}let Z=document.createElement("div");Z.className="cesium-viewer-toolbar",o.appendChild(Z);let G;if(!d(t.geocoder)||t.geocoder!==!1){let j=document.createElement("div");j.className="cesium-viewer-geocoderContainer",Z.appendChild(j);let J;d(t.geocoder)&&typeof t.geocoder!="boolean"&&(J=Array.isArray(t.geocoder)?t.geocoder:[t.geocoder]),G=new d3({container:j,geocoderServices:J,scene:x}),_.add(G.viewModel.search.beforeExecute,To.prototype._clearObjects,this)}let I;(!d(t.homeButton)||t.homeButton!==!1)&&(I=new m3(Z,x),d(G)&&_.add(I.viewModel.command.afterExecute,function(){let j=G.viewModel;j.searchText="",j.isSearchInProgress&&j.search()}),_.add(I.viewModel.command.beforeExecute,To.prototype._clearTrackedObject,this));let w;!a&&(!d(t.sceneModePicker)||t.sceneModePicker!==!1)&&(w=new C3(Z,x));let W;t.projectionPicker&&(W=new _3(Z,x));let v,N;if(n){let j=g(t.imageryProviderViewModels,qD()),J=g(t.terrainProviderViewModels,$D());v=new jD(Z,{globe:x.globe,imageryProviderViewModels:j,selectedImageryProviderViewModel:t.selectedImageryProviderViewModel,terrainProviderViewModels:J,selectedTerrainProviderViewModel:t.selectedTerrainProviderViewModel}),N=Z.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}d(t.baseLayer)&&t.baseLayer!==!1&&(n&&(v.viewModel.selectedImagery=void 0),x.imageryLayers.removeAll(),x.imageryLayers.add(t.baseLayer)),d(t.terrainProvider)&&(n&&(v.viewModel.selectedTerrain=void 0),x.terrainProvider=t.terrainProvider),d(t.terrain)&&(n&&(x.globe.depthTestAgainstTerrain=!0),x.setTerrain(t.terrain));let y;if(!d(t.navigationHelpButton)||t.navigationHelpButton!==!1){let j=!0;try{if(d(window.localStorage)){let J=window.localStorage.getItem("cesium-hasSeenNavHelp");d(J)&&J?j=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}y=new y3({container:Z,instructionsInitiallyVisible:g(t.navigationInstructionsInitiallyVisible,j)})}let R;if(!d(t.animation)||t.animation!==!1){let j=document.createElement("div");j.className="cesium-viewer-animationContainer",o.appendChild(j),R=new HD(j,new JD(l))}let E;if(!d(t.timeline)||t.timeline!==!1){let j=document.createElement("div");j.className="cesium-viewer-timelineContainer",o.appendChild(j),E=new E3(j,c),E.addEventListener("settime",bXe,!1),E.zoomTo(c.startTime,c.stopTime)}let X,F,A;(!d(t.fullscreenButton)||t.fullscreenButton!==!1)&&(A=document.createElement("div"),A.className="cesium-viewer-fullscreenContainer",o.appendChild(A),X=new c3(A,t.fullscreenElement),F=Zc(X.viewModel,"isFullscreenEnabled",function(j){A.style.display=j?"block":"none",d(E)&&(E.container.style.right=`${A.clientWidth}px`,E.resize())}));let Y,U,k;if(t.vrButton){let j=document.createElement("div");j.className="cesium-viewer-vrContainer",o.appendChild(j),Y=new X3(j,x,t.fullScreenElement),U=Zc(Y.viewModel,"isVREnabled",function(J){j.style.display=J?"block":"none",d(X)&&(j.style.right=`${A.clientWidth}px`),d(E)&&(E.container.style.right=`${j.clientWidth}px`,E.resize())}),k=Zc(Y.viewModel,"isVRMode",function(J){d5t(i,J)})}this._baseLayerPickerDropDown=N,this._fullscreenSubscription=F,this._vrSubscription=U,this._vrModeSubscription=k,this._dataSourceChangedListeners={},this._automaticallyTrackDataSourceClocks=g(t.automaticallyTrackDataSourceClocks,!0),this._container=e,this._bottomContainer=s,this._element=o,this._cesiumWidget=f,this._selectionIndicator=L,this._infoBox=V,this._dataSourceCollection=b,this._destroyDataSourceCollection=p,this._dataSourceDisplay=T,this._clockViewModel=l,this._destroyClockViewModel=u,this._toolbar=Z,this._homeButton=I,this._sceneModePicker=w,this._projectionPicker=W,this._baseLayerPicker=v,this._navigationHelpButton=y,this._animation=R,this._timeline=E,this._fullscreenButton=X,this._vrButton=Y,this._geocoder=G,this._eventHelper=_,this._lastWidth=0,this._lastHeight=0,this._allowDataSourcesToSuspendAnimation=!0,this._entityView=void 0,this._enableInfoOrSelection=d(V)||d(L),this._clockTrackedDataSource=void 0,this._trackedEntity=void 0,this._needTrackedEntityUpdate=!1,this._selectedEntity=void 0,this._zoomIsFlight=!1,this._zoomTarget=void 0,this._zoomPromise=void 0,this._zoomOptions=void 0,this._selectedEntityChanged=new Se,this._trackedEntityChanged=new Se,Re.track(this,["_trackedEntity","_selectedEntity","_clockTrackedDataSource"]),_.add(b.dataSourceAdded,To.prototype._onDataSourceAdded,this),_.add(b.dataSourceRemoved,To.prototype._onDataSourceRemoved,this),_.add(x.postUpdate,To.prototype.resize,this),_.add(x.postRender,To.prototype._postRender,this);let D=b.length;for(let j=0;j<D;j++)this._dataSourceAdded(b,b.get(j));this._dataSourceAdded(void 0,T.defaultDataSource),_.add(b.dataSourceAdded,To.prototype._dataSourceAdded,this),_.add(b.dataSourceRemoved,To.prototype._dataSourceRemoved,this);function O(j){let J=pXe(i,j);d(J)?Q.getValueOrUndefined(J.position,i.clock.currentTime)?i.trackedEntity=J:i.zoomTo(J):d(i.trackedEntity)&&(i.trackedEntity=void 0)}function K(j){i.selectedEntity=pXe(i,j)}f.screenSpaceEventHandler.setInputAction(K,qn.LEFT_CLICK),f.screenSpaceEventHandler.setInputAction(O,qn.LEFT_DOUBLE_CLICK)}Object.defineProperties(To.prototype,{container:{get:function(){return this._container}},creditDisplay:{get:function(){return this._cesiumWidget.creditDisplay}},bottomContainer:{get:function(){return this._bottomContainer}},cesiumWidget:{get:function(){return this._cesiumWidget}},selectionIndicator:{get:function(){return this._selectionIndicator}},infoBox:{get:function(){return this._infoBox}},geocoder:{get:function(){return this._geocoder}},homeButton:{get:function(){return this._homeButton}},sceneModePicker:{get:function(){return this._sceneModePicker}},projectionPicker:{get:function(){return this._projectionPicker}},baseLayerPicker:{get:function(){return this._baseLayerPicker}},navigationHelpButton:{get:function(){return this._navigationHelpButton}},animation:{get:function(){return this._animation}},timeline:{get:function(){return this._timeline}},fullscreenButton:{get:function(){return this._fullscreenButton}},vrButton:{get:function(){return this._vrButton}},dataSourceDisplay:{get:function(){return this._dataSourceDisplay}},entities:{get:function(){return this._dataSourceDisplay.defaultDataSource.entities}},dataSources:{get:function(){return this._dataSourceCollection}},canvas:{get:function(){return this._cesiumWidget.canvas}},scene:{get:function(){return this._cesiumWidget.scene}},shadows:{get:function(){return this.scene.shadowMap.enabled},set:function(e){this.scene.shadowMap.enabled=e}},terrainShadows:{get:function(){return this.scene.globe.shadows},set:function(e){this.scene.globe.shadows=e}},shadowMap:{get:function(){return this.scene.shadowMap}},imageryLayers:{get:function(){return this.scene.imageryLayers}},terrainProvider:{get:function(){return this.scene.terrainProvider},set:function(e){this.scene.terrainProvider=e}},camera:{get:function(){return this.scene.camera}},ellipsoid:{get:function(){return this._scene.ellipsoid}},postProcessStages:{get:function(){return this.scene.postProcessStages}},clock:{get:function(){return this._clockViewModel.clock}},clockViewModel:{get:function(){return this._clockViewModel}},screenSpaceEventHandler:{get:function(){return this._cesiumWidget.screenSpaceEventHandler}},targetFrameRate:{get:function(){return this._cesiumWidget.targetFrameRate},set:function(e){this._cesiumWidget.targetFrameRate=e}},useDefaultRenderLoop:{get:function(){return this._cesiumWidget.useDefaultRenderLoop},set:function(e){this._cesiumWidget.useDefaultRenderLoop=e}},resolutionScale:{get:function(){return this._cesiumWidget.resolutionScale},set:function(e){this._cesiumWidget.resolutionScale=e}},useBrowserRecommendedResolution:{get:function(){return this._cesiumWidget.useBrowserRecommendedResolution},set:function(e){this._cesiumWidget.useBrowserRecommendedResolution=e}},allowDataSourcesToSuspendAnimation:{get:function(){return this._allowDataSourcesToSuspendAnimation},set:function(e){this._allowDataSourcesToSuspendAnimation=e}},trackedEntity:{get:function(){return this._trackedEntity},set:function(e){if(this._trackedEntity!==e){this._trackedEntity=e,Voe(this);let t=this.scene,n=t.mode;!d(e)||!d(e.position)?(this._needTrackedEntityUpdate=!1,(n===ae.COLUMBUS_VIEW||n===ae.SCENE2D)&&(t.screenSpaceCameraController.enableTranslate=!0),(n===ae.COLUMBUS_VIEW||n===ae.SCENE3D)&&(t.screenSpaceCameraController.enableTilt=!0),this._entityView=void 0,this.camera.lookAtTransform(P.IDENTITY)):this._needTrackedEntityUpdate=!0,this._trackedEntityChanged.raiseEvent(e),this.scene.requestRender()}}},selectedEntity:{get:function(){return this._selectedEntity},set:function(e){if(this._selectedEntity!==e){this._selectedEntity=e;let t=d(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;d(e)?d(t)&&t.animateAppear():d(t)&&t.animateDepart(),this._selectedEntityChanged.raiseEvent(e)}}},selectedEntityChanged:{get:function(){return this._selectedEntityChanged}},trackedEntityChanged:{get:function(){return this._trackedEntityChanged}},clockTrackedDataSource:{get:function(){return this._clockTrackedDataSource},set:function(e){this._clockTrackedDataSource!==e&&(this._clockTrackedDataSource=e,yXe(this._timeline,this.clock,e))}}});To.prototype.getCurrentTilesLevels=function(){this.scene._globe.depthTestAgainstTerrain=!0;let e=this.scene._globe._surface._tilesToRender,t=this.camera.positionWC,n=this.camera.directionWC,i=new Ray(t,n),o=this.scene.pickFromRay(i,[]);if(o===void 0||o.position===void 0)return;let r=o.position,s=h.distance(r,t),a={};a.centerTileLevel=0,a.maxTileLevel=0,a.minTileLevel=Number.POSITIVE_INFINITY;let c=Number.POSITIVE_INFINITY;for(let l=0,u=e.length;l<u;l++){e[l].level>a.maxTileLevel&&(a.maxTileLevel=e[l].level),e[l].level<a.minTileLevel&&(a.minTileLevel=e[l].level);let m=Math.abs(e[l]._distance-s)<c;m<c&&(c=m,a.centerTileLevel=e[l].level)}return a};To.prototype.extend=function(e,t){e(this,t)};To.prototype.resize=function(){let e=this._cesiumWidget,t=this._container,n=t.clientWidth,i=t.clientHeight,o=d(this._animation),r=d(this._timeline);if(e.resize(),n===this._lastWidth&&i===this._lastHeight)return;let s=i-125,a=this._baseLayerPickerDropDown;if(d(a)&&(a.style.maxHeight=`${s}px`),d(this._geocoder)){let p=this._geocoder.searchSuggestionsContainer;p.style.maxHeight=`${s}px`}d(this._infoBox)&&(this._infoBox.viewModel.maxHeight=s);let c=this._timeline,l,u=0,m=5,f=3,b=0;if(o&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let p=this._lastWidth;l=this._animation.container,n>900?(u=169,p<=900&&(l.style.width="169px",l.style.height="112px",this._animation.resize())):n>=600?(u=136,(p<600||p>900)&&(l.style.width="136px",l.style.height="90px",this._animation.resize())):(u=106,(p>600||p===0)&&(l.style.width="106px",l.style.height="70px",this._animation.resize())),m=u+5}if(r&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let p=this._fullscreenButton,x=this._vrButton,T=c.container,_=T.style;f=T.clientHeight+3,_.left=`${u}px`;let L=0;d(p)&&(L+=p.container.clientWidth),d(x)&&(L+=x.container.clientWidth),_.right=`${L}px`,c.resize()}!r&&d(this._fullscreenButton)&&(b=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${m}px`,this._bottomContainer.style.bottom=`${f}px`,this._bottomContainer.style.right=`${b}px`,this._lastWidth=n,this._lastHeight=i};To.prototype.forceResize=function(){this._lastWidth=0,this.resize()};To.prototype.render=function(){this._cesiumWidget.render()};To.prototype.isDestroyed=function(){return!1};To.prototype.destroy=function(){let e;d(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(qn.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(qn.LEFT_DOUBLE_CLICK));let t=this.dataSources,n=t.length;for(e=0;e<n;e++)this._dataSourceRemoved(t,t.get(e));return this._dataSourceRemoved(void 0,this._dataSourceDisplay.defaultDataSource),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),d(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),d(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),d(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),d(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),d(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),d(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),d(this._timeline)&&(this._timeline.removeEventListener("settime",bXe,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),d(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),d(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),d(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),d(this._selectionIndicator)&&(this._element.removeChild(this._selectionIndicator.container),this._selectionIndicator=this._selectionIndicator.destroy()),this._destroyClockViewModel&&(this._clockViewModel=this._clockViewModel.destroy()),this._dataSourceDisplay=this._dataSourceDisplay.destroy(),this._cesiumWidget=this._cesiumWidget.destroy(),this._destroyDataSourceCollection&&(this._dataSourceCollection=this._dataSourceCollection.destroy()),fe(this)};To.prototype._dataSourceAdded=function(e,t){t.entities.collectionChanged.addEventListener(To.prototype._onEntityCollectionChanged,this)};To.prototype._dataSourceRemoved=function(e,t){let n=t.entities;n.collectionChanged.removeEventListener(To.prototype._onEntityCollectionChanged,this),d(this.trackedEntity)&&n.getById(this.trackedEntity.id)===this.trackedEntity&&(this.trackedEntity=void 0),d(this.selectedEntity)&&n.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};To.prototype._onTick=function(e){let t=e.currentTime,n=this._dataSourceDisplay.update(t);this._allowDataSourcesToSuspendAnimation&&(this._clockViewModel.canAnimate=n);let i=this._entityView;if(d(i)){let u=this._trackedEntity;this._dataSourceDisplay.getBoundingSphere(u,!0,d_)===Wt.DONE&&i.update(t,d_)}let o,r=!1,s=this.selectedEntity,a=d(s)&&this._enableInfoOrSelection;a&&s.isShowing&&s.isAvailable(t)&&(this._dataSourceDisplay.getBoundingSphere(s,!0,d_)!==Wt.FAILED?o=d_.center:d(s.position)&&(o=s.position.getValue(t,o)),r=d(o));let c=d(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;d(c)&&(c.position=h.clone(o,c.position),c.showSelection=a&&r,c.update());let l=d(this._infoBox)?this._infoBox.viewModel:void 0;d(l)&&(l.showInfo=a,l.enableCamera=r,l.isCameraTracking=this.trackedEntity===this.selectedEntity,a?(l.titleText=g(s.name,s.id),l.description=Q.getValueOrDefault(s.description,t,"")):(l.titleText="",l.description=""))};To.prototype._onEntityCollectionChanged=function(e,t,n){let i=n.length;for(let o=0;o<i;o++){let r=n[o];this.trackedEntity===r&&(this.trackedEntity=void 0),this.selectedEntity===r&&(this.selectedEntity=void 0)}};To.prototype._onInfoBoxCameraClicked=function(e){if(e.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let n=this.selectedEntity.position;d(n)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};To.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};To.prototype._onInfoBoxClockClicked=function(e){this.selectedEntity=void 0};To.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};To.prototype._onDataSourceChanged=function(e){this.clockTrackedDataSource===e&&yXe(this.timeline,this.clock,e)};To.prototype._onDataSourceAdded=function(e,t){this._automaticallyTrackDataSourceClocks&&(this.clockTrackedDataSource=t);let n=t.entities.id,i=this._eventHelper.add(t.changedEvent,To.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[n]=i};To.prototype._onDataSourceRemoved=function(e,t){let n=this.clockTrackedDataSource===t,i=t.entities.id;if(this._dataSourceChangedListeners[i](),this._dataSourceChangedListeners[i]=void 0,n){let o=e.length;this._automaticallyTrackDataSourceClocks&&o>0?this.clockTrackedDataSource=e.get(o-1):this.clockTrackedDataSource=void 0}};To.prototype.zoomTo=function(e,t){return gXe(this,e,{offset:t},!1)};To.prototype.flyTo=function(e,t){return gXe(this,e,t,!0)};function gXe(e,t,n,i){Voe(e);let o=new Promise(r=>{e._completeZoom=function(s){r(s)}});return e._zoomPromise=o,e._zoomIsFlight=i,e._zoomOptions=n,Promise.resolve(t).then(function(r){if(e._zoomPromise===o){if(r instanceof Ys){let s;d(r.imageryProvider)?s=Promise.resolve(r.getImageryRectangle()):s=new Promise(a=>{let c=r.readyEvent.addEventListener(()=>{c(),a(r.getImageryRectangle())})}),s.then(function(a){return CC(a,e.scene)}).then(function(a){e._zoomPromise===o&&(e._zoomTarget=a)});return}if(r instanceof $s||r instanceof FG||r instanceof i_||r instanceof Cl){e._zoomTarget=r;return}if(r.isLoading&&d(r.loadingEvent)){let s=r.loadingEvent.addEventListener(function(){s(),e._zoomPromise===o&&(e._zoomTarget=r.entities.values.slice(0))});return}if(Array.isArray(r)){e._zoomTarget=r.slice(0);return}r=g(r.values,r),d(r.entities)&&(r=r.entities.values),Array.isArray(r)?e._zoomTarget=r.slice(0):e._zoomTarget=[r]}}),e.scene.requestRender(),o}function M3(e){e._zoomPromise=void 0,e._zoomTarget=void 0,e._zoomOptions=void 0}function Voe(e){let t=e._zoomPromise;d(t)&&(M3(e),e._completeZoom(!1))}To.prototype._postRender=function(){u5t(this),m5t(this)};function u5t(e){let t=e._zoomTarget;if(!d(t)||e.scene.mode===ae.MORPHING)return;let n=e.scene,i=n.camera,o=g(e._zoomOptions,{}),r;function s(u){d(o.offset)||(o.offset=new Il(0,-.5,u.radius)),r={offset:o.offset,duration:o.duration,maximumHeight:o.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)}},e._zoomIsFlight?i.flyToBoundingSphere(t.boundingSphere,r):(i.viewBoundingSphere(u,o.offset),i.lookAtTransform(P.IDENTITY),e._completeZoom(!0)),M3(e)}if(t instanceof FG){if(d(t.boundingSphere)){s(t.boundingSphere);return}let u=t.frameChanged.addEventListener(function(m){s(m.boundingSphere),u()});return}if(t instanceof $s||t instanceof i_||t instanceof Cl){s(t.boundingSphere);return}if(t instanceof me){r={destination:n.ellipsoid.cartographicToCartesian(t),duration:o.duration,maximumHeight:o.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)}},e._zoomIsFlight?i.flyTo(r):(i.setView(r),e._completeZoom(!0)),M3(e);return}let a=t,c=[];for(let u=0,m=a.length;u<m;u++){let f=e._dataSourceDisplay.getBoundingSphere(a[u],!1,d_);if(f===Wt.PENDING)return;f!==Wt.FAILED&&c.push(de.clone(d_))}if(c.length===0){Voe(e);return}e.trackedEntity=void 0;let l=de.fromBoundingSpheres(c);e._zoomIsFlight?(M3(e),i.flyToBoundingSphere(l,{duration:o.duration,maximumHeight:o.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)},offset:o.offset})):(i.viewBoundingSphere(l,o.offset),i.lookAtTransform(P.IDENTITY),M3(e),e._completeZoom(!0))}function m5t(e){if(!e._needTrackedEntityUpdate)return;let t=e._trackedEntity,n=e.clock.currentTime,i=Q.getValueOrUndefined(t.position,n);if(!d(i))return;let o=e.scene,r=e._dataSourceDisplay.getBoundingSphere(t,!1,d_);if(r===Wt.PENDING)return;let s=o.mode;(s===ae.COLUMBUS_VIEW||s===ae.SCENE2D)&&(o.screenSpaceCameraController.enableTranslate=!1),(s===ae.COLUMBUS_VIEW||s===ae.SCENE3D)&&(o.screenSpaceCameraController.enableTilt=!1);let a=r!==Wt.FAILED?d_:void 0;e._entityView=new m9(t,o,o.ellipsoid),e._entityView.update(n,a),e._needTrackedEntityUpdate=!1}var Zoe=To;var Trr=S(C(),1);function h5t(e){let t=document.createElement("div");t.className="cesium-viewer-cesium3DTilesInspectorContainer",e.container.appendChild(t);let n=new i3(t,e.scene);Object.defineProperties(e,{cesium3DTilesInspector:{get:function(){return n}}})}var Roe=h5t;var Crr=S(C(),1);function p5t(e){let t=document.createElement("div");t.className="cesium-viewer-cesiumInspectorContainer",e.container.appendChild(t);let n=new s3(t,e.scene);Object.defineProperties(e,{cesiumInspector:{get:function(){return n}}})}var Goe=p5t;var Rrr=S(C(),1);function f5t(e,t){t=g(t,g.EMPTY_OBJECT);let n=!0,i=g(t.flyToOnDrop,!0),o=new Se,r=g(t.clearOnDrop,!0),s=g(t.dropTarget,e.container),a=g(t.clampToGround,!0),c=t.proxy;s=li(s),Object.defineProperties(e,{dropTarget:{get:function(){return s},set:function(u){xXe(s,l),s=u,Eoe(s,l)}},dropEnabled:{get:function(){return n},set:function(u){u!==n&&(u?Eoe(s,l):xXe(s,l),n=u)}},dropError:{get:function(){return o}},clearOnDrop:{get:function(){return r},set:function(u){r=u}},flyToOnDrop:{get:function(){return i},set:function(u){i=u}},proxy:{get:function(){return c},set:function(u){c=u}},clampToGround:{get:function(){return a},set:function(u){a=u}}});function l(u){hL(u),r&&(e.entities.removeAll(),e.dataSources.removeAll());let m=u.dataTransfer.files,f=m.length;for(let b=0;b<f;b++){let p=m[b],x=new FileReader;x.onload=b5t(e,p,c,a),x.onerror=y5t(e,p),x.readAsText(p)}}Eoe(s,l),e.destroy=h5(e,e.destroy,function(){e.dropEnabled=!1}),e._handleDrop=l}function hL(e){e.stopPropagation(),e.preventDefault()}function xXe(e,t){let n=e;d(n)&&(n.removeEventListener("drop",t,!1),n.removeEventListener("dragenter",hL,!1),n.removeEventListener("dragover",hL,!1),n.removeEventListener("dragexit",hL,!1))}function Eoe(e,t){e.addEventListener("drop",t,!1),e.addEventListener("dragenter",hL,!1),e.addEventListener("dragover",hL,!1),e.addEventListener("dragexit",hL,!1)}function b5t(e,t,n,i){let o=e.scene;return function(r){let s=t.name;try{let a;if(/\.czml$/i.test(s))a=GN.load(JSON.parse(r.target.result),{sourceUri:s});else if(/\.geojson$/i.test(s)||/\.json$/i.test(s)||/\.topojson$/i.test(s))a=M9.load(JSON.parse(r.target.result),{sourceUri:s,clampToGround:i});else if(/\.(kml|kmz)$/i.test(s))a=B9.load(t,{sourceUri:s,proxy:n,camera:o.camera,canvas:o.canvas,clampToGround:i,screenOverlayContainer:e.container});else if(/\.gpx$/i.test(s))a=v9.load(t,{sourceUri:s,proxy:n});else{e.dropError.raiseEvent(e,s,`Unrecognized file: ${s}`);return}d(a)&&e.dataSources.add(a).then(function(c){e.flyToOnDrop&&e.flyTo(c)}).catch(function(c){e.dropError.raiseEvent(e,s,c)})}catch(a){e.dropError.raiseEvent(e,s,a)}}}function y5t(e,t){return function(n){e.dropError.raiseEvent(e,t.name,n.target.error)}}var Ioe=f5t;var wrr=S(C(),1);function g5t(e,t){t=g(t,g.EMPTY_OBJECT);let n=new x3({scene:e.scene,container:e.bottomContainer,lowFrameRateMessage:t.lowFrameRateMessage});Object.defineProperties(e,{performanceWatchdog:{get:function(){return n}}})}var Xoe=g5t;var Hrr=S(C(),1);var Brr=S(C(),1);var Frr=S(C(),1);function TXe(e){let t=e.split(`
|
|
19086
|
+
</div>`,n.appendChild(i);let o=new h3(t);Re.track(o),Re.applyBindings(o,n),d(o.defaultLayer)&&(o.currentLayer=o.defaultLayer)}var yoe=v9t;var lir=S(C(),1);var nir=S(C(),1);var N9t="M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4853444 22.104033 11.423165 24.0625 13.84375 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 8.975298 28.305952 7.03125 25.875 7.03125 L 13.84375 7.03125 z",F9t="M 27.34375 1.65625 L 5.28125 27.9375 L 8.09375 30.3125 L 30.15625 4.03125 L 27.34375 1.65625 z M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4724893 20.232036 9.5676108 20.7379 9.75 21.21875 L 21.65625 7.03125 L 13.84375 7.03125 z M 28.21875 7.71875 L 14.53125 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 9.8371439 29.456025 8.4902779 28.21875 7.71875 z";function goe(){this._cameraClicked=new Se,this._closeClicked=new Se,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",Re.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='<div class="cesium-infoBox-loadingContainer"><span class="cesium-infoBox-loading"></span></div>',this.cameraIconPath=void 0,Re.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?F9t:N9t}}),Re.defineProperty(this,"_bodyless",{get:function(){return!d(this.description)||this.description.length===0}})}goe.prototype.maxHeightOffset=function(e){return`${this.maxHeight-e}px`};Object.defineProperties(goe.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var p3=goe;function YH(e){e=li(e);let t=document.createElement("div");t.className="cesium-infoBox",t.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),e.appendChild(t);let n=document.createElement("div");n.className="cesium-infoBox-title",n.setAttribute("data-bind","text: titleText"),t.appendChild(n);let i=document.createElement("button");i.type="button",i.className="cesium-button cesium-infoBox-camera",i.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),t.appendChild(i);let o=document.createElement("button");o.type="button",o.className="cesium-infoBox-close",o.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),o.innerHTML="×",t.appendChild(o);let r=document.createElement("iframe");r.className="cesium-infoBox-iframe",r.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),r.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),r.setAttribute("allowfullscreen",!0),t.appendChild(r);let s=new p3;Re.applyBindings(s,t),this._container=e,this._element=t,this._frame=r,this._viewModel=s,this._descriptionSubscription=void 0;let a=this;r.addEventListener("load",function(){let c=r.contentDocument,l=c.createElement("link");l.href=Sn("Widgets/InfoBox/InfoBoxDescription.css"),l.rel="stylesheet",l.type="text/css";let u=c.createElement("div");u.className="cesium-infoBox-description",c.head.appendChild(l),c.body.appendChild(u),a._descriptionSubscription=Zc(s,"description",function(m){r.style.height="5px",u.innerHTML=m;let f=null,b=u.firstElementChild;if(b!==null&&u.childNodes.length===1){let x=window.getComputedStyle(b);if(x!==null){let T=x["background-color"],_=z.fromCssColorString(T);d(_)&&_.alpha!==0&&(f=x["background-color"])}}t.style["background-color"]=f;let p=u.getBoundingClientRect().height;r.style.height=`${p}px`})}),r.setAttribute("src","about:blank")}Object.defineProperties(YH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});YH.prototype.isDestroyed=function(){return!1};YH.prototype.destroy=function(){let e=this._container;return Re.cleanNode(this._element),e.removeChild(this._element),d(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),fe(this)};var f3=YH;var Tir=S(C(),1);var hir=S(C(),1);function sXe(){this.showInstructions=!1;let e=this;this._command=ti(function(){e.showInstructions=!e.showInstructions}),this._showClick=ti(function(){e._touch=!1}),this._showTouch=ti(function(){e._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",Re.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(sXe.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var b3=sXe;function BH(e){let t=li(e.container),n=new b3,i=g(e.instructionsInitiallyVisible,!1);n.showInstructions=i,n._svgPath="M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466z M17.328,24.371h-2.707v-2.596h2.707V24.371zM17.328,19.003v0.858h-2.707v-1.057c0-3.19,3.63-3.696,3.63-5.963c0-1.034-0.924-1.826-2.134-1.826c-1.254,0-2.354,0.924-2.354,0.924l-1.541-1.915c0,0,1.519-1.584,4.137-1.584c2.487,0,4.796,1.54,4.796,4.136C21.156,16.208,17.328,16.627,17.328,19.003z";let o=document.createElement("span");o.className="cesium-navigationHelpButton-wrapper",t.appendChild(o);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",r.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),o.appendChild(r);let s=document.createElement("div");s.className="cesium-navigation-help",s.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),o.appendChild(s);let a=document.createElement("button");a.type="button",a.className="cesium-navigation-button cesium-navigation-button-left",a.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let c=document.createElement("img");c.src=Sn("Widgets/Images/NavigationHelp/Mouse.svg"),c.className="cesium-navigation-button-icon",c.style.width="25px",c.style.height="25px",a.appendChild(c),a.appendChild(document.createTextNode("Mouse"));let l=document.createElement("button");l.type="button",l.className="cesium-navigation-button cesium-navigation-button-right",l.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let u=document.createElement("img");u.src=Sn("Widgets/Images/NavigationHelp/Touch.svg"),u.className="cesium-navigation-button-icon",u.style.width="25px",u.style.height="25px",l.appendChild(u),l.appendChild(document.createTextNode("Touch")),s.appendChild(a),s.appendChild(l);let m=document.createElement("div");m.className="cesium-click-navigation-help cesium-navigation-help-instructions",m.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),m.innerHTML=` <table> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/MouseLeft.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">Left click + drag</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/MouseRight.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Right click + drag, or</div> <div class="cesium-navigation-help-details">Mouse wheel scroll</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/MouseMiddle.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Rotate view</div> <div class="cesium-navigation-help-details">Middle click + drag, or</div> <div class="cesium-navigation-help-details">CTRL + Left/Right click + drag</div> </td> </tr> </table>`,s.appendChild(m);let f=document.createElement("div");f.className="cesium-touch-navigation-help cesium-navigation-help-instructions",f.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),f.innerHTML=` <table> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchDrag.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">One finger drag</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchZoom.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Two finger pinch</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchTilt.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Tilt view</div> <div class="cesium-navigation-help-details">Two finger drag, same direction</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchRotate.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-tilt">Rotate view</div> <div class="cesium-navigation-help-details">Two finger drag, opposite direction</div> </td> </tr> </table>`,s.appendChild(f),Re.applyBindings(n,o),this._container=t,this._viewModel=n,this._wrapper=o,this._closeInstructions=function(b){o.contains(b.target)||(n.showInstructions=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(BH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});BH.prototype.isDestroyed=function(){return!1};BH.prototype.destroy=function(){return bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),Re.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),fe(this)};var y3=BH;var Wir=S(C(),1);var Rir=S(C(),1);function xoe(e){this._scene=e.scene,this.lowFrameRateMessage=g(e.lowFrameRateMessage,"This application appears to be performing poorly on your system. Please try using a different web browser or updating your video drivers."),this.lowFrameRateMessageDismissed=!1,this.showingLowFrameRateMessage=!1,Re.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let t=this;this._dismissMessage=ti(function(){t.showingLowFrameRateMessage=!1,t.lowFrameRateMessageDismissed=!0});let n=EF.fromScene(e.scene);this._unsubscribeLowFrameRate=n.lowFrameRate.addEventListener(function(){t.lowFrameRateMessageDismissed||(t.showingLowFrameRateMessage=!0)}),this._unsubscribeNominalFrameRate=n.nominalFrameRate.addEventListener(function(){t.showingLowFrameRateMessage=!1})}Object.defineProperties(xoe.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});xoe.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),fe(this)};var g3=xoe;function OH(e){let t=li(e.container),n=new g3(e),i=document.createElement("div");i.className="cesium-performance-watchdog-message-area",i.setAttribute("data-bind","visible: showingLowFrameRateMessage");let o=document.createElement("button");o.setAttribute("type","button"),o.className="cesium-performance-watchdog-message-dismiss",o.innerHTML="×",o.setAttribute("data-bind","click: dismissMessage"),i.appendChild(o);let r=document.createElement("div");r.className="cesium-performance-watchdog-message",r.setAttribute("data-bind","html: lowFrameRateMessage"),i.appendChild(r),t.appendChild(i),Re.applyBindings(n,i),this._container=t,this._viewModel=n,this._element=i}Object.defineProperties(OH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});OH.prototype.isDestroyed=function(){return!1};OH.prototype.destroy=function(){return this._viewModel.destroy(),Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var x3=OH;var Kir=S(C(),1);var Dir=S(C(),1);function KH(e){this._scene=e,this._orthographic=e.camera.frustum instanceof In,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=e.mode,Re.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let t=this;Re.defineProperty(this,"selectedTooltip",function(){return t._orthographic?t.tooltipOrthographic:t.tooltipPerspective}),this._toggleDropDown=ti(function(){t.sceneMode===ae.SCENE2D||t._flightInProgress||(t.dropDownVisible=!t.dropDownVisible)}),this._eventHelper=new vs,this._eventHelper.add(e.morphComplete,function(n,i,o,r){t.sceneMode=o,t._orthographic=o===ae.SCENE2D||t._scene.camera.frustum instanceof In}),this._eventHelper.add(e.preRender,function(){t._flightInProgress=d(e.camera._currentFlight)}),this._switchToPerspective=ti(function(){t.sceneMode!==ae.SCENE2D&&(t._scene.camera.switchToPerspectiveFrustum(),t._orthographic=!1,t.dropDownVisible=!1)}),this._switchToOrthographic=ti(function(){t.sceneMode!==ae.SCENE2D&&(t._scene.camera.switchToOrthographicFrustum(),t._orthographic=!0,t.dropDownVisible=!1)}),this._sceneMode=ae}Object.defineProperties(KH.prototype,{scene:{get:function(){return this._scene}},toggleDropDown:{get:function(){return this._toggleDropDown}},switchToPerspective:{get:function(){return this._switchToPerspective}},switchToOrthographic:{get:function(){return this._switchToOrthographic}},isOrthographicProjection:{get:function(){return this._orthographic}}});KH.prototype.isDestroyed=function(){return!1};KH.prototype.destroy=function(){this._eventHelper.removeAll(),fe(this)};var T3=KH;var A9t="M 28.15625,10.4375 9.125,13.21875 13.75,43.25 41.75,55.09375 50.8125,37 54.5,11.9375 z m 0.125,3 19.976451,0.394265 L 43.03125,16.875 22.6875,14.28125 z M 50.971746,15.705477 47.90625,36.03125 42.53125,46 44.84375,19.3125 z M 12.625,16.03125 l 29.15625,3.6875 -2.65625,31 L 16.4375,41.125 z",D9t="m 31.560594,6.5254438 -20.75,12.4687502 0.1875,24.5625 22.28125,11.8125 19.5,-12 0.65625,-0.375 0,-0.75 0.0312,-23.21875 z m 0.0625,3.125 16.65625,9.5000002 -16.125,10.28125 -17.34375,-9.71875 z m 18.96875,11.1875002 0.15625,20.65625 -17.46875,10.59375 0.15625,-20.28125 z m -37.0625,1.25 17.21875,9.625 -0.15625,19.21875 -16.9375,-9 z";function HH(e,t){e=li(e);let n=new T3(t);n._perspectivePath=A9t,n._orthographicPath=D9t;let i=document.createElement("span");i.className="cesium-projectionPicker-wrapper cesium-toolbar-button",e.appendChild(i);let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button",o.setAttribute("data-bind",'css: { "cesium-projectionPicker-buttonPerspective": !_orthographic, "cesium-projectionPicker-buttonOrthographic": _orthographic, "cesium-button-disabled" : sceneMode === _sceneMode.SCENE2D || _flightInProgress, "cesium-projectionPicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),o.innerHTML='<!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --><!-- /ko -->',i.appendChild(o);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",r.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && _orthographic), "cesium-projectionPicker-none" : !_orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible },attr: { title: tooltipPerspective },click: switchToPerspective,cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64 }'),i.appendChild(r);let s=document.createElement("button");s.type="button",s.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",s.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && !_orthographic), "cesium-projectionPicker-none" : _orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible},attr: { title: tooltipOrthographic },click: switchToOrthographic,cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64 }'),i.appendChild(s),Re.applyBindings(n,i),this._viewModel=n,this._container=e,this._wrapper=i,this._closeDropDown=function(a){i.contains(a.target)||(n.dropDownVisible=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(HH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});HH.prototype.isDestroyed=function(){return!1};HH.prototype.destroy=function(){return this._viewModel.destroy(),bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Re.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),fe(this)};var _3=HH;var aor=S(C(),1);var eor=S(C(),1);function JH(e,t){this._scene=e;let n=this,i=function(o,r,s,a){n.sceneMode=s,n.dropDownVisible=!1};this._eventHelper=new vs,this._eventHelper.add(e.morphStart,i),this._duration=g(t,2),this.sceneMode=e.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",Re.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,Re.defineProperty(this,"selectedTooltip",function(){let o=n.sceneMode;return o===ae.SCENE2D?n.tooltip2D:o===ae.SCENE3D?n.tooltip3D:n.tooltipColumbusView}),this._toggleDropDown=ti(function(){n.dropDownVisible=!n.dropDownVisible}),this._morphTo2D=ti(function(){e.morphTo2D(n._duration)}),this._morphTo3D=ti(function(){e.morphTo3D(n._duration)}),this._morphToColumbusView=ti(function(){e.morphToColumbusView(n._duration)}),this._sceneMode=ae}Object.defineProperties(JH.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(e){this._duration=e}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}});JH.prototype.isDestroyed=function(){return!1};JH.prototype.destroy=function(){this._eventHelper.removeAll(),fe(this)};var S3=JH;var U9t="m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z",k9t="m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z",z9t="m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z";function QH(e,t,n){e=li(e);let i=new S3(t,n);i._globePath=U9t,i._flatMapPath=k9t,i._columbusViewPath=z9t;let o=document.createElement("span");o.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",e.appendChild(o);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button",r.setAttribute("data-bind",'css: { "cesium-sceneModePicker-button2D": sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-button3D": sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-buttonColumbusView": sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),r.innerHTML='<!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --><!-- /ko -->',o.appendChild(r);let s=document.createElement("button");s.type="button",s.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",s.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE3D)) || (!dropDownVisible && (sceneMode === _sceneMode.SCENE3D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip3D },click: morphTo3D,cesiumSvgPath: { path: _globePath, width: 64, height: 64 }'),o.appendChild(s);let a=document.createElement("button");a.type="button",a.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",a.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE2D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),o.appendChild(a);let c=document.createElement("button");c.type="button",c.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",c.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.COLUMBUS_VIEW)) || (!dropDownVisible && (sceneMode === _sceneMode.COLUMBUS_VIEW)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-hidden" : !dropDownVisible},attr: { title: tooltipColumbusView },click: morphToColumbusView,cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64 }'),o.appendChild(c),Re.applyBindings(i,o),this._viewModel=i,this._container=e,this._wrapper=o,this._closeDropDown=function(l){o.contains(l.target)||(i.dropDownVisible=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(QH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});QH.prototype.isDestroyed=function(){return!1};QH.prototype.destroy=function(){return this._viewModel.destroy(),bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Re.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),fe(this)};var C3=QH;var Tor=S(C(),1);var mor=S(C(),1);var Y9t=new B,jH="-1000px";function L3(e,t,n){this._scene=e,this._screenPositionX=jH,this._screenPositionY=jH,this._tweens=e.tweens,this._container=g(n,document.body),this._selectionIndicatorElement=t,this._scale=1,this.position=void 0,this.showSelection=!1,Re.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,Re.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&d(this.position)}}),Re.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(i,o){return yo.worldToWindowCoordinates(e,i,o)}}L3.prototype.update=function(){if(this.showSelection&&d(this.position)){let e=this.computeScreenSpacePosition(this.position,Y9t);if(!d(e))this._screenPositionX=jH,this._screenPositionY=jH;else{let t=this._container,n=t.parentNode.clientWidth,i=t.parentNode.clientHeight,o=this._selectionIndicatorElement.clientWidth,r=o*.5;e.x=Math.min(Math.max(e.x,-o),n+o)-r,e.y=Math.min(Math.max(e.y,-o),i+o)-r,this._screenPositionX=`${Math.floor(e.x+.25)}px`,this._screenPositionY=`${Math.floor(e.y+.25)}px`}}};L3.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:zs.EXPONENTIAL_OUT})};L3.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:zs.EXPONENTIAL_OUT})};Object.defineProperties(L3.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var V3=L3;function qH(e,t){e=li(e),this._container=e;let n=document.createElement("div");n.className="cesium-selection-wrapper",n.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),e.appendChild(n),this._element=n;let i="http://www.w3.org/2000/svg",o="M -34 -34 L -34 -11.25 L -30 -15.25 L -30 -30 L -15.25 -30 L -11.25 -34 L -34 -34 z M 11.25 -34 L 15.25 -30 L 30 -30 L 30 -15.25 L 34 -11.25 L 34 -34 L 11.25 -34 z M -34 11.25 L -34 34 L -11.25 34 L -15.25 30 L -30 30 L -30 15.25 L -34 11.25 z M 34 11.25 L 30 15.25 L 30 30 L 15.25 30 L 11.25 34 L 34 34 L 34 11.25 z",r=document.createElementNS(i,"svg:svg");r.setAttribute("width",160),r.setAttribute("height",160),r.setAttribute("viewBox","0 0 160 160");let s=document.createElementNS(i,"g");s.setAttribute("transform","translate(80,80)"),r.appendChild(s);let a=document.createElementNS(i,"path");a.setAttribute("data-bind","attr: { transform: _transform }"),a.setAttribute("d",o),s.appendChild(a),n.appendChild(r);let c=new V3(t,this._element,this._container);this._viewModel=c,Re.applyBindings(this._viewModel,this._element)}Object.defineProperties(qH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});qH.prototype.isDestroyed=function(){return!1};qH.prototype.destroy=function(){let e=this._container;return Re.cleanNode(this._element),e.removeChild(this._element),fe(this)};var Z3=qH;var Mor=S(C(),1);var Cor=S(C(),1);function mL(e,t,n){this._color=e,this._height=t,this._base=g(n,0)}mL.prototype.getHeight=function(){return this._height};mL.prototype.getBase=function(){return this._base};mL.prototype.getStartTime=function(){return this._start};mL.prototype.getStopTime=function(){return this._stop};mL.prototype.setRange=function(e,t){this._start=e,this._stop=t};mL.prototype.render=function(e){let t="";if(this._start&&this._stop&&this._color){let n=ee.secondsDifference(this._start,e.epochJulian),i=Math.round(e.timeBarWidth*e.getAlpha(n)),o=ee.secondsDifference(this._stop,e.epochJulian),r=Math.round(e.timeBarWidth*e.getAlpha(o))-i;i<0&&(r+=i,i=0),i+r>e.timeBarWidth&&(r=e.timeBarWidth-i),r>0&&(t=`<span class="cesium-timeline-highlight" style="left: ${i.toString()}px; width: ${r.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return t};var R3=mL;var Zor=S(C(),1);function aXe(e,t,n,i){this.interval=e,this.height=t,this.color=n||new z(.5,.5,.5,1),this.backgroundColor=i||new z(0,0,0,0)}aXe.prototype.render=function(e,t){let n=this.interval.start,i=this.interval.stop,o=t.startJulian,r=ee.addSeconds(t.startJulian,t.duration,new ee);if(ee.lessThan(n,o)&&ee.greaterThan(i,r))e.fillStyle=this.color.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height);else if(ee.lessThanOrEquals(n,r)&&ee.greaterThanOrEquals(i,o)){let s,a,c;for(s=0;s<t.timeBarWidth;++s){let l=ee.addSeconds(t.startJulian,s/t.timeBarWidth*t.duration,new ee);!d(a)&&ee.greaterThanOrEquals(l,n)?a=s:!d(c)&&ee.greaterThanOrEquals(l,i)&&(c=s)}e.fillStyle=this.backgroundColor.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height),d(a)&&(d(c)||(c=t.timeBarWidth),e.fillStyle=this.color.toCssColorString(),e.fillRect(a,t.y,Math.max(c-a,1),this.height))}};var G3=aXe;var Toe=1e12,Dh={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},Ed={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},l_=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800,1296e3,2592e3,5184e3,7776e3,15552e3,31536e3,63072e3,126144e3,15768e4,31536e4,63072e4,126144e4,15768e5,31536e5,63072e5,126144e5,15768e6,31536e6],B9t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Id(e,t){e=li(e);let n=e.ownerDocument;this.container=e;let i=n.createElement("div");i.className="cesium-timeline-main",e.appendChild(i),this._topDiv=i,this._endJulian=void 0,this._epochJulian=void 0,this._lastXPos=void 0,this._scrubElement=void 0,this._startJulian=void 0,this._timeBarSecondsSpan=void 0,this._clock=t,this._scrubJulian=t.currentTime,this._mainTicSpan=-1,this._mouseMode=Dh.none,this._touchMode=Ed.none,this._touchState={centerX:0,spanX:0},this._mouseX=0,this._timelineDrag=0,this._timelineDragLocation=void 0,this._lastHeight=void 0,this._lastWidth=void 0,this._topDiv.innerHTML='<div class="cesium-timeline-bar"></div><div class="cesium-timeline-trackContainer"><canvas class="cesium-timeline-tracks" width="10" height="1"></canvas></div><div class="cesium-timeline-needle"></div><span class="cesium-timeline-ruler"></span>',this._timeBarEle=this._topDiv.childNodes[0],this._trackContainer=this._topDiv.childNodes[1],this._trackListEle=this._topDiv.childNodes[1].childNodes[0],this._needleEle=this._topDiv.childNodes[2],this._rulerEle=this._topDiv.childNodes[3],this._context=this._trackListEle.getContext("2d"),this._trackList=[],this._highlightRanges=[],this.zoomTo(t.startTime,t.stopTime),this._onMouseDown=O9t(this),this._onMouseUp=K9t(this),this._onMouseMove=H9t(this),this._onMouseWheel=J9t(this),this._onTouchStart=Q9t(this),this._onTouchMove=q9t(this),this._onTouchEnd=j9t(this);let o=this._timeBarEle;n.addEventListener("mouseup",this._onMouseUp,!1),n.addEventListener("mousemove",this._onMouseMove,!1),o.addEventListener("mousedown",this._onMouseDown,!1),o.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),o.addEventListener("mousewheel",this._onMouseWheel,!1),o.addEventListener("touchstart",this._onTouchStart,!1),o.addEventListener("touchmove",this._onTouchMove,!1),o.addEventListener("touchend",this._onTouchEnd,!1),o.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},t.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}Id.prototype.addEventListener=function(e,t,n){this._topDiv.addEventListener(e,t,n)};Id.prototype.removeEventListener=function(e,t,n){this._topDiv.removeEventListener(e,t,n)};Id.prototype.isDestroyed=function(){return!1};Id.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);let e=this.container.ownerDocument;e.removeEventListener("mouseup",this._onMouseUp,!1),e.removeEventListener("mousemove",this._onMouseMove,!1);let t=this._timeBarEle;t.removeEventListener("mousedown",this._onMouseDown,!1),t.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),t.removeEventListener("mousewheel",this._onMouseWheel,!1),t.removeEventListener("touchstart",this._onTouchStart,!1),t.removeEventListener("touchmove",this._onTouchMove,!1),t.removeEventListener("touchend",this._onTouchEnd,!1),t.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),fe(this)};Id.prototype.addHighlightRange=function(e,t,n){let i=new R3(e,t,n);return this._highlightRanges.push(i),this.resize(),i};Id.prototype.addTrack=function(e,t,n,i){let o=new G3(e,t,n,i);return this._trackList.push(o),this._lastHeight=void 0,this.resize(),o};Id.prototype.zoomTo=function(e,t){if(this._startJulian=e,this._endJulian=t,this._timeBarSecondsSpan=ee.secondsDifference(t,e),this._clock&&this._clock.clockRange!==Ds.UNBOUNDED){let i=this._clock.startTime,o=this._clock.stopTime,r=ee.secondsDifference(o,i),s=ee.secondsDifference(i,this._startJulian),a=ee.secondsDifference(o,this._endJulian);this._timeBarSecondsSpan>=r?(this._timeBarSecondsSpan=r,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):s>0?(this._endJulian=ee.addSeconds(this._endJulian,s,new ee),this._startJulian=i,this._timeBarSecondsSpan=ee.secondsDifference(this._endJulian,this._startJulian)):a<0&&(this._startJulian=ee.addSeconds(this._startJulian,a,new ee),this._endJulian=o,this._timeBarSecondsSpan=ee.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();let n=document.createEvent("Event");n.initEvent("setzoom",!0,!0),n.startJulian=this._startJulian,n.endJulian=this._endJulian,n.epochJulian=this._epochJulian,n.totalSpan=this._timeBarSecondsSpan,n.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(n)};Id.prototype.zoomFrom=function(e){let t=ee.secondsDifference(this._scrubJulian,this._startJulian);e>1||t<0||t>this._timeBarSecondsSpan?t=this._timeBarSecondsSpan*.5:t+=t-this._timeBarSecondsSpan*.5;let n=this._timeBarSecondsSpan-t;this.zoomTo(ee.addSeconds(this._startJulian,t-t*e,new ee),ee.addSeconds(this._endJulian,n*e-n,new ee))};function _oe(e){return e<10?`0${e.toString()}`:e.toString()}Id.prototype.makeLabel=function(e){let t=ee.toGregorianDate(e),n=t.millisecond,i=" UTC";if(n>0&&this._timeBarSecondsSpan<3600){for(i=Math.floor(n).toString();i.length<3;)i=`0${i}`;i=`.${i}`}return`${B9t[t.month-1]} ${t.day} ${t.year} ${_oe(t.hour)}:${_oe(t.minute)}:${_oe(t.second)}${i}`};Id.prototype.smallestTicInPixels=7;Id.prototype._makeTics=function(){let e=this._timeBarEle,t=ee.secondsDifference(this._scrubJulian,this._startJulian),n=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan),i=n-8,o,r=this;this._needleEle.style.left=`${n.toString()}px`;let s="",a=.01,c=31536e6,l=1e-10,u=0,m=this._timeBarSecondsSpan;m<a?(m=a,this._timeBarSecondsSpan=a,this._endJulian=ee.addSeconds(this._startJulian,a,new ee)):m>c&&(m=c,this._timeBarSecondsSpan=c,this._endJulian=ee.addSeconds(this._startJulian,c,new ee));let f=this._timeBarEle.clientWidth;f<10&&(f=10);let b=this._startJulian,p=Math.min(m/f*1e-5,.4),x,T=ee.toGregorianDate(b);m>31536e4?x=ee.fromDate(new Date(Date.UTC(Math.floor(T.year/100)*100,0))):m>31536e3?x=ee.fromDate(new Date(Date.UTC(Math.floor(T.year/10)*10,0))):m>86400?x=ee.fromDate(new Date(Date.UTC(T.year,0))):x=ee.fromDate(new Date(Date.UTC(T.year,T.month,T.day)));let _=ee.secondsDifference(this._startJulian,ee.addSeconds(x,p,new ee)),L=_+m;this._epochJulian=x;function V(D){return Math.floor(_/D)*D}function Z(D,O){return Math.ceil(D/O+.5)*O}function G(D){return(D-_)/m}function I(D,O){return D-O*Math.round(D/O)}this._rulerEle.innerHTML=this.makeLabel(ee.addSeconds(this._endJulian,-a,new ee));let w=this._rulerEle.offsetWidth+20;w<30&&(w=180);let W=u;u-=l;let v={startTime:_,startJulian:b,epochJulian:x,duration:m,timeBarWidth:f,getAlpha:G};this._highlightRanges.forEach(function(D){s+=D.render(v)});let N=0,y=0,R=0,E=w/f;E>1&&(E=1),E*=this._timeBarSecondsSpan;let X=-1,F=-1,A=l_.length,Y;for(Y=0;Y<A;++Y){let D=l_[Y];if(++X,N=D,D>E&&D>u)break;F<0&&f*(D/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(F=X)}if(X>0){for(;X>0;)if(--X,Math.abs(I(N,l_[X]))<1e-5){l_[X]>=u&&(y=l_[X]);break}if(F>=0)for(;F<X;){if(Math.abs(I(y,l_[F]))<1e-5&&l_[F]>=u){R=l_[F];break}++F}}u=W,u>l&&R<1e-5&&Math.abs(u-N)>l&&(R=u,u<=N+l&&(y=0));let U=-999999,k;if(f*(R/this._timeBarSecondsSpan)>=3)for(o=V(R);o<=L;o=Z(o,R))s+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(f*G(o)).toString()}px;"></span>`;if(f*(y/this._timeBarSecondsSpan)>=3)for(o=V(y);o<=L;o=Z(o,y))s+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(f*G(o)).toString()}px;"></span>`;if(f*(N/this._timeBarSecondsSpan)>=2){this._mainTicSpan=N,L+=N,o=V(N);let D=ee.computeTaiMinusUtc(x);for(;o<=L;){let O=ee.addSeconds(b,o-_,new ee);if(N>2.1){let ne=ee.computeTaiMinusUtc(O);Math.abs(ne-D)>.1&&(o+=ne-D,O=ee.addSeconds(b,o-_,new ee))}let K=Math.round(f*G(o)),j=this.makeLabel(O);this._rulerEle.innerHTML=j,k=this._rulerEle.offsetWidth,k<10&&(k=w);let J=K-(k/2-1);J>U?(U=J+k+5,s+=`<span class="cesium-timeline-ticMain" style="left: ${K.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${J.toString()}px;">${j}</span>`):s+=`<span class="cesium-timeline-ticSub" style="left: ${K.toString()}px;"></span>`,o=Z(o,N)}}else this._mainTicSpan=-1;s+=`<span class="cesium-timeline-icon16" style="left:${i}px;bottom:0;background-position: 0 0;"></span>`,e.innerHTML=s,this._scrubElement=e.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),v.y=0,this._trackList.forEach(function(D){D.render(r._context,v),v.y+=D.height})};Id.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let e=this._scrubElement;if(d(this._scrubElement)){let t=ee.secondsDifference(this._scrubJulian,this._startJulian),n=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==n&&(this._lastXPos=n,e.style.left=`${n-8}px`,this._needleEle.style.left=`${n}px`)}d(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo(ee.addSeconds(this._startJulian,this._timelineDrag,new ee),ee.addSeconds(this._endJulian,this._timelineDrag,new ee)))};Id.prototype._setTimeBarTime=function(e,t){if(e=Math.round(e),this._scrubJulian=ee.addSeconds(this._startJulian,t,new ee),this._scrubElement){let i=e-8;this._scrubElement.style.left=`${i.toString()}px`,this._needleEle.style.left=`${e.toString()}px`}let n=document.createEvent("Event");n.initEvent("settime",!0,!0),n.clientX=e,n.timeSeconds=t,n.timeJulian=this._scrubJulian,n.clock=this._clock,this._topDiv.dispatchEvent(n)};function O9t(e){return function(t){e._mouseMode!==Dh.touchOnly&&(t.button===0?(e._mouseMode=Dh.scrub,e._scrubElement&&(e._scrubElement.style.backgroundPosition="-16px 0"),e._onMouseMove(t)):(e._mouseX=t.clientX,t.button===2?e._mouseMode=Dh.zoom:e._mouseMode=Dh.slide)),t.preventDefault()}}function K9t(e){return function(t){e._mouseMode=Dh.none,e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0"),e._timelineDrag=0,e._timelineDragLocation=void 0}}function H9t(e){return function(t){let n;if(e._mouseMode===Dh.scrub){t.preventDefault();let i=t.clientX-e._topDiv.getBoundingClientRect().left;i<0?(e._timelineDragLocation=0,e._timelineDrag=-.01*e._timeBarSecondsSpan):i>e._topDiv.clientWidth?(e._timelineDragLocation=e._topDiv.clientWidth,e._timelineDrag=.01*e._timeBarSecondsSpan):(e._timelineDragLocation=void 0,e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))}else if(e._mouseMode===Dh.slide){if(n=e._mouseX-t.clientX,e._mouseX=t.clientX,n!==0){let i=n*e._timeBarSecondsSpan/e._topDiv.clientWidth;e.zoomTo(ee.addSeconds(e._startJulian,i,new ee),ee.addSeconds(e._endJulian,i,new ee))}}else e._mouseMode===Dh.zoom&&(n=e._mouseX-t.clientX,e._mouseX=t.clientX,n!==0&&e.zoomFrom(Math.pow(1.01,n)))}}function J9t(e){return function(t){let n=t.wheelDeltaY||t.wheelDelta||-t.detail;Toe=Math.max(Math.min(Math.abs(n),Toe),1),n/=Toe,e.zoomFrom(Math.pow(1.05,-n))}}function Q9t(e){return function(t){let n=t.touches.length,i,o,r=e._topDiv.getBoundingClientRect().left;t.preventDefault(),e._mouseMode=Dh.touchOnly,n===1?(i=ee.secondsDifference(e._scrubJulian,e._startJulian),o=Math.round(i*e._topDiv.clientWidth/e._timeBarSecondsSpan+r),Math.abs(t.touches[0].clientX-o)<50?(e._touchMode=Ed.scrub,e._scrubElement&&(e._scrubElement.style.backgroundPosition=n===1?"-16px 0":"0 0")):(e._touchMode=Ed.singleTap,e._touchState.centerX=t.touches[0].clientX-r)):n===2?(e._touchMode=Ed.slideZoom,e._touchState.centerX=(t.touches[0].clientX+t.touches[1].clientX)*.5-r,e._touchState.spanX=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):e._touchMode=Ed.ignore}}function j9t(e){return function(t){let n=t.touches.length,i=e._topDiv.getBoundingClientRect().left;e._touchMode===Ed.singleTap?(e._touchMode=Ed.scrub,e._onTouchMove(t)):e._touchMode===Ed.scrub&&e._onTouchMove(t),e._mouseMode=Dh.touchOnly,n!==1?e._touchMode=n>0?Ed.ignore:Ed.none:e._touchMode===Ed.slideZoom&&(e._touchState.centerX=t.touches[0].clientX-i),e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0")}}function q9t(e){return function(t){let n,i,o,r,s,a,c=1,l=e._topDiv.getBoundingClientRect().left;e._touchMode===Ed.singleTap&&(e._touchMode=Ed.slideZoom),e._mouseMode=Dh.touchOnly,e._touchMode===Ed.scrub?(t.preventDefault(),t.changedTouches.length===1&&(i=t.changedTouches[0].clientX-l,i>=0&&i<=e._topDiv.clientWidth&&e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))):e._touchMode===Ed.slideZoom&&(o=t.touches.length,o===2?(r=(t.touches[0].clientX+t.touches[1].clientX)*.5-l,s=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):o===1&&(r=t.touches[0].clientX-l,s=0),d(r)&&(s>0&&e._touchState.spanX>0?(c=e._touchState.spanX/s,a=ee.addSeconds(e._startJulian,(e._touchState.centerX*e._timeBarSecondsSpan-r*e._timeBarSecondsSpan*c)/e._topDiv.clientWidth,new ee)):(n=e._touchState.centerX-r,a=ee.addSeconds(e._startJulian,n*e._timeBarSecondsSpan/e._topDiv.clientWidth,new ee)),e.zoomTo(a,ee.addSeconds(a,e._timeBarSecondsSpan*c,new ee)),e._touchState.centerX=r,e._touchState.spanX=s))}}Id.prototype.resize=function(){let e=this.container.clientWidth,t=this.container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;this._trackContainer.style.height=`${t}px`;let n=1;this._trackList.forEach(function(i){n+=i.height}),this._trackListEle.style.height=`${n.toString()}px`,this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=n,this._makeTics(),this._lastXPos=void 0,this._lastWidth=e,this._lastHeight=t};var E3=Id;var yrr=S(C(),1);var Jor=S(C(),1);var kor=S(C(),1);var mXe=S(uXe(),1);function t5t(e){let t=!1,n=window.screen;return d(n)&&(d(n.lockOrientation)?t=n.lockOrientation(e):d(n.mozLockOrientation)?t=n.mozLockOrientation(e):d(n.msLockOrientation)?t=n.msLockOrientation(e):d(n.orientation&&n.orientation.lock)&&(t=n.orientation.lock(e))),t}function hXe(){let e=window.screen;d(e)&&(d(e.unlockOrientation)?e.unlockOrientation():d(e.mozUnlockOrientation)?e.mozUnlockOrientation():d(e.msUnlockOrientation)?e.msUnlockOrientation():d(e.orientation&&e.orientation.unlock)&&e.orientation.unlock())}function n5t(e,t,n,i){i()||(n()?(t.useWebVR=!1,e._locked&&(hXe(),e._locked=!1),e._noSleep.disable(),fs.exitFullscreen(),n(!1)):(fs.fullscreen||fs.requestFullscreen(e._vrElement),e._noSleep.enable(),e._locked||(e._locked=t5t("landscape")),t.useWebVR=!0,n(!0)))}function $H(e,t){let n=this,i=Re.observable(fs.enabled),o=Re.observable(!1);this.isVRMode=void 0,Re.defineProperty(this,"isVRMode",{get:function(){return o()}}),this.isVREnabled=void 0,Re.defineProperty(this,"isVREnabled",{get:function(){return i()},set:function(s){i(s&&fs.enabled)}}),this.tooltip=void 0,Re.defineProperty(this,"tooltip",function(){return i()?o()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let r=Re.observable(!1);this._isOrthographic=void 0,Re.defineProperty(this,"_isOrthographic",{get:function(){return r()}}),this._eventHelper=new vs,this._eventHelper.add(e.preRender,function(){r(e.camera.frustum instanceof In)}),this._locked=!1,this._noSleep=new mXe.default,this._command=ti(function(){n5t(n,e,o,r)},Re.getObservable(this,"isVREnabled")),this._vrElement=g(li(t),document.body),this._callback=function(){!fs.fullscreen&&o()&&(e.useWebVR=!1,n._locked&&(hXe(),n._locked=!1),n._noSleep.disable(),o(!1))},document.addEventListener(fs.changeEventName,this._callback)}Object.defineProperties($H.prototype,{vrElement:{get:function(){return this._vrElement},set:function(e){this._vrElement=e}},command:{get:function(){return this._command}}});$H.prototype.isDestroyed=function(){return!1};$H.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(fs.changeEventName,this._callback),fe(this)};var I3=$H;var i5t="M 5.3125 6.375 C 4.008126 6.375 2.96875 7.4141499 2.96875 8.71875 L 2.96875 19.5 C 2.96875 20.8043 4.008126 21.875 5.3125 21.875 L 13.65625 21.875 C 13.71832 20.0547 14.845166 18.59375 16.21875 18.59375 C 17.592088 18.59375 18.71881 20.0552 18.78125 21.875 L 27.09375 21.875 C 28.398125 21.875 29.4375 20.8043 29.4375 19.5 L 29.4375 8.71875 C 29.4375 7.4141499 28.398125 6.375 27.09375 6.375 L 5.3125 6.375 z M 9.625 10.4375 C 11.55989 10.4375 13.125 12.03385 13.125 13.96875 C 13.125 15.90365 11.55989 17.46875 9.625 17.46875 C 7.69011 17.46875 6.125 15.90365 6.125 13.96875 C 6.125 12.03385 7.69011 10.4375 9.625 10.4375 z M 22.46875 10.4375 C 24.40364 10.4375 25.96875 12.03385 25.96875 13.96875 C 25.96875 15.90365 24.40364 17.46875 22.46875 17.46875 C 20.53386 17.46875 18.96875 15.90365 18.96875 13.96875 C 18.96875 12.03385 20.53386 10.4375 22.46875 10.4375 z",o5t="M 25.770585,2.4552065 C 15.72282,13.962707 10.699956,19.704407 8.1768352,22.580207 c -1.261561,1.4379 -1.902282,2.1427 -2.21875,2.5 -0.141624,0.1599 -0.208984,0.2355 -0.25,0.2813 l 0.6875,0.75 c 10e-5,-10e-5 0.679191,0.727 0.6875,0.7187 0.01662,-0.016 0.02451,-0.024 0.03125,-0.031 0.01348,-0.014 0.04013,-0.038 0.0625,-0.062 0.04474,-0.05 0.120921,-0.1315 0.28125,-0.3126 0.320657,-0.3619 0.956139,-1.0921 2.2187499,-2.5312 2.5252219,-2.8781 7.5454589,-8.6169 17.5937499,-20.1250005 l -1.5,-1.3125 z m -20.5624998,3.9063 c -1.304375,0 -2.34375,1.0391 -2.34375,2.3437 l 0,10.8125005 c 0,1.3043 1.039375,2.375 2.34375,2.375 l 2.25,0 c 1.9518039,-2.2246 7.4710958,-8.5584 13.5624998,-15.5312005 l -15.8124998,0 z m 21.1249998,0 c -1.855467,2.1245 -2.114296,2.4005 -3.59375,4.0936995 1.767282,0.1815 3.15625,1.685301 3.15625,3.500001 0,1.9349 -1.56511,3.5 -3.5,3.5 -1.658043,0 -3.043426,-1.1411 -3.40625,-2.6875 -1.089617,1.2461 -2.647139,2.9988 -3.46875,3.9375 0.191501,-0.062 0.388502,-0.094 0.59375,-0.094 1.373338,0 2.50006,1.4614 2.5625,3.2812 l 8.3125,0 c 1.304375,0 2.34375,-1.0707 2.34375,-2.375 l 0,-10.8125005 c 0,-1.3046 -1.039375,-2.3437 -2.34375,-2.3437 l -0.65625,0 z M 9.5518351,10.423906 c 1.9348899,0 3.4999999,1.596401 3.4999999,3.531301 0,1.9349 -1.56511,3.5 -3.4999999,3.5 -1.9348899,0 -3.4999999,-1.5651 -3.4999999,-3.5 0,-1.9349 1.56511,-3.531301 3.4999999,-3.531301 z m 4.2187499,10.312601 c -0.206517,0.2356 -0.844218,0.9428 -1.03125,1.1562 l 0.8125,0 c 0.01392,-0.4081 0.107026,-0.7968 0.21875,-1.1562 z";function e4(e,t,n){e=li(e);let i=new I3(t,n);i._exitVRPath=o5t,i._enterVRPath=i5t;let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-vrButton",o.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),e.appendChild(o),Re.applyBindings(i,o),this._container=e,this._viewModel=i,this._element=o}Object.defineProperties(e4.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});e4.prototype.isDestroyed=function(){return!1};e4.prototype.destroy=function(){return this._viewModel.destroy(),Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var X3=e4;var d_=new de;function bXe(e){let t=e.clock;t.currentTime=e.timeJulian,t.shouldAnimate=!1}function r5t(e){let t=e.getPropertyIds(),n="";return Array.isArray(t)&&(t.forEach(function(i){let o=e.getProperty(i);d(o)&&(n+=`<tr><th>${i}</th><td>${o}</td></tr>`)}),n.length>0&&(n=`<table class="cesium-infoBox-defaultTable"><tbody>${n}</tbody></table>`)),n}function s5t(e){let t,n=[],i=e.getPropertyIds();for(t=0;t<i.length;t++){let r=i[t];/^name$/i.test(r)?n[0]=e.getProperty(r):/name/i.test(r)?n[1]=e.getProperty(r):/^title$/i.test(r)?n[2]=e.getProperty(r):/^(id|identifier)$/i.test(r)?n[3]=e.getProperty(r):/element/i.test(r)?n[4]=e.getProperty(r):/(id|identifier)$/i.test(r)&&(n[5]=e.getProperty(r))}let o=n.length;for(t=0;t<o;t++){let r=n[t];if(d(r)&&r!=="")return r}return"Unnamed Feature"}function pXe(e,t){let n=e.scene.pick(t.position);if(d(n)){let i=g(n.id,n.primitive.id);if(i instanceof Jr)return i;if(n instanceof ka)return new Jr({name:s5t(n),description:r5t(n),feature:n})}if(d(e.scene.globe))return l5t(e,t.position)}var a5t=new ee;function yXe(e,t,n){if(d(n)){let i=n.clock;if(d(i)&&(i.getValue(t),d(e))){let o=i.startTime,r=i.stopTime;ee.equals(o,r)&&(r=ee.addSeconds(o,M.EPSILON2,a5t)),e.updateFromClock(),e.zoomTo(o,r)}}}var c5t=new h;function l5t(e,t){let n=e.scene,i=n.camera.getPickRay(t),o=n.imageryLayers.pickImageryLayerFeatures(i,n);if(!d(o))return;let r=new Jr({id:"Loading...",description:"Loading feature information..."});return o.then(function(s){if(e.selectedEntity!==r)return;if(!d(s)||s.length===0){e.selectedEntity=fXe();return}let a=s[0],c=new Jr({id:a.name,description:a.description});if(d(a.position)){let l=e.scene.ellipsoid.cartographicToCartesian(a.position,c5t);c.position=new Hl(l)}e.selectedEntity=c},function(){e.selectedEntity===r&&(e.selectedEntity=fXe())}),r}function fXe(){return new Jr({id:"None",description:"No features found."})}function d5t(e,t){let n=e._geocoder,i=e._homeButton,o=e._sceneModePicker,r=e._projectionPicker,s=e._baseLayerPicker,a=e._animation,c=e._timeline,l=e._fullscreenButton,u=e._infoBox,m=e._selectionIndicator,f=t?"hidden":"visible";if(d(n)&&(n.container.style.visibility=f),d(i)&&(i.container.style.visibility=f),d(o)&&(o.container.style.visibility=f),d(r)&&(r.container.style.visibility=f),d(s)&&(s.container.style.visibility=f),d(a)&&(a.container.style.visibility=f),d(c)&&(c.container.style.visibility=f),d(l)&&l.viewModel.isFullscreenEnabled&&(l.container.style.visibility=f),d(u)&&(u.container.style.visibility=f),d(m)&&(m.container.style.visibility=f),e._container){let b=t||!d(l)?0:l.container.clientWidth;e._vrButton.container.style.right=`${b}px`,e.forceResize()}}function To(e,t){e=li(e),t=g(t,{}),t.selectionIndicator=g(t.selectionIndicator,!1),t.infoBox=g(t.selectionIndicator,!1),t.geocoder=g(t.geocoder,!1),t.homeButton=g(t.homeButton,!1),t.sceneModePicker=g(t.sceneModePicker,!1),t.baseLayerPicker=g(t.baseLayerPicker,!1),t.navigationHelpButton=g(t.navigationHelpButton,!1),t.timeline=g(t.timeline,!1),t.animation=g(t.animation,!1),t.fullscreenButton=g(t.fullscreenButton,!1);let n=(!d(t.globe)||t.globe!==!1)&&(!d(t.baseLayerPicker)||t.baseLayerPicker!==!1),i=this,o=document.createElement("div");o.className="cesium-viewer",e.appendChild(o);let r=document.createElement("div");r.className="cesium-viewer-cesiumWidgetContainer",o.appendChild(r);let s=document.createElement("div");s.className="cesium-viewer-bottom";let a=g(t.scene3DOnly,!1),c,l,u=!1;d(t.clockViewModel)?(l=t.clockViewModel,c=l.clock):(c=new vp,l=new YD(c),u=!0),d(t.shouldAnimate)&&(c.shouldAnimate=t.shouldAnimate);let m=1;if(d(t.logoScale)){let j=parseFloat(t.logoScale);d(j)&&j>=.2&&(m=j)}let f=new ED(r,{baseLayer:n&&d(t.selectedImageryProviderViewModel)||d(t.baseLayer)||d(t.imageryProvider)?!1:void 0,clock:c,skyBox:t.skyBox,skyAtmosphere:t.skyAtmosphere,sceneMode:t.sceneMode,ellipsoid:t.ellipsoid,mapProjection:t.mapProjection,globe:t.globe,orderIndependentTranslucency:t.orderIndependentTranslucency,contextOptions:t.contextOptions,useDefaultRenderLoop:t.useDefaultRenderLoop,targetFrameRate:t.targetFrameRate,showRenderLoopErrors:t.showRenderLoopErrors,useBrowserRecommendedResolution:t.useBrowserRecommendedResolution,creditContainer:d(t.creditContainer)?t.creditContainer:s,creditViewport:t.creditViewport,scene3DOnly:a,logoScale:m,shadows:t.shadows,terrainShadows:t.terrainShadows,mapMode2D:t.mapMode2D,blurActiveElementOnCanvasFocus:t.blurActiveElementOnCanvasFocus,requestRenderMode:t.requestRenderMode,maximumRenderTimeChange:t.maximumRenderTimeChange,depthPlaneEllipsoidOffset:t.depthPlaneEllipsoidOffset,msaaSamples:t.msaaSamples}),b=t.dataSources,p=!1;d(b)||(b=new EN,p=!0);let x=f.scene,T=new d9({scene:x,dataSourceCollection:b}),_=new vs;_.add(c.onTick,To.prototype._onTick,this),_.add(x.morphStart,To.prototype._clearTrackedObject,this);let L;if(!d(t.selectionIndicator)||t.selectionIndicator!==!1){let j=document.createElement("div");j.className="cesium-viewer-selectionIndicatorContainer",o.appendChild(j),L=new Z3(j,x)}let V;if(!d(t.infoBox)||t.infoBox!==!1){let j=document.createElement("div");j.className="cesium-viewer-infoBoxContainer",o.appendChild(j),V=new f3(j);let J=V.viewModel;_.add(J.cameraClicked,To.prototype._onInfoBoxCameraClicked,this),_.add(J.closeClicked,To.prototype._onInfoBoxClockClicked,this)}let Z=document.createElement("div");Z.className="cesium-viewer-toolbar",o.appendChild(Z);let G;if(!d(t.geocoder)||t.geocoder!==!1){let j=document.createElement("div");j.className="cesium-viewer-geocoderContainer",Z.appendChild(j);let J;d(t.geocoder)&&typeof t.geocoder!="boolean"&&(J=Array.isArray(t.geocoder)?t.geocoder:[t.geocoder]),G=new d3({container:j,geocoderServices:J,scene:x}),_.add(G.viewModel.search.beforeExecute,To.prototype._clearObjects,this)}let I;(!d(t.homeButton)||t.homeButton!==!1)&&(I=new m3(Z,x),d(G)&&_.add(I.viewModel.command.afterExecute,function(){let j=G.viewModel;j.searchText="",j.isSearchInProgress&&j.search()}),_.add(I.viewModel.command.beforeExecute,To.prototype._clearTrackedObject,this));let w;!a&&(!d(t.sceneModePicker)||t.sceneModePicker!==!1)&&(w=new C3(Z,x));let W;t.projectionPicker&&(W=new _3(Z,x));let v,N;if(n){let j=g(t.imageryProviderViewModels,n3()),J=g(t.terrainProviderViewModels,i3());v=new t3(Z,{globe:x.globe,imageryProviderViewModels:j,selectedImageryProviderViewModel:t.selectedImageryProviderViewModel,terrainProviderViewModels:J,selectedTerrainProviderViewModel:t.selectedTerrainProviderViewModel}),N=Z.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}d(t.baseLayer)&&t.baseLayer!==!1&&(n&&(v.viewModel.selectedImagery=void 0),x.imageryLayers.removeAll(),x.imageryLayers.add(t.baseLayer)),d(t.terrainProvider)&&(n&&(v.viewModel.selectedTerrain=void 0),x.terrainProvider=t.terrainProvider),d(t.terrain)&&(n&&(x.globe.depthTestAgainstTerrain=!0),x.setTerrain(t.terrain));let y;if(!d(t.navigationHelpButton)||t.navigationHelpButton!==!1){let j=!0;try{if(d(window.localStorage)){let J=window.localStorage.getItem("cesium-hasSeenNavHelp");d(J)&&J?j=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}y=new y3({container:Z,instructionsInitiallyVisible:g(t.navigationInstructionsInitiallyVisible,j)})}let R;if(!d(t.animation)||t.animation!==!1){let j=document.createElement("div");j.className="cesium-viewer-animationContainer",o.appendChild(j),R=new HD(j,new JD(l))}let E;if(!d(t.timeline)||t.timeline!==!1){let j=document.createElement("div");j.className="cesium-viewer-timelineContainer",o.appendChild(j),E=new E3(j,c),E.addEventListener("settime",bXe,!1),E.zoomTo(c.startTime,c.stopTime)}let X,F,A;(!d(t.fullscreenButton)||t.fullscreenButton!==!1)&&(A=document.createElement("div"),A.className="cesium-viewer-fullscreenContainer",o.appendChild(A),X=new c3(A,t.fullscreenElement),F=Zc(X.viewModel,"isFullscreenEnabled",function(j){A.style.display=j?"block":"none",d(E)&&(E.container.style.right=`${A.clientWidth}px`,E.resize())}));let Y,U,k;if(t.vrButton){let j=document.createElement("div");j.className="cesium-viewer-vrContainer",o.appendChild(j),Y=new X3(j,x,t.fullScreenElement),U=Zc(Y.viewModel,"isVREnabled",function(J){j.style.display=J?"block":"none",d(X)&&(j.style.right=`${A.clientWidth}px`),d(E)&&(E.container.style.right=`${j.clientWidth}px`,E.resize())}),k=Zc(Y.viewModel,"isVRMode",function(J){d5t(i,J)})}this._baseLayerPickerDropDown=N,this._fullscreenSubscription=F,this._vrSubscription=U,this._vrModeSubscription=k,this._dataSourceChangedListeners={},this._automaticallyTrackDataSourceClocks=g(t.automaticallyTrackDataSourceClocks,!0),this._container=e,this._bottomContainer=s,this._element=o,this._cesiumWidget=f,this._selectionIndicator=L,this._infoBox=V,this._dataSourceCollection=b,this._destroyDataSourceCollection=p,this._dataSourceDisplay=T,this._clockViewModel=l,this._destroyClockViewModel=u,this._toolbar=Z,this._homeButton=I,this._sceneModePicker=w,this._projectionPicker=W,this._baseLayerPicker=v,this._navigationHelpButton=y,this._animation=R,this._timeline=E,this._fullscreenButton=X,this._vrButton=Y,this._geocoder=G,this._eventHelper=_,this._lastWidth=0,this._lastHeight=0,this._allowDataSourcesToSuspendAnimation=!0,this._entityView=void 0,this._enableInfoOrSelection=d(V)||d(L),this._clockTrackedDataSource=void 0,this._trackedEntity=void 0,this._needTrackedEntityUpdate=!1,this._selectedEntity=void 0,this._zoomIsFlight=!1,this._zoomTarget=void 0,this._zoomPromise=void 0,this._zoomOptions=void 0,this._selectedEntityChanged=new Se,this._trackedEntityChanged=new Se,Re.track(this,["_trackedEntity","_selectedEntity","_clockTrackedDataSource"]),_.add(b.dataSourceAdded,To.prototype._onDataSourceAdded,this),_.add(b.dataSourceRemoved,To.prototype._onDataSourceRemoved,this),_.add(x.postUpdate,To.prototype.resize,this),_.add(x.postRender,To.prototype._postRender,this);let D=b.length;for(let j=0;j<D;j++)this._dataSourceAdded(b,b.get(j));this._dataSourceAdded(void 0,T.defaultDataSource),_.add(b.dataSourceAdded,To.prototype._dataSourceAdded,this),_.add(b.dataSourceRemoved,To.prototype._dataSourceRemoved,this);function O(j){let J=pXe(i,j);d(J)?Q.getValueOrUndefined(J.position,i.clock.currentTime)?i.trackedEntity=J:i.zoomTo(J):d(i.trackedEntity)&&(i.trackedEntity=void 0)}function K(j){i.selectedEntity=pXe(i,j)}f.screenSpaceEventHandler.setInputAction(K,qn.LEFT_CLICK),f.screenSpaceEventHandler.setInputAction(O,qn.LEFT_DOUBLE_CLICK)}Object.defineProperties(To.prototype,{container:{get:function(){return this._container}},creditDisplay:{get:function(){return this._cesiumWidget.creditDisplay}},bottomContainer:{get:function(){return this._bottomContainer}},cesiumWidget:{get:function(){return this._cesiumWidget}},selectionIndicator:{get:function(){return this._selectionIndicator}},infoBox:{get:function(){return this._infoBox}},geocoder:{get:function(){return this._geocoder}},homeButton:{get:function(){return this._homeButton}},sceneModePicker:{get:function(){return this._sceneModePicker}},projectionPicker:{get:function(){return this._projectionPicker}},baseLayerPicker:{get:function(){return this._baseLayerPicker}},navigationHelpButton:{get:function(){return this._navigationHelpButton}},animation:{get:function(){return this._animation}},timeline:{get:function(){return this._timeline}},fullscreenButton:{get:function(){return this._fullscreenButton}},vrButton:{get:function(){return this._vrButton}},dataSourceDisplay:{get:function(){return this._dataSourceDisplay}},entities:{get:function(){return this._dataSourceDisplay.defaultDataSource.entities}},dataSources:{get:function(){return this._dataSourceCollection}},canvas:{get:function(){return this._cesiumWidget.canvas}},scene:{get:function(){return this._cesiumWidget.scene}},shadows:{get:function(){return this.scene.shadowMap.enabled},set:function(e){this.scene.shadowMap.enabled=e}},terrainShadows:{get:function(){return this.scene.globe.shadows},set:function(e){this.scene.globe.shadows=e}},shadowMap:{get:function(){return this.scene.shadowMap}},imageryLayers:{get:function(){return this.scene.imageryLayers}},terrainProvider:{get:function(){return this.scene.terrainProvider},set:function(e){this.scene.terrainProvider=e}},camera:{get:function(){return this.scene.camera}},ellipsoid:{get:function(){return this._scene.ellipsoid}},postProcessStages:{get:function(){return this.scene.postProcessStages}},clock:{get:function(){return this._clockViewModel.clock}},clockViewModel:{get:function(){return this._clockViewModel}},screenSpaceEventHandler:{get:function(){return this._cesiumWidget.screenSpaceEventHandler}},targetFrameRate:{get:function(){return this._cesiumWidget.targetFrameRate},set:function(e){this._cesiumWidget.targetFrameRate=e}},useDefaultRenderLoop:{get:function(){return this._cesiumWidget.useDefaultRenderLoop},set:function(e){this._cesiumWidget.useDefaultRenderLoop=e}},resolutionScale:{get:function(){return this._cesiumWidget.resolutionScale},set:function(e){this._cesiumWidget.resolutionScale=e}},useBrowserRecommendedResolution:{get:function(){return this._cesiumWidget.useBrowserRecommendedResolution},set:function(e){this._cesiumWidget.useBrowserRecommendedResolution=e}},allowDataSourcesToSuspendAnimation:{get:function(){return this._allowDataSourcesToSuspendAnimation},set:function(e){this._allowDataSourcesToSuspendAnimation=e}},trackedEntity:{get:function(){return this._trackedEntity},set:function(e){if(this._trackedEntity!==e){this._trackedEntity=e,Voe(this);let t=this.scene,n=t.mode;!d(e)||!d(e.position)?(this._needTrackedEntityUpdate=!1,(n===ae.COLUMBUS_VIEW||n===ae.SCENE2D)&&(t.screenSpaceCameraController.enableTranslate=!0),(n===ae.COLUMBUS_VIEW||n===ae.SCENE3D)&&(t.screenSpaceCameraController.enableTilt=!0),this._entityView=void 0,this.camera.lookAtTransform(P.IDENTITY)):this._needTrackedEntityUpdate=!0,this._trackedEntityChanged.raiseEvent(e),this.scene.requestRender()}}},selectedEntity:{get:function(){return this._selectedEntity},set:function(e){if(this._selectedEntity!==e){this._selectedEntity=e;let t=d(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;d(e)?d(t)&&t.animateAppear():d(t)&&t.animateDepart(),this._selectedEntityChanged.raiseEvent(e)}}},selectedEntityChanged:{get:function(){return this._selectedEntityChanged}},trackedEntityChanged:{get:function(){return this._trackedEntityChanged}},clockTrackedDataSource:{get:function(){return this._clockTrackedDataSource},set:function(e){this._clockTrackedDataSource!==e&&(this._clockTrackedDataSource=e,yXe(this._timeline,this.clock,e))}}});To.prototype.getCurrentTilesLevels=function(){this.scene._globe.depthTestAgainstTerrain=!0;let e=this.scene._globe._surface._tilesToRender,t=this.camera.positionWC,n=this.camera.directionWC,i=new Ray(t,n),o=this.scene.pickFromRay(i,[]);if(o===void 0||o.position===void 0)return;let r=o.position,s=h.distance(r,t),a={};a.centerTileLevel=0,a.maxTileLevel=0,a.minTileLevel=Number.POSITIVE_INFINITY;let c=Number.POSITIVE_INFINITY;for(let l=0,u=e.length;l<u;l++){e[l].level>a.maxTileLevel&&(a.maxTileLevel=e[l].level),e[l].level<a.minTileLevel&&(a.minTileLevel=e[l].level);let m=Math.abs(e[l]._distance-s)<c;m<c&&(c=m,a.centerTileLevel=e[l].level)}return a};To.prototype.extend=function(e,t){e(this,t)};To.prototype.resize=function(){let e=this._cesiumWidget,t=this._container,n=t.clientWidth,i=t.clientHeight,o=d(this._animation),r=d(this._timeline);if(e.resize(),n===this._lastWidth&&i===this._lastHeight)return;let s=i-125,a=this._baseLayerPickerDropDown;if(d(a)&&(a.style.maxHeight=`${s}px`),d(this._geocoder)){let p=this._geocoder.searchSuggestionsContainer;p.style.maxHeight=`${s}px`}d(this._infoBox)&&(this._infoBox.viewModel.maxHeight=s);let c=this._timeline,l,u=0,m=5,f=3,b=0;if(o&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let p=this._lastWidth;l=this._animation.container,n>900?(u=169,p<=900&&(l.style.width="169px",l.style.height="112px",this._animation.resize())):n>=600?(u=136,(p<600||p>900)&&(l.style.width="136px",l.style.height="90px",this._animation.resize())):(u=106,(p>600||p===0)&&(l.style.width="106px",l.style.height="70px",this._animation.resize())),m=u+5}if(r&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let p=this._fullscreenButton,x=this._vrButton,T=c.container,_=T.style;f=T.clientHeight+3,_.left=`${u}px`;let L=0;d(p)&&(L+=p.container.clientWidth),d(x)&&(L+=x.container.clientWidth),_.right=`${L}px`,c.resize()}!r&&d(this._fullscreenButton)&&(b=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${m}px`,this._bottomContainer.style.bottom=`${f}px`,this._bottomContainer.style.right=`${b}px`,this._lastWidth=n,this._lastHeight=i};To.prototype.forceResize=function(){this._lastWidth=0,this.resize()};To.prototype.render=function(){this._cesiumWidget.render()};To.prototype.isDestroyed=function(){return!1};To.prototype.destroy=function(){let e;d(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(qn.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(qn.LEFT_DOUBLE_CLICK));let t=this.dataSources,n=t.length;for(e=0;e<n;e++)this._dataSourceRemoved(t,t.get(e));return this._dataSourceRemoved(void 0,this._dataSourceDisplay.defaultDataSource),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),d(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),d(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),d(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),d(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),d(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),d(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),d(this._timeline)&&(this._timeline.removeEventListener("settime",bXe,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),d(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),d(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),d(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),d(this._selectionIndicator)&&(this._element.removeChild(this._selectionIndicator.container),this._selectionIndicator=this._selectionIndicator.destroy()),this._destroyClockViewModel&&(this._clockViewModel=this._clockViewModel.destroy()),this._dataSourceDisplay=this._dataSourceDisplay.destroy(),this._cesiumWidget=this._cesiumWidget.destroy(),this._destroyDataSourceCollection&&(this._dataSourceCollection=this._dataSourceCollection.destroy()),fe(this)};To.prototype._dataSourceAdded=function(e,t){t.entities.collectionChanged.addEventListener(To.prototype._onEntityCollectionChanged,this)};To.prototype._dataSourceRemoved=function(e,t){let n=t.entities;n.collectionChanged.removeEventListener(To.prototype._onEntityCollectionChanged,this),d(this.trackedEntity)&&n.getById(this.trackedEntity.id)===this.trackedEntity&&(this.trackedEntity=void 0),d(this.selectedEntity)&&n.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};To.prototype._onTick=function(e){let t=e.currentTime,n=this._dataSourceDisplay.update(t);this._allowDataSourcesToSuspendAnimation&&(this._clockViewModel.canAnimate=n);let i=this._entityView;if(d(i)){let u=this._trackedEntity;this._dataSourceDisplay.getBoundingSphere(u,!0,d_)===Wt.DONE&&i.update(t,d_)}let o,r=!1,s=this.selectedEntity,a=d(s)&&this._enableInfoOrSelection;a&&s.isShowing&&s.isAvailable(t)&&(this._dataSourceDisplay.getBoundingSphere(s,!0,d_)!==Wt.FAILED?o=d_.center:d(s.position)&&(o=s.position.getValue(t,o)),r=d(o));let c=d(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;d(c)&&(c.position=h.clone(o,c.position),c.showSelection=a&&r,c.update());let l=d(this._infoBox)?this._infoBox.viewModel:void 0;d(l)&&(l.showInfo=a,l.enableCamera=r,l.isCameraTracking=this.trackedEntity===this.selectedEntity,a?(l.titleText=g(s.name,s.id),l.description=Q.getValueOrDefault(s.description,t,"")):(l.titleText="",l.description=""))};To.prototype._onEntityCollectionChanged=function(e,t,n){let i=n.length;for(let o=0;o<i;o++){let r=n[o];this.trackedEntity===r&&(this.trackedEntity=void 0),this.selectedEntity===r&&(this.selectedEntity=void 0)}};To.prototype._onInfoBoxCameraClicked=function(e){if(e.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let n=this.selectedEntity.position;d(n)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};To.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};To.prototype._onInfoBoxClockClicked=function(e){this.selectedEntity=void 0};To.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};To.prototype._onDataSourceChanged=function(e){this.clockTrackedDataSource===e&&yXe(this.timeline,this.clock,e)};To.prototype._onDataSourceAdded=function(e,t){this._automaticallyTrackDataSourceClocks&&(this.clockTrackedDataSource=t);let n=t.entities.id,i=this._eventHelper.add(t.changedEvent,To.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[n]=i};To.prototype._onDataSourceRemoved=function(e,t){let n=this.clockTrackedDataSource===t,i=t.entities.id;if(this._dataSourceChangedListeners[i](),this._dataSourceChangedListeners[i]=void 0,n){let o=e.length;this._automaticallyTrackDataSourceClocks&&o>0?this.clockTrackedDataSource=e.get(o-1):this.clockTrackedDataSource=void 0}};To.prototype.zoomTo=function(e,t){return gXe(this,e,{offset:t},!1)};To.prototype.flyTo=function(e,t){return gXe(this,e,t,!0)};function gXe(e,t,n,i){Voe(e);let o=new Promise(r=>{e._completeZoom=function(s){r(s)}});return e._zoomPromise=o,e._zoomIsFlight=i,e._zoomOptions=n,Promise.resolve(t).then(function(r){if(e._zoomPromise===o){if(r instanceof Ys){let s;d(r.imageryProvider)?s=Promise.resolve(r.getImageryRectangle()):s=new Promise(a=>{let c=r.readyEvent.addEventListener(()=>{c(),a(r.getImageryRectangle())})}),s.then(function(a){return CC(a,e.scene)}).then(function(a){e._zoomPromise===o&&(e._zoomTarget=a)});return}if(r instanceof $s||r instanceof FG||r instanceof i_||r instanceof Cl){e._zoomTarget=r;return}if(r.isLoading&&d(r.loadingEvent)){let s=r.loadingEvent.addEventListener(function(){s(),e._zoomPromise===o&&(e._zoomTarget=r.entities.values.slice(0))});return}if(Array.isArray(r)){e._zoomTarget=r.slice(0);return}r=g(r.values,r),d(r.entities)&&(r=r.entities.values),Array.isArray(r)?e._zoomTarget=r.slice(0):e._zoomTarget=[r]}}),e.scene.requestRender(),o}function M3(e){e._zoomPromise=void 0,e._zoomTarget=void 0,e._zoomOptions=void 0}function Voe(e){let t=e._zoomPromise;d(t)&&(M3(e),e._completeZoom(!1))}To.prototype._postRender=function(){u5t(this),m5t(this)};function u5t(e){let t=e._zoomTarget;if(!d(t)||e.scene.mode===ae.MORPHING)return;let n=e.scene,i=n.camera,o=g(e._zoomOptions,{}),r;function s(u){d(o.offset)||(o.offset=new Il(0,-.5,u.radius)),r={offset:o.offset,duration:o.duration,maximumHeight:o.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)}},e._zoomIsFlight?i.flyToBoundingSphere(t.boundingSphere,r):(i.viewBoundingSphere(u,o.offset),i.lookAtTransform(P.IDENTITY),e._completeZoom(!0)),M3(e)}if(t instanceof FG){if(d(t.boundingSphere)){s(t.boundingSphere);return}let u=t.frameChanged.addEventListener(function(m){s(m.boundingSphere),u()});return}if(t instanceof $s||t instanceof i_||t instanceof Cl){s(t.boundingSphere);return}if(t instanceof me){r={destination:n.ellipsoid.cartographicToCartesian(t),duration:o.duration,maximumHeight:o.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)}},e._zoomIsFlight?i.flyTo(r):(i.setView(r),e._completeZoom(!0)),M3(e);return}let a=t,c=[];for(let u=0,m=a.length;u<m;u++){let f=e._dataSourceDisplay.getBoundingSphere(a[u],!1,d_);if(f===Wt.PENDING)return;f!==Wt.FAILED&&c.push(de.clone(d_))}if(c.length===0){Voe(e);return}e.trackedEntity=void 0;let l=de.fromBoundingSpheres(c);e._zoomIsFlight?(M3(e),i.flyToBoundingSphere(l,{duration:o.duration,maximumHeight:o.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)},offset:o.offset})):(i.viewBoundingSphere(l,o.offset),i.lookAtTransform(P.IDENTITY),M3(e),e._completeZoom(!0))}function m5t(e){if(!e._needTrackedEntityUpdate)return;let t=e._trackedEntity,n=e.clock.currentTime,i=Q.getValueOrUndefined(t.position,n);if(!d(i))return;let o=e.scene,r=e._dataSourceDisplay.getBoundingSphere(t,!1,d_);if(r===Wt.PENDING)return;let s=o.mode;(s===ae.COLUMBUS_VIEW||s===ae.SCENE2D)&&(o.screenSpaceCameraController.enableTranslate=!1),(s===ae.COLUMBUS_VIEW||s===ae.SCENE3D)&&(o.screenSpaceCameraController.enableTilt=!1);let a=r!==Wt.FAILED?d_:void 0;e._entityView=new m9(t,o,o.ellipsoid),e._entityView.update(n,a),e._needTrackedEntityUpdate=!1}var Zoe=To;var Trr=S(C(),1);function h5t(e){let t=document.createElement("div");t.className="cesium-viewer-cesium3DTilesInspectorContainer",e.container.appendChild(t);let n=new $D(t,e.scene);Object.defineProperties(e,{cesium3DTilesInspector:{get:function(){return n}}})}var Roe=h5t;var Crr=S(C(),1);function p5t(e){let t=document.createElement("div");t.className="cesium-viewer-cesiumInspectorContainer",e.container.appendChild(t);let n=new s3(t,e.scene);Object.defineProperties(e,{cesiumInspector:{get:function(){return n}}})}var Goe=p5t;var Rrr=S(C(),1);function f5t(e,t){t=g(t,g.EMPTY_OBJECT);let n=!0,i=g(t.flyToOnDrop,!0),o=new Se,r=g(t.clearOnDrop,!0),s=g(t.dropTarget,e.container),a=g(t.clampToGround,!0),c=t.proxy;s=li(s),Object.defineProperties(e,{dropTarget:{get:function(){return s},set:function(u){xXe(s,l),s=u,Eoe(s,l)}},dropEnabled:{get:function(){return n},set:function(u){u!==n&&(u?Eoe(s,l):xXe(s,l),n=u)}},dropError:{get:function(){return o}},clearOnDrop:{get:function(){return r},set:function(u){r=u}},flyToOnDrop:{get:function(){return i},set:function(u){i=u}},proxy:{get:function(){return c},set:function(u){c=u}},clampToGround:{get:function(){return a},set:function(u){a=u}}});function l(u){hL(u),r&&(e.entities.removeAll(),e.dataSources.removeAll());let m=u.dataTransfer.files,f=m.length;for(let b=0;b<f;b++){let p=m[b],x=new FileReader;x.onload=b5t(e,p,c,a),x.onerror=y5t(e,p),x.readAsText(p)}}Eoe(s,l),e.destroy=h5(e,e.destroy,function(){e.dropEnabled=!1}),e._handleDrop=l}function hL(e){e.stopPropagation(),e.preventDefault()}function xXe(e,t){let n=e;d(n)&&(n.removeEventListener("drop",t,!1),n.removeEventListener("dragenter",hL,!1),n.removeEventListener("dragover",hL,!1),n.removeEventListener("dragexit",hL,!1))}function Eoe(e,t){e.addEventListener("drop",t,!1),e.addEventListener("dragenter",hL,!1),e.addEventListener("dragover",hL,!1),e.addEventListener("dragexit",hL,!1)}function b5t(e,t,n,i){let o=e.scene;return function(r){let s=t.name;try{let a;if(/\.czml$/i.test(s))a=GN.load(JSON.parse(r.target.result),{sourceUri:s});else if(/\.geojson$/i.test(s)||/\.json$/i.test(s)||/\.topojson$/i.test(s))a=M9.load(JSON.parse(r.target.result),{sourceUri:s,clampToGround:i});else if(/\.(kml|kmz)$/i.test(s))a=B9.load(t,{sourceUri:s,proxy:n,camera:o.camera,canvas:o.canvas,clampToGround:i,screenOverlayContainer:e.container});else if(/\.gpx$/i.test(s))a=v9.load(t,{sourceUri:s,proxy:n});else{e.dropError.raiseEvent(e,s,`Unrecognized file: ${s}`);return}d(a)&&e.dataSources.add(a).then(function(c){e.flyToOnDrop&&e.flyTo(c)}).catch(function(c){e.dropError.raiseEvent(e,s,c)})}catch(a){e.dropError.raiseEvent(e,s,a)}}}function y5t(e,t){return function(n){e.dropError.raiseEvent(e,t.name,n.target.error)}}var Ioe=f5t;var wrr=S(C(),1);function g5t(e,t){t=g(t,g.EMPTY_OBJECT);let n=new x3({scene:e.scene,container:e.bottomContainer,lowFrameRateMessage:t.lowFrameRateMessage});Object.defineProperties(e,{performanceWatchdog:{get:function(){return n}}})}var Xoe=g5t;var Hrr=S(C(),1);var Brr=S(C(),1);var Frr=S(C(),1);function TXe(e){let t=e.split(`
|
|
19087
19087
|
`),n;for(n=0;n<t.length&&!t[n].match(/\S/);n++);if(n===t.length)return"";let i="",o=/^\s*/,s=t[n].match(o)[0].length;for(let a=n;a<t.length;a++){let c=t[a];c.match(o)[0].length>=s&&(c=c.slice(s)),i+=`${c}
|
|
19088
19088
|
`}return i}function Uh(e){this._scene=e,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let t=this;function n(o){let{name:r,initialValue:s}=o;t._definedProperties.push(r);let a=o.setPrimitiveFunction;a===!0&&(a=function(u){t._voxelPrimitive[r]=u});let c=o.getPrimitiveFunction;c===!0&&(c=function(){t[r]=t._voxelPrimitive[r]}),d(c)&&t._getPrimitiveFunctions.push(c);let l=Re.observable();return Re.defineProperty(t,r,{get:function(){return l()},set:function(u){typeof s=="number"&&typeof u=="string"&&(u=Number(u),isNaN(u)&&(u=s)),typeof s=="boolean"&&typeof u=="number"&&(u=u===1),l(u),d(a)&&d(t._voxelPrimitive)&&(a(u),e.requestRender())}}),t[r]=s,l}function i(o,r){return function(s){let a=t._voxelPrimitive[o].clone();a[r]=s,t._voxelPrimitive[o]=a}}n({name:"inspectorVisible",initialValue:!0}),n({name:"displayVisible",initialValue:!1}),n({name:"transformVisible",initialValue:!1}),n({name:"boundsVisible",initialValue:!1}),n({name:"clippingVisible",initialValue:!1}),n({name:"shaderVisible",initialValue:!1}),n({name:"shaderString",initialValue:"",getPrimitiveFunction:function(){let o=t._voxelPrimitive.customShader.fragmentShaderText;t.shaderString=TXe(o)}}),n({name:"shaderCompilationMessage",initialValue:""}),n({name:"shaderCompilationSuccess",initialValue:!0}),n({name:"depthTest",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"show",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"disableUpdate",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"debugDraw",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"jitter",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"nearestSampling",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"screenSpaceError",initialValue:4,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"stepSize",initialValue:1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"shapeIsBox",getPrimitiveFunction:function(){let o=t._voxelPrimitive.shape;t.shapeIsBox=o===Xo.BOX}}),n({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let o=t._voxelPrimitive.shape;t.shapeIsEllipsoid=o===Xo.ELLIPSOID}}),n({name:"shapeIsCylinder",getPrimitiveFunction:function(){let o=t._voxelPrimitive.shape;t.shapeIsCylinder=o===Xo.CYLINDER}}),n({name:"boundsBoxMaxX",initialValue:0,setPrimitiveFunction:i("maxBounds","x"),getPrimitiveFunction:function(){t.boundsBoxMaxX=t._voxelPrimitive.maxBounds.x}}),n({name:"boundsBoxMinX",initialValue:0,setPrimitiveFunction:i("minBounds","x"),getPrimitiveFunction:function(){t.boundsBoxMinX=t._voxelPrimitive.minBounds.x}}),n({name:"boundsBoxMaxY",initialValue:0,setPrimitiveFunction:i("maxBounds","y"),getPrimitiveFunction:function(){t.boundsBoxMaxY=t._voxelPrimitive.maxBounds.y}}),n({name:"boundsBoxMinY",initialValue:0,setPrimitiveFunction:i("minBounds","y"),getPrimitiveFunction:function(){t.boundsBoxMinY=t._voxelPrimitive.minBounds.y}}),n({name:"boundsBoxMaxZ",initialValue:0,setPrimitiveFunction:i("maxBounds","z"),getPrimitiveFunction:function(){t.boundsBoxMaxZ=t._voxelPrimitive.maxBounds.z}}),n({name:"boundsBoxMinZ",initialValue:0,setPrimitiveFunction:i("minBounds","z"),getPrimitiveFunction:function(){t.boundsBoxMinZ=t._voxelPrimitive.minBounds.z}}),n({name:"boundsEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:i("maxBounds","x"),getPrimitiveFunction:function(){t.boundsEllipsoidMaxLongitude=t._voxelPrimitive.maxBounds.x}}),n({name:"boundsEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:i("minBounds","x"),getPrimitiveFunction:function(){t.boundsEllipsoidMinLongitude=t._voxelPrimitive.minBounds.x}}),n({name:"boundsEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:i("maxBounds","y"),getPrimitiveFunction:function(){t.boundsEllipsoidMaxLatitude=t._voxelPrimitive.maxBounds.y}}),n({name:"boundsEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:i("minBounds","y"),getPrimitiveFunction:function(){t.boundsEllipsoidMinLatitude=t._voxelPrimitive.minBounds.y}}),n({name:"boundsEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:i("maxBounds","z"),getPrimitiveFunction:function(){t.boundsEllipsoidMaxHeight=t._voxelPrimitive.maxBounds.z}}),n({name:"boundsEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:i("minBounds","z"),getPrimitiveFunction:function(){t.boundsEllipsoidMinHeight=t._voxelPrimitive.minBounds.z}}),n({name:"boundsCylinderMaxRadius",initialValue:0,setPrimitiveFunction:i("maxBounds","x"),getPrimitiveFunction:function(){t.boundsCylinderMaxRadius=t._voxelPrimitive.maxBounds.x}}),n({name:"boundsCylinderMinRadius",initialValue:0,setPrimitiveFunction:i("minBounds","x"),getPrimitiveFunction:function(){t.boundsCylinderMinRadius=t._voxelPrimitive.minBounds.x}}),n({name:"boundsCylinderMaxHeight",initialValue:0,setPrimitiveFunction:i("maxBounds","y"),getPrimitiveFunction:function(){t.boundsCylinderMaxHeight=t._voxelPrimitive.maxBounds.y}}),n({name:"boundsCylinderMinHeight",initialValue:0,setPrimitiveFunction:i("minBounds","y"),getPrimitiveFunction:function(){t.boundsCylinderMinHeight=t._voxelPrimitive.minBounds.y}}),n({name:"boundsCylinderMaxAngle",initialValue:0,setPrimitiveFunction:i("maxBounds","z"),getPrimitiveFunction:function(){t.boundsCylinderMaxAngle=t._voxelPrimitive.maxBounds.z}}),n({name:"boundsCylinderMinAngle",initialValue:0,setPrimitiveFunction:i("minBounds","z"),getPrimitiveFunction:function(){t.boundsCylinderMinAngle=t._voxelPrimitive.minBounds.z}}),n({name:"clippingBoxMaxX",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","x"),getPrimitiveFunction:function(){t.clippingBoxMaxX=t._voxelPrimitive.maxClippingBounds.x}}),n({name:"clippingBoxMinX",initialValue:0,setPrimitiveFunction:i("minClippingBounds","x"),getPrimitiveFunction:function(){t.clippingBoxMinX=t._voxelPrimitive.minClippingBounds.x}}),n({name:"clippingBoxMaxY",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","y"),getPrimitiveFunction:function(){t.clippingBoxMaxY=t._voxelPrimitive.maxClippingBounds.y}}),n({name:"clippingBoxMinY",initialValue:0,setPrimitiveFunction:i("minClippingBounds","y"),getPrimitiveFunction:function(){t.clippingBoxMinY=t._voxelPrimitive.minClippingBounds.y}}),n({name:"clippingBoxMaxZ",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","z"),getPrimitiveFunction:function(){t.clippingBoxMaxZ=t._voxelPrimitive.maxClippingBounds.z}}),n({name:"clippingBoxMinZ",initialValue:0,setPrimitiveFunction:i("minClippingBounds","z"),getPrimitiveFunction:function(){t.clippingBoxMinZ=t._voxelPrimitive.minClippingBounds.z}}),n({name:"clippingEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","x"),getPrimitiveFunction:function(){t.clippingEllipsoidMaxLongitude=t._voxelPrimitive.maxClippingBounds.x}}),n({name:"clippingEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:i("minClippingBounds","x"),getPrimitiveFunction:function(){t.clippingEllipsoidMinLongitude=t._voxelPrimitive.minClippingBounds.x}}),n({name:"clippingEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","y"),getPrimitiveFunction:function(){t.clippingEllipsoidMaxLatitude=t._voxelPrimitive.maxClippingBounds.y}}),n({name:"clippingEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:i("minClippingBounds","y"),getPrimitiveFunction:function(){t.clippingEllipsoidMinLatitude=t._voxelPrimitive.minClippingBounds.y}}),n({name:"clippingEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","z"),getPrimitiveFunction:function(){t.clippingEllipsoidMaxHeight=t._voxelPrimitive.maxClippingBounds.z}}),n({name:"clippingEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:i("minClippingBounds","z"),getPrimitiveFunction:function(){t.clippingEllipsoidMinHeight=t._voxelPrimitive.minClippingBounds.z}}),n({name:"clippingCylinderMaxRadius",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","x"),getPrimitiveFunction:function(){t.clippingCylinderMaxRadius=t._voxelPrimitive.maxClippingBounds.x}}),n({name:"clippingCylinderMinRadius",initialValue:0,setPrimitiveFunction:i("minClippingBounds","x"),getPrimitiveFunction:function(){t.clippingCylinderMinRadius=t._voxelPrimitive.minClippingBounds.x}}),n({name:"clippingCylinderMaxHeight",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","y"),getPrimitiveFunction:function(){t.clippingCylinderMaxHeight=t._voxelPrimitive.maxClippingBounds.y}}),n({name:"clippingCylinderMinHeight",initialValue:0,setPrimitiveFunction:i("minClippingBounds","y"),getPrimitiveFunction:function(){t.clippingCylinderMinHeight=t._voxelPrimitive.minClippingBounds.y}}),n({name:"clippingCylinderMaxAngle",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","z"),getPrimitiveFunction:function(){t.clippingCylinderMaxAngle=t._voxelPrimitive.maxClippingBounds.z}}),n({name:"clippingCylinderMinAngle",initialValue:0,setPrimitiveFunction:i("minClippingBounds","z"),getPrimitiveFunction:function(){t.clippingCylinderMinAngle=t._voxelPrimitive.minClippingBounds.z}}),n({name:"translationX",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)},getPrimitiveFunction:function(){t.translationX=P.getTranslation(t._voxelPrimitive.modelMatrix,new h).x}}),n({name:"translationY",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)},getPrimitiveFunction:function(){t.translationY=P.getTranslation(t._voxelPrimitive.modelMatrix,new h).y}}),n({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)},getPrimitiveFunction:function(){t.translationZ=P.getTranslation(t._voxelPrimitive.modelMatrix,new h).z}}),n({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)},getPrimitiveFunction:function(){t.scaleX=P.getScale(t._voxelPrimitive.modelMatrix,new h).x}}),n({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)},getPrimitiveFunction:function(){t.scaleY=P.getScale(t._voxelPrimitive.modelMatrix,new h).y}}),n({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)},getPrimitiveFunction:function(){t.scaleZ=P.getScale(t._voxelPrimitive.modelMatrix,new h).z}}),n({name:"angleX",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)}}),n({name:"angleY",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)}}),n({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)}})}var x5t=new h,T5t=new h,_5t=new Gs,S5t=new $;function tb(e){let t=h.fromElements(e.translationX,e.translationY,e.translationZ,x5t),n=h.fromElements(e.scaleX,e.scaleY,e.scaleZ,T5t),i=_5t;i.heading=e.angleX,i.pitch=e.angleY,i.roll=e.angleZ;let o=$.fromHeadingPitchRoll(i,S5t),r=$.multiplyByScale(o,n,o);e._voxelPrimitive.modelMatrix=P.fromRotationTranslation(r,t,e._voxelPrimitive.modelMatrix)}Object.defineProperties(Uh.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(e){if(d(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),d(e)){this._voxelPrimitive=e;let t=this;t._customShaderCompilationRemoveCallback=t._voxelPrimitive.customShaderCompilationEvent.addEventListener(function(n){let i=t._voxelPrimitive.customShader.fragmentShaderText;t.shaderString=TXe(i),d(n)?(t.shaderCompilationMessage=n.message,t.shaderCompilationSuccess=!1):(t.shaderCompilationMessage="Shader compiled successfully!",t.shaderCompilationSuccess=!0)}),t._modelMatrixReady=!1;for(let n=0;n<t._getPrimitiveFunctions.length;n++)t._getPrimitiveFunctions[n]();t._modelMatrixReady=!0,tb(t)}}}});Uh.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};Uh.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};Uh.prototype.toggleTransform=function(){this.transformVisible=!this.transformVisible};Uh.prototype.toggleBounds=function(){this.boundsVisible=!this.boundsVisible};Uh.prototype.toggleClipping=function(){this.clippingVisible=!this.clippingVisible};Uh.prototype.toggleShader=function(){this.shaderVisible=!this.shaderVisible};Uh.prototype.compileShader=function(){d(this._voxelPrimitive)&&(this._voxelPrimitive.customShader=new eL({fragmentShaderText:this.shaderString,uniforms:this._voxelPrimitive.customShader.uniforms}))};Uh.prototype.shaderEditorKeyPress=function(e,t){if(t.keyCode===9){t.preventDefault();let n=t.target,i=n.selectionStart,o=n.selectionEnd,r=o,a=n.value.slice(i,o).split(`
|
|
19089
19089
|
`),c=a.length,l;if(t.shiftKey)for(l=0;l<c;++l)a[l][0]===" "&&(a[l][1]===" "?(a[l]=a[l].substr(2),r-=2):(a[l]=a[l].substr(1),r-=1));else for(l=0;l<c;++l)a[l]=` ${a[l]}`,r+=2;let u=a.join(`
|
|
19090
|
-
`);n.value=n.value.slice(0,i)+u+n.value.slice(o),n.selectionStart=i!==o?i:r,n.selectionEnd=r}else t.ctrlKey&&(t.keyCode===10||t.keyCode===13)&&this.compileShader();return!0};Uh.prototype.isDestroyed=function(){return!1};Uh.prototype.destroy=function(){let e=this;return this._definedProperties.forEach(function(t){Re.getObservable(e,t).dispose()}),fe(this)};var w3=Uh;function t4(e,t){e=li(e);let n=document.createElement("div"),i=new w3(t);this._viewModel=i,this._container=e,this._element=n;let o=document.createElement("div");o.textContent="Voxel Inspector",o.className="cesium-cesiumInspector-button",o.setAttribute("data-bind","click: toggleInspector"),n.appendChild(o),n.className="cesium-cesiumInspector cesium-VoxelInspector",n.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(n);let r=document.createElement("div");r.className="cesium-cesiumInspector-dropDown",n.appendChild(r);let s=jc.createSection,a=jc.createCheckbox,c=jc.createRangeInput,l=jc.createButton,u=s(r,"Display","displayVisible","toggleDisplay"),m=s(r,"Transform","transformVisible","toggleTransform"),f=s(r,"Bounds","boundsVisible","toggleBounds"),b=s(r,"Clipping","clippingVisible","toggleClipping"),p=s(r,"Shader","shaderVisible","toggleShader");u.appendChild(a("Depth Test","depthTest")),u.appendChild(a("Show","show")),u.appendChild(a("Disable Update","disableUpdate")),u.appendChild(a("Debug Draw","debugDraw")),u.appendChild(a("Jitter","jitter")),u.appendChild(a("Nearest Sampling","nearestSampling")),u.appendChild(c("Screen Space Error","screenSpaceError",0,128)),u.appendChild(c("Step Size","stepSize",0,2));let x=10,T=10,_=M.PI;m.appendChild(c("Translation X","translationX",-x,+x)),m.appendChild(c("Translation Y","translationY",-x,+x)),m.appendChild(c("Translation Z","translationZ",-x,+x)),m.appendChild(c("Scale X","scaleX",0,+T)),m.appendChild(c("Scale Y","scaleY",0,+T)),m.appendChild(c("Scale Z","scaleZ",0,+T)),m.appendChild(c("Heading","angleX",-_,+_)),m.appendChild(c("Pitch","angleY",-_,+_)),m.appendChild(c("Roll","angleZ",-_,+_));let L=Xo.getMinBounds(Xo.BOX),V=Xo.getMaxBounds(Xo.BOX),Z=h.fromElements(Xo.getMinBounds(Xo.ELLIPSOID).x,Xo.getMinBounds(Xo.ELLIPSOID).y,-oe.WGS84.maximumRadius,new h),G=h.fromElements(Xo.getMaxBounds(Xo.ELLIPSOID).x,Xo.getMaxBounds(Xo.ELLIPSOID).y,1e7,new h),I=Xo.getMinBounds(Xo.CYLINDER),w=Xo.getMaxBounds(Xo.CYLINDER);OG("Max X","Min X","Max Y","Min Y","Max Z","Min Z","boundsBoxMaxX","boundsBoxMinX","boundsBoxMaxY","boundsBoxMinY","boundsBoxMaxZ","boundsBoxMinZ",L,V,"shapeIsBox",f),OG("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","boundsEllipsoidMaxLongitude","boundsEllipsoidMinLongitude","boundsEllipsoidMaxLatitude","boundsEllipsoidMinLatitude","boundsEllipsoidMaxHeight","boundsEllipsoidMinHeight",Z,G,"shapeIsEllipsoid",f),OG("Max Radius","Min Radius","Max Height","Min Height","Max Angle","Min Angle","boundsCylinderMaxRadius","boundsCylinderMinRadius","boundsCylinderMaxHeight","boundsCylinderMinHeight","boundsCylinderMaxAngle","boundsCylinderMinAngle",I,w,"shapeIsCylinder",f),OG("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ",L,V,"shapeIsBox",b),OG("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight",Z,G,"shapeIsEllipsoid",b),OG("Max Radius","Min Radius","Max Height","Min Height","Max Angle","Min Angle","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxHeight","clippingCylinderMinHeight","clippingCylinderMaxAngle","clippingCylinderMinAngle",I,w,"shapeIsCylinder",b);let W=document.createElement("div");p.appendChild(W);let v=document.createElement("textarea");v.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),W.className="cesium-cesiumInspector-styleEditor",W.appendChild(v);let N=l("Compile (Ctrl+Enter)","compileShader");W.appendChild(N);let y=document.createElement("label");y.style.display="block",y.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),W.appendChild(y),Re.applyBindings(i,n)}Object.defineProperties(t4.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});t4.prototype.isDestroyed=function(){return!1};t4.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),fe(this)};function OG(e,t,n,i,o,r,s,a,c,l,u,m,f,b,p,x){let T=jc.createRangeInput,_=f,L=b,V=x.appendChild(document.createElement("div"));V.setAttribute("data-bind",`if: ${p}`),V.appendChild(T(e,s,_.x,L.x)),V.appendChild(T(t,a,_.x,L.x)),V.appendChild(T(n,c,_.y,L.y)),V.appendChild(T(i,l,_.y,L.y)),V.appendChild(T(o,u,_.z,L.z)),V.appendChild(T(r,m,_.z,L.z))}var W3=t4;function C5t(e){let t=document.createElement("div");t.className="cesium-viewer-voxelInspectorContainer",e.container.appendChild(t);let n=new W3(t,e.scene);Object.defineProperties(e,{voxelInspector:{get:function(){return n}}})}var Moe=C5t;globalThis.CESIUM_VERSION="1.122.0";globalThis.MAPGIS_VERSION="17.6.
|
|
19090
|
+
`);n.value=n.value.slice(0,i)+u+n.value.slice(o),n.selectionStart=i!==o?i:r,n.selectionEnd=r}else t.ctrlKey&&(t.keyCode===10||t.keyCode===13)&&this.compileShader();return!0};Uh.prototype.isDestroyed=function(){return!1};Uh.prototype.destroy=function(){let e=this;return this._definedProperties.forEach(function(t){Re.getObservable(e,t).dispose()}),fe(this)};var w3=Uh;function t4(e,t){e=li(e);let n=document.createElement("div"),i=new w3(t);this._viewModel=i,this._container=e,this._element=n;let o=document.createElement("div");o.textContent="Voxel Inspector",o.className="cesium-cesiumInspector-button",o.setAttribute("data-bind","click: toggleInspector"),n.appendChild(o),n.className="cesium-cesiumInspector cesium-VoxelInspector",n.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(n);let r=document.createElement("div");r.className="cesium-cesiumInspector-dropDown",n.appendChild(r);let s=jc.createSection,a=jc.createCheckbox,c=jc.createRangeInput,l=jc.createButton,u=s(r,"Display","displayVisible","toggleDisplay"),m=s(r,"Transform","transformVisible","toggleTransform"),f=s(r,"Bounds","boundsVisible","toggleBounds"),b=s(r,"Clipping","clippingVisible","toggleClipping"),p=s(r,"Shader","shaderVisible","toggleShader");u.appendChild(a("Depth Test","depthTest")),u.appendChild(a("Show","show")),u.appendChild(a("Disable Update","disableUpdate")),u.appendChild(a("Debug Draw","debugDraw")),u.appendChild(a("Jitter","jitter")),u.appendChild(a("Nearest Sampling","nearestSampling")),u.appendChild(c("Screen Space Error","screenSpaceError",0,128)),u.appendChild(c("Step Size","stepSize",0,2));let x=10,T=10,_=M.PI;m.appendChild(c("Translation X","translationX",-x,+x)),m.appendChild(c("Translation Y","translationY",-x,+x)),m.appendChild(c("Translation Z","translationZ",-x,+x)),m.appendChild(c("Scale X","scaleX",0,+T)),m.appendChild(c("Scale Y","scaleY",0,+T)),m.appendChild(c("Scale Z","scaleZ",0,+T)),m.appendChild(c("Heading","angleX",-_,+_)),m.appendChild(c("Pitch","angleY",-_,+_)),m.appendChild(c("Roll","angleZ",-_,+_));let L=Xo.getMinBounds(Xo.BOX),V=Xo.getMaxBounds(Xo.BOX),Z=h.fromElements(Xo.getMinBounds(Xo.ELLIPSOID).x,Xo.getMinBounds(Xo.ELLIPSOID).y,-oe.WGS84.maximumRadius,new h),G=h.fromElements(Xo.getMaxBounds(Xo.ELLIPSOID).x,Xo.getMaxBounds(Xo.ELLIPSOID).y,1e7,new h),I=Xo.getMinBounds(Xo.CYLINDER),w=Xo.getMaxBounds(Xo.CYLINDER);OG("Max X","Min X","Max Y","Min Y","Max Z","Min Z","boundsBoxMaxX","boundsBoxMinX","boundsBoxMaxY","boundsBoxMinY","boundsBoxMaxZ","boundsBoxMinZ",L,V,"shapeIsBox",f),OG("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","boundsEllipsoidMaxLongitude","boundsEllipsoidMinLongitude","boundsEllipsoidMaxLatitude","boundsEllipsoidMinLatitude","boundsEllipsoidMaxHeight","boundsEllipsoidMinHeight",Z,G,"shapeIsEllipsoid",f),OG("Max Radius","Min Radius","Max Height","Min Height","Max Angle","Min Angle","boundsCylinderMaxRadius","boundsCylinderMinRadius","boundsCylinderMaxHeight","boundsCylinderMinHeight","boundsCylinderMaxAngle","boundsCylinderMinAngle",I,w,"shapeIsCylinder",f),OG("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ",L,V,"shapeIsBox",b),OG("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight",Z,G,"shapeIsEllipsoid",b),OG("Max Radius","Min Radius","Max Height","Min Height","Max Angle","Min Angle","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxHeight","clippingCylinderMinHeight","clippingCylinderMaxAngle","clippingCylinderMinAngle",I,w,"shapeIsCylinder",b);let W=document.createElement("div");p.appendChild(W);let v=document.createElement("textarea");v.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),W.className="cesium-cesiumInspector-styleEditor",W.appendChild(v);let N=l("Compile (Ctrl+Enter)","compileShader");W.appendChild(N);let y=document.createElement("label");y.style.display="block",y.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),W.appendChild(y),Re.applyBindings(i,n)}Object.defineProperties(t4.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});t4.prototype.isDestroyed=function(){return!1};t4.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),fe(this)};function OG(e,t,n,i,o,r,s,a,c,l,u,m,f,b,p,x){let T=jc.createRangeInput,_=f,L=b,V=x.appendChild(document.createElement("div"));V.setAttribute("data-bind",`if: ${p}`),V.appendChild(T(e,s,_.x,L.x)),V.appendChild(T(t,a,_.x,L.x)),V.appendChild(T(n,c,_.y,L.y)),V.appendChild(T(i,l,_.y,L.y)),V.appendChild(T(o,u,_.z,L.z)),V.appendChild(T(r,m,_.z,L.z))}var W3=t4;function C5t(e){let t=document.createElement("div");t.className="cesium-viewer-voxelInspectorContainer",e.container.appendChild(t);let n=new W3(t,e.scene);Object.defineProperties(e,{voxelInspector:{get:function(){return n}}})}var Moe=C5t;globalThis.CESIUM_VERSION="1.122.0";globalThis.MAPGIS_VERSION="17.6.7";var L5t="1.122.0",V5t="17.6.7";return WXe(Z5t);})();
|