diff --git a/docs/assets/app-54d0494e.js b/docs/assets/app-54d0494e.js index 1a8e0ca..1285f5f 100644 --- a/docs/assets/app-54d0494e.js +++ b/docs/assets/app-54d0494e.js @@ -184,7 +184,7 @@ var wK="/**\n * @license\n * Copyright (c) 2014-2015, NVIDIA CORPORATION. All ri * Copyright (c) Steve Sanderson * MIT license */ -var GUt="__knockoutObservables",CUt="__knockoutSubscribable";function Kut(b,dV){if(!b)throw new Error("When calling ko.track, you must pass an object as the first parameter.");var FV=this,EV=vut(b,!0);return(dV=dV||Object.getOwnPropertyNames(b)).forEach((function(dV){if(dV!==GUt&&dV!==CUt&&!(dV in EV)){var qV=b[dV],$V=qV instanceof Array,dd=FV.isObservable(qV)?qV:$V?FV.observableArray(qV):FV.observable(qV);Object.defineProperty(b,dV,{configurable:!0,enumerable:!0,get:dd,set:FV.isWriteableObservable(dd)?dd:void 0}),EV[dV]=dd,$V&&ugd(FV,dd)}})),b}function vut(b,dV){var FV=b[GUt];return!FV&&dV&&(FV={},Object.defineProperty(b,GUt,{value:FV})),FV}function Xgd(b,dV,FV){var EV={owner:b,deferEvaluation:!0};if("function"==typeof FV)EV.read=FV;else{if("value"in FV)throw new Error('For ko.defineProperty, you must not specify a "value" for the property. You must provide a "get" function.');if("function"!=typeof FV.get)throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, or an options object containing a function called "get".');EV.read=FV.get,EV.write=FV.set}return b[dV]=this.computed(EV),Kut.call(this,b,[dV]),b}function ugd(b,dV){var FV=null;b.computed((function(){FV&&(FV.dispose(),FV=null);var EV=dV();EV instanceof Array&&(FV=xgd(b,dV,EV))}))}function xgd(b,dV,FV){return Lgd(b,FV).subscribe(dV)}function Lgd(b,dV){var FV=dV[CUt];if(!FV){FV=new b.subscribable,Object.defineProperty(dV,CUt,{value:FV});var EV={};Jgd(dV,FV,EV),Igd(b,dV,FV,EV)}return FV}function Jgd(b,dV,FV){["pop","push","reverse","shift","sort","splice","unshift"].forEach((function(EV){var qV=b[EV];b[EV]=function(){var b=qV.apply(this,arguments);return!0!==FV.pause&&dV.notifySubscribers(this),b}}))}function Igd(b,dV,FV,EV){["remove","removeAll","destroy","destroyAll","replace"].forEach((function(qV){Object.defineProperty(dV,qV,{enumerable:!1,value:function(){var $V;EV.pause=!0;try{$V=b.observableArray.fn[qV].apply(b.observableArray(dV),arguments)}finally{EV.pause=!1}return FV.notifySubscribers(dV),$V}})}))}function Put(b,dV){if(!b)return null;var FV=vut(b,!1);return FV&&FV[dV]||null}function Ygd(b,dV){var FV=Put(b,dV);FV&&FV.valueHasMutated()}function zgd(b){b.track=Kut,b.getObservable=Put,b.valueHasMutated=Ygd,b.defineProperty=Xgd}var jP={attachToKo:zgd};W(A(),1);var _ut="http://www.w3.org/2000/svg",qut="cesium-svgPath-svg",ggd={register:function(b){b.bindingHandlers.cesiumSvgPath={init:function(dV,FV){let EV=document.createElementNS(_ut,"svg:svg");EV.setAttribute("class",qut);let qV=document.createElementNS(_ut,"path");return EV.appendChild(qV),b.virtualElements.setDomNodeChildren(dV,[EV]),b.computed({read:function(){let dV=b.unwrap(FV());qV.setAttribute("d",b.unwrap(dV.path));let $V=b.unwrap(dV.width),dd=b.unwrap(dV.height);EV.setAttribute("width",$V),EV.setAttribute("height",dd),EV.setAttribute("viewBox",`0 0 ${$V} ${dd}`),dV.css&&EV.setAttribute("class",`${qut} ${b.unwrap(dV.css)}`)},disposeWhenNodeIsRemoved:dV}),{controlsDescendantBindings:!0}}},b.virtualElements.allowedBindings.cesiumSvgPath=!0}},OP=ggd;jP.attachToKo(Rw),OP.register(Rw);var zt=Rw;function bx(b){n(b)||(b=new As),this._clock=b,this._eventHelper=new DU,this._eventHelper.add(b.onTick,this.synchronize,this),this.systemTime=zt.observable(Rt.now()),this.systemTime.equalityComparer=Rt.equals,this.startTime=zt.observable(b.startTime),this.startTime.equalityComparer=Rt.equals,this.startTime.subscribe((function(dV){b.startTime=dV,this.synchronize()}),this),this.stopTime=zt.observable(b.stopTime),this.stopTime.equalityComparer=Rt.equals,this.stopTime.subscribe((function(dV){b.stopTime=dV,this.synchronize()}),this),this.currentTime=zt.observable(b.currentTime),this.currentTime.equalityComparer=Rt.equals,this.currentTime.subscribe((function(dV){b.currentTime=dV,this.synchronize()}),this),this.multiplier=zt.observable(b.multiplier),this.multiplier.subscribe((function(dV){b.multiplier=dV,this.synchronize()}),this),this.clockStep=zt.observable(b.clockStep),this.clockStep.subscribe((function(dV){b.clockStep=dV,this.synchronize()}),this),this.clockRange=zt.observable(b.clockRange),this.clockRange.subscribe((function(dV){b.clockRange=dV,this.synchronize()}),this),this.canAnimate=zt.observable(b.canAnimate),this.canAnimate.subscribe((function(dV){b.canAnimate=dV,this.synchronize()}),this),this.shouldAnimate=zt.observable(b.shouldAnimate),this.shouldAnimate.subscribe((function(dV){b.shouldAnimate=dV,this.synchronize()}),this),zt.track(this,["systemTime","startTime","stopTime","currentTime","multiplier","clockStep","clockRange","canAnimate","shouldAnimate"])}Object.defineProperties(bx.prototype,{clock:{get:function(){return this._clock}}}),bx.prototype.synchronize=function(){let b=this._clock;this.systemTime=Rt.now(),this.startTime=b.startTime,this.stopTime=b.stopTime,this.currentTime=b.currentTime,this.multiplier=b.multiplier,this.clockStep=b.clockStep,this.clockRange=b.clockRange,this.canAnimate=b.canAnimate,this.shouldAnimate=b.shouldAnimate},bx.prototype.isDestroyed=function(){return!1},bx.prototype.destroy=function(){this._eventHelper.removeAll(),Dt(this)};var fP=bx;W(A(),1),W(A(),1);var Gx={createCheckbox:function(b,dV,FV){let EV=document.createElement("div"),qV=document.createElement("label"),$V=document.createElement("input");$V.type="checkbox";let dd=`checked: ${dV}`;return n(FV)&&(dd+=`, enable: ${FV}`),$V.setAttribute("data-bind",dd),qV.appendChild($V),qV.appendChild(document.createTextNode(b)),EV.appendChild(qV),EV},createSection:function(b,dV,FV,EV){let qV=document.createElement("div");qV.className="cesium-cesiumInspector-section",qV.setAttribute("data-bind",`css: { "cesium-cesiumInspector-section-collapsed": !${FV} }`),b.appendChild(qV);let $V=document.createElement("h3");$V.className="cesium-cesiumInspector-sectionHeader",$V.appendChild(document.createTextNode(dV)),$V.setAttribute("data-bind",`click: ${EV}`),qV.appendChild($V);let dd=document.createElement("div");return dd.className="cesium-cesiumInspector-sectionContent",qV.appendChild(dd),dd},createRangeInput:function(b,dV,FV,EV,qV,$V){$V=m($V,dV);let dd=document.createElement("input");dd.setAttribute("data-bind",`value: ${$V}`),dd.type="number";let Td=document.createElement("input");Td.type="range",Td.min=FV,Td.max=EV,Td.step=m(qV,"any"),Td.setAttribute("data-bind",`valueUpdate: "input", value: ${dV}`);let Ed=document.createElement("div");Ed.appendChild(Td);let kd=document.createElement("div");return kd.className="cesium-cesiumInspector-slider",kd.appendChild(document.createTextNode(b)),kd.appendChild(dd),kd.appendChild(Ed),kd},createButton:function(b,dV,FV){let EV=document.createElement("button");EV.type="button",EV.textContent=b,EV.className="cesium-cesiumInspector-pickButton";let qV=`click: ${dV}`;return n(FV)&&(qV+=`, css: {"cesium-cesiumInspector-pickButtonHighlight" : ${FV}}`),EV.setAttribute("data-bind",qV),EV}},nn=Gx;function txt(b,dV){this._command=b,dV=m(dV,m.EMPTY_OBJECT),this.toggled=m(dV.toggled,!1),this.tooltip=m(dV.tooltip,""),zt.track(this,["toggled","tooltip"])}W(A(),1),Object.defineProperties(txt.prototype,{command:{get:function(){return this._command}}});var Br=txt;function jgd(b,dV){dV=m(dV,!0);let FV=new bt,EV=new bt;function V(){let dV,qV={args:arguments,cancel:!1};return FV.raiseEvent(qV),qV.cancel||(dV=b.apply(null,arguments),EV.raiseEvent(dV)),dV}return V.canExecute=dV,zt.track(V,["canExecute"]),Object.defineProperties(V,{beforeExecute:{value:FV},afterExecute:{value:EV}}),V}W(A(),1);var Wl=jgd;function Ogd(b,dV,FV,EV,qV){return FV.call(EV,b[dV]),zt.getObservable(b,dV).subscribe(FV,EV,qV)}W(A(),1);var rM=Ogd;function dxt(b){let dV=(b=m(b,m.EMPTY_OBJECT)).globe,FV=m(b.imageryProviderViewModels,[]),EV=m(b.terrainProviderViewModels,[]);this._globe=dV,this.imageryProviderViewModels=FV.slice(0),this.terrainProviderViewModels=EV.slice(0),this.dropDownVisible=!1,zt.track(this,["imageryProviderViewModels","terrainProviderViewModels","dropDownVisible"]);let qV=zt.getObservable(this,"imageryProviderViewModels"),$V=zt.pureComputed((function(){let b,dV=qV(),FV={};for(b=0;b=0;dV--){let b=mM.fromProviderAsync(FV[dV]);qV.add(b,0),this._currentImageryLayers.push(b)}}else{this._currentImageryLayers=[];let dV=mM.fromProviderAsync(FV);if(dV.name=b.name,$V)qV.add(dV,0);else{let b=qV.get(0);n(b)&&qV.remove(b),qV.add(dV,0)}this._currentImageryLayers.push(dV)}}Ed(b),this.dropDownVisible=!1}}),this.selectedTerrain=void 0;let kd=zt.observable();zt.defineProperty(this,"selectedTerrain",{get:function(){return kd()},set:function(b){if(kd()===b)return void(this.dropDownVisible=!1);let dV;if(n(b)&&(dV=b.creationCommand()),n(dV)&&!n(dV.then))this._globe.depthTestAgainstTerrain=!(dV instanceof OZ),this._globe.terrainProvider=dV;else if(n(dV)){let b=!1,FV=this._globe.terrainProviderChanged.addEventListener((()=>{b=!0,FV()})),EV=new YP(dV).readyEvent.addEventListener((dV=>{b||(this._globe.depthTestAgainstTerrain=!(dV instanceof OZ),this._globe.terrainProvider=dV,EV())}))}kd(b),this.dropDownVisible=!1}});let Sd=this;this._toggleDropDown=Wl((function(){Sd.dropDownVisible=!Sd.dropDownVisible})),this.selectedImagery=m(b.selectedImageryProviderViewModel,FV[0]),this.selectedTerrain=m(b.selectedTerrainProviderViewModel,EV[0])}W(A(),1),W(A(),1),Object.defineProperties(dxt.prototype,{toggleDropDown:{get:function(){return this._toggleDropDown}},globe:{get:function(){return this._globe}}});var HP=dxt;function KP(b,dV){b=wl(b);let FV=new HP(dV),EV=document.createElement("button");EV.type="button",EV.className="cesium-button cesium-toolbar-button",EV.setAttribute("data-bind","attr: { title: buttonTooltip },click: toggleDropDown"),b.appendChild(EV);let qV=document.createElement("img");qV.setAttribute("draggable","false"),qV.className="cesium-baseLayerPicker-selected",qV.setAttribute("data-bind","attr: { src: buttonImageUrl }, visible: !!buttonImageUrl"),EV.appendChild(qV);let $V=document.createElement("div");$V.className="cesium-baseLayerPicker-dropDown",$V.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-dropDown-visible" : dropDownVisible }'),b.appendChild($V);let dd=document.createElement("div");dd.className="cesium-baseLayerPicker-sectionTitle",dd.setAttribute("data-bind","visible: imageryProviderViewModels.length > 0"),dd.innerHTML="Imagery",$V.appendChild(dd);let Td=document.createElement("div");Td.className="cesium-baseLayerPicker-section",Td.setAttribute("data-bind","foreach: _imageryProviders"),$V.appendChild(Td);let Ed=document.createElement("div");Ed.className="cesium-baseLayerPicker-category",Td.appendChild(Ed);let kd=document.createElement("div");kd.className="cesium-baseLayerPicker-categoryTitle",kd.setAttribute("data-bind","text: name"),Ed.appendChild(kd);let Sd=document.createElement("div");Sd.className="cesium-baseLayerPicker-choices",Sd.setAttribute("data-bind","foreach: providers"),Ed.appendChild(Sd);let Xd=document.createElement("div");Xd.className="cesium-baseLayerPicker-item",Xd.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-selectedItem" : $data === $parents[1].selectedImagery },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedImagery = $data; }'),Sd.appendChild(Xd);let Cd=document.createElement("img");Cd.className="cesium-baseLayerPicker-itemIcon",Cd.setAttribute("data-bind","attr: { src: iconUrl }"),Cd.setAttribute("draggable","false"),Xd.appendChild(Cd);let _d=document.createElement("div");_d.className="cesium-baseLayerPicker-itemLabel",_d.setAttribute("data-bind","text: name"),Xd.appendChild(_d);let el=document.createElement("div");el.className="cesium-baseLayerPicker-sectionTitle",el.setAttribute("data-bind","visible: terrainProviderViewModels.length > 0"),el.innerHTML="Terrain",$V.appendChild(el);let Xl=document.createElement("div");Xl.className="cesium-baseLayerPicker-section",Xl.setAttribute("data-bind","foreach: _terrainProviders"),$V.appendChild(Xl);let Il=document.createElement("div");Il.className="cesium-baseLayerPicker-category",Xl.appendChild(Il);let Hl=document.createElement("div");Hl.className="cesium-baseLayerPicker-categoryTitle",Hl.setAttribute("data-bind","text: name"),Il.appendChild(Hl);let $l=document.createElement("div");$l.className="cesium-baseLayerPicker-choices",$l.setAttribute("data-bind","foreach: providers"),Il.appendChild($l);let tR=document.createElement("div");tR.className="cesium-baseLayerPicker-item",tR.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(tR);let ER=document.createElement("img");ER.className="cesium-baseLayerPicker-itemIcon",ER.setAttribute("data-bind","attr: { src: iconUrl }"),ER.setAttribute("draggable","false"),tR.appendChild(ER);let sR=document.createElement("div");sR.className="cesium-baseLayerPicker-itemLabel",sR.setAttribute("data-bind","text: name"),tR.appendChild(sR),zt.applyBindings(FV,EV),zt.applyBindings(FV,$V),this._viewModel=FV,this._container=b,this._element=EV,this._dropPanel=$V,this._closeDropDown=function(b){EV.contains(b.target)||$V.contains(b.target)||(FV.dropDownVisible=!1)},Se.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(KP.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),KP.prototype.isDestroyed=function(){return!1},KP.prototype.destroy=function(){return Se.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),zt.cleanNode(this._element),zt.cleanNode(this._dropPanel),this._container.removeChild(this._element),this._container.removeChild(this._dropPanel),Dt(this)};var vP=KP;function ext(b){let dV=b.creationFunction;n(dV.canExecute)||(dV=Wl(dV)),this._creationCommand=dV,this.name=b.name,this.tooltip=b.tooltip,this.iconUrl=b.iconUrl,this._category=m(b.category,""),zt.track(this,["name","tooltip","iconUrl"])}W(A(),1),Object.defineProperties(ext.prototype,{creationCommand:{get:function(){return this._creationCommand}},category:{get:function(){return this._category}}});var vU=ext;function fgd(){let b=[],dV=devicePixelRatio>=2;return b.push(new vU({name:"Bing Maps Aerial",iconUrl:ge("Widgets/Images/ImageryProviders/bingAerial.png"),tooltip:"Bing Maps aerial imagery, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return lp({style:ep.AERIAL})}})),b.push(new vU({name:"Bing Maps Aerial with Labels",iconUrl:ge("Widgets/Images/ImageryProviders/bingAerialLabels.png"),tooltip:"Bing Maps aerial imagery with labels, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return lp({style:ep.AERIAL_WITH_LABELS})}})),b.push(new vU({name:"Bing Maps Roads",iconUrl:ge("Widgets/Images/ImageryProviders/bingRoads.png"),tooltip:"Bing Maps standard road maps, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return lp({style:ep.ROAD})}})),b.push(new vU({name:"ArcGIS World Imagery",iconUrl:ge("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 \nhttps://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9",category:"Other",creationFunction:function(){return tp.fromBasemapType(js.SATELLITE,{enablePickFeatures:!1})}})),b.push(new vU({name:"ArcGIS World Hillshade",iconUrl:ge("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 \nhttps://www.arcgis.com/home/item.html?id=1b243539f4514b6ba35e7d995890db1d",category:"Other",creationFunction:function(){return tp.fromBasemapType(js.HILLSHADE,{enablePickFeatures:!1})}})),b.push(new vU({name:"Esri World Ocean",iconUrl:ge("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 \nhttps://www.arcgis.com/home/item.html?id=1e126e7520f9466c9ca28b8f28b5e500",category:"Other",creationFunction:function(){return tp.fromBasemapType(js.OCEANS,{enablePickFeatures:!1})}})),b.push(new vU({name:"Open­Street­Map",iconUrl:ge("Widgets/Images/ImageryProviders/openStreetMap.png"),tooltip:"OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world.\nhttp://www.openstreetmap.org",category:"Other",creationFunction:function(){return new kp({url:"https://tile.openstreetmap.org/"})}})),b.push(new vU({name:"Stadia x Stamen Watercolor",iconUrl:ge("Widgets/Images/ImageryProviders/stamenWatercolor.png"),tooltip:"Based on the original basemaps created for the Knight Foundation and reminiscent of hand drawn maps, the watercolor maps from Stamen Design apply raster effect area washes and organic edges over a paper texture to add warm pop to any map.\nhttps://docs.stadiamaps.com/map-styles/stamen-watercolor/",category:"Other",creationFunction:function(){return new kp({url:"https://tiles.stadiamaps.com/tiles/stamen_watercolor/",fileExtension:"jpg",credit:'© Stamen Design\n © Stadia Maps\n © OpenMapTiles\n © OpenStreetMap contributors'})}})),b.push(new vU({name:"Stadia x Stamen Toner",iconUrl:ge("Widgets/Images/ImageryProviders/stamenToner.png"),tooltip:"Based on the original basemaps created for the Knight Foundation and the most popular of the excellent styles from Stamen Design, these high-contrast B+W (black and white) maps are the perfect backdrop for your colorful and eye-catching overlays.\nhttps://docs.stadiamaps.com/map-styles/stamen-toner/",category:"Other",creationFunction:function(){return new kp({url:"https://tiles.stadiamaps.com/tiles/stamen_toner/",retinaTiles:dV,credit:'© Stamen Design\n © Stadia Maps\n © OpenMapTiles\n © OpenStreetMap contributors'})}})),b.push(new vU({name:"Stadia Alidade Smooth",iconUrl:ge("Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png"),tooltip:"Stadia's custom Alidade Smooth style is designed for maps that use a lot of markers or overlays. It features a muted color scheme and fewer points of interest to allow your added data to shine.\nhttps://docs.stadiamaps.com/map-styles/alidade-smooth/",category:"Other",creationFunction:function(){return new kp({url:"https://tiles.stadiamaps.com/tiles/alidade_smooth/",retinaTiles:dV,credit:'© Stadia Maps\n © OpenMapTiles\n © OpenStreetMap contributors'})}})),b.push(new vU({name:"Stadia Alidade Smooth Dark",iconUrl:ge("Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png"),tooltip:"Stadia Alidade Smooth Dark, like its lighter cousin, is also designed to stay out of the way. It just flips the dark mode switch on the color scheme. With the lights out, your data can now literally shine.\nhttps://docs.stadiamaps.com/map-styles/alidade-smooth-dark/",category:"Other",creationFunction:function(){return new kp({url:"https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/",retinaTiles:dV,credit:'© Stadia Maps\n © OpenMapTiles\n © OpenStreetMap contributors'})}})),b.push(new vU({name:"Sentinel-2",iconUrl:ge("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 dp.fromAssetId(3954)}})),b.push(new vU({name:"Blue Marble",iconUrl:ge("Widgets/Images/ImageryProviders/blueMarble.png"),tooltip:"Blue Marble Next Generation July, 2004 imagery from NASA.",category:"Cesium ion",creationFunction:function(){return dp.fromAssetId(3845)}})),b.push(new vU({name:"Earth at night",iconUrl:ge("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 dp.fromAssetId(3812)}})),b.push(new vU({name:"Natural Earth II",iconUrl:ge("Widgets/Images/ImageryProviders/naturalEarthII.png"),tooltip:"Natural Earth II, darkened for contrast.\nhttp://www.naturalearthdata.com/",category:"Cesium ion",creationFunction:function(){return OQ.fromUrl(ge("Assets/Textures/NaturalEarthII"))}})),b}W(A(),1);var PP=fgd;function Hgd(){let b=[];return b.push(new vU({name:"WGS84 Ellipsoid",iconUrl:ge("Widgets/Images/TerrainProviders/Ellipsoid.png"),tooltip:"WGS84 standard ellipsoid, also known as EPSG:4326",category:"Cesium ion",creationFunction:function(){return new OZ}})),b.push(new vU({name:"Cesium World Terrain",iconUrl:ge("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 fB({requestWaterMask:!0,requestVertexNormals:!0})}})),b}W(A(),1);var _P=Hgd;W(A(),1);var wr="http://www.w3.org/2000/svg",Txt="http://www.w3.org/1999/xlink",qP,Cx=K.fromCssColorString("rgba(247,250,255,0.384)"),$P=K.fromCssColorString("rgba(143,191,255,0.216)"),XUt=K.fromCssColorString("rgba(153,197,255,0.098)"),t_=K.fromCssColorString("rgba(255,255,255,0.086)"),Kgd=K.fromCssColorString("rgba(255,255,255,0.267)"),vgd=K.fromCssColorString("rgba(255,255,255,0)"),lxt=K.fromCssColorString("rgba(66,67,68,0.3)"),Vxt=K.fromCssColorString("rgba(0,0,0,0.5)");function Bp(b){return K.fromCssColorString(window.getComputedStyle(b).getPropertyValue("color"))}var Xx={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 ZE(b){let dV=document.createElementNS(wr,b.tagName);for(let FV in b)if(b.hasOwnProperty(FV)&&"tagName"!==FV)if("children"===FV){let FV=b.children.length;for(let EV=0;EVEd.right||qVEd.bottom))return;let kd=b._shuttleRingPointer.getBoundingClientRect(),Sd=qV-dd-Ed.left,Xd=$V-Td-Ed.top,Cd=180*Math.atan2(Xd,Sd)/Math.PI+90;Cd>180&&(Cd-=360);let _d=FV.shuttleRingAngle;EV||qVkd.left&&$V>kd.top&&$V_d&&FV.faster(),dV.preventDefault()}else b===qP&&(qP=void 0),FV.shuttleRingDragging=!1}function iA(b,dV){this._viewModel=dV,this.svgElement=b,this._enabled=void 0,this._toggled=void 0;let FV=this;this._clickFunction=function(){let b=FV._viewModel.command;b.canExecute&&b()},b.addEventListener("click",this._clickFunction,!0),this._subscriptions=[rM(dV,"toggled",this.setToggled,this),rM(dV,"tooltip",this.setTooltip,this),rM(dV.command,"canExecute",this.setEnabled,this)]}function Uw(b,dV){b=wl(b),this._viewModel=dV,this._container=b,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 FV=b.ownerDocument,EV=document.createElement("style");EV.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); }",FV.head.insertBefore(EV,FV.head.childNodes[0]);let qV=document.createElement("div");qV.className="cesium-animation-theme",qV.innerHTML='
',this._theme=qV,this._themeNormal=qV.childNodes[0],this._themeHover=qV.childNodes[1],this._themeSelect=qV.childNodes[2],this._themeDisabled=qV.childNodes[3],this._themeKnob=qV.childNodes[4],this._themePointer=qV.childNodes[5],this._themeSwoosh=qV.childNodes[6],this._themeSwooshHover=qV.childNodes[7];let $V=document.createElementNS(wr,"svg:svg");this._svgNode=$V,$V.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",Txt);let dd=document.createElementNS(wr,"g");this._topG=dd,this._realtimeSVG=new iA(_gd(3,4,"animation_pathClock"),dV.playRealtimeViewModel),this._playReverseSVG=new iA(xUt(44,99,"animation_pathPlayReverse"),dV.playReverseViewModel),this._playForwardSVG=new iA(xUt(124,99,"animation_pathPlay"),dV.playForwardViewModel),this._pauseSVG=new iA(xUt(84,99,"animation_pathPause"),dV.pauseViewModel);let Td=document.createElementNS(wr,"g");Td.appendChild(this._realtimeSVG.svgElement),Td.appendChild(this._playReverseSVG.svgElement),Td.appendChild(this._playForwardSVG.svgElement),Td.appendChild(this._pauseSVG.svgElement);let Ed=ZE({tagName:"circle",class:"cesium-animation-shuttleRingBack",cx:100,cy:100,r:99});this._shuttleRingBackPanel=Ed;let kd=Xx.animation_pathSwooshFX,Sd=Xx.animation_pathPointer,Xd=ZE({tagName:"g",class:"cesium-animation-shuttleRingSwoosh",children:[{tagName:kd.tagName,transform:"translate(100,97) scale(-1,1)",id:"animation_pathSwooshFX",d:kd.d},{tagName:kd.tagName,transform:"translate(100,97)",id:"animation_pathSwooshFX",d:kd.d},{tagName:"line",x1:100,y1:8,x2:100,y2:22}]});this._shuttleRingSwooshG=Xd,this._shuttleRingPointer=ZE({class:"cesium-animation-shuttleRingPointer",id:"animation_pathPointer",tagName:Sd.tagName,d:Sd.d});let Cd=ZE({tagName:"g",transform:"translate(100,100)"});this._knobOuter=ZE({tagName:"circle",class:"cesium-animation-knobOuter",cx:0,cy:0,r:71});let _d=ZE({tagName:"circle",class:"cesium-animation-knobInner",cx:0,cy:0,r:61});this._knobDate=uUt(0,-24,""),this._knobTime=uUt(0,-7,""),this._knobStatus=uUt(0,-41,"");let el=ZE({tagName:"circle",class:"cesium-animation-blank",cx:0,cy:0,r:61}),Xl=document.createElementNS(wr,"g");Xl.setAttribute("class","cesium-animation-shuttleRingG"),b.appendChild(qV),dd.appendChild(Xl),dd.appendChild(Cd),dd.appendChild(Td),Xl.appendChild(Ed),Xl.appendChild(Xd),Xl.appendChild(this._shuttleRingPointer),Cd.appendChild(this._knobOuter),Cd.appendChild(_d),Cd.appendChild(this._knobDate),Cd.appendChild(this._knobTime),Cd.appendChild(this._knobStatus),Cd.appendChild(el),$V.appendChild(dd),b.appendChild($V);let Il=this;function r(b){qgd(Il,b)}this._mouseCallback=r,Ed.addEventListener("mousedown",r,!0),Ed.addEventListener("touchstart",r,!0),Xd.addEventListener("mousedown",r,!0),Xd.addEventListener("touchstart",r,!0),FV.addEventListener("mousemove",r,!0),FV.addEventListener("touchmove",r,!0),FV.addEventListener("mouseup",r,!0),FV.addEventListener("touchend",r,!0),FV.addEventListener("touchcancel",r,!0),this._shuttleRingPointer.addEventListener("mousedown",r,!0),this._shuttleRingPointer.addEventListener("touchstart",r,!0),this._knobOuter.addEventListener("mousedown",r,!0),this._knobOuter.addEventListener("touchstart",r,!0);let Hl,$l=this._knobTime.childNodes[0],tR=this._knobDate.childNodes[0],ER=this._knobStatus.childNodes[0];this._subscriptions=[rM(dV.pauseViewModel,"toggled",(function(b){Hl!==b&&(Hl=b,Hl?Il._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPausePointer"):Il._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPointer"))})),rM(dV,"shuttleRingAngle",(function(b){Pgd(Il._shuttleRingPointer,Il._knobOuter,b)})),rM(dV,"dateLabel",(function(b){tR.textContent!==b&&(tR.textContent=b)})),rM(dV,"timeLabel",(function(b){$l.textContent!==b&&($l.textContent=b)})),rM(dV,"multiplierLabel",(function(b){ER.textContent!==b&&(ER.textContent=b)}))],this.applyThemeChanges(),this.resize()}iA.prototype.destroy=function(){this.svgElement.removeEventListener("click",this._clickFunction,!0);let b=this._subscriptions;for(let dV=0,FV=b.length;dV0?(FV=Math.log(dV[dV.length-1]),EV=(FV-0)/($V-qV),Math.exp(0+EV*(b-qV))):(FV=Math.log(-dV[0]),EV=(FV-0)/($V-qV),-Math.exp(0+EV*(Math.abs(b)-qV)))}function dyd(b,dV,FV){if(FV.clockStep===yT.SYSTEM_CLOCK)return wp;if(Math.abs(b)<=1)return b*wp;let EV=dV[dV.length-1];b>EV?b=EV:b<-EV&&(b=-EV);let qV,$V,dd=wp,Td=aw;return b>0?(qV=Math.log(EV),$V=(qV-0)/(Td-dd),(Math.log(b)-0)/$V+dd):(qV=Math.log(-dV[0]),$V=(qV-0)/(Td-dd),-((Math.log(Math.abs(b))-0)/$V+dd))}function JF(b){let dV=this;this._clockViewModel=b,this._allShuttleRingTicks=[],this._dateFormatter=JF.defaultDateFormatter,this._timeFormatter=JF.defaultTimeFormatter,this.shuttleRingDragging=!1,this.snapToTicks=!1,zt.track(this,["_allShuttleRingTicks","_dateFormatter","_timeFormatter","shuttleRingDragging","snapToTicks"]),this._sortedFilteredPositiveTicks=[],this.setShuttleRingTicks(JF.defaultTicks),this.timeLabel=void 0,zt.defineProperty(this,"timeLabel",(function(){return dV._timeFormatter(dV._clockViewModel.currentTime,dV)})),this.dateLabel=void 0,zt.defineProperty(this,"dateLabel",(function(){return dV._dateFormatter(dV._clockViewModel.currentTime,dV)})),this.multiplierLabel=void 0,zt.defineProperty(this,"multiplierLabel",(function(){let b=dV._clockViewModel;if(b.clockStep===yT.SYSTEM_CLOCK)return"Today";let FV=b.multiplier;return FV%1==0?`${FV.toFixed(0)}x`:`${FV.toFixed(3).replace(/0{0,3}$/,"")}x`})),this.shuttleRingAngle=void 0,zt.defineProperty(this,"shuttleRingAngle",{get:function(){return dyd(b.multiplier,dV._allShuttleRingTicks,b)},set:function(b){b=Math.max(Math.min(b,aw),-aw);let FV=dV._allShuttleRingTicks,EV=dV._clockViewModel;if(EV.clockStep=yT.SYSTEM_CLOCK_MULTIPLIER,Math.abs(b)===aw)return void(EV.multiplier=b>0?FV[FV.length-1]:FV[0]);let qV=tyd(b,FV);if(dV.snapToTicks)qV=FV[LUt(qV,FV)];else if(0!==qV){let b=Math.abs(qV);if(b>100){let dV=b.toFixed(0).length-2,FV=Math.pow(10,dV);qV=Math.round(qV/FV)*FV|0}else b>wp?qV=Math.round(qV):b>1?qV=+qV.toFixed(1):b>0&&(qV=+qV.toFixed(2))}EV.multiplier=qV}}),this._canAnimate=void 0,zt.defineProperty(this,"_canAnimate",(function(){let b=dV._clockViewModel,FV=b.clockRange;if(dV.shuttleRingDragging||FV===BU.UNBOUNDED)return!0;let EV=b.multiplier,qV=b.currentTime,$V=b.startTime,dd=!1;if(FV===BU.LOOP_STOP)dd=Rt.greaterThan(qV,$V)||qV.equals($V)&&EV>0;else{let dV=b.stopTime;dd=Rt.greaterThan(qV,$V)&&Rt.lessThan(qV,dV)||qV.equals($V)&&EV>0||qV.equals(dV)&&EV<0}return dd||(b.shouldAnimate=!1),dd})),this._isSystemTimeAvailable=void 0,zt.defineProperty(this,"_isSystemTimeAvailable",(function(){let b=dV._clockViewModel;if(b.clockRange===BU.UNBOUNDED)return!0;let FV=b.systemTime;return Rt.greaterThanOrEquals(FV,b.startTime)&&Rt.lessThanOrEquals(FV,b.stopTime)})),this._isAnimating=void 0,zt.defineProperty(this,"_isAnimating",(function(){return dV._clockViewModel.shouldAnimate&&(dV._canAnimate||dV.shuttleRingDragging)}));let FV=Wl((function(){let b=dV._clockViewModel;b.shouldAnimate?b.shouldAnimate=!1:dV._canAnimate&&(b.shouldAnimate=!0)}));this._pauseViewModel=new Br(FV,{toggled:zt.computed((function(){return!dV._isAnimating})),tooltip:"Pause"});let EV=Wl((function(){let b=dV._clockViewModel,FV=b.multiplier;FV>0&&(b.multiplier=-FV),b.shouldAnimate=!0}));this._playReverseViewModel=new Br(EV,{toggled:zt.computed((function(){return dV._isAnimating&&b.multiplier<0})),tooltip:"Play Reverse"});let qV=Wl((function(){let b=dV._clockViewModel,FV=b.multiplier;FV<0&&(b.multiplier=-FV),b.shouldAnimate=!0}));this._playForwardViewModel=new Br(qV,{toggled:zt.computed((function(){return dV._isAnimating&&b.multiplier>0&&b.clockStep!==yT.SYSTEM_CLOCK})),tooltip:"Play Forward"});let $V=Wl((function(){dV._clockViewModel.clockStep=yT.SYSTEM_CLOCK}),zt.getObservable(this,"_isSystemTimeAvailable"));this._playRealtimeViewModel=new Br($V,{toggled:zt.computed((function(){return b.clockStep===yT.SYSTEM_CLOCK})),tooltip:zt.computed((function(){return dV._isSystemTimeAvailable?"Today (real-time)":"Current time not in range"}))}),this._slower=Wl((function(){let b=dV._clockViewModel,FV=dV._allShuttleRingTicks,EV=LUt(b.multiplier,FV)-1;EV>=0&&(b.multiplier=FV[EV])})),this._faster=Wl((function(){let b=dV._clockViewModel,FV=dV._allShuttleRingTicks,EV=LUt(b.multiplier,FV)+1;EV=0;--dV)EV=$V[dV],0!==EV&&dd.push(-EV);Array.prototype.push.apply(dd,$V),this._allShuttleRingTicks=dd},Object.defineProperties(JF.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(b){this._dateFormatter=b}},timeFormatter:{get:function(){return this._timeFormatter},set:function(b){this._timeFormatter=b}}}),JF._maxShuttleRingAngle=aw,JF._realtimeShuttleRingAngle=wp;var l_=JF;function eyd(b){return function(dV){let FV=b._scene.pick(dV.position);n(FV)&&FV.primitive instanceof sM&&(b.tileset=FV.primitive),b.pickActive=!1}}function axt(b,dV){dV?b._eventHandler.setInputAction((function(dV){let FV=b._scene.pick(dV.endPosition);n(FV)&&FV.primitive instanceof sM&&(b.tileset=FV.primitive)}),El.MOUSE_MOVE):(b._eventHandler.removeInputAction(El.MOUSE_MOVE),b.picking=b.picking)}W(A(),1),W(A(),1);var lyd={maximumFractionDigits:3};function ux(b){let dV=b/1048576;return dV<1?dV.toLocaleString(void 0,lyd):Math.round(dV).toLocaleString()}function xx(b,dV){if(!n(b))return"";let FV=dV?b._statisticsPerPass[iR.PICK]:b._statisticsPerPass[iR.RENDER],EV='
    ';return EV+=`
  • Visited: ${FV.visited.toLocaleString()}
  • Selected: ${FV.selected.toLocaleString()}
  • Commands: ${FV.numberOfCommands.toLocaleString()}
  • `,EV+="
",dV||(EV+='
    ',EV+=`
  • Requests: ${FV.numberOfPendingRequests.toLocaleString()}
  • Attempted: ${FV.numberOfAttemptedRequests.toLocaleString()}
  • Processing: ${FV.numberOfTilesProcessing.toLocaleString()}
  • Content Ready: ${FV.numberOfTilesWithContentReady.toLocaleString()}
  • Total: ${FV.numberOfTilesTotal.toLocaleString()}
  • `,EV+="
",EV+='
    ',EV+=`
  • Features Selected: ${FV.numberOfFeaturesSelected.toLocaleString()}
  • Features Loaded: ${FV.numberOfFeaturesLoaded.toLocaleString()}
  • Points Selected: ${FV.numberOfPointsSelected.toLocaleString()}
  • Points Loaded: ${FV.numberOfPointsLoaded.toLocaleString()}
  • Triangles Selected: ${FV.numberOfTrianglesSelected.toLocaleString()}
  • `,EV+="
",EV+='
    ',EV+=`
  • Tiles styled: ${FV.numberOfTilesStyled.toLocaleString()}
  • Features styled: ${FV.numberOfFeaturesStyled.toLocaleString()}
  • `,EV+="
",EV+='
    ',EV+=`
  • Children Union Culled: ${FV.numberOfTilesCulledWithChildrenUnion.toLocaleString()}
  • `,EV+="
",EV+='
    ',EV+=`
  • Geometry Memory (MB): ${ux(FV.geometryByteLength)}
  • Texture Memory (MB): ${ux(FV.texturesByteLength)}
  • Batch Table Memory (MB): ${ux(FV.batchTableByteLength)}
  • `,EV+="
"),EV}function Mxt(){let b=VT.statistics;return`\n
    \n
  • Geometry Memory (MB): ${ux(b.geometryByteLength)}
  • \n
  • Texture Memory (MB): ${ux(b.texturesByteLength)}
  • \n
\n `}var Vyd=[{text:"Highlight",value:B0.HIGHLIGHT},{text:"Replace",value:B0.REPLACE},{text:"Mix",value:B0.MIX}],Uxt=new K(1,1,0,.4),Tyd=new K,V_=new K;function VM(b,dV){let FV=this,EV=b.canvas;this._eventHandler=new GF(EV),this._scene=b,this._performanceContainer=dV,this._canvas=EV,this._performanceDisplay=new np({container:dV}),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,zt.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=zt.observable({}),this.properties=[],zt.defineProperty(this,"properties",(function(){let b=[],dV=FV._properties();for(let FV in dV)dV.hasOwnProperty(FV)&&b.push(FV);return b}));let qV=zt.observable();zt.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return qV()},set:function(b){qV(b),n(FV._tileset)&&(FV._tileset.dynamicScreenSpaceError=b)}}),this.dynamicScreenSpaceError=!1;let $V=zt.observable();zt.defineProperty(this,"colorBlendMode",{get:function(){return $V()},set:function(b){$V(b),n(FV._tileset)&&(FV._tileset.colorBlendMode=b,FV._scene.requestRender())}}),this.colorBlendMode=B0.HIGHLIGHT;let dd=zt.observable(),Td=zt.observable();zt.defineProperty(this,"picking",{get:function(){return Td()},set:function(dV){Td(dV),dV?FV._eventHandler.setInputAction((function(dV){let EV=b.pick(dV.endPosition);if(EV instanceof Ia?(FV.feature=EV,FV.tile=EV.content.tile):n(EV)&&n(EV.content)?(FV.feature=void 0,FV.tile=EV.content.tile):(FV.feature=void 0,FV.tile=void 0),n(FV._tileset)){if(dd&&n(EV)&&n(EV.content)){let qV;b.pickPositionSupported&&(qV=b.pickPosition(dV.endPosition),n(qV)&&(FV._tileset.debugPickPosition=qV)),FV._tileset.debugPickedTile=EV.content.tile}else FV._tileset.debugPickedTile=void 0;FV._scene.requestRender()}}),El.MOUSE_MOVE):(FV.feature=void 0,FV.tile=void 0,FV._eventHandler.removeInputAction(El.MOUSE_MOVE))}}),this.picking=!0;let Ed=zt.observable();zt.defineProperty(this,"colorize",{get:function(){return Ed()},set:function(b){Ed(b),n(FV._tileset)&&(FV._tileset.debugColorizeTiles=b,FV._scene.requestRender())}}),this.colorize=!1;let kd=zt.observable();zt.defineProperty(this,"wireframe",{get:function(){return kd()},set:function(b){kd(b),n(FV._tileset)&&(FV._tileset.debugWireframe=b,FV._scene.requestRender())}}),this.wireframe=!1;let Sd=zt.observable();zt.defineProperty(this,"showBoundingVolumes",{get:function(){return Sd()},set:function(b){Sd(b),n(FV._tileset)&&(FV._tileset.debugShowBoundingVolume=b,FV._scene.requestRender())}}),this.showBoundingVolumes=!1;let Xd=zt.observable();zt.defineProperty(this,"showContentBoundingVolumes",{get:function(){return Xd()},set:function(b){Xd(b),n(FV._tileset)&&(FV._tileset.debugShowContentBoundingVolume=b,FV._scene.requestRender())}}),this.showContentBoundingVolumes=!1;let Cd=zt.observable();zt.defineProperty(this,"showRequestVolumes",{get:function(){return Cd()},set:function(b){Cd(b),n(FV._tileset)&&(FV._tileset.debugShowViewerRequestVolume=b,FV._scene.requestRender())}}),this.showRequestVolumes=!1;let _d=zt.observable();zt.defineProperty(this,"freezeFrame",{get:function(){return _d()},set:function(b){_d(b),n(FV._tileset)&&(FV._tileset.debugFreezeFrame=b,FV._scene.debugShowFrustumPlanes=b,FV._scene.requestRender())}}),this.freezeFrame=!1,zt.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return dd()},set:function(b){dd(b),n(FV._tileset)&&(FV._tileset.debugPickedTileLabelOnly=b,FV._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;let el=zt.observable();zt.defineProperty(this,"showGeometricError",{get:function(){return el()},set:function(b){el(b),n(FV._tileset)&&(FV._tileset.debugShowGeometricError=b,FV._scene.requestRender())}}),this.showGeometricError=!1;let Xl=zt.observable();zt.defineProperty(this,"showRenderingStatistics",{get:function(){return Xl()},set:function(b){Xl(b),n(FV._tileset)&&(FV._tileset.debugShowRenderingStatistics=b,FV._scene.requestRender())}}),this.showRenderingStatistics=!1;let Il=zt.observable();zt.defineProperty(this,"showMemoryUsage",{get:function(){return Il()},set:function(b){Il(b),n(FV._tileset)&&(FV._tileset.debugShowMemoryUsage=b,FV._scene.requestRender())}}),this.showMemoryUsage=!1;let Hl=zt.observable();zt.defineProperty(this,"showUrl",{get:function(){return Hl()},set:function(b){Hl(b),n(FV._tileset)&&(FV._tileset.debugShowUrl=b,FV._scene.requestRender())}}),this.showUrl=!1;let $l=zt.observable();zt.defineProperty(this,"maximumScreenSpaceError",{get:function(){return $l()},set:function(b){b=Number(b),isNaN(b)||($l(b),n(FV._tileset)&&(FV._tileset.maximumScreenSpaceError=b))}}),this.maximumScreenSpaceError=16;let tR=zt.observable();zt.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return tR()},set:function(b){b=Number(b),isNaN(b)||(tR(b),n(FV._tileset)&&(FV._tileset.dynamicScreenSpaceErrorDensity=b))}}),this.dynamicScreenSpaceErrorDensity=2e-4,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,zt.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(tR(),1/6)},set:function(b){let dV=Math.pow(b,6);tR(dV),n(FV._tileset)&&(FV._tileset.dynamicScreenSpaceErrorDensity=dV)}});let ER=zt.observable();zt.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return ER()},set:function(b){b=Number(b),isNaN(b)||(ER(b),n(FV._tileset)&&(FV._tileset.dynamicScreenSpaceErrorFactor=b))}}),this.dynamicScreenSpaceErrorFactor=24;let sR=eyd(this),GR=zt.observable();zt.defineProperty(this,"pickActive",{get:function(){return GR()},set:function(b){GR(b),b?FV._eventHandler.setInputAction(sR,El.LEFT_CLICK):FV._eventHandler.removeInputAction(El.LEFT_CLICK)}});let uR=zt.observable();zt.defineProperty(this,"pointCloudShading",{get:function(){return uR()},set:function(b){uR(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.attenuation=b)}}),this.pointCloudShading=!1;let OR=zt.observable();zt.defineProperty(this,"geometricErrorScale",{get:function(){return OR()},set:function(b){b=Number(b),isNaN(b)||(OR(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.geometricErrorScale=b))}}),this.geometricErrorScale=1;let AU=zt.observable();zt.defineProperty(this,"maximumAttenuation",{get:function(){return AU()},set:function(b){b=Number(b),isNaN(b)||(AU(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.maximumAttenuation=0===b?void 0:b))}}),this.maximumAttenuation=0;let mU=zt.observable();zt.defineProperty(this,"baseResolution",{get:function(){return mU()},set:function(b){b=Number(b),isNaN(b)||(mU(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.baseResolution=0===b?void 0:b))}}),this.baseResolution=0;let wU=zt.observable();zt.defineProperty(this,"eyeDomeLighting",{get:function(){return wU()},set:function(b){wU(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.eyeDomeLighting=b)}}),this.eyeDomeLighting=!1;let oU=zt.observable();zt.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return oU()},set:function(b){b=Number(b),isNaN(b)||(oU(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.eyeDomeLightingStrength=b))}}),this.eyeDomeLightingStrength=1;let XU=zt.observable();zt.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return XU()},set:function(b){b=Number(b),isNaN(b)||(XU(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.eyeDomeLightingRadius=b))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;let LU=zt.observable();zt.defineProperty(this,"skipLevelOfDetail",{get:function(){return LU()},set:function(b){LU(b),n(FV._tileset)&&(FV._tileset.skipLevelOfDetail=b)}}),this.skipLevelOfDetail=!0;let uU=zt.observable();zt.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return uU()},set:function(b){b=Number(b),isNaN(b)||(uU(b),n(FV._tileset)&&(FV._tileset.skipScreenSpaceErrorFactor=b))}}),this.skipScreenSpaceErrorFactor=16;let PU=zt.observable();zt.defineProperty(this,"baseScreenSpaceError",{get:function(){return PU()},set:function(b){b=Number(b),isNaN(b)||(PU(b),n(FV._tileset)&&(FV._tileset.baseScreenSpaceError=b))}}),this.baseScreenSpaceError=1024;let _U=zt.observable();zt.defineProperty(this,"skipLevels",{get:function(){return _U()},set:function(b){b=Number(b),isNaN(b)||(_U(b),n(FV._tileset)&&(FV._tileset.skipLevels=b))}}),this.skipLevels=1;let dT=zt.observable();zt.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return dT()},set:function(b){dT(b),n(FV._tileset)&&(FV._tileset.immediatelyLoadDesiredLevelOfDetail=b)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;let UT=zt.observable();zt.defineProperty(this,"loadSiblings",{get:function(){return UT()},set:function(b){UT(b),n(FV._tileset)&&(FV._tileset.loadSiblings=b)}}),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=b.postRender.addEventListener((function(){FV._update()})),n(this._tileset)||axt(this,!0)}function JUt(b){if(!n(b))return!1;if(b.featuresLength>0)return!0;let dV=b.innerContents;if(n(dV)){let b=dV.length;for(let FV=0;FV=0;dV--){let FV=Math.pow(2,dV);qV>=FV&&(b.push(dV+1),qV-=FV)}EV=b.reverse().join(" and ")}dV+=`
    ${FV[b]} in frustum ${EV}`}dV+=`
Total: ${b.totalCommands}`}return dV}function IUt(b,dV,FV){let EV=Math.min(FV,dV);return EV=Math.max(EV,b),EV}Object.defineProperties(R_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),R_.prototype.isDestroyed=function(){return!1},R_.prototype.destroy=function(){return zt.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),Dt(this)},W(A(),1),W(A(),1);var Uyd=new Ul,ayd=new i$1;function Lx(b,dV){let FV=this,EV=b.canvas,qV=new GF(EV);this._eventHandler=qV,this._scene=b,this._canvas=EV,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=dV;let $V,dd=this._scene.globe;function U(b){let dV=FV._scene.pick({x:b.position.x,y:b.position.y});n(dV)&&(FV.primitive=n(dV.collection)?dV.collection:dV.primitive),FV._scene.requestRender(),FV.pickPrimitiveActive=!1}function a(b){let dV,EV=dd.ellipsoid,qV=FV._scene.camera.getPickRay(b.position,Uyd),$V=dd.pick(qV,FV._scene,ayd);if(n($V)){let b=EV.cartesianToCartographic($V),FV=dd._surface.tileProvider._tilesToRenderByTextureCount;for(let EV=0;!dV&&EVSW corner: ${b.rectangle.west}, ${b.rectangle.south}`,this.tileText+=`
NE corner: ${b.rectangle.east}, ${b.rectangle.north}`;let dV=b.data;n(dV)&&n(dV.tileBoundingRegion)?this.tileText+=`
Min: ${dV.tileBoundingRegion.minimumHeight} Max: ${dV.tileBoundingRegion.maximumHeight}`:this.tileText+="
(Tile is not loaded)"}this._tile=b,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}}),Lx.prototype._update=function(){this.frustums&&(this.frustumStatisticText=Ryd(this._scene.debugFrustumStatistics));let b=this._scene.numberOfFrustums;this._numberOfFrustums=b,this.depthFrustum=IUt(1,b,this.depthFrustum),this.depthFrustumText=`${this.depthFrustum} of ${b}`,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText=`Cached shaders: ${this._scene.context.shaderCache.numberOfShaders}`},Lx.prototype.isDestroyed=function(){return!1},Lx.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(),Dt(this)};var a_=Lx;function M_(b,dV){b=wl(b);let FV=document.createElement("div"),EV=new a_(dV,FV);this._viewModel=EV,this._container=b;let qV=document.createElement("div");this._element=qV;let $V=document.createElement("div");$V.textContent="Cesium Inspector",$V.className="cesium-cesiumInspector-button",$V.setAttribute("data-bind","click: toggleDropDown"),qV.appendChild($V),qV.className="cesium-cesiumInspector",qV.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),b.appendChild(this._element);let dd=document.createElement("div");dd.className="cesium-cesiumInspector-dropDown",qV.appendChild(dd);let Td=nn.createSection,Ed=nn.createCheckbox,kd=Td(dd,"General","generalVisible","toggleGeneral"),Sd=Ed("Show Frustums","frustums"),Xd=document.createElement("div");Xd.className="cesium-cesiumInspector-frustumStatistics",Xd.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),Sd.appendChild(Xd),kd.appendChild(Sd),kd.appendChild(Ed("Show Frustum Planes","frustumPlanes")),kd.appendChild(Ed("Performance Display","performance")),FV.className="cesium-cesiumInspector-performanceDisplay",kd.appendChild(FV);let Cd=document.createElement("div");Cd.className="cesium-cesiumInspector-shaderCache",Cd.setAttribute("data-bind","html: shaderCacheText"),kd.appendChild(Cd);let _d=document.createElement("div");kd.appendChild(_d);let el=document.createElement("span");el.setAttribute("data-bind",'html: "     Frustum:"'),_d.appendChild(el);let Xl=document.createElement("span");Xl.setAttribute("data-bind","text: depthFrustumText"),_d.appendChild(Xl);let Il=document.createElement("input");Il.type="button",Il.value="-",Il.className="cesium-cesiumInspector-pickButton",Il.setAttribute("data-bind","click: decrementDepthFrustum"),_d.appendChild(Il);let Hl=document.createElement("input");Hl.type="button",Hl.value="+",Hl.className="cesium-cesiumInspector-pickButton",Hl.setAttribute("data-bind","click: incrementDepthFrustum"),_d.appendChild(Hl);let $l=Td(dd,"Primitives","primitivesVisible","togglePrimitives"),tR=document.createElement("div");tR.className="cesium-cesiumInspector-pickSection",$l.appendChild(tR);let ER=document.createElement("input");ER.type="button",ER.value="Pick a primitive",ER.className="cesium-cesiumInspector-pickButton",ER.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let sR=document.createElement("div");sR.className="cesium-cesiumInspector-center",sR.appendChild(ER),tR.appendChild(sR),tR.appendChild(Ed("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),tR.appendChild(Ed("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=Ed("Show only selected","filterPrimitive","hasPickedPrimitive"),tR.appendChild(this._primitiveOnly);let GR=Td(dd,"Terrain","terrainVisible","toggleTerrain"),uR=document.createElement("div");uR.className="cesium-cesiumInspector-pickSection",GR.appendChild(uR);let OR=document.createElement("input");OR.type="button",OR.value="Pick a tile",OR.className="cesium-cesiumInspector-pickButton",OR.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),sR=document.createElement("div"),sR.appendChild(OR),sR.className="cesium-cesiumInspector-center",uR.appendChild(sR);let AU=document.createElement("div");uR.appendChild(AU);let mU=document.createElement("input");mU.type="button",mU.value="Parent",mU.className="cesium-cesiumInspector-pickButton",mU.setAttribute("data-bind","click: selectParent");let wU=document.createElement("input");wU.type="button",wU.value="NW",wU.className="cesium-cesiumInspector-pickButton",wU.setAttribute("data-bind","click: selectNW");let oU=document.createElement("input");oU.type="button",oU.value="NE",oU.className="cesium-cesiumInspector-pickButton",oU.setAttribute("data-bind","click: selectNE");let XU=document.createElement("input");XU.type="button",XU.value="SW",XU.className="cesium-cesiumInspector-pickButton",XU.setAttribute("data-bind","click: selectSW");let LU=document.createElement("input");LU.type="button",LU.value="SE",LU.className="cesium-cesiumInspector-pickButton",LU.setAttribute("data-bind","click: selectSE");let uU=document.createElement("div");uU.className="cesium-cesiumInspector-tileText",AU.className="cesium-cesiumInspector-frustumStatistics",AU.appendChild(uU),AU.setAttribute("data-bind","visible: hasPickedTile"),uU.setAttribute("data-bind","html: tileText");let PU=document.createElement("div");PU.className="cesium-cesiumInspector-relativeText",PU.textContent="Select relative:",AU.appendChild(PU);let _U=document.createElement("table"),dT=document.createElement("tr"),UT=document.createElement("tr"),FT=document.createElement("td");FT.appendChild(mU);let sT=document.createElement("td");sT.appendChild(wU);let DT=document.createElement("td");DT.appendChild(oU),dT.appendChild(FT),dT.appendChild(sT),dT.appendChild(DT);let XT=document.createElement("td"),JT=document.createElement("td");JT.appendChild(XU);let LT=document.createElement("td");LT.appendChild(LU),UT.appendChild(XT),UT.appendChild(JT),UT.appendChild(LT),_U.appendChild(dT),_U.appendChild(UT),AU.appendChild(_U),uR.appendChild(Ed("Show bounding volume","tileBoundingSphere","hasPickedTile")),uR.appendChild(Ed("Show only selected","filterTile","hasPickedTile")),GR.appendChild(Ed("Wireframe","wireframe")),GR.appendChild(Ed("Suspend LOD update","suspendUpdates")),GR.appendChild(Ed("Show tile coordinates","tileCoordinates")),zt.applyBindings(EV,this._element)}function Ai(b,dV){return b??dV}function UV(b){return null!=b}function ml(b){let dV;this.name="DeveloperError",this.message=b;try{throw new Error}catch(FV){dV=FV.stack}this.stack=dV}Object.defineProperties(M_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),M_.prototype.isDestroyed=function(){return!1},M_.prototype.destroy=function(){return zt.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),Dt(this)},W(A(),1),Promise.resolve(),Ai.EMPTY_OBJECT=Object.freeze({}),UV(Object.create)&&(ml.prototype=Object.create(Error.prototype),ml.prototype.constructor=ml),ml.prototype.toString=function(){let b=`${this.name}: ${this.message}`;return UV(this.stack)&&(b+=`\n${this.stack.toString()}`),b},ml.throwInstantiationError=function(){throw new ml("This function defines an interface and should not be called directly.")};var Fa={};function Syd(b){return`${b} is required, actual value was undefined`}function Zw(b,dV,FV){return`Expected ${FV} to be typeof ${dV}, actual typeof was ${b}`}Fa.typeOf={},Fa.defined=function(b,dV){if(!UV(dV))throw new ml(Syd(b))},Fa.typeOf.func=function(b,dV){if("function"!=typeof dV)throw new ml(Zw(typeof dV,"function",b))},Fa.typeOf.string=function(b,dV){if("string"!=typeof dV)throw new ml(Zw(typeof dV,"string",b))},Fa.typeOf.number=function(b,dV){if("number"!=typeof dV)throw new ml(Zw(typeof dV,"number",b))},Fa.typeOf.number.lessThan=function(b,dV,FV){if(Fa.typeOf.number(b,dV),dV>=FV)throw new ml(`Expected ${b} to be less than ${FV}, actual value was ${dV}`)},Fa.typeOf.number.lessThanOrEquals=function(b,dV,FV){if(Fa.typeOf.number(b,dV),dV>FV)throw new ml(`Expected ${b} to be less than or equal to ${FV}, actual value was ${dV}`)},Fa.typeOf.number.greaterThan=function(b,dV,FV){if(Fa.typeOf.number(b,dV),dV<=FV)throw new ml(`Expected ${b} to be greater than ${FV}, actual value was ${dV}`)},Fa.typeOf.number.greaterThanOrEquals=function(b,dV,FV){if(Fa.typeOf.number(b,dV),dV0))return EV;dd=EV-1}return~(dd+1)}function jUt(b){if(null===b||isNaN(b))throw new ml("year is required and must be a number.");return b%4==0&&b%100!=0||b%400==0}var Zxt=[31,28,31,30,31,30,31,31,30,31,30,31];function KUt(b,dV,FV,EV,qV,$V,dd,Td){b=Ai(b,1),dV=Ai(dV,1),FV=Ai(FV,1),EV=Ai(EV,0),qV=Ai(qV,0),$V=Ai($V,0),dd=Ai(dd,0),Td=Ai(Td,!1),TM.typeOf.number.greaterThanOrEquals("Year",b,1),TM.typeOf.number.lessThanOrEquals("Year",b,9999),TM.typeOf.number.greaterThanOrEquals("Month",dV,1),TM.typeOf.number.lessThanOrEquals("Month",dV,12),TM.typeOf.number.greaterThanOrEquals("Day",FV,1),TM.typeOf.number.lessThanOrEquals("Day",FV,31),TM.typeOf.number.greaterThanOrEquals("Hour",EV,0),TM.typeOf.number.lessThanOrEquals("Hour",EV,23),TM.typeOf.number.greaterThanOrEquals("Minute",qV,0),TM.typeOf.number.lessThanOrEquals("Minute",qV,59),TM.typeOf.bool("IsLeapSecond",Td),TM.typeOf.number.greaterThanOrEquals("Second",$V,0),TM.typeOf.number.lessThanOrEquals("Second",$V,Td?60:59),TM.typeOf.number.greaterThanOrEquals("Millisecond",dd,0),TM.typeOf.number.lessThan("Millisecond",dd,1e3),function(){let EV=2===dV&&jUt(b)?Zxt[dV-1]+1:Zxt[dV-1];if(FV>EV)throw new ml("Month and Day represents invalid date")}(),this.year=b,this.month=dV,this.day=FV,this.hour=EV,this.minute=qV,this.second=$V,this.millisecond=dd,this.isLeapSecond=Td}function _T(b,dV){this.julianDate=b,this.offset=dV}var kyd={SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:2400000.5},hM=Object.freeze(kyd),Byd={UTC:0,TAI:1},tT=Object.freeze(Byd),rxt=new KUt,i_=[31,28,31,30,31,30,31,31,30,31,30,31],F_=29;function vUt(b,dV){return te.compare(b.julianDate,dV.julianDate)}var Fw=new _T;function o_(b){Fw.julianDate=b;let dV=te.leapSeconds,FV=HUt(dV,Fw,vUt);FV<0&&(FV=~FV),FV>=dV.length&&(FV=dV.length-1);let EV=dV[FV].offset;FV>0&&te.secondsDifference(dV[FV].julianDate,b)>EV&&(FV--,EV=dV[FV].offset),te.addSeconds(b,EV,b)}function Ext(b,dV){Fw.julianDate=b;let FV=te.leapSeconds,EV=HUt(FV,Fw,vUt);if(EV<0&&(EV=~EV),0===EV)return te.addSeconds(b,-FV[0].offset,dV);if(EV>=FV.length)return te.addSeconds(b,-FV[EV-1].offset,dV);let qV=te.secondsDifference(FV[EV].julianDate,b);return 0===qV?te.addSeconds(b,-FV[EV].offset,dV):qV<=1?void 0:te.addSeconds(b,-FV[--EV].offset,dV)}function bp(b,dV,FV){let EV=dV/hM.SECONDS_PER_DAY|0;return b+=EV,(dV-=hM.SECONDS_PER_DAY*EV)<0&&(b--,dV+=hM.SECONDS_PER_DAY),FV.dayNumber=b,FV.secondsOfDay=dV,FV}function PUt(b,dV,FV,EV,qV,$V,dd){let Td=(dV-14)/12|0,Ed=b+4800+Td,kd=(1461*Ed/4|0)+(367*(dV-2-12*Td)/12|0)-(3*((Ed+100)/100|0)/4|0)+FV-32075;(EV-=12)<0&&(EV+=24);let Sd=$V+(EV*hM.SECONDS_PER_HOUR+qV*hM.SECONDS_PER_MINUTE+dd*hM.SECONDS_PER_MILLISECOND);return Sd>=43200&&(kd-=1),[kd,Sd]}var wyd=/^(\d{4})$/,byd=/^(\d{4})-(\d{2})$/,Gyd=/^(\d{4})-?(\d{3})$/,Cyd=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,Xyd=/^(\d{4})-?(\d{2})-?(\d{2})$/,_Ut=/([Z+\-])?(\d{2})?:?(\d{2})?$/,uyd=/^(\d{2})(\.\d+)?/.source+_Ut.source,xyd=/^(\d{2}):?(\d{2})(\.\d+)?/.source+_Ut.source,Lyd=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+_Ut.source,sE="Invalid ISO 8601 date.";function te(b,dV,FV){this.dayNumber=void 0,this.secondsOfDay=void 0,b=Ai(b,0),dV=Ai(dV,0),FV=Ai(FV,tT.UTC);let EV=0|b;bp(EV,dV+=(b-EV)*hM.SECONDS_PER_DAY,this),FV===tT.UTC&&o_(this)}te.fromGregorianDate=function(b,dV){if(!(b instanceof KUt))throw new ml("date must be a valid GregorianDate.");let FV=PUt(b.year,b.month,b.day,b.hour,b.minute,b.second,b.millisecond);return UV(dV)?(bp(FV[0],FV[1],dV),o_(dV),dV):new te(FV[0],FV[1],tT.UTC)},te.fromDate=function(b,dV){if(!(b instanceof Date)||isNaN(b.getTime()))throw new ml("date must be a valid JavaScript Date.");let FV=PUt(b.getUTCFullYear(),b.getUTCMonth()+1,b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes(),b.getUTCSeconds(),b.getUTCMilliseconds());return UV(dV)?(bp(FV[0],FV[1],dV),o_(dV),dV):new te(FV[0],FV[1],tT.UTC)},te.fromIso8601=function(b,dV){if("string"!=typeof b)throw new ml(sE);let FV,EV,qV,$V,dd,Td=(b=b.replace(",",".")).split("T"),Ed=1,kd=1,Sd=0,Xd=0,Cd=0,_d=0,el=Td[0],Xl=Td[1];if(!UV(el))throw new ml(sE);if(Td=el.match(Xyd),null!==Td){if($V=el.split("-").length-1,$V>0&&2!==$V)throw new ml(sE);FV=+Td[1],Ed=+Td[2],kd=+Td[3]}else if(Td=el.match(byd),null!==Td)FV=+Td[1],Ed=+Td[2];else if(Td=el.match(wyd),null!==Td)FV=+Td[1];else{let b;if(Td=el.match(Gyd),null!==Td){if(FV=+Td[1],b=+Td[2],qV=jUt(FV),b<1||qV&&b>366||!qV&&b>365)throw new ml(sE)}else{if(Td=el.match(Cyd),null===Td)throw new ml(sE);{FV=+Td[1];let dV=+Td[2],EV=+Td[3]||0;if($V=el.split("-").length-1,$V>0&&(!UV(Td[3])&&1!==$V||UV(Td[3])&&2!==$V))throw new ml(sE);b=7*dV+EV-new Date(Date.UTC(FV,0,4)).getUTCDay()-3}}EV=new Date(Date.UTC(FV,0,1)),EV.setUTCDate(b),Ed=EV.getUTCMonth()+1,kd=EV.getUTCDate()}if(qV=jUt(FV),Ed<1||Ed>12||kd<1||(2!==Ed||!qV)&&kd>i_[Ed-1]||qV&&2===Ed&&kd>F_)throw new ml(sE);if(UV(Xl)){if(Td=Xl.match(Lyd),null!==Td){if($V=Xl.split(":").length-1,$V>0&&2!==$V&&3!==$V)throw new ml(sE);Sd=+Td[1],Xd=+Td[2],Cd=+Td[3],_d=1e3*+(Td[4]||0),dd=5}else if(Td=Xl.match(xyd),null!==Td){if($V=Xl.split(":").length-1,$V>2)throw new ml(sE);Sd=+Td[1],Xd=+Td[2],Cd=60*+(Td[3]||0),dd=4}else{if(Td=Xl.match(uyd),null===Td)throw new ml(sE);Sd=+Td[1],Xd=60*+(Td[2]||0),dd=3}if(Xd>=60||Cd>=61||Sd>24||24===Sd&&(Xd>0||Cd>0||_d>0))throw new ml(sE);let b=Td[dd],dV=+Td[dd+1],EV=+(Td[dd+2]||0);switch(b){case"+":Sd-=dV,Xd-=EV;break;case"-":Sd+=dV,Xd+=EV;break;case"Z":break;default:Xd+=new Date(Date.UTC(FV,Ed-1,kd,Sd,Xd)).getTimezoneOffset()}}let Il=60===Cd;for(Il&&Cd--;Xd>=60;)Xd-=60,Sd++;for(;Sd>=24;)Sd-=24,kd++;for(EV=qV&&2===Ed?F_:i_[Ed-1];kd>EV;)kd-=EV,Ed++,Ed>12&&(Ed-=12,FV++),EV=qV&&2===Ed?F_:i_[Ed-1];for(;Xd<0;)Xd+=60,Sd--;for(;Sd<0;)Sd+=24,kd--;for(;kd<1;)Ed--,Ed<1&&(Ed+=12,FV--),EV=qV&&2===Ed?F_:i_[Ed-1],kd+=EV;let Hl=PUt(FV,Ed,kd,Sd,Xd,Cd,_d);return UV(dV)?(bp(Hl[0],Hl[1],dV),o_(dV)):dV=new te(Hl[0],Hl[1],tT.UTC),Il&&te.addSeconds(dV,1,dV),dV},te.now=function(b){return te.fromDate(new Date,b)};var Z_=new te(0,0,tT.TAI);function W_(b,dV){n(dV)||(dV=document.body),dV=wl(dV);let FV=this,EV=zt.observable(VU.fullscreen),qV=zt.observable(VU.enabled),$V=dV.ownerDocument;this.isFullscreen=void 0,zt.defineProperty(this,"isFullscreen",{get:function(){return EV()}}),this.isFullscreenEnabled=void 0,zt.defineProperty(this,"isFullscreenEnabled",{get:function(){return qV()},set:function(b){qV(b&&VU.enabled)}}),this.tooltip=void 0,zt.defineProperty(this,"tooltip",(function(){return this.isFullscreenEnabled?EV()?"Exit full screen":"Full screen":"Full screen unavailable"})),this._command=Wl((function(){VU.fullscreen?VU.exitFullscreen():VU.requestFullscreen(FV._fullscreenElement)}),zt.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=m(wl(b),$V.body),this._callback=function(){EV(VU.fullscreen)},$V.addEventListener(VU.changeEventName,this._callback)}te.toGregorianDate=function(b,dV){if(!UV(b))throw new ml("julianDate is required.");let FV=!1,EV=Ext(b,Z_);UV(EV)||(te.addSeconds(b,-1,Z_),EV=Ext(Z_,Z_),FV=!0);let qV=EV.dayNumber,$V=EV.secondsOfDay;$V>=43200&&(qV+=1);let dd=qV+68569|0,Td=4*dd/146097|0;dd=dd-((146097*Td+3)/4|0)|0;let Ed=4e3*(dd+1)/1461001|0;dd=dd-(1461*Ed/4|0)+31|0;let kd=80*dd/2447|0,Sd=dd-(2447*kd/80|0)|0;dd=kd/11|0;let Xd=kd+2-12*dd|0,Cd=100*(Td-49)+Ed+dd|0,_d=$V/hM.SECONDS_PER_HOUR|0,el=$V-_d*hM.SECONDS_PER_HOUR,Xl=el/hM.SECONDS_PER_MINUTE|0;el-=Xl*hM.SECONDS_PER_MINUTE;let Il=0|el,Hl=(el-Il)/hM.SECONDS_PER_MILLISECOND;return _d+=12,_d>23&&(_d-=24),FV&&(Il+=1),UV(dV)?(dV.year=Cd,dV.month=Xd,dV.day=Sd,dV.hour=_d,dV.minute=Xl,dV.second=Il,dV.millisecond=Hl,dV.isLeapSecond=FV,dV):new KUt(Cd,Xd,Sd,_d,Xl,Il,Hl,FV)},te.toDate=function(b){if(!UV(b))throw new ml("julianDate is required.");let dV=te.toGregorianDate(b,rxt),FV=dV.second;return dV.isLeapSecond&&(FV-=1),new Date(Date.UTC(dV.year,dV.month-1,dV.day,dV.hour,dV.minute,FV,dV.millisecond))},te.toIso8601=function(b,dV){if(!UV(b))throw new ml("julianDate is required.");let FV,EV=te.toGregorianDate(b,rxt),qV=EV.year,$V=EV.month,dd=EV.day,Td=EV.hour,Ed=EV.minute,kd=EV.second,Sd=EV.millisecond;return 1e4===qV&&1===$V&&1===dd&&0===Td&&0===Ed&&0===kd&&0===Sd&&(qV=9999,$V=12,dd=31,Td=24),UV(dV)||0===Sd?UV(dV)&&0!==dV?(FV=(.01*Sd).toFixed(dV).replace(".","").slice(0,dV),`${qV.toString().padStart(4,"0")}-${$V.toString().padStart(2,"0")}-${dd.toString().padStart(2,"0")}T${Td.toString().padStart(2,"0")}:${Ed.toString().padStart(2,"0")}:${kd.toString().padStart(2,"0")}.${FV}Z`):`${qV.toString().padStart(4,"0")}-${$V.toString().padStart(2,"0")}-${dd.toString().padStart(2,"0")}T${Td.toString().padStart(2,"0")}:${Ed.toString().padStart(2,"0")}:${kd.toString().padStart(2,"0")}Z`:(FV=(.01*Sd).toString().replace(".",""),`${qV.toString().padStart(4,"0")}-${$V.toString().padStart(2,"0")}-${dd.toString().padStart(2,"0")}T${Td.toString().padStart(2,"0")}:${Ed.toString().padStart(2,"0")}:${kd.toString().padStart(2,"0")}.${FV}Z`)},te.clone=function(b,dV){if(UV(b))return UV(dV)?(dV.dayNumber=b.dayNumber,dV.secondsOfDay=b.secondsOfDay,dV):new te(b.dayNumber,b.secondsOfDay,tT.TAI)},te.compare=function(b,dV){if(!UV(b))throw new ml("left is required.");if(!UV(dV))throw new ml("right is required.");let FV=b.dayNumber-dV.dayNumber;return 0!==FV?FV:b.secondsOfDay-dV.secondsOfDay},te.equals=function(b,dV){return b===dV||UV(b)&&UV(dV)&&b.dayNumber===dV.dayNumber&&b.secondsOfDay===dV.secondsOfDay},te.equalsEpsilon=function(b,dV,FV){return FV=Ai(FV,0),b===dV||UV(b)&&UV(dV)&&Math.abs(te.secondsDifference(b,dV))<=FV},te.totalDays=function(b){if(!UV(b))throw new ml("julianDate is required.");return b.dayNumber+b.secondsOfDay/hM.SECONDS_PER_DAY},te.secondsDifference=function(b,dV){if(!UV(b))throw new ml("left is required.");if(!UV(dV))throw new ml("right is required.");return(b.dayNumber-dV.dayNumber)*hM.SECONDS_PER_DAY+(b.secondsOfDay-dV.secondsOfDay)},te.daysDifference=function(b,dV){if(!UV(b))throw new ml("left is required.");if(!UV(dV))throw new ml("right is required.");return b.dayNumber-dV.dayNumber+(b.secondsOfDay-dV.secondsOfDay)/hM.SECONDS_PER_DAY},te.computeTaiMinusUtc=function(b){Fw.julianDate=b;let dV=te.leapSeconds,FV=HUt(dV,Fw,vUt);return FV<0&&(FV=~FV,--FV,FV<0&&(FV=0)),dV[FV].offset},te.addSeconds=function(b,dV,FV){if(!UV(b))throw new ml("julianDate is required.");if(!UV(dV))throw new ml("seconds is required.");if(!UV(FV))throw new ml("result is required.");return bp(b.dayNumber,b.secondsOfDay+dV,FV)},te.addMinutes=function(b,dV,FV){if(!UV(b))throw new ml("julianDate is required.");if(!UV(dV))throw new ml("minutes is required.");if(!UV(FV))throw new ml("result is required.");let EV=b.secondsOfDay+dV*hM.SECONDS_PER_MINUTE;return bp(b.dayNumber,EV,FV)},te.addHours=function(b,dV,FV){if(!UV(b))throw new ml("julianDate is required.");if(!UV(dV))throw new ml("hours is required.");if(!UV(FV))throw new ml("result is required.");let EV=b.secondsOfDay+dV*hM.SECONDS_PER_HOUR;return bp(b.dayNumber,EV,FV)},te.addDays=function(b,dV,FV){if(!UV(b))throw new ml("julianDate is required.");if(!UV(dV))throw new ml("days is required.");if(!UV(FV))throw new ml("result is required.");return bp(b.dayNumber+dV,b.secondsOfDay,FV)},te.lessThan=function(b,dV){return te.compare(b,dV)<0},te.lessThanOrEquals=function(b,dV){return te.compare(b,dV)<=0},te.greaterThan=function(b,dV){return te.compare(b,dV)>0},te.greaterThanOrEquals=function(b,dV){return te.compare(b,dV)>=0},te.prototype.clone=function(b){return te.clone(this,b)},te.prototype.equals=function(b){return te.equals(this,b)},te.prototype.equalsEpsilon=function(b,dV){return te.equalsEpsilon(this,b,dV)},te.prototype.toString=function(){return te.toIso8601(this)},te.leapSeconds=[new _T(new te(2441317,43210,tT.TAI),10),new _T(new te(2441499,43211,tT.TAI),11),new _T(new te(2441683,43212,tT.TAI),12),new _T(new te(2442048,43213,tT.TAI),13),new _T(new te(2442413,43214,tT.TAI),14),new _T(new te(2442778,43215,tT.TAI),15),new _T(new te(2443144,43216,tT.TAI),16),new _T(new te(2443509,43217,tT.TAI),17),new _T(new te(2443874,43218,tT.TAI),18),new _T(new te(2444239,43219,tT.TAI),19),new _T(new te(2444786,43220,tT.TAI),20),new _T(new te(2445151,43221,tT.TAI),21),new _T(new te(2445516,43222,tT.TAI),22),new _T(new te(2446247,43223,tT.TAI),23),new _T(new te(2447161,43224,tT.TAI),24),new _T(new te(2447892,43225,tT.TAI),25),new _T(new te(2448257,43226,tT.TAI),26),new _T(new te(2448804,43227,tT.TAI),27),new _T(new te(2449169,43228,tT.TAI),28),new _T(new te(2449534,43229,tT.TAI),29),new _T(new te(2450083,43230,tT.TAI),30),new _T(new te(2450630,43231,tT.TAI),31),new _T(new te(2451179,43232,tT.TAI),32),new _T(new te(2453736,43233,tT.TAI),33),new _T(new te(2454832,43234,tT.TAI),34),new _T(new te(2456109,43235,tT.TAI),35),new _T(new te(2457204,43236,tT.TAI),36),new _T(new te(2457754,43237,tT.TAI),37)],W(A(),1),W(A(),1),Object.defineProperties(W_.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(b){this._fullscreenElement=b}},command:{get:function(){return this._command}}}),W_.prototype.isDestroyed=function(){return!1},W_.prototype.destroy=function(){document.removeEventListener(VU.changeEventName,this._callback),Dt(this)};var A_=W_,gyd="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",yyd="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 m_(b,dV){b=wl(b);let FV=new A_(dV,b);FV._exitFullScreenPath=yyd,FV._enterFullScreenPath=gyd;let EV=document.createElement("button");EV.type="button",EV.className="cesium-button cesium-fullscreenButton",EV.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),b.appendChild(EV),zt.applyBindings(FV,EV),this._container=b,this._viewModel=FV,this._element=EV}Object.defineProperties(m_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),m_.prototype.isDestroyed=function(){return!1},m_.prototype.destroy=function(){return this._viewModel.destroy(),zt.cleanNode(this._element),this._container.removeChild(this._element),Dt(this)};var c_=m_;W(A(),1),W(A(),1);var hxt=1e3;function IF(b){n(b.geocoderServices)?this._geocoderServices=b.geocoderServices:this._geocoderServices=[new eP({scene:b.scene})],this._viewContainer=b.container,this._scene=b.scene,this._flightDuration=b.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._wasGeocodeCancelled=!1,this._previousCredits=[],this._complete=new bt,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=Sxt,this._handleArrowUp=Dxt;let dV=this;this._suggestionsVisible=zt.pureComputed((function(){let b=zt.getObservable(dV,"_suggestions")().length>0,FV=zt.getObservable(dV,"_showSuggestions")();return b&&FV})),this._searchCommand=Wl((function(b){return b=m(b,Wr.SEARCH),dV._focusTextbox=!1,n(dV._selectedSuggestion)?(dV.activateSuggestion(dV._selectedSuggestion),!1):(dV.hideSuggestions(),dV.isSearchInProgress?void vyd(dV):Hyd(dV,dV._geocoderServices,b))})),this.deselectSuggestion=function(){dV._selectedSuggestion=void 0},this.handleKeyDown=function(b,dV){let FV="ArrowDown"===dV.key||"Down"===dV.key||40===dV.keyCode,EV="ArrowUp"===dV.key||"Up"===dV.key||38===dV.keyCode;return(FV||EV)&&dV.preventDefault(),!0},this.handleKeyUp=function(b,FV){let EV="ArrowDown"===FV.key||"Down"===FV.key||40===FV.keyCode,qV="ArrowUp"===FV.key||"Up"===FV.key||38===FV.keyCode,$V="Enter"===FV.key||13===FV.keyCode;return qV?Dxt(dV):EV?Sxt(dV):$V&&dV._searchCommand(),!0},this.activateSuggestion=function(b){dV.hideSuggestions(),dV._searchText=b.displayName;let FV=b.destination;wxt(dV),dV.destinationFound(dV,FV)},this.hideSuggestions=function(){dV._showSuggestions=!1,dV._selectedSuggestion=void 0},this.showSuggestions=function(){dV._showSuggestions=!0},this.handleMouseover=function(b,FV){b!==dV._selectedSuggestion&&(dV._selectedSuggestion=b)},this.keepExpanded=!1,this.autoComplete=m(b.autocomplete,!0),this.destinationFound=m(b.destinationFound,IF.flyToDestination),this._focusTextbox=!1,zt.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let FV=zt.getObservable(this,"_searchText");FV.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=FV.subscribe((function(){IF._updateSearchSuggestions(dV)})),this.isSearchInProgress=void 0,zt.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,zt.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(b){this._searchText=b}}),this.flightDuration=void 0,zt.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(b){this._flightDuration=b}})}function Dxt(b){if(0===b._suggestions.length)return;let dV=b._suggestions.indexOf(b._selectedSuggestion);if(-1===dV||0===dV)return void(b._selectedSuggestion=void 0);let FV=dV-1;b._selectedSuggestion=b._suggestions[FV],IF._adjustSuggestionsScroll(b,FV)}function Sxt(b){if(0===b._suggestions.length)return;let dV=b._suggestions.length,FV=(b._suggestions.indexOf(b._selectedSuggestion)+1)%dV;b._selectedSuggestion=b._suggestions[FV],IF._adjustSuggestionsScroll(b,FV)}function jyd(b,dV){let FV=n(dV)?dV.availability:void 0;return n(FV)?HB(dV,[b]).then((function(dV){return(b=dV[0]).height+=hxt,b})):(b.height+=hxt,Promise.resolve(b))}function Oyd(b,dV){let FV,EV=b._scene,qV=EV.mapProjection.ellipsoid,$V=EV.camera,dd=EV.terrainProvider,Td=dV;return dV instanceof pt?X.equalsEpsilon(dV.south,dV.north,X.EPSILON7)&&X.equalsEpsilon(dV.east,dV.west,X.EPSILON7)?dV=pt.center(dV):FV=Tw(dV,EV):dV=qV.cartesianToCartographic(dV),n(FV)||(FV=jyd(dV,dd)),FV.then((function(b){Td=qV.cartographicToCartesian(b)})).finally((function(){$V.flyTo({destination:Td,complete:function(){b._complete.raiseEvent()},duration:b._flightDuration,endTransform:z.IDENTITY})}))}async function fyd(b,dV,FV){try{return{state:"fulfilled",value:await b.geocode(dV,FV),credits:b.credit}}catch(EV){return{state:"rejected",reason:EV}}}async function Hyd(b,dV,FV){let EV,qV,$V=b._searchText;if(Bxt($V))return void b.showSuggestions();for(b._isSearchInProgress=!0,b._wasGeocodeCancelled=!1,EV=0;EV0)break}if(b._wasGeocodeCancelled)return;b._isSearchInProgress=!1,$Ut(b);let dd=qV.value;if("fulfilled"===qV.state&&n(dd)&&dd.length>0){b._searchText=dd[0].displayName,b.destinationFound(b,dd[0].destination);let FV=kxt(b,Nx.getCreditsFromResult(dd[0]));n(FV)||qUt(b,dV[EV].credit)}else b._searchText=`${$V} (not found)`}function qUt(b,dV){n(dV)&&!b._scene.isDestroyed()&&!b._scene.frameState.creditDisplay.isDestroyed()&&(b._scene.frameState.creditDisplay.addStaticCredit(dV),b._previousCredits.push(dV))}function kxt(b,dV){return n(dV)&&dV.forEach((dV=>qUt(b,dV))),dV}function $Ut(b){!b._scene.isDestroyed()&&!b._scene.frameState.creditDisplay.isDestroyed()&&b._previousCredits.forEach((dV=>{b._scene.frameState.creditDisplay.removeStaticCredit(dV)})),b._previousCredits.length=0}function Kyd(b,dV){let FV=wl(b._viewContainer),EV=FV.getElementsByClassName("search-results")[0],qV=FV.getElementsByTagName("li")[dV];if(0===dV)return void(EV.scrollTop=0);let $V=qV.offsetTop;$V+qV.clientHeight>EV.clientHeight?EV.scrollTop=$V+qV.clientHeight:$V0){let dV=!0;EV.forEach((FV=>{let EV=Nx.getCreditsFromResult(FV);dV=dV&&!n(EV),kxt(b,EV)})),dV&&qUt(b,FV.credit)}if(b._suggestions.length>=5)return}}Object.defineProperties(IF.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}}}),IF.prototype.destroy=function(){this._suggestionSubscription.dispose()},IF.flyToDestination=Oyd,IF._updateSearchSuggestions=Pyd,IF._adjustSuggestionsScroll=Kyd,IF.prototype.isDestroyed=function(){return!1},IF.prototype.destroy=function(){return $Ut(this),Dt(this)};var p_=IF,_yd="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",qyd="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 Q_(b){let dV=wl(b.container),FV=new p_(b);FV._startSearchPath=_yd,FV._stopSearchPath=qyd;let EV=document.createElement("form");EV.setAttribute("data-bind","submit: search");let qV=document.createElement("input");qV.type="search",qV.className="cesium-geocoder-input",qV.setAttribute("placeholder","Enter an address or landmark..."),qV.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(){qV.select()}),0)},qV.addEventListener("focus",this._onTextBoxFocus,!1),EV.appendChild(qV),this._textBox=qV;let $V=document.createElement("span");$V.className="cesium-geocoder-searchButton",$V.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),EV.appendChild($V),dV.appendChild(EV);let dd=document.createElement("div");dd.className="search-results",dd.setAttribute("data-bind","visible: _suggestionsVisible");let Td=document.createElement("ul");Td.setAttribute("data-bind","foreach: _suggestions");let Ed=document.createElement("li");Td.appendChild(Ed),Ed.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),dd.appendChild(Td),dV.appendChild(dd),zt.applyBindings(FV,EV),zt.applyBindings(FV,dd),this._container=dV,this._searchSuggestionsContainer=dd,this._viewModel=FV,this._form=EV,this._onInputBegin=function(b){let EV=b.target;"function"==typeof b.composedPath&&(EV=b.composedPath()[0]),dV.contains(EV)||(FV._focusTextbox=!1,FV.hideSuggestions())},this._onInputEnd=function(b){FV._focusTextbox=!0,FV.showSuggestions()},Se.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),dV.addEventListener("pointerup",this._onInputEnd,!0),dV.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),dV.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),dV.addEventListener("touchend",this._onInputEnd,!0),dV.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(Q_.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}}),Q_.prototype.isDestroyed=function(){return!1},Q_.prototype.destroy=function(){let b=this._container;return Se.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),b.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),b.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),b.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),zt.cleanNode(this._form),zt.cleanNode(this._searchSuggestionsContainer),b.removeChild(this._form),b.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),Dt(this)};var r_=Q_;function bxt(b,dV){this._scene=b,this._duration=dV;let FV=this;this._command=Wl((function(){FV._scene.camera.flyHome(FV._duration)})),this.tooltip="View Home",zt.track(this,["tooltip"])}W(A(),1),W(A(),1),Object.defineProperties(bxt.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(b){this._duration=b}}});var h_=bxt;function D_(b,dV,FV){b=wl(b);let EV=new h_(dV,FV);EV._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 qV=document.createElement("button");qV.type="button",qV.className="cesium-button cesium-toolbar-button cesium-home-button",qV.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),b.appendChild(qV),zt.applyBindings(EV,qV),this._container=b,this._viewModel=EV,this._element=qV}Object.defineProperties(D_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),D_.prototype.isDestroyed=function(){return!1},D_.prototype.destroy=function(){return zt.cleanNode(this._element),this._container.removeChild(this._element),Dt(this)};var S_=D_;W(A(),1),W(A(),1),W(A(),1),W(A(),1);var Vjd="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",Tjd="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 tat(){this._cameraClicked=new bt,this._closeClicked=new bt,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",zt.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='
',this.cameraIconPath=void 0,zt.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?Tjd:Vjd}}),zt.defineProperty(this,"_bodyless",{get:function(){return!n(this.description)||0===this.description.length}})}tat.prototype.maxHeightOffset=function(b){return this.maxHeight-b+"px"},Object.defineProperties(tat.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var w_=tat;function b_(b){b=wl(b);let dV=document.createElement("div");dV.className="cesium-infoBox",dV.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),b.appendChild(dV);let FV=document.createElement("div");FV.className="cesium-infoBox-title",FV.setAttribute("data-bind","text: titleText"),dV.appendChild(FV);let EV=document.createElement("button");EV.type="button",EV.className="cesium-button cesium-infoBox-camera",EV.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),dV.appendChild(EV);let qV=document.createElement("button");qV.type="button",qV.className="cesium-infoBox-close",qV.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),qV.innerHTML="×",dV.appendChild(qV);let $V=document.createElement("iframe");$V.className="cesium-infoBox-iframe",$V.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),$V.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),$V.setAttribute("allowfullscreen",!0),dV.appendChild($V);let dd=new w_;zt.applyBindings(dd,dV),this._container=b,this._element=dV,this._frame=$V,this._viewModel=dd,this._descriptionSubscription=void 0;let Td=this;$V.addEventListener("load",(function(){let b=$V.contentDocument,FV=b.createElement("link");FV.href=ge("Widgets/InfoBox/InfoBoxDescription.css"),FV.rel="stylesheet",FV.type="text/css";let EV=b.createElement("div");EV.className="cesium-infoBox-description",b.head.appendChild(FV),b.body.appendChild(EV),Td._descriptionSubscription=rM(dd,"description",(function(b){$V.style.height="5px",EV.innerHTML=b;let FV=null,qV=EV.firstElementChild;if(null!==qV&&1===EV.childNodes.length){let b=window.getComputedStyle(qV);if(null!==b){let dV=b["background-color"],EV=K.fromCssColorString(dV);n(EV)&&0!==EV.alpha&&(FV=b["background-color"])}}dV.style["background-color"]=FV;let dd=EV.getBoundingClientRect().height;$V.style.height=`${dd}px`}))})),$V.setAttribute("src","about:blank")}Object.defineProperties(b_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}}),b_.prototype.isDestroyed=function(){return!1},b_.prototype.destroy=function(){let b=this._container;return zt.cleanNode(this._element),b.removeChild(this._element),n(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),Dt(this)};var G_=b_;function Lxt(){this.showInstructions=!1;let b=this;this._command=Wl((function(){b.showInstructions=!b.showInstructions})),this._showClick=Wl((function(){b._touch=!1})),this._showTouch=Wl((function(){b._touch=!0})),this._touch=!1,this.tooltip="Navigation Instructions",zt.track(this,["tooltip","showInstructions","_touch"])}W(A(),1),W(A(),1),Object.defineProperties(Lxt.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var C_=Lxt;function X_(b){let dV=wl(b.container),FV=new C_,EV=m(b.instructionsInitiallyVisible,!1);FV.showInstructions=EV,FV._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 qV=document.createElement("span");qV.className="cesium-navigationHelpButton-wrapper",dV.appendChild(qV);let $V=document.createElement("button");$V.type="button",$V.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",$V.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),qV.appendChild($V);let dd=document.createElement("div");dd.className="cesium-navigation-help",dd.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),qV.appendChild(dd);let Td=document.createElement("button");Td.type="button",Td.className="cesium-navigation-button cesium-navigation-button-left",Td.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let Ed=document.createElement("img");Ed.src=ge("Widgets/Images/NavigationHelp/Mouse.svg"),Ed.className="cesium-navigation-button-icon",Ed.style.width="25px",Ed.style.height="25px",Td.appendChild(Ed),Td.appendChild(document.createTextNode("Mouse"));let kd=document.createElement("button");kd.type="button",kd.className="cesium-navigation-button cesium-navigation-button-right",kd.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let Sd=document.createElement("img");Sd.src=ge("Widgets/Images/NavigationHelp/Touch.svg"),Sd.className="cesium-navigation-button-icon",Sd.style.width="25px",Sd.style.height="25px",kd.appendChild(Sd),kd.appendChild(document.createTextNode("Touch")),dd.appendChild(Td),dd.appendChild(kd);let Xd=document.createElement("div");Xd.className="cesium-click-navigation-help cesium-navigation-help-instructions",Xd.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),Xd.innerHTML=`
Pan view
Left click + drag
Zoom view
Right click + drag, or
Mouse wheel scroll
Rotate view
Middle click + drag, or
CTRL + Left/Right click + drag
`,dd.appendChild(Xd);let Cd=document.createElement("div");Cd.className="cesium-touch-navigation-help cesium-navigation-help-instructions",Cd.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),Cd.innerHTML=`
Pan view
One finger drag
Zoom view
Two finger pinch
Tilt view
Two finger drag, same direction
Rotate view
Two finger drag, opposite direction
`,dd.appendChild(Cd),zt.applyBindings(FV,qV),this._container=dV,this._viewModel=FV,this._wrapper=qV,this._closeInstructions=function(b){qV.contains(b.target)||(FV.showInstructions=!1)},Se.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(X_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),X_.prototype.isDestroyed=function(){return!1},X_.prototype.destroy=function(){return Se.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),zt.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),Dt(this)};var u_=X_;function x_(b){this._scene=b,this._orthographic=b.camera.frustum instanceof Ke,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=b.mode,zt.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let dV=this;zt.defineProperty(this,"selectedTooltip",(function(){return dV._orthographic?dV.tooltipOrthographic:dV.tooltipPerspective})),this._toggleDropDown=Wl((function(){dV.sceneMode===Et.SCENE2D||dV._flightInProgress||(dV.dropDownVisible=!dV.dropDownVisible)})),this._eventHelper=new DU,this._eventHelper.add(b.morphComplete,(function(b,FV,EV,qV){dV.sceneMode=EV,dV._orthographic=EV===Et.SCENE2D||dV._scene.camera.frustum instanceof Ke})),this._eventHelper.add(b.preRender,(function(){dV._flightInProgress=n(b.camera._currentFlight)})),this._switchToPerspective=Wl((function(){dV.sceneMode!==Et.SCENE2D&&(dV._scene.camera.switchToPerspectiveFrustum(),dV._orthographic=!1,dV.dropDownVisible=!1)})),this._switchToOrthographic=Wl((function(){dV.sceneMode!==Et.SCENE2D&&(dV._scene.camera.switchToOrthographicFrustum(),dV._orthographic=!0,dV.dropDownVisible=!1)})),this._sceneMode=Et}W(A(),1),W(A(),1),Object.defineProperties(x_.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}}}),x_.prototype.isDestroyed=function(){return!1},x_.prototype.destroy=function(){this._eventHelper.removeAll(),Dt(this)};var L_=x_,Rjd="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",Ujd="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 J_(b,dV){b=wl(b);let FV=new L_(dV);FV._perspectivePath=Rjd,FV._orthographicPath=Ujd;let EV=document.createElement("span");EV.className="cesium-projectionPicker-wrapper cesium-toolbar-button",b.appendChild(EV);let qV=document.createElement("button");qV.type="button",qV.className="cesium-button cesium-toolbar-button",qV.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'),qV.innerHTML='\x3c!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --\x3e\x3c!-- /ko --\x3e\x3c!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --\x3e\x3c!-- /ko --\x3e',EV.appendChild(qV);let $V=document.createElement("button");$V.type="button",$V.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",$V.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 }'),EV.appendChild($V);let dd=document.createElement("button");dd.type="button",dd.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",dd.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 }'),EV.appendChild(dd),zt.applyBindings(FV,EV),this._viewModel=FV,this._container=b,this._wrapper=EV,this._closeDropDown=function(b){EV.contains(b.target)||(FV.dropDownVisible=!1)},Se.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(J_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),J_.prototype.isDestroyed=function(){return!1},J_.prototype.destroy=function(){return this._viewModel.destroy(),Se.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),zt.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),Dt(this)};var I_=J_;function dat(b){this._scene=b.scene,this.lowFrameRateMessage=m(b.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,zt.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let dV=this;this._dismissMessage=Wl((function(){dV.showingLowFrameRateMessage=!1,dV.lowFrameRateMessageDismissed=!0}));let FV=pP.fromScene(b.scene);this._unsubscribeLowFrameRate=FV.lowFrameRate.addEventListener((function(){dV.lowFrameRateMessageDismissed||(dV.showingLowFrameRateMessage=!0)})),this._unsubscribeNominalFrameRate=FV.nominalFrameRate.addEventListener((function(){dV.showingLowFrameRateMessage=!1}))}W(A(),1),W(A(),1),Object.defineProperties(dat.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}}),dat.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),Dt(this)};var Y_=dat;function z_(b){let dV=wl(b.container),FV=new Y_(b),EV=document.createElement("div");EV.className="cesium-performance-watchdog-message-area",EV.setAttribute("data-bind","visible: showingLowFrameRateMessage");let qV=document.createElement("button");qV.setAttribute("type","button"),qV.className="cesium-performance-watchdog-message-dismiss",qV.innerHTML="×",qV.setAttribute("data-bind","click: dismissMessage"),EV.appendChild(qV);let $V=document.createElement("div");$V.className="cesium-performance-watchdog-message",$V.setAttribute("data-bind","html: lowFrameRateMessage"),EV.appendChild($V),dV.appendChild(EV),zt.applyBindings(FV,EV),this._container=dV,this._viewModel=FV,this._element=EV}function y_(b,dV){this._scene=b;let FV=this;this._eventHelper=new DU,this._eventHelper.add(b.morphStart,(function(b,dV,EV,qV){FV.sceneMode=EV,FV.dropDownVisible=!1})),this._duration=m(dV,2),this.sceneMode=b.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",zt.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,zt.defineProperty(this,"selectedTooltip",(function(){let b=FV.sceneMode;return b===Et.SCENE2D?FV.tooltip2D:b===Et.SCENE3D?FV.tooltip3D:FV.tooltipColumbusView})),this._toggleDropDown=Wl((function(){FV.dropDownVisible=!FV.dropDownVisible})),this._morphTo2D=Wl((function(){b.morphTo2D(FV._duration)})),this._morphTo3D=Wl((function(){b.morphTo3D(FV._duration)})),this._morphToColumbusView=Wl((function(){b.morphToColumbusView(FV._duration)})),this._sceneMode=Et}Object.defineProperties(z_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),z_.prototype.isDestroyed=function(){return!1},z_.prototype.destroy=function(){return this._viewModel.destroy(),zt.cleanNode(this._element),this._container.removeChild(this._element),Dt(this)},W(A(),1),W(A(),1),Object.defineProperties(y_.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(b){this._duration=b}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}}),y_.prototype.isDestroyed=function(){return!1},y_.prototype.destroy=function(){this._eventHelper.removeAll(),Dt(this)};var j_=y_,ajd="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",Mjd="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",njd="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 O_(b,dV,FV){b=wl(b);let EV=new j_(dV,FV);EV._globePath=ajd,EV._flatMapPath=Mjd,EV._columbusViewPath=njd;let qV=document.createElement("span");qV.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",b.appendChild(qV);let $V=document.createElement("button");$V.type="button",$V.className="cesium-button cesium-toolbar-button",$V.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'),$V.innerHTML='\x3c!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --\x3e\x3c!-- /ko --\x3e\x3c!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --\x3e\x3c!-- /ko --\x3e\x3c!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --\x3e\x3c!-- /ko --\x3e',qV.appendChild($V);let dd=document.createElement("button");dd.type="button",dd.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",dd.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 }'),qV.appendChild(dd);let Td=document.createElement("button");Td.type="button",Td.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",Td.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 }'),qV.appendChild(Td);let Ed=document.createElement("button");Ed.type="button",Ed.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",Ed.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 }'),qV.appendChild(Ed),zt.applyBindings(EV,qV),this._viewModel=EV,this._container=b,this._wrapper=qV,this._closeDropDown=function(b){qV.contains(b.target)||(EV.dropDownVisible=!1)},Se.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(O_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),O_.prototype.isDestroyed=function(){return!1},O_.prototype.destroy=function(){return this._viewModel.destroy(),Se.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),zt.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),Dt(this)};var f_=O_;W(A(),1),W(A(),1);var Njd=new v,H_="-1000px";function gx(b,dV,FV){this._scene=b,this._screenPositionX=H_,this._screenPositionY=H_,this._tweens=b.tweens,this._container=m(FV,document.body),this._selectionIndicatorElement=dV,this._scale=1,this.position=void 0,this.showSelection=!1,zt.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,zt.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&n(this.position)}}),zt.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(dV,FV){return TT.wgs84ToWindowCoordinates(b,dV,FV)}}gx.prototype.update=function(){if(this.showSelection&&n(this.position)){let b=this.computeScreenSpacePosition(this.position,Njd);if(n(b)){let dV=this._container,FV=dV.parentNode.clientWidth,EV=dV.parentNode.clientHeight,qV=this._selectionIndicatorElement.clientWidth,$V=.5*qV;b.x=Math.min(Math.max(b.x,-qV),FV+qV)-$V,b.y=Math.min(Math.max(b.y,-qV),EV+qV)-$V,this._screenPositionX=`${Math.floor(b.x+.25)}px`,this._screenPositionY=`${Math.floor(b.y+.25)}px`}else this._screenPositionX=H_,this._screenPositionY=H_}},gx.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:bU.EXPONENTIAL_OUT})},gx.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:bU.EXPONENTIAL_OUT})},Object.defineProperties(gx.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var K_=gx;function v_(b,dV){b=wl(b),this._container=b;let FV=document.createElement("div");FV.className="cesium-selection-wrapper",FV.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),b.appendChild(FV),this._element=FV;let EV="http://www.w3.org/2000/svg",qV=document.createElementNS(EV,"svg:svg");qV.setAttribute("width",160),qV.setAttribute("height",160),qV.setAttribute("viewBox","0 0 160 160");let $V=document.createElementNS(EV,"g");$V.setAttribute("transform","translate(80,80)"),qV.appendChild($V);let dd=document.createElementNS(EV,"path");dd.setAttribute("data-bind","attr: { transform: _transform }"),dd.setAttribute("d","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"),$V.appendChild(dd),FV.appendChild(qV);let Td=new K_(dV,this._element,this._container);this._viewModel=Td,zt.applyBindings(this._viewModel,this._element)}Object.defineProperties(v_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),v_.prototype.isDestroyed=function(){return!1},v_.prototype.destroy=function(){let b=this._container;return zt.cleanNode(this._element),b.removeChild(this._element),Dt(this)};var P_=v_;function br(b,dV,FV){this._color=b,this._height=dV,this._base=m(FV,0)}W(A(),1),W(A(),1),br.prototype.getHeight=function(){return this._height},br.prototype.getBase=function(){return this._base},br.prototype.getStartTime=function(){return this._start},br.prototype.getStopTime=function(){return this._stop},br.prototype.setRange=function(b,dV){this._start=b,this._stop=dV},br.prototype.render=function(b){let dV="";if(this._start&&this._stop&&this._color){let FV=Rt.secondsDifference(this._start,b.epochJulian),EV=Math.round(b.timeBarWidth*b.getAlpha(FV)),qV=Rt.secondsDifference(this._stop,b.epochJulian),$V=Math.round(b.timeBarWidth*b.getAlpha(qV))-EV;EV<0&&($V+=EV,EV=0),EV+$V>b.timeBarWidth&&($V=b.timeBarWidth-EV),$V>0&&(dV=``)}return dV};var __=br;function Jxt(b,dV,FV,EV){this.interval=b,this.height=dV,this.color=FV||new K(.5,.5,.5,1),this.backgroundColor=EV||new K(0,0,0,0)}W(A(),1),Jxt.prototype.render=function(b,dV){let FV=this.interval.start,EV=this.interval.stop,qV=dV.startJulian,$V=Rt.addSeconds(dV.startJulian,dV.duration,new Rt);if(Rt.lessThan(FV,qV)&&Rt.greaterThan(EV,$V))b.fillStyle=this.color.toCssColorString(),b.fillRect(0,dV.y,dV.timeBarWidth,this.height);else if(Rt.lessThanOrEquals(FV,$V)&&Rt.greaterThanOrEquals(EV,qV)){let qV,$V,dd;for(qV=0;qVb._topDiv.clientWidth?(b._timelineDragLocation=b._topDiv.clientWidth,b._timelineDrag=.01*b._timeBarSecondsSpan):(b._timelineDragLocation=void 0,b._setTimeBarTime(FV,FV*b._timeBarSecondsSpan/b._topDiv.clientWidth))}else if(b._mouseMode===YF.slide){if(FV=b._mouseX-dV.clientX,b._mouseX=dV.clientX,0!==FV){let dV=FV*b._timeBarSecondsSpan/b._topDiv.clientWidth;b.zoomTo(Rt.addSeconds(b._startJulian,dV,new Rt),Rt.addSeconds(b._endJulian,dV,new Rt))}}else b._mouseMode===YF.zoom&&(FV=b._mouseX-dV.clientX,b._mouseX=dV.clientX,0!==FV&&b.zoomFrom(Math.pow(1.01,FV)))}}function sjd(b){return function(dV){let FV=dV.wheelDeltaY||dV.wheelDelta||-dV.detail;FV/=eat=Math.max(Math.min(Math.abs(FV),eat),1),b.zoomFrom(Math.pow(1.05,-FV))}}function ojd(b){return function(dV){let FV,EV,qV=dV.touches.length,$V=b._topDiv.getBoundingClientRect().left;dV.preventDefault(),b._mouseMode=YF.touchOnly,1===qV?(FV=Rt.secondsDifference(b._scrubJulian,b._startJulian),EV=Math.round(FV*b._topDiv.clientWidth/b._timeBarSecondsSpan+$V),Math.abs(dV.touches[0].clientX-EV)<50?(b._touchMode=TN.scrub,b._scrubElement&&(b._scrubElement.style.backgroundPosition=1===qV?"-16px 0":"0 0")):(b._touchMode=TN.singleTap,b._touchState.centerX=dV.touches[0].clientX-$V)):2===qV?(b._touchMode=TN.slideZoom,b._touchState.centerX=.5*(dV.touches[0].clientX+dV.touches[1].clientX)-$V,b._touchState.spanX=Math.abs(dV.touches[0].clientX-dV.touches[1].clientX)):b._touchMode=TN.ignore}}function Wjd(b){return function(dV){let FV=dV.touches.length,EV=b._topDiv.getBoundingClientRect().left;b._touchMode===TN.singleTap?(b._touchMode=TN.scrub,b._onTouchMove(dV)):b._touchMode===TN.scrub&&b._onTouchMove(dV),b._mouseMode=YF.touchOnly,1!==FV?b._touchMode=FV>0?TN.ignore:TN.none:b._touchMode===TN.slideZoom&&(b._touchState.centerX=dV.touches[0].clientX-EV),b._scrubElement&&(b._scrubElement.style.backgroundPosition="0 0")}}function Ajd(b){return function(dV){let FV,EV,qV,$V,dd,Td,Ed=1,kd=b._topDiv.getBoundingClientRect().left;b._touchMode===TN.singleTap&&(b._touchMode=TN.slideZoom),b._mouseMode=YF.touchOnly,b._touchMode===TN.scrub?(dV.preventDefault(),1===dV.changedTouches.length&&(EV=dV.changedTouches[0].clientX-kd,EV>=0&&EV<=b._topDiv.clientWidth&&b._setTimeBarTime(EV,EV*b._timeBarSecondsSpan/b._topDiv.clientWidth))):b._touchMode===TN.slideZoom&&(qV=dV.touches.length,2===qV?($V=.5*(dV.touches[0].clientX+dV.touches[1].clientX)-kd,dd=Math.abs(dV.touches[0].clientX-dV.touches[1].clientX)):1===qV&&($V=dV.touches[0].clientX-kd,dd=0),n($V)&&(dd>0&&b._touchState.spanX>0?(Ed=b._touchState.spanX/dd,Td=Rt.addSeconds(b._startJulian,(b._touchState.centerX*b._timeBarSecondsSpan-$V*b._timeBarSecondsSpan*Ed)/b._topDiv.clientWidth,new Rt)):(FV=b._touchState.centerX-$V,Td=Rt.addSeconds(b._startJulian,FV*b._timeBarSecondsSpan/b._topDiv.clientWidth,new Rt)),b.zoomTo(Td,Rt.addSeconds(Td,b._timeBarSecondsSpan*Ed,new Rt)),b._touchState.centerX=$V,b._touchState.spanX=dd))}}RN.prototype.addEventListener=function(b,dV,FV){this._topDiv.addEventListener(b,dV,FV)},RN.prototype.removeEventListener=function(b,dV,FV){this._topDiv.removeEventListener(b,dV,FV)},RN.prototype.isDestroyed=function(){return!1},RN.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);let b=this.container.ownerDocument;b.removeEventListener("mouseup",this._onMouseUp,!1),b.removeEventListener("mousemove",this._onMouseMove,!1);let dV=this._timeBarEle;dV.removeEventListener("mousedown",this._onMouseDown,!1),dV.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),dV.removeEventListener("mousewheel",this._onMouseWheel,!1),dV.removeEventListener("touchstart",this._onTouchStart,!1),dV.removeEventListener("touchmove",this._onTouchMove,!1),dV.removeEventListener("touchend",this._onTouchEnd,!1),dV.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),Dt(this)},RN.prototype.addHighlightRange=function(b,dV,FV){let EV=new __(b,dV,FV);return this._highlightRanges.push(EV),this.resize(),EV},RN.prototype.addTrack=function(b,dV,FV,EV){let qV=new q_(b,dV,FV,EV);return this._trackList.push(qV),this._lastHeight=void 0,this.resize(),qV},RN.prototype.zoomTo=function(b,dV){if(this._startJulian=b,this._endJulian=dV,this._timeBarSecondsSpan=Rt.secondsDifference(dV,b),this._clock&&this._clock.clockRange!==BU.UNBOUNDED){let b=this._clock.startTime,dV=this._clock.stopTime,FV=Rt.secondsDifference(dV,b),EV=Rt.secondsDifference(b,this._startJulian),qV=Rt.secondsDifference(dV,this._endJulian);this._timeBarSecondsSpan>=FV?(this._timeBarSecondsSpan=FV,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):EV>0?(this._endJulian=Rt.addSeconds(this._endJulian,EV,new Rt),this._startJulian=b,this._timeBarSecondsSpan=Rt.secondsDifference(this._endJulian,this._startJulian)):qV<0&&(this._startJulian=Rt.addSeconds(this._startJulian,qV,new Rt),this._endJulian=dV,this._timeBarSecondsSpan=Rt.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();let FV=document.createEvent("Event");FV.initEvent("setzoom",!0,!0),FV.startJulian=this._startJulian,FV.endJulian=this._endJulian,FV.epochJulian=this._epochJulian,FV.totalSpan=this._timeBarSecondsSpan,FV.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(FV)},RN.prototype.zoomFrom=function(b){let dV=Rt.secondsDifference(this._scrubJulian,this._startJulian);b>1||dV<0||dV>this._timeBarSecondsSpan?dV=.5*this._timeBarSecondsSpan:dV+=dV-.5*this._timeBarSecondsSpan;let FV=this._timeBarSecondsSpan-dV;this.zoomTo(Rt.addSeconds(this._startJulian,dV-dV*b,new Rt),Rt.addSeconds(this._endJulian,FV*b-FV,new Rt))},RN.prototype.makeLabel=function(b){let dV=Rt.toGregorianDate(b),FV=dV.millisecond,EV=" UTC";if(FV>0&&this._timeBarSecondsSpan<3600){for(EV=Math.floor(FV).toString();EV.length<3;)EV=`0${EV}`;EV=`.${EV}`}return`${ijd[dV.month-1]} ${dV.day} ${dV.year} ${lat(dV.hour)}:${lat(dV.minute)}:${lat(dV.second)}${EV}`},RN.prototype.smallestTicInPixels=7,RN.prototype._makeTics=function(){let b,dV=this._timeBarEle,FV=Rt.secondsDifference(this._scrubJulian,this._startJulian),EV=Math.round(FV*this._topDiv.clientWidth/this._timeBarSecondsSpan),qV=EV-8,$V=this;this._needleEle.style.left=`${EV.toString()}px`;let dd="",Td=.01,Ed=31536e6,kd=1e-10,Sd=0,Xd=this._timeBarSecondsSpan;XdEd&&(Xd=Ed,this._timeBarSecondsSpan=Ed,this._endJulian=Rt.addSeconds(this._startJulian,Ed,new Rt));let Cd=this._timeBarEle.clientWidth;Cd<10&&(Cd=10);let _d,el=this._startJulian,Xl=Math.min(Xd/Cd*1e-5,.4),Il=Rt.toGregorianDate(el);_d=Xd>31536e4?Rt.fromDate(new Date(Date.UTC(100*Math.floor(Il.year/100),0))):Xd>31536e3?Rt.fromDate(new Date(Date.UTC(10*Math.floor(Il.year/10),0))):Xd>86400?Rt.fromDate(new Date(Date.UTC(Il.year,0))):Rt.fromDate(new Date(Date.UTC(Il.year,Il.month,Il.day)));let Hl=Rt.secondsDifference(this._startJulian,Rt.addSeconds(_d,Xl,new Rt)),$l=Hl+Xd;function h(b){return Math.floor(Hl/b)*b}function k(b,dV){return Math.ceil(b/dV+.5)*dV}function B(b){return(b-Hl)/Xd}function G(b,dV){return b-dV*Math.round(b/dV)}this._epochJulian=_d,this._rulerEle.innerHTML=this.makeLabel(Rt.addSeconds(this._endJulian,-Td,new Rt));let tR=this._rulerEle.offsetWidth+20;tR<30&&(tR=180);let ER=Sd;Sd-=kd;let sR={startTime:Hl,startJulian:el,epochJulian:_d,duration:Xd,timeBarWidth:Cd,getAlpha:B};this._highlightRanges.forEach((function(b){dd+=b.render(sR)}));let GR=0,uR=0,OR=0,AU=tR/Cd;AU>1&&(AU=1),AU*=this._timeBarSecondsSpan;let mU,wU=-1,oU=-1,XU=Gp.length;for(mU=0;mUAU&&b>Sd)break;oU<0&&Cd*(b/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(oU=wU)}if(wU>0){for(;wU>0;)if(--wU,Math.abs(G(GR,Gp[wU]))<1e-5){Gp[wU]>=Sd&&(uR=Gp[wU]);break}if(oU>=0)for(;oU=Sd){OR=Gp[oU];break}++oU}}Sd=ER,Sd>kd&&OR<1e-5&&Math.abs(Sd-GR)>kd&&(OR=Sd,Sd<=GR+kd&&(uR=0));let LU,uU=-999999;if(Cd*(OR/this._timeBarSecondsSpan)>=3)for(b=h(OR);b<=$l;b=k(b,OR))dd+=``;if(Cd*(uR/this._timeBarSecondsSpan)>=3)for(b=h(uR);b<=$l;b=k(b,uR))dd+=``;if(Cd*(GR/this._timeBarSecondsSpan)>=2){this._mainTicSpan=GR,$l+=GR,b=h(GR);let dV=Rt.computeTaiMinusUtc(_d);for(;b<=$l;){let FV=Rt.addSeconds(el,b-Hl,new Rt);if(GR>2.1){let EV=Rt.computeTaiMinusUtc(FV);Math.abs(EV-dV)>.1&&(b+=EV-dV,FV=Rt.addSeconds(el,b-Hl,new Rt))}let EV=Math.round(Cd*B(b)),qV=this.makeLabel(FV);this._rulerEle.innerHTML=qV,LU=this._rulerEle.offsetWidth,LU<10&&(LU=tR);let $V=EV-(LU/2-1);$V>uU?(uU=$V+LU+5,dd+=`${qV}`):dd+=``,b=k(b,GR)}}else this._mainTicSpan=-1;dd+=``,dV.innerHTML=dd,this._scrubElement=dV.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),sR.y=0,this._trackList.forEach((function(b){b.render($V._context,sR),sR.y+=b.height}))},RN.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let b=this._scrubElement;if(n(this._scrubElement)){let dV=Rt.secondsDifference(this._scrubJulian,this._startJulian),FV=Math.round(dV*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==FV&&(this._lastXPos=FV,b.style.left=FV-8+"px",this._needleEle.style.left=`${FV}px`)}n(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo(Rt.addSeconds(this._startJulian,this._timelineDrag,new Rt),Rt.addSeconds(this._endJulian,this._timelineDrag,new Rt)))},RN.prototype._setTimeBarTime=function(b,dV){if(b=Math.round(b),this._scrubJulian=Rt.addSeconds(this._startJulian,dV,new Rt),this._scrubElement){let dV=b-8;this._scrubElement.style.left=`${dV.toString()}px`,this._needleEle.style.left=`${b.toString()}px`}let FV=document.createEvent("Event");FV.initEvent("settime",!0,!0),FV.clientX=b,FV.timeSeconds=dV,FV.timeJulian=this._scrubJulian,FV.clock=this._clock,this._topDiv.dispatchEvent(FV)},RN.prototype.resize=function(){let b=this.container.clientWidth,dV=this.container.clientHeight;if(b===this._lastWidth&&dV===this._lastHeight)return;this._trackContainer.style.height=`${dV}px`;let FV=1;this._trackList.forEach((function(b){FV+=b.height})),this._trackListEle.style.height=`${FV.toString()}px`,this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=FV,this._makeTics(),this._lastXPos=void 0,this._lastWidth=b,this._lastHeight=dV};var $_=RN;W(A(),1),W(A(),1);var yxt=W(gxt(),1);function pjd(b){let dV=!1,FV=window.screen;return n(FV)&&(n(FV.lockOrientation)?dV=FV.lockOrientation(b):n(FV.mozLockOrientation)?dV=FV.mozLockOrientation(b):n(FV.msLockOrientation)?dV=FV.msLockOrientation(b):n(FV.orientation&&FV.orientation.lock)&&(dV=FV.orientation.lock(b))),dV}function jxt(){let b=window.screen;n(b)&&(n(b.unlockOrientation)?b.unlockOrientation():n(b.mozUnlockOrientation)?b.mozUnlockOrientation():n(b.msUnlockOrientation)?b.msUnlockOrientation():n(b.orientation&&b.orientation.unlock)&&b.orientation.unlock())}function Qjd(b,dV,FV,EV){EV()||(FV()?(dV.useWebVR=!1,b._locked&&(jxt(),b._locked=!1),b._noSleep.disable(),VU.exitFullscreen(),FV(!1)):(VU.fullscreen||VU.requestFullscreen(b._vrElement),b._noSleep.enable(),b._locked||(b._locked=pjd("landscape")),dV.useWebVR=!0,FV(!0)))}function tq(b,dV){let FV=this,EV=zt.observable(VU.enabled),qV=zt.observable(!1);this.isVRMode=void 0,zt.defineProperty(this,"isVRMode",{get:function(){return qV()}}),this.isVREnabled=void 0,zt.defineProperty(this,"isVREnabled",{get:function(){return EV()},set:function(b){EV(b&&VU.enabled)}}),this.tooltip=void 0,zt.defineProperty(this,"tooltip",(function(){return EV()?qV()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"}));let $V=zt.observable(!1);this._isOrthographic=void 0,zt.defineProperty(this,"_isOrthographic",{get:function(){return $V()}}),this._eventHelper=new DU,this._eventHelper.add(b.preRender,(function(){$V(b.camera.frustum instanceof Ke)})),this._locked=!1,this._noSleep=new yxt.default,this._command=Wl((function(){Qjd(FV,b,qV,$V)}),zt.getObservable(this,"isVREnabled")),this._vrElement=m(wl(dV),document.body),this._callback=function(){!VU.fullscreen&&qV()&&(b.useWebVR=!1,FV._locked&&(jxt(),FV._locked=!1),FV._noSleep.disable(),qV(!1))},document.addEventListener(VU.changeEventName,this._callback)}Object.defineProperties(tq.prototype,{vrElement:{get:function(){return this._vrElement},set:function(b){this._vrElement=b}},command:{get:function(){return this._command}}}),tq.prototype.isDestroyed=function(){return!1},tq.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(VU.changeEventName,this._callback),Dt(this)};var dq=tq,rjd="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",hjd="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 eq(b,dV,FV){b=wl(b);let EV=new dq(dV,FV);EV._exitVRPath=hjd,EV._enterVRPath=rjd;let qV=document.createElement("button");qV.type="button",qV.className="cesium-button cesium-vrButton",qV.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),b.appendChild(qV),zt.applyBindings(EV,qV),this._container=b,this._viewModel=EV,this._element=qV}Object.defineProperties(eq.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),eq.prototype.isDestroyed=function(){return!1},eq.prototype.destroy=function(){return this._viewModel.destroy(),zt.cleanNode(this._element),this._container.removeChild(this._element),Dt(this)};var lq=eq;W(A(),1);var Cp=new ct;function Hxt(b){let dV=b.clock;dV.currentTime=b.timeJulian,dV.shouldAnimate=!1}function Djd(b){let dV=b.getPropertyIds(),FV="";return dV.forEach((function(dV){let EV=b.getProperty(dV);n(EV)&&(FV+=`${dV}${EV}`)})),FV.length>0&&(FV=`${FV}
`),FV}function Sjd(b){let dV,FV=[],EV=b.getPropertyIds();for(dV=0;dV{}}}}else{let b=document.createElement("div");b.className="cesium-viewer-animationContainer",qV.appendChild(b),mU=new e_(b,new l_(Ed))}if(n(dV.timeline)&&!1===dV.timeline){if(!1!==dV.timelineContainer){let b=document.createElement("div");b.className="cesium-viewer-timelineContainer",b.style.overflow="visible",qV.appendChild(b),wU={container:b,resize:()=>{},updateFromClock:()=>{},zoomTo:()=>{}}}}else{let b=document.createElement("div");b.className="cesium-viewer-timelineContainer",qV.appendChild(b),wU=new $_(b,Td),wU.addEventListener("settime",Hxt,!1),wU.zoomTo(Td.startTime,Td.stopTime)}if((!n(dV.fullscreenButton)||!1!==dV.fullscreenButton)&&(LU=document.createElement("div"),LU.className="cesium-viewer-fullscreenContainer",qV.appendChild(LU),oU=new c_(LU,dV.fullscreenElement),XU=rM(oU.viewModel,"isFullscreenEnabled",(function(b){LU.style.display=b?"block":"none",n(wU)&&(wU.container.style.right=`${LU.clientWidth}px`,wU.resize())}))),dV.vrButton){let b=document.createElement("div");b.className="cesium-viewer-vrContainer",qV.appendChild(b),uU=new lq(b,Il,dV.fullScreenElement),PU=rM(uU.viewModel,"isVREnabled",(function(dV){b.style.display=dV?"block":"none",n(oU)&&(b.style.right=`${LU.clientWidth}px`),n(wU)&&(wU.container.style.right=`${b.clientWidth}px`,wU.resize())})),_U=rM(uU.viewModel,"isVRMode",(function(b){bjd(EV,b)}))}this._baseLayerPickerDropDown=OR,this._fullscreenSubscription=XU,this._vrSubscription=PU,this._vrModeSubscription=_U,this._dataSourceChangedListeners={},this._automaticallyTrackDataSourceClocks=m(dV.automaticallyTrackDataSourceClocks,!0),this._container=b,this._bottomContainer=$V,this._element=qV,this._cesiumWidget=Xd,this._selectionIndicator=el,this._infoBox=Xl,this._dataSourceCollection=Cd,this._destroyDataSourceCollection=_d,this._dataSourceDisplay=Hl,this._clockViewModel=Ed,this._destroyClockViewModel=Sd,this._toolbar=dT,this._homeButton=ER,this._sceneModePicker=sR,this._projectionPicker=GR,this._baseLayerPicker=uR,this._navigationHelpButton=AU,this._animation=mU,this._timeline=wU,this._fullscreenButton=oU,this._vrButton=uU,this._geocoder=tR,this._eventHelper=$l,this._lastWidth=0,this._lastHeight=0,this._allowDataSourcesToSuspendAnimation=!0,this._entityView=void 0,this._enableInfoOrSelection=n(Xl)||n(el),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 bt,this._trackedEntityChanged=new bt,this._referenceFrame=0,zt.track(this,["_trackedEntity","_selectedEntity","_clockTrackedDataSource"]),$l.add(Cd.dataSourceAdded,LV.prototype._onDataSourceAdded,this),$l.add(Cd.dataSourceRemoved,LV.prototype._onDataSourceRemoved,this),$l.add(Il.postUpdate,LV.prototype.resize,this),$l.add(Il.postRender,LV.prototype._postRender,this);let UT=Cd.length;for(let FT=0;FT{b._completeZoom=function(b){dV(b)}}));return b._zoomPromise=qV,b._zoomIsFlight=EV,b._zoomOptions=FV,Promise.resolve(dV).then((function(dV){if(b._zoomPromise===qV){if(dV instanceof mM){let FV;return FV=n(dV.imageryProvider)?Promise.resolve(dV.getImageryRectangle()):new Promise((b=>{let FV=dV.readyEvent.addEventListener((()=>{FV(),b(dV.getImageryRectangle())}))})),void FV.then((function(dV){return Tw(dV,b.scene)})).then((function(dV){b._zoomPromise===qV&&(b._zoomTarget=dV)}))}if(dV instanceof sM||dV instanceof kx||dV instanceof Zr)return void(b._zoomTarget=dV);if(dV.isLoading&&n(dV.loadingEvent)){let FV=dV.loadingEvent.addEventListener((function(){FV(),b._zoomPromise===qV&&(b._zoomTarget=dV.entities.values.slice(0))}));return}if(Array.isArray(dV))return void(b._zoomTarget=dV.slice(0));dV=m(dV.values,dV),n(dV.entities)&&(dV=dV.entities.values),Array.isArray(dV)?b._zoomTarget=dV.slice(0):b._zoomTarget=[dV]}})),b.scene.requestRender(),qV}function yx(b){b._zoomPromise=void 0,b._zoomTarget=void 0,b._zoomOptions=void 0}function Uat(b){let dV=b._zoomPromise;n(dV)&&(yx(b),b._completeZoom(!1))}function Gjd(b){let dV=b._zoomTarget;if(!n(dV)||b.scene.mode===Et.MORPHING)return;let FV,EV=b.scene,qV=EV.camera,$V=m(b._zoomOptions,{});function R(EV){n($V.offset)||($V.offset=new YZ(0,-.5,EV.radius)),FV={offset:$V.offset,duration:$V.duration,maximumHeight:$V.maximumHeight,complete:function(){b._completeZoom(!0)},cancel:function(){b._completeZoom(!1)}},b._zoomIsFlight?qV.flyToBoundingSphere(dV.boundingSphere,FV):(qV.viewBoundingSphere(EV,$V.offset),qV.lookAtTransform(z.IDENTITY),b._completeZoom(!0)),yx(b)}if(dV instanceof kx){if(n(dV.boundingSphere))return void R(dV.boundingSphere);let b=dV.frameChanged.addEventListener((function(dV){R(dV.boundingSphere),b()}));return}if(dV instanceof sM||dV instanceof Zr)return void R(dV.boundingSphere);if(dV instanceof St)return FV={destination:EV.mapProjection.ellipsoid.cartographicToCartesian(dV),duration:$V.duration,maximumHeight:$V.maximumHeight,complete:function(){b._completeZoom(!0)},cancel:function(){b._completeZoom(!1)}},b._zoomIsFlight?qV.flyTo(FV):(qV.setView(FV),b._completeZoom(!0)),void yx(b);let dd=dV,Td=[];for(let kd=0,Sd=dd.length;kd900?(Sd=169,b<=900&&(Ed.style.width="169px",Ed.style.height="112px",this._animation.resize())):FV>=600?(Sd=136,(b<600||b>900)&&(Ed.style.width="136px",Ed.style.height="90px",this._animation.resize())):(Sd=106,(b>600||0===b)&&(Ed.style.width="106px",Ed.style.height="70px",this._animation.resize())),Xd=Sd+5}if($V&&"hidden"!==window.getComputedStyle(this._timeline.container).visibility){let b=this._fullscreenButton,dV=this._vrButton,FV=kd.container,EV=FV.style;Cd=FV.clientHeight+3,EV.left=`${Sd}px`;let qV=0;n(b)&&(qV+=b.container.clientWidth),n(dV)&&(qV+=dV.container.clientWidth),EV.right=`${qV}px`,kd.resize()}this._bottomContainer.style.left=`${Xd}px`,this._bottomContainer.style.bottom=`${Cd}px`,this._lastWidth=FV,this._lastHeight=EV},LV.prototype.forceResize=function(){this._lastWidth=0,this.resize()},LV.prototype.render=function(){this._cesiumWidget.render()},LV.prototype.isDestroyed=function(){return!1},LV.prototype.destroy=function(){let b;n(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(El.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(El.LEFT_DOUBLE_CLICK));let dV=this.dataSources,FV=dV.length;for(b=0;b0?this.clockTrackedDataSource=b.get(dV-1):this.clockTrackedDataSource=void 0}},LV.prototype.zoomTo=function(b,dV){return vxt(this,b,{offset:dV},!1)},LV.prototype.flyTo=function(b,dV){return vxt(this,b,dV,!0)},LV.prototype._postRender=function(){Gjd(this),Cjd(this)};var Pxt=LV;function jjd(b){try{if(b.scene.mode!==Et.SCENE3D)return;let dV=b.scene,FV=b.clock.currentTime,EV=dV.camera,qV=i$1.clone(EV.position);if(b.referenceFrame!==Al.INERTIAL||b.trackedEntity)b.trackedEntity||EV.lookAtTransform(z.IDENTITY);else{let b=qd.computeIcrfToFixedMatrix(FV);if(n(b)){let dV=z.fromRotationTranslation(b);EV.lookAtTransform(dV,qV)}}}catch(dV){globalThis.error=dV}}function Ew(b,dV){if(b.position&&void 0!==b.position.referenceFrame)try{b.position.referenceFrame=dV}catch(FV){window.error=FV}}function Ojd(b){(!Object.getOwnPropertyDescriptor(b,"referenceFrame")||"number"==typeof b.referenceFrame)&&Object.defineProperty(b,"referenceFrame",{configurable:!0,get:function(){return this._referenceFrame},set:function(b){"number"==typeof b&&(this._referenceFrame=b,this.dataSources._dataSources.forEach((dV=>{dV.entities.values.forEach((dV=>{Ew(dV,b)})),dV.entities.collectionChanged.addEventListener(((dV,FV)=>{FV.added&&FV.added.forEach((dV=>Ew(dV,b)))}))})),this.entities&&(this.entities.values.forEach((dV=>{Ew(dV,b)})),this.entities.collectionChanged.addEventListener(((dV,FV)=>{FV.added&&FV.added.forEach((dV=>Ew(dV,b)))}))),this.eventBus&&this.eventBus.emit("referenceFrameChanged",b))}});let dV=b.referenceFrame;"number"==typeof b.referenceFrame&&(b.referenceFrame=dV),b.dataSources.dataSourceAdded.addEventListener((function(dV,FV){FV.entities.collectionChanged.addEventListener(((dV,FV)=>{FV.added&&FV.added.forEach((dV=>Ew(dV,b._referenceFrame)))})),FV.entities.values.forEach((dV=>{Ew(dV,b._referenceFrame)}))})),b.scene.preRender.addEventListener((function(){jjd(b)}))}W(A(),1),W(A(),1),W(A(),1),W(A(),1),W(A(),1),W(A(),1),W(A(),1);var TLt=Ojd;function ULt(b){let dV,FV=b.split("\n");for(dV=0;dV=$V&&(b=b.slice($V)),EV+=`${b}\n`}return EV}function zF(b){this._scene=b,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let dV=this;function e(FV){let{name:EV,initialValue:qV}=FV;dV._definedProperties.push(EV);let $V=FV.setPrimitiveFunction;!0===$V&&($V=function(b){dV._voxelPrimitive[EV]=b});let dd=FV.getPrimitiveFunction;!0===dd&&(dd=function(){dV[EV]=dV._voxelPrimitive[EV]}),n(dd)&&dV._getPrimitiveFunctions.push(dd);let Td=zt.observable();return zt.defineProperty(dV,EV,{get:function(){return Td()},set:function(FV){"number"==typeof qV&&"string"==typeof FV&&(FV=Number(FV),isNaN(FV)&&(FV=qV)),"boolean"==typeof qV&&"number"==typeof FV&&(FV=1===FV),Td(FV),n($V)&&n(dV._voxelPrimitive)&&($V(FV),b.requestRender())}}),dV[EV]=qV,Td}function l(b,FV){return function(EV){let qV=dV._voxelPrimitive[b].clone();qV[FV]=EV,dV._voxelPrimitive[b]=qV}}e({name:"inspectorVisible",initialValue:!0}),e({name:"displayVisible",initialValue:!1}),e({name:"transformVisible",initialValue:!1}),e({name:"boundsVisible",initialValue:!1}),e({name:"clippingVisible",initialValue:!1}),e({name:"shaderVisible",initialValue:!1}),e({name:"shaderString",initialValue:"",getPrimitiveFunction:function(){let b=dV._voxelPrimitive.customShader.fragmentShaderText;dV.shaderString=ULt(b)}}),e({name:"shaderCompilationMessage",initialValue:""}),e({name:"shaderCompilationSuccess",initialValue:!0}),e({name:"depthTest",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"show",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"disableUpdate",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"debugDraw",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"jitter",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"nearestSampling",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"screenSpaceError",initialValue:4,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"stepSize",initialValue:1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"shapeIsBox",getPrimitiveFunction:function(){let b=dV._voxelPrimitive.shape;dV.shapeIsBox=b===KV.BOX}}),e({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let b=dV._voxelPrimitive.shape;dV.shapeIsEllipsoid=b===KV.ELLIPSOID}}),e({name:"shapeIsCylinder",getPrimitiveFunction:function(){let b=dV._voxelPrimitive.shape;dV.shapeIsCylinder=b===KV.CYLINDER}}),e({name:"boundsBoxMaxX",initialValue:0,setPrimitiveFunction:l("maxBounds","x"),getPrimitiveFunction:function(){dV.boundsBoxMaxX=dV._voxelPrimitive.maxBounds.x}}),e({name:"boundsBoxMinX",initialValue:0,setPrimitiveFunction:l("minBounds","x"),getPrimitiveFunction:function(){dV.boundsBoxMinX=dV._voxelPrimitive.minBounds.x}}),e({name:"boundsBoxMaxY",initialValue:0,setPrimitiveFunction:l("maxBounds","y"),getPrimitiveFunction:function(){dV.boundsBoxMaxY=dV._voxelPrimitive.maxBounds.y}}),e({name:"boundsBoxMinY",initialValue:0,setPrimitiveFunction:l("minBounds","y"),getPrimitiveFunction:function(){dV.boundsBoxMinY=dV._voxelPrimitive.minBounds.y}}),e({name:"boundsBoxMaxZ",initialValue:0,setPrimitiveFunction:l("maxBounds","z"),getPrimitiveFunction:function(){dV.boundsBoxMaxZ=dV._voxelPrimitive.maxBounds.z}}),e({name:"boundsBoxMinZ",initialValue:0,setPrimitiveFunction:l("minBounds","z"),getPrimitiveFunction:function(){dV.boundsBoxMinZ=dV._voxelPrimitive.minBounds.z}}),e({name:"boundsEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:l("maxBounds","x"),getPrimitiveFunction:function(){dV.boundsEllipsoidMaxLongitude=dV._voxelPrimitive.maxBounds.x}}),e({name:"boundsEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:l("minBounds","x"),getPrimitiveFunction:function(){dV.boundsEllipsoidMinLongitude=dV._voxelPrimitive.minBounds.x}}),e({name:"boundsEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:l("maxBounds","y"),getPrimitiveFunction:function(){dV.boundsEllipsoidMaxLatitude=dV._voxelPrimitive.maxBounds.y}}),e({name:"boundsEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:l("minBounds","y"),getPrimitiveFunction:function(){dV.boundsEllipsoidMinLatitude=dV._voxelPrimitive.minBounds.y}}),e({name:"boundsEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:l("maxBounds","z"),getPrimitiveFunction:function(){dV.boundsEllipsoidMaxHeight=dV._voxelPrimitive.maxBounds.z}}),e({name:"boundsEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:l("minBounds","z"),getPrimitiveFunction:function(){dV.boundsEllipsoidMinHeight=dV._voxelPrimitive.minBounds.z}}),e({name:"boundsCylinderMaxRadius",initialValue:0,setPrimitiveFunction:l("maxBounds","x"),getPrimitiveFunction:function(){dV.boundsCylinderMaxRadius=dV._voxelPrimitive.maxBounds.x}}),e({name:"boundsCylinderMinRadius",initialValue:0,setPrimitiveFunction:l("minBounds","x"),getPrimitiveFunction:function(){dV.boundsCylinderMinRadius=dV._voxelPrimitive.minBounds.x}}),e({name:"boundsCylinderMaxHeight",initialValue:0,setPrimitiveFunction:l("maxBounds","y"),getPrimitiveFunction:function(){dV.boundsCylinderMaxHeight=dV._voxelPrimitive.maxBounds.y}}),e({name:"boundsCylinderMinHeight",initialValue:0,setPrimitiveFunction:l("minBounds","y"),getPrimitiveFunction:function(){dV.boundsCylinderMinHeight=dV._voxelPrimitive.minBounds.y}}),e({name:"boundsCylinderMaxAngle",initialValue:0,setPrimitiveFunction:l("maxBounds","z"),getPrimitiveFunction:function(){dV.boundsCylinderMaxAngle=dV._voxelPrimitive.maxBounds.z}}),e({name:"boundsCylinderMinAngle",initialValue:0,setPrimitiveFunction:l("minBounds","z"),getPrimitiveFunction:function(){dV.boundsCylinderMinAngle=dV._voxelPrimitive.minBounds.z}}),e({name:"clippingBoxMaxX",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","x"),getPrimitiveFunction:function(){dV.clippingBoxMaxX=dV._voxelPrimitive.maxClippingBounds.x}}),e({name:"clippingBoxMinX",initialValue:0,setPrimitiveFunction:l("minClippingBounds","x"),getPrimitiveFunction:function(){dV.clippingBoxMinX=dV._voxelPrimitive.minClippingBounds.x}}),e({name:"clippingBoxMaxY",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","y"),getPrimitiveFunction:function(){dV.clippingBoxMaxY=dV._voxelPrimitive.maxClippingBounds.y}}),e({name:"clippingBoxMinY",initialValue:0,setPrimitiveFunction:l("minClippingBounds","y"),getPrimitiveFunction:function(){dV.clippingBoxMinY=dV._voxelPrimitive.minClippingBounds.y}}),e({name:"clippingBoxMaxZ",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","z"),getPrimitiveFunction:function(){dV.clippingBoxMaxZ=dV._voxelPrimitive.maxClippingBounds.z}}),e({name:"clippingBoxMinZ",initialValue:0,setPrimitiveFunction:l("minClippingBounds","z"),getPrimitiveFunction:function(){dV.clippingBoxMinZ=dV._voxelPrimitive.minClippingBounds.z}}),e({name:"clippingEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","x"),getPrimitiveFunction:function(){dV.clippingEllipsoidMaxLongitude=dV._voxelPrimitive.maxClippingBounds.x}}),e({name:"clippingEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:l("minClippingBounds","x"),getPrimitiveFunction:function(){dV.clippingEllipsoidMinLongitude=dV._voxelPrimitive.minClippingBounds.x}}),e({name:"clippingEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","y"),getPrimitiveFunction:function(){dV.clippingEllipsoidMaxLatitude=dV._voxelPrimitive.maxClippingBounds.y}}),e({name:"clippingEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:l("minClippingBounds","y"),getPrimitiveFunction:function(){dV.clippingEllipsoidMinLatitude=dV._voxelPrimitive.minClippingBounds.y}}),e({name:"clippingEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","z"),getPrimitiveFunction:function(){dV.clippingEllipsoidMaxHeight=dV._voxelPrimitive.maxClippingBounds.z}}),e({name:"clippingEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:l("minClippingBounds","z"),getPrimitiveFunction:function(){dV.clippingEllipsoidMinHeight=dV._voxelPrimitive.minClippingBounds.z}}),e({name:"clippingCylinderMaxRadius",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","x"),getPrimitiveFunction:function(){dV.clippingCylinderMaxRadius=dV._voxelPrimitive.maxClippingBounds.x}}),e({name:"clippingCylinderMinRadius",initialValue:0,setPrimitiveFunction:l("minClippingBounds","x"),getPrimitiveFunction:function(){dV.clippingCylinderMinRadius=dV._voxelPrimitive.minClippingBounds.x}}),e({name:"clippingCylinderMaxHeight",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","y"),getPrimitiveFunction:function(){dV.clippingCylinderMaxHeight=dV._voxelPrimitive.maxClippingBounds.y}}),e({name:"clippingCylinderMinHeight",initialValue:0,setPrimitiveFunction:l("minClippingBounds","y"),getPrimitiveFunction:function(){dV.clippingCylinderMinHeight=dV._voxelPrimitive.minClippingBounds.y}}),e({name:"clippingCylinderMaxAngle",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","z"),getPrimitiveFunction:function(){dV.clippingCylinderMaxAngle=dV._voxelPrimitive.maxClippingBounds.z}}),e({name:"clippingCylinderMinAngle",initialValue:0,setPrimitiveFunction:l("minClippingBounds","z"),getPrimitiveFunction:function(){dV.clippingCylinderMinAngle=dV._voxelPrimitive.minClippingBounds.z}}),e({name:"translationX",initialValue:0,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)},getPrimitiveFunction:function(){dV.translationX=z.getTranslation(dV._voxelPrimitive.modelMatrix,new i$1).x}}),e({name:"translationY",initialValue:0,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)},getPrimitiveFunction:function(){dV.translationY=z.getTranslation(dV._voxelPrimitive.modelMatrix,new i$1).y}}),e({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)},getPrimitiveFunction:function(){dV.translationZ=z.getTranslation(dV._voxelPrimitive.modelMatrix,new i$1).z}}),e({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)},getPrimitiveFunction:function(){dV.scaleX=z.getScale(dV._voxelPrimitive.modelMatrix,new i$1).x}}),e({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)},getPrimitiveFunction:function(){dV.scaleY=z.getScale(dV._voxelPrimitive.modelMatrix,new i$1).y}}),e({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)},getPrimitiveFunction:function(){dV.scaleZ=z.getScale(dV._voxelPrimitive.modelMatrix,new i$1).z}}),e({name:"angleX",initialValue:0,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)}}),e({name:"angleY",initialValue:0,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)}}),e({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)}})}W(A(),1),W(A(),1),W(A(),1),W(A(),1);var fjd=new i$1,Hjd=new i$1,Kjd=new aM,vjd=new Ut;function Ro(b){let dV=i$1.fromElements(b.translationX,b.translationY,b.translationZ,fjd),FV=i$1.fromElements(b.scaleX,b.scaleY,b.scaleZ,Hjd),EV=Kjd;EV.heading=b.angleX,EV.pitch=b.angleY,EV.roll=b.angleZ;let qV=Ut.fromHeadingPitchRoll(EV,vjd),$V=Ut.multiplyByScale(qV,FV,qV);b._voxelPrimitive.modelMatrix=z.fromRotationTranslation($V,dV,b._voxelPrimitive.modelMatrix)}Object.defineProperties(zF.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(b){if(n(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),n(b)){this._voxelPrimitive=b;let dV=this;dV._customShaderCompilationRemoveCallback=dV._voxelPrimitive.customShaderCompilationEvent.addEventListener((function(b){let FV=dV._voxelPrimitive.customShader.fragmentShaderText;dV.shaderString=ULt(FV),n(b)?(dV.shaderCompilationMessage=b.message,dV.shaderCompilationSuccess=!1):(dV.shaderCompilationMessage="Shader compiled successfully!",dV.shaderCompilationSuccess=!0)})),dV._modelMatrixReady=!1;for(let b=0;b{EV.delete(dd),0===EV.size&&FV&&(FV(),FV=null)}}}}class ClockSettings{constructor(){__publicField(this,"clockStep",writable(1)),__publicField(this,"shouldAnimate",writable(!0)),__publicField(this,"multiplier",writable(1))}}class CameraSettings{constructor(){__publicField(this,"enableCollisionDetection",writable(!0)),__publicField(this,"enableLook",writable(!0)),__publicField(this,"enableRotate",writable(!0)),__publicField(this,"enableTilt",writable(!0)),__publicField(this,"enableTranslate",writable(!0)),__publicField(this,"enableZoom",writable(!0)),__publicField(this,"enableMatrixMode",writable(!1)),__publicField(this,"enableReferenceFrameSwapOnAltitude",writable(!0)),__publicField(this,"referenceFrameSwapAltitude",writable(3e5)),__publicField(this,"fromEntity",writable("")),__publicField(this,"toEntity",writable(""))}}class EntityState{constructor(){__publicField(this,"orbit",writable({}))}}class Settings{constructor(){__publicField(this,"referenceFrame",writable(Al.FIXED)),__publicField(this,"debugFPS",writable(!1)),__publicField(this,"depthTestAgainstTerrain",writable(!1)),__publicField(this,"skyAtmosphere",writable(!0)),__publicField(this,"enableLighting",writable(!0)),__publicField(this,"highDynamicRange",writable(!1)),__publicField(this,"fxaa",writable(!1)),__publicField(this,"resolutionScale",writable(1)),__publicField(this,"useBrowserRecommendedResolution",writable(!0)),__publicField(this,"CameraSettings",new CameraSettings),__publicField(this,"ClockSettings",new ClockSettings),__publicField(this,"EntityState",new EntityState),__publicField(this,"showMousePosition",writable(!1)),__publicField(this,"showNonGroupedObjects",writable(!0)),__publicField(this,"lastLoad",writable(0)),__publicField(this,"showLatLonGrid",writable(!1)),__publicField(this,"showLatLonLabels",writable(!0)),__publicField(this,"X_GRID",writable(!1)),__publicField(this,"Y_GRID",writable(!1)),__publicField(this,"Z_GRID",writable(!1)),__publicField(this,"google3DTiles",writable(!1))}}class Scenario{constructor(){__publicField(this,"settings",new Settings),__publicField(this,"trackedEntity",writable(null)),__publicField(this,"selectedEntity",writable(null)),__publicField(this,"groups",writable([])),__publicField(this,"satelliteCatalogDataProviders",writable([{refresh:0,name:"spaceaware",OMM_URL:"https://api.spaceaware.io/data/OMM?format=fbs",CAT_URL:"https://api.spaceaware.io/data/CAT?format=fbs"}]))}}const serializeEntity=b=>null==b?void 0:b.id,deserializeEntity=b=>b,viewer=writable(null);function debounce$1(b,dV){let FV;return function(...EV){clearTimeout(FV),FV=window.setTimeout((()=>{b(...EV)}),dV)}}const dataSourceEvents={dataSourceAdded:writable(null),dataSourceMoved:writable(null),dataSourceRemoved:writable(null)};let registeredEvents={},registeredStoreSubscriptions={},isUpdatingFromStore=!1;const initEvents=b=>{var dV;removeEvents();for(let FV in scenario)b[`${FV}Changed`]&&(registeredEvents[`${FV}Changed`]=b[`${FV}Changed`].addEventListener((b=>{isUpdatingFromStore||scenario[FV].set(b)})));for(let FV in dataSourceEvents)b.dataSources[FV]&&(registeredEvents[FV]=b.dataSources[FV].addEventListener(debounce$1((b=>{isUpdatingFromStore||dataSourceEvents[FV].set(b)}),300)));for(let FV in scenario)(null==(dV=scenario[FV])?void 0:dV.subscribe)&&(registeredStoreSubscriptions[FV]=scenario[FV].subscribe(debounce$1((dV=>{b[FV]!==dV&&(isUpdatingFromStore=!0,b[FV]=dV,isUpdatingFromStore=!1)}),300)))},removeEvents=()=>{for(let b in registeredEvents)registeredEvents[b]();for(let b in registeredStoreSubscriptions)registeredStoreSubscriptions[b]()};let matrixModeScreenSpaceEventHandler=null;const addMatrixModeScreenSpaceEventHandler=b=>{const{settings:dV}=scenario;let{shouldAnimate:FV,clockStep:EV}=dV.ClockSettings,{LEFT_DOWN:qV,LEFT_UP:$V,RIGHT_DOWN:dd,RIGHT_UP:Td,MOUSE_MOVE:Ed}=El;if(matrixModeScreenSpaceEventHandler)return;matrixModeScreenSpaceEventHandler=new GF(b.canvas);let kd=!1,Sd=1,startMatrix=()=>{Sd=get_store_value(EV),get_store_value(FV)&&(b.clock.shouldAnimate=!1,kd=!0)},endMatrix=()=>{kd&&(b.clock.shouldAnimate=!0,b.clock.clockStep=Sd),kd=!1};matrixModeScreenSpaceEventHandler.setInputAction((b=>{startMatrix()}),qV),matrixModeScreenSpaceEventHandler.setInputAction((b=>{startMatrix()}),dd),matrixModeScreenSpaceEventHandler.setInputAction((b=>{endMatrix()}),$V),matrixModeScreenSpaceEventHandler.setInputAction((b=>{endMatrix()}),Td)},removeMatrixModeScreenSpaceEventHandler=()=>{matrixModeScreenSpaceEventHandler&&(matrixModeScreenSpaceEventHandler.destroy(),matrixModeScreenSpaceEventHandler=null)},encodedJs="IWZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIGdldERlZmF1bHRFeHBvcnRGcm9tQ2pzKHIpe3JldHVybiByJiZyLl9fZXNNb2R1bGUmJk9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChyLCJkZWZhdWx0Iik/ci5kZWZhdWx0OnJ9dmFyIHIsbixlPXtleHBvcnRzOnt9fTtyPWUsbj1mdW5jdGlvbigpe3ZhciByPVN0cmluZy5mcm9tQ2hhckNvZGUsbj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLz0iLGU9IkFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky0kIix0PXt9O2Z1bmN0aW9uIGdldEJhc2VWYWx1ZShyLG4pe2lmKCF0W3JdKXt0W3JdPXt9O2Zvcih2YXIgZT0wO2U8ci5sZW5ndGg7ZSsrKXRbcl1bci5jaGFyQXQoZSldPWV9cmV0dXJuIHRbcl1bbl19dmFyIG89e2NvbXByZXNzVG9CYXNlNjQ6ZnVuY3Rpb24ocil7aWYobnVsbD09cilyZXR1cm4iIjt2YXIgZT1vLl9jb21wcmVzcyhyLDYsKGZ1bmN0aW9uKHIpe3JldHVybiBuLmNoYXJBdChyKX0pKTtzd2l0Y2goZS5sZW5ndGglNCl7ZGVmYXVsdDpjYXNlIDA6cmV0dXJuIGU7Y2FzZSAxOnJldHVybiBlKyI9PT0iO2Nhc2UgMjpyZXR1cm4gZSsiPT0iO2Nhc2UgMzpyZXR1cm4gZSsiPSJ9fSxkZWNvbXByZXNzRnJvbUJhc2U2NDpmdW5jdGlvbihyKXtyZXR1cm4gbnVsbD09cj8iIjoiIj09cj9udWxsOm8uX2RlY29tcHJlc3Moci5sZW5ndGgsMzIsKGZ1bmN0aW9uKGUpe3JldHVybiBnZXRCYXNlVmFsdWUobixyLmNoYXJBdChlKSl9KSl9LGNvbXByZXNzVG9VVEYxNjpmdW5jdGlvbihuKXtyZXR1cm4gbnVsbD09bj8iIjpvLl9jb21wcmVzcyhuLDE1LChmdW5jdGlvbihuKXtyZXR1cm4gcihuKzMyKX0pKSsiICJ9LGRlY29tcHJlc3NGcm9tVVRGMTY6ZnVuY3Rpb24ocil7cmV0dXJuIG51bGw9PXI/IiI6IiI9PXI/bnVsbDpvLl9kZWNvbXByZXNzKHIubGVuZ3RoLDE2Mzg0LChmdW5jdGlvbihuKXtyZXR1cm4gci5jaGFyQ29kZUF0KG4pLTMyfSkpfSxjb21wcmVzc1RvVWludDhBcnJheTpmdW5jdGlvbihyKXtmb3IodmFyIG49by5jb21wcmVzcyhyKSxlPW5ldyBVaW50OEFycmF5KDIqbi5sZW5ndGgpLHQ9MCx1PW4ubGVuZ3RoO3Q8dTt0Kyspe3ZhciBmPW4uY2hhckNvZGVBdCh0KTtlWzIqdF09Zj4+PjgsZVsyKnQrMV09ZiUyNTZ9cmV0dXJuIGV9LGRlY29tcHJlc3NGcm9tVWludDhBcnJheTpmdW5jdGlvbihuKXtpZihudWxsPT1uKXJldHVybiBvLmRlY29tcHJlc3Mobik7Zm9yKHZhciBlPW5ldyBBcnJheShuLmxlbmd0aC8yKSx0PTAsdT1lLmxlbmd0aDt0PHU7dCsrKWVbdF09MjU2Km5bMip0XStuWzIqdCsxXTt2YXIgZj1bXTtyZXR1cm4gZS5mb3JFYWNoKChmdW5jdGlvbihuKXtmLnB1c2gocihuKSl9KSksby5kZWNvbXByZXNzKGYuam9pbigiIikpfSxjb21wcmVzc1RvRW5jb2RlZFVSSUNvbXBvbmVudDpmdW5jdGlvbihyKXtyZXR1cm4gbnVsbD09cj8iIjpvLl9jb21wcmVzcyhyLDYsKGZ1bmN0aW9uKHIpe3JldHVybiBlLmNoYXJBdChyKX0pKX0sZGVjb21wcmVzc0Zyb21FbmNvZGVkVVJJQ29tcG9uZW50OmZ1bmN0aW9uKHIpe3JldHVybiBudWxsPT1yPyIiOiIiPT1yP251bGw6KHI9ci5yZXBsYWNlKC8gL2csIisiKSxvLl9kZWNvbXByZXNzKHIubGVuZ3RoLDMyLChmdW5jdGlvbihuKXtyZXR1cm4gZ2V0QmFzZVZhbHVlKGUsci5jaGFyQXQobikpfSkpKX0sY29tcHJlc3M6ZnVuY3Rpb24obil7cmV0dXJuIG8uX2NvbXByZXNzKG4sMTYsKGZ1bmN0aW9uKG4pe3JldHVybiByKG4pfSkpfSxfY29tcHJlc3M6ZnVuY3Rpb24ocixuLGUpe2lmKG51bGw9PXIpcmV0dXJuIiI7dmFyIHQsbyx1LGY9e30sYT17fSxjPSIiLHM9IiIsaT0iIixsPTIsbT0zLHA9MixkPVtdLGg9MCx2PTA7Zm9yKHU9MDt1PHIubGVuZ3RoO3UrPTEpaWYoYz1yLmNoYXJBdCh1KSxPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZixjKXx8KGZbY109bSsrLGFbY109ITApLHM9aStjLE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChmLHMpKWk9cztlbHNle2lmKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChhLGkpKXtpZihpLmNoYXJDb2RlQXQoMCk8MjU2KXtmb3IodD0wO3Q8cDt0KyspaDw8PTEsdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrO2ZvcihvPWkuY2hhckNvZGVBdCgwKSx0PTA7dDw4O3QrKyloPWg8PDF8MSZvLHY9PW4tMT8odj0wLGQucHVzaChlKGgpKSxoPTApOnYrKyxvPj49MX1lbHNle2ZvcihvPTEsdD0wO3Q8cDt0KyspaD1oPDwxfG8sdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrLG89MDtmb3Iobz1pLmNoYXJDb2RlQXQoMCksdD0wO3Q8MTY7dCsrKWg9aDw8MXwxJm8sdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrLG8+Pj0xfTA9PS0tbCYmKGw9TWF0aC5wb3coMixwKSxwKyspLGRlbGV0ZSBhW2ldfWVsc2UgZm9yKG89ZltpXSx0PTA7dDxwO3QrKyloPWg8PDF8MSZvLHY9PW4tMT8odj0wLGQucHVzaChlKGgpKSxoPTApOnYrKyxvPj49MTswPT0tLWwmJihsPU1hdGgucG93KDIscCkscCsrKSxmW3NdPW0rKyxpPVN0cmluZyhjKX1pZigiIiE9PWkpe2lmKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChhLGkpKXtpZihpLmNoYXJDb2RlQXQoMCk8MjU2KXtmb3IodD0wO3Q8cDt0KyspaDw8PTEsdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrO2ZvcihvPWkuY2hhckNvZGVBdCgwKSx0PTA7dDw4O3QrKyloPWg8PDF8MSZvLHY9PW4tMT8odj0wLGQucHVzaChlKGgpKSxoPTApOnYrKyxvPj49MX1lbHNle2ZvcihvPTEsdD0wO3Q8cDt0KyspaD1oPDwxfG8sdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrLG89MDtmb3Iobz1pLmNoYXJDb2RlQXQoMCksdD0wO3Q8MTY7dCsrKWg9aDw8MXwxJm8sdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrLG8+Pj0xfTA9PS0tbCYmKGw9TWF0aC5wb3coMixwKSxwKyspLGRlbGV0ZSBhW2ldfWVsc2UgZm9yKG89ZltpXSx0PTA7dDxwO3QrKyloPWg8PDF8MSZvLHY9PW4tMT8odj0wLGQucHVzaChlKGgpKSxoPTApOnYrKyxvPj49MTswPT0tLWwmJihsPU1hdGgucG93KDIscCkscCsrKX1mb3Iobz0yLHQ9MDt0PHA7dCsrKWg9aDw8MXwxJm8sdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrLG8+Pj0xO2Zvcig7Oyl7aWYoaDw8PTEsdj09bi0xKXtkLnB1c2goZShoKSk7YnJlYWt9disrfXJldHVybiBkLmpvaW4oIiIpfSxkZWNvbXByZXNzOmZ1bmN0aW9uKHIpe3JldHVybiBudWxsPT1yPyIiOiIiPT1yP251bGw6by5fZGVjb21wcmVzcyhyLmxlbmd0aCwzMjc2OCwoZnVuY3Rpb24obil7cmV0dXJuIHIuY2hhckNvZGVBdChuKX0pKX0sX2RlY29tcHJlc3M6ZnVuY3Rpb24obixlLHQpe3ZhciBvLHUsZixhLGMscyxpLGw9W10sbT00LHA9NCxkPTMsaD0iIix2PVtdLGc9e3ZhbDp0KDApLHBvc2l0aW9uOmUsaW5kZXg6MX07Zm9yKG89MDtvPDM7bys9MSlsW29dPW87Zm9yKGY9MCxjPU1hdGgucG93KDIsMikscz0xO3MhPWM7KWE9Zy52YWwmZy5wb3NpdGlvbixnLnBvc2l0aW9uPj49MSwwPT1nLnBvc2l0aW9uJiYoZy5wb3NpdGlvbj1lLGcudmFsPXQoZy5pbmRleCsrKSksZnw9KGE+MD8xOjApKnMsczw8PTE7c3dpdGNoKGYpe2Nhc2UgMDpmb3IoZj0wLGM9TWF0aC5wb3coMiw4KSxzPTE7cyE9YzspYT1nLnZhbCZnLnBvc2l0aW9uLGcucG9zaXRpb24+Pj0xLDA9PWcucG9zaXRpb24mJihnLnBvc2l0aW9uPWUsZy52YWw9dChnLmluZGV4KyspKSxmfD0oYT4wPzE6MCkqcyxzPDw9MTtpPXIoZik7YnJlYWs7Y2FzZSAxOmZvcihmPTAsYz1NYXRoLnBvdygyLDE2KSxzPTE7cyE9YzspYT1nLnZhbCZnLnBvc2l0aW9uLGcucG9zaXRpb24+Pj0xLDA9PWcucG9zaXRpb24mJihnLnBvc2l0aW9uPWUsZy52YWw9dChnLmluZGV4KyspKSxmfD0oYT4wPzE6MCkqcyxzPDw9MTtpPXIoZik7YnJlYWs7Y2FzZSAyOnJldHVybiIifWZvcihsWzNdPWksdT1pLHYucHVzaChpKTs7KXtpZihnLmluZGV4Pm4pcmV0dXJuIiI7Zm9yKGY9MCxjPU1hdGgucG93KDIsZCkscz0xO3MhPWM7KWE9Zy52YWwmZy5wb3NpdGlvbixnLnBvc2l0aW9uPj49MSwwPT1nLnBvc2l0aW9uJiYoZy5wb3NpdGlvbj1lLGcudmFsPXQoZy5pbmRleCsrKSksZnw9KGE+MD8xOjApKnMsczw8PTE7c3dpdGNoKGk9Zil7Y2FzZSAwOmZvcihmPTAsYz1NYXRoLnBvdygyLDgpLHM9MTtzIT1jOylhPWcudmFsJmcucG9zaXRpb24sZy5wb3NpdGlvbj4+PTEsMD09Zy5wb3NpdGlvbiYmKGcucG9zaXRpb249ZSxnLnZhbD10KGcuaW5kZXgrKykpLGZ8PShhPjA/MTowKSpzLHM8PD0xO2xbcCsrXT1yKGYpLGk9cC0xLG0tLTticmVhaztjYXNlIDE6Zm9yKGY9MCxjPU1hdGgucG93KDIsMTYpLHM9MTtzIT1jOylhPWcudmFsJmcucG9zaXRpb24sZy5wb3NpdGlvbj4+PTEsMD09Zy5wb3NpdGlvbiYmKGcucG9zaXRpb249ZSxnLnZhbD10KGcuaW5kZXgrKykpLGZ8PShhPjA/MTowKSpzLHM8PD0xO2xbcCsrXT1yKGYpLGk9cC0xLG0tLTticmVhaztjYXNlIDI6cmV0dXJuIHYuam9pbigiIil9aWYoMD09bSYmKG09TWF0aC5wb3coMixkKSxkKyspLGxbaV0paD1sW2ldO2Vsc2V7aWYoaSE9PXApcmV0dXJuIG51bGw7aD11K3UuY2hhckF0KDApfXYucHVzaChoKSxsW3ArK109dStoLmNoYXJBdCgwKSx1PWgsMD09LS1tJiYobT1NYXRoLnBvdygyLGQpLGQrKyl9fX07cmV0dXJuIG99KCksbnVsbCE9cj9yLmV4cG9ydHM9bjoidW5kZWZpbmVkIiE9dHlwZW9mIGFuZ3VsYXImJm51bGwhPWFuZ3VsYXImJmFuZ3VsYXIubW9kdWxlKCJMWlN0cmluZyIsW10pLmZhY3RvcnkoIkxaU3RyaW5nIiwoZnVuY3Rpb24oKXtyZXR1cm4gbn0pKTt2YXIgdD1nZXREZWZhdWx0RXhwb3J0RnJvbUNqcyhlLmV4cG9ydHMpO29ubWVzc2FnZT1mdW5jdGlvbihyKXt2YXIgbixlO2xldCBvPShudWxsPT0obj1yLmRhdGEpP3ZvaWQgMDpuLm1ldGhvZCl8fCJjb21wcmVzc1RvRW5jb2RlZFVSSUNvbXBvbmVudCIsdT1udWxsPT0oZT1yLmRhdGEpP3ZvaWQgMDplLnBheWxvYWQ7aWYoIXUpdGhyb3cgRXJyb3IoIk5vIHBheWxvYWQiKTtjb25zdCBmPXRbb10odSk7cG9zdE1lc3NhZ2UoZil9fSgpOwo=",blob="undefined"!=typeof window&&window.Blob&&new Blob([atob(encodedJs)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper(){let b;try{if(b=blob&&(window.URL||window.webkitURL).createObjectURL(blob),!b)throw"";return new Worker(b)}catch(dV){return new Worker("data:application/javascript;base64,"+encodedJs)}finally{b&&(window.URL||window.webkitURL).revokeObjectURL(b)}}K.RED,K.LIMEGREEN,K.BLUE;const scenario=new Scenario;scenario.settings=new Settings;const scenarioKey="7af359dee11b11ec9dae8f3efcb2fa57";let deserializeDataHandlers={trackedEntity:deserializeEntity,selectedEntity:deserializeEntity},serializeDataHandlers={trackedEntity:serializeEntity,selectedEntity:serializeEntity};const updatedDataSources=writable(null),lastUpdateDataSource=writable(null);scenario.groups;const saveState=async(b=!1)=>{let{...dV}=scenario,FV=JSON.stringify(dV,((b,dV)=>(dV=(null==dV?void 0:dV.subscribe)?get_store_value(dV):dV,serializeDataHandlers[b]&&(dV=serializeDataHandlers[b](dV)),dV)));if(b)return Promise.resolve(FV);{const b=new WorkerWrapper;return b.postMessage({payload:FV,method:"compressToEncodedURIComponent"}),new Promise((dV=>{b.onmessage=FV=>{dV(FV.data),b.terminate()}}))}};let recurseWrite=(b,dV,FV)=>{let EV=FV?b[FV]:b;const qV=FV?dV[FV]:dV;if(null==qV?void 0:qV.subscribe)deserializeDataHandlers[FV]&&(EV=deserializeDataHandlers[FV](EV)),qV.set(EV);else for(let $V in EV)recurseWrite(EV,qV,$V)};const _loadState=b=>{let dV=JSON.parse(b,((b,dV)=>{var FV;return"object"==typeof dV&&"Buffer"===(null==dV?void 0:dV.type)&&(null==(FV=null==dV?void 0:dV.data)?void 0:FV.length)?Buffer.from(dV):dV}));return recurseWrite(dV,scenario),1},loadState=async(b,dV=!1)=>{if(dV)return Promise.resolve(_loadState(b));{const dV=new WorkerWrapper;return dV.postMessage({payload:b,method:"decompressFromEncodedURIComponent"}),new Promise(((b,FV)=>{dV.onmessage=dV=>{try{let{data:FV}=dV;"string"==typeof FV&&b(_loadState(FV))}catch(EV){console.error(EV),FV(0)}}}))}},loadScenarioFromURL=async()=>{let b=new URL(document.URL),dV=new URLSearchParams(b.search).get(scenarioKey);if(dV)return loadState(dV).then((b=>{}))};let subscriptions=[];viewer.subscribe((async b=>{const dV=globalThis.viewer;if(!dV)return;for(;subscriptions.length;){subscriptions.pop()()}removeEvents(),initEvents(dV);let{referenceFrame:FV,depthTestAgainstTerrain:EV,skyAtmosphere:qV,enableLighting:$V,highDynamicRange:dd,CameraSettings:Td,showLatLonGrid:Ed,showLatLonLabels:kd}=scenario.settings;const{settings:Sd,satelliteCatalogDataProviders:Xd}=scenario;dV.referenceFrame=get_store_value(FV),dV.cesiumWidget.scene.skyAtmosphere.show=get_store_value(qV),dV.scene.screenSpaceCameraController.enableCollisionDetection=!0,dV.scene.globe.enableLighting=get_store_value($V),dV.scene.globe.depthTestAgainstTerrain=get_store_value(EV),dV.scene.highDynamicRange=get_store_value(dd),Td.enableMatrixMode.set(!0);const saveAndUpdate=async()=>{await saveState(),dV.scene.render()};let Cd,_d;subscriptions.push(FV.subscribe((async b=>{dV.referenceFrame=b,await saveAndUpdate()}))),subscriptions.push(qV.subscribe((async b=>{dV.cesiumWidget.scene.skyAtmosphere.show=b,await saveAndUpdate()}))),subscriptions.push($V.subscribe((async b=>{dV.scene.globe.enableLighting=b,dV.nightImageryLayer&&(dV.nightImageryLayer.show=b),await saveAndUpdate()}))),subscriptions.push(EV.subscribe((async b=>{dV.scene.globe.depthTestAgainstTerrain=b,await saveAndUpdate()}))),subscriptions.push(dd.subscribe((async b=>{dV.scene.highDynamicRange=b,await saveAndUpdate()}))),subscriptions.push(Td.enableMatrixMode.subscribe((async b=>{b?addMatrixModeScreenSpaceEventHandler(dV):removeMatrixModeScreenSpaceEventHandler(),await saveAndUpdate()}))),subscriptions.push(Sd.ClockSettings.shouldAnimate.subscribe((async b=>{dV.clock.shouldAnimate=!!b,await saveAndUpdate()}))),subscriptions.push(Sd.ClockSettings.multiplier.subscribe((async b=>{dV.clock.multiplier=b,await saveAndUpdate()}))),subscriptions.push(Sd.debugFPS.subscribe((async b=>{dV.scene.debugShowFramesPerSecond=b,await saveAndUpdate()}))),subscriptions.push(Sd.fxaa.subscribe((async b=>{dV.scene.fxaa=b,await saveAndUpdate()}))),subscriptions.push(Sd.resolutionScale.subscribe((async b=>{dV.resolutionScale=b,await saveAndUpdate()}))),subscriptions.push(Sd.useBrowserRecommendedResolution.subscribe((async b=>{dV.useBrowserRecommendedResolution=b,await saveAndUpdate()}))),yB.defaultApiKey=atob("QUl6YVN5RGlzTDdOODMwaUtLTWZ6RllQT1FCeVQteXh5U2FzLTI0"),subscriptions.push(Sd.google3DTiles.subscribe((async b=>{b&&!Cd&&(Cd=await Iut()),!dV.scene.primitives.contains(Cd)&&b?(dV.scene.primitives.add(Cd),Sd.showLatLonGrid.set(!1),Sd.showLatLonLabels.set(!1)):b||(dV.scene.primitives.remove(Cd),Cd=void 0),await saveAndUpdate()}))),subscriptions.push(Xd.subscribe((async b=>{for(const FV of b)if(FV.OMM_URL){let b=await(await fetch(FV.OMM_URL)).arrayBuffer(),EV=FV.CAT_URL?await(await fetch(FV.CAT_URL)).arrayBuffer():new ArrayBuffer(0),qV=dV.dataSources.getByName(FV.name)[0],$V=qV||new n9({...FV,entityDefault:{point:{pixelSize:1,color:K.WHITE.withAlpha(.7)}}});await $V.loadOMM(b,EV),qV||await dV.dataSources.add($V),updatedDataSources.set(new Date),lastUpdateDataSource.set(FV.name)}await saveAndUpdate()}))),subscriptions.push(Ed.subscribe((async b=>{!_d&&b?(_d=new rSt(dV),_d.showLabels=get_store_value(kd),_d.drawGrid(_d.currentExtent)):_d&&!b&&(_d.destroy(),_d=void 0),await saveAndUpdate()}))),subscriptions.push(kd.subscribe((async b=>{_d&&(_d.showLabels=b,_d.drawGrid(_d.currentExtent)),await saveAndUpdate()})))}));const appVersion="0.8.4+1722443149893";let rfSwap,swapAlt;loadScenarioFromURL();let _old=null,clearAlt=5e4;const addRFSwap=b=>{let{settings:dV}=scenario,{referenceFrame:FV}=dV,{referenceFrameSwapAltitude:EV}=dV.CameraSettings;EV.subscribe((b=>{swapAlt=b})),FV.subscribe((b=>{})),rfSwap||(rfSwap=b.clock.onTick.addEventListener((()=>{const{nightImageryLayer:dV}=b,EV=b.camera._positionCartographic.height;EV=clearAlt&&EV=swapAlt&&(dV&&(dV.alpha=1),null!==_old&&(FV.set(_old),_old=null))})))},addButton=(b,dV=!1)=>{const FV=document.querySelector(".cesium-viewer-toolbar");if(!FV)throw new Error("Toolbar not found");const EV=document.createElement("button");return EV.className="cesium-button cesium-toolbar-button added-button",new b({target:EV}),FV[dV?"prepend":"appendChild"](EV),EV};function create_fragment$F(b){let dV;return{c(){dV=svg_element("g")},m(FV,EV){insert(FV,dV,EV),dV.innerHTML=b[0]},p(b,[FV]){1&FV&&(dV.innerHTML=b[0])},i:noop$1,o:noop$1,d(b){b&&detach(dV)}}}function instance$C(b,dV,FV){let EV=870711;let qV="",{data:$V}=dV;function getRaw(b){if(!b||!b.raw)return"";let dV=b.raw;const FV={};return dV=dV.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,((b,dV)=>{const qV=(EV+=1,`fa-${EV.toString(16)}`);return FV[dV]=qV,` id="${qV}"`})),dV=dV.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,((b,dV,EV,qV)=>{const $V=dV||qV;return $V&&FV[$V]?`#${FV[$V]}`:b})),dV}return b.$$set=b=>{"data"in b&&FV(1,$V=b.data)},b.$$.update=()=>{2&b.$$.dirty&&FV(0,qV=getRaw($V))},[qV,$V]}class Raw extends SvelteComponent{constructor(b){super(),init(this,b,instance$C,create_fragment$F,safe_not_equal,{data:1})}}const Svg_svelte_svelte_type_style_lang="";function create_fragment$E(b){let dV,FV,EV,qV;const $V=b[12].default,dd=create_slot($V,b,b[11],null);let Td=[{version:"1.1"},{class:FV="fa-icon "+b[0]},{width:b[1]},{height:b[2]},{"aria-label":b[9]},{role:EV=b[9]?"img":"presentation"},{viewBox:b[3]},{style:b[8]},b[10]],Ed={};for(let kd=0;kd{dV=assign(assign({},dV),exclude_internal_props(b)),FV(10,qV=compute_rest_props(dV,EV)),"class"in b&&FV(0,Td=b.class),"width"in b&&FV(1,Ed=b.width),"height"in b&&FV(2,kd=b.height),"box"in b&&FV(3,Sd=b.box),"spin"in b&&FV(4,Xd=b.spin),"inverse"in b&&FV(5,Cd=b.inverse),"pulse"in b&&FV(6,_d=b.pulse),"flip"in b&&FV(7,el=b.flip),"style"in b&&FV(8,Xl=b.style),"label"in b&&FV(9,Il=b.label),"$$scope"in b&&FV(11,dd=b.$$scope)},[Td,Ed,kd,Sd,Xd,Cd,_d,el,Xl,Il,qV,dd,$V]}class Svg extends SvelteComponent{constructor(b){super(),init(this,b,instance$B,create_fragment$E,safe_not_equal,{class:0,width:1,height:2,box:3,spin:4,inverse:5,pulse:6,flip:7,style:8,label:9})}}function get_each_context$8(b,dV,FV){const EV=b.slice();return EV[24]=dV[FV],EV}function get_each_context_1$1(b,dV,FV){const EV=b.slice();return EV[27]=dV[FV],EV}function create_if_block$h(b){let dV,FV,EV,qV,$V=b[6].paths&&create_if_block_3$7(b),dd=b[6].polygons&&create_if_block_2$8(b),Td=b[6].raw&&create_if_block_1$c(b);return{c(){$V&&$V.c(),dV=space(),dd&&dd.c(),FV=space(),Td&&Td.c(),EV=empty$1()},m(b,Ed){$V&&$V.m(b,Ed),insert(b,dV,Ed),dd&&dd.m(b,Ed),insert(b,FV,Ed),Td&&Td.m(b,Ed),insert(b,EV,Ed),qV=!0},p(b,qV){b[6].paths?$V?$V.p(b,qV):($V=create_if_block_3$7(b),$V.c(),$V.m(dV.parentNode,dV)):$V&&($V.d(1),$V=null),b[6].polygons?dd?dd.p(b,qV):(dd=create_if_block_2$8(b),dd.c(),dd.m(FV.parentNode,FV)):dd&&(dd.d(1),dd=null),b[6].raw?Td?(Td.p(b,qV),64&qV&&transition_in(Td,1)):(Td=create_if_block_1$c(b),Td.c(),transition_in(Td,1),Td.m(EV.parentNode,EV)):Td&&(group_outros(),transition_out(Td,1,1,(()=>{Td=null})),check_outros())},i(b){qV||(transition_in(Td),qV=!0)},o(b){transition_out(Td),qV=!1},d(b){b&&(detach(dV),detach(FV),detach(EV)),$V&&$V.d(b),dd&&dd.d(b),Td&&Td.d(b)}}}function create_if_block_3$7(b){let dV,FV=ensure_array_like(b[6].paths),EV=[];for(let qV=0;qVbind(dV,"data",raw_data_binding))),{c(){create_component(dV.$$.fragment)},m(b,FV){mount_component(dV,b,FV),EV=!0},p(b,EV){const qV={};!FV&&64&EV&&(FV=!0,qV.data=b[6],add_flush_callback((()=>FV=!1))),dV.$set(qV)},i(b){EV||(transition_in(dV.$$.fragment,b),EV=!0)},o(b){transition_out(dV.$$.fragment,b),EV=!1},d(b){destroy_component(dV,b)}}}function fallback_block(b){let dV,FV,EV=b[6]&&create_if_block$h(b);return{c(){EV&&EV.c(),dV=empty$1()},m(b,qV){EV&&EV.m(b,qV),insert(b,dV,qV),FV=!0},p(b,FV){b[6]?EV?(EV.p(b,FV),64&FV&&transition_in(EV,1)):(EV=create_if_block$h(b),EV.c(),transition_in(EV,1),EV.m(dV.parentNode,dV)):EV&&(group_outros(),transition_out(EV,1,1,(()=>{EV=null})),check_outros())},i(b){FV||(transition_in(EV),FV=!0)},o(b){transition_out(EV),FV=!1},d(b){b&&detach(dV),EV&&EV.d(b)}}}function create_default_slot(b){let dV;const FV=b[15].default,EV=create_slot(FV,b,b[17],null),qV=EV||fallback_block(b);return{c(){qV&&qV.c()},m(b,FV){qV&&qV.m(b,FV),dV=!0},p(b,$V){EV?EV.p&&(!dV||131072&$V)&&update_slot_base(EV,FV,b,b[17],dV?get_slot_changes(FV,b[17],$V,null):get_all_dirty_from_scope(b[17]),null):qV&&qV.p&&(!dV||64&$V)&&qV.p(b,dV?$V:-1)},i(b){dV||(transition_in(qV,b),dV=!0)},o(b){transition_out(qV,b),dV=!1},d(b){qV&&qV.d(b)}}}function create_fragment$D(b){let dV,FV;const EV=[{label:b[5]},{width:b[7]},{height:b[8]},{box:b[10]},{style:b[9]},{spin:b[1]},{flip:b[4]},{inverse:b[2]},{pulse:b[3]},{class:b[0]},b[11]];let qV={$$slots:{default:[create_default_slot]},$$scope:{ctx:b}};for(let $V=0;$V({d:b})))}}else dV=Object.keys(b)[0],FV=b[dV];return FV}console.error("`import faIconName from '@fortawesome/package-name/faIconName` not supported - Please use `import { faIconName } from '@fortawesome/package-name/faIconName'` instead")}}function instance$A(b,dV,FV){const EV=["class","data","scale","spin","inverse","pulse","flip","label","style"];let qV,$V,dd,Td=compute_rest_props(dV,EV),{$$slots:Ed={},$$scope:kd}=dV,{class:Sd=""}=dV,{data:Xd}=dV,{scale:Cd=1}=dV,{spin:_d=!1}=dV,{inverse:el=!1}=dV,{pulse:Xl=!1}=dV,{flip:Il}=dV,{label:Hl=""}=dV,{style:$l=""}=dV,tR=10,ER=10;function normalisedScale(){let b=1;return void 0!==Cd&&(b=Number(Cd)),isNaN(b)||b<=0?(console.warn('Invalid prop: prop "scale" should be a number over 0.'),outerScale):b*outerScale}function calculateRatio(){return qV?Math.max(qV.width,qV.height)/16:1}return b.$$set=b=>{dV=assign(assign({},dV),exclude_internal_props(b)),FV(11,Td=compute_rest_props(dV,EV)),"class"in b&&FV(0,Sd=b.class),"data"in b&&FV(12,Xd=b.data),"scale"in b&&FV(13,Cd=b.scale),"spin"in b&&FV(1,_d=b.spin),"inverse"in b&&FV(2,el=b.inverse),"pulse"in b&&FV(3,Xl=b.pulse),"flip"in b&&FV(4,Il=b.flip),"label"in b&&FV(5,Hl=b.label),"style"in b&&FV(14,$l=b.style),"$$scope"in b&&FV(17,kd=b.$$scope)},b.$$.update=()=>{28672&b.$$.dirty&&(FV(6,qV=normaliseData(Xd)),FV(7,tR=qV?qV.width/calculateRatio()*normalisedScale():0),FV(8,ER=qV?qV.height/calculateRatio()*normalisedScale():0),FV(9,$V=function(){let b="";null!==$l&&(b+=$l);let dV=normalisedScale();return 1===dV?0===b.length?"":b:(""===b||b.endsWith(";")||(b+="; "),`${b}font-size: ${dV}em`)}()),FV(10,dd=qV?`0 0 ${qV.width} ${qV.height}`:`0 0 ${tR} ${ER}`))},[Sd,_d,el,Xl,Il,Hl,qV,tR,ER,$V,dd,Td,Xd,Cd,$l,Ed,function(b){qV=b,FV(6,qV),FV(12,Xd),FV(14,$l),FV(13,Cd)},kd]}class Icon extends SvelteComponent{constructor(b){super(),init(this,b,instance$A,create_fragment$D,safe_not_equal,{class:0,data:12,scale:13,spin:1,inverse:2,pulse:3,flip:4,label:5,style:14})}}var faUser={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"]},faSatellite={prefix:"fas",iconName:"satellite",icon:[512,512,[128752],"f7bf","M233 7c-9.4-9.4-24.6-9.4-33.9 0l-96 96c-9.4 9.4-9.4 24.6 0 33.9l89.4 89.4-15.5 15.5C152.3 230.4 124.9 224 96 224c-31.7 0-61.5 7.7-87.8 21.2c-9 4.7-10.3 16.7-3.1 23.8L112.7 376.7 96.3 393.1c-2.6-.7-5.4-1.1-8.3-1.1c-17.7 0-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32c0-2.9-.4-5.6-1.1-8.3l16.4-16.4L242.9 506.9c7.2 7.2 19.2 5.9 23.8-3.1C280.3 477.5 288 447.7 288 416c0-28.9-6.4-56.3-17.8-80.9l15.5-15.5L375 409c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9l-89.4-89.4 55-55c12.5-12.5 12.5-32.8 0-45.3l-48-48c-12.5-12.5-32.8-12.5-45.3 0l-55 55L233 7zm159 351l-72.4-72.4 62.1-62.1L454.1 296 392 358.1zM226.3 192.4L153.9 120 216 57.9l72.4 72.4-62.1 62.1z"]},faCamera={prefix:"fas",iconName:"camera",icon:[512,512,[62258,"camera-alt"],"f030","M149.1 64.8L138.7 96H64C28.7 96 0 124.7 0 160V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H373.3L362.9 64.8C356.4 45.2 338.1 32 317.4 32H194.6c-20.7 0-39 13.2-45.5 32.8zM256 192a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},faMeteor={prefix:"fas",iconName:"meteor",icon:[512,512,[9732],"f753","M493.7 .9L299.4 75.6l2.3-29.3c1-12.8-12.8-21.5-24-15.1L101.3 133.4C38.6 169.7 0 236.6 0 309C0 421.1 90.9 512 203 512c72.4 0 139.4-38.6 175.7-101.3L480.8 234.3c6.5-11.1-2.2-25-15.1-24l-29.3 2.3L511.1 18.3c.6-1.5 .9-3.2 .9-4.8C512 6 506 0 498.5 0c-1.7 0-3.3 .3-4.8 .9zM192 192a128 128 0 1 1 0 256 128 128 0 1 1 0-256zm0 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm16 96a16 16 0 1 0 0-32 16 16 0 1 0 0 32z"]},faRocket={prefix:"fas",iconName:"rocket",icon:[512,512,[],"f135","M156.6 384.9L125.7 354c-8.5-8.5-11.5-20.8-7.7-32.2c3-8.9 7-20.5 11.8-33.8L24 288c-8.6 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.3 0c2.4-4 4.8-7.7 7.2-11.3C289.1-4.1 411.1-8.1 483.9 5.3c11.6 2.1 20.6 11.2 22.8 22.8c13.4 72.9 9.3 194.8-111.4 276.7c-3.5 2.4-7.3 4.8-11.3 7.2v82.3c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1 .2s-12.1-12.2-12.1-20.9V380.8c-14.1 4.9-26.4 8.9-35.7 11.9c-11.2 3.6-23.4 .5-31.8-7.8zM384 168a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},faBuilding={prefix:"fas",iconName:"building",icon:[384,512,[127970,61687],"f1ad","M48 0C21.5 0 0 21.5 0 48V464c0 26.5 21.5 48 48 48h96V432c0-26.5 21.5-48 48-48s48 21.5 48 48v80h96c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48H48zM64 240c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V240zm112-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V240c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V240zM80 96h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V112zM272 96h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16z"]},faDatabase={prefix:"fas",iconName:"database",icon:[448,512,[],"f1c0","M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z"]};const videoCamera={"video-camera":{width:1792,height:1792,paths:[{d:"M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"}]}},chevronLeft={"chevron-left":{width:1280,height:1792,paths:[{d:"M1171 301l-531 531 531 531q19 19 19 45t-19 45l-166 166q-19 19-45 19t-45-19l-742-742q-19-19-19-45t19-45l742-742q19-19 45-19t45 19l166 166q19 19 19 45t-19 45z"}]}},eye={eye:{width:1792,height:1792,paths:[{d:"M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zM944 576q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zM1792 960q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"}]}},eyeSlash={"eye-slash":{width:1792,height:1792,paths:[{d:"M555 1335l78-141q-87-63-136-159t-49-203q0-121 61-225-229 117-381 353 167 258 427 375zM944 576q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zM1307 385q0 7-1 9-106 189-316 567t-315 566l-49 89q-10 16-28 16-12 0-134-70-16-10-16-28 0-12 44-87-143-65-263.5-173t-208.5-245q-20-31-20-69t20-69q153-235 380-371t496-136q89 0 180 17l54-97q10-16 28-16 5 0 18 6t31 15.5 33 18.5 31.5 18.5 19.5 11.5q16 10 16 27zM1344 832q0 139-79 253.5t-209 164.5l280-502q8 45 8 84zM1792 960q0 35-20 69-39 64-109 145-150 172-347.5 267t-419.5 95l74-132q212-18 392.5-137t301.5-307q-115-179-282-294l63-112q95 64 182.5 153t144.5 184q20 34 20 69z"}]}},warning={warning:{width:1792,height:1792,paths:[{d:"M1024 1375v-190q0-14-9.5-23.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 23.5v190q0 14 9.5 23.5t22.5 9.5h192q13 0 22.5-9.5t9.5-23.5zM1022 1001l18-459q0-12-10-19-13-11-24-11h-220q-11 0-24 11-10 7-10 21l17 457q0 10 10 16.5t24 6.5h185q14 0 23.5-6.5t10.5-16.5zM1008 67l768 1408q35 63-2 126-17 29-46.5 46t-63.5 17h-1536q-34 0-63.5-17t-46.5-46q-37-63-2-126l768-1408q17-31 47-49t65-18 65 18 47 49z"}]}},folder={folder:{width:1664,height:1792,paths:[{d:"M1664 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"}]}},gears={gears:{width:1920,height:1792,paths:[{d:"M896 896q0-106-75-181t-181-75-181 75-75 181 75 181 181 75 181-75 75-181zM1664 1408q0-52-38-90t-90-38-90 38-38 90q0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zM1664 384q0-52-38-90t-90-38-90 38-38 90q0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zM1280 805v185q0 10-7 19.5t-16 10.5l-155 24q-11 35-32 76 34 48 90 115 7 11 7 20 0 12-7 19-23 30-82.5 89.5t-78.5 59.5q-11 0-21-7l-115-90q-37 19-77 31-11 108-23 155-7 24-30 24h-186q-11 0-20-7.5t-10-17.5l-23-153q-34-10-75-31l-118 89q-7 7-20 7-11 0-21-8-144-133-144-160 0-9 7-19 10-14 41-53t47-61q-23-44-35-82l-152-24q-10-1-17-9.5t-7-19.5v-185q0-10 7-19.5t16-10.5l155-24q11-35 32-76-34-48-90-115-7-11-7-20 0-12 7-20 22-30 82-89t79-59q11 0 21 7l115 90q34-18 77-32 11-108 23-154 7-24 30-24h186q11 0 20 7.5t10 17.5l23 153q34 10 75 31l118-89q8-7 20-7 11 0 21 8 144 133 144 160 0 8-7 19-12 16-42 54t-45 60q23 48 34 82l152 23q10 2 17 10.5t7 19.5zM1920 1338v140q0 16-149 31-12 27-30 52 51 113 51 138 0 4-4 7-122 71-124 71-8 0-46-47t-52-68q-20 2-30 2t-30-2q-14 21-52 68t-46 47q-2 0-124-71-4-3-4-7 0-25 51-138-18-25-30-52-149-15-149-31v-140q0-16 149-31 13-29 30-52-51-113-51-138 0-4 4-7 4-2 35-20t59-34 30-16q8 0 46 46.5t52 67.5q20-2 30-2t30 2q51-71 92-112l6-2q4 0 124 70 4 3 4 7 0 25-51 138 17 23 30 52 149 15 149 31zM1920 314v140q0 16-149 31-12 27-30 52 51 113 51 138 0 4-4 7-122 71-124 71-8 0-46-47t-52-68q-20 2-30 2t-30-2q-14 21-52 68t-46 47q-2 0-124-71-4-3-4-7 0-25 51-138-18-25-30-52-149-15-149-31v-140q0-16 149-31 13-29 30-52-51-113-51-138 0-4 4-7 4-2 35-20t59-34 30-16q8 0 46 46.5t52 67.5q20-2 30-2t30 2q51-71 92-112l6-2q4 0 124 70 4 3 4 7 0 25-51 138 17 23 30 52 149 15 149 31z"}]}},table={table:{width:1664,height:1792,paths:[{d:"M512 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM512 992v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1024 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM512 608v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1024 992v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1536 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1024 608v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1536 992v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1536 608v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1664 288v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"}]}},angleDoubleDown={"angle-double-down":{width:1152,height:1792,paths:[{d:"M1075 864q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23zM1075 480q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"}]}},trash={trash:{width:1408,height:1792,paths:[{d:"M512 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zM768 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zM1024 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zM480 384h448l-48-117q-7-9-17-11h-317q-10 2-17 11zM1408 416v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"}]}},content=writable(void 0),template=writable(void 0),title=writable(void 0),lastcontent=writable(void 0),SIZE_PREFIX_LENGTH=4,int32=new Int32Array(2);var Encoding,Encoding2;new Float32Array(int32.buffer),new Float64Array(int32.buffer),new Uint16Array(new Uint8Array([1,0]).buffer)[0],Encoding2=Encoding||(Encoding={}),Encoding2[Encoding2.UTF8_BYTES=1]="UTF8_BYTES",Encoding2[Encoding2.UTF16_STRING=2]="UTF16_STRING";var ScoreType=(b=>(b[b.OUTLIER=0]="OUTLIER",b))(ScoreType||{});class Score{constructor(){__publicField(this,"bb",null),__publicField(this,"bb_pos",0)}__init(b,dV){return this.bb_pos=b,this.bb=dV,this}static getRootAsScore(b,dV){return(dV||new Score).__init(b.readInt32(b.position())+b.position(),b)}static getSizePrefixedRootAsScore(b,dV){return b.setPosition(b.position()+SIZE_PREFIX_LENGTH),(dV||new Score).__init(b.readInt32(b.position())+b.position(),b)}NORAD_CAT_ID(b){const dV=this.bb.__offset(this.bb_pos,4);return dV?this.bb.__string(this.bb_pos+dV,b):null}TYPE(){const b=this.bb.__offset(this.bb_pos,6);return b?this.bb.readInt8(this.bb_pos+b):ScoreType.OUTLIER}TAG(b){const dV=this.bb.__offset(this.bb_pos,8);return dV?this.bb.__string(this.bb_pos+dV,b):null}SCORE(){const b=this.bb.__offset(this.bb_pos,10);return b?this.bb.readFloat32(this.bb_pos+b):0}static startScore(b){b.startObject(4)}static addNoradCatId(b,dV){b.addFieldOffset(0,dV,0)}static addType(b,dV){b.addFieldInt8(1,dV,ScoreType.OUTLIER)}static addTag(b,dV){b.addFieldOffset(2,dV,0)}static addScore(b,dV){b.addFieldFloat32(3,dV,0)}static endScore(b){return b.endObject()}static createScore(b,dV,FV,EV,qV){return Score.startScore(b),Score.addNoradCatId(b,dV),Score.addType(b,FV),Score.addTag(b,EV),Score.addScore(b,qV),Score.endScore(b)}unpack(){return new ScoreT(this.NORAD_CAT_ID(),this.TYPE(),this.TAG(),this.SCORE())}unpackTo(b){b.NORAD_CAT_ID=this.NORAD_CAT_ID(),b.TYPE=this.TYPE(),b.TAG=this.TAG(),b.SCORE=this.SCORE()}}class ScoreT{constructor(b=null,dV=ScoreType.OUTLIER,FV=null,EV=0){this.NORAD_CAT_ID=b,this.TYPE=dV,this.TAG=FV,this.SCORE=EV}pack(b){const dV=null!==this.NORAD_CAT_ID?b.createString(this.NORAD_CAT_ID):0,FV=null!==this.TAG?b.createString(this.TAG):0;return Score.createScore(b,dV,this.TYPE,FV,this.SCORE)}}class HYP{constructor(){__publicField(this,"bb",null),__publicField(this,"bb_pos",0)}__init(b,dV){return this.bb_pos=b,this.bb=dV,this}static getRootAsHYP(b,dV){return(dV||new HYP).__init(b.readInt32(b.position())+b.position(),b)}static getSizePrefixedRootAsHYP(b,dV){return b.setPosition(b.position()+SIZE_PREFIX_LENGTH),(dV||new HYP).__init(b.readInt32(b.position())+b.position(),b)}static bufferHasIdentifier(b){return b.__has_identifier("$HYP")}CAT_IDS(b,dV){const FV=this.bb.__offset(this.bb_pos,4);return FV?this.bb.__string(this.bb.__vector(this.bb_pos+FV)+4*b,dV):null}catIdsLength(){const b=this.bb.__offset(this.bb_pos,4);return b?this.bb.__vector_len(this.bb_pos+b):0}SIT_IDS(b,dV){const FV=this.bb.__offset(this.bb_pos,6);return FV?this.bb.__string(this.bb.__vector(this.bb_pos+FV)+4*b,dV):null}sitIdsLength(){const b=this.bb.__offset(this.bb_pos,6);return b?this.bb.__vector_len(this.bb_pos+b):0}NAME(b){const dV=this.bb.__offset(this.bb_pos,8);return dV?this.bb.__string(this.bb_pos+dV,b):null}CATEGORY(b){const dV=this.bb.__offset(this.bb_pos,10);return dV?this.bb.__string(this.bb_pos+dV,b):null}ROW_INDICATORS(b,dV){const FV=this.bb.__offset(this.bb_pos,12);return FV?this.bb.__string(this.bb.__vector(this.bb_pos+FV)+4*b,dV):null}rowIndicatorsLength(){const b=this.bb.__offset(this.bb_pos,12);return b?this.bb.__vector_len(this.bb_pos+b):0}COL_INDICATORS(b,dV){const FV=this.bb.__offset(this.bb_pos,14);return FV?this.bb.__string(this.bb.__vector(this.bb_pos+FV)+4*b,dV):null}colIndicatorsLength(){const b=this.bb.__offset(this.bb_pos,14);return b?this.bb.__vector_len(this.bb_pos+b):0}MATRIX(b){const dV=this.bb.__offset(this.bb_pos,16);return!!dV&&!!this.bb.readInt8(this.bb.__vector(this.bb_pos+dV)+b)}matrixLength(){const b=this.bb.__offset(this.bb_pos,16);return b?this.bb.__vector_len(this.bb_pos+b):0}matrixArray(){const b=this.bb.__offset(this.bb_pos,16);return b?new Int8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+b),this.bb.__vector_len(this.bb_pos+b)):null}SCORE(b,dV){const FV=this.bb.__offset(this.bb_pos,18);return FV?(dV||new Score).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+FV)+4*b),this.bb):null}scoreLength(){const b=this.bb.__offset(this.bb_pos,18);return b?this.bb.__vector_len(this.bb_pos+b):0}ANALYSIS_METHOD(b){const dV=this.bb.__offset(this.bb_pos,20);return dV?this.bb.__string(this.bb_pos+dV,b):null}EVENT_START_TIME(b){const dV=this.bb.__offset(this.bb_pos,22);return dV?this.bb.__string(this.bb_pos+dV,b):null}EVENT_END_TIME(b){const dV=this.bb.__offset(this.bb_pos,24);return dV?this.bb.__string(this.bb_pos+dV,b):null}static startHYP(b){b.startObject(11)}static addCatIds(b,dV){b.addFieldOffset(0,dV,0)}static createCatIdsVector(b,dV){b.startVector(4,dV.length,4);for(let FV=dV.length-1;FV>=0;FV--)b.addOffset(dV[FV]);return b.endVector()}static startCatIdsVector(b,dV){b.startVector(4,dV,4)}static addSitIds(b,dV){b.addFieldOffset(1,dV,0)}static createSitIdsVector(b,dV){b.startVector(4,dV.length,4);for(let FV=dV.length-1;FV>=0;FV--)b.addOffset(dV[FV]);return b.endVector()}static startSitIdsVector(b,dV){b.startVector(4,dV,4)}static addName(b,dV){b.addFieldOffset(2,dV,0)}static addCategory(b,dV){b.addFieldOffset(3,dV,0)}static addRowIndicators(b,dV){b.addFieldOffset(4,dV,0)}static createRowIndicatorsVector(b,dV){b.startVector(4,dV.length,4);for(let FV=dV.length-1;FV>=0;FV--)b.addOffset(dV[FV]);return b.endVector()}static startRowIndicatorsVector(b,dV){b.startVector(4,dV,4)}static addColIndicators(b,dV){b.addFieldOffset(5,dV,0)}static createColIndicatorsVector(b,dV){b.startVector(4,dV.length,4);for(let FV=dV.length-1;FV>=0;FV--)b.addOffset(dV[FV]);return b.endVector()}static startColIndicatorsVector(b,dV){b.startVector(4,dV,4)}static addMatrix(b,dV){b.addFieldOffset(6,dV,0)}static createMatrixVector(b,dV){b.startVector(1,dV.length,1);for(let FV=dV.length-1;FV>=0;FV--)b.addInt8(+dV[FV]);return b.endVector()}static startMatrixVector(b,dV){b.startVector(1,dV,1)}static addScore(b,dV){b.addFieldOffset(7,dV,0)}static createScoreVector(b,dV){b.startVector(4,dV.length,4);for(let FV=dV.length-1;FV>=0;FV--)b.addOffset(dV[FV]);return b.endVector()}static startScoreVector(b,dV){b.startVector(4,dV,4)}static addAnalysisMethod(b,dV){b.addFieldOffset(8,dV,0)}static addEventStartTime(b,dV){b.addFieldOffset(9,dV,0)}static addEventEndTime(b,dV){b.addFieldOffset(10,dV,0)}static endHYP(b){return b.endObject()}static finishHYPBuffer(b,dV){b.finish(dV,"$HYP")}static finishSizePrefixedHYPBuffer(b,dV){b.finish(dV,"$HYP",!0)}static createHYP(b,dV,FV,EV,qV,$V,dd,Td,Ed,kd,Sd,Xd){return HYP.startHYP(b),HYP.addCatIds(b,dV),HYP.addSitIds(b,FV),HYP.addName(b,EV),HYP.addCategory(b,qV),HYP.addRowIndicators(b,$V),HYP.addColIndicators(b,dd),HYP.addMatrix(b,Td),HYP.addScore(b,Ed),HYP.addAnalysisMethod(b,kd),HYP.addEventStartTime(b,Sd),HYP.addEventEndTime(b,Xd),HYP.endHYP(b)}unpack(){return new HYPT(this.bb.createScalarList(this.CAT_IDS.bind(this),this.catIdsLength()),this.bb.createScalarList(this.SIT_IDS.bind(this),this.sitIdsLength()),this.NAME(),this.CATEGORY(),this.bb.createScalarList(this.ROW_INDICATORS.bind(this),this.rowIndicatorsLength()),this.bb.createScalarList(this.COL_INDICATORS.bind(this),this.colIndicatorsLength()),this.bb.createScalarList(this.MATRIX.bind(this),this.matrixLength()),this.bb.createObjList(this.SCORE.bind(this),this.scoreLength()),this.ANALYSIS_METHOD(),this.EVENT_START_TIME(),this.EVENT_END_TIME())}unpackTo(b){b.CAT_IDS=this.bb.createScalarList(this.CAT_IDS.bind(this),this.catIdsLength()),b.SIT_IDS=this.bb.createScalarList(this.SIT_IDS.bind(this),this.sitIdsLength()),b.NAME=this.NAME(),b.CATEGORY=this.CATEGORY(),b.ROW_INDICATORS=this.bb.createScalarList(this.ROW_INDICATORS.bind(this),this.rowIndicatorsLength()),b.COL_INDICATORS=this.bb.createScalarList(this.COL_INDICATORS.bind(this),this.colIndicatorsLength()),b.MATRIX=this.bb.createScalarList(this.MATRIX.bind(this),this.matrixLength()),b.SCORE=this.bb.createObjList(this.SCORE.bind(this),this.scoreLength()),b.ANALYSIS_METHOD=this.ANALYSIS_METHOD(),b.EVENT_START_TIME=this.EVENT_START_TIME(),b.EVENT_END_TIME=this.EVENT_END_TIME()}}class HYPT{constructor(b=[],dV=[],FV=null,EV=null,qV=[],$V=[],dd=[],Td=[],Ed=null,kd=null,Sd=null){this.CAT_IDS=b,this.SIT_IDS=dV,this.NAME=FV,this.CATEGORY=EV,this.ROW_INDICATORS=qV,this.COL_INDICATORS=$V,this.MATRIX=dd,this.SCORE=Td,this.ANALYSIS_METHOD=Ed,this.EVENT_START_TIME=kd,this.EVENT_END_TIME=Sd}pack(b){const dV=HYP.createCatIdsVector(b,b.createObjectOffsetList(this.CAT_IDS)),FV=HYP.createSitIdsVector(b,b.createObjectOffsetList(this.SIT_IDS)),EV=null!==this.NAME?b.createString(this.NAME):0,qV=null!==this.CATEGORY?b.createString(this.CATEGORY):0,$V=HYP.createRowIndicatorsVector(b,b.createObjectOffsetList(this.ROW_INDICATORS)),dd=HYP.createColIndicatorsVector(b,b.createObjectOffsetList(this.COL_INDICATORS)),Td=HYP.createMatrixVector(b,this.MATRIX),Ed=HYP.createScoreVector(b,b.createObjectOffsetList(this.SCORE)),kd=null!==this.ANALYSIS_METHOD?b.createString(this.ANALYSIS_METHOD):0,Sd=null!==this.EVENT_START_TIME?b.createString(this.EVENT_START_TIME):0,Xd=null!==this.EVENT_END_TIME?b.createString(this.EVENT_END_TIME):0;return HYP.createHYP(b,dV,FV,EV,qV,$V,dd,Td,Ed,kd,Sd,Xd)}}const nodeREDURL="apollo.sdataplab.com/node-red",messages=createWebSocketStore(nodeREDURL);new Date(0).toISOString();const reFetch=()=>fetch(`https://${nodeREDURL}/messagearchive`,{method:"GET",headers:{"Content-Type":"application/json"}}).then((b=>b.json())).then((b=>{messages.set(b)})).catch((b=>console.error("Error:",b)));function createWebSocketStore(b){const{subscribe:dV,set:FV,update:EV}=writable([]);let qV,$V=0;const connect=()=>{qV=new WebSocket(`wss://${b}/ws`),qV.onopen=()=>{console.log("WebSocket connected"),$V=0},qV.onmessage=b=>{reFetch()},qV.onerror=b=>{console.error("WebSocket error:",b)},qV.onclose=()=>{console.log("WebSocket disconnected"),$V++;const b=Math.min(1e3*2**$V,3e4);setTimeout(connect,b)}};return connect(),{set:FV,subscribe:dV,sendMessage:b=>{qV&&qV.readyState===WebSocket.OPEN&&qV.send(b)},reconnect:()=>{qV?qV.close():connect()}}}reFetch();const getMessageType=b=>{const dV=Object.entries(b).find((([b,dV])=>b.endsWith("COLLECTION")));return dV?dV[0].split("COLLECTION")[0]:"ANY"},activeEvents=writable({}),activeEvent=writable(new HYPT);function create_fragment$C(b){let dV,FV,EV;return{c(){dV=element("div"),dV.textContent="×",attr(dV,"class","select-none cursor-pointer modal-close-button text-gray-100 w-6 h-6 md:w-7 md:h-7 flex items-center justify-center text-[1.5em] pb-[3px] -mr-1")},m(qV,$V){insert(qV,dV,$V),FV||(EV=listen(dV,"click",(function(){is_function(b[0])&&b[0].apply(this,arguments)})),FV=!0)},p(dV,[FV]){b=dV},i:noop$1,o:noop$1,d(b){b&&detach(dV),FV=!1,EV()}}}function instance$z(b,dV,FV){let{onclick:EV=function(){}}=dV;return b.$$set=b=>{"onclick"in b&&FV(0,EV=b.onclick)},[EV]}class CloseButton extends SvelteComponent{constructor(b){super(),init(this,b,instance$z,create_fragment$C,safe_not_equal,{onclick:0})}}const Modal_svelte_svelte_type_style_lang$2="";function get_each_context$7(b,dV,FV){const EV=b.slice();return EV[28]=dV[FV],EV}function create_else_block_1$1(b){let dV,FV,EV=b[4].name+"";return{c(){dV=element("div"),FV=text(EV)},m(b,EV){insert(b,dV,EV),append$1(dV,FV)},p(b,dV){16&dV&&EV!==(EV=b[4].name+"")&&set_data(FV,EV)},d(b){b&&detach(dV)}}}function create_if_block_4$3(b){let dV,FV,EV;return{c(){dV=element("input"),attr(dV,"type","text"),attr(dV,"placeholder","Camera Track From"),attr(dV,"class","border border-gray-300 rounded px-2 py-1")},m(qV,$V){insert(qV,dV,$V),set_input_value(dV,b[0]),FV||(EV=[listen(dV,"input",b[14]),listen(dV,"input",b[15])],FV=!0)},p(b,FV){1&FV&&dV.value!==b[0]&&set_input_value(dV,b[0])},d(b){b&&detach(dV),FV=!1,run_all(EV)}}}function create_else_block$7(b){let dV,FV,EV=b[3].name+"";return{c(){dV=element("div"),FV=text(EV)},m(b,EV){insert(b,dV,EV),append$1(dV,FV)},p(b,dV){8&dV&&EV!==(EV=b[3].name+"")&&set_data(FV,EV)},d(b){b&&detach(dV)}}}function create_if_block_3$6(b){let dV,FV,EV;return{c(){dV=element("input"),attr(dV,"type","text"),attr(dV,"placeholder","Camera Track To"),attr(dV,"class","border border-gray-300 rounded px-2 py-1")},m(qV,$V){insert(qV,dV,$V),set_input_value(dV,b[1]),FV||(EV=[listen(dV,"input",b[16]),listen(dV,"input",b[17])],FV=!0)},p(b,FV){2&FV&&dV.value!==b[1]&&set_input_value(dV,b[1])},d(b){b&&detach(dV),FV=!1,run_all(EV)}}}function create_if_block_2$7(b){let dV,FV,EV;return{c(){dV=element("div"),dV.textContent="Clear",attr(dV,"class","bg-red-500 cursor-pointer p-1 pl-2 pr-2 rounded flex items-center justify-center")},m(qV,$V){insert(qV,dV,$V),FV||(EV=listen(dV,"click",b[12]),FV=!0)},p:noop$1,d(b){b&&detach(dV),FV=!1,EV()}}}function create_if_block_1$b(b){let dV,FV,EV,qV,$V,dd,Td,Ed,kd,Sd,Xd,Cd,_d,el=b[8].az.toFixed(2)+"",Xl=b[8].el.toFixed(2)+"",Il=(b[8].range/1e3).toFixed(2)+"";return{c(){dV=element("div"),FV=element("div"),EV=text("AZ: "),qV=text(el),$V=space(),dd=element("div"),Td=text("EL: "),Ed=text(Xl),kd=space(),Sd=element("div"),Xd=text("RANGE: "),Cd=text(Il),_d=text(" km")},m(b,el){insert(b,dV,el),append$1(dV,FV),append$1(FV,EV),append$1(FV,qV),append$1(dV,$V),append$1(dV,dd),append$1(dd,Td),append$1(dd,Ed),append$1(dV,kd),append$1(dV,Sd),append$1(Sd,Xd),append$1(Sd,Cd),append$1(Sd,_d)},p(b,dV){256&dV&&el!==(el=b[8].az.toFixed(2)+"")&&set_data(qV,el),256&dV&&Xl!==(Xl=b[8].el.toFixed(2)+"")&&set_data(Ed,Xl),256&dV&&Il!==(Il=(b[8].range/1e3).toFixed(2)+"")&&set_data(Cd,Il)},d(b){b&&detach(dV)}}}function create_if_block$g(b){let dV,FV=ensure_array_like(b[7]),EV=[];for(let qV=0;qVCamera Control',dd=space(),create_component(Td.$$.fragment),Ed=space(),kd=element("div"),Sd=element("div"),UN.c(),Xd=space(),iN.c(),Cd=space(),HN&&HN.c(),_d=space(),el=element("div"),vZ&&vZ.c(),Xl=space(),Il=element("div"),Hl=text("Camera Position (ECEF):\n "),$l=element("div"),tR=element("div"),ER=text(SM),sR=space(),GR=element("div"),uR=text(dt),OR=space(),AU=element("div"),mU=text(Zt),wU=space(),oU=element("div"),XU=text("Camera Position:\n "),LU=element("div"),uU=element("div"),PU=element("div"),_U=text(Lt),dT=text("\n LAT"),UT=space(),FT=element("div"),sT=element("div"),DT=text(It),XT=text("\n LON"),JT=space(),LT=element("div"),qT=element("div"),$T=text(jt),AM=text("\n ALT"),attr($V,"class","flex items-center gap-2 w-full justify-between p-1"),attr(qV,"class","flex-none text-xs md:text-sm flex justify-between items-center pl-2 pr-3 pt-2 pb-2 md:pt-2 md:pb-2 border-b border-gray-600"),attr(Sd,"class","flex flex-col gap-2 text-sm w-1/2"),attr(el,"class","flex flex-col gap-1 w-full border overflow-scroll p-2 cursor-pointer"),attr(kd,"class","flex gap-2 w-full flex-grow p-2 overflow-auto"),attr(tR,"class","flex justify-end"),attr(GR,"class","flex justify-end"),attr(AU,"class","flex justify-end"),attr($l,"class","flex-col font-mono"),attr(Il,"class","p-2 pl-4 border-t border-gray-600 flex justify-between text-[.65rem]"),attr(uU,"class","flex justify-between"),attr(FT,"class","flex justify-between"),attr(LT,"class","flex justify-between"),attr(LU,"class","flex-col w-[5rem] font-mono"),attr(oU,"class","p-2 pl-4 border-t border-gray-600 flex justify-between text-[.65rem]"),set_style(EV,"background","rgba(48, 51, 54, .9)"),attr(EV,"class","bg-opacity-75 text-white rounded shadow-xl w-full h-full overflow-auto flex flex-col border border-gray-600"),attr(FV,"class","flex justify-center items-center z-50 w-full h-full"),attr(dV,"class","fixed mt-12 pr-2 pl-2 flex justify-end items-start w-full md:w-[38%] h-[50%] md:h-[50%] max-h-[350px] max-w-[400px] right-0")},m(b,SM){insert(b,dV,SM),append$1(dV,FV),append$1(FV,EV),append$1(EV,qV),append$1(qV,$V),append$1(qV,dd),mount_component(Td,qV,null),append$1(EV,Ed),append$1(EV,kd),append$1(kd,Sd),UN.m(Sd,null),append$1(Sd,Xd),iN.m(Sd,null),append$1(Sd,Cd),HN&&HN.m(Sd,null),append$1(kd,_d),append$1(kd,el),vZ&&vZ.m(el,null),append$1(EV,Xl),append$1(EV,Il),append$1(Il,Hl),append$1(Il,$l),append$1($l,tR),append$1(tR,ER),append$1($l,sR),append$1($l,GR),append$1(GR,uR),append$1($l,OR),append$1($l,AU),append$1(AU,mU),append$1(EV,wU),append$1(EV,oU),append$1(oU,XU),append$1(oU,LU),append$1(LU,uU),append$1(uU,PU),append$1(PU,_U),append$1(uU,dT),append$1(LU,UT),append$1(LU,FT),append$1(FT,sT),append$1(sT,DT),append$1(FT,XT),append$1(LU,JT),append$1(LU,LT),append$1(LT,qT),append$1(qT,$T),append$1(LT,AM),wM=!0},p(b,[dV]){Ot===(Ot=select_block_type(b))&&UN?UN.p(b,dV):(UN.d(1),UN=Ot(b),UN&&(UN.c(),UN.m(Sd,Xd))),aN===(aN=select_block_type_1(b))&&iN?iN.p(b,dV):(iN.d(1),iN=aN(b),iN&&(iN.c(),iN.m(Sd,Cd))),b[3]&&b[4]?HN?HN.p(b,dV):(HN=create_if_block_2$7(b),HN.c(),HN.m(Sd,null)):HN&&(HN.d(1),HN=null),PN===(PN=select_block_type_2(b))&&vZ?vZ.p(b,dV):(vZ&&vZ.d(1),vZ=PN&&PN(b),vZ&&(vZ.c(),vZ.m(el,null))),(!wM||32&dV)&&SM!==(SM=b[5][0]+"")&&set_data(ER,SM),(!wM||32&dV)&&dt!==(dt=b[5][1]+"")&&set_data(uR,dt),(!wM||32&dV)&&Zt!==(Zt=b[5][2]+"")&&set_data(mU,Zt),(!wM||64&dV)&&Lt!==(Lt=b[6][0]+"")&&set_data(_U,Lt),(!wM||64&dV)&&It!==(It=b[6][1]+"")&&set_data(DT,It),(!wM||64&dV)&&jt!==(jt=b[6][2]+"")&&set_data($T,jt)},i(b){wM||(transition_in(Td.$$.fragment,b),wM=!0)},o(b){transition_out(Td.$$.fragment,b),wM=!1},d(b){b&&detach(dV),destroy_component(Td),UN.d(),iN.d(),HN&&HN.d(),vZ&&vZ.d()}}}function instance$y(b,dV,FV){var EV;let qV,$V,dd,Td;component_subscribe(b,lastcontent,(b=>FV(22,qV=b))),component_subscribe(b,content,(b=>FV(23,$V=b)));const{viewer:Ed}=globalThis;let kd,Sd,Xd=!0,Cd=[],_d=[],el=(null==(EV=Ed.selectedEntity)?void 0:EV.id)||"",Xl="",Il="from",Hl=[];const $l=writable(Ed.selectedEntity||null);component_subscribe(b,$l,(b=>FV(4,Td=b)));const tR=writable(null);function searchEntities(b){let dV=[];for(let FV=0;FV100)break}}return dV}function selectEntity(b){"from"===Il?$l.set(b):tR.set(b)}function clearAllTracking(){$l.set(null),tR.set(null),FV(0,el=""),FV(1,Xl=""),Ed.camera.unTrack()}component_subscribe(b,tR,(b=>FV(3,dd=b)));let ER={};onMount((()=>{var b;Xd=globalThis.viewer.clock.shouldAnimate,scenario.settings.ClockSettings.shouldAnimate.set(!1),kd=null==(b=globalThis.viewer)?void 0:b.clock.onTick.addEventListener((b=>{var dV;const{currentTime:EV}=b;if((null==Td?void 0:Td.position)&&(null==dd?void 0:dd.position)&&FV(8,ER=bu.getAzElRange(Td.position.getValue(EV),dd.position.getValue(EV))),Sd=null==(dV=globalThis.viewer)?void 0:dV.camera.positionWC,Sd){const b=globalThis.viewer.scene.globe.ellipsoid.cartesianToCartographic(Sd);FV(5,Cd=[`${Sd.x.toFixed(2)} X`,`${Sd.y.toFixed(2)} Y`,`${Sd.z.toFixed(2)} Z`]),FV(6,_d=[`${X.toDegrees(b.latitude).toFixed(2)}°`,`${X.toDegrees(b.longitude).toFixed(2)}°`,`${(b.height/1e3).toFixed(1)}`])}}))})),onDestroy((()=>{kd&&globalThis.viewer&&globalThis.viewer.clock.onTick.removeEventListener(kd),scenario.settings.ClockSettings.shouldAnimate.set(Xd)}));return b.$$.update=()=>{31&b.$$.dirty&&Ed&&FV(7,Hl="from"===Il&&!Td&&el?searchEntities(el):"to"===Il&&!dd&&Xl?searchEntities(Xl):[]),24&b.$$.dirty&&(Td&&dd?Ed.camera.k(Td,dd):Ed.camera.unTrack(),setTimeout((()=>{Ed.scene.render()}),100))},[el,Xl,Il,dd,Td,Cd,_d,Hl,ER,$l,tR,selectEntity,clearAllTracking,()=>{set_store_value(content,$V=qV||void 0,$V),set_store_value(lastcontent,qV=void 0,qV),scenario.settings.ClockSettings.shouldAnimate.set(Xd),clearAllTracking()},function(){el=this.value,FV(0,el)},()=>FV(2,Il="from"),function(){Xl=this.value,FV(1,Xl)},()=>FV(2,Il="to"),b=>selectEntity(b)]}let Modal$3=class extends SvelteComponent{constructor(b){super(),init(this,b,instance$y,create_fragment$B,safe_not_equal,{})}};const Button_svelte_svelte_type_style_lang$2="";function create_fragment$A(b){let dV,FV,EV,qV,$V;return FV=new Icon({props:{scale:1.3,data:faCamera}}),{c(){dV=element("div"),create_component(FV.$$.fragment),attr(dV,"tabindex","0"),attr(dV,"role","button"),attr(dV,"class","relative text-white flex items-center text-md justify-center cursor-pointer")},m(dd,Td){insert(dd,dV,Td),mount_component(FV,dV,null),EV=!0,qV||($V=[listen(dV,"keydown",b[1]),listen(dV,"click",b[0])],qV=!0)},p:noop$1,i(b){EV||(transition_in(FV.$$.fragment,b),EV=!0)},o(b){transition_out(FV.$$.fragment,b),EV=!1},d(b){b&&detach(dV),destroy_component(FV),qV=!1,run_all($V)}}}function instance$x(b,dV,FV){let EV,qV;component_subscribe(b,content,(b=>FV(2,EV=b))),component_subscribe(b,lastcontent,(b=>FV(3,qV=b)));const toggleModal=()=>{EV===Modal$3?(set_store_value(content,EV=qV||void 0,EV),set_store_value(lastcontent,qV=void 0,qV)):(set_store_value(lastcontent,qV=EV,qV),set_store_value(content,EV=Modal$3,EV))};return[toggleModal,b=>{"Enter"!==b.key&&"Space"!==b.key||toggleModal()}]}let Button$4=class extends SvelteComponent{constructor(b){super(),init(this,b,instance$x,create_fragment$A,safe_not_equal,{})}};var objectType=(b=>(b[b.PAYLOAD=0]="PAYLOAD",b[b.ROCKET_BODY=1]="ROCKET_BODY",b[b.DEBRIS=2]="DEBRIS",b[b.UNKNOWN=3]="UNKNOWN",b))(objectType||{}),opsStatusCode$1=(b=>(b[b.OPERATIONAL=0]="OPERATIONAL",b[b.NONOPERATIONAL=1]="NONOPERATIONAL",b[b.PARTIALLY_OPERATIONAL=2]="PARTIALLY_OPERATIONAL",b[b.BACKUP_STANDBY=3]="BACKUP_STANDBY",b[b.SPARE=4]="SPARE",b[b.EXTENDED_MISSION=5]="EXTENDED_MISSION",b[b.DECAYED=6]="DECAYED",b[b.UNKNOWN=7]="UNKNOWN",b))(opsStatusCode$1||{});const getID=b=>b.NORAD_CAT_ID;let{trackedEntity:trackedEntity$1,selectedEntity:selectedEntity$1}=scenario;const cellClickEvent$1=b=>{var dV;if(globalThis.viewer){let FV=null==(dV=globalThis.viewer.dataSources.getByName("spaceaware")[0])?void 0:dV.entities.getById(getID(b.data));FV&&(trackedEntity$1.set(FV),selectedEntity$1.set(FV))}};function metersComparator$1(b,dV){return b.toFixed(2)/1e3-dV.toFixed(2)/1e3}const filterParams$1={debounceMs:1e3},columnDefs$2=[{headerName:"Object Name",field:"OBJECT_NAME",sortable:!0,filter:!0,filterParams:filterParams$1,pinned:!0,onCellClicked:cellClickEvent$1},{headerName:"Object ID",field:"OBJECT_ID",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"NORAD Cat ID",field:"NORAD_CAT_ID",sortable:!0,filter:!0,filterParams:filterParams$1,valueFormatter:({value:b})=>null==b?void 0:b.toString().padStart(7,"0")},{headerName:"Object Type",field:"OBJECT_TYPE",sortable:!0,filter:"agTextColumnFilter",filterParams:{filterOptions:["contains"],textCustomComparator:(b,dV,FV)=>objectType[dV].toLowerCase().includes(FV.toLowerCase()),debounceMs:filterParams$1.debounceMs},valueFormatter:({value:b})=>objectType[b]},{headerName:"Ops Status Code",field:"OPS_STATUS_CODE",sortable:!0,filter:"agTextColumnFilter",filterParams:{filterOptions:["contains","notContains","equals"],textCustomComparator:(b,dV,FV)=>{const EV=opsStatusCode$1[dV].toLowerCase(),qV=FV.toLowerCase();switch(b){case"contains":return EV.includes(qV);case"notContains":return!EV.includes(qV);case"equals":return EV===qV;default:return!1}},debounceMs:filterParams$1.debounceMs},valueFormatter:({value:b})=>opsStatusCode$1[b]},{headerName:"Owner",field:"OWNER",sortable:!0,filter:!0},{headerName:"Launch Date",field:"LAUNCH_DATE",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"EPOCH",field:"EPOCH",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"MEAN_MOTION",field:"MEAN_MOTION",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Period",field:"PERIOD",sortable:!0,filter:!0},{headerName:"SEMI-MAJOR AXIS",field:"SEMI_MAJOR_AXIS",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Mean Anomaly",field:"MEAN_ANOMALY",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Solar Rad Area",field:"SOLAR_RAD_AREA",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Solar Rad Coeff",field:"SOLAR_RAD_COEFF",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"ECCENTRICITY",field:"ECCENTRICITY",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Inclination",field:"INCLINATION",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Drag Area",field:"DRAG_AREA",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Drag Coeff",field:"DRAG_COEFF",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"RAAN",field:"RA_OF_ASC_NODE",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Apogee",field:"APOGEE",sortable:!0,filter:!0,filterParams:filterParams$1,comparator:metersComparator$1,valueFormatter:({value:b})=>b.toFixed(5)},{headerName:"Perigee",field:"PERIGEE",sortable:!0,filter:!0,filterParams:filterParams$1,comparator:metersComparator$1,valueFormatter:({value:b})=>b.toFixed(5)},{headerName:"RCS",field:"RCS",sortable:!0,filter:!0},{headerName:"Data Status Code",field:"DATA_STATUS_CODE",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Mean Motion Dot",field:"MEAN_MOTION_DOT",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Mean Motion DDot",field:"MEAN_MOTION_DDOT",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"BSTAR",field:"BSTAR",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Orbit Center",field:"ORBIT_CENTER",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Orbit Type",field:"ORBIT_TYPE",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Deployment Date",field:"DEPLOYMENT_DATE",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Size",field:"SIZE",sortable:!0,filter:!0},{headerName:"Mass",field:"MASS",sortable:!0,filter:!0},{headerName:"Mass Type",field:"MASS_TYPE",sortable:!0,filter:!0,filterParams:filterParams$1}],defaultID=b=>b.id,datatableShow=writable(!1),data=writable([]),columnDefs$1=writable([]),filterAction=writable(null),rowID=writable(defaultID),gridApi=writable(null),mode=writable(null),closeMode=writable(null),filterActionFunction=b=>{const dV=globalThis.viewer;if(!dV)return;const FV=dV.dataSources.getByName("spaceaware")[0];FV.entities.suspendEvents();const EV=new Set(b.map((b=>getID(b)))),qV=FV.entities.values;for(let $V=0;$V>3)+Number(b%8!=0)}class BitField{constructor(b=0,dV){__publicField(this,"grow"),__publicField(this,"buffer"),__publicField(this,"setBitCount",0),__publicField(this,"setBits",new Set);const FV=null==dV?void 0:dV.grow;this.grow=FV?Number.isFinite(FV)?bitsToBytes(FV):FV:0,this.buffer="number"==typeof b?new Uint8Array(bitsToBytes(b)):b,this.initializeSetBits()}get length(){return this.buffer.length<<3}initializeSetBits(){for(let b=0;b>3;return dV>b%8)}set(b,dV=!0){const FV=b>>3,EV=this.get(b);if(dV){if(EV||(this.setBitCount++,this.setBits.add(b)),FV>=this.buffer.length){const b=Math.max(FV+1,Math.min(2*this.buffer.length,this.grow));if(b<=this.grow){const dV=new Uint8Array(b);dV.set(this.buffer),this.buffer=dV}}this.buffer[FV]|=128>>b%8}else FV>b%8))}getAllSetIndices(){return Array.from(this.setBits)}setAll(b,dV=0){const FV=Math.min(bitsToBytes(dV+b.length),this.grow);if(this.buffer.length>3,qV=128>>dV%8;for(let $V=0;$V=this.buffer.length)break;qV=128}else qV>>=1}}forEach(b,dV=0,FV=8*this.buffer.length){let EV=dV>>3,qV=128>>dV%8;for(let $V=dV;$V>=1}isEmpty(){for(let b=0;b=0;dV--){let b=mM.fromProviderAsync(FV[dV]);qV.add(b,0),this._currentImageryLayers.push(b)}}else{this._currentImageryLayers=[];let dV=mM.fromProviderAsync(FV);if(dV.name=b.name,$V)qV.add(dV,0);else{let b=qV.get(0);n(b)&&qV.remove(b),qV.add(dV,0)}this._currentImageryLayers.push(dV)}}Ed(b),this.dropDownVisible=!1}}),this.selectedTerrain=void 0;let kd=zt.observable();zt.defineProperty(this,"selectedTerrain",{get:function(){return kd()},set:function(b){if(kd()===b)return void(this.dropDownVisible=!1);let dV;if(n(b)&&(dV=b.creationCommand()),n(dV)&&!n(dV.then))this._globe.depthTestAgainstTerrain=!(dV instanceof OZ),this._globe.terrainProvider=dV;else if(n(dV)){let b=!1,FV=this._globe.terrainProviderChanged.addEventListener((()=>{b=!0,FV()})),EV=new YP(dV).readyEvent.addEventListener((dV=>{b||(this._globe.depthTestAgainstTerrain=!(dV instanceof OZ),this._globe.terrainProvider=dV,EV())}))}kd(b),this.dropDownVisible=!1}});let Sd=this;this._toggleDropDown=Wl((function(){Sd.dropDownVisible=!Sd.dropDownVisible})),this.selectedImagery=m(b.selectedImageryProviderViewModel,FV[0]),this.selectedTerrain=m(b.selectedTerrainProviderViewModel,EV[0])}W(A(),1),W(A(),1),Object.defineProperties(dxt.prototype,{toggleDropDown:{get:function(){return this._toggleDropDown}},globe:{get:function(){return this._globe}}});var HP=dxt;function KP(b,dV){b=wl(b);let FV=new HP(dV),EV=document.createElement("button");EV.type="button",EV.className="cesium-button cesium-toolbar-button",EV.setAttribute("data-bind","attr: { title: buttonTooltip },click: toggleDropDown"),b.appendChild(EV);let qV=document.createElement("img");qV.setAttribute("draggable","false"),qV.className="cesium-baseLayerPicker-selected",qV.setAttribute("data-bind","attr: { src: buttonImageUrl }, visible: !!buttonImageUrl"),EV.appendChild(qV);let $V=document.createElement("div");$V.className="cesium-baseLayerPicker-dropDown",$V.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-dropDown-visible" : dropDownVisible }'),b.appendChild($V);let dd=document.createElement("div");dd.className="cesium-baseLayerPicker-sectionTitle",dd.setAttribute("data-bind","visible: imageryProviderViewModels.length > 0"),dd.innerHTML="Imagery",$V.appendChild(dd);let Td=document.createElement("div");Td.className="cesium-baseLayerPicker-section",Td.setAttribute("data-bind","foreach: _imageryProviders"),$V.appendChild(Td);let Ed=document.createElement("div");Ed.className="cesium-baseLayerPicker-category",Td.appendChild(Ed);let kd=document.createElement("div");kd.className="cesium-baseLayerPicker-categoryTitle",kd.setAttribute("data-bind","text: name"),Ed.appendChild(kd);let Sd=document.createElement("div");Sd.className="cesium-baseLayerPicker-choices",Sd.setAttribute("data-bind","foreach: providers"),Ed.appendChild(Sd);let Xd=document.createElement("div");Xd.className="cesium-baseLayerPicker-item",Xd.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-selectedItem" : $data === $parents[1].selectedImagery },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedImagery = $data; }'),Sd.appendChild(Xd);let Cd=document.createElement("img");Cd.className="cesium-baseLayerPicker-itemIcon",Cd.setAttribute("data-bind","attr: { src: iconUrl }"),Cd.setAttribute("draggable","false"),Xd.appendChild(Cd);let _d=document.createElement("div");_d.className="cesium-baseLayerPicker-itemLabel",_d.setAttribute("data-bind","text: name"),Xd.appendChild(_d);let el=document.createElement("div");el.className="cesium-baseLayerPicker-sectionTitle",el.setAttribute("data-bind","visible: terrainProviderViewModels.length > 0"),el.innerHTML="Terrain",$V.appendChild(el);let Xl=document.createElement("div");Xl.className="cesium-baseLayerPicker-section",Xl.setAttribute("data-bind","foreach: _terrainProviders"),$V.appendChild(Xl);let Il=document.createElement("div");Il.className="cesium-baseLayerPicker-category",Xl.appendChild(Il);let Hl=document.createElement("div");Hl.className="cesium-baseLayerPicker-categoryTitle",Hl.setAttribute("data-bind","text: name"),Il.appendChild(Hl);let $l=document.createElement("div");$l.className="cesium-baseLayerPicker-choices",$l.setAttribute("data-bind","foreach: providers"),Il.appendChild($l);let tR=document.createElement("div");tR.className="cesium-baseLayerPicker-item",tR.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(tR);let ER=document.createElement("img");ER.className="cesium-baseLayerPicker-itemIcon",ER.setAttribute("data-bind","attr: { src: iconUrl }"),ER.setAttribute("draggable","false"),tR.appendChild(ER);let sR=document.createElement("div");sR.className="cesium-baseLayerPicker-itemLabel",sR.setAttribute("data-bind","text: name"),tR.appendChild(sR),zt.applyBindings(FV,EV),zt.applyBindings(FV,$V),this._viewModel=FV,this._container=b,this._element=EV,this._dropPanel=$V,this._closeDropDown=function(b){EV.contains(b.target)||$V.contains(b.target)||(FV.dropDownVisible=!1)},Se.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(KP.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),KP.prototype.isDestroyed=function(){return!1},KP.prototype.destroy=function(){return Se.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),zt.cleanNode(this._element),zt.cleanNode(this._dropPanel),this._container.removeChild(this._element),this._container.removeChild(this._dropPanel),Dt(this)};var vP=KP;function ext(b){let dV=b.creationFunction;n(dV.canExecute)||(dV=Wl(dV)),this._creationCommand=dV,this.name=b.name,this.tooltip=b.tooltip,this.iconUrl=b.iconUrl,this._category=m(b.category,""),zt.track(this,["name","tooltip","iconUrl"])}W(A(),1),Object.defineProperties(ext.prototype,{creationCommand:{get:function(){return this._creationCommand}},category:{get:function(){return this._category}}});var vU=ext;function fgd(){let b=[],dV=devicePixelRatio>=2;return b.push(new vU({name:"Bing Maps Aerial",iconUrl:ge("Widgets/Images/ImageryProviders/bingAerial.png"),tooltip:"Bing Maps aerial imagery, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return lp({style:ep.AERIAL})}})),b.push(new vU({name:"Bing Maps Aerial with Labels",iconUrl:ge("Widgets/Images/ImageryProviders/bingAerialLabels.png"),tooltip:"Bing Maps aerial imagery with labels, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return lp({style:ep.AERIAL_WITH_LABELS})}})),b.push(new vU({name:"Bing Maps Roads",iconUrl:ge("Widgets/Images/ImageryProviders/bingRoads.png"),tooltip:"Bing Maps standard road maps, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return lp({style:ep.ROAD})}})),b.push(new vU({name:"ArcGIS World Imagery",iconUrl:ge("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 \nhttps://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9",category:"Other",creationFunction:function(){return tp.fromBasemapType(js.SATELLITE,{enablePickFeatures:!1})}})),b.push(new vU({name:"ArcGIS World Hillshade",iconUrl:ge("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 \nhttps://www.arcgis.com/home/item.html?id=1b243539f4514b6ba35e7d995890db1d",category:"Other",creationFunction:function(){return tp.fromBasemapType(js.HILLSHADE,{enablePickFeatures:!1})}})),b.push(new vU({name:"Esri World Ocean",iconUrl:ge("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 \nhttps://www.arcgis.com/home/item.html?id=1e126e7520f9466c9ca28b8f28b5e500",category:"Other",creationFunction:function(){return tp.fromBasemapType(js.OCEANS,{enablePickFeatures:!1})}})),b.push(new vU({name:"Open­Street­Map",iconUrl:ge("Widgets/Images/ImageryProviders/openStreetMap.png"),tooltip:"OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world.\nhttp://www.openstreetmap.org",category:"Other",creationFunction:function(){return new kp({url:"https://tile.openstreetmap.org/"})}})),b.push(new vU({name:"Stadia x Stamen Watercolor",iconUrl:ge("Widgets/Images/ImageryProviders/stamenWatercolor.png"),tooltip:"Based on the original basemaps created for the Knight Foundation and reminiscent of hand drawn maps, the watercolor maps from Stamen Design apply raster effect area washes and organic edges over a paper texture to add warm pop to any map.\nhttps://docs.stadiamaps.com/map-styles/stamen-watercolor/",category:"Other",creationFunction:function(){return new kp({url:"https://tiles.stadiamaps.com/tiles/stamen_watercolor/",fileExtension:"jpg",credit:'© Stamen Design\n © Stadia Maps\n © OpenMapTiles\n © OpenStreetMap contributors'})}})),b.push(new vU({name:"Stadia x Stamen Toner",iconUrl:ge("Widgets/Images/ImageryProviders/stamenToner.png"),tooltip:"Based on the original basemaps created for the Knight Foundation and the most popular of the excellent styles from Stamen Design, these high-contrast B+W (black and white) maps are the perfect backdrop for your colorful and eye-catching overlays.\nhttps://docs.stadiamaps.com/map-styles/stamen-toner/",category:"Other",creationFunction:function(){return new kp({url:"https://tiles.stadiamaps.com/tiles/stamen_toner/",retinaTiles:dV,credit:'© Stamen Design\n © Stadia Maps\n © OpenMapTiles\n © OpenStreetMap contributors'})}})),b.push(new vU({name:"Stadia Alidade Smooth",iconUrl:ge("Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png"),tooltip:"Stadia's custom Alidade Smooth style is designed for maps that use a lot of markers or overlays. It features a muted color scheme and fewer points of interest to allow your added data to shine.\nhttps://docs.stadiamaps.com/map-styles/alidade-smooth/",category:"Other",creationFunction:function(){return new kp({url:"https://tiles.stadiamaps.com/tiles/alidade_smooth/",retinaTiles:dV,credit:'© Stadia Maps\n © OpenMapTiles\n © OpenStreetMap contributors'})}})),b.push(new vU({name:"Stadia Alidade Smooth Dark",iconUrl:ge("Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png"),tooltip:"Stadia Alidade Smooth Dark, like its lighter cousin, is also designed to stay out of the way. It just flips the dark mode switch on the color scheme. With the lights out, your data can now literally shine.\nhttps://docs.stadiamaps.com/map-styles/alidade-smooth-dark/",category:"Other",creationFunction:function(){return new kp({url:"https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/",retinaTiles:dV,credit:'© Stadia Maps\n © OpenMapTiles\n © OpenStreetMap contributors'})}})),b.push(new vU({name:"Sentinel-2",iconUrl:ge("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 dp.fromAssetId(3954)}})),b.push(new vU({name:"Blue Marble",iconUrl:ge("Widgets/Images/ImageryProviders/blueMarble.png"),tooltip:"Blue Marble Next Generation July, 2004 imagery from NASA.",category:"Cesium ion",creationFunction:function(){return dp.fromAssetId(3845)}})),b.push(new vU({name:"Earth at night",iconUrl:ge("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 dp.fromAssetId(3812)}})),b.push(new vU({name:"Natural Earth II",iconUrl:ge("Widgets/Images/ImageryProviders/naturalEarthII.png"),tooltip:"Natural Earth II, darkened for contrast.\nhttp://www.naturalearthdata.com/",category:"Cesium ion",creationFunction:function(){return OQ.fromUrl(ge("Assets/Textures/NaturalEarthII"))}})),b}W(A(),1);var PP=fgd;function Hgd(){let b=[];return b.push(new vU({name:"WGS84 Ellipsoid",iconUrl:ge("Widgets/Images/TerrainProviders/Ellipsoid.png"),tooltip:"WGS84 standard ellipsoid, also known as EPSG:4326",category:"Cesium ion",creationFunction:function(){return new OZ}})),b.push(new vU({name:"Cesium World Terrain",iconUrl:ge("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 fB({requestWaterMask:!0,requestVertexNormals:!0})}})),b}W(A(),1);var _P=Hgd;W(A(),1);var wr="http://www.w3.org/2000/svg",Txt="http://www.w3.org/1999/xlink",qP,Cx=K.fromCssColorString("rgba(247,250,255,0.384)"),$P=K.fromCssColorString("rgba(143,191,255,0.216)"),XUt=K.fromCssColorString("rgba(153,197,255,0.098)"),t_=K.fromCssColorString("rgba(255,255,255,0.086)"),Kgd=K.fromCssColorString("rgba(255,255,255,0.267)"),vgd=K.fromCssColorString("rgba(255,255,255,0)"),lxt=K.fromCssColorString("rgba(66,67,68,0.3)"),Vxt=K.fromCssColorString("rgba(0,0,0,0.5)");function Bp(b){return K.fromCssColorString(window.getComputedStyle(b).getPropertyValue("color"))}var Xx={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 ZE(b){let dV=document.createElementNS(wr,b.tagName);for(let FV in b)if(b.hasOwnProperty(FV)&&"tagName"!==FV)if("children"===FV){let FV=b.children.length;for(let EV=0;EVEd.right||qVEd.bottom))return;let kd=b._shuttleRingPointer.getBoundingClientRect(),Sd=qV-dd-Ed.left,Xd=$V-Td-Ed.top,Cd=180*Math.atan2(Xd,Sd)/Math.PI+90;Cd>180&&(Cd-=360);let _d=FV.shuttleRingAngle;EV||qVkd.left&&$V>kd.top&&$V_d&&FV.faster(),dV.preventDefault()}else b===qP&&(qP=void 0),FV.shuttleRingDragging=!1}function iA(b,dV){this._viewModel=dV,this.svgElement=b,this._enabled=void 0,this._toggled=void 0;let FV=this;this._clickFunction=function(){let b=FV._viewModel.command;b.canExecute&&b()},b.addEventListener("click",this._clickFunction,!0),this._subscriptions=[rM(dV,"toggled",this.setToggled,this),rM(dV,"tooltip",this.setTooltip,this),rM(dV.command,"canExecute",this.setEnabled,this)]}function Uw(b,dV){b=wl(b),this._viewModel=dV,this._container=b,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 FV=b.ownerDocument,EV=document.createElement("style");EV.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); }",FV.head.insertBefore(EV,FV.head.childNodes[0]);let qV=document.createElement("div");qV.className="cesium-animation-theme",qV.innerHTML='
',this._theme=qV,this._themeNormal=qV.childNodes[0],this._themeHover=qV.childNodes[1],this._themeSelect=qV.childNodes[2],this._themeDisabled=qV.childNodes[3],this._themeKnob=qV.childNodes[4],this._themePointer=qV.childNodes[5],this._themeSwoosh=qV.childNodes[6],this._themeSwooshHover=qV.childNodes[7];let $V=document.createElementNS(wr,"svg:svg");this._svgNode=$V,$V.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",Txt);let dd=document.createElementNS(wr,"g");this._topG=dd,this._realtimeSVG=new iA(_gd(3,4,"animation_pathClock"),dV.playRealtimeViewModel),this._playReverseSVG=new iA(xUt(44,99,"animation_pathPlayReverse"),dV.playReverseViewModel),this._playForwardSVG=new iA(xUt(124,99,"animation_pathPlay"),dV.playForwardViewModel),this._pauseSVG=new iA(xUt(84,99,"animation_pathPause"),dV.pauseViewModel);let Td=document.createElementNS(wr,"g");Td.appendChild(this._realtimeSVG.svgElement),Td.appendChild(this._playReverseSVG.svgElement),Td.appendChild(this._playForwardSVG.svgElement),Td.appendChild(this._pauseSVG.svgElement);let Ed=ZE({tagName:"circle",class:"cesium-animation-shuttleRingBack",cx:100,cy:100,r:99});this._shuttleRingBackPanel=Ed;let kd=Xx.animation_pathSwooshFX,Sd=Xx.animation_pathPointer,Xd=ZE({tagName:"g",class:"cesium-animation-shuttleRingSwoosh",children:[{tagName:kd.tagName,transform:"translate(100,97) scale(-1,1)",id:"animation_pathSwooshFX",d:kd.d},{tagName:kd.tagName,transform:"translate(100,97)",id:"animation_pathSwooshFX",d:kd.d},{tagName:"line",x1:100,y1:8,x2:100,y2:22}]});this._shuttleRingSwooshG=Xd,this._shuttleRingPointer=ZE({class:"cesium-animation-shuttleRingPointer",id:"animation_pathPointer",tagName:Sd.tagName,d:Sd.d});let Cd=ZE({tagName:"g",transform:"translate(100,100)"});this._knobOuter=ZE({tagName:"circle",class:"cesium-animation-knobOuter",cx:0,cy:0,r:71});let _d=ZE({tagName:"circle",class:"cesium-animation-knobInner",cx:0,cy:0,r:61});this._knobDate=uUt(0,-24,""),this._knobTime=uUt(0,-7,""),this._knobStatus=uUt(0,-41,"");let el=ZE({tagName:"circle",class:"cesium-animation-blank",cx:0,cy:0,r:61}),Xl=document.createElementNS(wr,"g");Xl.setAttribute("class","cesium-animation-shuttleRingG"),b.appendChild(qV),dd.appendChild(Xl),dd.appendChild(Cd),dd.appendChild(Td),Xl.appendChild(Ed),Xl.appendChild(Xd),Xl.appendChild(this._shuttleRingPointer),Cd.appendChild(this._knobOuter),Cd.appendChild(_d),Cd.appendChild(this._knobDate),Cd.appendChild(this._knobTime),Cd.appendChild(this._knobStatus),Cd.appendChild(el),$V.appendChild(dd),b.appendChild($V);let Il=this;function r(b){qgd(Il,b)}this._mouseCallback=r,Ed.addEventListener("mousedown",r,!0),Ed.addEventListener("touchstart",r,!0),Xd.addEventListener("mousedown",r,!0),Xd.addEventListener("touchstart",r,!0),FV.addEventListener("mousemove",r,!0),FV.addEventListener("touchmove",r,!0),FV.addEventListener("mouseup",r,!0),FV.addEventListener("touchend",r,!0),FV.addEventListener("touchcancel",r,!0),this._shuttleRingPointer.addEventListener("mousedown",r,!0),this._shuttleRingPointer.addEventListener("touchstart",r,!0),this._knobOuter.addEventListener("mousedown",r,!0),this._knobOuter.addEventListener("touchstart",r,!0);let Hl,$l=this._knobTime.childNodes[0],tR=this._knobDate.childNodes[0],ER=this._knobStatus.childNodes[0];this._subscriptions=[rM(dV.pauseViewModel,"toggled",(function(b){Hl!==b&&(Hl=b,Hl?Il._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPausePointer"):Il._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPointer"))})),rM(dV,"shuttleRingAngle",(function(b){Pgd(Il._shuttleRingPointer,Il._knobOuter,b)})),rM(dV,"dateLabel",(function(b){tR.textContent!==b&&(tR.textContent=b)})),rM(dV,"timeLabel",(function(b){$l.textContent!==b&&($l.textContent=b)})),rM(dV,"multiplierLabel",(function(b){ER.textContent!==b&&(ER.textContent=b)}))],this.applyThemeChanges(),this.resize()}iA.prototype.destroy=function(){this.svgElement.removeEventListener("click",this._clickFunction,!0);let b=this._subscriptions;for(let dV=0,FV=b.length;dV0?(FV=Math.log(dV[dV.length-1]),EV=(FV-0)/($V-qV),Math.exp(0+EV*(b-qV))):(FV=Math.log(-dV[0]),EV=(FV-0)/($V-qV),-Math.exp(0+EV*(Math.abs(b)-qV)))}function dyd(b,dV,FV){if(FV.clockStep===yT.SYSTEM_CLOCK)return wp;if(Math.abs(b)<=1)return b*wp;let EV=dV[dV.length-1];b>EV?b=EV:b<-EV&&(b=-EV);let qV,$V,dd=wp,Td=aw;return b>0?(qV=Math.log(EV),$V=(qV-0)/(Td-dd),(Math.log(b)-0)/$V+dd):(qV=Math.log(-dV[0]),$V=(qV-0)/(Td-dd),-((Math.log(Math.abs(b))-0)/$V+dd))}function JF(b){let dV=this;this._clockViewModel=b,this._allShuttleRingTicks=[],this._dateFormatter=JF.defaultDateFormatter,this._timeFormatter=JF.defaultTimeFormatter,this.shuttleRingDragging=!1,this.snapToTicks=!1,zt.track(this,["_allShuttleRingTicks","_dateFormatter","_timeFormatter","shuttleRingDragging","snapToTicks"]),this._sortedFilteredPositiveTicks=[],this.setShuttleRingTicks(JF.defaultTicks),this.timeLabel=void 0,zt.defineProperty(this,"timeLabel",(function(){return dV._timeFormatter(dV._clockViewModel.currentTime,dV)})),this.dateLabel=void 0,zt.defineProperty(this,"dateLabel",(function(){return dV._dateFormatter(dV._clockViewModel.currentTime,dV)})),this.multiplierLabel=void 0,zt.defineProperty(this,"multiplierLabel",(function(){let b=dV._clockViewModel;if(b.clockStep===yT.SYSTEM_CLOCK)return"Today";let FV=b.multiplier;return FV%1==0?`${FV.toFixed(0)}x`:`${FV.toFixed(3).replace(/0{0,3}$/,"")}x`})),this.shuttleRingAngle=void 0,zt.defineProperty(this,"shuttleRingAngle",{get:function(){return dyd(b.multiplier,dV._allShuttleRingTicks,b)},set:function(b){b=Math.max(Math.min(b,aw),-aw);let FV=dV._allShuttleRingTicks,EV=dV._clockViewModel;if(EV.clockStep=yT.SYSTEM_CLOCK_MULTIPLIER,Math.abs(b)===aw)return void(EV.multiplier=b>0?FV[FV.length-1]:FV[0]);let qV=tyd(b,FV);if(dV.snapToTicks)qV=FV[LUt(qV,FV)];else if(0!==qV){let b=Math.abs(qV);if(b>100){let dV=b.toFixed(0).length-2,FV=Math.pow(10,dV);qV=Math.round(qV/FV)*FV|0}else b>wp?qV=Math.round(qV):b>1?qV=+qV.toFixed(1):b>0&&(qV=+qV.toFixed(2))}EV.multiplier=qV}}),this._canAnimate=void 0,zt.defineProperty(this,"_canAnimate",(function(){let b=dV._clockViewModel,FV=b.clockRange;if(dV.shuttleRingDragging||FV===BU.UNBOUNDED)return!0;let EV=b.multiplier,qV=b.currentTime,$V=b.startTime,dd=!1;if(FV===BU.LOOP_STOP)dd=Rt.greaterThan(qV,$V)||qV.equals($V)&&EV>0;else{let dV=b.stopTime;dd=Rt.greaterThan(qV,$V)&&Rt.lessThan(qV,dV)||qV.equals($V)&&EV>0||qV.equals(dV)&&EV<0}return dd||(b.shouldAnimate=!1),dd})),this._isSystemTimeAvailable=void 0,zt.defineProperty(this,"_isSystemTimeAvailable",(function(){let b=dV._clockViewModel;if(b.clockRange===BU.UNBOUNDED)return!0;let FV=b.systemTime;return Rt.greaterThanOrEquals(FV,b.startTime)&&Rt.lessThanOrEquals(FV,b.stopTime)})),this._isAnimating=void 0,zt.defineProperty(this,"_isAnimating",(function(){return dV._clockViewModel.shouldAnimate&&(dV._canAnimate||dV.shuttleRingDragging)}));let FV=Wl((function(){let b=dV._clockViewModel;b.shouldAnimate?b.shouldAnimate=!1:dV._canAnimate&&(b.shouldAnimate=!0)}));this._pauseViewModel=new Br(FV,{toggled:zt.computed((function(){return!dV._isAnimating})),tooltip:"Pause"});let EV=Wl((function(){let b=dV._clockViewModel,FV=b.multiplier;FV>0&&(b.multiplier=-FV),b.shouldAnimate=!0}));this._playReverseViewModel=new Br(EV,{toggled:zt.computed((function(){return dV._isAnimating&&b.multiplier<0})),tooltip:"Play Reverse"});let qV=Wl((function(){let b=dV._clockViewModel,FV=b.multiplier;FV<0&&(b.multiplier=-FV),b.shouldAnimate=!0}));this._playForwardViewModel=new Br(qV,{toggled:zt.computed((function(){return dV._isAnimating&&b.multiplier>0&&b.clockStep!==yT.SYSTEM_CLOCK})),tooltip:"Play Forward"});let $V=Wl((function(){dV._clockViewModel.clockStep=yT.SYSTEM_CLOCK}),zt.getObservable(this,"_isSystemTimeAvailable"));this._playRealtimeViewModel=new Br($V,{toggled:zt.computed((function(){return b.clockStep===yT.SYSTEM_CLOCK})),tooltip:zt.computed((function(){return dV._isSystemTimeAvailable?"Today (real-time)":"Current time not in range"}))}),this._slower=Wl((function(){let b=dV._clockViewModel,FV=dV._allShuttleRingTicks,EV=LUt(b.multiplier,FV)-1;EV>=0&&(b.multiplier=FV[EV])})),this._faster=Wl((function(){let b=dV._clockViewModel,FV=dV._allShuttleRingTicks,EV=LUt(b.multiplier,FV)+1;EV=0;--dV)EV=$V[dV],0!==EV&&dd.push(-EV);Array.prototype.push.apply(dd,$V),this._allShuttleRingTicks=dd},Object.defineProperties(JF.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(b){this._dateFormatter=b}},timeFormatter:{get:function(){return this._timeFormatter},set:function(b){this._timeFormatter=b}}}),JF._maxShuttleRingAngle=aw,JF._realtimeShuttleRingAngle=wp;var l_=JF;function eyd(b){return function(dV){let FV=b._scene.pick(dV.position);n(FV)&&FV.primitive instanceof sM&&(b.tileset=FV.primitive),b.pickActive=!1}}function axt(b,dV){dV?b._eventHandler.setInputAction((function(dV){let FV=b._scene.pick(dV.endPosition);n(FV)&&FV.primitive instanceof sM&&(b.tileset=FV.primitive)}),El.MOUSE_MOVE):(b._eventHandler.removeInputAction(El.MOUSE_MOVE),b.picking=b.picking)}W(A(),1),W(A(),1);var lyd={maximumFractionDigits:3};function ux(b){let dV=b/1048576;return dV<1?dV.toLocaleString(void 0,lyd):Math.round(dV).toLocaleString()}function xx(b,dV){if(!n(b))return"";let FV=dV?b._statisticsPerPass[iR.PICK]:b._statisticsPerPass[iR.RENDER],EV='
    ';return EV+=`
  • Visited: ${FV.visited.toLocaleString()}
  • Selected: ${FV.selected.toLocaleString()}
  • Commands: ${FV.numberOfCommands.toLocaleString()}
  • `,EV+="
",dV||(EV+='
    ',EV+=`
  • Requests: ${FV.numberOfPendingRequests.toLocaleString()}
  • Attempted: ${FV.numberOfAttemptedRequests.toLocaleString()}
  • Processing: ${FV.numberOfTilesProcessing.toLocaleString()}
  • Content Ready: ${FV.numberOfTilesWithContentReady.toLocaleString()}
  • Total: ${FV.numberOfTilesTotal.toLocaleString()}
  • `,EV+="
",EV+='
    ',EV+=`
  • Features Selected: ${FV.numberOfFeaturesSelected.toLocaleString()}
  • Features Loaded: ${FV.numberOfFeaturesLoaded.toLocaleString()}
  • Points Selected: ${FV.numberOfPointsSelected.toLocaleString()}
  • Points Loaded: ${FV.numberOfPointsLoaded.toLocaleString()}
  • Triangles Selected: ${FV.numberOfTrianglesSelected.toLocaleString()}
  • `,EV+="
",EV+='
    ',EV+=`
  • Tiles styled: ${FV.numberOfTilesStyled.toLocaleString()}
  • Features styled: ${FV.numberOfFeaturesStyled.toLocaleString()}
  • `,EV+="
",EV+='
    ',EV+=`
  • Children Union Culled: ${FV.numberOfTilesCulledWithChildrenUnion.toLocaleString()}
  • `,EV+="
",EV+='
    ',EV+=`
  • Geometry Memory (MB): ${ux(FV.geometryByteLength)}
  • Texture Memory (MB): ${ux(FV.texturesByteLength)}
  • Batch Table Memory (MB): ${ux(FV.batchTableByteLength)}
  • `,EV+="
"),EV}function Mxt(){let b=VT.statistics;return`\n
    \n
  • Geometry Memory (MB): ${ux(b.geometryByteLength)}
  • \n
  • Texture Memory (MB): ${ux(b.texturesByteLength)}
  • \n
\n `}var Vyd=[{text:"Highlight",value:B0.HIGHLIGHT},{text:"Replace",value:B0.REPLACE},{text:"Mix",value:B0.MIX}],Uxt=new K(1,1,0,.4),Tyd=new K,V_=new K;function VM(b,dV){let FV=this,EV=b.canvas;this._eventHandler=new GF(EV),this._scene=b,this._performanceContainer=dV,this._canvas=EV,this._performanceDisplay=new np({container:dV}),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,zt.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=zt.observable({}),this.properties=[],zt.defineProperty(this,"properties",(function(){let b=[],dV=FV._properties();for(let FV in dV)dV.hasOwnProperty(FV)&&b.push(FV);return b}));let qV=zt.observable();zt.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return qV()},set:function(b){qV(b),n(FV._tileset)&&(FV._tileset.dynamicScreenSpaceError=b)}}),this.dynamicScreenSpaceError=!1;let $V=zt.observable();zt.defineProperty(this,"colorBlendMode",{get:function(){return $V()},set:function(b){$V(b),n(FV._tileset)&&(FV._tileset.colorBlendMode=b,FV._scene.requestRender())}}),this.colorBlendMode=B0.HIGHLIGHT;let dd=zt.observable(),Td=zt.observable();zt.defineProperty(this,"picking",{get:function(){return Td()},set:function(dV){Td(dV),dV?FV._eventHandler.setInputAction((function(dV){let EV=b.pick(dV.endPosition);if(EV instanceof Ia?(FV.feature=EV,FV.tile=EV.content.tile):n(EV)&&n(EV.content)?(FV.feature=void 0,FV.tile=EV.content.tile):(FV.feature=void 0,FV.tile=void 0),n(FV._tileset)){if(dd&&n(EV)&&n(EV.content)){let qV;b.pickPositionSupported&&(qV=b.pickPosition(dV.endPosition),n(qV)&&(FV._tileset.debugPickPosition=qV)),FV._tileset.debugPickedTile=EV.content.tile}else FV._tileset.debugPickedTile=void 0;FV._scene.requestRender()}}),El.MOUSE_MOVE):(FV.feature=void 0,FV.tile=void 0,FV._eventHandler.removeInputAction(El.MOUSE_MOVE))}}),this.picking=!0;let Ed=zt.observable();zt.defineProperty(this,"colorize",{get:function(){return Ed()},set:function(b){Ed(b),n(FV._tileset)&&(FV._tileset.debugColorizeTiles=b,FV._scene.requestRender())}}),this.colorize=!1;let kd=zt.observable();zt.defineProperty(this,"wireframe",{get:function(){return kd()},set:function(b){kd(b),n(FV._tileset)&&(FV._tileset.debugWireframe=b,FV._scene.requestRender())}}),this.wireframe=!1;let Sd=zt.observable();zt.defineProperty(this,"showBoundingVolumes",{get:function(){return Sd()},set:function(b){Sd(b),n(FV._tileset)&&(FV._tileset.debugShowBoundingVolume=b,FV._scene.requestRender())}}),this.showBoundingVolumes=!1;let Xd=zt.observable();zt.defineProperty(this,"showContentBoundingVolumes",{get:function(){return Xd()},set:function(b){Xd(b),n(FV._tileset)&&(FV._tileset.debugShowContentBoundingVolume=b,FV._scene.requestRender())}}),this.showContentBoundingVolumes=!1;let Cd=zt.observable();zt.defineProperty(this,"showRequestVolumes",{get:function(){return Cd()},set:function(b){Cd(b),n(FV._tileset)&&(FV._tileset.debugShowViewerRequestVolume=b,FV._scene.requestRender())}}),this.showRequestVolumes=!1;let _d=zt.observable();zt.defineProperty(this,"freezeFrame",{get:function(){return _d()},set:function(b){_d(b),n(FV._tileset)&&(FV._tileset.debugFreezeFrame=b,FV._scene.debugShowFrustumPlanes=b,FV._scene.requestRender())}}),this.freezeFrame=!1,zt.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return dd()},set:function(b){dd(b),n(FV._tileset)&&(FV._tileset.debugPickedTileLabelOnly=b,FV._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;let el=zt.observable();zt.defineProperty(this,"showGeometricError",{get:function(){return el()},set:function(b){el(b),n(FV._tileset)&&(FV._tileset.debugShowGeometricError=b,FV._scene.requestRender())}}),this.showGeometricError=!1;let Xl=zt.observable();zt.defineProperty(this,"showRenderingStatistics",{get:function(){return Xl()},set:function(b){Xl(b),n(FV._tileset)&&(FV._tileset.debugShowRenderingStatistics=b,FV._scene.requestRender())}}),this.showRenderingStatistics=!1;let Il=zt.observable();zt.defineProperty(this,"showMemoryUsage",{get:function(){return Il()},set:function(b){Il(b),n(FV._tileset)&&(FV._tileset.debugShowMemoryUsage=b,FV._scene.requestRender())}}),this.showMemoryUsage=!1;let Hl=zt.observable();zt.defineProperty(this,"showUrl",{get:function(){return Hl()},set:function(b){Hl(b),n(FV._tileset)&&(FV._tileset.debugShowUrl=b,FV._scene.requestRender())}}),this.showUrl=!1;let $l=zt.observable();zt.defineProperty(this,"maximumScreenSpaceError",{get:function(){return $l()},set:function(b){b=Number(b),isNaN(b)||($l(b),n(FV._tileset)&&(FV._tileset.maximumScreenSpaceError=b))}}),this.maximumScreenSpaceError=16;let tR=zt.observable();zt.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return tR()},set:function(b){b=Number(b),isNaN(b)||(tR(b),n(FV._tileset)&&(FV._tileset.dynamicScreenSpaceErrorDensity=b))}}),this.dynamicScreenSpaceErrorDensity=2e-4,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,zt.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(tR(),1/6)},set:function(b){let dV=Math.pow(b,6);tR(dV),n(FV._tileset)&&(FV._tileset.dynamicScreenSpaceErrorDensity=dV)}});let ER=zt.observable();zt.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return ER()},set:function(b){b=Number(b),isNaN(b)||(ER(b),n(FV._tileset)&&(FV._tileset.dynamicScreenSpaceErrorFactor=b))}}),this.dynamicScreenSpaceErrorFactor=24;let sR=eyd(this),GR=zt.observable();zt.defineProperty(this,"pickActive",{get:function(){return GR()},set:function(b){GR(b),b?FV._eventHandler.setInputAction(sR,El.LEFT_CLICK):FV._eventHandler.removeInputAction(El.LEFT_CLICK)}});let uR=zt.observable();zt.defineProperty(this,"pointCloudShading",{get:function(){return uR()},set:function(b){uR(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.attenuation=b)}}),this.pointCloudShading=!1;let OR=zt.observable();zt.defineProperty(this,"geometricErrorScale",{get:function(){return OR()},set:function(b){b=Number(b),isNaN(b)||(OR(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.geometricErrorScale=b))}}),this.geometricErrorScale=1;let AU=zt.observable();zt.defineProperty(this,"maximumAttenuation",{get:function(){return AU()},set:function(b){b=Number(b),isNaN(b)||(AU(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.maximumAttenuation=0===b?void 0:b))}}),this.maximumAttenuation=0;let mU=zt.observable();zt.defineProperty(this,"baseResolution",{get:function(){return mU()},set:function(b){b=Number(b),isNaN(b)||(mU(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.baseResolution=0===b?void 0:b))}}),this.baseResolution=0;let wU=zt.observable();zt.defineProperty(this,"eyeDomeLighting",{get:function(){return wU()},set:function(b){wU(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.eyeDomeLighting=b)}}),this.eyeDomeLighting=!1;let oU=zt.observable();zt.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return oU()},set:function(b){b=Number(b),isNaN(b)||(oU(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.eyeDomeLightingStrength=b))}}),this.eyeDomeLightingStrength=1;let XU=zt.observable();zt.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return XU()},set:function(b){b=Number(b),isNaN(b)||(XU(b),n(FV._tileset)&&(FV._tileset.pointCloudShading.eyeDomeLightingRadius=b))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;let LU=zt.observable();zt.defineProperty(this,"skipLevelOfDetail",{get:function(){return LU()},set:function(b){LU(b),n(FV._tileset)&&(FV._tileset.skipLevelOfDetail=b)}}),this.skipLevelOfDetail=!0;let uU=zt.observable();zt.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return uU()},set:function(b){b=Number(b),isNaN(b)||(uU(b),n(FV._tileset)&&(FV._tileset.skipScreenSpaceErrorFactor=b))}}),this.skipScreenSpaceErrorFactor=16;let PU=zt.observable();zt.defineProperty(this,"baseScreenSpaceError",{get:function(){return PU()},set:function(b){b=Number(b),isNaN(b)||(PU(b),n(FV._tileset)&&(FV._tileset.baseScreenSpaceError=b))}}),this.baseScreenSpaceError=1024;let _U=zt.observable();zt.defineProperty(this,"skipLevels",{get:function(){return _U()},set:function(b){b=Number(b),isNaN(b)||(_U(b),n(FV._tileset)&&(FV._tileset.skipLevels=b))}}),this.skipLevels=1;let dT=zt.observable();zt.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return dT()},set:function(b){dT(b),n(FV._tileset)&&(FV._tileset.immediatelyLoadDesiredLevelOfDetail=b)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;let UT=zt.observable();zt.defineProperty(this,"loadSiblings",{get:function(){return UT()},set:function(b){UT(b),n(FV._tileset)&&(FV._tileset.loadSiblings=b)}}),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=b.postRender.addEventListener((function(){FV._update()})),n(this._tileset)||axt(this,!0)}function JUt(b){if(!n(b))return!1;if(b.featuresLength>0)return!0;let dV=b.innerContents;if(n(dV)){let b=dV.length;for(let FV=0;FV=0;dV--){let FV=Math.pow(2,dV);qV>=FV&&(b.push(dV+1),qV-=FV)}EV=b.reverse().join(" and ")}dV+=`
    ${FV[b]} in frustum ${EV}`}dV+=`
Total: ${b.totalCommands}`}return dV}function IUt(b,dV,FV){let EV=Math.min(FV,dV);return EV=Math.max(EV,b),EV}Object.defineProperties(R_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),R_.prototype.isDestroyed=function(){return!1},R_.prototype.destroy=function(){return zt.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),Dt(this)},W(A(),1),W(A(),1);var Uyd=new Ul,ayd=new i$1;function Lx(b,dV){let FV=this,EV=b.canvas,qV=new GF(EV);this._eventHandler=qV,this._scene=b,this._canvas=EV,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=dV;let $V,dd=this._scene.globe;function U(b){let dV=FV._scene.pick({x:b.position.x,y:b.position.y});n(dV)&&(FV.primitive=n(dV.collection)?dV.collection:dV.primitive),FV._scene.requestRender(),FV.pickPrimitiveActive=!1}function a(b){let dV,EV=dd.ellipsoid,qV=FV._scene.camera.getPickRay(b.position,Uyd),$V=dd.pick(qV,FV._scene,ayd);if(n($V)){let b=EV.cartesianToCartographic($V),FV=dd._surface.tileProvider._tilesToRenderByTextureCount;for(let EV=0;!dV&&EVSW corner: ${b.rectangle.west}, ${b.rectangle.south}`,this.tileText+=`
NE corner: ${b.rectangle.east}, ${b.rectangle.north}`;let dV=b.data;n(dV)&&n(dV.tileBoundingRegion)?this.tileText+=`
Min: ${dV.tileBoundingRegion.minimumHeight} Max: ${dV.tileBoundingRegion.maximumHeight}`:this.tileText+="
(Tile is not loaded)"}this._tile=b,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}}),Lx.prototype._update=function(){this.frustums&&(this.frustumStatisticText=Ryd(this._scene.debugFrustumStatistics));let b=this._scene.numberOfFrustums;this._numberOfFrustums=b,this.depthFrustum=IUt(1,b,this.depthFrustum),this.depthFrustumText=`${this.depthFrustum} of ${b}`,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText=`Cached shaders: ${this._scene.context.shaderCache.numberOfShaders}`},Lx.prototype.isDestroyed=function(){return!1},Lx.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(),Dt(this)};var a_=Lx;function M_(b,dV){b=wl(b);let FV=document.createElement("div"),EV=new a_(dV,FV);this._viewModel=EV,this._container=b;let qV=document.createElement("div");this._element=qV;let $V=document.createElement("div");$V.textContent="Cesium Inspector",$V.className="cesium-cesiumInspector-button",$V.setAttribute("data-bind","click: toggleDropDown"),qV.appendChild($V),qV.className="cesium-cesiumInspector",qV.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),b.appendChild(this._element);let dd=document.createElement("div");dd.className="cesium-cesiumInspector-dropDown",qV.appendChild(dd);let Td=nn.createSection,Ed=nn.createCheckbox,kd=Td(dd,"General","generalVisible","toggleGeneral"),Sd=Ed("Show Frustums","frustums"),Xd=document.createElement("div");Xd.className="cesium-cesiumInspector-frustumStatistics",Xd.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),Sd.appendChild(Xd),kd.appendChild(Sd),kd.appendChild(Ed("Show Frustum Planes","frustumPlanes")),kd.appendChild(Ed("Performance Display","performance")),FV.className="cesium-cesiumInspector-performanceDisplay",kd.appendChild(FV);let Cd=document.createElement("div");Cd.className="cesium-cesiumInspector-shaderCache",Cd.setAttribute("data-bind","html: shaderCacheText"),kd.appendChild(Cd);let _d=document.createElement("div");kd.appendChild(_d);let el=document.createElement("span");el.setAttribute("data-bind",'html: "     Frustum:"'),_d.appendChild(el);let Xl=document.createElement("span");Xl.setAttribute("data-bind","text: depthFrustumText"),_d.appendChild(Xl);let Il=document.createElement("input");Il.type="button",Il.value="-",Il.className="cesium-cesiumInspector-pickButton",Il.setAttribute("data-bind","click: decrementDepthFrustum"),_d.appendChild(Il);let Hl=document.createElement("input");Hl.type="button",Hl.value="+",Hl.className="cesium-cesiumInspector-pickButton",Hl.setAttribute("data-bind","click: incrementDepthFrustum"),_d.appendChild(Hl);let $l=Td(dd,"Primitives","primitivesVisible","togglePrimitives"),tR=document.createElement("div");tR.className="cesium-cesiumInspector-pickSection",$l.appendChild(tR);let ER=document.createElement("input");ER.type="button",ER.value="Pick a primitive",ER.className="cesium-cesiumInspector-pickButton",ER.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let sR=document.createElement("div");sR.className="cesium-cesiumInspector-center",sR.appendChild(ER),tR.appendChild(sR),tR.appendChild(Ed("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),tR.appendChild(Ed("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=Ed("Show only selected","filterPrimitive","hasPickedPrimitive"),tR.appendChild(this._primitiveOnly);let GR=Td(dd,"Terrain","terrainVisible","toggleTerrain"),uR=document.createElement("div");uR.className="cesium-cesiumInspector-pickSection",GR.appendChild(uR);let OR=document.createElement("input");OR.type="button",OR.value="Pick a tile",OR.className="cesium-cesiumInspector-pickButton",OR.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),sR=document.createElement("div"),sR.appendChild(OR),sR.className="cesium-cesiumInspector-center",uR.appendChild(sR);let AU=document.createElement("div");uR.appendChild(AU);let mU=document.createElement("input");mU.type="button",mU.value="Parent",mU.className="cesium-cesiumInspector-pickButton",mU.setAttribute("data-bind","click: selectParent");let wU=document.createElement("input");wU.type="button",wU.value="NW",wU.className="cesium-cesiumInspector-pickButton",wU.setAttribute("data-bind","click: selectNW");let oU=document.createElement("input");oU.type="button",oU.value="NE",oU.className="cesium-cesiumInspector-pickButton",oU.setAttribute("data-bind","click: selectNE");let XU=document.createElement("input");XU.type="button",XU.value="SW",XU.className="cesium-cesiumInspector-pickButton",XU.setAttribute("data-bind","click: selectSW");let LU=document.createElement("input");LU.type="button",LU.value="SE",LU.className="cesium-cesiumInspector-pickButton",LU.setAttribute("data-bind","click: selectSE");let uU=document.createElement("div");uU.className="cesium-cesiumInspector-tileText",AU.className="cesium-cesiumInspector-frustumStatistics",AU.appendChild(uU),AU.setAttribute("data-bind","visible: hasPickedTile"),uU.setAttribute("data-bind","html: tileText");let PU=document.createElement("div");PU.className="cesium-cesiumInspector-relativeText",PU.textContent="Select relative:",AU.appendChild(PU);let _U=document.createElement("table"),dT=document.createElement("tr"),UT=document.createElement("tr"),FT=document.createElement("td");FT.appendChild(mU);let sT=document.createElement("td");sT.appendChild(wU);let DT=document.createElement("td");DT.appendChild(oU),dT.appendChild(FT),dT.appendChild(sT),dT.appendChild(DT);let XT=document.createElement("td"),JT=document.createElement("td");JT.appendChild(XU);let LT=document.createElement("td");LT.appendChild(LU),UT.appendChild(XT),UT.appendChild(JT),UT.appendChild(LT),_U.appendChild(dT),_U.appendChild(UT),AU.appendChild(_U),uR.appendChild(Ed("Show bounding volume","tileBoundingSphere","hasPickedTile")),uR.appendChild(Ed("Show only selected","filterTile","hasPickedTile")),GR.appendChild(Ed("Wireframe","wireframe")),GR.appendChild(Ed("Suspend LOD update","suspendUpdates")),GR.appendChild(Ed("Show tile coordinates","tileCoordinates")),zt.applyBindings(EV,this._element)}function Ai(b,dV){return b??dV}function UV(b){return null!=b}function ml(b){let dV;this.name="DeveloperError",this.message=b;try{throw new Error}catch(FV){dV=FV.stack}this.stack=dV}Object.defineProperties(M_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),M_.prototype.isDestroyed=function(){return!1},M_.prototype.destroy=function(){return zt.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),Dt(this)},W(A(),1),Promise.resolve(),Ai.EMPTY_OBJECT=Object.freeze({}),UV(Object.create)&&(ml.prototype=Object.create(Error.prototype),ml.prototype.constructor=ml),ml.prototype.toString=function(){let b=`${this.name}: ${this.message}`;return UV(this.stack)&&(b+=`\n${this.stack.toString()}`),b},ml.throwInstantiationError=function(){throw new ml("This function defines an interface and should not be called directly.")};var Fa={};function Syd(b){return`${b} is required, actual value was undefined`}function Zw(b,dV,FV){return`Expected ${FV} to be typeof ${dV}, actual typeof was ${b}`}Fa.typeOf={},Fa.defined=function(b,dV){if(!UV(dV))throw new ml(Syd(b))},Fa.typeOf.func=function(b,dV){if("function"!=typeof dV)throw new ml(Zw(typeof dV,"function",b))},Fa.typeOf.string=function(b,dV){if("string"!=typeof dV)throw new ml(Zw(typeof dV,"string",b))},Fa.typeOf.number=function(b,dV){if("number"!=typeof dV)throw new ml(Zw(typeof dV,"number",b))},Fa.typeOf.number.lessThan=function(b,dV,FV){if(Fa.typeOf.number(b,dV),dV>=FV)throw new ml(`Expected ${b} to be less than ${FV}, actual value was ${dV}`)},Fa.typeOf.number.lessThanOrEquals=function(b,dV,FV){if(Fa.typeOf.number(b,dV),dV>FV)throw new ml(`Expected ${b} to be less than or equal to ${FV}, actual value was ${dV}`)},Fa.typeOf.number.greaterThan=function(b,dV,FV){if(Fa.typeOf.number(b,dV),dV<=FV)throw new ml(`Expected ${b} to be greater than ${FV}, actual value was ${dV}`)},Fa.typeOf.number.greaterThanOrEquals=function(b,dV,FV){if(Fa.typeOf.number(b,dV),dV0))return EV;dd=EV-1}return~(dd+1)}function jUt(b){if(null===b||isNaN(b))throw new ml("year is required and must be a number.");return b%4==0&&b%100!=0||b%400==0}var Zxt=[31,28,31,30,31,30,31,31,30,31,30,31];function KUt(b,dV,FV,EV,qV,$V,dd,Td){b=Ai(b,1),dV=Ai(dV,1),FV=Ai(FV,1),EV=Ai(EV,0),qV=Ai(qV,0),$V=Ai($V,0),dd=Ai(dd,0),Td=Ai(Td,!1),TM.typeOf.number.greaterThanOrEquals("Year",b,1),TM.typeOf.number.lessThanOrEquals("Year",b,9999),TM.typeOf.number.greaterThanOrEquals("Month",dV,1),TM.typeOf.number.lessThanOrEquals("Month",dV,12),TM.typeOf.number.greaterThanOrEquals("Day",FV,1),TM.typeOf.number.lessThanOrEquals("Day",FV,31),TM.typeOf.number.greaterThanOrEquals("Hour",EV,0),TM.typeOf.number.lessThanOrEquals("Hour",EV,23),TM.typeOf.number.greaterThanOrEquals("Minute",qV,0),TM.typeOf.number.lessThanOrEquals("Minute",qV,59),TM.typeOf.bool("IsLeapSecond",Td),TM.typeOf.number.greaterThanOrEquals("Second",$V,0),TM.typeOf.number.lessThanOrEquals("Second",$V,Td?60:59),TM.typeOf.number.greaterThanOrEquals("Millisecond",dd,0),TM.typeOf.number.lessThan("Millisecond",dd,1e3),function(){let EV=2===dV&&jUt(b)?Zxt[dV-1]+1:Zxt[dV-1];if(FV>EV)throw new ml("Month and Day represents invalid date")}(),this.year=b,this.month=dV,this.day=FV,this.hour=EV,this.minute=qV,this.second=$V,this.millisecond=dd,this.isLeapSecond=Td}function _T(b,dV){this.julianDate=b,this.offset=dV}var kyd={SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:2400000.5},hM=Object.freeze(kyd),Byd={UTC:0,TAI:1},tT=Object.freeze(Byd),rxt=new KUt,i_=[31,28,31,30,31,30,31,31,30,31,30,31],F_=29;function vUt(b,dV){return te.compare(b.julianDate,dV.julianDate)}var Fw=new _T;function o_(b){Fw.julianDate=b;let dV=te.leapSeconds,FV=HUt(dV,Fw,vUt);FV<0&&(FV=~FV),FV>=dV.length&&(FV=dV.length-1);let EV=dV[FV].offset;FV>0&&te.secondsDifference(dV[FV].julianDate,b)>EV&&(FV--,EV=dV[FV].offset),te.addSeconds(b,EV,b)}function Ext(b,dV){Fw.julianDate=b;let FV=te.leapSeconds,EV=HUt(FV,Fw,vUt);if(EV<0&&(EV=~EV),0===EV)return te.addSeconds(b,-FV[0].offset,dV);if(EV>=FV.length)return te.addSeconds(b,-FV[EV-1].offset,dV);let qV=te.secondsDifference(FV[EV].julianDate,b);return 0===qV?te.addSeconds(b,-FV[EV].offset,dV):qV<=1?void 0:te.addSeconds(b,-FV[--EV].offset,dV)}function bp(b,dV,FV){let EV=dV/hM.SECONDS_PER_DAY|0;return b+=EV,(dV-=hM.SECONDS_PER_DAY*EV)<0&&(b--,dV+=hM.SECONDS_PER_DAY),FV.dayNumber=b,FV.secondsOfDay=dV,FV}function PUt(b,dV,FV,EV,qV,$V,dd){let Td=(dV-14)/12|0,Ed=b+4800+Td,kd=(1461*Ed/4|0)+(367*(dV-2-12*Td)/12|0)-(3*((Ed+100)/100|0)/4|0)+FV-32075;(EV-=12)<0&&(EV+=24);let Sd=$V+(EV*hM.SECONDS_PER_HOUR+qV*hM.SECONDS_PER_MINUTE+dd*hM.SECONDS_PER_MILLISECOND);return Sd>=43200&&(kd-=1),[kd,Sd]}var wyd=/^(\d{4})$/,byd=/^(\d{4})-(\d{2})$/,Gyd=/^(\d{4})-?(\d{3})$/,Cyd=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,Xyd=/^(\d{4})-?(\d{2})-?(\d{2})$/,_Ut=/([Z+\-])?(\d{2})?:?(\d{2})?$/,uyd=/^(\d{2})(\.\d+)?/.source+_Ut.source,xyd=/^(\d{2}):?(\d{2})(\.\d+)?/.source+_Ut.source,Lyd=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+_Ut.source,sE="Invalid ISO 8601 date.";function te(b,dV,FV){this.dayNumber=void 0,this.secondsOfDay=void 0,b=Ai(b,0),dV=Ai(dV,0),FV=Ai(FV,tT.UTC);let EV=0|b;bp(EV,dV+=(b-EV)*hM.SECONDS_PER_DAY,this),FV===tT.UTC&&o_(this)}te.fromGregorianDate=function(b,dV){if(!(b instanceof KUt))throw new ml("date must be a valid GregorianDate.");let FV=PUt(b.year,b.month,b.day,b.hour,b.minute,b.second,b.millisecond);return UV(dV)?(bp(FV[0],FV[1],dV),o_(dV),dV):new te(FV[0],FV[1],tT.UTC)},te.fromDate=function(b,dV){if(!(b instanceof Date)||isNaN(b.getTime()))throw new ml("date must be a valid JavaScript Date.");let FV=PUt(b.getUTCFullYear(),b.getUTCMonth()+1,b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes(),b.getUTCSeconds(),b.getUTCMilliseconds());return UV(dV)?(bp(FV[0],FV[1],dV),o_(dV),dV):new te(FV[0],FV[1],tT.UTC)},te.fromIso8601=function(b,dV){if("string"!=typeof b)throw new ml(sE);let FV,EV,qV,$V,dd,Td=(b=b.replace(",",".")).split("T"),Ed=1,kd=1,Sd=0,Xd=0,Cd=0,_d=0,el=Td[0],Xl=Td[1];if(!UV(el))throw new ml(sE);if(Td=el.match(Xyd),null!==Td){if($V=el.split("-").length-1,$V>0&&2!==$V)throw new ml(sE);FV=+Td[1],Ed=+Td[2],kd=+Td[3]}else if(Td=el.match(byd),null!==Td)FV=+Td[1],Ed=+Td[2];else if(Td=el.match(wyd),null!==Td)FV=+Td[1];else{let b;if(Td=el.match(Gyd),null!==Td){if(FV=+Td[1],b=+Td[2],qV=jUt(FV),b<1||qV&&b>366||!qV&&b>365)throw new ml(sE)}else{if(Td=el.match(Cyd),null===Td)throw new ml(sE);{FV=+Td[1];let dV=+Td[2],EV=+Td[3]||0;if($V=el.split("-").length-1,$V>0&&(!UV(Td[3])&&1!==$V||UV(Td[3])&&2!==$V))throw new ml(sE);b=7*dV+EV-new Date(Date.UTC(FV,0,4)).getUTCDay()-3}}EV=new Date(Date.UTC(FV,0,1)),EV.setUTCDate(b),Ed=EV.getUTCMonth()+1,kd=EV.getUTCDate()}if(qV=jUt(FV),Ed<1||Ed>12||kd<1||(2!==Ed||!qV)&&kd>i_[Ed-1]||qV&&2===Ed&&kd>F_)throw new ml(sE);if(UV(Xl)){if(Td=Xl.match(Lyd),null!==Td){if($V=Xl.split(":").length-1,$V>0&&2!==$V&&3!==$V)throw new ml(sE);Sd=+Td[1],Xd=+Td[2],Cd=+Td[3],_d=1e3*+(Td[4]||0),dd=5}else if(Td=Xl.match(xyd),null!==Td){if($V=Xl.split(":").length-1,$V>2)throw new ml(sE);Sd=+Td[1],Xd=+Td[2],Cd=60*+(Td[3]||0),dd=4}else{if(Td=Xl.match(uyd),null===Td)throw new ml(sE);Sd=+Td[1],Xd=60*+(Td[2]||0),dd=3}if(Xd>=60||Cd>=61||Sd>24||24===Sd&&(Xd>0||Cd>0||_d>0))throw new ml(sE);let b=Td[dd],dV=+Td[dd+1],EV=+(Td[dd+2]||0);switch(b){case"+":Sd-=dV,Xd-=EV;break;case"-":Sd+=dV,Xd+=EV;break;case"Z":break;default:Xd+=new Date(Date.UTC(FV,Ed-1,kd,Sd,Xd)).getTimezoneOffset()}}let Il=60===Cd;for(Il&&Cd--;Xd>=60;)Xd-=60,Sd++;for(;Sd>=24;)Sd-=24,kd++;for(EV=qV&&2===Ed?F_:i_[Ed-1];kd>EV;)kd-=EV,Ed++,Ed>12&&(Ed-=12,FV++),EV=qV&&2===Ed?F_:i_[Ed-1];for(;Xd<0;)Xd+=60,Sd--;for(;Sd<0;)Sd+=24,kd--;for(;kd<1;)Ed--,Ed<1&&(Ed+=12,FV--),EV=qV&&2===Ed?F_:i_[Ed-1],kd+=EV;let Hl=PUt(FV,Ed,kd,Sd,Xd,Cd,_d);return UV(dV)?(bp(Hl[0],Hl[1],dV),o_(dV)):dV=new te(Hl[0],Hl[1],tT.UTC),Il&&te.addSeconds(dV,1,dV),dV},te.now=function(b){return te.fromDate(new Date,b)};var Z_=new te(0,0,tT.TAI);function W_(b,dV){n(dV)||(dV=document.body),dV=wl(dV);let FV=this,EV=zt.observable(VU.fullscreen),qV=zt.observable(VU.enabled),$V=dV.ownerDocument;this.isFullscreen=void 0,zt.defineProperty(this,"isFullscreen",{get:function(){return EV()}}),this.isFullscreenEnabled=void 0,zt.defineProperty(this,"isFullscreenEnabled",{get:function(){return qV()},set:function(b){qV(b&&VU.enabled)}}),this.tooltip=void 0,zt.defineProperty(this,"tooltip",(function(){return this.isFullscreenEnabled?EV()?"Exit full screen":"Full screen":"Full screen unavailable"})),this._command=Wl((function(){VU.fullscreen?VU.exitFullscreen():VU.requestFullscreen(FV._fullscreenElement)}),zt.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=m(wl(b),$V.body),this._callback=function(){EV(VU.fullscreen)},$V.addEventListener(VU.changeEventName,this._callback)}te.toGregorianDate=function(b,dV){if(!UV(b))throw new ml("julianDate is required.");let FV=!1,EV=Ext(b,Z_);UV(EV)||(te.addSeconds(b,-1,Z_),EV=Ext(Z_,Z_),FV=!0);let qV=EV.dayNumber,$V=EV.secondsOfDay;$V>=43200&&(qV+=1);let dd=qV+68569|0,Td=4*dd/146097|0;dd=dd-((146097*Td+3)/4|0)|0;let Ed=4e3*(dd+1)/1461001|0;dd=dd-(1461*Ed/4|0)+31|0;let kd=80*dd/2447|0,Sd=dd-(2447*kd/80|0)|0;dd=kd/11|0;let Xd=kd+2-12*dd|0,Cd=100*(Td-49)+Ed+dd|0,_d=$V/hM.SECONDS_PER_HOUR|0,el=$V-_d*hM.SECONDS_PER_HOUR,Xl=el/hM.SECONDS_PER_MINUTE|0;el-=Xl*hM.SECONDS_PER_MINUTE;let Il=0|el,Hl=(el-Il)/hM.SECONDS_PER_MILLISECOND;return _d+=12,_d>23&&(_d-=24),FV&&(Il+=1),UV(dV)?(dV.year=Cd,dV.month=Xd,dV.day=Sd,dV.hour=_d,dV.minute=Xl,dV.second=Il,dV.millisecond=Hl,dV.isLeapSecond=FV,dV):new KUt(Cd,Xd,Sd,_d,Xl,Il,Hl,FV)},te.toDate=function(b){if(!UV(b))throw new ml("julianDate is required.");let dV=te.toGregorianDate(b,rxt),FV=dV.second;return dV.isLeapSecond&&(FV-=1),new Date(Date.UTC(dV.year,dV.month-1,dV.day,dV.hour,dV.minute,FV,dV.millisecond))},te.toIso8601=function(b,dV){if(!UV(b))throw new ml("julianDate is required.");let FV,EV=te.toGregorianDate(b,rxt),qV=EV.year,$V=EV.month,dd=EV.day,Td=EV.hour,Ed=EV.minute,kd=EV.second,Sd=EV.millisecond;return 1e4===qV&&1===$V&&1===dd&&0===Td&&0===Ed&&0===kd&&0===Sd&&(qV=9999,$V=12,dd=31,Td=24),UV(dV)||0===Sd?UV(dV)&&0!==dV?(FV=(.01*Sd).toFixed(dV).replace(".","").slice(0,dV),`${qV.toString().padStart(4,"0")}-${$V.toString().padStart(2,"0")}-${dd.toString().padStart(2,"0")}T${Td.toString().padStart(2,"0")}:${Ed.toString().padStart(2,"0")}:${kd.toString().padStart(2,"0")}.${FV}Z`):`${qV.toString().padStart(4,"0")}-${$V.toString().padStart(2,"0")}-${dd.toString().padStart(2,"0")}T${Td.toString().padStart(2,"0")}:${Ed.toString().padStart(2,"0")}:${kd.toString().padStart(2,"0")}Z`:(FV=(.01*Sd).toString().replace(".",""),`${qV.toString().padStart(4,"0")}-${$V.toString().padStart(2,"0")}-${dd.toString().padStart(2,"0")}T${Td.toString().padStart(2,"0")}:${Ed.toString().padStart(2,"0")}:${kd.toString().padStart(2,"0")}.${FV}Z`)},te.clone=function(b,dV){if(UV(b))return UV(dV)?(dV.dayNumber=b.dayNumber,dV.secondsOfDay=b.secondsOfDay,dV):new te(b.dayNumber,b.secondsOfDay,tT.TAI)},te.compare=function(b,dV){if(!UV(b))throw new ml("left is required.");if(!UV(dV))throw new ml("right is required.");let FV=b.dayNumber-dV.dayNumber;return 0!==FV?FV:b.secondsOfDay-dV.secondsOfDay},te.equals=function(b,dV){return b===dV||UV(b)&&UV(dV)&&b.dayNumber===dV.dayNumber&&b.secondsOfDay===dV.secondsOfDay},te.equalsEpsilon=function(b,dV,FV){return FV=Ai(FV,0),b===dV||UV(b)&&UV(dV)&&Math.abs(te.secondsDifference(b,dV))<=FV},te.totalDays=function(b){if(!UV(b))throw new ml("julianDate is required.");return b.dayNumber+b.secondsOfDay/hM.SECONDS_PER_DAY},te.secondsDifference=function(b,dV){if(!UV(b))throw new ml("left is required.");if(!UV(dV))throw new ml("right is required.");return(b.dayNumber-dV.dayNumber)*hM.SECONDS_PER_DAY+(b.secondsOfDay-dV.secondsOfDay)},te.daysDifference=function(b,dV){if(!UV(b))throw new ml("left is required.");if(!UV(dV))throw new ml("right is required.");return b.dayNumber-dV.dayNumber+(b.secondsOfDay-dV.secondsOfDay)/hM.SECONDS_PER_DAY},te.computeTaiMinusUtc=function(b){Fw.julianDate=b;let dV=te.leapSeconds,FV=HUt(dV,Fw,vUt);return FV<0&&(FV=~FV,--FV,FV<0&&(FV=0)),dV[FV].offset},te.addSeconds=function(b,dV,FV){if(!UV(b))throw new ml("julianDate is required.");if(!UV(dV))throw new ml("seconds is required.");if(!UV(FV))throw new ml("result is required.");return bp(b.dayNumber,b.secondsOfDay+dV,FV)},te.addMinutes=function(b,dV,FV){if(!UV(b))throw new ml("julianDate is required.");if(!UV(dV))throw new ml("minutes is required.");if(!UV(FV))throw new ml("result is required.");let EV=b.secondsOfDay+dV*hM.SECONDS_PER_MINUTE;return bp(b.dayNumber,EV,FV)},te.addHours=function(b,dV,FV){if(!UV(b))throw new ml("julianDate is required.");if(!UV(dV))throw new ml("hours is required.");if(!UV(FV))throw new ml("result is required.");let EV=b.secondsOfDay+dV*hM.SECONDS_PER_HOUR;return bp(b.dayNumber,EV,FV)},te.addDays=function(b,dV,FV){if(!UV(b))throw new ml("julianDate is required.");if(!UV(dV))throw new ml("days is required.");if(!UV(FV))throw new ml("result is required.");return bp(b.dayNumber+dV,b.secondsOfDay,FV)},te.lessThan=function(b,dV){return te.compare(b,dV)<0},te.lessThanOrEquals=function(b,dV){return te.compare(b,dV)<=0},te.greaterThan=function(b,dV){return te.compare(b,dV)>0},te.greaterThanOrEquals=function(b,dV){return te.compare(b,dV)>=0},te.prototype.clone=function(b){return te.clone(this,b)},te.prototype.equals=function(b){return te.equals(this,b)},te.prototype.equalsEpsilon=function(b,dV){return te.equalsEpsilon(this,b,dV)},te.prototype.toString=function(){return te.toIso8601(this)},te.leapSeconds=[new _T(new te(2441317,43210,tT.TAI),10),new _T(new te(2441499,43211,tT.TAI),11),new _T(new te(2441683,43212,tT.TAI),12),new _T(new te(2442048,43213,tT.TAI),13),new _T(new te(2442413,43214,tT.TAI),14),new _T(new te(2442778,43215,tT.TAI),15),new _T(new te(2443144,43216,tT.TAI),16),new _T(new te(2443509,43217,tT.TAI),17),new _T(new te(2443874,43218,tT.TAI),18),new _T(new te(2444239,43219,tT.TAI),19),new _T(new te(2444786,43220,tT.TAI),20),new _T(new te(2445151,43221,tT.TAI),21),new _T(new te(2445516,43222,tT.TAI),22),new _T(new te(2446247,43223,tT.TAI),23),new _T(new te(2447161,43224,tT.TAI),24),new _T(new te(2447892,43225,tT.TAI),25),new _T(new te(2448257,43226,tT.TAI),26),new _T(new te(2448804,43227,tT.TAI),27),new _T(new te(2449169,43228,tT.TAI),28),new _T(new te(2449534,43229,tT.TAI),29),new _T(new te(2450083,43230,tT.TAI),30),new _T(new te(2450630,43231,tT.TAI),31),new _T(new te(2451179,43232,tT.TAI),32),new _T(new te(2453736,43233,tT.TAI),33),new _T(new te(2454832,43234,tT.TAI),34),new _T(new te(2456109,43235,tT.TAI),35),new _T(new te(2457204,43236,tT.TAI),36),new _T(new te(2457754,43237,tT.TAI),37)],W(A(),1),W(A(),1),Object.defineProperties(W_.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(b){this._fullscreenElement=b}},command:{get:function(){return this._command}}}),W_.prototype.isDestroyed=function(){return!1},W_.prototype.destroy=function(){document.removeEventListener(VU.changeEventName,this._callback),Dt(this)};var A_=W_,gyd="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",yyd="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 m_(b,dV){b=wl(b);let FV=new A_(dV,b);FV._exitFullScreenPath=yyd,FV._enterFullScreenPath=gyd;let EV=document.createElement("button");EV.type="button",EV.className="cesium-button cesium-fullscreenButton",EV.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),b.appendChild(EV),zt.applyBindings(FV,EV),this._container=b,this._viewModel=FV,this._element=EV}Object.defineProperties(m_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),m_.prototype.isDestroyed=function(){return!1},m_.prototype.destroy=function(){return this._viewModel.destroy(),zt.cleanNode(this._element),this._container.removeChild(this._element),Dt(this)};var c_=m_;W(A(),1),W(A(),1);var hxt=1e3;function IF(b){n(b.geocoderServices)?this._geocoderServices=b.geocoderServices:this._geocoderServices=[new eP({scene:b.scene})],this._viewContainer=b.container,this._scene=b.scene,this._flightDuration=b.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._wasGeocodeCancelled=!1,this._previousCredits=[],this._complete=new bt,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=Sxt,this._handleArrowUp=Dxt;let dV=this;this._suggestionsVisible=zt.pureComputed((function(){let b=zt.getObservable(dV,"_suggestions")().length>0,FV=zt.getObservable(dV,"_showSuggestions")();return b&&FV})),this._searchCommand=Wl((function(b){return b=m(b,Wr.SEARCH),dV._focusTextbox=!1,n(dV._selectedSuggestion)?(dV.activateSuggestion(dV._selectedSuggestion),!1):(dV.hideSuggestions(),dV.isSearchInProgress?void vyd(dV):Hyd(dV,dV._geocoderServices,b))})),this.deselectSuggestion=function(){dV._selectedSuggestion=void 0},this.handleKeyDown=function(b,dV){let FV="ArrowDown"===dV.key||"Down"===dV.key||40===dV.keyCode,EV="ArrowUp"===dV.key||"Up"===dV.key||38===dV.keyCode;return(FV||EV)&&dV.preventDefault(),!0},this.handleKeyUp=function(b,FV){let EV="ArrowDown"===FV.key||"Down"===FV.key||40===FV.keyCode,qV="ArrowUp"===FV.key||"Up"===FV.key||38===FV.keyCode,$V="Enter"===FV.key||13===FV.keyCode;return qV?Dxt(dV):EV?Sxt(dV):$V&&dV._searchCommand(),!0},this.activateSuggestion=function(b){dV.hideSuggestions(),dV._searchText=b.displayName;let FV=b.destination;wxt(dV),dV.destinationFound(dV,FV)},this.hideSuggestions=function(){dV._showSuggestions=!1,dV._selectedSuggestion=void 0},this.showSuggestions=function(){dV._showSuggestions=!0},this.handleMouseover=function(b,FV){b!==dV._selectedSuggestion&&(dV._selectedSuggestion=b)},this.keepExpanded=!1,this.autoComplete=m(b.autocomplete,!0),this.destinationFound=m(b.destinationFound,IF.flyToDestination),this._focusTextbox=!1,zt.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let FV=zt.getObservable(this,"_searchText");FV.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=FV.subscribe((function(){IF._updateSearchSuggestions(dV)})),this.isSearchInProgress=void 0,zt.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,zt.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(b){this._searchText=b}}),this.flightDuration=void 0,zt.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(b){this._flightDuration=b}})}function Dxt(b){if(0===b._suggestions.length)return;let dV=b._suggestions.indexOf(b._selectedSuggestion);if(-1===dV||0===dV)return void(b._selectedSuggestion=void 0);let FV=dV-1;b._selectedSuggestion=b._suggestions[FV],IF._adjustSuggestionsScroll(b,FV)}function Sxt(b){if(0===b._suggestions.length)return;let dV=b._suggestions.length,FV=(b._suggestions.indexOf(b._selectedSuggestion)+1)%dV;b._selectedSuggestion=b._suggestions[FV],IF._adjustSuggestionsScroll(b,FV)}function jyd(b,dV){let FV=n(dV)?dV.availability:void 0;return n(FV)?HB(dV,[b]).then((function(dV){return(b=dV[0]).height+=hxt,b})):(b.height+=hxt,Promise.resolve(b))}function Oyd(b,dV){let FV,EV=b._scene,qV=EV.mapProjection.ellipsoid,$V=EV.camera,dd=EV.terrainProvider,Td=dV;return dV instanceof pt?X.equalsEpsilon(dV.south,dV.north,X.EPSILON7)&&X.equalsEpsilon(dV.east,dV.west,X.EPSILON7)?dV=pt.center(dV):FV=Tw(dV,EV):dV=qV.cartesianToCartographic(dV),n(FV)||(FV=jyd(dV,dd)),FV.then((function(b){Td=qV.cartographicToCartesian(b)})).finally((function(){$V.flyTo({destination:Td,complete:function(){b._complete.raiseEvent()},duration:b._flightDuration,endTransform:z.IDENTITY})}))}async function fyd(b,dV,FV){try{return{state:"fulfilled",value:await b.geocode(dV,FV),credits:b.credit}}catch(EV){return{state:"rejected",reason:EV}}}async function Hyd(b,dV,FV){let EV,qV,$V=b._searchText;if(Bxt($V))return void b.showSuggestions();for(b._isSearchInProgress=!0,b._wasGeocodeCancelled=!1,EV=0;EV0)break}if(b._wasGeocodeCancelled)return;b._isSearchInProgress=!1,$Ut(b);let dd=qV.value;if("fulfilled"===qV.state&&n(dd)&&dd.length>0){b._searchText=dd[0].displayName,b.destinationFound(b,dd[0].destination);let FV=kxt(b,Nx.getCreditsFromResult(dd[0]));n(FV)||qUt(b,dV[EV].credit)}else b._searchText=`${$V} (not found)`}function qUt(b,dV){n(dV)&&!b._scene.isDestroyed()&&!b._scene.frameState.creditDisplay.isDestroyed()&&(b._scene.frameState.creditDisplay.addStaticCredit(dV),b._previousCredits.push(dV))}function kxt(b,dV){return n(dV)&&dV.forEach((dV=>qUt(b,dV))),dV}function $Ut(b){!b._scene.isDestroyed()&&!b._scene.frameState.creditDisplay.isDestroyed()&&b._previousCredits.forEach((dV=>{b._scene.frameState.creditDisplay.removeStaticCredit(dV)})),b._previousCredits.length=0}function Kyd(b,dV){let FV=wl(b._viewContainer),EV=FV.getElementsByClassName("search-results")[0],qV=FV.getElementsByTagName("li")[dV];if(0===dV)return void(EV.scrollTop=0);let $V=qV.offsetTop;$V+qV.clientHeight>EV.clientHeight?EV.scrollTop=$V+qV.clientHeight:$V0){let dV=!0;EV.forEach((FV=>{let EV=Nx.getCreditsFromResult(FV);dV=dV&&!n(EV),kxt(b,EV)})),dV&&qUt(b,FV.credit)}if(b._suggestions.length>=5)return}}Object.defineProperties(IF.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}}}),IF.prototype.destroy=function(){this._suggestionSubscription.dispose()},IF.flyToDestination=Oyd,IF._updateSearchSuggestions=Pyd,IF._adjustSuggestionsScroll=Kyd,IF.prototype.isDestroyed=function(){return!1},IF.prototype.destroy=function(){return $Ut(this),Dt(this)};var p_=IF,_yd="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",qyd="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 Q_(b){let dV=wl(b.container),FV=new p_(b);FV._startSearchPath=_yd,FV._stopSearchPath=qyd;let EV=document.createElement("form");EV.setAttribute("data-bind","submit: search");let qV=document.createElement("input");qV.type="search",qV.className="cesium-geocoder-input",qV.setAttribute("placeholder","Enter an address or landmark..."),qV.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(){qV.select()}),0)},qV.addEventListener("focus",this._onTextBoxFocus,!1),EV.appendChild(qV),this._textBox=qV;let $V=document.createElement("span");$V.className="cesium-geocoder-searchButton",$V.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),EV.appendChild($V),dV.appendChild(EV);let dd=document.createElement("div");dd.className="search-results",dd.setAttribute("data-bind","visible: _suggestionsVisible");let Td=document.createElement("ul");Td.setAttribute("data-bind","foreach: _suggestions");let Ed=document.createElement("li");Td.appendChild(Ed),Ed.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),dd.appendChild(Td),dV.appendChild(dd),zt.applyBindings(FV,EV),zt.applyBindings(FV,dd),this._container=dV,this._searchSuggestionsContainer=dd,this._viewModel=FV,this._form=EV,this._onInputBegin=function(b){let EV=b.target;"function"==typeof b.composedPath&&(EV=b.composedPath()[0]),dV.contains(EV)||(FV._focusTextbox=!1,FV.hideSuggestions())},this._onInputEnd=function(b){FV._focusTextbox=!0,FV.showSuggestions()},Se.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),dV.addEventListener("pointerup",this._onInputEnd,!0),dV.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),dV.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),dV.addEventListener("touchend",this._onInputEnd,!0),dV.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(Q_.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}}),Q_.prototype.isDestroyed=function(){return!1},Q_.prototype.destroy=function(){let b=this._container;return Se.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),b.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),b.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),b.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),zt.cleanNode(this._form),zt.cleanNode(this._searchSuggestionsContainer),b.removeChild(this._form),b.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),Dt(this)};var r_=Q_;function bxt(b,dV){this._scene=b,this._duration=dV;let FV=this;this._command=Wl((function(){FV._scene.camera.flyHome(FV._duration)})),this.tooltip="View Home",zt.track(this,["tooltip"])}W(A(),1),W(A(),1),Object.defineProperties(bxt.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(b){this._duration=b}}});var h_=bxt;function D_(b,dV,FV){b=wl(b);let EV=new h_(dV,FV);EV._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 qV=document.createElement("button");qV.type="button",qV.className="cesium-button cesium-toolbar-button cesium-home-button",qV.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),b.appendChild(qV),zt.applyBindings(EV,qV),this._container=b,this._viewModel=EV,this._element=qV}Object.defineProperties(D_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),D_.prototype.isDestroyed=function(){return!1},D_.prototype.destroy=function(){return zt.cleanNode(this._element),this._container.removeChild(this._element),Dt(this)};var S_=D_;W(A(),1),W(A(),1),W(A(),1),W(A(),1);var Vjd="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",Tjd="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 tat(){this._cameraClicked=new bt,this._closeClicked=new bt,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",zt.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='
',this.cameraIconPath=void 0,zt.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?Tjd:Vjd}}),zt.defineProperty(this,"_bodyless",{get:function(){return!n(this.description)||0===this.description.length}})}tat.prototype.maxHeightOffset=function(b){return this.maxHeight-b+"px"},Object.defineProperties(tat.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var w_=tat;function b_(b){b=wl(b);let dV=document.createElement("div");dV.className="cesium-infoBox",dV.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),b.appendChild(dV);let FV=document.createElement("div");FV.className="cesium-infoBox-title",FV.setAttribute("data-bind","text: titleText"),dV.appendChild(FV);let EV=document.createElement("button");EV.type="button",EV.className="cesium-button cesium-infoBox-camera",EV.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),dV.appendChild(EV);let qV=document.createElement("button");qV.type="button",qV.className="cesium-infoBox-close",qV.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),qV.innerHTML="×",dV.appendChild(qV);let $V=document.createElement("iframe");$V.className="cesium-infoBox-iframe",$V.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),$V.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),$V.setAttribute("allowfullscreen",!0),dV.appendChild($V);let dd=new w_;zt.applyBindings(dd,dV),this._container=b,this._element=dV,this._frame=$V,this._viewModel=dd,this._descriptionSubscription=void 0;let Td=this;$V.addEventListener("load",(function(){let b=$V.contentDocument,FV=b.createElement("link");FV.href=ge("Widgets/InfoBox/InfoBoxDescription.css"),FV.rel="stylesheet",FV.type="text/css";let EV=b.createElement("div");EV.className="cesium-infoBox-description",b.head.appendChild(FV),b.body.appendChild(EV),Td._descriptionSubscription=rM(dd,"description",(function(b){$V.style.height="5px",EV.innerHTML=b;let FV=null,qV=EV.firstElementChild;if(null!==qV&&1===EV.childNodes.length){let b=window.getComputedStyle(qV);if(null!==b){let dV=b["background-color"],EV=K.fromCssColorString(dV);n(EV)&&0!==EV.alpha&&(FV=b["background-color"])}}dV.style["background-color"]=FV;let dd=EV.getBoundingClientRect().height;$V.style.height=`${dd}px`}))})),$V.setAttribute("src","about:blank")}Object.defineProperties(b_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}}),b_.prototype.isDestroyed=function(){return!1},b_.prototype.destroy=function(){let b=this._container;return zt.cleanNode(this._element),b.removeChild(this._element),n(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),Dt(this)};var G_=b_;function Lxt(){this.showInstructions=!1;let b=this;this._command=Wl((function(){b.showInstructions=!b.showInstructions})),this._showClick=Wl((function(){b._touch=!1})),this._showTouch=Wl((function(){b._touch=!0})),this._touch=!1,this.tooltip="Navigation Instructions",zt.track(this,["tooltip","showInstructions","_touch"])}W(A(),1),W(A(),1),Object.defineProperties(Lxt.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var C_=Lxt;function X_(b){let dV=wl(b.container),FV=new C_,EV=m(b.instructionsInitiallyVisible,!1);FV.showInstructions=EV,FV._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 qV=document.createElement("span");qV.className="cesium-navigationHelpButton-wrapper",dV.appendChild(qV);let $V=document.createElement("button");$V.type="button",$V.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",$V.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),qV.appendChild($V);let dd=document.createElement("div");dd.className="cesium-navigation-help",dd.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),qV.appendChild(dd);let Td=document.createElement("button");Td.type="button",Td.className="cesium-navigation-button cesium-navigation-button-left",Td.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let Ed=document.createElement("img");Ed.src=ge("Widgets/Images/NavigationHelp/Mouse.svg"),Ed.className="cesium-navigation-button-icon",Ed.style.width="25px",Ed.style.height="25px",Td.appendChild(Ed),Td.appendChild(document.createTextNode("Mouse"));let kd=document.createElement("button");kd.type="button",kd.className="cesium-navigation-button cesium-navigation-button-right",kd.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let Sd=document.createElement("img");Sd.src=ge("Widgets/Images/NavigationHelp/Touch.svg"),Sd.className="cesium-navigation-button-icon",Sd.style.width="25px",Sd.style.height="25px",kd.appendChild(Sd),kd.appendChild(document.createTextNode("Touch")),dd.appendChild(Td),dd.appendChild(kd);let Xd=document.createElement("div");Xd.className="cesium-click-navigation-help cesium-navigation-help-instructions",Xd.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),Xd.innerHTML=`
Pan view
Left click + drag
Zoom view
Right click + drag, or
Mouse wheel scroll
Rotate view
Middle click + drag, or
CTRL + Left/Right click + drag
`,dd.appendChild(Xd);let Cd=document.createElement("div");Cd.className="cesium-touch-navigation-help cesium-navigation-help-instructions",Cd.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),Cd.innerHTML=`
Pan view
One finger drag
Zoom view
Two finger pinch
Tilt view
Two finger drag, same direction
Rotate view
Two finger drag, opposite direction
`,dd.appendChild(Cd),zt.applyBindings(FV,qV),this._container=dV,this._viewModel=FV,this._wrapper=qV,this._closeInstructions=function(b){qV.contains(b.target)||(FV.showInstructions=!1)},Se.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(X_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),X_.prototype.isDestroyed=function(){return!1},X_.prototype.destroy=function(){return Se.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),zt.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),Dt(this)};var u_=X_;function x_(b){this._scene=b,this._orthographic=b.camera.frustum instanceof Ke,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=b.mode,zt.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let dV=this;zt.defineProperty(this,"selectedTooltip",(function(){return dV._orthographic?dV.tooltipOrthographic:dV.tooltipPerspective})),this._toggleDropDown=Wl((function(){dV.sceneMode===Et.SCENE2D||dV._flightInProgress||(dV.dropDownVisible=!dV.dropDownVisible)})),this._eventHelper=new DU,this._eventHelper.add(b.morphComplete,(function(b,FV,EV,qV){dV.sceneMode=EV,dV._orthographic=EV===Et.SCENE2D||dV._scene.camera.frustum instanceof Ke})),this._eventHelper.add(b.preRender,(function(){dV._flightInProgress=n(b.camera._currentFlight)})),this._switchToPerspective=Wl((function(){dV.sceneMode!==Et.SCENE2D&&(dV._scene.camera.switchToPerspectiveFrustum(),dV._orthographic=!1,dV.dropDownVisible=!1)})),this._switchToOrthographic=Wl((function(){dV.sceneMode!==Et.SCENE2D&&(dV._scene.camera.switchToOrthographicFrustum(),dV._orthographic=!0,dV.dropDownVisible=!1)})),this._sceneMode=Et}W(A(),1),W(A(),1),Object.defineProperties(x_.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}}}),x_.prototype.isDestroyed=function(){return!1},x_.prototype.destroy=function(){this._eventHelper.removeAll(),Dt(this)};var L_=x_,Rjd="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",Ujd="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 J_(b,dV){b=wl(b);let FV=new L_(dV);FV._perspectivePath=Rjd,FV._orthographicPath=Ujd;let EV=document.createElement("span");EV.className="cesium-projectionPicker-wrapper cesium-toolbar-button",b.appendChild(EV);let qV=document.createElement("button");qV.type="button",qV.className="cesium-button cesium-toolbar-button",qV.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'),qV.innerHTML='\x3c!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --\x3e\x3c!-- /ko --\x3e\x3c!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --\x3e\x3c!-- /ko --\x3e',EV.appendChild(qV);let $V=document.createElement("button");$V.type="button",$V.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",$V.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 }'),EV.appendChild($V);let dd=document.createElement("button");dd.type="button",dd.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",dd.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 }'),EV.appendChild(dd),zt.applyBindings(FV,EV),this._viewModel=FV,this._container=b,this._wrapper=EV,this._closeDropDown=function(b){EV.contains(b.target)||(FV.dropDownVisible=!1)},Se.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(J_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),J_.prototype.isDestroyed=function(){return!1},J_.prototype.destroy=function(){return this._viewModel.destroy(),Se.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),zt.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),Dt(this)};var I_=J_;function dat(b){this._scene=b.scene,this.lowFrameRateMessage=m(b.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,zt.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let dV=this;this._dismissMessage=Wl((function(){dV.showingLowFrameRateMessage=!1,dV.lowFrameRateMessageDismissed=!0}));let FV=pP.fromScene(b.scene);this._unsubscribeLowFrameRate=FV.lowFrameRate.addEventListener((function(){dV.lowFrameRateMessageDismissed||(dV.showingLowFrameRateMessage=!0)})),this._unsubscribeNominalFrameRate=FV.nominalFrameRate.addEventListener((function(){dV.showingLowFrameRateMessage=!1}))}W(A(),1),W(A(),1),Object.defineProperties(dat.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}}),dat.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),Dt(this)};var Y_=dat;function z_(b){let dV=wl(b.container),FV=new Y_(b),EV=document.createElement("div");EV.className="cesium-performance-watchdog-message-area",EV.setAttribute("data-bind","visible: showingLowFrameRateMessage");let qV=document.createElement("button");qV.setAttribute("type","button"),qV.className="cesium-performance-watchdog-message-dismiss",qV.innerHTML="×",qV.setAttribute("data-bind","click: dismissMessage"),EV.appendChild(qV);let $V=document.createElement("div");$V.className="cesium-performance-watchdog-message",$V.setAttribute("data-bind","html: lowFrameRateMessage"),EV.appendChild($V),dV.appendChild(EV),zt.applyBindings(FV,EV),this._container=dV,this._viewModel=FV,this._element=EV}function y_(b,dV){this._scene=b;let FV=this;this._eventHelper=new DU,this._eventHelper.add(b.morphStart,(function(b,dV,EV,qV){FV.sceneMode=EV,FV.dropDownVisible=!1})),this._duration=m(dV,2),this.sceneMode=b.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",zt.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,zt.defineProperty(this,"selectedTooltip",(function(){let b=FV.sceneMode;return b===Et.SCENE2D?FV.tooltip2D:b===Et.SCENE3D?FV.tooltip3D:FV.tooltipColumbusView})),this._toggleDropDown=Wl((function(){FV.dropDownVisible=!FV.dropDownVisible})),this._morphTo2D=Wl((function(){b.morphTo2D(FV._duration)})),this._morphTo3D=Wl((function(){b.morphTo3D(FV._duration)})),this._morphToColumbusView=Wl((function(){b.morphToColumbusView(FV._duration)})),this._sceneMode=Et}Object.defineProperties(z_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),z_.prototype.isDestroyed=function(){return!1},z_.prototype.destroy=function(){return this._viewModel.destroy(),zt.cleanNode(this._element),this._container.removeChild(this._element),Dt(this)},W(A(),1),W(A(),1),Object.defineProperties(y_.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(b){this._duration=b}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}}),y_.prototype.isDestroyed=function(){return!1},y_.prototype.destroy=function(){this._eventHelper.removeAll(),Dt(this)};var j_=y_,ajd="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",Mjd="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",njd="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 O_(b,dV,FV){b=wl(b);let EV=new j_(dV,FV);EV._globePath=ajd,EV._flatMapPath=Mjd,EV._columbusViewPath=njd;let qV=document.createElement("span");qV.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",b.appendChild(qV);let $V=document.createElement("button");$V.type="button",$V.className="cesium-button cesium-toolbar-button",$V.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'),$V.innerHTML='\x3c!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --\x3e\x3c!-- /ko --\x3e\x3c!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --\x3e\x3c!-- /ko --\x3e\x3c!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --\x3e\x3c!-- /ko --\x3e',qV.appendChild($V);let dd=document.createElement("button");dd.type="button",dd.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",dd.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 }'),qV.appendChild(dd);let Td=document.createElement("button");Td.type="button",Td.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",Td.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 }'),qV.appendChild(Td);let Ed=document.createElement("button");Ed.type="button",Ed.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",Ed.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 }'),qV.appendChild(Ed),zt.applyBindings(EV,qV),this._viewModel=EV,this._container=b,this._wrapper=qV,this._closeDropDown=function(b){qV.contains(b.target)||(EV.dropDownVisible=!1)},Se.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(O_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),O_.prototype.isDestroyed=function(){return!1},O_.prototype.destroy=function(){return this._viewModel.destroy(),Se.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),zt.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),Dt(this)};var f_=O_;W(A(),1),W(A(),1);var Njd=new v,H_="-1000px";function gx(b,dV,FV){this._scene=b,this._screenPositionX=H_,this._screenPositionY=H_,this._tweens=b.tweens,this._container=m(FV,document.body),this._selectionIndicatorElement=dV,this._scale=1,this.position=void 0,this.showSelection=!1,zt.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,zt.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&n(this.position)}}),zt.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(dV,FV){return TT.wgs84ToWindowCoordinates(b,dV,FV)}}gx.prototype.update=function(){if(this.showSelection&&n(this.position)){let b=this.computeScreenSpacePosition(this.position,Njd);if(n(b)){let dV=this._container,FV=dV.parentNode.clientWidth,EV=dV.parentNode.clientHeight,qV=this._selectionIndicatorElement.clientWidth,$V=.5*qV;b.x=Math.min(Math.max(b.x,-qV),FV+qV)-$V,b.y=Math.min(Math.max(b.y,-qV),EV+qV)-$V,this._screenPositionX=`${Math.floor(b.x+.25)}px`,this._screenPositionY=`${Math.floor(b.y+.25)}px`}else this._screenPositionX=H_,this._screenPositionY=H_}},gx.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:bU.EXPONENTIAL_OUT})},gx.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:bU.EXPONENTIAL_OUT})},Object.defineProperties(gx.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var K_=gx;function v_(b,dV){b=wl(b),this._container=b;let FV=document.createElement("div");FV.className="cesium-selection-wrapper",FV.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),b.appendChild(FV),this._element=FV;let EV="http://www.w3.org/2000/svg",qV=document.createElementNS(EV,"svg:svg");qV.setAttribute("width",160),qV.setAttribute("height",160),qV.setAttribute("viewBox","0 0 160 160");let $V=document.createElementNS(EV,"g");$V.setAttribute("transform","translate(80,80)"),qV.appendChild($V);let dd=document.createElementNS(EV,"path");dd.setAttribute("data-bind","attr: { transform: _transform }"),dd.setAttribute("d","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"),$V.appendChild(dd),FV.appendChild(qV);let Td=new K_(dV,this._element,this._container);this._viewModel=Td,zt.applyBindings(this._viewModel,this._element)}Object.defineProperties(v_.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),v_.prototype.isDestroyed=function(){return!1},v_.prototype.destroy=function(){let b=this._container;return zt.cleanNode(this._element),b.removeChild(this._element),Dt(this)};var P_=v_;function br(b,dV,FV){this._color=b,this._height=dV,this._base=m(FV,0)}W(A(),1),W(A(),1),br.prototype.getHeight=function(){return this._height},br.prototype.getBase=function(){return this._base},br.prototype.getStartTime=function(){return this._start},br.prototype.getStopTime=function(){return this._stop},br.prototype.setRange=function(b,dV){this._start=b,this._stop=dV},br.prototype.render=function(b){let dV="";if(this._start&&this._stop&&this._color){let FV=Rt.secondsDifference(this._start,b.epochJulian),EV=Math.round(b.timeBarWidth*b.getAlpha(FV)),qV=Rt.secondsDifference(this._stop,b.epochJulian),$V=Math.round(b.timeBarWidth*b.getAlpha(qV))-EV;EV<0&&($V+=EV,EV=0),EV+$V>b.timeBarWidth&&($V=b.timeBarWidth-EV),$V>0&&(dV=``)}return dV};var __=br;function Jxt(b,dV,FV,EV){this.interval=b,this.height=dV,this.color=FV||new K(.5,.5,.5,1),this.backgroundColor=EV||new K(0,0,0,0)}W(A(),1),Jxt.prototype.render=function(b,dV){let FV=this.interval.start,EV=this.interval.stop,qV=dV.startJulian,$V=Rt.addSeconds(dV.startJulian,dV.duration,new Rt);if(Rt.lessThan(FV,qV)&&Rt.greaterThan(EV,$V))b.fillStyle=this.color.toCssColorString(),b.fillRect(0,dV.y,dV.timeBarWidth,this.height);else if(Rt.lessThanOrEquals(FV,$V)&&Rt.greaterThanOrEquals(EV,qV)){let qV,$V,dd;for(qV=0;qVb._topDiv.clientWidth?(b._timelineDragLocation=b._topDiv.clientWidth,b._timelineDrag=.01*b._timeBarSecondsSpan):(b._timelineDragLocation=void 0,b._setTimeBarTime(FV,FV*b._timeBarSecondsSpan/b._topDiv.clientWidth))}else if(b._mouseMode===YF.slide){if(FV=b._mouseX-dV.clientX,b._mouseX=dV.clientX,0!==FV){let dV=FV*b._timeBarSecondsSpan/b._topDiv.clientWidth;b.zoomTo(Rt.addSeconds(b._startJulian,dV,new Rt),Rt.addSeconds(b._endJulian,dV,new Rt))}}else b._mouseMode===YF.zoom&&(FV=b._mouseX-dV.clientX,b._mouseX=dV.clientX,0!==FV&&b.zoomFrom(Math.pow(1.01,FV)))}}function sjd(b){return function(dV){let FV=dV.wheelDeltaY||dV.wheelDelta||-dV.detail;FV/=eat=Math.max(Math.min(Math.abs(FV),eat),1),b.zoomFrom(Math.pow(1.05,-FV))}}function ojd(b){return function(dV){let FV,EV,qV=dV.touches.length,$V=b._topDiv.getBoundingClientRect().left;dV.preventDefault(),b._mouseMode=YF.touchOnly,1===qV?(FV=Rt.secondsDifference(b._scrubJulian,b._startJulian),EV=Math.round(FV*b._topDiv.clientWidth/b._timeBarSecondsSpan+$V),Math.abs(dV.touches[0].clientX-EV)<50?(b._touchMode=TN.scrub,b._scrubElement&&(b._scrubElement.style.backgroundPosition=1===qV?"-16px 0":"0 0")):(b._touchMode=TN.singleTap,b._touchState.centerX=dV.touches[0].clientX-$V)):2===qV?(b._touchMode=TN.slideZoom,b._touchState.centerX=.5*(dV.touches[0].clientX+dV.touches[1].clientX)-$V,b._touchState.spanX=Math.abs(dV.touches[0].clientX-dV.touches[1].clientX)):b._touchMode=TN.ignore}}function Wjd(b){return function(dV){let FV=dV.touches.length,EV=b._topDiv.getBoundingClientRect().left;b._touchMode===TN.singleTap?(b._touchMode=TN.scrub,b._onTouchMove(dV)):b._touchMode===TN.scrub&&b._onTouchMove(dV),b._mouseMode=YF.touchOnly,1!==FV?b._touchMode=FV>0?TN.ignore:TN.none:b._touchMode===TN.slideZoom&&(b._touchState.centerX=dV.touches[0].clientX-EV),b._scrubElement&&(b._scrubElement.style.backgroundPosition="0 0")}}function Ajd(b){return function(dV){let FV,EV,qV,$V,dd,Td,Ed=1,kd=b._topDiv.getBoundingClientRect().left;b._touchMode===TN.singleTap&&(b._touchMode=TN.slideZoom),b._mouseMode=YF.touchOnly,b._touchMode===TN.scrub?(dV.preventDefault(),1===dV.changedTouches.length&&(EV=dV.changedTouches[0].clientX-kd,EV>=0&&EV<=b._topDiv.clientWidth&&b._setTimeBarTime(EV,EV*b._timeBarSecondsSpan/b._topDiv.clientWidth))):b._touchMode===TN.slideZoom&&(qV=dV.touches.length,2===qV?($V=.5*(dV.touches[0].clientX+dV.touches[1].clientX)-kd,dd=Math.abs(dV.touches[0].clientX-dV.touches[1].clientX)):1===qV&&($V=dV.touches[0].clientX-kd,dd=0),n($V)&&(dd>0&&b._touchState.spanX>0?(Ed=b._touchState.spanX/dd,Td=Rt.addSeconds(b._startJulian,(b._touchState.centerX*b._timeBarSecondsSpan-$V*b._timeBarSecondsSpan*Ed)/b._topDiv.clientWidth,new Rt)):(FV=b._touchState.centerX-$V,Td=Rt.addSeconds(b._startJulian,FV*b._timeBarSecondsSpan/b._topDiv.clientWidth,new Rt)),b.zoomTo(Td,Rt.addSeconds(Td,b._timeBarSecondsSpan*Ed,new Rt)),b._touchState.centerX=$V,b._touchState.spanX=dd))}}RN.prototype.addEventListener=function(b,dV,FV){this._topDiv.addEventListener(b,dV,FV)},RN.prototype.removeEventListener=function(b,dV,FV){this._topDiv.removeEventListener(b,dV,FV)},RN.prototype.isDestroyed=function(){return!1},RN.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);let b=this.container.ownerDocument;b.removeEventListener("mouseup",this._onMouseUp,!1),b.removeEventListener("mousemove",this._onMouseMove,!1);let dV=this._timeBarEle;dV.removeEventListener("mousedown",this._onMouseDown,!1),dV.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),dV.removeEventListener("mousewheel",this._onMouseWheel,!1),dV.removeEventListener("touchstart",this._onTouchStart,!1),dV.removeEventListener("touchmove",this._onTouchMove,!1),dV.removeEventListener("touchend",this._onTouchEnd,!1),dV.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),Dt(this)},RN.prototype.addHighlightRange=function(b,dV,FV){let EV=new __(b,dV,FV);return this._highlightRanges.push(EV),this.resize(),EV},RN.prototype.addTrack=function(b,dV,FV,EV){let qV=new q_(b,dV,FV,EV);return this._trackList.push(qV),this._lastHeight=void 0,this.resize(),qV},RN.prototype.zoomTo=function(b,dV){if(this._startJulian=b,this._endJulian=dV,this._timeBarSecondsSpan=Rt.secondsDifference(dV,b),this._clock&&this._clock.clockRange!==BU.UNBOUNDED){let b=this._clock.startTime,dV=this._clock.stopTime,FV=Rt.secondsDifference(dV,b),EV=Rt.secondsDifference(b,this._startJulian),qV=Rt.secondsDifference(dV,this._endJulian);this._timeBarSecondsSpan>=FV?(this._timeBarSecondsSpan=FV,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):EV>0?(this._endJulian=Rt.addSeconds(this._endJulian,EV,new Rt),this._startJulian=b,this._timeBarSecondsSpan=Rt.secondsDifference(this._endJulian,this._startJulian)):qV<0&&(this._startJulian=Rt.addSeconds(this._startJulian,qV,new Rt),this._endJulian=dV,this._timeBarSecondsSpan=Rt.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();let FV=document.createEvent("Event");FV.initEvent("setzoom",!0,!0),FV.startJulian=this._startJulian,FV.endJulian=this._endJulian,FV.epochJulian=this._epochJulian,FV.totalSpan=this._timeBarSecondsSpan,FV.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(FV)},RN.prototype.zoomFrom=function(b){let dV=Rt.secondsDifference(this._scrubJulian,this._startJulian);b>1||dV<0||dV>this._timeBarSecondsSpan?dV=.5*this._timeBarSecondsSpan:dV+=dV-.5*this._timeBarSecondsSpan;let FV=this._timeBarSecondsSpan-dV;this.zoomTo(Rt.addSeconds(this._startJulian,dV-dV*b,new Rt),Rt.addSeconds(this._endJulian,FV*b-FV,new Rt))},RN.prototype.makeLabel=function(b){let dV=Rt.toGregorianDate(b),FV=dV.millisecond,EV=" UTC";if(FV>0&&this._timeBarSecondsSpan<3600){for(EV=Math.floor(FV).toString();EV.length<3;)EV=`0${EV}`;EV=`.${EV}`}return`${ijd[dV.month-1]} ${dV.day} ${dV.year} ${lat(dV.hour)}:${lat(dV.minute)}:${lat(dV.second)}${EV}`},RN.prototype.smallestTicInPixels=7,RN.prototype._makeTics=function(){let b,dV=this._timeBarEle,FV=Rt.secondsDifference(this._scrubJulian,this._startJulian),EV=Math.round(FV*this._topDiv.clientWidth/this._timeBarSecondsSpan),qV=EV-8,$V=this;this._needleEle.style.left=`${EV.toString()}px`;let dd="",Td=.01,Ed=31536e6,kd=1e-10,Sd=0,Xd=this._timeBarSecondsSpan;XdEd&&(Xd=Ed,this._timeBarSecondsSpan=Ed,this._endJulian=Rt.addSeconds(this._startJulian,Ed,new Rt));let Cd=this._timeBarEle.clientWidth;Cd<10&&(Cd=10);let _d,el=this._startJulian,Xl=Math.min(Xd/Cd*1e-5,.4),Il=Rt.toGregorianDate(el);_d=Xd>31536e4?Rt.fromDate(new Date(Date.UTC(100*Math.floor(Il.year/100),0))):Xd>31536e3?Rt.fromDate(new Date(Date.UTC(10*Math.floor(Il.year/10),0))):Xd>86400?Rt.fromDate(new Date(Date.UTC(Il.year,0))):Rt.fromDate(new Date(Date.UTC(Il.year,Il.month,Il.day)));let Hl=Rt.secondsDifference(this._startJulian,Rt.addSeconds(_d,Xl,new Rt)),$l=Hl+Xd;function h(b){return Math.floor(Hl/b)*b}function k(b,dV){return Math.ceil(b/dV+.5)*dV}function B(b){return(b-Hl)/Xd}function G(b,dV){return b-dV*Math.round(b/dV)}this._epochJulian=_d,this._rulerEle.innerHTML=this.makeLabel(Rt.addSeconds(this._endJulian,-Td,new Rt));let tR=this._rulerEle.offsetWidth+20;tR<30&&(tR=180);let ER=Sd;Sd-=kd;let sR={startTime:Hl,startJulian:el,epochJulian:_d,duration:Xd,timeBarWidth:Cd,getAlpha:B};this._highlightRanges.forEach((function(b){dd+=b.render(sR)}));let GR=0,uR=0,OR=0,AU=tR/Cd;AU>1&&(AU=1),AU*=this._timeBarSecondsSpan;let mU,wU=-1,oU=-1,XU=Gp.length;for(mU=0;mUAU&&b>Sd)break;oU<0&&Cd*(b/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(oU=wU)}if(wU>0){for(;wU>0;)if(--wU,Math.abs(G(GR,Gp[wU]))<1e-5){Gp[wU]>=Sd&&(uR=Gp[wU]);break}if(oU>=0)for(;oU=Sd){OR=Gp[oU];break}++oU}}Sd=ER,Sd>kd&&OR<1e-5&&Math.abs(Sd-GR)>kd&&(OR=Sd,Sd<=GR+kd&&(uR=0));let LU,uU=-999999;if(Cd*(OR/this._timeBarSecondsSpan)>=3)for(b=h(OR);b<=$l;b=k(b,OR))dd+=``;if(Cd*(uR/this._timeBarSecondsSpan)>=3)for(b=h(uR);b<=$l;b=k(b,uR))dd+=``;if(Cd*(GR/this._timeBarSecondsSpan)>=2){this._mainTicSpan=GR,$l+=GR,b=h(GR);let dV=Rt.computeTaiMinusUtc(_d);for(;b<=$l;){let FV=Rt.addSeconds(el,b-Hl,new Rt);if(GR>2.1){let EV=Rt.computeTaiMinusUtc(FV);Math.abs(EV-dV)>.1&&(b+=EV-dV,FV=Rt.addSeconds(el,b-Hl,new Rt))}let EV=Math.round(Cd*B(b)),qV=this.makeLabel(FV);this._rulerEle.innerHTML=qV,LU=this._rulerEle.offsetWidth,LU<10&&(LU=tR);let $V=EV-(LU/2-1);$V>uU?(uU=$V+LU+5,dd+=`${qV}`):dd+=``,b=k(b,GR)}}else this._mainTicSpan=-1;dd+=``,dV.innerHTML=dd,this._scrubElement=dV.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),sR.y=0,this._trackList.forEach((function(b){b.render($V._context,sR),sR.y+=b.height}))},RN.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let b=this._scrubElement;if(n(this._scrubElement)){let dV=Rt.secondsDifference(this._scrubJulian,this._startJulian),FV=Math.round(dV*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==FV&&(this._lastXPos=FV,b.style.left=FV-8+"px",this._needleEle.style.left=`${FV}px`)}n(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo(Rt.addSeconds(this._startJulian,this._timelineDrag,new Rt),Rt.addSeconds(this._endJulian,this._timelineDrag,new Rt)))},RN.prototype._setTimeBarTime=function(b,dV){if(b=Math.round(b),this._scrubJulian=Rt.addSeconds(this._startJulian,dV,new Rt),this._scrubElement){let dV=b-8;this._scrubElement.style.left=`${dV.toString()}px`,this._needleEle.style.left=`${b.toString()}px`}let FV=document.createEvent("Event");FV.initEvent("settime",!0,!0),FV.clientX=b,FV.timeSeconds=dV,FV.timeJulian=this._scrubJulian,FV.clock=this._clock,this._topDiv.dispatchEvent(FV)},RN.prototype.resize=function(){let b=this.container.clientWidth,dV=this.container.clientHeight;if(b===this._lastWidth&&dV===this._lastHeight)return;this._trackContainer.style.height=`${dV}px`;let FV=1;this._trackList.forEach((function(b){FV+=b.height})),this._trackListEle.style.height=`${FV.toString()}px`,this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=FV,this._makeTics(),this._lastXPos=void 0,this._lastWidth=b,this._lastHeight=dV};var $_=RN;W(A(),1),W(A(),1);var yxt=W(gxt(),1);function pjd(b){let dV=!1,FV=window.screen;return n(FV)&&(n(FV.lockOrientation)?dV=FV.lockOrientation(b):n(FV.mozLockOrientation)?dV=FV.mozLockOrientation(b):n(FV.msLockOrientation)?dV=FV.msLockOrientation(b):n(FV.orientation&&FV.orientation.lock)&&(dV=FV.orientation.lock(b))),dV}function jxt(){let b=window.screen;n(b)&&(n(b.unlockOrientation)?b.unlockOrientation():n(b.mozUnlockOrientation)?b.mozUnlockOrientation():n(b.msUnlockOrientation)?b.msUnlockOrientation():n(b.orientation&&b.orientation.unlock)&&b.orientation.unlock())}function Qjd(b,dV,FV,EV){EV()||(FV()?(dV.useWebVR=!1,b._locked&&(jxt(),b._locked=!1),b._noSleep.disable(),VU.exitFullscreen(),FV(!1)):(VU.fullscreen||VU.requestFullscreen(b._vrElement),b._noSleep.enable(),b._locked||(b._locked=pjd("landscape")),dV.useWebVR=!0,FV(!0)))}function tq(b,dV){let FV=this,EV=zt.observable(VU.enabled),qV=zt.observable(!1);this.isVRMode=void 0,zt.defineProperty(this,"isVRMode",{get:function(){return qV()}}),this.isVREnabled=void 0,zt.defineProperty(this,"isVREnabled",{get:function(){return EV()},set:function(b){EV(b&&VU.enabled)}}),this.tooltip=void 0,zt.defineProperty(this,"tooltip",(function(){return EV()?qV()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"}));let $V=zt.observable(!1);this._isOrthographic=void 0,zt.defineProperty(this,"_isOrthographic",{get:function(){return $V()}}),this._eventHelper=new DU,this._eventHelper.add(b.preRender,(function(){$V(b.camera.frustum instanceof Ke)})),this._locked=!1,this._noSleep=new yxt.default,this._command=Wl((function(){Qjd(FV,b,qV,$V)}),zt.getObservable(this,"isVREnabled")),this._vrElement=m(wl(dV),document.body),this._callback=function(){!VU.fullscreen&&qV()&&(b.useWebVR=!1,FV._locked&&(jxt(),FV._locked=!1),FV._noSleep.disable(),qV(!1))},document.addEventListener(VU.changeEventName,this._callback)}Object.defineProperties(tq.prototype,{vrElement:{get:function(){return this._vrElement},set:function(b){this._vrElement=b}},command:{get:function(){return this._command}}}),tq.prototype.isDestroyed=function(){return!1},tq.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(VU.changeEventName,this._callback),Dt(this)};var dq=tq,rjd="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",hjd="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 eq(b,dV,FV){b=wl(b);let EV=new dq(dV,FV);EV._exitVRPath=hjd,EV._enterVRPath=rjd;let qV=document.createElement("button");qV.type="button",qV.className="cesium-button cesium-vrButton",qV.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),b.appendChild(qV),zt.applyBindings(EV,qV),this._container=b,this._viewModel=EV,this._element=qV}Object.defineProperties(eq.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}}),eq.prototype.isDestroyed=function(){return!1},eq.prototype.destroy=function(){return this._viewModel.destroy(),zt.cleanNode(this._element),this._container.removeChild(this._element),Dt(this)};var lq=eq;W(A(),1);var Cp=new ct;function Hxt(b){let dV=b.clock;dV.currentTime=b.timeJulian,dV.shouldAnimate=!1}function Djd(b){let dV=b.getPropertyIds(),FV="";return dV.forEach((function(dV){let EV=b.getProperty(dV);n(EV)&&(FV+=`${dV}${EV}`)})),FV.length>0&&(FV=`${FV}
`),FV}function Sjd(b){let dV,FV=[],EV=b.getPropertyIds();for(dV=0;dV{}}}}else{let b=document.createElement("div");b.className="cesium-viewer-animationContainer",qV.appendChild(b),mU=new e_(b,new l_(Ed))}if(n(dV.timeline)&&!1===dV.timeline){if(!1!==dV.timelineContainer){let b=document.createElement("div");b.className="cesium-viewer-timelineContainer",b.style.overflow="visible",qV.appendChild(b),wU={container:b,resize:()=>{},updateFromClock:()=>{},zoomTo:()=>{}}}}else{let b=document.createElement("div");b.className="cesium-viewer-timelineContainer",qV.appendChild(b),wU=new $_(b,Td),wU.addEventListener("settime",Hxt,!1),wU.zoomTo(Td.startTime,Td.stopTime)}if((!n(dV.fullscreenButton)||!1!==dV.fullscreenButton)&&(LU=document.createElement("div"),LU.className="cesium-viewer-fullscreenContainer",qV.appendChild(LU),oU=new c_(LU,dV.fullscreenElement),XU=rM(oU.viewModel,"isFullscreenEnabled",(function(b){LU.style.display=b?"block":"none",n(wU)&&(wU.container.style.right=`${LU.clientWidth}px`,wU.resize())}))),dV.vrButton){let b=document.createElement("div");b.className="cesium-viewer-vrContainer",qV.appendChild(b),uU=new lq(b,Il,dV.fullScreenElement),PU=rM(uU.viewModel,"isVREnabled",(function(dV){b.style.display=dV?"block":"none",n(oU)&&(b.style.right=`${LU.clientWidth}px`),n(wU)&&(wU.container.style.right=`${b.clientWidth}px`,wU.resize())})),_U=rM(uU.viewModel,"isVRMode",(function(b){bjd(EV,b)}))}this._baseLayerPickerDropDown=OR,this._fullscreenSubscription=XU,this._vrSubscription=PU,this._vrModeSubscription=_U,this._dataSourceChangedListeners={},this._automaticallyTrackDataSourceClocks=m(dV.automaticallyTrackDataSourceClocks,!0),this._container=b,this._bottomContainer=$V,this._element=qV,this._cesiumWidget=Xd,this._selectionIndicator=el,this._infoBox=Xl,this._dataSourceCollection=Cd,this._destroyDataSourceCollection=_d,this._dataSourceDisplay=Hl,this._clockViewModel=Ed,this._destroyClockViewModel=Sd,this._toolbar=dT,this._homeButton=ER,this._sceneModePicker=sR,this._projectionPicker=GR,this._baseLayerPicker=uR,this._navigationHelpButton=AU,this._animation=mU,this._timeline=wU,this._fullscreenButton=oU,this._vrButton=uU,this._geocoder=tR,this._eventHelper=$l,this._lastWidth=0,this._lastHeight=0,this._allowDataSourcesToSuspendAnimation=!0,this._entityView=void 0,this._enableInfoOrSelection=n(Xl)||n(el),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 bt,this._trackedEntityChanged=new bt,this._referenceFrame=0,zt.track(this,["_trackedEntity","_selectedEntity","_clockTrackedDataSource"]),$l.add(Cd.dataSourceAdded,LV.prototype._onDataSourceAdded,this),$l.add(Cd.dataSourceRemoved,LV.prototype._onDataSourceRemoved,this),$l.add(Il.postUpdate,LV.prototype.resize,this),$l.add(Il.postRender,LV.prototype._postRender,this);let UT=Cd.length;for(let FT=0;FT{b._completeZoom=function(b){dV(b)}}));return b._zoomPromise=qV,b._zoomIsFlight=EV,b._zoomOptions=FV,Promise.resolve(dV).then((function(dV){if(b._zoomPromise===qV){if(dV instanceof mM){let FV;return FV=n(dV.imageryProvider)?Promise.resolve(dV.getImageryRectangle()):new Promise((b=>{let FV=dV.readyEvent.addEventListener((()=>{FV(),b(dV.getImageryRectangle())}))})),void FV.then((function(dV){return Tw(dV,b.scene)})).then((function(dV){b._zoomPromise===qV&&(b._zoomTarget=dV)}))}if(dV instanceof sM||dV instanceof kx||dV instanceof Zr)return void(b._zoomTarget=dV);if(dV.isLoading&&n(dV.loadingEvent)){let FV=dV.loadingEvent.addEventListener((function(){FV(),b._zoomPromise===qV&&(b._zoomTarget=dV.entities.values.slice(0))}));return}if(Array.isArray(dV))return void(b._zoomTarget=dV.slice(0));dV=m(dV.values,dV),n(dV.entities)&&(dV=dV.entities.values),Array.isArray(dV)?b._zoomTarget=dV.slice(0):b._zoomTarget=[dV]}})),b.scene.requestRender(),qV}function yx(b){b._zoomPromise=void 0,b._zoomTarget=void 0,b._zoomOptions=void 0}function Uat(b){let dV=b._zoomPromise;n(dV)&&(yx(b),b._completeZoom(!1))}function Gjd(b){let dV=b._zoomTarget;if(!n(dV)||b.scene.mode===Et.MORPHING)return;let FV,EV=b.scene,qV=EV.camera,$V=m(b._zoomOptions,{});function R(EV){n($V.offset)||($V.offset=new YZ(0,-.5,EV.radius)),FV={offset:$V.offset,duration:$V.duration,maximumHeight:$V.maximumHeight,complete:function(){b._completeZoom(!0)},cancel:function(){b._completeZoom(!1)}},b._zoomIsFlight?qV.flyToBoundingSphere(dV.boundingSphere,FV):(qV.viewBoundingSphere(EV,$V.offset),qV.lookAtTransform(z.IDENTITY),b._completeZoom(!0)),yx(b)}if(dV instanceof kx){if(n(dV.boundingSphere))return void R(dV.boundingSphere);let b=dV.frameChanged.addEventListener((function(dV){R(dV.boundingSphere),b()}));return}if(dV instanceof sM||dV instanceof Zr)return void R(dV.boundingSphere);if(dV instanceof St)return FV={destination:EV.mapProjection.ellipsoid.cartographicToCartesian(dV),duration:$V.duration,maximumHeight:$V.maximumHeight,complete:function(){b._completeZoom(!0)},cancel:function(){b._completeZoom(!1)}},b._zoomIsFlight?qV.flyTo(FV):(qV.setView(FV),b._completeZoom(!0)),void yx(b);let dd=dV,Td=[];for(let kd=0,Sd=dd.length;kd900?(Sd=169,b<=900&&(Ed.style.width="169px",Ed.style.height="112px",this._animation.resize())):FV>=600?(Sd=136,(b<600||b>900)&&(Ed.style.width="136px",Ed.style.height="90px",this._animation.resize())):(Sd=106,(b>600||0===b)&&(Ed.style.width="106px",Ed.style.height="70px",this._animation.resize())),Xd=Sd+5}if($V&&"hidden"!==window.getComputedStyle(this._timeline.container).visibility){let b=this._fullscreenButton,dV=this._vrButton,FV=kd.container,EV=FV.style;Cd=FV.clientHeight+3,EV.left=`${Sd}px`;let qV=0;n(b)&&(qV+=b.container.clientWidth),n(dV)&&(qV+=dV.container.clientWidth),EV.right=`${qV}px`,kd.resize()}this._bottomContainer.style.left=`${Xd}px`,this._bottomContainer.style.bottom=`${Cd}px`,this._lastWidth=FV,this._lastHeight=EV},LV.prototype.forceResize=function(){this._lastWidth=0,this.resize()},LV.prototype.render=function(){this._cesiumWidget.render()},LV.prototype.isDestroyed=function(){return!1},LV.prototype.destroy=function(){let b;n(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(El.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(El.LEFT_DOUBLE_CLICK));let dV=this.dataSources,FV=dV.length;for(b=0;b0?this.clockTrackedDataSource=b.get(dV-1):this.clockTrackedDataSource=void 0}},LV.prototype.zoomTo=function(b,dV){return vxt(this,b,{offset:dV},!1)},LV.prototype.flyTo=function(b,dV){return vxt(this,b,dV,!0)},LV.prototype._postRender=function(){Gjd(this),Cjd(this)};var Pxt=LV;function jjd(b){try{if(b.scene.mode!==Et.SCENE3D)return;let dV=b.scene,FV=b.clock.currentTime,EV=dV.camera,qV=i$1.clone(EV.position);if(b.referenceFrame!==Al.INERTIAL||b.trackedEntity)b.trackedEntity||EV.lookAtTransform(z.IDENTITY);else{let b=qd.computeIcrfToFixedMatrix(FV);if(n(b)){let dV=z.fromRotationTranslation(b);EV.lookAtTransform(dV,qV)}}}catch(dV){globalThis.error=dV}}function Ew(b,dV){if(b.position&&void 0!==b.position.referenceFrame)try{b.position.referenceFrame=dV}catch(FV){window.error=FV}}function Ojd(b){(!Object.getOwnPropertyDescriptor(b,"referenceFrame")||"number"==typeof b.referenceFrame)&&Object.defineProperty(b,"referenceFrame",{configurable:!0,get:function(){return this._referenceFrame},set:function(b){"number"==typeof b&&(this._referenceFrame=b,this.dataSources._dataSources.forEach((dV=>{dV.entities.values.forEach((dV=>{Ew(dV,b)})),dV.entities.collectionChanged.addEventListener(((dV,FV)=>{FV.added&&FV.added.forEach((dV=>Ew(dV,b)))}))})),this.entities&&(this.entities.values.forEach((dV=>{Ew(dV,b)})),this.entities.collectionChanged.addEventListener(((dV,FV)=>{FV.added&&FV.added.forEach((dV=>Ew(dV,b)))}))),this.eventBus&&this.eventBus.emit("referenceFrameChanged",b))}});let dV=b.referenceFrame;"number"==typeof b.referenceFrame&&(b.referenceFrame=dV),b.dataSources.dataSourceAdded.addEventListener((function(dV,FV){FV.entities.collectionChanged.addEventListener(((dV,FV)=>{FV.added&&FV.added.forEach((dV=>Ew(dV,b._referenceFrame)))})),FV.entities.values.forEach((dV=>{Ew(dV,b._referenceFrame)}))})),b.scene.preRender.addEventListener((function(){jjd(b)}))}W(A(),1),W(A(),1),W(A(),1),W(A(),1),W(A(),1),W(A(),1),W(A(),1);var TLt=Ojd;function ULt(b){let dV,FV=b.split("\n");for(dV=0;dV=$V&&(b=b.slice($V)),EV+=`${b}\n`}return EV}function zF(b){this._scene=b,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let dV=this;function e(FV){let{name:EV,initialValue:qV}=FV;dV._definedProperties.push(EV);let $V=FV.setPrimitiveFunction;!0===$V&&($V=function(b){dV._voxelPrimitive[EV]=b});let dd=FV.getPrimitiveFunction;!0===dd&&(dd=function(){dV[EV]=dV._voxelPrimitive[EV]}),n(dd)&&dV._getPrimitiveFunctions.push(dd);let Td=zt.observable();return zt.defineProperty(dV,EV,{get:function(){return Td()},set:function(FV){"number"==typeof qV&&"string"==typeof FV&&(FV=Number(FV),isNaN(FV)&&(FV=qV)),"boolean"==typeof qV&&"number"==typeof FV&&(FV=1===FV),Td(FV),n($V)&&n(dV._voxelPrimitive)&&($V(FV),b.requestRender())}}),dV[EV]=qV,Td}function l(b,FV){return function(EV){let qV=dV._voxelPrimitive[b].clone();qV[FV]=EV,dV._voxelPrimitive[b]=qV}}e({name:"inspectorVisible",initialValue:!0}),e({name:"displayVisible",initialValue:!1}),e({name:"transformVisible",initialValue:!1}),e({name:"boundsVisible",initialValue:!1}),e({name:"clippingVisible",initialValue:!1}),e({name:"shaderVisible",initialValue:!1}),e({name:"shaderString",initialValue:"",getPrimitiveFunction:function(){let b=dV._voxelPrimitive.customShader.fragmentShaderText;dV.shaderString=ULt(b)}}),e({name:"shaderCompilationMessage",initialValue:""}),e({name:"shaderCompilationSuccess",initialValue:!0}),e({name:"depthTest",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"show",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"disableUpdate",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"debugDraw",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"jitter",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"nearestSampling",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"screenSpaceError",initialValue:4,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"stepSize",initialValue:1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),e({name:"shapeIsBox",getPrimitiveFunction:function(){let b=dV._voxelPrimitive.shape;dV.shapeIsBox=b===KV.BOX}}),e({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let b=dV._voxelPrimitive.shape;dV.shapeIsEllipsoid=b===KV.ELLIPSOID}}),e({name:"shapeIsCylinder",getPrimitiveFunction:function(){let b=dV._voxelPrimitive.shape;dV.shapeIsCylinder=b===KV.CYLINDER}}),e({name:"boundsBoxMaxX",initialValue:0,setPrimitiveFunction:l("maxBounds","x"),getPrimitiveFunction:function(){dV.boundsBoxMaxX=dV._voxelPrimitive.maxBounds.x}}),e({name:"boundsBoxMinX",initialValue:0,setPrimitiveFunction:l("minBounds","x"),getPrimitiveFunction:function(){dV.boundsBoxMinX=dV._voxelPrimitive.minBounds.x}}),e({name:"boundsBoxMaxY",initialValue:0,setPrimitiveFunction:l("maxBounds","y"),getPrimitiveFunction:function(){dV.boundsBoxMaxY=dV._voxelPrimitive.maxBounds.y}}),e({name:"boundsBoxMinY",initialValue:0,setPrimitiveFunction:l("minBounds","y"),getPrimitiveFunction:function(){dV.boundsBoxMinY=dV._voxelPrimitive.minBounds.y}}),e({name:"boundsBoxMaxZ",initialValue:0,setPrimitiveFunction:l("maxBounds","z"),getPrimitiveFunction:function(){dV.boundsBoxMaxZ=dV._voxelPrimitive.maxBounds.z}}),e({name:"boundsBoxMinZ",initialValue:0,setPrimitiveFunction:l("minBounds","z"),getPrimitiveFunction:function(){dV.boundsBoxMinZ=dV._voxelPrimitive.minBounds.z}}),e({name:"boundsEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:l("maxBounds","x"),getPrimitiveFunction:function(){dV.boundsEllipsoidMaxLongitude=dV._voxelPrimitive.maxBounds.x}}),e({name:"boundsEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:l("minBounds","x"),getPrimitiveFunction:function(){dV.boundsEllipsoidMinLongitude=dV._voxelPrimitive.minBounds.x}}),e({name:"boundsEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:l("maxBounds","y"),getPrimitiveFunction:function(){dV.boundsEllipsoidMaxLatitude=dV._voxelPrimitive.maxBounds.y}}),e({name:"boundsEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:l("minBounds","y"),getPrimitiveFunction:function(){dV.boundsEllipsoidMinLatitude=dV._voxelPrimitive.minBounds.y}}),e({name:"boundsEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:l("maxBounds","z"),getPrimitiveFunction:function(){dV.boundsEllipsoidMaxHeight=dV._voxelPrimitive.maxBounds.z}}),e({name:"boundsEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:l("minBounds","z"),getPrimitiveFunction:function(){dV.boundsEllipsoidMinHeight=dV._voxelPrimitive.minBounds.z}}),e({name:"boundsCylinderMaxRadius",initialValue:0,setPrimitiveFunction:l("maxBounds","x"),getPrimitiveFunction:function(){dV.boundsCylinderMaxRadius=dV._voxelPrimitive.maxBounds.x}}),e({name:"boundsCylinderMinRadius",initialValue:0,setPrimitiveFunction:l("minBounds","x"),getPrimitiveFunction:function(){dV.boundsCylinderMinRadius=dV._voxelPrimitive.minBounds.x}}),e({name:"boundsCylinderMaxHeight",initialValue:0,setPrimitiveFunction:l("maxBounds","y"),getPrimitiveFunction:function(){dV.boundsCylinderMaxHeight=dV._voxelPrimitive.maxBounds.y}}),e({name:"boundsCylinderMinHeight",initialValue:0,setPrimitiveFunction:l("minBounds","y"),getPrimitiveFunction:function(){dV.boundsCylinderMinHeight=dV._voxelPrimitive.minBounds.y}}),e({name:"boundsCylinderMaxAngle",initialValue:0,setPrimitiveFunction:l("maxBounds","z"),getPrimitiveFunction:function(){dV.boundsCylinderMaxAngle=dV._voxelPrimitive.maxBounds.z}}),e({name:"boundsCylinderMinAngle",initialValue:0,setPrimitiveFunction:l("minBounds","z"),getPrimitiveFunction:function(){dV.boundsCylinderMinAngle=dV._voxelPrimitive.minBounds.z}}),e({name:"clippingBoxMaxX",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","x"),getPrimitiveFunction:function(){dV.clippingBoxMaxX=dV._voxelPrimitive.maxClippingBounds.x}}),e({name:"clippingBoxMinX",initialValue:0,setPrimitiveFunction:l("minClippingBounds","x"),getPrimitiveFunction:function(){dV.clippingBoxMinX=dV._voxelPrimitive.minClippingBounds.x}}),e({name:"clippingBoxMaxY",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","y"),getPrimitiveFunction:function(){dV.clippingBoxMaxY=dV._voxelPrimitive.maxClippingBounds.y}}),e({name:"clippingBoxMinY",initialValue:0,setPrimitiveFunction:l("minClippingBounds","y"),getPrimitiveFunction:function(){dV.clippingBoxMinY=dV._voxelPrimitive.minClippingBounds.y}}),e({name:"clippingBoxMaxZ",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","z"),getPrimitiveFunction:function(){dV.clippingBoxMaxZ=dV._voxelPrimitive.maxClippingBounds.z}}),e({name:"clippingBoxMinZ",initialValue:0,setPrimitiveFunction:l("minClippingBounds","z"),getPrimitiveFunction:function(){dV.clippingBoxMinZ=dV._voxelPrimitive.minClippingBounds.z}}),e({name:"clippingEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","x"),getPrimitiveFunction:function(){dV.clippingEllipsoidMaxLongitude=dV._voxelPrimitive.maxClippingBounds.x}}),e({name:"clippingEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:l("minClippingBounds","x"),getPrimitiveFunction:function(){dV.clippingEllipsoidMinLongitude=dV._voxelPrimitive.minClippingBounds.x}}),e({name:"clippingEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","y"),getPrimitiveFunction:function(){dV.clippingEllipsoidMaxLatitude=dV._voxelPrimitive.maxClippingBounds.y}}),e({name:"clippingEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:l("minClippingBounds","y"),getPrimitiveFunction:function(){dV.clippingEllipsoidMinLatitude=dV._voxelPrimitive.minClippingBounds.y}}),e({name:"clippingEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","z"),getPrimitiveFunction:function(){dV.clippingEllipsoidMaxHeight=dV._voxelPrimitive.maxClippingBounds.z}}),e({name:"clippingEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:l("minClippingBounds","z"),getPrimitiveFunction:function(){dV.clippingEllipsoidMinHeight=dV._voxelPrimitive.minClippingBounds.z}}),e({name:"clippingCylinderMaxRadius",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","x"),getPrimitiveFunction:function(){dV.clippingCylinderMaxRadius=dV._voxelPrimitive.maxClippingBounds.x}}),e({name:"clippingCylinderMinRadius",initialValue:0,setPrimitiveFunction:l("minClippingBounds","x"),getPrimitiveFunction:function(){dV.clippingCylinderMinRadius=dV._voxelPrimitive.minClippingBounds.x}}),e({name:"clippingCylinderMaxHeight",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","y"),getPrimitiveFunction:function(){dV.clippingCylinderMaxHeight=dV._voxelPrimitive.maxClippingBounds.y}}),e({name:"clippingCylinderMinHeight",initialValue:0,setPrimitiveFunction:l("minClippingBounds","y"),getPrimitiveFunction:function(){dV.clippingCylinderMinHeight=dV._voxelPrimitive.minClippingBounds.y}}),e({name:"clippingCylinderMaxAngle",initialValue:0,setPrimitiveFunction:l("maxClippingBounds","z"),getPrimitiveFunction:function(){dV.clippingCylinderMaxAngle=dV._voxelPrimitive.maxClippingBounds.z}}),e({name:"clippingCylinderMinAngle",initialValue:0,setPrimitiveFunction:l("minClippingBounds","z"),getPrimitiveFunction:function(){dV.clippingCylinderMinAngle=dV._voxelPrimitive.minClippingBounds.z}}),e({name:"translationX",initialValue:0,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)},getPrimitiveFunction:function(){dV.translationX=z.getTranslation(dV._voxelPrimitive.modelMatrix,new i$1).x}}),e({name:"translationY",initialValue:0,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)},getPrimitiveFunction:function(){dV.translationY=z.getTranslation(dV._voxelPrimitive.modelMatrix,new i$1).y}}),e({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)},getPrimitiveFunction:function(){dV.translationZ=z.getTranslation(dV._voxelPrimitive.modelMatrix,new i$1).z}}),e({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)},getPrimitiveFunction:function(){dV.scaleX=z.getScale(dV._voxelPrimitive.modelMatrix,new i$1).x}}),e({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)},getPrimitiveFunction:function(){dV.scaleY=z.getScale(dV._voxelPrimitive.modelMatrix,new i$1).y}}),e({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)},getPrimitiveFunction:function(){dV.scaleZ=z.getScale(dV._voxelPrimitive.modelMatrix,new i$1).z}}),e({name:"angleX",initialValue:0,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)}}),e({name:"angleY",initialValue:0,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)}}),e({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){dV._modelMatrixReady&&Ro(dV)}})}W(A(),1),W(A(),1),W(A(),1),W(A(),1);var fjd=new i$1,Hjd=new i$1,Kjd=new aM,vjd=new Ut;function Ro(b){let dV=i$1.fromElements(b.translationX,b.translationY,b.translationZ,fjd),FV=i$1.fromElements(b.scaleX,b.scaleY,b.scaleZ,Hjd),EV=Kjd;EV.heading=b.angleX,EV.pitch=b.angleY,EV.roll=b.angleZ;let qV=Ut.fromHeadingPitchRoll(EV,vjd),$V=Ut.multiplyByScale(qV,FV,qV);b._voxelPrimitive.modelMatrix=z.fromRotationTranslation($V,dV,b._voxelPrimitive.modelMatrix)}Object.defineProperties(zF.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(b){if(n(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),n(b)){this._voxelPrimitive=b;let dV=this;dV._customShaderCompilationRemoveCallback=dV._voxelPrimitive.customShaderCompilationEvent.addEventListener((function(b){let FV=dV._voxelPrimitive.customShader.fragmentShaderText;dV.shaderString=ULt(FV),n(b)?(dV.shaderCompilationMessage=b.message,dV.shaderCompilationSuccess=!1):(dV.shaderCompilationMessage="Shader compiled successfully!",dV.shaderCompilationSuccess=!0)})),dV._modelMatrixReady=!1;for(let b=0;b{EV.delete(dd),0===EV.size&&FV&&(FV(),FV=null)}}}}class ClockSettings{constructor(){__publicField(this,"clockStep",writable(1)),__publicField(this,"shouldAnimate",writable(!0)),__publicField(this,"multiplier",writable(1))}}class CameraSettings{constructor(){__publicField(this,"enableCollisionDetection",writable(!0)),__publicField(this,"enableLook",writable(!0)),__publicField(this,"enableRotate",writable(!0)),__publicField(this,"enableTilt",writable(!0)),__publicField(this,"enableTranslate",writable(!0)),__publicField(this,"enableZoom",writable(!0)),__publicField(this,"enableMatrixMode",writable(!1)),__publicField(this,"enableReferenceFrameSwapOnAltitude",writable(!0)),__publicField(this,"referenceFrameSwapAltitude",writable(3e5)),__publicField(this,"fromEntity",writable("")),__publicField(this,"toEntity",writable(""))}}class EntityState{constructor(){__publicField(this,"orbit",writable({}))}}class Settings{constructor(){__publicField(this,"referenceFrame",writable(Al.FIXED)),__publicField(this,"debugFPS",writable(!1)),__publicField(this,"depthTestAgainstTerrain",writable(!1)),__publicField(this,"skyAtmosphere",writable(!0)),__publicField(this,"enableLighting",writable(!0)),__publicField(this,"highDynamicRange",writable(!1)),__publicField(this,"fxaa",writable(!1)),__publicField(this,"resolutionScale",writable(1)),__publicField(this,"useBrowserRecommendedResolution",writable(!0)),__publicField(this,"CameraSettings",new CameraSettings),__publicField(this,"ClockSettings",new ClockSettings),__publicField(this,"EntityState",new EntityState),__publicField(this,"showMousePosition",writable(!1)),__publicField(this,"showNonGroupedObjects",writable(!0)),__publicField(this,"lastLoad",writable(0)),__publicField(this,"showLatLonGrid",writable(!1)),__publicField(this,"showLatLonLabels",writable(!0)),__publicField(this,"X_GRID",writable(!1)),__publicField(this,"Y_GRID",writable(!1)),__publicField(this,"Z_GRID",writable(!1)),__publicField(this,"google3DTiles",writable(!1))}}class Scenario{constructor(){__publicField(this,"settings",new Settings),__publicField(this,"trackedEntity",writable(null)),__publicField(this,"selectedEntity",writable(null)),__publicField(this,"groups",writable([])),__publicField(this,"satelliteCatalogDataProviders",writable([{refresh:0,name:"spaceaware",OMM_URL:"https://api.spaceaware.io/data/OMM?format=fbs",CAT_URL:"https://api.spaceaware.io/data/CAT?format=fbs"}]))}}const serializeEntity=b=>null==b?void 0:b.id,deserializeEntity=b=>b,viewer=writable(null);function debounce$1(b,dV){let FV;return function(...EV){clearTimeout(FV),FV=window.setTimeout((()=>{b(...EV)}),dV)}}const dataSourceEvents={dataSourceAdded:writable(null),dataSourceMoved:writable(null),dataSourceRemoved:writable(null)};let registeredEvents={},registeredStoreSubscriptions={},isUpdatingFromStore=!1;const initEvents=b=>{var dV;removeEvents();for(let FV in scenario)b[`${FV}Changed`]&&(registeredEvents[`${FV}Changed`]=b[`${FV}Changed`].addEventListener((b=>{isUpdatingFromStore||scenario[FV].set(b)})));for(let FV in dataSourceEvents)b.dataSources[FV]&&(registeredEvents[FV]=b.dataSources[FV].addEventListener(debounce$1((b=>{isUpdatingFromStore||dataSourceEvents[FV].set(b)}),300)));for(let FV in scenario)(null==(dV=scenario[FV])?void 0:dV.subscribe)&&(registeredStoreSubscriptions[FV]=scenario[FV].subscribe(debounce$1((dV=>{b[FV]!==dV&&(isUpdatingFromStore=!0,b[FV]=dV,isUpdatingFromStore=!1)}),300)))},removeEvents=()=>{for(let b in registeredEvents)registeredEvents[b]();for(let b in registeredStoreSubscriptions)registeredStoreSubscriptions[b]()};let matrixModeScreenSpaceEventHandler=null;const addMatrixModeScreenSpaceEventHandler=b=>{const{settings:dV}=scenario;let{shouldAnimate:FV,clockStep:EV}=dV.ClockSettings,{LEFT_DOWN:qV,LEFT_UP:$V,RIGHT_DOWN:dd,RIGHT_UP:Td,MOUSE_MOVE:Ed}=El;if(matrixModeScreenSpaceEventHandler)return;matrixModeScreenSpaceEventHandler=new GF(b.canvas);let kd=!1,Sd=1,startMatrix=()=>{Sd=get_store_value(EV),get_store_value(FV)&&(b.clock.shouldAnimate=!1,kd=!0)},endMatrix=()=>{kd&&(b.clock.shouldAnimate=!0,b.clock.clockStep=Sd),kd=!1};matrixModeScreenSpaceEventHandler.setInputAction((b=>{startMatrix()}),qV),matrixModeScreenSpaceEventHandler.setInputAction((b=>{startMatrix()}),dd),matrixModeScreenSpaceEventHandler.setInputAction((b=>{endMatrix()}),$V),matrixModeScreenSpaceEventHandler.setInputAction((b=>{endMatrix()}),Td)},removeMatrixModeScreenSpaceEventHandler=()=>{matrixModeScreenSpaceEventHandler&&(matrixModeScreenSpaceEventHandler.destroy(),matrixModeScreenSpaceEventHandler=null)},encodedJs="IWZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIGdldERlZmF1bHRFeHBvcnRGcm9tQ2pzKHIpe3JldHVybiByJiZyLl9fZXNNb2R1bGUmJk9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChyLCJkZWZhdWx0Iik/ci5kZWZhdWx0OnJ9dmFyIHIsbixlPXtleHBvcnRzOnt9fTtyPWUsbj1mdW5jdGlvbigpe3ZhciByPVN0cmluZy5mcm9tQ2hhckNvZGUsbj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLz0iLGU9IkFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky0kIix0PXt9O2Z1bmN0aW9uIGdldEJhc2VWYWx1ZShyLG4pe2lmKCF0W3JdKXt0W3JdPXt9O2Zvcih2YXIgZT0wO2U8ci5sZW5ndGg7ZSsrKXRbcl1bci5jaGFyQXQoZSldPWV9cmV0dXJuIHRbcl1bbl19dmFyIG89e2NvbXByZXNzVG9CYXNlNjQ6ZnVuY3Rpb24ocil7aWYobnVsbD09cilyZXR1cm4iIjt2YXIgZT1vLl9jb21wcmVzcyhyLDYsKGZ1bmN0aW9uKHIpe3JldHVybiBuLmNoYXJBdChyKX0pKTtzd2l0Y2goZS5sZW5ndGglNCl7ZGVmYXVsdDpjYXNlIDA6cmV0dXJuIGU7Y2FzZSAxOnJldHVybiBlKyI9PT0iO2Nhc2UgMjpyZXR1cm4gZSsiPT0iO2Nhc2UgMzpyZXR1cm4gZSsiPSJ9fSxkZWNvbXByZXNzRnJvbUJhc2U2NDpmdW5jdGlvbihyKXtyZXR1cm4gbnVsbD09cj8iIjoiIj09cj9udWxsOm8uX2RlY29tcHJlc3Moci5sZW5ndGgsMzIsKGZ1bmN0aW9uKGUpe3JldHVybiBnZXRCYXNlVmFsdWUobixyLmNoYXJBdChlKSl9KSl9LGNvbXByZXNzVG9VVEYxNjpmdW5jdGlvbihuKXtyZXR1cm4gbnVsbD09bj8iIjpvLl9jb21wcmVzcyhuLDE1LChmdW5jdGlvbihuKXtyZXR1cm4gcihuKzMyKX0pKSsiICJ9LGRlY29tcHJlc3NGcm9tVVRGMTY6ZnVuY3Rpb24ocil7cmV0dXJuIG51bGw9PXI/IiI6IiI9PXI/bnVsbDpvLl9kZWNvbXByZXNzKHIubGVuZ3RoLDE2Mzg0LChmdW5jdGlvbihuKXtyZXR1cm4gci5jaGFyQ29kZUF0KG4pLTMyfSkpfSxjb21wcmVzc1RvVWludDhBcnJheTpmdW5jdGlvbihyKXtmb3IodmFyIG49by5jb21wcmVzcyhyKSxlPW5ldyBVaW50OEFycmF5KDIqbi5sZW5ndGgpLHQ9MCx1PW4ubGVuZ3RoO3Q8dTt0Kyspe3ZhciBmPW4uY2hhckNvZGVBdCh0KTtlWzIqdF09Zj4+PjgsZVsyKnQrMV09ZiUyNTZ9cmV0dXJuIGV9LGRlY29tcHJlc3NGcm9tVWludDhBcnJheTpmdW5jdGlvbihuKXtpZihudWxsPT1uKXJldHVybiBvLmRlY29tcHJlc3Mobik7Zm9yKHZhciBlPW5ldyBBcnJheShuLmxlbmd0aC8yKSx0PTAsdT1lLmxlbmd0aDt0PHU7dCsrKWVbdF09MjU2Km5bMip0XStuWzIqdCsxXTt2YXIgZj1bXTtyZXR1cm4gZS5mb3JFYWNoKChmdW5jdGlvbihuKXtmLnB1c2gocihuKSl9KSksby5kZWNvbXByZXNzKGYuam9pbigiIikpfSxjb21wcmVzc1RvRW5jb2RlZFVSSUNvbXBvbmVudDpmdW5jdGlvbihyKXtyZXR1cm4gbnVsbD09cj8iIjpvLl9jb21wcmVzcyhyLDYsKGZ1bmN0aW9uKHIpe3JldHVybiBlLmNoYXJBdChyKX0pKX0sZGVjb21wcmVzc0Zyb21FbmNvZGVkVVJJQ29tcG9uZW50OmZ1bmN0aW9uKHIpe3JldHVybiBudWxsPT1yPyIiOiIiPT1yP251bGw6KHI9ci5yZXBsYWNlKC8gL2csIisiKSxvLl9kZWNvbXByZXNzKHIubGVuZ3RoLDMyLChmdW5jdGlvbihuKXtyZXR1cm4gZ2V0QmFzZVZhbHVlKGUsci5jaGFyQXQobikpfSkpKX0sY29tcHJlc3M6ZnVuY3Rpb24obil7cmV0dXJuIG8uX2NvbXByZXNzKG4sMTYsKGZ1bmN0aW9uKG4pe3JldHVybiByKG4pfSkpfSxfY29tcHJlc3M6ZnVuY3Rpb24ocixuLGUpe2lmKG51bGw9PXIpcmV0dXJuIiI7dmFyIHQsbyx1LGY9e30sYT17fSxjPSIiLHM9IiIsaT0iIixsPTIsbT0zLHA9MixkPVtdLGg9MCx2PTA7Zm9yKHU9MDt1PHIubGVuZ3RoO3UrPTEpaWYoYz1yLmNoYXJBdCh1KSxPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZixjKXx8KGZbY109bSsrLGFbY109ITApLHM9aStjLE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChmLHMpKWk9cztlbHNle2lmKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChhLGkpKXtpZihpLmNoYXJDb2RlQXQoMCk8MjU2KXtmb3IodD0wO3Q8cDt0KyspaDw8PTEsdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrO2ZvcihvPWkuY2hhckNvZGVBdCgwKSx0PTA7dDw4O3QrKyloPWg8PDF8MSZvLHY9PW4tMT8odj0wLGQucHVzaChlKGgpKSxoPTApOnYrKyxvPj49MX1lbHNle2ZvcihvPTEsdD0wO3Q8cDt0KyspaD1oPDwxfG8sdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrLG89MDtmb3Iobz1pLmNoYXJDb2RlQXQoMCksdD0wO3Q8MTY7dCsrKWg9aDw8MXwxJm8sdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrLG8+Pj0xfTA9PS0tbCYmKGw9TWF0aC5wb3coMixwKSxwKyspLGRlbGV0ZSBhW2ldfWVsc2UgZm9yKG89ZltpXSx0PTA7dDxwO3QrKyloPWg8PDF8MSZvLHY9PW4tMT8odj0wLGQucHVzaChlKGgpKSxoPTApOnYrKyxvPj49MTswPT0tLWwmJihsPU1hdGgucG93KDIscCkscCsrKSxmW3NdPW0rKyxpPVN0cmluZyhjKX1pZigiIiE9PWkpe2lmKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChhLGkpKXtpZihpLmNoYXJDb2RlQXQoMCk8MjU2KXtmb3IodD0wO3Q8cDt0KyspaDw8PTEsdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrO2ZvcihvPWkuY2hhckNvZGVBdCgwKSx0PTA7dDw4O3QrKyloPWg8PDF8MSZvLHY9PW4tMT8odj0wLGQucHVzaChlKGgpKSxoPTApOnYrKyxvPj49MX1lbHNle2ZvcihvPTEsdD0wO3Q8cDt0KyspaD1oPDwxfG8sdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrLG89MDtmb3Iobz1pLmNoYXJDb2RlQXQoMCksdD0wO3Q8MTY7dCsrKWg9aDw8MXwxJm8sdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrLG8+Pj0xfTA9PS0tbCYmKGw9TWF0aC5wb3coMixwKSxwKyspLGRlbGV0ZSBhW2ldfWVsc2UgZm9yKG89ZltpXSx0PTA7dDxwO3QrKyloPWg8PDF8MSZvLHY9PW4tMT8odj0wLGQucHVzaChlKGgpKSxoPTApOnYrKyxvPj49MTswPT0tLWwmJihsPU1hdGgucG93KDIscCkscCsrKX1mb3Iobz0yLHQ9MDt0PHA7dCsrKWg9aDw8MXwxJm8sdj09bi0xPyh2PTAsZC5wdXNoKGUoaCkpLGg9MCk6disrLG8+Pj0xO2Zvcig7Oyl7aWYoaDw8PTEsdj09bi0xKXtkLnB1c2goZShoKSk7YnJlYWt9disrfXJldHVybiBkLmpvaW4oIiIpfSxkZWNvbXByZXNzOmZ1bmN0aW9uKHIpe3JldHVybiBudWxsPT1yPyIiOiIiPT1yP251bGw6by5fZGVjb21wcmVzcyhyLmxlbmd0aCwzMjc2OCwoZnVuY3Rpb24obil7cmV0dXJuIHIuY2hhckNvZGVBdChuKX0pKX0sX2RlY29tcHJlc3M6ZnVuY3Rpb24obixlLHQpe3ZhciBvLHUsZixhLGMscyxpLGw9W10sbT00LHA9NCxkPTMsaD0iIix2PVtdLGc9e3ZhbDp0KDApLHBvc2l0aW9uOmUsaW5kZXg6MX07Zm9yKG89MDtvPDM7bys9MSlsW29dPW87Zm9yKGY9MCxjPU1hdGgucG93KDIsMikscz0xO3MhPWM7KWE9Zy52YWwmZy5wb3NpdGlvbixnLnBvc2l0aW9uPj49MSwwPT1nLnBvc2l0aW9uJiYoZy5wb3NpdGlvbj1lLGcudmFsPXQoZy5pbmRleCsrKSksZnw9KGE+MD8xOjApKnMsczw8PTE7c3dpdGNoKGYpe2Nhc2UgMDpmb3IoZj0wLGM9TWF0aC5wb3coMiw4KSxzPTE7cyE9YzspYT1nLnZhbCZnLnBvc2l0aW9uLGcucG9zaXRpb24+Pj0xLDA9PWcucG9zaXRpb24mJihnLnBvc2l0aW9uPWUsZy52YWw9dChnLmluZGV4KyspKSxmfD0oYT4wPzE6MCkqcyxzPDw9MTtpPXIoZik7YnJlYWs7Y2FzZSAxOmZvcihmPTAsYz1NYXRoLnBvdygyLDE2KSxzPTE7cyE9YzspYT1nLnZhbCZnLnBvc2l0aW9uLGcucG9zaXRpb24+Pj0xLDA9PWcucG9zaXRpb24mJihnLnBvc2l0aW9uPWUsZy52YWw9dChnLmluZGV4KyspKSxmfD0oYT4wPzE6MCkqcyxzPDw9MTtpPXIoZik7YnJlYWs7Y2FzZSAyOnJldHVybiIifWZvcihsWzNdPWksdT1pLHYucHVzaChpKTs7KXtpZihnLmluZGV4Pm4pcmV0dXJuIiI7Zm9yKGY9MCxjPU1hdGgucG93KDIsZCkscz0xO3MhPWM7KWE9Zy52YWwmZy5wb3NpdGlvbixnLnBvc2l0aW9uPj49MSwwPT1nLnBvc2l0aW9uJiYoZy5wb3NpdGlvbj1lLGcudmFsPXQoZy5pbmRleCsrKSksZnw9KGE+MD8xOjApKnMsczw8PTE7c3dpdGNoKGk9Zil7Y2FzZSAwOmZvcihmPTAsYz1NYXRoLnBvdygyLDgpLHM9MTtzIT1jOylhPWcudmFsJmcucG9zaXRpb24sZy5wb3NpdGlvbj4+PTEsMD09Zy5wb3NpdGlvbiYmKGcucG9zaXRpb249ZSxnLnZhbD10KGcuaW5kZXgrKykpLGZ8PShhPjA/MTowKSpzLHM8PD0xO2xbcCsrXT1yKGYpLGk9cC0xLG0tLTticmVhaztjYXNlIDE6Zm9yKGY9MCxjPU1hdGgucG93KDIsMTYpLHM9MTtzIT1jOylhPWcudmFsJmcucG9zaXRpb24sZy5wb3NpdGlvbj4+PTEsMD09Zy5wb3NpdGlvbiYmKGcucG9zaXRpb249ZSxnLnZhbD10KGcuaW5kZXgrKykpLGZ8PShhPjA/MTowKSpzLHM8PD0xO2xbcCsrXT1yKGYpLGk9cC0xLG0tLTticmVhaztjYXNlIDI6cmV0dXJuIHYuam9pbigiIil9aWYoMD09bSYmKG09TWF0aC5wb3coMixkKSxkKyspLGxbaV0paD1sW2ldO2Vsc2V7aWYoaSE9PXApcmV0dXJuIG51bGw7aD11K3UuY2hhckF0KDApfXYucHVzaChoKSxsW3ArK109dStoLmNoYXJBdCgwKSx1PWgsMD09LS1tJiYobT1NYXRoLnBvdygyLGQpLGQrKyl9fX07cmV0dXJuIG99KCksbnVsbCE9cj9yLmV4cG9ydHM9bjoidW5kZWZpbmVkIiE9dHlwZW9mIGFuZ3VsYXImJm51bGwhPWFuZ3VsYXImJmFuZ3VsYXIubW9kdWxlKCJMWlN0cmluZyIsW10pLmZhY3RvcnkoIkxaU3RyaW5nIiwoZnVuY3Rpb24oKXtyZXR1cm4gbn0pKTt2YXIgdD1nZXREZWZhdWx0RXhwb3J0RnJvbUNqcyhlLmV4cG9ydHMpO29ubWVzc2FnZT1mdW5jdGlvbihyKXt2YXIgbixlO2xldCBvPShudWxsPT0obj1yLmRhdGEpP3ZvaWQgMDpuLm1ldGhvZCl8fCJjb21wcmVzc1RvRW5jb2RlZFVSSUNvbXBvbmVudCIsdT1udWxsPT0oZT1yLmRhdGEpP3ZvaWQgMDplLnBheWxvYWQ7aWYoIXUpdGhyb3cgRXJyb3IoIk5vIHBheWxvYWQiKTtjb25zdCBmPXRbb10odSk7cG9zdE1lc3NhZ2UoZil9fSgpOwo=",blob="undefined"!=typeof window&&window.Blob&&new Blob([atob(encodedJs)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper(){let b;try{if(b=blob&&(window.URL||window.webkitURL).createObjectURL(blob),!b)throw"";return new Worker(b)}catch(dV){return new Worker("data:application/javascript;base64,"+encodedJs)}finally{b&&(window.URL||window.webkitURL).revokeObjectURL(b)}}K.RED,K.LIMEGREEN,K.BLUE;const scenario=new Scenario;scenario.settings=new Settings;const scenarioKey="7af359dee11b11ec9dae8f3efcb2fa57";let deserializeDataHandlers={trackedEntity:deserializeEntity,selectedEntity:deserializeEntity},serializeDataHandlers={trackedEntity:serializeEntity,selectedEntity:serializeEntity};const updatedDataSources=writable(null),lastUpdateDataSource=writable(null);scenario.groups;const saveState=async(b=!1)=>{let{...dV}=scenario,FV=JSON.stringify(dV,((b,dV)=>(dV=(null==dV?void 0:dV.subscribe)?get_store_value(dV):dV,serializeDataHandlers[b]&&(dV=serializeDataHandlers[b](dV)),dV)));if(b)return Promise.resolve(FV);{const b=new WorkerWrapper;return b.postMessage({payload:FV,method:"compressToEncodedURIComponent"}),new Promise((dV=>{b.onmessage=FV=>{dV(FV.data),b.terminate()}}))}};let recurseWrite=(b,dV,FV)=>{let EV=FV?b[FV]:b;const qV=FV?dV[FV]:dV;if(null==qV?void 0:qV.subscribe)deserializeDataHandlers[FV]&&(EV=deserializeDataHandlers[FV](EV)),qV.set(EV);else for(let $V in EV)recurseWrite(EV,qV,$V)};const _loadState=b=>{let dV=JSON.parse(b,((b,dV)=>{var FV;return"object"==typeof dV&&"Buffer"===(null==dV?void 0:dV.type)&&(null==(FV=null==dV?void 0:dV.data)?void 0:FV.length)?Buffer.from(dV):dV}));return recurseWrite(dV,scenario),1},loadState=async(b,dV=!1)=>{if(dV)return Promise.resolve(_loadState(b));{const dV=new WorkerWrapper;return dV.postMessage({payload:b,method:"decompressFromEncodedURIComponent"}),new Promise(((b,FV)=>{dV.onmessage=dV=>{try{let{data:FV}=dV;"string"==typeof FV&&b(_loadState(FV))}catch(EV){console.error(EV),FV(0)}}}))}},loadScenarioFromURL=async()=>{let b=new URL(document.URL),dV=new URLSearchParams(b.search).get(scenarioKey);if(dV)return loadState(dV).then((b=>{}))};let subscriptions=[];viewer.subscribe((async b=>{const dV=globalThis.viewer;if(!dV)return;for(;subscriptions.length;){subscriptions.pop()()}removeEvents(),initEvents(dV);let{referenceFrame:FV,depthTestAgainstTerrain:EV,skyAtmosphere:qV,enableLighting:$V,highDynamicRange:dd,CameraSettings:Td,showLatLonGrid:Ed,showLatLonLabels:kd}=scenario.settings;const{settings:Sd,satelliteCatalogDataProviders:Xd}=scenario;dV.referenceFrame=get_store_value(FV),dV.cesiumWidget.scene.skyAtmosphere.show=get_store_value(qV),dV.scene.screenSpaceCameraController.enableCollisionDetection=!0,dV.scene.globe.enableLighting=get_store_value($V),dV.scene.globe.depthTestAgainstTerrain=get_store_value(EV),dV.scene.highDynamicRange=get_store_value(dd),Td.enableMatrixMode.set(!0);const saveAndUpdate=async()=>{await saveState(),dV.scene.render()};let Cd,_d;subscriptions.push(FV.subscribe((async b=>{dV.referenceFrame=b,await saveAndUpdate()}))),subscriptions.push(qV.subscribe((async b=>{dV.cesiumWidget.scene.skyAtmosphere.show=b,await saveAndUpdate()}))),subscriptions.push($V.subscribe((async b=>{dV.scene.globe.enableLighting=b,dV.nightImageryLayer&&(dV.nightImageryLayer.show=b),await saveAndUpdate()}))),subscriptions.push(EV.subscribe((async b=>{dV.scene.globe.depthTestAgainstTerrain=b,await saveAndUpdate()}))),subscriptions.push(dd.subscribe((async b=>{dV.scene.highDynamicRange=b,await saveAndUpdate()}))),subscriptions.push(Td.enableMatrixMode.subscribe((async b=>{b?addMatrixModeScreenSpaceEventHandler(dV):removeMatrixModeScreenSpaceEventHandler(),await saveAndUpdate()}))),subscriptions.push(Sd.ClockSettings.shouldAnimate.subscribe((async b=>{dV.clock.shouldAnimate=!!b,await saveAndUpdate()}))),subscriptions.push(Sd.ClockSettings.multiplier.subscribe((async b=>{dV.clock.multiplier=b,await saveAndUpdate()}))),subscriptions.push(Sd.debugFPS.subscribe((async b=>{dV.scene.debugShowFramesPerSecond=b,await saveAndUpdate()}))),subscriptions.push(Sd.fxaa.subscribe((async b=>{dV.scene.fxaa=b,await saveAndUpdate()}))),subscriptions.push(Sd.resolutionScale.subscribe((async b=>{dV.resolutionScale=b,await saveAndUpdate()}))),subscriptions.push(Sd.useBrowserRecommendedResolution.subscribe((async b=>{dV.useBrowserRecommendedResolution=b,await saveAndUpdate()}))),yB.defaultApiKey=atob("QUl6YVN5RGlzTDdOODMwaUtLTWZ6RllQT1FCeVQteXh5U2FzLTI0"),subscriptions.push(Sd.google3DTiles.subscribe((async b=>{b&&!Cd&&(Cd=await Iut()),!dV.scene.primitives.contains(Cd)&&b?(dV.scene.primitives.add(Cd),Sd.showLatLonGrid.set(!1),Sd.showLatLonLabels.set(!1)):b||(dV.scene.primitives.remove(Cd),Cd=void 0),await saveAndUpdate()}))),subscriptions.push(Xd.subscribe((async b=>{for(const FV of b)if(FV.OMM_URL){let b=await(await fetch(FV.OMM_URL)).arrayBuffer(),EV=FV.CAT_URL?await(await fetch(FV.CAT_URL)).arrayBuffer():new ArrayBuffer(0),qV=dV.dataSources.getByName(FV.name)[0],$V=qV||new n9({...FV,entityDefault:{point:{pixelSize:1,color:K.WHITE.withAlpha(.7)}}});await $V.loadOMM(b,EV),qV||await dV.dataSources.add($V),updatedDataSources.set(new Date),lastUpdateDataSource.set(FV.name)}await saveAndUpdate()}))),subscriptions.push(Ed.subscribe((async b=>{!_d&&b?(_d=new rSt(dV),_d.showLabels=get_store_value(kd),_d.drawGrid(_d.currentExtent)):_d&&!b&&(_d.destroy(),_d=void 0),await saveAndUpdate()}))),subscriptions.push(kd.subscribe((async b=>{_d&&(_d.showLabels=b,_d.drawGrid(_d.currentExtent)),await saveAndUpdate()})))}));const appVersion="0.8.4+1722443272660";let rfSwap,swapAlt;loadScenarioFromURL();let _old=null,clearAlt=5e4;const addRFSwap=b=>{let{settings:dV}=scenario,{referenceFrame:FV}=dV,{referenceFrameSwapAltitude:EV}=dV.CameraSettings;EV.subscribe((b=>{swapAlt=b})),FV.subscribe((b=>{})),rfSwap||(rfSwap=b.clock.onTick.addEventListener((()=>{const{nightImageryLayer:dV}=b,EV=b.camera._positionCartographic.height;EV=clearAlt&&EV=swapAlt&&(dV&&(dV.alpha=1),null!==_old&&(FV.set(_old),_old=null))})))},addButton=(b,dV=!1)=>{const FV=document.querySelector(".cesium-viewer-toolbar");if(!FV)throw new Error("Toolbar not found");const EV=document.createElement("button");return EV.className="cesium-button cesium-toolbar-button added-button",new b({target:EV}),FV[dV?"prepend":"appendChild"](EV),EV};function create_fragment$F(b){let dV;return{c(){dV=svg_element("g")},m(FV,EV){insert(FV,dV,EV),dV.innerHTML=b[0]},p(b,[FV]){1&FV&&(dV.innerHTML=b[0])},i:noop$1,o:noop$1,d(b){b&&detach(dV)}}}function instance$C(b,dV,FV){let EV=870711;let qV="",{data:$V}=dV;function getRaw(b){if(!b||!b.raw)return"";let dV=b.raw;const FV={};return dV=dV.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,((b,dV)=>{const qV=(EV+=1,`fa-${EV.toString(16)}`);return FV[dV]=qV,` id="${qV}"`})),dV=dV.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,((b,dV,EV,qV)=>{const $V=dV||qV;return $V&&FV[$V]?`#${FV[$V]}`:b})),dV}return b.$$set=b=>{"data"in b&&FV(1,$V=b.data)},b.$$.update=()=>{2&b.$$.dirty&&FV(0,qV=getRaw($V))},[qV,$V]}class Raw extends SvelteComponent{constructor(b){super(),init(this,b,instance$C,create_fragment$F,safe_not_equal,{data:1})}}const Svg_svelte_svelte_type_style_lang="";function create_fragment$E(b){let dV,FV,EV,qV;const $V=b[12].default,dd=create_slot($V,b,b[11],null);let Td=[{version:"1.1"},{class:FV="fa-icon "+b[0]},{width:b[1]},{height:b[2]},{"aria-label":b[9]},{role:EV=b[9]?"img":"presentation"},{viewBox:b[3]},{style:b[8]},b[10]],Ed={};for(let kd=0;kd{dV=assign(assign({},dV),exclude_internal_props(b)),FV(10,qV=compute_rest_props(dV,EV)),"class"in b&&FV(0,Td=b.class),"width"in b&&FV(1,Ed=b.width),"height"in b&&FV(2,kd=b.height),"box"in b&&FV(3,Sd=b.box),"spin"in b&&FV(4,Xd=b.spin),"inverse"in b&&FV(5,Cd=b.inverse),"pulse"in b&&FV(6,_d=b.pulse),"flip"in b&&FV(7,el=b.flip),"style"in b&&FV(8,Xl=b.style),"label"in b&&FV(9,Il=b.label),"$$scope"in b&&FV(11,dd=b.$$scope)},[Td,Ed,kd,Sd,Xd,Cd,_d,el,Xl,Il,qV,dd,$V]}class Svg extends SvelteComponent{constructor(b){super(),init(this,b,instance$B,create_fragment$E,safe_not_equal,{class:0,width:1,height:2,box:3,spin:4,inverse:5,pulse:6,flip:7,style:8,label:9})}}function get_each_context$8(b,dV,FV){const EV=b.slice();return EV[24]=dV[FV],EV}function get_each_context_1$1(b,dV,FV){const EV=b.slice();return EV[27]=dV[FV],EV}function create_if_block$h(b){let dV,FV,EV,qV,$V=b[6].paths&&create_if_block_3$7(b),dd=b[6].polygons&&create_if_block_2$8(b),Td=b[6].raw&&create_if_block_1$c(b);return{c(){$V&&$V.c(),dV=space(),dd&&dd.c(),FV=space(),Td&&Td.c(),EV=empty$1()},m(b,Ed){$V&&$V.m(b,Ed),insert(b,dV,Ed),dd&&dd.m(b,Ed),insert(b,FV,Ed),Td&&Td.m(b,Ed),insert(b,EV,Ed),qV=!0},p(b,qV){b[6].paths?$V?$V.p(b,qV):($V=create_if_block_3$7(b),$V.c(),$V.m(dV.parentNode,dV)):$V&&($V.d(1),$V=null),b[6].polygons?dd?dd.p(b,qV):(dd=create_if_block_2$8(b),dd.c(),dd.m(FV.parentNode,FV)):dd&&(dd.d(1),dd=null),b[6].raw?Td?(Td.p(b,qV),64&qV&&transition_in(Td,1)):(Td=create_if_block_1$c(b),Td.c(),transition_in(Td,1),Td.m(EV.parentNode,EV)):Td&&(group_outros(),transition_out(Td,1,1,(()=>{Td=null})),check_outros())},i(b){qV||(transition_in(Td),qV=!0)},o(b){transition_out(Td),qV=!1},d(b){b&&(detach(dV),detach(FV),detach(EV)),$V&&$V.d(b),dd&&dd.d(b),Td&&Td.d(b)}}}function create_if_block_3$7(b){let dV,FV=ensure_array_like(b[6].paths),EV=[];for(let qV=0;qVbind(dV,"data",raw_data_binding))),{c(){create_component(dV.$$.fragment)},m(b,FV){mount_component(dV,b,FV),EV=!0},p(b,EV){const qV={};!FV&&64&EV&&(FV=!0,qV.data=b[6],add_flush_callback((()=>FV=!1))),dV.$set(qV)},i(b){EV||(transition_in(dV.$$.fragment,b),EV=!0)},o(b){transition_out(dV.$$.fragment,b),EV=!1},d(b){destroy_component(dV,b)}}}function fallback_block(b){let dV,FV,EV=b[6]&&create_if_block$h(b);return{c(){EV&&EV.c(),dV=empty$1()},m(b,qV){EV&&EV.m(b,qV),insert(b,dV,qV),FV=!0},p(b,FV){b[6]?EV?(EV.p(b,FV),64&FV&&transition_in(EV,1)):(EV=create_if_block$h(b),EV.c(),transition_in(EV,1),EV.m(dV.parentNode,dV)):EV&&(group_outros(),transition_out(EV,1,1,(()=>{EV=null})),check_outros())},i(b){FV||(transition_in(EV),FV=!0)},o(b){transition_out(EV),FV=!1},d(b){b&&detach(dV),EV&&EV.d(b)}}}function create_default_slot(b){let dV;const FV=b[15].default,EV=create_slot(FV,b,b[17],null),qV=EV||fallback_block(b);return{c(){qV&&qV.c()},m(b,FV){qV&&qV.m(b,FV),dV=!0},p(b,$V){EV?EV.p&&(!dV||131072&$V)&&update_slot_base(EV,FV,b,b[17],dV?get_slot_changes(FV,b[17],$V,null):get_all_dirty_from_scope(b[17]),null):qV&&qV.p&&(!dV||64&$V)&&qV.p(b,dV?$V:-1)},i(b){dV||(transition_in(qV,b),dV=!0)},o(b){transition_out(qV,b),dV=!1},d(b){qV&&qV.d(b)}}}function create_fragment$D(b){let dV,FV;const EV=[{label:b[5]},{width:b[7]},{height:b[8]},{box:b[10]},{style:b[9]},{spin:b[1]},{flip:b[4]},{inverse:b[2]},{pulse:b[3]},{class:b[0]},b[11]];let qV={$$slots:{default:[create_default_slot]},$$scope:{ctx:b}};for(let $V=0;$V({d:b})))}}else dV=Object.keys(b)[0],FV=b[dV];return FV}console.error("`import faIconName from '@fortawesome/package-name/faIconName` not supported - Please use `import { faIconName } from '@fortawesome/package-name/faIconName'` instead")}}function instance$A(b,dV,FV){const EV=["class","data","scale","spin","inverse","pulse","flip","label","style"];let qV,$V,dd,Td=compute_rest_props(dV,EV),{$$slots:Ed={},$$scope:kd}=dV,{class:Sd=""}=dV,{data:Xd}=dV,{scale:Cd=1}=dV,{spin:_d=!1}=dV,{inverse:el=!1}=dV,{pulse:Xl=!1}=dV,{flip:Il}=dV,{label:Hl=""}=dV,{style:$l=""}=dV,tR=10,ER=10;function normalisedScale(){let b=1;return void 0!==Cd&&(b=Number(Cd)),isNaN(b)||b<=0?(console.warn('Invalid prop: prop "scale" should be a number over 0.'),outerScale):b*outerScale}function calculateRatio(){return qV?Math.max(qV.width,qV.height)/16:1}return b.$$set=b=>{dV=assign(assign({},dV),exclude_internal_props(b)),FV(11,Td=compute_rest_props(dV,EV)),"class"in b&&FV(0,Sd=b.class),"data"in b&&FV(12,Xd=b.data),"scale"in b&&FV(13,Cd=b.scale),"spin"in b&&FV(1,_d=b.spin),"inverse"in b&&FV(2,el=b.inverse),"pulse"in b&&FV(3,Xl=b.pulse),"flip"in b&&FV(4,Il=b.flip),"label"in b&&FV(5,Hl=b.label),"style"in b&&FV(14,$l=b.style),"$$scope"in b&&FV(17,kd=b.$$scope)},b.$$.update=()=>{28672&b.$$.dirty&&(FV(6,qV=normaliseData(Xd)),FV(7,tR=qV?qV.width/calculateRatio()*normalisedScale():0),FV(8,ER=qV?qV.height/calculateRatio()*normalisedScale():0),FV(9,$V=function(){let b="";null!==$l&&(b+=$l);let dV=normalisedScale();return 1===dV?0===b.length?"":b:(""===b||b.endsWith(";")||(b+="; "),`${b}font-size: ${dV}em`)}()),FV(10,dd=qV?`0 0 ${qV.width} ${qV.height}`:`0 0 ${tR} ${ER}`))},[Sd,_d,el,Xl,Il,Hl,qV,tR,ER,$V,dd,Td,Xd,Cd,$l,Ed,function(b){qV=b,FV(6,qV),FV(12,Xd),FV(14,$l),FV(13,Cd)},kd]}class Icon extends SvelteComponent{constructor(b){super(),init(this,b,instance$A,create_fragment$D,safe_not_equal,{class:0,data:12,scale:13,spin:1,inverse:2,pulse:3,flip:4,label:5,style:14})}}var faUser={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"]},faSatellite={prefix:"fas",iconName:"satellite",icon:[512,512,[128752],"f7bf","M233 7c-9.4-9.4-24.6-9.4-33.9 0l-96 96c-9.4 9.4-9.4 24.6 0 33.9l89.4 89.4-15.5 15.5C152.3 230.4 124.9 224 96 224c-31.7 0-61.5 7.7-87.8 21.2c-9 4.7-10.3 16.7-3.1 23.8L112.7 376.7 96.3 393.1c-2.6-.7-5.4-1.1-8.3-1.1c-17.7 0-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32c0-2.9-.4-5.6-1.1-8.3l16.4-16.4L242.9 506.9c7.2 7.2 19.2 5.9 23.8-3.1C280.3 477.5 288 447.7 288 416c0-28.9-6.4-56.3-17.8-80.9l15.5-15.5L375 409c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9l-89.4-89.4 55-55c12.5-12.5 12.5-32.8 0-45.3l-48-48c-12.5-12.5-32.8-12.5-45.3 0l-55 55L233 7zm159 351l-72.4-72.4 62.1-62.1L454.1 296 392 358.1zM226.3 192.4L153.9 120 216 57.9l72.4 72.4-62.1 62.1z"]},faCamera={prefix:"fas",iconName:"camera",icon:[512,512,[62258,"camera-alt"],"f030","M149.1 64.8L138.7 96H64C28.7 96 0 124.7 0 160V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H373.3L362.9 64.8C356.4 45.2 338.1 32 317.4 32H194.6c-20.7 0-39 13.2-45.5 32.8zM256 192a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},faMeteor={prefix:"fas",iconName:"meteor",icon:[512,512,[9732],"f753","M493.7 .9L299.4 75.6l2.3-29.3c1-12.8-12.8-21.5-24-15.1L101.3 133.4C38.6 169.7 0 236.6 0 309C0 421.1 90.9 512 203 512c72.4 0 139.4-38.6 175.7-101.3L480.8 234.3c6.5-11.1-2.2-25-15.1-24l-29.3 2.3L511.1 18.3c.6-1.5 .9-3.2 .9-4.8C512 6 506 0 498.5 0c-1.7 0-3.3 .3-4.8 .9zM192 192a128 128 0 1 1 0 256 128 128 0 1 1 0-256zm0 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm16 96a16 16 0 1 0 0-32 16 16 0 1 0 0 32z"]},faRocket={prefix:"fas",iconName:"rocket",icon:[512,512,[],"f135","M156.6 384.9L125.7 354c-8.5-8.5-11.5-20.8-7.7-32.2c3-8.9 7-20.5 11.8-33.8L24 288c-8.6 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.3 0c2.4-4 4.8-7.7 7.2-11.3C289.1-4.1 411.1-8.1 483.9 5.3c11.6 2.1 20.6 11.2 22.8 22.8c13.4 72.9 9.3 194.8-111.4 276.7c-3.5 2.4-7.3 4.8-11.3 7.2v82.3c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1 .2s-12.1-12.2-12.1-20.9V380.8c-14.1 4.9-26.4 8.9-35.7 11.9c-11.2 3.6-23.4 .5-31.8-7.8zM384 168a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},faBuilding={prefix:"fas",iconName:"building",icon:[384,512,[127970,61687],"f1ad","M48 0C21.5 0 0 21.5 0 48V464c0 26.5 21.5 48 48 48h96V432c0-26.5 21.5-48 48-48s48 21.5 48 48v80h96c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48H48zM64 240c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V240zm112-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V240c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V240zM80 96h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V112zM272 96h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16z"]},faDatabase={prefix:"fas",iconName:"database",icon:[448,512,[],"f1c0","M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z"]};const videoCamera={"video-camera":{width:1792,height:1792,paths:[{d:"M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"}]}},chevronLeft={"chevron-left":{width:1280,height:1792,paths:[{d:"M1171 301l-531 531 531 531q19 19 19 45t-19 45l-166 166q-19 19-45 19t-45-19l-742-742q-19-19-19-45t19-45l742-742q19-19 45-19t45 19l166 166q19 19 19 45t-19 45z"}]}},eye={eye:{width:1792,height:1792,paths:[{d:"M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zM944 576q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zM1792 960q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"}]}},eyeSlash={"eye-slash":{width:1792,height:1792,paths:[{d:"M555 1335l78-141q-87-63-136-159t-49-203q0-121 61-225-229 117-381 353 167 258 427 375zM944 576q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zM1307 385q0 7-1 9-106 189-316 567t-315 566l-49 89q-10 16-28 16-12 0-134-70-16-10-16-28 0-12 44-87-143-65-263.5-173t-208.5-245q-20-31-20-69t20-69q153-235 380-371t496-136q89 0 180 17l54-97q10-16 28-16 5 0 18 6t31 15.5 33 18.5 31.5 18.5 19.5 11.5q16 10 16 27zM1344 832q0 139-79 253.5t-209 164.5l280-502q8 45 8 84zM1792 960q0 35-20 69-39 64-109 145-150 172-347.5 267t-419.5 95l74-132q212-18 392.5-137t301.5-307q-115-179-282-294l63-112q95 64 182.5 153t144.5 184q20 34 20 69z"}]}},warning={warning:{width:1792,height:1792,paths:[{d:"M1024 1375v-190q0-14-9.5-23.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 23.5v190q0 14 9.5 23.5t22.5 9.5h192q13 0 22.5-9.5t9.5-23.5zM1022 1001l18-459q0-12-10-19-13-11-24-11h-220q-11 0-24 11-10 7-10 21l17 457q0 10 10 16.5t24 6.5h185q14 0 23.5-6.5t10.5-16.5zM1008 67l768 1408q35 63-2 126-17 29-46.5 46t-63.5 17h-1536q-34 0-63.5-17t-46.5-46q-37-63-2-126l768-1408q17-31 47-49t65-18 65 18 47 49z"}]}},folder={folder:{width:1664,height:1792,paths:[{d:"M1664 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"}]}},gears={gears:{width:1920,height:1792,paths:[{d:"M896 896q0-106-75-181t-181-75-181 75-75 181 75 181 181 75 181-75 75-181zM1664 1408q0-52-38-90t-90-38-90 38-38 90q0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zM1664 384q0-52-38-90t-90-38-90 38-38 90q0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zM1280 805v185q0 10-7 19.5t-16 10.5l-155 24q-11 35-32 76 34 48 90 115 7 11 7 20 0 12-7 19-23 30-82.5 89.5t-78.5 59.5q-11 0-21-7l-115-90q-37 19-77 31-11 108-23 155-7 24-30 24h-186q-11 0-20-7.5t-10-17.5l-23-153q-34-10-75-31l-118 89q-7 7-20 7-11 0-21-8-144-133-144-160 0-9 7-19 10-14 41-53t47-61q-23-44-35-82l-152-24q-10-1-17-9.5t-7-19.5v-185q0-10 7-19.5t16-10.5l155-24q11-35 32-76-34-48-90-115-7-11-7-20 0-12 7-20 22-30 82-89t79-59q11 0 21 7l115 90q34-18 77-32 11-108 23-154 7-24 30-24h186q11 0 20 7.5t10 17.5l23 153q34 10 75 31l118-89q8-7 20-7 11 0 21 8 144 133 144 160 0 8-7 19-12 16-42 54t-45 60q23 48 34 82l152 23q10 2 17 10.5t7 19.5zM1920 1338v140q0 16-149 31-12 27-30 52 51 113 51 138 0 4-4 7-122 71-124 71-8 0-46-47t-52-68q-20 2-30 2t-30-2q-14 21-52 68t-46 47q-2 0-124-71-4-3-4-7 0-25 51-138-18-25-30-52-149-15-149-31v-140q0-16 149-31 13-29 30-52-51-113-51-138 0-4 4-7 4-2 35-20t59-34 30-16q8 0 46 46.5t52 67.5q20-2 30-2t30 2q51-71 92-112l6-2q4 0 124 70 4 3 4 7 0 25-51 138 17 23 30 52 149 15 149 31zM1920 314v140q0 16-149 31-12 27-30 52 51 113 51 138 0 4-4 7-122 71-124 71-8 0-46-47t-52-68q-20 2-30 2t-30-2q-14 21-52 68t-46 47q-2 0-124-71-4-3-4-7 0-25 51-138-18-25-30-52-149-15-149-31v-140q0-16 149-31 13-29 30-52-51-113-51-138 0-4 4-7 4-2 35-20t59-34 30-16q8 0 46 46.5t52 67.5q20-2 30-2t30 2q51-71 92-112l6-2q4 0 124 70 4 3 4 7 0 25-51 138 17 23 30 52 149 15 149 31z"}]}},table={table:{width:1664,height:1792,paths:[{d:"M512 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM512 992v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1024 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM512 608v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1024 992v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1536 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1024 608v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1536 992v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1536 608v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zM1664 288v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"}]}},angleDoubleDown={"angle-double-down":{width:1152,height:1792,paths:[{d:"M1075 864q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23zM1075 480q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"}]}},trash={trash:{width:1408,height:1792,paths:[{d:"M512 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zM768 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zM1024 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zM480 384h448l-48-117q-7-9-17-11h-317q-10 2-17 11zM1408 416v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"}]}},content=writable(void 0),template=writable(void 0),title=writable(void 0),lastcontent=writable(void 0),SIZE_PREFIX_LENGTH=4,int32=new Int32Array(2);var Encoding,Encoding2;new Float32Array(int32.buffer),new Float64Array(int32.buffer),new Uint16Array(new Uint8Array([1,0]).buffer)[0],Encoding2=Encoding||(Encoding={}),Encoding2[Encoding2.UTF8_BYTES=1]="UTF8_BYTES",Encoding2[Encoding2.UTF16_STRING=2]="UTF16_STRING";var ScoreType=(b=>(b[b.OUTLIER=0]="OUTLIER",b))(ScoreType||{});class Score{constructor(){__publicField(this,"bb",null),__publicField(this,"bb_pos",0)}__init(b,dV){return this.bb_pos=b,this.bb=dV,this}static getRootAsScore(b,dV){return(dV||new Score).__init(b.readInt32(b.position())+b.position(),b)}static getSizePrefixedRootAsScore(b,dV){return b.setPosition(b.position()+SIZE_PREFIX_LENGTH),(dV||new Score).__init(b.readInt32(b.position())+b.position(),b)}NORAD_CAT_ID(b){const dV=this.bb.__offset(this.bb_pos,4);return dV?this.bb.__string(this.bb_pos+dV,b):null}TYPE(){const b=this.bb.__offset(this.bb_pos,6);return b?this.bb.readInt8(this.bb_pos+b):ScoreType.OUTLIER}TAG(b){const dV=this.bb.__offset(this.bb_pos,8);return dV?this.bb.__string(this.bb_pos+dV,b):null}SCORE(){const b=this.bb.__offset(this.bb_pos,10);return b?this.bb.readFloat32(this.bb_pos+b):0}static startScore(b){b.startObject(4)}static addNoradCatId(b,dV){b.addFieldOffset(0,dV,0)}static addType(b,dV){b.addFieldInt8(1,dV,ScoreType.OUTLIER)}static addTag(b,dV){b.addFieldOffset(2,dV,0)}static addScore(b,dV){b.addFieldFloat32(3,dV,0)}static endScore(b){return b.endObject()}static createScore(b,dV,FV,EV,qV){return Score.startScore(b),Score.addNoradCatId(b,dV),Score.addType(b,FV),Score.addTag(b,EV),Score.addScore(b,qV),Score.endScore(b)}unpack(){return new ScoreT(this.NORAD_CAT_ID(),this.TYPE(),this.TAG(),this.SCORE())}unpackTo(b){b.NORAD_CAT_ID=this.NORAD_CAT_ID(),b.TYPE=this.TYPE(),b.TAG=this.TAG(),b.SCORE=this.SCORE()}}class ScoreT{constructor(b=null,dV=ScoreType.OUTLIER,FV=null,EV=0){this.NORAD_CAT_ID=b,this.TYPE=dV,this.TAG=FV,this.SCORE=EV}pack(b){const dV=null!==this.NORAD_CAT_ID?b.createString(this.NORAD_CAT_ID):0,FV=null!==this.TAG?b.createString(this.TAG):0;return Score.createScore(b,dV,this.TYPE,FV,this.SCORE)}}class HYP{constructor(){__publicField(this,"bb",null),__publicField(this,"bb_pos",0)}__init(b,dV){return this.bb_pos=b,this.bb=dV,this}static getRootAsHYP(b,dV){return(dV||new HYP).__init(b.readInt32(b.position())+b.position(),b)}static getSizePrefixedRootAsHYP(b,dV){return b.setPosition(b.position()+SIZE_PREFIX_LENGTH),(dV||new HYP).__init(b.readInt32(b.position())+b.position(),b)}static bufferHasIdentifier(b){return b.__has_identifier("$HYP")}CAT_IDS(b,dV){const FV=this.bb.__offset(this.bb_pos,4);return FV?this.bb.__string(this.bb.__vector(this.bb_pos+FV)+4*b,dV):null}catIdsLength(){const b=this.bb.__offset(this.bb_pos,4);return b?this.bb.__vector_len(this.bb_pos+b):0}SIT_IDS(b,dV){const FV=this.bb.__offset(this.bb_pos,6);return FV?this.bb.__string(this.bb.__vector(this.bb_pos+FV)+4*b,dV):null}sitIdsLength(){const b=this.bb.__offset(this.bb_pos,6);return b?this.bb.__vector_len(this.bb_pos+b):0}NAME(b){const dV=this.bb.__offset(this.bb_pos,8);return dV?this.bb.__string(this.bb_pos+dV,b):null}CATEGORY(b){const dV=this.bb.__offset(this.bb_pos,10);return dV?this.bb.__string(this.bb_pos+dV,b):null}ROW_INDICATORS(b,dV){const FV=this.bb.__offset(this.bb_pos,12);return FV?this.bb.__string(this.bb.__vector(this.bb_pos+FV)+4*b,dV):null}rowIndicatorsLength(){const b=this.bb.__offset(this.bb_pos,12);return b?this.bb.__vector_len(this.bb_pos+b):0}COL_INDICATORS(b,dV){const FV=this.bb.__offset(this.bb_pos,14);return FV?this.bb.__string(this.bb.__vector(this.bb_pos+FV)+4*b,dV):null}colIndicatorsLength(){const b=this.bb.__offset(this.bb_pos,14);return b?this.bb.__vector_len(this.bb_pos+b):0}MATRIX(b){const dV=this.bb.__offset(this.bb_pos,16);return!!dV&&!!this.bb.readInt8(this.bb.__vector(this.bb_pos+dV)+b)}matrixLength(){const b=this.bb.__offset(this.bb_pos,16);return b?this.bb.__vector_len(this.bb_pos+b):0}matrixArray(){const b=this.bb.__offset(this.bb_pos,16);return b?new Int8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+b),this.bb.__vector_len(this.bb_pos+b)):null}SCORE(b,dV){const FV=this.bb.__offset(this.bb_pos,18);return FV?(dV||new Score).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+FV)+4*b),this.bb):null}scoreLength(){const b=this.bb.__offset(this.bb_pos,18);return b?this.bb.__vector_len(this.bb_pos+b):0}ANALYSIS_METHOD(b){const dV=this.bb.__offset(this.bb_pos,20);return dV?this.bb.__string(this.bb_pos+dV,b):null}EVENT_START_TIME(b){const dV=this.bb.__offset(this.bb_pos,22);return dV?this.bb.__string(this.bb_pos+dV,b):null}EVENT_END_TIME(b){const dV=this.bb.__offset(this.bb_pos,24);return dV?this.bb.__string(this.bb_pos+dV,b):null}static startHYP(b){b.startObject(11)}static addCatIds(b,dV){b.addFieldOffset(0,dV,0)}static createCatIdsVector(b,dV){b.startVector(4,dV.length,4);for(let FV=dV.length-1;FV>=0;FV--)b.addOffset(dV[FV]);return b.endVector()}static startCatIdsVector(b,dV){b.startVector(4,dV,4)}static addSitIds(b,dV){b.addFieldOffset(1,dV,0)}static createSitIdsVector(b,dV){b.startVector(4,dV.length,4);for(let FV=dV.length-1;FV>=0;FV--)b.addOffset(dV[FV]);return b.endVector()}static startSitIdsVector(b,dV){b.startVector(4,dV,4)}static addName(b,dV){b.addFieldOffset(2,dV,0)}static addCategory(b,dV){b.addFieldOffset(3,dV,0)}static addRowIndicators(b,dV){b.addFieldOffset(4,dV,0)}static createRowIndicatorsVector(b,dV){b.startVector(4,dV.length,4);for(let FV=dV.length-1;FV>=0;FV--)b.addOffset(dV[FV]);return b.endVector()}static startRowIndicatorsVector(b,dV){b.startVector(4,dV,4)}static addColIndicators(b,dV){b.addFieldOffset(5,dV,0)}static createColIndicatorsVector(b,dV){b.startVector(4,dV.length,4);for(let FV=dV.length-1;FV>=0;FV--)b.addOffset(dV[FV]);return b.endVector()}static startColIndicatorsVector(b,dV){b.startVector(4,dV,4)}static addMatrix(b,dV){b.addFieldOffset(6,dV,0)}static createMatrixVector(b,dV){b.startVector(1,dV.length,1);for(let FV=dV.length-1;FV>=0;FV--)b.addInt8(+dV[FV]);return b.endVector()}static startMatrixVector(b,dV){b.startVector(1,dV,1)}static addScore(b,dV){b.addFieldOffset(7,dV,0)}static createScoreVector(b,dV){b.startVector(4,dV.length,4);for(let FV=dV.length-1;FV>=0;FV--)b.addOffset(dV[FV]);return b.endVector()}static startScoreVector(b,dV){b.startVector(4,dV,4)}static addAnalysisMethod(b,dV){b.addFieldOffset(8,dV,0)}static addEventStartTime(b,dV){b.addFieldOffset(9,dV,0)}static addEventEndTime(b,dV){b.addFieldOffset(10,dV,0)}static endHYP(b){return b.endObject()}static finishHYPBuffer(b,dV){b.finish(dV,"$HYP")}static finishSizePrefixedHYPBuffer(b,dV){b.finish(dV,"$HYP",!0)}static createHYP(b,dV,FV,EV,qV,$V,dd,Td,Ed,kd,Sd,Xd){return HYP.startHYP(b),HYP.addCatIds(b,dV),HYP.addSitIds(b,FV),HYP.addName(b,EV),HYP.addCategory(b,qV),HYP.addRowIndicators(b,$V),HYP.addColIndicators(b,dd),HYP.addMatrix(b,Td),HYP.addScore(b,Ed),HYP.addAnalysisMethod(b,kd),HYP.addEventStartTime(b,Sd),HYP.addEventEndTime(b,Xd),HYP.endHYP(b)}unpack(){return new HYPT(this.bb.createScalarList(this.CAT_IDS.bind(this),this.catIdsLength()),this.bb.createScalarList(this.SIT_IDS.bind(this),this.sitIdsLength()),this.NAME(),this.CATEGORY(),this.bb.createScalarList(this.ROW_INDICATORS.bind(this),this.rowIndicatorsLength()),this.bb.createScalarList(this.COL_INDICATORS.bind(this),this.colIndicatorsLength()),this.bb.createScalarList(this.MATRIX.bind(this),this.matrixLength()),this.bb.createObjList(this.SCORE.bind(this),this.scoreLength()),this.ANALYSIS_METHOD(),this.EVENT_START_TIME(),this.EVENT_END_TIME())}unpackTo(b){b.CAT_IDS=this.bb.createScalarList(this.CAT_IDS.bind(this),this.catIdsLength()),b.SIT_IDS=this.bb.createScalarList(this.SIT_IDS.bind(this),this.sitIdsLength()),b.NAME=this.NAME(),b.CATEGORY=this.CATEGORY(),b.ROW_INDICATORS=this.bb.createScalarList(this.ROW_INDICATORS.bind(this),this.rowIndicatorsLength()),b.COL_INDICATORS=this.bb.createScalarList(this.COL_INDICATORS.bind(this),this.colIndicatorsLength()),b.MATRIX=this.bb.createScalarList(this.MATRIX.bind(this),this.matrixLength()),b.SCORE=this.bb.createObjList(this.SCORE.bind(this),this.scoreLength()),b.ANALYSIS_METHOD=this.ANALYSIS_METHOD(),b.EVENT_START_TIME=this.EVENT_START_TIME(),b.EVENT_END_TIME=this.EVENT_END_TIME()}}class HYPT{constructor(b=[],dV=[],FV=null,EV=null,qV=[],$V=[],dd=[],Td=[],Ed=null,kd=null,Sd=null){this.CAT_IDS=b,this.SIT_IDS=dV,this.NAME=FV,this.CATEGORY=EV,this.ROW_INDICATORS=qV,this.COL_INDICATORS=$V,this.MATRIX=dd,this.SCORE=Td,this.ANALYSIS_METHOD=Ed,this.EVENT_START_TIME=kd,this.EVENT_END_TIME=Sd}pack(b){const dV=HYP.createCatIdsVector(b,b.createObjectOffsetList(this.CAT_IDS)),FV=HYP.createSitIdsVector(b,b.createObjectOffsetList(this.SIT_IDS)),EV=null!==this.NAME?b.createString(this.NAME):0,qV=null!==this.CATEGORY?b.createString(this.CATEGORY):0,$V=HYP.createRowIndicatorsVector(b,b.createObjectOffsetList(this.ROW_INDICATORS)),dd=HYP.createColIndicatorsVector(b,b.createObjectOffsetList(this.COL_INDICATORS)),Td=HYP.createMatrixVector(b,this.MATRIX),Ed=HYP.createScoreVector(b,b.createObjectOffsetList(this.SCORE)),kd=null!==this.ANALYSIS_METHOD?b.createString(this.ANALYSIS_METHOD):0,Sd=null!==this.EVENT_START_TIME?b.createString(this.EVENT_START_TIME):0,Xd=null!==this.EVENT_END_TIME?b.createString(this.EVENT_END_TIME):0;return HYP.createHYP(b,dV,FV,EV,qV,$V,dd,Td,Ed,kd,Sd,Xd)}}const nodeREDURL="apollo.sdataplab.com/node-red",messages=createWebSocketStore(nodeREDURL);new Date(0).toISOString();const reFetch=()=>fetch(`https://${nodeREDURL}/messagearchive`,{method:"GET",headers:{"Content-Type":"application/json"}}).then((b=>b.json())).then((b=>{messages.set(b)})).catch((b=>console.error("Error:",b)));function createWebSocketStore(b){const{subscribe:dV,set:FV,update:EV}=writable([]);let qV,$V=0;const connect=()=>{qV=new WebSocket(`wss://${b}/ws`),qV.onopen=()=>{console.log("WebSocket connected"),$V=0},qV.onmessage=b=>{reFetch()},qV.onerror=b=>{console.error("WebSocket error:",b)},qV.onclose=()=>{console.log("WebSocket disconnected"),$V++;const b=Math.min(1e3*2**$V,3e4);setTimeout(connect,b)}};return connect(),{set:FV,subscribe:dV,sendMessage:b=>{qV&&qV.readyState===WebSocket.OPEN&&qV.send(b)},reconnect:()=>{qV?qV.close():connect()}}}reFetch();const getMessageType=b=>{const dV=Object.entries(b).find((([b,dV])=>b.endsWith("COLLECTION")));return dV?dV[0].split("COLLECTION")[0]:"ANY"},activeEvents=writable({}),activeEvent=writable(new HYPT);function create_fragment$C(b){let dV,FV,EV;return{c(){dV=element("div"),dV.textContent="×",attr(dV,"class","select-none cursor-pointer modal-close-button text-gray-100 w-6 h-6 md:w-7 md:h-7 flex items-center justify-center text-[1.5em] pb-[3px] -mr-1")},m(qV,$V){insert(qV,dV,$V),FV||(EV=listen(dV,"click",(function(){is_function(b[0])&&b[0].apply(this,arguments)})),FV=!0)},p(dV,[FV]){b=dV},i:noop$1,o:noop$1,d(b){b&&detach(dV),FV=!1,EV()}}}function instance$z(b,dV,FV){let{onclick:EV=function(){}}=dV;return b.$$set=b=>{"onclick"in b&&FV(0,EV=b.onclick)},[EV]}class CloseButton extends SvelteComponent{constructor(b){super(),init(this,b,instance$z,create_fragment$C,safe_not_equal,{onclick:0})}}const Modal_svelte_svelte_type_style_lang$2="";function get_each_context$7(b,dV,FV){const EV=b.slice();return EV[28]=dV[FV],EV}function create_else_block_1$1(b){let dV,FV,EV=b[4].name+"";return{c(){dV=element("div"),FV=text(EV)},m(b,EV){insert(b,dV,EV),append$1(dV,FV)},p(b,dV){16&dV&&EV!==(EV=b[4].name+"")&&set_data(FV,EV)},d(b){b&&detach(dV)}}}function create_if_block_4$3(b){let dV,FV,EV;return{c(){dV=element("input"),attr(dV,"type","text"),attr(dV,"placeholder","Camera Track From"),attr(dV,"class","border border-gray-300 rounded px-2 py-1")},m(qV,$V){insert(qV,dV,$V),set_input_value(dV,b[0]),FV||(EV=[listen(dV,"input",b[14]),listen(dV,"input",b[15])],FV=!0)},p(b,FV){1&FV&&dV.value!==b[0]&&set_input_value(dV,b[0])},d(b){b&&detach(dV),FV=!1,run_all(EV)}}}function create_else_block$7(b){let dV,FV,EV=b[3].name+"";return{c(){dV=element("div"),FV=text(EV)},m(b,EV){insert(b,dV,EV),append$1(dV,FV)},p(b,dV){8&dV&&EV!==(EV=b[3].name+"")&&set_data(FV,EV)},d(b){b&&detach(dV)}}}function create_if_block_3$6(b){let dV,FV,EV;return{c(){dV=element("input"),attr(dV,"type","text"),attr(dV,"placeholder","Camera Track To"),attr(dV,"class","border border-gray-300 rounded px-2 py-1")},m(qV,$V){insert(qV,dV,$V),set_input_value(dV,b[1]),FV||(EV=[listen(dV,"input",b[16]),listen(dV,"input",b[17])],FV=!0)},p(b,FV){2&FV&&dV.value!==b[1]&&set_input_value(dV,b[1])},d(b){b&&detach(dV),FV=!1,run_all(EV)}}}function create_if_block_2$7(b){let dV,FV,EV;return{c(){dV=element("div"),dV.textContent="Clear",attr(dV,"class","bg-red-500 cursor-pointer p-1 pl-2 pr-2 rounded flex items-center justify-center")},m(qV,$V){insert(qV,dV,$V),FV||(EV=listen(dV,"click",b[12]),FV=!0)},p:noop$1,d(b){b&&detach(dV),FV=!1,EV()}}}function create_if_block_1$b(b){let dV,FV,EV,qV,$V,dd,Td,Ed,kd,Sd,Xd,Cd,_d,el=b[8].az.toFixed(2)+"",Xl=b[8].el.toFixed(2)+"",Il=(b[8].range/1e3).toFixed(2)+"";return{c(){dV=element("div"),FV=element("div"),EV=text("AZ: "),qV=text(el),$V=space(),dd=element("div"),Td=text("EL: "),Ed=text(Xl),kd=space(),Sd=element("div"),Xd=text("RANGE: "),Cd=text(Il),_d=text(" km")},m(b,el){insert(b,dV,el),append$1(dV,FV),append$1(FV,EV),append$1(FV,qV),append$1(dV,$V),append$1(dV,dd),append$1(dd,Td),append$1(dd,Ed),append$1(dV,kd),append$1(dV,Sd),append$1(Sd,Xd),append$1(Sd,Cd),append$1(Sd,_d)},p(b,dV){256&dV&&el!==(el=b[8].az.toFixed(2)+"")&&set_data(qV,el),256&dV&&Xl!==(Xl=b[8].el.toFixed(2)+"")&&set_data(Ed,Xl),256&dV&&Il!==(Il=(b[8].range/1e3).toFixed(2)+"")&&set_data(Cd,Il)},d(b){b&&detach(dV)}}}function create_if_block$g(b){let dV,FV=ensure_array_like(b[7]),EV=[];for(let qV=0;qVCamera Control',dd=space(),create_component(Td.$$.fragment),Ed=space(),kd=element("div"),Sd=element("div"),UN.c(),Xd=space(),iN.c(),Cd=space(),HN&&HN.c(),_d=space(),el=element("div"),vZ&&vZ.c(),Xl=space(),Il=element("div"),Hl=text("Camera Position (ECEF):\n "),$l=element("div"),tR=element("div"),ER=text(SM),sR=space(),GR=element("div"),uR=text(dt),OR=space(),AU=element("div"),mU=text(Zt),wU=space(),oU=element("div"),XU=text("Camera Position:\n "),LU=element("div"),uU=element("div"),PU=element("div"),_U=text(Lt),dT=text("\n LAT"),UT=space(),FT=element("div"),sT=element("div"),DT=text(It),XT=text("\n LON"),JT=space(),LT=element("div"),qT=element("div"),$T=text(jt),AM=text("\n ALT"),attr($V,"class","flex items-center gap-2 w-full justify-between p-1"),attr(qV,"class","flex-none text-xs md:text-sm flex justify-between items-center pl-2 pr-3 pt-2 pb-2 md:pt-2 md:pb-2 border-b border-gray-600"),attr(Sd,"class","flex flex-col gap-2 text-sm w-1/2"),attr(el,"class","flex flex-col gap-1 w-full border overflow-scroll p-2 cursor-pointer"),attr(kd,"class","flex gap-2 w-full flex-grow p-2 overflow-auto"),attr(tR,"class","flex justify-end"),attr(GR,"class","flex justify-end"),attr(AU,"class","flex justify-end"),attr($l,"class","flex-col font-mono"),attr(Il,"class","p-2 pl-4 border-t border-gray-600 flex justify-between text-[.65rem]"),attr(uU,"class","flex justify-between"),attr(FT,"class","flex justify-between"),attr(LT,"class","flex justify-between"),attr(LU,"class","flex-col w-[5rem] font-mono"),attr(oU,"class","p-2 pl-4 border-t border-gray-600 flex justify-between text-[.65rem]"),set_style(EV,"background","rgba(48, 51, 54, .9)"),attr(EV,"class","bg-opacity-75 text-white rounded shadow-xl w-full h-full overflow-auto flex flex-col border border-gray-600"),attr(FV,"class","flex justify-center items-center z-50 w-full h-full"),attr(dV,"class","fixed mt-12 pr-2 pl-2 flex justify-end items-start w-full md:w-[38%] h-[50%] md:h-[50%] max-h-[350px] max-w-[400px] right-0")},m(b,SM){insert(b,dV,SM),append$1(dV,FV),append$1(FV,EV),append$1(EV,qV),append$1(qV,$V),append$1(qV,dd),mount_component(Td,qV,null),append$1(EV,Ed),append$1(EV,kd),append$1(kd,Sd),UN.m(Sd,null),append$1(Sd,Xd),iN.m(Sd,null),append$1(Sd,Cd),HN&&HN.m(Sd,null),append$1(kd,_d),append$1(kd,el),vZ&&vZ.m(el,null),append$1(EV,Xl),append$1(EV,Il),append$1(Il,Hl),append$1(Il,$l),append$1($l,tR),append$1(tR,ER),append$1($l,sR),append$1($l,GR),append$1(GR,uR),append$1($l,OR),append$1($l,AU),append$1(AU,mU),append$1(EV,wU),append$1(EV,oU),append$1(oU,XU),append$1(oU,LU),append$1(LU,uU),append$1(uU,PU),append$1(PU,_U),append$1(uU,dT),append$1(LU,UT),append$1(LU,FT),append$1(FT,sT),append$1(sT,DT),append$1(FT,XT),append$1(LU,JT),append$1(LU,LT),append$1(LT,qT),append$1(qT,$T),append$1(LT,AM),wM=!0},p(b,[dV]){Ot===(Ot=select_block_type(b))&&UN?UN.p(b,dV):(UN.d(1),UN=Ot(b),UN&&(UN.c(),UN.m(Sd,Xd))),aN===(aN=select_block_type_1(b))&&iN?iN.p(b,dV):(iN.d(1),iN=aN(b),iN&&(iN.c(),iN.m(Sd,Cd))),b[3]&&b[4]?HN?HN.p(b,dV):(HN=create_if_block_2$7(b),HN.c(),HN.m(Sd,null)):HN&&(HN.d(1),HN=null),PN===(PN=select_block_type_2(b))&&vZ?vZ.p(b,dV):(vZ&&vZ.d(1),vZ=PN&&PN(b),vZ&&(vZ.c(),vZ.m(el,null))),(!wM||32&dV)&&SM!==(SM=b[5][0]+"")&&set_data(ER,SM),(!wM||32&dV)&&dt!==(dt=b[5][1]+"")&&set_data(uR,dt),(!wM||32&dV)&&Zt!==(Zt=b[5][2]+"")&&set_data(mU,Zt),(!wM||64&dV)&&Lt!==(Lt=b[6][0]+"")&&set_data(_U,Lt),(!wM||64&dV)&&It!==(It=b[6][1]+"")&&set_data(DT,It),(!wM||64&dV)&&jt!==(jt=b[6][2]+"")&&set_data($T,jt)},i(b){wM||(transition_in(Td.$$.fragment,b),wM=!0)},o(b){transition_out(Td.$$.fragment,b),wM=!1},d(b){b&&detach(dV),destroy_component(Td),UN.d(),iN.d(),HN&&HN.d(),vZ&&vZ.d()}}}function instance$y(b,dV,FV){var EV;let qV,$V,dd,Td;component_subscribe(b,lastcontent,(b=>FV(22,qV=b))),component_subscribe(b,content,(b=>FV(23,$V=b)));const{viewer:Ed}=globalThis;let kd,Sd,Xd=!0,Cd=[],_d=[],el=(null==(EV=Ed.selectedEntity)?void 0:EV.id)||"",Xl="",Il="from",Hl=[];const $l=writable(Ed.selectedEntity||null);component_subscribe(b,$l,(b=>FV(4,Td=b)));const tR=writable(null);function searchEntities(b){let dV=[];for(let FV=0;FV100)break}}return dV}function selectEntity(b){"from"===Il?$l.set(b):tR.set(b)}function clearAllTracking(){$l.set(null),tR.set(null),FV(0,el=""),FV(1,Xl=""),Ed.camera.unTrack()}component_subscribe(b,tR,(b=>FV(3,dd=b)));let ER={};onMount((()=>{var b;Xd=globalThis.viewer.clock.shouldAnimate,scenario.settings.ClockSettings.shouldAnimate.set(!1),kd=null==(b=globalThis.viewer)?void 0:b.clock.onTick.addEventListener((b=>{var dV;const{currentTime:EV}=b;if((null==Td?void 0:Td.position)&&(null==dd?void 0:dd.position)&&FV(8,ER=bu.getAzElRange(Td.position.getValue(EV),dd.position.getValue(EV))),Sd=null==(dV=globalThis.viewer)?void 0:dV.camera.positionWC,Sd){const b=globalThis.viewer.scene.globe.ellipsoid.cartesianToCartographic(Sd);FV(5,Cd=[`${Sd.x.toFixed(2)} X`,`${Sd.y.toFixed(2)} Y`,`${Sd.z.toFixed(2)} Z`]),FV(6,_d=[`${X.toDegrees(b.latitude).toFixed(2)}°`,`${X.toDegrees(b.longitude).toFixed(2)}°`,`${(b.height/1e3).toFixed(1)}`])}}))})),onDestroy((()=>{kd&&globalThis.viewer&&globalThis.viewer.clock.onTick.removeEventListener(kd),scenario.settings.ClockSettings.shouldAnimate.set(Xd)}));return b.$$.update=()=>{31&b.$$.dirty&&Ed&&FV(7,Hl="from"===Il&&!Td&&el?searchEntities(el):"to"===Il&&!dd&&Xl?searchEntities(Xl):[]),24&b.$$.dirty&&(Td&&dd?Ed.camera.k(Td,dd):Ed.camera.unTrack(),setTimeout((()=>{Ed.scene.render()}),100))},[el,Xl,Il,dd,Td,Cd,_d,Hl,ER,$l,tR,selectEntity,clearAllTracking,()=>{set_store_value(content,$V=qV||void 0,$V),set_store_value(lastcontent,qV=void 0,qV),scenario.settings.ClockSettings.shouldAnimate.set(Xd),clearAllTracking()},function(){el=this.value,FV(0,el)},()=>FV(2,Il="from"),function(){Xl=this.value,FV(1,Xl)},()=>FV(2,Il="to"),b=>selectEntity(b)]}let Modal$3=class extends SvelteComponent{constructor(b){super(),init(this,b,instance$y,create_fragment$B,safe_not_equal,{})}};const Button_svelte_svelte_type_style_lang$2="";function create_fragment$A(b){let dV,FV,EV,qV,$V;return FV=new Icon({props:{scale:1.3,data:faCamera}}),{c(){dV=element("div"),create_component(FV.$$.fragment),attr(dV,"tabindex","0"),attr(dV,"role","button"),attr(dV,"class","relative text-white flex items-center text-md justify-center cursor-pointer")},m(dd,Td){insert(dd,dV,Td),mount_component(FV,dV,null),EV=!0,qV||($V=[listen(dV,"keydown",b[1]),listen(dV,"click",b[0])],qV=!0)},p:noop$1,i(b){EV||(transition_in(FV.$$.fragment,b),EV=!0)},o(b){transition_out(FV.$$.fragment,b),EV=!1},d(b){b&&detach(dV),destroy_component(FV),qV=!1,run_all($V)}}}function instance$x(b,dV,FV){let EV,qV;component_subscribe(b,content,(b=>FV(2,EV=b))),component_subscribe(b,lastcontent,(b=>FV(3,qV=b)));const toggleModal=()=>{EV===Modal$3?(set_store_value(content,EV=qV||void 0,EV),set_store_value(lastcontent,qV=void 0,qV)):(set_store_value(lastcontent,qV=EV,qV),set_store_value(content,EV=Modal$3,EV))};return[toggleModal,b=>{"Enter"!==b.key&&"Space"!==b.key||toggleModal()}]}let Button$4=class extends SvelteComponent{constructor(b){super(),init(this,b,instance$x,create_fragment$A,safe_not_equal,{})}};var objectType=(b=>(b[b.PAYLOAD=0]="PAYLOAD",b[b.ROCKET_BODY=1]="ROCKET_BODY",b[b.DEBRIS=2]="DEBRIS",b[b.UNKNOWN=3]="UNKNOWN",b))(objectType||{}),opsStatusCode$1=(b=>(b[b.OPERATIONAL=0]="OPERATIONAL",b[b.NONOPERATIONAL=1]="NONOPERATIONAL",b[b.PARTIALLY_OPERATIONAL=2]="PARTIALLY_OPERATIONAL",b[b.BACKUP_STANDBY=3]="BACKUP_STANDBY",b[b.SPARE=4]="SPARE",b[b.EXTENDED_MISSION=5]="EXTENDED_MISSION",b[b.DECAYED=6]="DECAYED",b[b.UNKNOWN=7]="UNKNOWN",b))(opsStatusCode$1||{});const getID=b=>b.NORAD_CAT_ID;let{trackedEntity:trackedEntity$1,selectedEntity:selectedEntity$1}=scenario;const cellClickEvent$1=b=>{var dV;if(globalThis.viewer){let FV=null==(dV=globalThis.viewer.dataSources.getByName("spaceaware")[0])?void 0:dV.entities.getById(getID(b.data));FV&&(trackedEntity$1.set(FV),selectedEntity$1.set(FV))}};function metersComparator$1(b,dV){return b.toFixed(2)/1e3-dV.toFixed(2)/1e3}const filterParams$1={debounceMs:1e3},columnDefs$2=[{headerName:"Object Name",field:"OBJECT_NAME",sortable:!0,filter:!0,filterParams:filterParams$1,pinned:!0,onCellClicked:cellClickEvent$1},{headerName:"Object ID",field:"OBJECT_ID",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"NORAD Cat ID",field:"NORAD_CAT_ID",sortable:!0,filter:!0,filterParams:filterParams$1,valueFormatter:({value:b})=>null==b?void 0:b.toString().padStart(7,"0")},{headerName:"Object Type",field:"OBJECT_TYPE",sortable:!0,filter:"agTextColumnFilter",filterParams:{filterOptions:["contains"],textCustomComparator:(b,dV,FV)=>objectType[dV].toLowerCase().includes(FV.toLowerCase()),debounceMs:filterParams$1.debounceMs},valueFormatter:({value:b})=>objectType[b]},{headerName:"Ops Status Code",field:"OPS_STATUS_CODE",sortable:!0,filter:"agTextColumnFilter",filterParams:{filterOptions:["contains","notContains","equals"],textCustomComparator:(b,dV,FV)=>{const EV=opsStatusCode$1[dV].toLowerCase(),qV=FV.toLowerCase();switch(b){case"contains":return EV.includes(qV);case"notContains":return!EV.includes(qV);case"equals":return EV===qV;default:return!1}},debounceMs:filterParams$1.debounceMs},valueFormatter:({value:b})=>opsStatusCode$1[b]},{headerName:"Owner",field:"OWNER",sortable:!0,filter:!0},{headerName:"Launch Date",field:"LAUNCH_DATE",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"EPOCH",field:"EPOCH",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"MEAN_MOTION",field:"MEAN_MOTION",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Period",field:"PERIOD",sortable:!0,filter:!0},{headerName:"SEMI-MAJOR AXIS",field:"SEMI_MAJOR_AXIS",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Mean Anomaly",field:"MEAN_ANOMALY",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Solar Rad Area",field:"SOLAR_RAD_AREA",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Solar Rad Coeff",field:"SOLAR_RAD_COEFF",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"ECCENTRICITY",field:"ECCENTRICITY",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Inclination",field:"INCLINATION",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Drag Area",field:"DRAG_AREA",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Drag Coeff",field:"DRAG_COEFF",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"RAAN",field:"RA_OF_ASC_NODE",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Apogee",field:"APOGEE",sortable:!0,filter:!0,filterParams:filterParams$1,comparator:metersComparator$1,valueFormatter:({value:b})=>b.toFixed(5)},{headerName:"Perigee",field:"PERIGEE",sortable:!0,filter:!0,filterParams:filterParams$1,comparator:metersComparator$1,valueFormatter:({value:b})=>b.toFixed(5)},{headerName:"RCS",field:"RCS",sortable:!0,filter:!0},{headerName:"Data Status Code",field:"DATA_STATUS_CODE",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Mean Motion Dot",field:"MEAN_MOTION_DOT",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Mean Motion DDot",field:"MEAN_MOTION_DDOT",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"BSTAR",field:"BSTAR",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Orbit Center",field:"ORBIT_CENTER",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Orbit Type",field:"ORBIT_TYPE",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Deployment Date",field:"DEPLOYMENT_DATE",sortable:!0,filter:!0,filterParams:filterParams$1},{headerName:"Size",field:"SIZE",sortable:!0,filter:!0},{headerName:"Mass",field:"MASS",sortable:!0,filter:!0},{headerName:"Mass Type",field:"MASS_TYPE",sortable:!0,filter:!0,filterParams:filterParams$1}],defaultID=b=>b.id,datatableShow=writable(!1),data=writable([]),columnDefs$1=writable([]),filterAction=writable(null),rowID=writable(defaultID),gridApi=writable(null),mode=writable(null),closeMode=writable(null),filterActionFunction=b=>{const dV=globalThis.viewer;if(!dV)return;const FV=dV.dataSources.getByName("spaceaware")[0];FV.entities.suspendEvents();const EV=new Set(b.map((b=>getID(b)))),qV=FV.entities.values;for(let $V=0;$V>3)+Number(b%8!=0)}class BitField{constructor(b=0,dV){__publicField(this,"grow"),__publicField(this,"buffer"),__publicField(this,"setBitCount",0),__publicField(this,"setBits",new Set);const FV=null==dV?void 0:dV.grow;this.grow=FV?Number.isFinite(FV)?bitsToBytes(FV):FV:0,this.buffer="number"==typeof b?new Uint8Array(bitsToBytes(b)):b,this.initializeSetBits()}get length(){return this.buffer.length<<3}initializeSetBits(){for(let b=0;b>3;return dV>b%8)}set(b,dV=!0){const FV=b>>3,EV=this.get(b);if(dV){if(EV||(this.setBitCount++,this.setBits.add(b)),FV>=this.buffer.length){const b=Math.max(FV+1,Math.min(2*this.buffer.length,this.grow));if(b<=this.grow){const dV=new Uint8Array(b);dV.set(this.buffer),this.buffer=dV}}this.buffer[FV]|=128>>b%8}else FV>b%8))}getAllSetIndices(){return Array.from(this.setBits)}setAll(b,dV=0){const FV=Math.min(bitsToBytes(dV+b.length),this.grow);if(this.buffer.length>3,qV=128>>dV%8;for(let $V=0;$V=this.buffer.length)break;qV=128}else qV>>=1}}forEach(b,dV=0,FV=8*this.buffer.length){let EV=dV>>3,qV=128>>dV%8;for(let $V=dV;$V>=1}isEmpty(){for(let b=0;b