gis-cesium-helper 2.1.5 → 3.6.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Cesium/Cesium.js +10642 -11041
- package/dist/Cesium/ThirdParty/Workers/draco_decoder_nodejs.js +1 -1
- package/dist/Cesium/ThirdParty/Workers/pako_deflate.min.js +1 -1
- package/dist/Cesium/ThirdParty/Workers/pako_inflate.min.js +1 -1
- package/dist/Cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/dist/Cesium/Workers/chunk-2BUTAXOJ.js +26 -0
- package/dist/Cesium/Workers/chunk-4DWHRTTP.js +26 -0
- package/dist/Cesium/Workers/chunk-4RJDMIO4.js +26 -0
- package/dist/Cesium/Workers/chunk-4Y673DAX.js +26 -0
- package/dist/Cesium/Workers/chunk-5APIVAIA.js +26 -0
- package/dist/Cesium/Workers/chunk-5HTTNN4T.js +26 -0
- package/dist/Cesium/Workers/chunk-6JIR5UA6.js +26 -0
- package/dist/Cesium/Workers/chunk-7GPSWUNQ.js +26 -0
- package/dist/Cesium/Workers/chunk-7JE52M2E.js +26 -0
- package/dist/Cesium/Workers/chunk-A2GTHHER.js +26 -0
- package/dist/Cesium/Workers/chunk-BLQIHQVM.js +26 -0
- package/dist/Cesium/Workers/chunk-BYGMMPBC.js +26 -0
- package/dist/Cesium/Workers/chunk-C4OMKOTM.js +26 -0
- package/dist/Cesium/Workers/chunk-D3TZ2KW7.js +26 -0
- package/dist/Cesium/Workers/chunk-E2BL2RZG.js +27 -0
- package/dist/Cesium/Workers/chunk-ECIWWYM6.js +26 -0
- package/dist/Cesium/Workers/chunk-EH5BIXGS.js +26 -0
- package/dist/Cesium/Workers/chunk-EJ4M7ZWT.js +26 -0
- package/dist/Cesium/Workers/chunk-F2VBKMFQ.js +26 -0
- package/dist/Cesium/Workers/chunk-FAMH7QPQ.js +26 -0
- package/dist/Cesium/Workers/chunk-FRIKFALT.js +26 -0
- package/dist/Cesium/Workers/chunk-GCHOMXEL.js +26 -0
- package/dist/Cesium/Workers/chunk-H4IFK52P.js +26 -0
- package/dist/Cesium/Workers/chunk-HBEVV6IK.js +26 -0
- package/dist/Cesium/Workers/chunk-HKVMSEEW.js +26 -0
- package/dist/Cesium/Workers/chunk-HQCE7D5L.js +26 -0
- package/dist/Cesium/Workers/chunk-HXIAOT7H.js +26 -0
- package/dist/Cesium/Workers/chunk-I2A6O4RG.js +26 -0
- package/dist/Cesium/Workers/chunk-IYA25EHI.js +26 -0
- package/dist/Cesium/Workers/chunk-JJYRRIWN.js +26 -0
- package/dist/Cesium/Workers/chunk-KLK65KFE.js +26 -0
- package/dist/Cesium/Workers/chunk-LJJKLY2N.js +26 -0
- package/dist/Cesium/Workers/chunk-LO4XCY55.js +26 -0
- package/dist/Cesium/Workers/chunk-LXL44TDT.js +26 -0
- package/dist/Cesium/Workers/chunk-NVQN2WQZ.js +26 -0
- package/dist/Cesium/Workers/chunk-OPGPRG5D.js +26 -0
- package/dist/Cesium/Workers/chunk-PEHZZEN4.js +26 -0
- package/dist/Cesium/Workers/chunk-PTGCDCSG.js +26 -0
- package/dist/Cesium/Workers/chunk-PXJWIUYV.js +26 -0
- package/dist/Cesium/Workers/chunk-Q3IJMJJ2.js +62 -0
- package/dist/Cesium/Workers/chunk-SOPLNYSA.js +26 -0
- package/dist/Cesium/Workers/chunk-STB6TCFY.js +26 -0
- package/dist/Cesium/Workers/{package.js → chunk-T4QAV6EX.js} +2 -2
- package/dist/Cesium/Workers/chunk-TQL3YWK4.js +28 -0
- package/dist/Cesium/Workers/chunk-UYEV4TJN.js +26 -0
- package/dist/Cesium/Workers/chunk-W2RVA34K.js +26 -0
- package/dist/Cesium/Workers/chunk-X7PMFMCX.js +30 -0
- package/dist/Cesium/Workers/chunk-XUP5J7GQ.js +26 -0
- package/dist/Cesium/Workers/chunk-Y6JLAJTJ.js +27 -0
- package/dist/Cesium/Workers/chunk-YGFN6UZV.js +26 -0
- package/dist/Cesium/Workers/chunk-YJTMGLB7.js +26 -0
- package/dist/Cesium/Workers/chunk-ZBFGV7QI.js +26 -0
- package/dist/Cesium/Workers/chunk-ZD25UQM7.js +26 -0
- package/dist/Cesium/Workers/chunk-ZGGJSLK5.js +28 -0
- package/dist/Cesium/Workers/combineGeometry.js +26 -1
- package/dist/Cesium/Workers/createBoxGeometry.js +26 -1
- package/dist/Cesium/Workers/createBoxOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createCircleGeometry.js +26 -1
- package/dist/Cesium/Workers/createCircleOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createCoplanarPolygonGeometry.js +26 -1
- package/dist/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createCorridorGeometry.js +26 -1
- package/dist/Cesium/Workers/createCorridorOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createCylinderGeometry.js +26 -1
- package/dist/Cesium/Workers/createCylinderOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createEllipseGeometry.js +26 -1
- package/dist/Cesium/Workers/createEllipseOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createEllipsoidGeometry.js +26 -1
- package/dist/Cesium/Workers/createEllipsoidOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createFrustumGeometry.js +26 -1
- package/dist/Cesium/Workers/createFrustumOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createGeometry.js +26 -1
- package/dist/Cesium/Workers/createGroundPolylineGeometry.js +26 -1
- package/dist/Cesium/Workers/createPlaneGeometry.js +26 -1
- package/dist/Cesium/Workers/createPlaneOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createPolygonGeometry.js +26 -1
- package/dist/Cesium/Workers/createPolygonOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createPolylineGeometry.js +26 -1
- package/dist/Cesium/Workers/createPolylineVolumeGeometry.js +26 -1
- package/dist/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createRectangleGeometry.js +26 -1
- package/dist/Cesium/Workers/createRectangleOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createSimplePolylineGeometry.js +26 -1
- package/dist/Cesium/Workers/createSphereGeometry.js +26 -1
- package/dist/Cesium/Workers/createSphereOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/createTaskProcessorWorker.js +26 -1
- package/dist/Cesium/Workers/createVectorTileClampedPolylines.js +26 -1
- package/dist/Cesium/Workers/createVectorTileGeometries.js +26 -1
- package/dist/Cesium/Workers/createVectorTilePoints.js +26 -1
- package/dist/Cesium/Workers/createVectorTilePolygons.js +26 -1
- package/dist/Cesium/Workers/createVectorTilePolylines.js +26 -1
- package/dist/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +26 -1
- package/dist/Cesium/Workers/createVerticesFromHeightmap.js +26 -3
- package/dist/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -1
- package/dist/Cesium/Workers/createWallGeometry.js +26 -1
- package/dist/Cesium/Workers/createWallOutlineGeometry.js +26 -1
- package/dist/Cesium/Workers/decodeDraco.js +26 -1
- package/dist/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +26 -1
- package/dist/Cesium/Workers/decodeI3S.js +26 -1
- package/dist/Cesium/Workers/transcodeKTX2.js +56 -1
- package/dist/Cesium/Workers/transferTypedArrayTest.js +2 -2
- package/dist/Cesium/Workers/upsampleQuantizedTerrainMesh.js +26 -1
- package/dist/Cesium/index.cjs +10505 -10904
- package/dist/Cesium/index.js +10736 -11135
- package/dist/gis-cesium-helper.es.js +1 -1
- package/dist/gis-cesium-helper.umd.js +1 -1
- package/dist/gis3d/gis3d.css +2 -13
- package/dist/gis3d/gis3d.js +7 -1
- package/package.json +4 -4
- package/dist/Cesium/Cesium.d.ts +0 -45206
- package/dist/Cesium/README.md +0 -13
- package/dist/Cesium/Scene/ModelExperimental/CustomShaderGuide/README.md +0 -4
- package/dist/Cesium/ThirdParty/Workers/basis_transcoder.js +0 -31
- package/dist/Cesium/ThirdParty/Workers/package.js +0 -1
- package/dist/Cesium/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
- package/dist/Cesium/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
- package/dist/Cesium/Workers/ArcType-26a3f38d.js +0 -1
- package/dist/Cesium/Workers/ArcType-e1641d8d.js +0 -1
- package/dist/Cesium/Workers/AttributeCompression-48e336db.js +0 -1
- package/dist/Cesium/Workers/AttributeCompression-7a823eb1.js +0 -1
- package/dist/Cesium/Workers/AxisAlignedBoundingBox-2c8f82be.js +0 -1
- package/dist/Cesium/Workers/AxisAlignedBoundingBox-ef345290.js +0 -1
- package/dist/Cesium/Workers/BoundingRectangle-b8248608.js +0 -1
- package/dist/Cesium/Workers/BoundingRectangle-ffeef844.js +0 -1
- package/dist/Cesium/Workers/BoxGeometry-85afccf5.js +0 -1
- package/dist/Cesium/Workers/BoxGeometry-c0d41d4f.js +0 -1
- package/dist/Cesium/Workers/Color-50ebab71.js +0 -1
- package/dist/Cesium/Workers/Color-75e74066.js +0 -1
- package/dist/Cesium/Workers/ComponentDatatype-a9820060.js +0 -1
- package/dist/Cesium/Workers/ComponentDatatype-ab629b88.js +0 -1
- package/dist/Cesium/Workers/CoplanarPolygonGeometryLibrary-0d63b099.js +0 -1
- package/dist/Cesium/Workers/CoplanarPolygonGeometryLibrary-44d91286.js +0 -1
- package/dist/Cesium/Workers/CorridorGeometryLibrary-0169e68d.js +0 -1
- package/dist/Cesium/Workers/CorridorGeometryLibrary-0fed6511.js +0 -1
- package/dist/Cesium/Workers/CylinderGeometry-068eebd3.js +0 -1
- package/dist/Cesium/Workers/CylinderGeometry-4802140c.js +0 -1
- package/dist/Cesium/Workers/CylinderGeometryLibrary-f49f33a8.js +0 -1
- package/dist/Cesium/Workers/CylinderGeometryLibrary-fe5ec654.js +0 -1
- package/dist/Cesium/Workers/EllipseGeometry-e8ae6742.js +0 -1
- package/dist/Cesium/Workers/EllipseGeometry-eeb1db07.js +0 -1
- package/dist/Cesium/Workers/EllipseGeometryLibrary-6ce53de3.js +0 -1
- package/dist/Cesium/Workers/EllipseGeometryLibrary-eedf4d0b.js +0 -1
- package/dist/Cesium/Workers/EllipseOutlineGeometry-52d25fd2.js +0 -1
- package/dist/Cesium/Workers/EllipseOutlineGeometry-7c871752.js +0 -1
- package/dist/Cesium/Workers/EllipsoidGeodesic-2723ab86.js +0 -1
- package/dist/Cesium/Workers/EllipsoidGeodesic-7d405754.js +0 -1
- package/dist/Cesium/Workers/EllipsoidGeometry-7cbedd8f.js +0 -1
- package/dist/Cesium/Workers/EllipsoidGeometry-954ef938.js +0 -1
- package/dist/Cesium/Workers/EllipsoidOutlineGeometry-79998e39.js +0 -1
- package/dist/Cesium/Workers/EllipsoidOutlineGeometry-876d584e.js +0 -1
- package/dist/Cesium/Workers/EllipsoidRhumbLine-77eff028.js +0 -1
- package/dist/Cesium/Workers/EllipsoidRhumbLine-7b6199fa.js +0 -1
- package/dist/Cesium/Workers/EllipsoidTangentPlane-330be9cc.js +0 -1
- package/dist/Cesium/Workers/EllipsoidTangentPlane-4cf30b6c.js +0 -1
- package/dist/Cesium/Workers/EncodedCartesian3-5e2017ab.js +0 -1
- package/dist/Cesium/Workers/EncodedCartesian3-ee8e4156.js +0 -1
- package/dist/Cesium/Workers/FrustumGeometry-1e1111d8.js +0 -1
- package/dist/Cesium/Workers/FrustumGeometry-cffd2aa8.js +0 -1
- package/dist/Cesium/Workers/GeometryAttribute-71155085.js +0 -1
- package/dist/Cesium/Workers/GeometryAttribute-b10c5c29.js +0 -1
- package/dist/Cesium/Workers/GeometryAttributes-1b4134a9.js +0 -1
- package/dist/Cesium/Workers/GeometryAttributes-1e4ddcd2.js +0 -1
- package/dist/Cesium/Workers/GeometryInstance-0318e0cd.js +0 -1
- package/dist/Cesium/Workers/GeometryInstance-86b030a6.js +0 -1
- package/dist/Cesium/Workers/GeometryOffsetAttribute-2579b8d2.js +0 -1
- package/dist/Cesium/Workers/GeometryOffsetAttribute-4d39b441.js +0 -1
- package/dist/Cesium/Workers/GeometryPipeline-5926bf6a.js +0 -1
- package/dist/Cesium/Workers/GeometryPipeline-b15e7fd0.js +0 -1
- package/dist/Cesium/Workers/IndexDatatype-1cbc8622.js +0 -1
- package/dist/Cesium/Workers/IndexDatatype-d3db4e7d.js +0 -1
- package/dist/Cesium/Workers/IntersectionTests-832aa5c7.js +0 -1
- package/dist/Cesium/Workers/IntersectionTests-f15438d8.js +0 -1
- package/dist/Cesium/Workers/Math-2ce22ee9.js +0 -1
- package/dist/Cesium/Workers/Matrix2-1509208a.js +0 -1
- package/dist/Cesium/Workers/Matrix2-413c4048.js +0 -1
- package/dist/Cesium/Workers/Matrix3-81054f0f.js +0 -1
- package/dist/Cesium/Workers/OrientedBoundingBox-c3eda7c2.js +0 -1
- package/dist/Cesium/Workers/OrientedBoundingBox-fa9056b2.js +0 -1
- package/dist/Cesium/Workers/Plane-6add0ae1.js +0 -1
- package/dist/Cesium/Workers/Plane-e3daa19b.js +0 -1
- package/dist/Cesium/Workers/PolygonGeometryLibrary-cb0bc5e9.js +0 -1
- package/dist/Cesium/Workers/PolygonGeometryLibrary-d5f3e119.js +0 -1
- package/dist/Cesium/Workers/PolygonPipeline-32699305.js +0 -1
- package/dist/Cesium/Workers/PolygonPipeline-e8d27f39.js +0 -1
- package/dist/Cesium/Workers/PolylinePipeline-3006b0cf.js +0 -1
- package/dist/Cesium/Workers/PolylinePipeline-39d7619d.js +0 -1
- package/dist/Cesium/Workers/PolylineVolumeGeometryLibrary-437b726e.js +0 -1
- package/dist/Cesium/Workers/PolylineVolumeGeometryLibrary-bd0bbdaf.js +0 -1
- package/dist/Cesium/Workers/PrimitivePipeline-90884677.js +0 -1
- package/dist/Cesium/Workers/PrimitivePipeline-e1f3eb3d.js +0 -1
- package/dist/Cesium/Workers/RectangleGeometryLibrary-11b080fb.js +0 -1
- package/dist/Cesium/Workers/RectangleGeometryLibrary-a44974f6.js +0 -1
- package/dist/Cesium/Workers/RuntimeError-9b4ce3fb.js +0 -1
- package/dist/Cesium/Workers/RuntimeError-ac440aa5.js +0 -1
- package/dist/Cesium/Workers/TerrainEncoding-341cc7d2.js +0 -1
- package/dist/Cesium/Workers/TerrainEncoding-7b6ac0c5.js +0 -1
- package/dist/Cesium/Workers/Transforms-bf323bcf.js +0 -39
- package/dist/Cesium/Workers/Transforms-c65aae74.js +0 -14
- package/dist/Cesium/Workers/VertexFormat-e68722dd.js +0 -1
- package/dist/Cesium/Workers/VertexFormat-fbdec922.js +0 -1
- package/dist/Cesium/Workers/WallGeometryLibrary-0cfe87c2.js +0 -1
- package/dist/Cesium/Workers/WallGeometryLibrary-dc44247b.js +0 -1
- package/dist/Cesium/Workers/WebGLConstants-7f557f93.js +0 -1
- package/dist/Cesium/Workers/WebGLConstants-f63312fc.js +0 -1
- package/dist/Cesium/Workers/WebMercatorProjection-2d827489.js +0 -1
- package/dist/Cesium/Workers/WebMercatorProjection-943e2226.js +0 -1
- package/dist/Cesium/Workers/_commonjsHelpers-3aae1032-15991586.js +0 -1
- package/dist/Cesium/Workers/arrayRemoveDuplicates-9b636830.js +0 -1
- package/dist/Cesium/Workers/arrayRemoveDuplicates-fe254feb.js +0 -1
- package/dist/Cesium/Workers/cesiumWorkerBootstrapper.js +0 -31
- package/dist/Cesium/Workers/combine-0259f56f.js +0 -1
- package/dist/Cesium/Workers/combine-0c102d93.js +0 -1
- package/dist/Cesium/Workers/defaultValue-69ee94f4.js +0 -1
- package/dist/Cesium/Workers/defaultValue-f6d5e6da.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Transforms-bf323bcf","./ComponentDatatype-a9820060","./defaultValue-69ee94f4","./RuntimeError-ac440aa5","./Matrix2-1509208a","./GeometryAttribute-71155085","./GeometryAttributes-1b4134a9","./GeometryPipeline-b15e7fd0","./IndexDatatype-1cbc8622","./WebMercatorProjection-2d827489"],(function(e,t,n,r,o,i,s,c,a,d,p){"use strict";function u(e,t,n){e=r.defaultValue(e,0),t=r.defaultValue(t,0),n=r.defaultValue(n,0),this.value=new Float32Array([e,t,n])}function f(e,t){const r=e.attributes,o=r.position,i=o.values.length/o.componentsPerAttribute;r.batchId=new s.GeometryAttribute({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:1,values:new Float32Array(i)});const c=r.batchId.values;for(let e=0;e<i;++e)c[e]=t}function l(e){const o=e.instances,s=e.projection,c=e.elementIndexUintSupported,d=e.scene3DOnly,p=e.vertexCacheOptimize,u=e.compressVertices,l=e.modelMatrix;let m,h,g=o.length;for(m=0;m<g;++m)if(r.defined(o[m].geometry)){o[m].geometry.primitiveType;break}if(function(e,t,n){let o=!n;const s=e.length;let c;if(!o&&s>1){const t=e[0].modelMatrix;for(c=1;c<s;++c)if(!i.Matrix4.equals(t,e[c].modelMatrix)){o=!0;break}}if(o)for(c=0;c<s;++c)r.defined(e[c].geometry)&&a.GeometryPipeline.transformToWorldCoordinates(e[c]);else i.Matrix4.multiplyTransformation(t,e[0].modelMatrix,t)}(o,l,d),!d)for(m=0;m<g;++m)r.defined(o[m].geometry)&&a.GeometryPipeline.splitLongitude(o[m]);if(function(e){const t=e.length;for(let n=0;n<t;++n){const t=e[n];r.defined(t.geometry)?f(t.geometry,n):r.defined(t.westHemisphereGeometry)&&r.defined(t.eastHemisphereGeometry)&&(f(t.westHemisphereGeometry,n),f(t.eastHemisphereGeometry,n))}}(o),p)for(m=0;m<g;++m){const e=o[m];r.defined(e.geometry)?(a.GeometryPipeline.reorderForPostVertexCache(e.geometry),a.GeometryPipeline.reorderForPreVertexCache(e.geometry)):r.defined(e.westHemisphereGeometry)&&r.defined(e.eastHemisphereGeometry)&&(a.GeometryPipeline.reorderForPostVertexCache(e.westHemisphereGeometry),a.GeometryPipeline.reorderForPreVertexCache(e.westHemisphereGeometry),a.GeometryPipeline.reorderForPostVertexCache(e.eastHemisphereGeometry),a.GeometryPipeline.reorderForPreVertexCache(e.eastHemisphereGeometry))}let y=a.GeometryPipeline.combineInstances(o);for(g=y.length,m=0;m<g;++m){h=y[m];const e=h.attributes;if(d)for(const t in e)e.hasOwnProperty(t)&&e[t].componentDatatype===n.ComponentDatatype.DOUBLE&&a.GeometryPipeline.encodeAttribute(h,t,`${t}3DHigh`,`${t}3DLow`);else for(const o in e)if(e.hasOwnProperty(o)&&e[o].componentDatatype===n.ComponentDatatype.DOUBLE){const e=`${o}3D`,n=`${o}2D`;a.GeometryPipeline.projectTo2D(h,o,e,n,s),r.defined(h.boundingSphere)&&"position"===o&&(h.boundingSphereCV=t.BoundingSphere.fromVertices(h.attributes.position2D.values)),a.GeometryPipeline.encodeAttribute(h,e,`${e}High`,`${e}Low`),a.GeometryPipeline.encodeAttribute(h,n,`${n}High`,`${n}Low`)}u&&a.GeometryPipeline.compressVertices(h)}if(!c){let e=[];for(g=y.length,m=0;m<g;++m)h=y[m],e=e.concat(a.GeometryPipeline.fitToUnsignedShortIndices(h));y=e}return y}function m(e,t,n,o){let i,s,c;const a=o.length-1;if(a>=0){const e=o[a];i=e.offset+e.count,c=e.index,s=n[c].indices.length}else i=0,c=0,s=n[c].indices.length;const d=e.length;for(let a=0;a<d;++a){const d=e[a][t];if(!r.defined(d))continue;const p=d.indices.length;i+p>s&&(i=0,s=n[++c].indices.length),o.push({index:c,offset:i,count:p}),i+=p}}Object.defineProperties(u.prototype,{componentDatatype:{get:function(){return n.ComponentDatatype.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),u.fromCartesian3=function(e){return new u(e.x,e.y,e.z)},u.toValue=function(e,t){return r.defined(t)||(t=new Float32Array([e.x,e.y,e.z])),t[0]=e.x,t[1]=e.y,t[2]=e.z,t};const h={};function g(e,t){const n=e.attributes;for(const e in n)if(n.hasOwnProperty(e)){const o=n[e];r.defined(o)&&r.defined(o.values)&&t.push(o.values.buffer)}r.defined(e.indices)&&t.push(e.indices.buffer)}function y(e,t){const n=e.length,o=new Float64Array(1+19*n);let s=0;o[s++]=n;for(let t=0;t<n;t++){const n=e[t];if(i.Matrix4.pack(n.modelMatrix,o,s),s+=i.Matrix4.packedLength,r.defined(n.attributes)&&r.defined(n.attributes.offset)){const e=n.attributes.offset.value;o[s]=e[0],o[s+1]=e[1],o[s+2]=e[2]}s+=3}return t.push(o.buffer),o}function b(e){const n=e.length,o=1+(t.BoundingSphere.packedLength+1)*n,i=new Float32Array(o);let s=0;i[s++]=n;for(let o=0;o<n;++o){const n=e[o];r.defined(n)?(i[s++]=1,t.BoundingSphere.pack(e[o],i,s)):i[s++]=0,s+=t.BoundingSphere.packedLength}return i}function x(e){const n=new Array(e[0]);let r=0,o=1;for(;o<e.length;)1===e[o++]&&(n[r]=t.BoundingSphere.unpack(e,o)),++r,o+=t.BoundingSphere.packedLength;return n}h.combineGeometry=function(e){let n,o;const i=e.instances,s=i.length;let c,d,p=!1;s>0&&(n=l(e),n.length>0&&(o=a.GeometryPipeline.createAttributeLocations(n[0]),e.createPickOffsets&&(c=function(e,t){const n=[];return m(e,"geometry",t,n),m(e,"westHemisphereGeometry",t,n),m(e,"eastHemisphereGeometry",t,n),n}(i,n))),r.defined(i[0].attributes)&&r.defined(i[0].attributes.offset)&&(d=new Array(s),p=!0));const u=new Array(s),f=new Array(s);for(let e=0;e<s;++e){const n=i[e],o=n.geometry;r.defined(o)&&(u[e]=o.boundingSphere,f[e]=o.boundingSphereCV,p&&(d[e]=n.geometry.offsetAttribute));const s=n.eastHemisphereGeometry,c=n.westHemisphereGeometry;r.defined(s)&&r.defined(c)&&(r.defined(s.boundingSphere)&&r.defined(c.boundingSphere)&&(u[e]=t.BoundingSphere.union(s.boundingSphere,c.boundingSphere)),r.defined(s.boundingSphereCV)&&r.defined(c.boundingSphereCV)&&(f[e]=t.BoundingSphere.union(s.boundingSphereCV,c.boundingSphereCV)))}return{geometries:n,modelMatrix:e.modelMatrix,attributeLocations:o,pickOffsets:c,offsetInstanceExtend:d,boundingSpheres:u,boundingSpheresCV:f}},h.packCreateGeometryResults=function(e,n){const o=new Float64Array(function(e){let n=1;const o=e.length;for(let i=0;i<o;i++){const o=e[i];if(++n,!r.defined(o))continue;const s=o.attributes;n+=7+2*t.BoundingSphere.packedLength+(r.defined(o.indices)?o.indices.length:0);for(const e in s)s.hasOwnProperty(e)&&r.defined(s[e])&&(n+=5+s[e].values.length)}return n}(e)),i=[],s={},c=e.length;let a=0;o[a++]=c;for(let n=0;n<c;n++){const c=e[n],d=r.defined(c);if(o[a++]=d?1:0,!d)continue;o[a++]=c.primitiveType,o[a++]=c.geometryType,o[a++]=r.defaultValue(c.offsetAttribute,-1);const p=r.defined(c.boundingSphere)?1:0;o[a++]=p,p&&t.BoundingSphere.pack(c.boundingSphere,o,a),a+=t.BoundingSphere.packedLength;const u=r.defined(c.boundingSphereCV)?1:0;o[a++]=u,u&&t.BoundingSphere.pack(c.boundingSphereCV,o,a),a+=t.BoundingSphere.packedLength;const f=c.attributes,l=[];for(const e in f)f.hasOwnProperty(e)&&r.defined(f[e])&&(l.push(e),r.defined(s[e])||(s[e]=i.length,i.push(e)));o[a++]=l.length;for(let e=0;e<l.length;e++){const t=l[e],n=f[t];o[a++]=s[t],o[a++]=n.componentDatatype,o[a++]=n.componentsPerAttribute,o[a++]=n.normalize?1:0,o[a++]=n.values.length,o.set(n.values,a),a+=n.values.length}const m=r.defined(c.indices)?c.indices.length:0;o[a++]=m,m>0&&(o.set(c.indices,a),a+=m)}return n.push(o.buffer),{stringTable:i,packedData:o}},h.unpackCreateGeometryResults=function(e){const r=e.stringTable,o=e.packedData;let i;const a=new Array(o[0]);let p=0,u=1;for(;u<o.length;){if(!(1===o[u++])){a[p++]=void 0;continue}const e=o[u++],f=o[u++];let l,m,h=o[u++];-1===h&&(h=void 0);1===o[u++]&&(l=t.BoundingSphere.unpack(o,u)),u+=t.BoundingSphere.packedLength;let g,y,b;1===o[u++]&&(m=t.BoundingSphere.unpack(o,u)),u+=t.BoundingSphere.packedLength;const x=new c.GeometryAttributes,G=o[u++];for(i=0;i<G;i++){const e=r[o[u++]],t=o[u++];b=o[u++];const i=0!==o[u++];g=o[u++],y=n.ComponentDatatype.createTypedArray(t,g);for(let e=0;e<g;e++)y[e]=o[u++];x[e]=new s.GeometryAttribute({componentDatatype:t,componentsPerAttribute:b,normalize:i,values:y})}let S;if(g=o[u++],g>0){const e=y.length/b;for(S=d.IndexDatatype.createTypedArray(e,g),i=0;i<g;i++)S[i]=o[u++]}a[p++]=new s.Geometry({primitiveType:e,geometryType:f,boundingSphere:l,boundingSphereCV:m,indices:S,attributes:x,offsetAttribute:h})}return a},h.packCombineGeometryParameters=function(e,n){const r=e.createGeometryResults,o=r.length;for(let e=0;e<o;e++)n.push(r[e].packedData.buffer);return{createGeometryResults:e.createGeometryResults,packedInstances:y(e.instances,n),ellipsoid:e.ellipsoid,isGeographic:e.projection instanceof t.GeographicProjection,elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:e.modelMatrix,createPickOffsets:e.createPickOffsets}},h.unpackCombineGeometryParameters=function(e){const n=function(e){const t=e,n=new Array(t[0]);let o=0,s=1;for(;s<t.length;){const e=i.Matrix4.unpack(t,s);let c;s+=i.Matrix4.packedLength,r.defined(t[s])&&(c={offset:new u(t[s],t[s+1],t[s+2])}),s+=3,n[o++]={modelMatrix:e,attributes:c}}return n}(e.packedInstances),o=e.createGeometryResults,s=o.length;let c=0;for(let e=0;e<s;e++){const t=h.unpackCreateGeometryResults(o[e]),r=t.length;for(let e=0;e<r;e++){const r=t[e];n[c].geometry=r,++c}}const a=i.Ellipsoid.clone(e.ellipsoid);return{instances:n,ellipsoid:a,projection:e.isGeographic?new t.GeographicProjection(a):new p.WebMercatorProjection(a),elementIndexUintSupported:e.elementIndexUintSupported,scene3DOnly:e.scene3DOnly,vertexCacheOptimize:e.vertexCacheOptimize,compressVertices:e.compressVertices,modelMatrix:i.Matrix4.clone(e.modelMatrix),createPickOffsets:e.createPickOffsets}},h.packCombineGeometryResults=function(e,t){r.defined(e.geometries)&&function(e,t){const n=e.length;for(let r=0;r<n;++r)g(e[r],t)}(e.geometries,t);const n=b(e.boundingSpheres),o=b(e.boundingSpheresCV);return t.push(n.buffer,o.buffer),{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:n,boundingSpheresCV:o}},h.unpackCombineGeometryResults=function(e){return{geometries:e.geometries,attributeLocations:e.attributeLocations,modelMatrix:e.modelMatrix,pickOffsets:e.pickOffsets,offsetInstanceExtend:e.offsetInstanceExtend,boundingSpheres:x(e.boundingSpheres),boundingSpheresCV:x(e.boundingSpheresCV)}},e.PrimitivePipeline=h}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Matrix3-81054f0f","./defaultValue-f6d5e6da","./Transforms-c65aae74","./Math-2ce22ee9","./Matrix2-413c4048"],(function(t,n,a,o,r,e){"use strict";const s=Math.cos,i=Math.sin,c=Math.sqrt,g={computePosition:function(t,n,o,r,e,g,u){const h=n.radiiSquared,l=t.nwCorner,C=t.boundingRectangle;let S=l.latitude-t.granYCos*r+e*t.granXSin;const M=s(S),d=i(S),w=h.z*d;let X=l.longitude+r*t.granYSin+e*t.granXCos;const Y=M*s(X),m=M*i(X),f=h.x*Y,p=h.y*m,x=c(f*Y+p*m+w*d);if(g.x=f/x,g.y=p/x,g.z=w/x,o){const n=t.stNwCorner;a.defined(n)?(S=n.latitude-t.stGranYCos*r+e*t.stGranXSin,X=n.longitude+r*t.stGranYSin+e*t.stGranXCos,u.x=(X-t.stWest)*t.lonScalar,u.y=(S-t.stSouth)*t.latScalar):(u.x=(X-C.west)*t.lonScalar,u.y=(S-C.south)*t.latScalar)}}},u=new e.Matrix2;let h=new n.Cartesian3;const l=new n.Cartographic;let C=new n.Cartesian3;const S=new o.GeographicProjection;function M(t,a,o,r,s,i,c){const g=Math.cos(a),l=r*g,M=o*g,d=Math.sin(a),w=r*d,X=o*d;h=S.project(t,h),h=n.Cartesian3.subtract(h,C,h);const Y=e.Matrix2.fromRotation(a,u);h=e.Matrix2.multiplyByVector(Y,h,h),h=n.Cartesian3.add(h,C,h),i-=1,c-=1;const m=(t=S.unproject(h,t)).latitude,f=m+i*X,p=m-l*c,x=m-l*c+i*X,G=Math.max(m,f,p,x),R=Math.min(m,f,p,x),y=t.longitude,O=y+i*M,P=y+c*w,W=y+c*w+i*M;return{north:G,south:R,east:Math.max(y,O,P,W),west:Math.min(y,O,P,W),granYCos:l,granYSin:w,granXCos:M,granXSin:X,nwCorner:t}}g.computeOptions=function(t,n,a,o,s,i,c){let g,u=t.east,h=t.west,d=t.north,w=t.south,X=!1,Y=!1;d===r.CesiumMath.PI_OVER_TWO&&(X=!0),w===-r.CesiumMath.PI_OVER_TWO&&(Y=!0);const m=d-w;g=h>u?r.CesiumMath.TWO_PI-h+u:u-h;const f=Math.ceil(g/n)+1,p=Math.ceil(m/n)+1,x=g/(f-1),G=m/(p-1),R=e.Rectangle.northwest(t,i),y=e.Rectangle.center(t,l);0===a&&0===o||(y.longitude<R.longitude&&(y.longitude+=r.CesiumMath.TWO_PI),C=S.project(y,C));const O=G,P=x,W=e.Rectangle.clone(t,s),_={granYCos:O,granYSin:0,granXCos:P,granXSin:0,nwCorner:R,boundingRectangle:W,width:f,height:p,northCap:X,southCap:Y};if(0!==a){const t=M(R,a,x,G,0,f,p);d=t.north,w=t.south,u=t.east,h=t.west,_.granYCos=t.granYCos,_.granYSin=t.granYSin,_.granXCos=t.granXCos,_.granXSin=t.granXSin,W.north=d,W.south=w,W.east=u,W.west=h}if(0!==o){a-=o;const t=e.Rectangle.northwest(W,c),n=M(t,a,x,G,0,f,p);_.stGranYCos=n.granYCos,_.stGranXCos=n.granXCos,_.stGranYSin=n.granYSin,_.stGranXSin=n.granXSin,_.stNwCorner=t,_.stWest=n.west,_.stSouth=n.south}return _};var d=g;t.RectangleGeometryLibrary=d}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Matrix2-1509208a","./defaultValue-69ee94f4","./RuntimeError-ac440aa5","./Transforms-bf323bcf","./ComponentDatatype-a9820060"],(function(t,n,a,e,o,r){"use strict";const s=Math.cos,i=Math.sin,c=Math.sqrt,g={computePosition:function(t,n,e,o,r,g,u){const h=n.radiiSquared,l=t.nwCorner,C=t.boundingRectangle;let S=l.latitude-t.granYCos*o+r*t.granXSin;const d=s(S),w=i(S),M=h.z*w;let m=l.longitude+o*t.granYSin+r*t.granXCos;const X=d*s(m),Y=d*i(m),f=h.x*X,p=h.y*Y,x=c(f*X+p*Y+M*w);if(g.x=f/x,g.y=p/x,g.z=M/x,e){const n=t.stNwCorner;a.defined(n)?(S=n.latitude-t.stGranYCos*o+r*t.stGranXSin,m=n.longitude+o*t.stGranYSin+r*t.stGranXCos,u.x=(m-t.stWest)*t.lonScalar,u.y=(S-t.stSouth)*t.latScalar):(u.x=(m-C.west)*t.lonScalar,u.y=(S-C.south)*t.latScalar)}}},u=new n.Matrix2;let h=new n.Cartesian3;const l=new n.Cartographic;let C=new n.Cartesian3;const S=new o.GeographicProjection;function d(t,a,e,o,r,s,i){const c=Math.cos(a),g=o*c,l=e*c,d=Math.sin(a),w=o*d,M=e*d;h=S.project(t,h),h=n.Cartesian3.subtract(h,C,h);const m=n.Matrix2.fromRotation(a,u);h=n.Matrix2.multiplyByVector(m,h,h),h=n.Cartesian3.add(h,C,h),s-=1,i-=1;const X=(t=S.unproject(h,t)).latitude,Y=X+s*M,f=X-g*i,p=X-g*i+s*M,x=Math.max(X,Y,f,p),R=Math.min(X,Y,f,p),G=t.longitude,y=G+s*l,O=G+i*w,b=G+i*w+s*l;return{north:x,south:R,east:Math.max(G,y,O,b),west:Math.min(G,y,O,b),granYCos:g,granYSin:w,granXCos:l,granXSin:M,nwCorner:t}}g.computeOptions=function(t,a,e,o,s,i,c){let g,u=t.east,h=t.west,w=t.north,M=t.south,m=!1,X=!1;w===r.CesiumMath.PI_OVER_TWO&&(m=!0),M===-r.CesiumMath.PI_OVER_TWO&&(X=!0);const Y=w-M;g=h>u?r.CesiumMath.TWO_PI-h+u:u-h;const f=Math.ceil(g/a)+1,p=Math.ceil(Y/a)+1,x=g/(f-1),R=Y/(p-1),G=n.Rectangle.northwest(t,i),y=n.Rectangle.center(t,l);0===e&&0===o||(y.longitude<G.longitude&&(y.longitude+=r.CesiumMath.TWO_PI),C=S.project(y,C));const O=R,b=x,P=n.Rectangle.clone(t,s),W={granYCos:O,granYSin:0,granXCos:b,granXSin:0,nwCorner:G,boundingRectangle:P,width:f,height:p,northCap:m,southCap:X};if(0!==e){const t=d(G,e,x,R,0,f,p);w=t.north,M=t.south,u=t.east,h=t.west,W.granYCos=t.granYCos,W.granYSin=t.granYSin,W.granXCos=t.granXCos,W.granXSin=t.granXSin,P.north=w,P.south=M,P.east=u,P.west=h}if(0!==o){e-=o;const t=n.Rectangle.northwest(P,c),a=d(t,e,x,R,0,f,p);W.stGranYCos=a.granYCos,W.stGranXCos=a.granXCos,W.stGranYSin=a.granYSin,W.stGranXSin=a.granXSin,W.stNwCorner=t,W.stWest=a.west,W.stSouth=a.south}return W},t.RectangleGeometryLibrary=g}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./defaultValue-f6d5e6da"],(function(t,e){"use strict";function r(t){let e;this.name="RuntimeError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}e.defined(Object.create)&&(r.prototype=Object.create(Error.prototype),r.prototype.constructor=r),r.prototype.toString=function(){let t=`${this.name}: ${this.message}`;return e.defined(this.stack)&&(t+=`\n${this.stack.toString()}`),t},t.RuntimeError=r}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./defaultValue-69ee94f4"],(function(t,e){"use strict";function n(t){let e;this.name="DeveloperError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}e.defined(Object.create)&&(n.prototype=Object.create(Error.prototype),n.prototype.constructor=n),n.prototype.toString=function(){let t=`${this.name}: ${this.message}`;return e.defined(this.stack)&&(t+=`\n${this.stack.toString()}`),t},n.throwInstantiationError=function(){throw new n("This function defines an interface and should not be called directly.")};const o={};function r(t,e,n){return`Expected ${n} to be typeof ${e}, actual typeof was ${t}`}function i(t){let e;this.name="RuntimeError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}o.typeOf={},o.defined=function(t,o){if(!e.defined(o))throw new n(function(t){return`${t} is required, actual value was undefined`}(t))},o.typeOf.func=function(t,e){if("function"!=typeof e)throw new n(r(typeof e,"function",t))},o.typeOf.string=function(t,e){if("string"!=typeof e)throw new n(r(typeof e,"string",t))},o.typeOf.number=function(t,e){if("number"!=typeof e)throw new n(r(typeof e,"number",t))},o.typeOf.number.lessThan=function(t,e,r){if(o.typeOf.number(t,e),e>=r)throw new n(`Expected ${t} to be less than ${r}, actual value was ${e}`)},o.typeOf.number.lessThanOrEquals=function(t,e,r){if(o.typeOf.number(t,e),e>r)throw new n(`Expected ${t} to be less than or equal to ${r}, actual value was ${e}`)},o.typeOf.number.greaterThan=function(t,e,r){if(o.typeOf.number(t,e),e<=r)throw new n(`Expected ${t} to be greater than ${r}, actual value was ${e}`)},o.typeOf.number.greaterThanOrEquals=function(t,e,r){if(o.typeOf.number(t,e),e<r)throw new n(`Expected ${t} to be greater than or equal to ${r}, actual value was ${e}`)},o.typeOf.object=function(t,e){if("object"!=typeof e)throw new n(r(typeof e,"object",t))},o.typeOf.bool=function(t,e){if("boolean"!=typeof e)throw new n(r(typeof e,"boolean",t))},o.typeOf.bigint=function(t,e){if("bigint"!=typeof e)throw new n(r(typeof e,"bigint",t))},o.typeOf.number.equals=function(t,e,r,i){if(o.typeOf.number(t,r),o.typeOf.number(e,i),r!==i)throw new n(`${t} must be equal to ${e}, the actual values are ${r} and ${i}`)},e.defined(Object.create)&&(i.prototype=Object.create(Error.prototype),i.prototype.constructor=i),i.prototype.toString=function(){let t=`${this.name}: ${this.message}`;return e.defined(this.stack)&&(t+=`\n${this.stack.toString()}`),t},t.Check=o,t.DeveloperError=n,t.RuntimeError=i}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Transforms-bf323bcf","./Matrix2-1509208a","./RuntimeError-ac440aa5","./defaultValue-69ee94f4","./AttributeCompression-7a823eb1","./ComponentDatatype-a9820060"],(function(t,e,i,o,a,r,n){"use strict";function s(t,e){this._ellipsoid=t,this._cameraPosition=new i.Cartesian3,this._cameraPositionInScaledSpace=new i.Cartesian3,this._distanceToLimbInScaledSpaceSquared=0,a.defined(e)&&(this.cameraPosition=e)}Object.defineProperties(s.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(t){const e=this._ellipsoid.transformPositionToScaledSpace(t,this._cameraPositionInScaledSpace),o=i.Cartesian3.magnitudeSquared(e)-1;i.Cartesian3.clone(t,this._cameraPosition),this._cameraPositionInScaledSpace=e,this._distanceToLimbInScaledSpaceSquared=o}}});const c=new i.Cartesian3;s.prototype.isPointVisible=function(t){return S(this._ellipsoid.transformPositionToScaledSpace(t,c),this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},s.prototype.isScaledSpacePointVisible=function(t){return S(t,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)};const u=new i.Cartesian3;s.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(t,e){const i=this._ellipsoid;let o,r;return a.defined(e)&&e<0&&i.minimumRadius>-e?(r=u,r.x=this._cameraPosition.x/(i.radii.x+e),r.y=this._cameraPosition.y/(i.radii.y+e),r.z=this._cameraPosition.z/(i.radii.z+e),o=r.x*r.x+r.y*r.y+r.z*r.z-1):(r=this._cameraPositionInScaledSpace,o=this._distanceToLimbInScaledSpaceSquared),S(t,r,o)},s.prototype.computeHorizonCullingPoint=function(t,e,i){return f(this._ellipsoid,t,e,i)};const d=i.Ellipsoid.clone(i.Ellipsoid.UNIT_SPHERE);s.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(t,e,i,o){return f(h(this._ellipsoid,i,d),t,e,o)},s.prototype.computeHorizonCullingPointFromVertices=function(t,e,i,o,a){return x(this._ellipsoid,t,e,i,o,a)},s.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(t,e,i,o,a,r){return x(h(this._ellipsoid,a,d),t,e,i,o,r)};const l=[];s.prototype.computeHorizonCullingPointFromRectangle=function(t,o,a){const r=i.Rectangle.subsample(t,o,0,l),n=e.BoundingSphere.fromPoints(r);if(!(i.Cartesian3.magnitude(n.center)<.1*o.minimumRadius))return this.computeHorizonCullingPoint(n.center,r,a)};const m=new i.Cartesian3;function h(t,e,o){if(a.defined(e)&&e<0&&t.minimumRadius>-e){const a=i.Cartesian3.fromElements(t.radii.x+e,t.radii.y+e,t.radii.z+e,m);t=i.Ellipsoid.fromCartesian3(a,o)}return t}function f(t,e,o,r){a.defined(r)||(r=new i.Cartesian3);const n=T(t,e);let s=0;for(let e=0,i=o.length;e<i;++e){const i=y(t,o[e],n);if(i<0)return;s=Math.max(s,i)}return N(n,s,r)}const p=new i.Cartesian3;function x(t,e,o,r,n,s){a.defined(s)||(s=new i.Cartesian3),r=a.defaultValue(r,3),n=a.defaultValue(n,i.Cartesian3.ZERO);const c=T(t,e);let u=0;for(let e=0,i=o.length;e<i;e+=r){p.x=o[e]+n.x,p.y=o[e+1]+n.y,p.z=o[e+2]+n.z;const i=y(t,p,c);if(i<0)return;u=Math.max(u,i)}return N(c,u,s)}function S(t,e,o){const a=e,r=o,n=i.Cartesian3.subtract(t,a,c),s=-i.Cartesian3.dot(n,a);return!(r<0?s>0:s>r&&s*s/i.Cartesian3.magnitudeSquared(n)>r)}const C=new i.Cartesian3,g=new i.Cartesian3;function y(t,e,o){const a=t.transformPositionToScaledSpace(e,C);let r=i.Cartesian3.magnitudeSquared(a),n=Math.sqrt(r);const s=i.Cartesian3.divideByScalar(a,n,g);r=Math.max(1,r),n=Math.max(1,n);const c=1/n;return 1/(i.Cartesian3.dot(s,o)*c-i.Cartesian3.magnitude(i.Cartesian3.cross(s,o,s))*(Math.sqrt(r-1)*c))}function N(t,e,o){if(!(e<=0||e===1/0||e!=e))return i.Cartesian3.multiplyByScalar(t,e,o)}const M=new i.Cartesian3;function T(t,e){return i.Cartesian3.equals(e,i.Cartesian3.ZERO)?e:(t.transformPositionToScaledSpace(e,M),i.Cartesian3.normalize(M,M))}const b={getHeight:function(t,e,i){return(t-i)*e+i}},P=new i.Cartesian3;b.getPosition=function(t,e,o,a,r){const n=e.cartesianToCartographic(t,P),s=b.getHeight(n.height,o,a);return i.Cartesian3.fromRadians(n.longitude,n.latitude,s,e,r)};var z=Object.freeze({NONE:0,BITS12:1});const _=new i.Cartesian3,E=new i.Cartesian3,H=new i.Cartesian2,w=new i.Matrix4,A=new i.Matrix4,I=Math.pow(2,12);function V(t,e,o,r,n,s,c,u,d,l){let m,h,f=z.NONE;if(a.defined(e)&&a.defined(o)&&a.defined(r)&&a.defined(n)){const t=e.minimum,a=e.maximum,s=i.Cartesian3.subtract(a,t,E),c=r-o;f=Math.max(i.Cartesian3.maximumComponent(s),c)<I-1?z.BITS12:z.NONE,m=i.Matrix4.inverseTransformation(n,new i.Matrix4);const u=i.Cartesian3.negate(t,_);i.Matrix4.multiply(i.Matrix4.fromTranslation(u,w),m,m);const d=_;d.x=1/s.x,d.y=1/s.y,d.z=1/s.z,i.Matrix4.multiply(i.Matrix4.fromScale(d,w),m,m),h=i.Matrix4.clone(n),i.Matrix4.setTranslation(h,i.Cartesian3.ZERO,h),n=i.Matrix4.clone(n,new i.Matrix4);const l=i.Matrix4.fromTranslation(t,w),p=i.Matrix4.fromScale(s,A),x=i.Matrix4.multiply(l,p,w);i.Matrix4.multiply(n,x,n),i.Matrix4.multiply(h,x,h)}this.quantization=f,this.minimumHeight=o,this.maximumHeight=r,this.center=i.Cartesian3.clone(t),this.toScaledENU=m,this.fromScaledENU=n,this.matrix=h,this.hasVertexNormals=s,this.hasWebMercatorT=a.defaultValue(c,!1),this.hasGeodeticSurfaceNormals=a.defaultValue(u,!1),this.exaggeration=a.defaultValue(d,1),this.exaggerationRelativeHeight=a.defaultValue(l,0),this.stride=0,this._offsetGeodeticSurfaceNormal=0,this._offsetVertexNormal=0,this._calculateStrideAndOffsets()}V.prototype.encode=function(t,e,o,a,s,c,u,d){const l=a.x,m=a.y;if(this.quantization===z.BITS12){(o=i.Matrix4.multiplyByPoint(this.toScaledENU,o,_)).x=n.CesiumMath.clamp(o.x,0,1),o.y=n.CesiumMath.clamp(o.y,0,1),o.z=n.CesiumMath.clamp(o.z,0,1);const a=this.maximumHeight-this.minimumHeight,c=n.CesiumMath.clamp((s-this.minimumHeight)/a,0,1);i.Cartesian2.fromElements(o.x,o.y,H);const d=r.AttributeCompression.compressTextureCoordinates(H);i.Cartesian2.fromElements(o.z,c,H);const h=r.AttributeCompression.compressTextureCoordinates(H);i.Cartesian2.fromElements(l,m,H);const f=r.AttributeCompression.compressTextureCoordinates(H);if(t[e++]=d,t[e++]=h,t[e++]=f,this.hasWebMercatorT){i.Cartesian2.fromElements(u,0,H);const o=r.AttributeCompression.compressTextureCoordinates(H);t[e++]=o}}else i.Cartesian3.subtract(o,this.center,_),t[e++]=_.x,t[e++]=_.y,t[e++]=_.z,t[e++]=s,t[e++]=l,t[e++]=m,this.hasWebMercatorT&&(t[e++]=u);return this.hasVertexNormals&&(t[e++]=r.AttributeCompression.octPackFloat(c)),this.hasGeodeticSurfaceNormals&&(t[e++]=d.x,t[e++]=d.y,t[e++]=d.z),e};const q=new i.Cartesian3,G=new i.Cartesian3;V.prototype.addGeodeticSurfaceNormals=function(t,e,i){if(this.hasGeodeticSurfaceNormals)return;const o=this.stride,a=t.length/o;this.hasGeodeticSurfaceNormals=!0,this._calculateStrideAndOffsets();const r=this.stride;for(let n=0;n<a;n++){for(let i=0;i<o;i++){const a=n*o+i;e[n*r+i]=t[a]}const a=this.decodePosition(e,n,q),s=i.geodeticSurfaceNormal(a,G),c=n*r+this._offsetGeodeticSurfaceNormal;e[c]=s.x,e[c+1]=s.y,e[c+2]=s.z}},V.prototype.removeGeodeticSurfaceNormals=function(t,e){if(!this.hasGeodeticSurfaceNormals)return;const i=this.stride,o=t.length/i;this.hasGeodeticSurfaceNormals=!1,this._calculateStrideAndOffsets();const a=this.stride;for(let r=0;r<o;r++)for(let o=0;o<a;o++){const n=r*i+o;e[r*a+o]=t[n]}},V.prototype.decodePosition=function(t,e,o){if(a.defined(o)||(o=new i.Cartesian3),e*=this.stride,this.quantization===z.BITS12){const a=r.AttributeCompression.decompressTextureCoordinates(t[e],H);o.x=a.x,o.y=a.y;const n=r.AttributeCompression.decompressTextureCoordinates(t[e+1],H);return o.z=n.x,i.Matrix4.multiplyByPoint(this.fromScaledENU,o,o)}return o.x=t[e],o.y=t[e+1],o.z=t[e+2],i.Cartesian3.add(o,this.center,o)},V.prototype.getExaggeratedPosition=function(t,e,i){i=this.decodePosition(t,e,i);const o=this.exaggeration,a=this.exaggerationRelativeHeight;if(1!==o&&this.hasGeodeticSurfaceNormals){const r=this.decodeGeodeticSurfaceNormal(t,e,G),n=this.decodeHeight(t,e),s=b.getHeight(n,o,a)-n;i.x+=r.x*s,i.y+=r.y*s,i.z+=r.z*s}return i},V.prototype.decodeTextureCoordinates=function(t,e,o){return a.defined(o)||(o=new i.Cartesian2),e*=this.stride,this.quantization===z.BITS12?r.AttributeCompression.decompressTextureCoordinates(t[e+2],o):i.Cartesian2.fromElements(t[e+4],t[e+5],o)},V.prototype.decodeHeight=function(t,e){if(e*=this.stride,this.quantization===z.BITS12){return r.AttributeCompression.decompressTextureCoordinates(t[e+1],H).y*(this.maximumHeight-this.minimumHeight)+this.minimumHeight}return t[e+3]},V.prototype.decodeWebMercatorT=function(t,e){return e*=this.stride,this.quantization===z.BITS12?r.AttributeCompression.decompressTextureCoordinates(t[e+3],H).x:t[e+6]},V.prototype.getOctEncodedNormal=function(t,e,o){const a=t[e=e*this.stride+this._offsetVertexNormal]/256,r=Math.floor(a),n=256*(a-r);return i.Cartesian2.fromElements(r,n,o)},V.prototype.decodeGeodeticSurfaceNormal=function(t,e,i){return e=e*this.stride+this._offsetGeodeticSurfaceNormal,i.x=t[e],i.y=t[e+1],i.z=t[e+2],i},V.prototype._calculateStrideAndOffsets=function(){let t=0;if(this.quantization===z.BITS12)t+=3;else t+=6;this.hasWebMercatorT&&(t+=1),this.hasVertexNormals&&(this._offsetVertexNormal=t,t+=1),this.hasGeodeticSurfaceNormals&&(this._offsetGeodeticSurfaceNormal=t,t+=3),this.stride=t};const O={position3DAndHeight:0,textureCoordAndEncodedNormals:1,geodeticSurfaceNormal:2},B={compressed0:0,compressed1:1,geodeticSurfaceNormal:2};V.prototype.getAttributes=function(t){const e=n.ComponentDatatype.FLOAT,i=n.ComponentDatatype.getSizeInBytes(e),o=this.stride*i;let a=0;const r=[];function s(n,s){r.push({index:n,vertexBuffer:t,componentDatatype:e,componentsPerAttribute:s,offsetInBytes:a,strideInBytes:o}),a+=s*i}if(this.quantization===z.NONE){s(O.position3DAndHeight,4);let t=2;t+=this.hasWebMercatorT?1:0,t+=this.hasVertexNormals?1:0,s(O.textureCoordAndEncodedNormals,t),this.hasGeodeticSurfaceNormals&&s(O.geodeticSurfaceNormal,3)}else{const t=this.hasWebMercatorT||this.hasVertexNormals,e=this.hasWebMercatorT&&this.hasVertexNormals;s(B.compressed0,t?4:3),e&&s(B.compressed1,1),this.hasGeodeticSurfaceNormals&&s(B.geodeticSurfaceNormal,3)}return r},V.prototype.getAttributeLocations=function(){return this.quantization===z.NONE?O:B},V.clone=function(t,e){if(a.defined(t))return a.defined(e)||(e=new V),e.quantization=t.quantization,e.minimumHeight=t.minimumHeight,e.maximumHeight=t.maximumHeight,e.center=i.Cartesian3.clone(t.center),e.toScaledENU=i.Matrix4.clone(t.toScaledENU),e.fromScaledENU=i.Matrix4.clone(t.fromScaledENU),e.matrix=i.Matrix4.clone(t.matrix),e.hasVertexNormals=t.hasVertexNormals,e.hasWebMercatorT=t.hasWebMercatorT,e.hasGeodeticSurfaceNormals=t.hasGeodeticSurfaceNormals,e.exaggeration=t.exaggeration,e.exaggerationRelativeHeight=t.exaggerationRelativeHeight,e._calculateStrideAndOffsets(),e},t.EllipsoidalOccluder=s,t.TerrainEncoding=V}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Transforms-c65aae74","./Matrix3-81054f0f","./defaultValue-f6d5e6da","./Matrix2-413c4048","./AttributeCompression-48e336db","./ComponentDatatype-ab629b88","./Math-2ce22ee9"],(function(t,e,i,o,a,r,n,s){"use strict";function c(t,e){this._ellipsoid=t,this._cameraPosition=new i.Cartesian3,this._cameraPositionInScaledSpace=new i.Cartesian3,this._distanceToLimbInScaledSpaceSquared=0,o.defined(e)&&(this.cameraPosition=e)}Object.defineProperties(c.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(t){const e=this._ellipsoid.transformPositionToScaledSpace(t,this._cameraPositionInScaledSpace),o=i.Cartesian3.magnitudeSquared(e)-1;i.Cartesian3.clone(t,this._cameraPosition),this._cameraPositionInScaledSpace=e,this._distanceToLimbInScaledSpaceSquared=o}}});const u=new i.Cartesian3;c.prototype.isPointVisible=function(t){return C(this._ellipsoid.transformPositionToScaledSpace(t,u),this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},c.prototype.isScaledSpacePointVisible=function(t){return C(t,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)};const d=new i.Cartesian3;c.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(t,e){const i=this._ellipsoid;let a,r;return o.defined(e)&&e<0&&i.minimumRadius>-e?(r=d,r.x=this._cameraPosition.x/(i.radii.x+e),r.y=this._cameraPosition.y/(i.radii.y+e),r.z=this._cameraPosition.z/(i.radii.z+e),a=r.x*r.x+r.y*r.y+r.z*r.z-1):(r=this._cameraPositionInScaledSpace,a=this._distanceToLimbInScaledSpaceSquared),C(t,r,a)},c.prototype.computeHorizonCullingPoint=function(t,e,i){return p(this._ellipsoid,t,e,i)};const l=i.Ellipsoid.clone(i.Ellipsoid.UNIT_SPHERE);c.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(t,e,i,o){return p(f(this._ellipsoid,i,l),t,e,o)},c.prototype.computeHorizonCullingPointFromVertices=function(t,e,i,o,a){return S(this._ellipsoid,t,e,i,o,a)},c.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(t,e,i,o,a,r){return S(f(this._ellipsoid,a,l),t,e,i,o,r)};const m=[];c.prototype.computeHorizonCullingPointFromRectangle=function(t,o,r){const n=a.Rectangle.subsample(t,o,0,m),s=e.BoundingSphere.fromPoints(n);if(!(i.Cartesian3.magnitude(s.center)<.1*o.minimumRadius))return this.computeHorizonCullingPoint(s.center,n,r)};const h=new i.Cartesian3;function f(t,e,a){if(o.defined(e)&&e<0&&t.minimumRadius>-e){const o=i.Cartesian3.fromElements(t.radii.x+e,t.radii.y+e,t.radii.z+e,h);t=i.Ellipsoid.fromCartesian3(o,a)}return t}function p(t,e,a,r){o.defined(r)||(r=new i.Cartesian3);const n=P(t,e);let s=0;for(let e=0,i=a.length;e<i;++e){const i=N(t,a[e],n);if(i<0)return;s=Math.max(s,i)}return M(n,s,r)}const x=new i.Cartesian3;function S(t,e,a,r,n,s){o.defined(s)||(s=new i.Cartesian3),r=o.defaultValue(r,3),n=o.defaultValue(n,i.Cartesian3.ZERO);const c=P(t,e);let u=0;for(let e=0,i=a.length;e<i;e+=r){x.x=a[e]+n.x,x.y=a[e+1]+n.y,x.z=a[e+2]+n.z;const i=N(t,x,c);if(i<0)return;u=Math.max(u,i)}return M(c,u,s)}function C(t,e,o){const a=e,r=o,n=i.Cartesian3.subtract(t,a,u),s=-i.Cartesian3.dot(n,a);return!(r<0?s>0:s>r&&s*s/i.Cartesian3.magnitudeSquared(n)>r)}const g=new i.Cartesian3,y=new i.Cartesian3;function N(t,e,o){const a=t.transformPositionToScaledSpace(e,g);let r=i.Cartesian3.magnitudeSquared(a),n=Math.sqrt(r);const s=i.Cartesian3.divideByScalar(a,n,y);r=Math.max(1,r),n=Math.max(1,n);const c=1/n;return 1/(i.Cartesian3.dot(s,o)*c-i.Cartesian3.magnitude(i.Cartesian3.cross(s,o,s))*(Math.sqrt(r-1)*c))}function M(t,e,o){if(!(e<=0||e===1/0||e!=e))return i.Cartesian3.multiplyByScalar(t,e,o)}const T=new i.Cartesian3;function P(t,e){return i.Cartesian3.equals(e,i.Cartesian3.ZERO)?e:(t.transformPositionToScaledSpace(e,T),i.Cartesian3.normalize(T,T))}const b={getHeight:function(t,e,i){return(t-i)*e+i}},z=new i.Cartesian3;b.getPosition=function(t,e,o,a,r){const n=e.cartesianToCartographic(t,z),s=b.getHeight(n.height,o,a);return i.Cartesian3.fromRadians(n.longitude,n.latitude,s,e,r)};var _=b;var E=Object.freeze({NONE:0,BITS12:1});const H=new i.Cartesian3,w=new i.Cartesian3,A=new a.Cartesian2,I=new a.Matrix4,V=new a.Matrix4,q=Math.pow(2,12);function G(t,e,r,n,s,c,u,d,l,m){let h,f,p=E.NONE;if(o.defined(e)&&o.defined(r)&&o.defined(n)&&o.defined(s)){const t=e.minimum,o=e.maximum,c=i.Cartesian3.subtract(o,t,w),u=n-r;p=Math.max(i.Cartesian3.maximumComponent(c),u)<q-1?E.BITS12:E.NONE,h=a.Matrix4.inverseTransformation(s,new a.Matrix4);const d=i.Cartesian3.negate(t,H);a.Matrix4.multiply(a.Matrix4.fromTranslation(d,I),h,h);const l=H;l.x=1/c.x,l.y=1/c.y,l.z=1/c.z,a.Matrix4.multiply(a.Matrix4.fromScale(l,I),h,h),f=a.Matrix4.clone(s),a.Matrix4.setTranslation(f,i.Cartesian3.ZERO,f),s=a.Matrix4.clone(s,new a.Matrix4);const m=a.Matrix4.fromTranslation(t,I),x=a.Matrix4.fromScale(c,V),S=a.Matrix4.multiply(m,x,I);a.Matrix4.multiply(s,S,s),a.Matrix4.multiply(f,S,f)}this.quantization=p,this.minimumHeight=r,this.maximumHeight=n,this.center=i.Cartesian3.clone(t),this.toScaledENU=h,this.fromScaledENU=s,this.matrix=f,this.hasVertexNormals=c,this.hasWebMercatorT=o.defaultValue(u,!1),this.hasGeodeticSurfaceNormals=o.defaultValue(d,!1),this.exaggeration=o.defaultValue(l,1),this.exaggerationRelativeHeight=o.defaultValue(m,0),this.stride=0,this._offsetGeodeticSurfaceNormal=0,this._offsetVertexNormal=0,this._calculateStrideAndOffsets()}G.prototype.encode=function(t,e,o,n,c,u,d,l){const m=n.x,h=n.y;if(this.quantization===E.BITS12){(o=a.Matrix4.multiplyByPoint(this.toScaledENU,o,H)).x=s.CesiumMath.clamp(o.x,0,1),o.y=s.CesiumMath.clamp(o.y,0,1),o.z=s.CesiumMath.clamp(o.z,0,1);const i=this.maximumHeight-this.minimumHeight,n=s.CesiumMath.clamp((c-this.minimumHeight)/i,0,1);a.Cartesian2.fromElements(o.x,o.y,A);const u=r.AttributeCompression.compressTextureCoordinates(A);a.Cartesian2.fromElements(o.z,n,A);const l=r.AttributeCompression.compressTextureCoordinates(A);a.Cartesian2.fromElements(m,h,A);const f=r.AttributeCompression.compressTextureCoordinates(A);if(t[e++]=u,t[e++]=l,t[e++]=f,this.hasWebMercatorT){a.Cartesian2.fromElements(d,0,A);const i=r.AttributeCompression.compressTextureCoordinates(A);t[e++]=i}}else i.Cartesian3.subtract(o,this.center,H),t[e++]=H.x,t[e++]=H.y,t[e++]=H.z,t[e++]=c,t[e++]=m,t[e++]=h,this.hasWebMercatorT&&(t[e++]=d);return this.hasVertexNormals&&(t[e++]=r.AttributeCompression.octPackFloat(u)),this.hasGeodeticSurfaceNormals&&(t[e++]=l.x,t[e++]=l.y,t[e++]=l.z),e};const O=new i.Cartesian3,B=new i.Cartesian3;G.prototype.addGeodeticSurfaceNormals=function(t,e,i){if(this.hasGeodeticSurfaceNormals)return;const o=this.stride,a=t.length/o;this.hasGeodeticSurfaceNormals=!0,this._calculateStrideAndOffsets();const r=this.stride;for(let n=0;n<a;n++){for(let i=0;i<o;i++){const a=n*o+i;e[n*r+i]=t[a]}const a=this.decodePosition(e,n,O),s=i.geodeticSurfaceNormal(a,B),c=n*r+this._offsetGeodeticSurfaceNormal;e[c]=s.x,e[c+1]=s.y,e[c+2]=s.z}},G.prototype.removeGeodeticSurfaceNormals=function(t,e){if(!this.hasGeodeticSurfaceNormals)return;const i=this.stride,o=t.length/i;this.hasGeodeticSurfaceNormals=!1,this._calculateStrideAndOffsets();const a=this.stride;for(let r=0;r<o;r++)for(let o=0;o<a;o++){const n=r*i+o;e[r*a+o]=t[n]}},G.prototype.decodePosition=function(t,e,n){if(o.defined(n)||(n=new i.Cartesian3),e*=this.stride,this.quantization===E.BITS12){const i=r.AttributeCompression.decompressTextureCoordinates(t[e],A);n.x=i.x,n.y=i.y;const o=r.AttributeCompression.decompressTextureCoordinates(t[e+1],A);return n.z=o.x,a.Matrix4.multiplyByPoint(this.fromScaledENU,n,n)}return n.x=t[e],n.y=t[e+1],n.z=t[e+2],i.Cartesian3.add(n,this.center,n)},G.prototype.getExaggeratedPosition=function(t,e,i){i=this.decodePosition(t,e,i);const o=this.exaggeration,a=this.exaggerationRelativeHeight;if(1!==o&&this.hasGeodeticSurfaceNormals){const r=this.decodeGeodeticSurfaceNormal(t,e,B),n=this.decodeHeight(t,e),s=_.getHeight(n,o,a)-n;i.x+=r.x*s,i.y+=r.y*s,i.z+=r.z*s}return i},G.prototype.decodeTextureCoordinates=function(t,e,i){return o.defined(i)||(i=new a.Cartesian2),e*=this.stride,this.quantization===E.BITS12?r.AttributeCompression.decompressTextureCoordinates(t[e+2],i):a.Cartesian2.fromElements(t[e+4],t[e+5],i)},G.prototype.decodeHeight=function(t,e){if(e*=this.stride,this.quantization===E.BITS12){return r.AttributeCompression.decompressTextureCoordinates(t[e+1],A).y*(this.maximumHeight-this.minimumHeight)+this.minimumHeight}return t[e+3]},G.prototype.decodeWebMercatorT=function(t,e){return e*=this.stride,this.quantization===E.BITS12?r.AttributeCompression.decompressTextureCoordinates(t[e+3],A).x:t[e+6]},G.prototype.getOctEncodedNormal=function(t,e,i){const o=t[e=e*this.stride+this._offsetVertexNormal]/256,r=Math.floor(o),n=256*(o-r);return a.Cartesian2.fromElements(r,n,i)},G.prototype.decodeGeodeticSurfaceNormal=function(t,e,i){return e=e*this.stride+this._offsetGeodeticSurfaceNormal,i.x=t[e],i.y=t[e+1],i.z=t[e+2],i},G.prototype._calculateStrideAndOffsets=function(){let t=0;if(this.quantization===E.BITS12)t+=3;else t+=6;this.hasWebMercatorT&&(t+=1),this.hasVertexNormals&&(this._offsetVertexNormal=t,t+=1),this.hasGeodeticSurfaceNormals&&(this._offsetGeodeticSurfaceNormal=t,t+=3),this.stride=t};const R={position3DAndHeight:0,textureCoordAndEncodedNormals:1,geodeticSurfaceNormal:2},U={compressed0:0,compressed1:1,geodeticSurfaceNormal:2};G.prototype.getAttributes=function(t){const e=n.ComponentDatatype.FLOAT,i=n.ComponentDatatype.getSizeInBytes(e),o=this.stride*i;let a=0;const r=[];function s(n,s){r.push({index:n,vertexBuffer:t,componentDatatype:e,componentsPerAttribute:s,offsetInBytes:a,strideInBytes:o}),a+=s*i}if(this.quantization===E.NONE){s(R.position3DAndHeight,4);let t=2;t+=this.hasWebMercatorT?1:0,t+=this.hasVertexNormals?1:0,s(R.textureCoordAndEncodedNormals,t),this.hasGeodeticSurfaceNormals&&s(R.geodeticSurfaceNormal,3)}else{const t=this.hasWebMercatorT||this.hasVertexNormals,e=this.hasWebMercatorT&&this.hasVertexNormals;s(U.compressed0,t?4:3),e&&s(U.compressed1,1),this.hasGeodeticSurfaceNormals&&s(U.geodeticSurfaceNormal,3)}return r},G.prototype.getAttributeLocations=function(){return this.quantization===E.NONE?R:U},G.clone=function(t,e){if(o.defined(t))return o.defined(e)||(e=new G),e.quantization=t.quantization,e.minimumHeight=t.minimumHeight,e.maximumHeight=t.maximumHeight,e.center=i.Cartesian3.clone(t.center),e.toScaledENU=a.Matrix4.clone(t.toScaledENU),e.fromScaledENU=a.Matrix4.clone(t.fromScaledENU),e.matrix=a.Matrix4.clone(t.matrix),e.hasVertexNormals=t.hasVertexNormals,e.hasWebMercatorT=t.hasWebMercatorT,e.hasGeodeticSurfaceNormals=t.hasGeodeticSurfaceNormals,e.exaggeration=t.exaggeration,e.exaggerationRelativeHeight=t.exaggerationRelativeHeight,e._calculateStrideAndOffsets(),e},t.EllipsoidalOccluder=c,t.TerrainEncoding=G}));
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
define(["exports","./Matrix2-1509208a","./RuntimeError-ac440aa5","./defaultValue-69ee94f4","./ComponentDatatype-a9820060","./_commonjsHelpers-3aae1032-15991586","./combine-0259f56f"],(function(e,t,n,r,o,i,s){"use strict";function a(e){this._ellipsoid=r.defaultValue(e,t.Ellipsoid.WGS84),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(a.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),a.prototype.project=function(e,n){const o=this._semimajorAxis,i=e.longitude*o,s=e.latitude*o,a=e.height;return r.defined(n)?(n.x=i,n.y=s,n.z=a,n):new t.Cartesian3(i,s,a)},a.prototype.unproject=function(e,n){const o=this._oneOverSemimajorAxis,i=e.x*o,s=e.y*o,a=e.z;return r.defined(n)?(n.longitude=i,n.latitude=s,n.height=a,n):new t.Cartographic(i,s,a)};var u=Object.freeze({OUTSIDE:-1,INTERSECTING:0,INSIDE:1});function c(e,t){this.start=r.defaultValue(e,0),this.stop=r.defaultValue(t,0)}function l(e,n){this.center=t.Cartesian3.clone(r.defaultValue(e,t.Cartesian3.ZERO)),this.radius=r.defaultValue(n,0)}const d=new t.Cartesian3,f=new t.Cartesian3,p=new t.Cartesian3,h=new t.Cartesian3,m=new t.Cartesian3,g=new t.Cartesian3,y=new t.Cartesian3,v=new t.Cartesian3,C=new t.Cartesian3,_=new t.Cartesian3,w=new t.Cartesian3,b=new t.Cartesian3,x=4/3*o.CesiumMath.PI;l.fromPoints=function(e,n){if(r.defined(n)||(n=new l),!r.defined(e)||0===e.length)return n.center=t.Cartesian3.clone(t.Cartesian3.ZERO,n.center),n.radius=0,n;const o=t.Cartesian3.clone(e[0],y),i=t.Cartesian3.clone(o,d),s=t.Cartesian3.clone(o,f),a=t.Cartesian3.clone(o,p),u=t.Cartesian3.clone(o,h),c=t.Cartesian3.clone(o,m),x=t.Cartesian3.clone(o,g),S=e.length;let A;for(A=1;A<S;A++){t.Cartesian3.clone(e[A],o);const n=o.x,r=o.y,l=o.z;n<i.x&&t.Cartesian3.clone(o,i),n>u.x&&t.Cartesian3.clone(o,u),r<s.y&&t.Cartesian3.clone(o,s),r>c.y&&t.Cartesian3.clone(o,c),l<a.z&&t.Cartesian3.clone(o,a),l>x.z&&t.Cartesian3.clone(o,x)}const E=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(u,i,v)),O=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(c,s,v)),I=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(x,a,v));let P=i,R=u,T=E;O>T&&(T=O,P=s,R=c),I>T&&(T=I,P=a,R=x);const q=C;q.x=.5*(P.x+R.x),q.y=.5*(P.y+R.y),q.z=.5*(P.z+R.z);let z=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(R,q,v)),M=Math.sqrt(z);const D=_;D.x=i.x,D.y=s.y,D.z=a.z;const U=w;U.x=u.x,U.y=c.y,U.z=x.z;const k=t.Cartesian3.midpoint(D,U,b);let F=0;for(A=0;A<S;A++){t.Cartesian3.clone(e[A],o);const n=t.Cartesian3.magnitude(t.Cartesian3.subtract(o,k,v));n>F&&(F=n);const r=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(o,q,v));if(r>z){const e=Math.sqrt(r);M=.5*(M+e),z=M*M;const t=e-M;q.x=(M*q.x+t*o.x)/e,q.y=(M*q.y+t*o.y)/e,q.z=(M*q.z+t*o.z)/e}}return M<F?(t.Cartesian3.clone(q,n.center),n.radius=M):(t.Cartesian3.clone(k,n.center),n.radius=F),n};const S=new a,A=new t.Cartesian3,E=new t.Cartesian3,O=new t.Cartographic,I=new t.Cartographic;l.fromRectangle2D=function(e,t,n){return l.fromRectangleWithHeights2D(e,t,0,0,n)},l.fromRectangleWithHeights2D=function(e,n,o,i,s){if(r.defined(s)||(s=new l),!r.defined(e))return s.center=t.Cartesian3.clone(t.Cartesian3.ZERO,s.center),s.radius=0,s;n=r.defaultValue(n,S),t.Rectangle.southwest(e,O),O.height=o,t.Rectangle.northeast(e,I),I.height=i;const a=n.project(O,A),u=n.project(I,E),c=u.x-a.x,d=u.y-a.y,f=u.z-a.z;s.radius=.5*Math.sqrt(c*c+d*d+f*f);const p=s.center;return p.x=a.x+.5*c,p.y=a.y+.5*d,p.z=a.z+.5*f,s};const P=[];l.fromRectangle3D=function(e,n,o,i){if(n=r.defaultValue(n,t.Ellipsoid.WGS84),o=r.defaultValue(o,0),r.defined(i)||(i=new l),!r.defined(e))return i.center=t.Cartesian3.clone(t.Cartesian3.ZERO,i.center),i.radius=0,i;const s=t.Rectangle.subsample(e,n,o,P);return l.fromPoints(s,i)},l.fromVertices=function(e,n,o,i){if(r.defined(i)||(i=new l),!r.defined(e)||0===e.length)return i.center=t.Cartesian3.clone(t.Cartesian3.ZERO,i.center),i.radius=0,i;n=r.defaultValue(n,t.Cartesian3.ZERO),o=r.defaultValue(o,3);const s=y;s.x=e[0]+n.x,s.y=e[1]+n.y,s.z=e[2]+n.z;const a=t.Cartesian3.clone(s,d),u=t.Cartesian3.clone(s,f),c=t.Cartesian3.clone(s,p),x=t.Cartesian3.clone(s,h),S=t.Cartesian3.clone(s,m),A=t.Cartesian3.clone(s,g),E=e.length;let O;for(O=0;O<E;O+=o){const r=e[O]+n.x,o=e[O+1]+n.y,i=e[O+2]+n.z;s.x=r,s.y=o,s.z=i,r<a.x&&t.Cartesian3.clone(s,a),r>x.x&&t.Cartesian3.clone(s,x),o<u.y&&t.Cartesian3.clone(s,u),o>S.y&&t.Cartesian3.clone(s,S),i<c.z&&t.Cartesian3.clone(s,c),i>A.z&&t.Cartesian3.clone(s,A)}const I=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(x,a,v)),P=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(S,u,v)),R=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(A,c,v));let T=a,q=x,z=I;P>z&&(z=P,T=u,q=S),R>z&&(z=R,T=c,q=A);const M=C;M.x=.5*(T.x+q.x),M.y=.5*(T.y+q.y),M.z=.5*(T.z+q.z);let D=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(q,M,v)),U=Math.sqrt(D);const k=_;k.x=a.x,k.y=u.y,k.z=c.z;const F=w;F.x=x.x,F.y=S.y,F.z=A.z;const N=t.Cartesian3.midpoint(k,F,b);let j=0;for(O=0;O<E;O+=o){s.x=e[O]+n.x,s.y=e[O+1]+n.y,s.z=e[O+2]+n.z;const r=t.Cartesian3.magnitude(t.Cartesian3.subtract(s,N,v));r>j&&(j=r);const o=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(s,M,v));if(o>D){const e=Math.sqrt(o);U=.5*(U+e),D=U*U;const t=e-U;M.x=(U*M.x+t*s.x)/e,M.y=(U*M.y+t*s.y)/e,M.z=(U*M.z+t*s.z)/e}}return U<j?(t.Cartesian3.clone(M,i.center),i.radius=U):(t.Cartesian3.clone(N,i.center),i.radius=j),i},l.fromEncodedCartesianVertices=function(e,n,o){if(r.defined(o)||(o=new l),!r.defined(e)||!r.defined(n)||e.length!==n.length||0===e.length)return o.center=t.Cartesian3.clone(t.Cartesian3.ZERO,o.center),o.radius=0,o;const i=y;i.x=e[0]+n[0],i.y=e[1]+n[1],i.z=e[2]+n[2];const s=t.Cartesian3.clone(i,d),a=t.Cartesian3.clone(i,f),u=t.Cartesian3.clone(i,p),c=t.Cartesian3.clone(i,h),x=t.Cartesian3.clone(i,m),S=t.Cartesian3.clone(i,g),A=e.length;let E;for(E=0;E<A;E+=3){const r=e[E]+n[E],o=e[E+1]+n[E+1],l=e[E+2]+n[E+2];i.x=r,i.y=o,i.z=l,r<s.x&&t.Cartesian3.clone(i,s),r>c.x&&t.Cartesian3.clone(i,c),o<a.y&&t.Cartesian3.clone(i,a),o>x.y&&t.Cartesian3.clone(i,x),l<u.z&&t.Cartesian3.clone(i,u),l>S.z&&t.Cartesian3.clone(i,S)}const O=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(c,s,v)),I=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(x,a,v)),P=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(S,u,v));let R=s,T=c,q=O;I>q&&(q=I,R=a,T=x),P>q&&(q=P,R=u,T=S);const z=C;z.x=.5*(R.x+T.x),z.y=.5*(R.y+T.y),z.z=.5*(R.z+T.z);let M=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(T,z,v)),D=Math.sqrt(M);const U=_;U.x=s.x,U.y=a.y,U.z=u.z;const k=w;k.x=c.x,k.y=x.y,k.z=S.z;const F=t.Cartesian3.midpoint(U,k,b);let N=0;for(E=0;E<A;E+=3){i.x=e[E]+n[E],i.y=e[E+1]+n[E+1],i.z=e[E+2]+n[E+2];const r=t.Cartesian3.magnitude(t.Cartesian3.subtract(i,F,v));r>N&&(N=r);const o=t.Cartesian3.magnitudeSquared(t.Cartesian3.subtract(i,z,v));if(o>M){const e=Math.sqrt(o);D=.5*(D+e),M=D*D;const t=e-D;z.x=(D*z.x+t*i.x)/e,z.y=(D*z.y+t*i.y)/e,z.z=(D*z.z+t*i.z)/e}}return D<N?(t.Cartesian3.clone(z,o.center),o.radius=D):(t.Cartesian3.clone(F,o.center),o.radius=N),o},l.fromCornerPoints=function(e,n,o){r.defined(o)||(o=new l);const i=t.Cartesian3.midpoint(e,n,o.center);return o.radius=t.Cartesian3.distance(i,n),o},l.fromEllipsoid=function(e,n){return r.defined(n)||(n=new l),t.Cartesian3.clone(t.Cartesian3.ZERO,n.center),n.radius=e.maximumRadius,n};const R=new t.Cartesian3;l.fromBoundingSpheres=function(e,n){if(r.defined(n)||(n=new l),!r.defined(e)||0===e.length)return n.center=t.Cartesian3.clone(t.Cartesian3.ZERO,n.center),n.radius=0,n;const o=e.length;if(1===o)return l.clone(e[0],n);if(2===o)return l.union(e[0],e[1],n);const i=[];let s;for(s=0;s<o;s++)i.push(e[s].center);const a=(n=l.fromPoints(i,n)).center;let u=n.radius;for(s=0;s<o;s++){const n=e[s];u=Math.max(u,t.Cartesian3.distance(a,n.center,R)+n.radius)}return n.radius=u,n};const T=new t.Cartesian3,q=new t.Cartesian3,z=new t.Cartesian3;l.fromOrientedBoundingBox=function(e,n){r.defined(n)||(n=new l);const o=e.halfAxes,i=t.Matrix3.getColumn(o,0,T),s=t.Matrix3.getColumn(o,1,q),a=t.Matrix3.getColumn(o,2,z);return t.Cartesian3.add(i,s,i),t.Cartesian3.add(i,a,i),n.center=t.Cartesian3.clone(e.center,n.center),n.radius=t.Cartesian3.magnitude(i),n};const M=new t.Cartesian3,D=new t.Cartesian3;l.fromTransformation=function(e,n){r.defined(n)||(n=new l);const o=t.Matrix4.getTranslation(e,M),i=t.Matrix4.getScale(e,D),s=.5*t.Cartesian3.magnitude(i);return n.center=t.Cartesian3.clone(o,n.center),n.radius=s,n},l.clone=function(e,n){if(r.defined(e))return r.defined(n)?(n.center=t.Cartesian3.clone(e.center,n.center),n.radius=e.radius,n):new l(e.center,e.radius)},l.packedLength=4,l.pack=function(e,t,n){n=r.defaultValue(n,0);const o=e.center;return t[n++]=o.x,t[n++]=o.y,t[n++]=o.z,t[n]=e.radius,t},l.unpack=function(e,t,n){t=r.defaultValue(t,0),r.defined(n)||(n=new l);const o=n.center;return o.x=e[t++],o.y=e[t++],o.z=e[t++],n.radius=e[t],n};const U=new t.Cartesian3,k=new t.Cartesian3;l.union=function(e,n,o){r.defined(o)||(o=new l);const i=e.center,s=e.radius,a=n.center,u=n.radius,c=t.Cartesian3.subtract(a,i,U),d=t.Cartesian3.magnitude(c);if(s>=d+u)return e.clone(o),o;if(u>=d+s)return n.clone(o),o;const f=.5*(s+d+u),p=t.Cartesian3.multiplyByScalar(c,(-s+f)/d,k);return t.Cartesian3.add(p,i,p),t.Cartesian3.clone(p,o.center),o.radius=f,o};const F=new t.Cartesian3;l.expand=function(e,n,r){r=l.clone(e,r);const o=t.Cartesian3.magnitude(t.Cartesian3.subtract(n,r.center,F));return o>r.radius&&(r.radius=o),r},l.intersectPlane=function(e,n){const r=e.center,o=e.radius,i=n.normal,s=t.Cartesian3.dot(i,r)+n.distance;return s<-o?u.OUTSIDE:s<o?u.INTERSECTING:u.INSIDE},l.transform=function(e,n,o){return r.defined(o)||(o=new l),o.center=t.Matrix4.multiplyByPoint(n,e.center,o.center),o.radius=t.Matrix4.getMaximumScale(n)*e.radius,o};const N=new t.Cartesian3;l.distanceSquaredTo=function(e,n){const r=t.Cartesian3.subtract(e.center,n,N),o=t.Cartesian3.magnitude(r)-e.radius;return o<=0?0:o*o},l.transformWithoutScale=function(e,n,o){return r.defined(o)||(o=new l),o.center=t.Matrix4.multiplyByPoint(n,e.center,o.center),o.radius=e.radius,o};const j=new t.Cartesian3;l.computePlaneDistances=function(e,n,o,i){r.defined(i)||(i=new c);const s=t.Cartesian3.subtract(e.center,n,j),a=t.Cartesian3.dot(o,s);return i.start=a-e.radius,i.stop=a+e.radius,i};const B=new t.Cartesian3,V=new t.Cartesian3,L=new t.Cartesian3,Q=new t.Cartesian3,$=new t.Cartesian3,W=new t.Cartographic,H=new Array(8);for(let e=0;e<8;++e)H[e]=new t.Cartesian3;const Y=new a;function Z(){let e,t;const n=new Promise((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}}let G;l.projectTo2D=function(e,n,o){const i=(n=r.defaultValue(n,Y)).ellipsoid;let s=e.center;const a=e.radius;let u;u=t.Cartesian3.equals(s,t.Cartesian3.ZERO)?t.Cartesian3.clone(t.Cartesian3.UNIT_X,B):i.geodeticSurfaceNormal(s,B);const c=t.Cartesian3.cross(t.Cartesian3.UNIT_Z,u,V);t.Cartesian3.normalize(c,c);const d=t.Cartesian3.cross(u,c,L);t.Cartesian3.normalize(d,d),t.Cartesian3.multiplyByScalar(u,a,u),t.Cartesian3.multiplyByScalar(d,a,d),t.Cartesian3.multiplyByScalar(c,a,c);const f=t.Cartesian3.negate(d,$),p=t.Cartesian3.negate(c,Q),h=H;let m=h[0];t.Cartesian3.add(u,d,m),t.Cartesian3.add(m,c,m),m=h[1],t.Cartesian3.add(u,d,m),t.Cartesian3.add(m,p,m),m=h[2],t.Cartesian3.add(u,f,m),t.Cartesian3.add(m,p,m),m=h[3],t.Cartesian3.add(u,f,m),t.Cartesian3.add(m,c,m),t.Cartesian3.negate(u,u),m=h[4],t.Cartesian3.add(u,d,m),t.Cartesian3.add(m,c,m),m=h[5],t.Cartesian3.add(u,d,m),t.Cartesian3.add(m,p,m),m=h[6],t.Cartesian3.add(u,f,m),t.Cartesian3.add(m,p,m),m=h[7],t.Cartesian3.add(u,f,m),t.Cartesian3.add(m,c,m);const g=h.length;for(let e=0;e<g;++e){const r=h[e];t.Cartesian3.add(s,r,r);const o=i.cartesianToCartographic(r,W);n.project(o,r)}s=(o=l.fromPoints(h,o)).center;const y=s.x,v=s.y,C=s.z;return s.x=C,s.y=y,s.z=v,o},l.isOccluded=function(e,t){return!t.isBoundingSphereVisible(e)},l.equals=function(e,n){return e===n||r.defined(e)&&r.defined(n)&&t.Cartesian3.equals(e.center,n.center)&&e.radius===n.radius},l.prototype.intersectPlane=function(e){return l.intersectPlane(this,e)},l.prototype.distanceSquaredTo=function(e){return l.distanceSquaredTo(this,e)},l.prototype.computePlaneDistances=function(e,t,n){return l.computePlaneDistances(this,e,t,n)},l.prototype.isOccluded=function(e){return l.isOccluded(this,e)},l.prototype.equals=function(e){return l.equals(this,e)},l.prototype.clone=function(e){return l.clone(this,e)},l.prototype.volume=function(){const e=this.radius;return x*e*e*e};const J={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},X={};let K,ee,te,ne,re,oe,ie,se,ae,ue,ce,le,de,fe,pe,he,me;function ge(e){const t=e.split(".");for(let e=0,n=t.length;e<n;++e)t[e]=parseInt(t[e],10);return t}function ye(){if(!r.defined(ee)&&(ee=!1,!we())){const e=/ Chrome\/([\.0-9]+)/.exec(K.userAgent);null!==e&&(ee=!0,te=ge(e[1]))}return ee}function ve(){if(!r.defined(ne)&&(ne=!1,!ye()&&!we()&&/ Safari\/[\.0-9]+/.test(K.userAgent))){const e=/ Version\/([\.0-9]+)/.exec(K.userAgent);null!==e&&(ne=!0,re=ge(e[1]))}return ne}function Ce(){if(!r.defined(oe)){oe=!1;const e=/ AppleWebKit\/([\.0-9]+)(\+?)/.exec(K.userAgent);null!==e&&(oe=!0,ie=ge(e[1]),ie.isNightly=!!e[2])}return oe}function _e(){if(!r.defined(se)){let e;se=!1,"Microsoft Internet Explorer"===K.appName?(e=/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(K.userAgent),null!==e&&(se=!0,ae=ge(e[1]))):"Netscape"===K.appName&&(e=/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(K.userAgent),null!==e&&(se=!0,ae=ge(e[1])))}return se}function we(){if(!r.defined(ue)){ue=!1;const e=/ Edge\/([\.0-9]+)/.exec(K.userAgent);null!==e&&(ue=!0,ce=ge(e[1]))}return ue}function be(){if(!r.defined(le)){le=!1;const e=/Firefox\/([\.0-9]+)/.exec(K.userAgent);null!==e&&(le=!0,de=ge(e[1]))}return le}function xe(){if(!r.defined(me)){const e=document.createElement("canvas");e.setAttribute("style","image-rendering: -moz-crisp-edges;image-rendering: pixelated;");const t=e.style.imageRendering;me=r.defined(t)&&""!==t,me&&(he=t)}return me}function Se(){return Se._result}Object.defineProperties(X,{element:{get:function(){if(X.supportsFullscreen())return document[J.fullscreenElement]}},changeEventName:{get:function(){if(X.supportsFullscreen())return J.fullscreenchange}},errorEventName:{get:function(){if(X.supportsFullscreen())return J.fullscreenerror}},enabled:{get:function(){if(X.supportsFullscreen())return document[J.fullscreenEnabled]}},fullscreen:{get:function(){if(X.supportsFullscreen())return null!==X.element}}}),X.supportsFullscreen=function(){if(r.defined(G))return G;G=!1;const e=document.body;if("function"==typeof e.requestFullscreen)return J.requestFullscreen="requestFullscreen",J.exitFullscreen="exitFullscreen",J.fullscreenEnabled="fullscreenEnabled",J.fullscreenElement="fullscreenElement",J.fullscreenchange="fullscreenchange",J.fullscreenerror="fullscreenerror",G=!0,G;const t=["webkit","moz","o","ms","khtml"];let n;for(let r=0,o=t.length;r<o;++r){const o=t[r];n=`${o}RequestFullscreen`,"function"==typeof e[n]?(J.requestFullscreen=n,G=!0):(n=`${o}RequestFullScreen`,"function"==typeof e[n]&&(J.requestFullscreen=n,G=!0)),n=`${o}ExitFullscreen`,"function"==typeof document[n]?J.exitFullscreen=n:(n=`${o}CancelFullScreen`,"function"==typeof document[n]&&(J.exitFullscreen=n)),n=`${o}FullscreenEnabled`,void 0!==document[n]?J.fullscreenEnabled=n:(n=`${o}FullScreenEnabled`,void 0!==document[n]&&(J.fullscreenEnabled=n)),n=`${o}FullscreenElement`,void 0!==document[n]?J.fullscreenElement=n:(n=`${o}FullScreenElement`,void 0!==document[n]&&(J.fullscreenElement=n)),n=`${o}fullscreenchange`,void 0!==document[`on${n}`]&&("ms"===o&&(n="MSFullscreenChange"),J.fullscreenchange=n),n=`${o}fullscreenerror`,void 0!==document[`on${n}`]&&("ms"===o&&(n="MSFullscreenError"),J.fullscreenerror=n)}return G},X.requestFullscreen=function(e,t){X.supportsFullscreen()&&e[J.requestFullscreen]({vrDisplay:t})},X.exitFullscreen=function(){X.supportsFullscreen()&&document[J.exitFullscreen]()},X._names=J,K="undefined"!=typeof navigator?navigator:{},Se._promise=void 0,Se._result=void 0,Se.initialize=function(){if(r.defined(Se._promise))return Se._promise;const e=Z();if(Se._promise=e.promise,we())return Se._result=!1,e.resolve(Se._result),e.promise;const t=new Image;return t.onload=function(){Se._result=t.width>0&&t.height>0,e.resolve(Se._result)},t.onerror=function(){Se._result=!1,e.resolve(Se._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",e.promise},Object.defineProperties(Se,{initialized:{get:function(){return r.defined(Se._result)}}});const Ae=[];"undefined"!=typeof ArrayBuffer&&(Ae.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),"undefined"!=typeof Uint8ClampedArray&&Ae.push(Uint8ClampedArray),"undefined"!=typeof Uint8ClampedArray&&Ae.push(Uint8ClampedArray),"undefined"!=typeof BigInt64Array&&Ae.push(BigInt64Array),"undefined"!=typeof BigUint64Array&&Ae.push(BigUint64Array));const Ee={isChrome:ye,chromeVersion:function(){return ye()&&te},isSafari:ve,safariVersion:function(){return ve()&&re},isWebkit:Ce,webkitVersion:function(){return Ce()&&ie},isInternetExplorer:_e,internetExplorerVersion:function(){return _e()&&ae},isEdge:we,edgeVersion:function(){return we()&&ce},isFirefox:be,firefoxVersion:function(){return be()&&de},isWindows:function(){return r.defined(fe)||(fe=/Windows/i.test(K.appVersion)),fe},hardwareConcurrency:r.defaultValue(K.hardwareConcurrency,3),supportsPointerEvents:function(){return r.defined(pe)||(pe=!be()&&"undefined"!=typeof PointerEvent&&(!r.defined(K.pointerEnabled)||K.pointerEnabled)),pe},supportsImageRenderingPixelated:xe,supportsWebP:Se,imageRenderingValue:function(){return xe()?he:void 0},typedArrayTypes:Ae};function Oe(e,t,n,o){this.x=r.defaultValue(e,0),this.y=r.defaultValue(t,0),this.z=r.defaultValue(n,0),this.w=r.defaultValue(o,0)}Ee.supportsBasis=function(e){return Ee.supportsWebAssembly()&&e.context.supportsBasis},Ee.supportsFullscreen=function(){return X.supportsFullscreen()},Ee.supportsTypedArrays=function(){return"undefined"!=typeof ArrayBuffer},Ee.supportsBigInt64Array=function(){return"undefined"!=typeof BigInt64Array},Ee.supportsBigUint64Array=function(){return"undefined"!=typeof BigUint64Array},Ee.supportsBigInt=function(){return"undefined"!=typeof BigInt},Ee.supportsWebWorkers=function(){return"undefined"!=typeof Worker},Ee.supportsWebAssembly=function(){return"undefined"!=typeof WebAssembly&&!Ee.isEdge()};let Ie=new t.Cartesian3;Oe.fromAxisAngle=function(e,n,o){const i=n/2,s=Math.sin(i);Ie=t.Cartesian3.normalize(e,Ie);const a=Ie.x*s,u=Ie.y*s,c=Ie.z*s,l=Math.cos(i);return r.defined(o)?(o.x=a,o.y=u,o.z=c,o.w=l,o):new Oe(a,u,c,l)};const Pe=[1,2,0],Re=new Array(3);Oe.fromRotationMatrix=function(e,n){let o,i,s,a,u;const c=e[t.Matrix3.COLUMN0ROW0],l=e[t.Matrix3.COLUMN1ROW1],d=e[t.Matrix3.COLUMN2ROW2],f=c+l+d;if(f>0)o=Math.sqrt(f+1),u=.5*o,o=.5/o,i=(e[t.Matrix3.COLUMN1ROW2]-e[t.Matrix3.COLUMN2ROW1])*o,s=(e[t.Matrix3.COLUMN2ROW0]-e[t.Matrix3.COLUMN0ROW2])*o,a=(e[t.Matrix3.COLUMN0ROW1]-e[t.Matrix3.COLUMN1ROW0])*o;else{const n=Pe;let r=0;l>c&&(r=1),d>c&&d>l&&(r=2);const f=n[r],p=n[f];o=Math.sqrt(e[t.Matrix3.getElementIndex(r,r)]-e[t.Matrix3.getElementIndex(f,f)]-e[t.Matrix3.getElementIndex(p,p)]+1);const h=Re;h[r]=.5*o,o=.5/o,u=(e[t.Matrix3.getElementIndex(p,f)]-e[t.Matrix3.getElementIndex(f,p)])*o,h[f]=(e[t.Matrix3.getElementIndex(f,r)]+e[t.Matrix3.getElementIndex(r,f)])*o,h[p]=(e[t.Matrix3.getElementIndex(p,r)]+e[t.Matrix3.getElementIndex(r,p)])*o,i=-h[0],s=-h[1],a=-h[2]}return r.defined(n)?(n.x=i,n.y=s,n.z=a,n.w=u,n):new Oe(i,s,a,u)};const Te=new Oe;let qe=new Oe,ze=new Oe,Me=new Oe;Oe.fromHeadingPitchRoll=function(e,n){return Me=Oe.fromAxisAngle(t.Cartesian3.UNIT_X,e.roll,Te),ze=Oe.fromAxisAngle(t.Cartesian3.UNIT_Y,-e.pitch,n),n=Oe.multiply(ze,Me,ze),qe=Oe.fromAxisAngle(t.Cartesian3.UNIT_Z,-e.heading,Te),Oe.multiply(qe,n,n)};const De=new t.Cartesian3,Ue=new t.Cartesian3,ke=new Oe,Fe=new Oe,Ne=new Oe;Oe.packedLength=4,Oe.pack=function(e,t,n){return n=r.defaultValue(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t},Oe.unpack=function(e,t,n){return t=r.defaultValue(t,0),r.defined(n)||(n=new Oe),n.x=e[t],n.y=e[t+1],n.z=e[t+2],n.w=e[t+3],n},Oe.packedInterpolationLength=3,Oe.convertPackedArrayForInterpolation=function(e,t,n,o){Oe.unpack(e,4*n,Ne),Oe.conjugate(Ne,Ne);for(let i=0,s=n-t+1;i<s;i++){const n=3*i;Oe.unpack(e,4*(t+i),ke),Oe.multiply(ke,Ne,ke),ke.w<0&&Oe.negate(ke,ke),Oe.computeAxis(ke,De);const s=Oe.computeAngle(ke);r.defined(o)||(o=[]),o[n]=De.x*s,o[n+1]=De.y*s,o[n+2]=De.z*s}},Oe.unpackInterpolationResult=function(e,n,o,i,s){r.defined(s)||(s=new Oe),t.Cartesian3.fromArray(e,0,Ue);const a=t.Cartesian3.magnitude(Ue);return Oe.unpack(n,4*i,Fe),0===a?Oe.clone(Oe.IDENTITY,ke):Oe.fromAxisAngle(Ue,a,ke),Oe.multiply(ke,Fe,s)},Oe.clone=function(e,t){if(r.defined(e))return r.defined(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new Oe(e.x,e.y,e.z,e.w)},Oe.conjugate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=e.w,t},Oe.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w},Oe.magnitude=function(e){return Math.sqrt(Oe.magnitudeSquared(e))},Oe.normalize=function(e,t){const n=1/Oe.magnitude(e),r=e.x*n,o=e.y*n,i=e.z*n,s=e.w*n;return t.x=r,t.y=o,t.z=i,t.w=s,t},Oe.inverse=function(e,t){const n=Oe.magnitudeSquared(e);return t=Oe.conjugate(e,t),Oe.multiplyByScalar(t,1/n,t)},Oe.add=function(e,t,n){return n.x=e.x+t.x,n.y=e.y+t.y,n.z=e.z+t.z,n.w=e.w+t.w,n},Oe.subtract=function(e,t,n){return n.x=e.x-t.x,n.y=e.y-t.y,n.z=e.z-t.z,n.w=e.w-t.w,n},Oe.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=-e.w,t},Oe.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w},Oe.multiply=function(e,t,n){const r=e.x,o=e.y,i=e.z,s=e.w,a=t.x,u=t.y,c=t.z,l=t.w,d=s*a+r*l+o*c-i*u,f=s*u-r*c+o*l+i*a,p=s*c+r*u-o*a+i*l,h=s*l-r*a-o*u-i*c;return n.x=d,n.y=f,n.z=p,n.w=h,n},Oe.multiplyByScalar=function(e,t,n){return n.x=e.x*t,n.y=e.y*t,n.z=e.z*t,n.w=e.w*t,n},Oe.divideByScalar=function(e,t,n){return n.x=e.x/t,n.y=e.y/t,n.z=e.z/t,n.w=e.w/t,n},Oe.computeAxis=function(e,t){const n=e.w;if(Math.abs(n-1)<o.CesiumMath.EPSILON6)return t.x=t.y=t.z=0,t;const r=1/Math.sqrt(1-n*n);return t.x=e.x*r,t.y=e.y*r,t.z=e.z*r,t},Oe.computeAngle=function(e){return Math.abs(e.w-1)<o.CesiumMath.EPSILON6?0:2*Math.acos(e.w)};let je=new Oe;Oe.lerp=function(e,t,n,r){return je=Oe.multiplyByScalar(t,n,je),r=Oe.multiplyByScalar(e,1-n,r),Oe.add(je,r,r)};let Be=new Oe,Ve=new Oe,Le=new Oe;Oe.slerp=function(e,t,n,r){let i=Oe.dot(e,t),s=t;if(i<0&&(i=-i,s=Be=Oe.negate(t,Be)),1-i<o.CesiumMath.EPSILON6)return Oe.lerp(e,s,n,r);const a=Math.acos(i);return Ve=Oe.multiplyByScalar(e,Math.sin((1-n)*a),Ve),Le=Oe.multiplyByScalar(s,Math.sin(n*a),Le),r=Oe.add(Ve,Le,r),Oe.multiplyByScalar(r,1/Math.sin(a),r)},Oe.log=function(e,n){const r=o.CesiumMath.acosClamped(e.w);let i=0;return 0!==r&&(i=r/Math.sin(r)),t.Cartesian3.multiplyByScalar(e,i,n)},Oe.exp=function(e,n){const r=t.Cartesian3.magnitude(e);let o=0;return 0!==r&&(o=Math.sin(r)/r),n.x=e.x*o,n.y=e.y*o,n.z=e.z*o,n.w=Math.cos(r),n};const Qe=new t.Cartesian3,$e=new t.Cartesian3,We=new Oe,He=new Oe;Oe.computeInnerQuadrangle=function(e,n,r,o){const i=Oe.conjugate(n,We);Oe.multiply(i,r,He);const s=Oe.log(He,Qe);Oe.multiply(i,e,He);const a=Oe.log(He,$e);return t.Cartesian3.add(s,a,s),t.Cartesian3.multiplyByScalar(s,.25,s),t.Cartesian3.negate(s,s),Oe.exp(s,We),Oe.multiply(n,We,o)},Oe.squad=function(e,t,n,r,o,i){const s=Oe.slerp(e,t,o,We),a=Oe.slerp(n,r,o,He);return Oe.slerp(s,a,2*o*(1-o),i)};const Ye=new Oe,Ze=1.9011074535173003,Ge=Ee.supportsTypedArrays()?new Float32Array(8):[],Je=Ee.supportsTypedArrays()?new Float32Array(8):[],Xe=Ee.supportsTypedArrays()?new Float32Array(8):[],Ke=Ee.supportsTypedArrays()?new Float32Array(8):[];for(let e=0;e<7;++e){const t=e+1,n=2*t+1;Ge[e]=1/(t*n),Je[e]=t/n}function et(e,t,n){let r,o,i=0,s=e.length-1;for(;i<=s;)if(r=~~((i+s)/2),o=n(e[r],t),o<0)i=r+1;else{if(!(o>0))return r;s=r-1}return~(s+1)}function tt(e,t,n,r,o){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=n,this.yPoleOffset=r,this.ut1MinusUtc=o}function nt(e,t,n,r,o,i,s,a){this.year=e,this.month=t,this.day=n,this.hour=r,this.minute=o,this.second=i,this.millisecond=s,this.isLeapSecond=a}function rt(e){return e%4==0&&e%100!=0||e%400==0}function ot(e,t){this.julianDate=e,this.offset=t}Ge[7]=Ze/136,Je[7]=8*Ze/17,Oe.fastSlerp=function(e,t,n,r){let o,i=Oe.dot(e,t);i>=0?o=1:(o=-1,i=-i);const s=i-1,a=1-n,u=n*n,c=a*a;for(let e=7;e>=0;--e)Xe[e]=(Ge[e]*u-Je[e])*s,Ke[e]=(Ge[e]*c-Je[e])*s;const l=o*n*(1+Xe[0]*(1+Xe[1]*(1+Xe[2]*(1+Xe[3]*(1+Xe[4]*(1+Xe[5]*(1+Xe[6]*(1+Xe[7])))))))),d=a*(1+Ke[0]*(1+Ke[1]*(1+Ke[2]*(1+Ke[3]*(1+Ke[4]*(1+Ke[5]*(1+Ke[6]*(1+Ke[7])))))))),f=Oe.multiplyByScalar(e,d,Ye);return Oe.multiplyByScalar(t,l,r),Oe.add(f,r,r)},Oe.fastSquad=function(e,t,n,r,o,i){const s=Oe.fastSlerp(e,t,o,We),a=Oe.fastSlerp(n,r,o,He);return Oe.fastSlerp(s,a,2*o*(1-o),i)},Oe.equals=function(e,t){return e===t||r.defined(e)&&r.defined(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w},Oe.equalsEpsilon=function(e,t,n){return n=r.defaultValue(n,0),e===t||r.defined(e)&&r.defined(t)&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.z-t.z)<=n&&Math.abs(e.w-t.w)<=n},Oe.ZERO=Object.freeze(new Oe(0,0,0,0)),Oe.IDENTITY=Object.freeze(new Oe(0,0,0,1)),Oe.prototype.clone=function(e){return Oe.clone(this,e)},Oe.prototype.equals=function(e){return Oe.equals(this,e)},Oe.prototype.equalsEpsilon=function(e,t){return Oe.equalsEpsilon(this,e,t)},Oe.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};var it=Object.freeze({SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:2400000.5});var st=Object.freeze({UTC:0,TAI:1});const at=new nt,ut=[31,28,31,30,31,30,31,31,30,31,30,31];function ct(e,t){return St.compare(e.julianDate,t.julianDate)}const lt=new ot;function dt(e){lt.julianDate=e;const t=St.leapSeconds;let n=et(t,lt,ct);n<0&&(n=~n),n>=t.length&&(n=t.length-1);let r=t[n].offset;if(n>0){St.secondsDifference(t[n].julianDate,e)>r&&(n--,r=t[n].offset)}St.addSeconds(e,r,e)}function ft(e,t){lt.julianDate=e;const n=St.leapSeconds;let r=et(n,lt,ct);if(r<0&&(r=~r),0===r)return St.addSeconds(e,-n[0].offset,t);if(r>=n.length)return St.addSeconds(e,-n[r-1].offset,t);const o=St.secondsDifference(n[r].julianDate,e);return 0===o?St.addSeconds(e,-n[r].offset,t):o<=1?void 0:St.addSeconds(e,-n[--r].offset,t)}function pt(e,t,n){const r=t/it.SECONDS_PER_DAY|0;return e+=r,(t-=it.SECONDS_PER_DAY*r)<0&&(e--,t+=it.SECONDS_PER_DAY),n.dayNumber=e,n.secondsOfDay=t,n}function ht(e,t,n,r,o,i,s){const a=(t-14)/12|0,u=e+4800+a;let c=(1461*u/4|0)+(367*(t-2-12*a)/12|0)-(3*((u+100)/100|0)/4|0)+n-32075;(r-=12)<0&&(r+=24);const l=i+(r*it.SECONDS_PER_HOUR+o*it.SECONDS_PER_MINUTE+s*it.SECONDS_PER_MILLISECOND);return l>=43200&&(c-=1),[c,l]}const mt=/^(\d{4})$/,gt=/^(\d{4})-(\d{2})$/,yt=/^(\d{4})-?(\d{3})$/,vt=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,Ct=/^(\d{4})-?(\d{2})-?(\d{2})$/,_t=/([Z+\-])?(\d{2})?:?(\d{2})?$/,wt=/^(\d{2})(\.\d+)?/.source+_t.source,bt=/^(\d{2}):?(\d{2})(\.\d+)?/.source+_t.source,xt=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+_t.source;function St(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=r.defaultValue(e,0),t=r.defaultValue(t,0),n=r.defaultValue(n,st.UTC);const o=0|e;pt(o,t+=(e-o)*it.SECONDS_PER_DAY,this),n===st.UTC&&dt(this)}St.fromGregorianDate=function(e,t){const n=ht(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return r.defined(t)?(pt(n[0],n[1],t),dt(t),t):new St(n[0],n[1],st.UTC)},St.fromDate=function(e,t){const n=ht(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return r.defined(t)?(pt(n[0],n[1],t),dt(t),t):new St(n[0],n[1],st.UTC)},St.fromIso8601=function(e,t){let n,o=(e=e.replace(",",".")).split("T"),i=1,s=1,a=0,u=0,c=0,l=0;const d=o[0],f=o[1];let p,h,m;if(o=d.match(Ct),null!==o)n=+o[1],i=+o[2],s=+o[3];else if(o=d.match(gt),null!==o)n=+o[1],i=+o[2];else if(o=d.match(mt),null!==o)n=+o[1];else{let e;if(o=d.match(yt),null!==o)n=+o[1],e=+o[2],h=rt(n);else if(o=d.match(vt),null!==o){n=+o[1];e=7*+o[2]+(+o[3]||0)-new Date(Date.UTC(n,0,4)).getUTCDay()-3}p=new Date(Date.UTC(n,0,1)),p.setUTCDate(e),i=p.getUTCMonth()+1,s=p.getUTCDate()}if(h=rt(n),r.defined(f)){o=f.match(xt),null!==o?(a=+o[1],u=+o[2],c=+o[3],l=1e3*+(o[4]||0),m=5):(o=f.match(bt),null!==o?(a=+o[1],u=+o[2],c=60*+(o[3]||0),m=4):(o=f.match(wt),null!==o&&(a=+o[1],u=60*+(o[2]||0),m=3)));const e=o[m],t=+o[m+1],r=+(o[m+2]||0);switch(e){case"+":a-=t,u-=r;break;case"-":a+=t,u+=r;break;case"Z":break;default:u+=new Date(Date.UTC(n,i-1,s,a,u)).getTimezoneOffset()}}const g=60===c;for(g&&c--;u>=60;)u-=60,a++;for(;a>=24;)a-=24,s++;for(p=h&&2===i?29:ut[i-1];s>p;)s-=p,i++,i>12&&(i-=12,n++),p=h&&2===i?29:ut[i-1];for(;u<0;)u+=60,a--;for(;a<0;)a+=24,s--;for(;s<1;)i--,i<1&&(i+=12,n--),p=h&&2===i?29:ut[i-1],s+=p;const y=ht(n,i,s,a,u,c,l);return r.defined(t)?(pt(y[0],y[1],t),dt(t)):t=new St(y[0],y[1],st.UTC),g&&St.addSeconds(t,1,t),t},St.now=function(e){return St.fromDate(new Date,e)};const At=new St(0,0,st.TAI);St.toGregorianDate=function(e,t){let n=!1,o=ft(e,At);r.defined(o)||(St.addSeconds(e,-1,At),o=ft(At,At),n=!0);let i=o.dayNumber;const s=o.secondsOfDay;s>=43200&&(i+=1);let a=i+68569|0;const u=4*a/146097|0;a=a-((146097*u+3)/4|0)|0;const c=4e3*(a+1)/1461001|0;a=a-(1461*c/4|0)+31|0;const l=80*a/2447|0,d=a-(2447*l/80|0)|0;a=l/11|0;const f=l+2-12*a|0,p=100*(u-49)+c+a|0;let h=s/it.SECONDS_PER_HOUR|0,m=s-h*it.SECONDS_PER_HOUR;const g=m/it.SECONDS_PER_MINUTE|0;m-=g*it.SECONDS_PER_MINUTE;let y=0|m;const v=(m-y)/it.SECONDS_PER_MILLISECOND;return h+=12,h>23&&(h-=24),n&&(y+=1),r.defined(t)?(t.year=p,t.month=f,t.day=d,t.hour=h,t.minute=g,t.second=y,t.millisecond=v,t.isLeapSecond=n,t):new nt(p,f,d,h,g,y,v,n)},St.toDate=function(e){const t=St.toGregorianDate(e,at);let n=t.second;return t.isLeapSecond&&(n-=1),new Date(Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,n,t.millisecond))},St.toIso8601=function(e,t){const n=St.toGregorianDate(e,at);let o=n.year,i=n.month,s=n.day,a=n.hour;const u=n.minute,c=n.second,l=n.millisecond;let d;return 1e4===o&&1===i&&1===s&&0===a&&0===u&&0===c&&0===l&&(o=9999,i=12,s=31,a=24),r.defined(t)||0===l?r.defined(t)&&0!==t?(d=(.01*l).toFixed(t).replace(".","").slice(0,t),`${o.toString().padStart(4,"0")}-${i.toString().padStart(2,"0")}-${s.toString().padStart(2,"0")}T${a.toString().padStart(2,"0")}:${u.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${d}Z`):`${o.toString().padStart(4,"0")}-${i.toString().padStart(2,"0")}-${s.toString().padStart(2,"0")}T${a.toString().padStart(2,"0")}:${u.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}Z`:(d=(.01*l).toString().replace(".",""),`${o.toString().padStart(4,"0")}-${i.toString().padStart(2,"0")}-${s.toString().padStart(2,"0")}T${a.toString().padStart(2,"0")}:${u.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${d}Z`)},St.clone=function(e,t){if(r.defined(e))return r.defined(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new St(e.dayNumber,e.secondsOfDay,st.TAI)},St.compare=function(e,t){const n=e.dayNumber-t.dayNumber;return 0!==n?n:e.secondsOfDay-t.secondsOfDay},St.equals=function(e,t){return e===t||r.defined(e)&&r.defined(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay},St.equalsEpsilon=function(e,t,n){return n=r.defaultValue(n,0),e===t||r.defined(e)&&r.defined(t)&&Math.abs(St.secondsDifference(e,t))<=n},St.totalDays=function(e){return e.dayNumber+e.secondsOfDay/it.SECONDS_PER_DAY},St.secondsDifference=function(e,t){return(e.dayNumber-t.dayNumber)*it.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)},St.daysDifference=function(e,t){return e.dayNumber-t.dayNumber+(e.secondsOfDay-t.secondsOfDay)/it.SECONDS_PER_DAY},St.computeTaiMinusUtc=function(e){lt.julianDate=e;const t=St.leapSeconds;let n=et(t,lt,ct);return n<0&&(n=~n,--n,n<0&&(n=0)),t[n].offset},St.addSeconds=function(e,t,n){return pt(e.dayNumber,e.secondsOfDay+t,n)},St.addMinutes=function(e,t,n){const r=e.secondsOfDay+t*it.SECONDS_PER_MINUTE;return pt(e.dayNumber,r,n)},St.addHours=function(e,t,n){const r=e.secondsOfDay+t*it.SECONDS_PER_HOUR;return pt(e.dayNumber,r,n)},St.addDays=function(e,t,n){return pt(e.dayNumber+t,e.secondsOfDay,n)},St.lessThan=function(e,t){return St.compare(e,t)<0},St.lessThanOrEquals=function(e,t){return St.compare(e,t)<=0},St.greaterThan=function(e,t){return St.compare(e,t)>0},St.greaterThanOrEquals=function(e,t){return St.compare(e,t)>=0},St.prototype.clone=function(e){return St.clone(this,e)},St.prototype.equals=function(e){return St.equals(this,e)},St.prototype.equalsEpsilon=function(e,t){return St.equalsEpsilon(this,e,t)},St.prototype.toString=function(){return St.toIso8601(this)},St.leapSeconds=[new ot(new St(2441317,43210,st.TAI),10),new ot(new St(2441499,43211,st.TAI),11),new ot(new St(2441683,43212,st.TAI),12),new ot(new St(2442048,43213,st.TAI),13),new ot(new St(2442413,43214,st.TAI),14),new ot(new St(2442778,43215,st.TAI),15),new ot(new St(2443144,43216,st.TAI),16),new ot(new St(2443509,43217,st.TAI),17),new ot(new St(2443874,43218,st.TAI),18),new ot(new St(2444239,43219,st.TAI),19),new ot(new St(2444786,43220,st.TAI),20),new ot(new St(2445151,43221,st.TAI),21),new ot(new St(2445516,43222,st.TAI),22),new ot(new St(2446247,43223,st.TAI),23),new ot(new St(2447161,43224,st.TAI),24),new ot(new St(2447892,43225,st.TAI),25),new ot(new St(2448257,43226,st.TAI),26),new ot(new St(2448804,43227,st.TAI),27),new ot(new St(2449169,43228,st.TAI),28),new ot(new St(2449534,43229,st.TAI),29),new ot(new St(2450083,43230,st.TAI),30),new ot(new St(2450630,43231,st.TAI),31),new ot(new St(2451179,43232,st.TAI),32),new ot(new St(2453736,43233,st.TAI),33),new ot(new St(2454832,43234,st.TAI),34),new ot(new St(2456109,43235,st.TAI),35),new ot(new St(2457204,43236,st.TAI),36),new ot(new St(2457754,43237,st.TAI),37)];var Et=i.createCommonjsModule((function(e,t){!function(n){var r=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,s="object"==typeof i.commonjsGlobal&&i.commonjsGlobal;s.global!==s&&s.window!==s&&s.self!==s||(n=s);var a,u,c=2147483647,l=36,d=/^xn--/,f=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,g=String.fromCharCode;function y(e){throw new RangeError(h[e])}function v(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function C(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+v((e=e.replace(p,".")).split("."),t).join(".")}function _(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function w(e){return v(e,(function(e){var t="";return e>65535&&(t+=g((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=g(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,n){var r=0;for(e=n?m(e/700):e>>1,e+=m(e/t);e>455;r+=l)e=m(e/35);return m(r+36*e/(e+38))}function S(e){var t,n,r,o,i,s,a,u,d,f,p,h=[],g=e.length,v=0,C=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&y("not-basic"),h.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<g;){for(i=v,s=1,a=l;o>=g&&y("invalid-input"),((u=(p=e.charCodeAt(o++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:l)>=l||u>m((c-v)/s))&&y("overflow"),v+=u*s,!(u<(d=a<=_?1:a>=_+26?26:a-_));a+=l)s>m(c/(f=l-d))&&y("overflow"),s*=f;_=x(v-i,t=h.length+1,0==i),m(v/t)>c-C&&y("overflow"),C+=m(v/t),v%=t,h.splice(v++,0,C)}return w(h)}function A(e){var t,n,r,o,i,s,a,u,d,f,p,h,v,C,w,S=[];for(h=(e=_(e)).length,t=128,n=0,i=72,s=0;s<h;++s)(p=e[s])<128&&S.push(g(p));for(r=o=S.length,o&&S.push("-");r<h;){for(a=c,s=0;s<h;++s)(p=e[s])>=t&&p<a&&(a=p);for(a-t>m((c-n)/(v=r+1))&&y("overflow"),n+=(a-t)*v,t=a,s=0;s<h;++s)if((p=e[s])<t&&++n>c&&y("overflow"),p==t){for(u=n,d=l;!(u<(f=d<=i?1:d>=i+26?26:d-i));d+=l)w=u-f,C=l-f,S.push(g(b(f+w%C,0))),u=m(w/C);S.push(g(b(u,0))),i=x(n,v,r==o),n=0,++r}++n,++t}return S.join("")}if(a={version:"1.3.2",ucs2:{decode:_,encode:w},decode:S,encode:A,toASCII:function(e){return C(e,(function(e){return f.test(e)?"xn--"+A(e):e}))},toUnicode:function(e){return C(e,(function(e){return d.test(e)?S(e.slice(4).toLowerCase()):e}))}},r&&o)if(e.exports==r)o.exports=a;else for(u in a)a.hasOwnProperty(u)&&(r[u]=a[u]);else n.punycode=a}(i.commonjsGlobal)})),Ot=i.createCommonjsModule((function(e){
|
|
2
|
-
/*!
|
|
3
|
-
* URI.js - Mutating URLs
|
|
4
|
-
* IPv6 Support
|
|
5
|
-
*
|
|
6
|
-
* Version: 1.19.7
|
|
7
|
-
*
|
|
8
|
-
* Author: Rodney Rehm
|
|
9
|
-
* Web: http://medialize.github.io/URI.js/
|
|
10
|
-
*
|
|
11
|
-
* Licensed under
|
|
12
|
-
* MIT License http://www.opensource.org/licenses/mit-license
|
|
13
|
-
*
|
|
14
|
-
*/var t,n;t=i.commonjsGlobal,n=function(e){var t=e&&e.IPv6;return{best:function(e){var t,n,r=e.toLowerCase().split(":"),o=r.length,i=8;for(""===r[0]&&""===r[1]&&""===r[2]?(r.shift(),r.shift()):""===r[0]&&""===r[1]?r.shift():""===r[o-1]&&""===r[o-2]&&r.pop(),-1!==r[(o=r.length)-1].indexOf(".")&&(i=7),t=0;t<o&&""!==r[t];t++);if(t<i)for(r.splice(t,1,"0000");r.length<i;)r.splice(t,0,"0000");for(var s=0;s<i;s++){n=r[s].split("");for(var a=0;a<3&&"0"===n[0]&&n.length>1;a++)n.splice(0,1);r[s]=n.join("")}var u=-1,c=0,l=0,d=-1,f=!1;for(s=0;s<i;s++)f?"0"===r[s]?l+=1:(f=!1,l>c&&(u=d,c=l)):"0"===r[s]&&(f=!0,d=s,l=1);l>c&&(u=d,c=l),c>1&&r.splice(u,c,""),o=r.length;var p="";for(""===r[0]&&(p=":"),s=0;s<o&&(p+=r[s],s!==o-1);s++)p+=":";return""===r[o-1]&&(p+=":"),p},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}},e.exports?e.exports=n():t.IPv6=n(t)})),It=i.createCommonjsModule((function(e){
|
|
15
|
-
/*!
|
|
16
|
-
* URI.js - Mutating URLs
|
|
17
|
-
* Second Level Domain (SLD) Support
|
|
18
|
-
*
|
|
19
|
-
* Version: 1.19.7
|
|
20
|
-
*
|
|
21
|
-
* Author: Rodney Rehm
|
|
22
|
-
* Web: http://medialize.github.io/URI.js/
|
|
23
|
-
*
|
|
24
|
-
* Licensed under
|
|
25
|
-
* MIT License http://www.opensource.org/licenses/mit-license
|
|
26
|
-
*
|
|
27
|
-
*/var t,n;t=i.commonjsGlobal,n=function(e){var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return!1;var o=n.list[e.slice(t+1)];return!!o&&o.indexOf(" "+e.slice(r+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var r=n.list[e.slice(t+1)];return!!r&&r.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return null;var o=n.list[e.slice(t+1)];return o?o.indexOf(" "+e.slice(r+1,t)+" ")<0?null:e.slice(r+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n},e.exports?e.exports=n():t.SecondLevelDomains=n(t)})),Pt=i.createCommonjsModule((function(e){
|
|
28
|
-
/*!
|
|
29
|
-
* URI.js - Mutating URLs
|
|
30
|
-
*
|
|
31
|
-
* Version: 1.19.7
|
|
32
|
-
*
|
|
33
|
-
* Author: Rodney Rehm
|
|
34
|
-
* Web: http://medialize.github.io/URI.js/
|
|
35
|
-
*
|
|
36
|
-
* Licensed under
|
|
37
|
-
* MIT License http://www.opensource.org/licenses/mit-license
|
|
38
|
-
*
|
|
39
|
-
*/var t,n;t=i.commonjsGlobal,n=function(e,t,n,r){var o=r&&r.URI;function i(e,t){var n=arguments.length>=1,r=arguments.length>=2;if(!(this instanceof i))return n?r?new i(e,t):new i(e):new i;if(void 0===e){if(n)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&n)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}i.version="1.19.7";var s=i.prototype,a=Object.prototype.hasOwnProperty;function u(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function c(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function l(e){return"Array"===c(e)}function d(e,t){var n,r,o={};if("RegExp"===c(t))o=null;else if(l(t))for(n=0,r=t.length;n<r;n++)o[t[n]]=!0;else o[t]=!0;for(n=0,r=e.length;n<r;n++)(o&&void 0!==o[e[n]]||!o&&t.test(e[n]))&&(e.splice(n,1),r--,n--);return e}function f(e,t){var n,r;if(l(t)){for(n=0,r=t.length;n<r;n++)if(!f(e,t[n]))return!1;return!0}var o=c(t);for(n=0,r=e.length;n<r;n++)if("RegExp"===o){if("string"==typeof e[n]&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function p(e,t){if(!l(e)||!l(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function h(e){return e.replace(/^\/+|\/+$/g,"")}function m(e){return escape(e)}function g(e){return encodeURIComponent(e).replace(/[!'()*]/g,m).replace(/\*/g,"%2A")}i._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:i.preventInvalidHostname,duplicateQueryParameters:i.duplicateQueryParameters,escapeQuerySpace:i.escapeQuerySpace}},i.preventInvalidHostname=!1,i.duplicateQueryParameters=!1,i.escapeQuerySpace=!0,i.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,i.idn_expression=/[^a-z0-9\._-]/i,i.punycode_expression=/(xn--)/i,i.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,i.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,i.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,i.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},i.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},i.hostProtocols=["http","https"],i.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,i.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},i.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return i.domAttributes[t]}},i.encode=g,i.decode=decodeURIComponent,i.iso8859=function(){i.encode=escape,i.decode=unescape},i.unicode=function(){i.encode=g,i.decode=decodeURIComponent},i.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},i.encodeQuery=function(e,t){var n=i.encode(e+"");return void 0===t&&(t=i.escapeQuerySpace),t?n.replace(/%20/g,"+"):n},i.decodeQuery=function(e,t){e+="",void 0===t&&(t=i.escapeQuerySpace);try{return i.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var y,v={encode:"encode",decode:"decode"},C=function(e,t){return function(n){try{return i[t](n+"").replace(i.characters[e][t].expression,(function(n){return i.characters[e][t].map[n]}))}catch(e){return n}}};for(y in v)i[y+"PathSegment"]=C("pathname",v[y]),i[y+"UrnPathSegment"]=C("urnpath",v[y]);var _=function(e,t,n){return function(r){var o;o=n?function(e){return i[t](i[n](e))}:i[t];for(var s=(r+"").split(e),a=0,u=s.length;a<u;a++)s[a]=o(s[a]);return s.join(e)}};function w(e){return function(t,n){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!n),this)}}function b(e,t){return function(n,r){return void 0===n?this._parts[e]||"":(null!==n&&(n+="").charAt(0)===t&&(n=n.substring(1)),this._parts[e]=n,this.build(!r),this)}}i.decodePath=_("/","decodePathSegment"),i.decodeUrnPath=_(":","decodeUrnPathSegment"),i.recodePath=_("/","encodePathSegment","decode"),i.recodeUrnPath=_(":","encodeUrnPathSegment","decode"),i.encodeReserved=C("reserved","encode"),i.parse=function(e,t){var n;return t||(t={preventInvalidHostname:i.preventInvalidHostname}),(n=e.indexOf("#"))>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),(n=e.indexOf("?"))>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),"//"===(e=e.replace(/^(https?|ftp|wss?)?:[/\\]*/,"$1://")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=i.parseAuthority(e,t)):(n=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(i.protocol_expression)?t.protocol=void 0:"//"===e.substring(n+1,n+3).replace(/\\/g,"/")?(e=e.substring(n+3),e=i.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0)),t.path=e,t},i.parseHost=function(e,t){e||(e="");var n,r,o=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===o&&(o=e.length),"["===e.charAt(0))n=e.indexOf("]"),t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,o)||null,"/"===t.port&&(t.port=null);else{var s=e.indexOf(":"),a=e.indexOf("/"),u=e.indexOf(":",s+1);-1!==u&&(-1===a||u<a)?(t.hostname=e.substring(0,o)||null,t.port=null):(r=e.substring(0,o).split(":"),t.hostname=r[0]||null,t.port=r[1]||null)}return t.hostname&&"/"!==e.substring(o).charAt(0)&&(o++,e="/"+e),t.preventInvalidHostname&&i.ensureValidHostname(t.hostname,t.protocol),t.port&&i.ensureValidPort(t.port),e.substring(o)||"/"},i.parseAuthority=function(e,t){return e=i.parseUserinfo(e,t),i.parseHost(e,t)},i.parseUserinfo=function(e,t){var n=e;-1!==e.indexOf("\\")&&(e=e.replace(/\\/g,"/"));var r,o=e.indexOf("/"),s=e.lastIndexOf("@",o>-1?o:e.length-1);return s>-1&&(-1===o||s<o)?(r=e.substring(0,s).split(":"),t.username=r[0]?i.decode(r[0]):null,r.shift(),t.password=r[0]?i.decode(r.join(":")):null,e=n.substring(s+1)):(t.username=null,t.password=null),e},i.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,o,s={},u=e.split("&"),c=u.length,l=0;l<c;l++)n=u[l].split("="),r=i.decodeQuery(n.shift(),t),o=n.length?i.decodeQuery(n.join("="),t):null,"__proto__"!==r&&(a.call(s,r)?("string"!=typeof s[r]&&null!==s[r]||(s[r]=[s[r]]),s[r].push(o)):s[r]=o);return s},i.build=function(e){var t="",n=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",n=!0),t+=i.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&n&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},i.buildHost=function(e){var t="";return e.hostname?(i.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},i.buildAuthority=function(e){return i.buildUserinfo(e)+i.buildHost(e)},i.buildUserinfo=function(e){var t="";return e.username&&(t+=i.encode(e.username)),e.password&&(t+=":"+i.encode(e.password)),t&&(t+="@"),t},i.buildQuery=function(e,t,n){var r,o,s,u,c="";for(o in e)if("__proto__"!==o&&a.call(e,o))if(l(e[o]))for(r={},s=0,u=e[o].length;s<u;s++)void 0!==e[o][s]&&void 0===r[e[o][s]+""]&&(c+="&"+i.buildQueryParameter(o,e[o][s],n),!0!==t&&(r[e[o][s]+""]=!0));else void 0!==e[o]&&(c+="&"+i.buildQueryParameter(o,e[o],n));return c.substring(1)},i.buildQueryParameter=function(e,t,n){return i.encodeQuery(e,n)+(null!==t?"="+i.encodeQuery(t,n):"")},i.addQuery=function(e,t,n){if("object"==typeof t)for(var r in t)a.call(t,r)&&i.addQuery(e,r,t[r]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=n);"string"==typeof e[t]&&(e[t]=[e[t]]),l(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}},i.setQuery=function(e,t,n){if("object"==typeof t)for(var r in t)a.call(t,r)&&i.setQuery(e,r,t[r]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===n?null:n}},i.removeQuery=function(e,t,n){var r,o,s;if(l(t))for(r=0,o=t.length;r<o;r++)e[t[r]]=void 0;else if("RegExp"===c(t))for(s in e)t.test(s)&&(e[s]=void 0);else if("object"==typeof t)for(s in t)a.call(t,s)&&i.removeQuery(e,s,t[s]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===c(n)?!l(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=d(e[t],n):e[t]!==String(n)||l(n)&&1!==n.length?l(e[t])&&(e[t]=d(e[t],n)):e[t]=void 0:e[t]=void 0}},i.hasQuery=function(e,t,n,r){switch(c(t)){case"String":break;case"RegExp":for(var o in e)if(a.call(e,o)&&t.test(o)&&(void 0===n||i.hasQuery(e,o,n)))return!0;return!1;case"Object":for(var s in t)if(a.call(t,s)&&!i.hasQuery(e,s,t[s]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(c(n)){case"Undefined":return t in e;case"Boolean":return n===Boolean(l(e[t])?e[t].length:e[t]);case"Function":return!!n(e[t],t,e);case"Array":return!!l(e[t])&&(r?f:p)(e[t],n);case"RegExp":return l(e[t])?!!r&&f(e[t],n):Boolean(e[t]&&e[t].match(n));case"Number":n=String(n);case"String":return l(e[t])?!!r&&f(e[t],n):e[t]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},i.joinPaths=function(){for(var e=[],t=[],n=0,r=0;r<arguments.length;r++){var o=new i(arguments[r]);e.push(o);for(var s=o.segment(),a=0;a<s.length;a++)"string"==typeof s[a]&&t.push(s[a]),s[a]&&n++}if(!t.length||!n)return new i("");var u=new i("").segment(t);return""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||u.path("/"+u.path()),u.normalize()},i.commonPath=function(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n)){n--;break}return n<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(n)&&"/"===t.charAt(n)||(n=e.substring(0,n).lastIndexOf("/")),e.substring(0,n+1))},i.withinString=function(e,t,n){n||(n={});var r=n.start||i.findUri.start,o=n.end||i.findUri.end,s=n.trim||i.findUri.trim,a=n.parens||i.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var c=r.exec(e);if(!c)break;var l=c.index;if(n.ignoreHtml){var d=e.slice(Math.max(l-3,0),l);if(d&&u.test(d))continue}for(var f=l+e.slice(l).search(o),p=e.slice(l,f),h=-1;;){var m=a.exec(p);if(!m)break;var g=m.index+m[0].length;h=Math.max(h,g)}if(!((p=h>-1?p.slice(0,h)+p.slice(h).replace(s,""):p.replace(s,"")).length<=c[0].length||n.ignore&&n.ignore.test(p))){var y=t(p,l,f=l+p.length,e);void 0!==y?(y=String(y),e=e.slice(0,l)+y+e.slice(f),r.lastIndex=l+y.length):r.lastIndex=f}}return r.lastIndex=0,e},i.ensureValidHostname=function(t,n){var r=!!t,o=!1;if(!!n&&(o=f(i.hostProtocols,n)),o&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(t&&t.match(i.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(i.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},i.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},i.noConflict=function(e){if(e){var t={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}return r.URI===this&&(r.URI=o),this},s.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=i.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new i(this)},s.valueOf=s.toString=function(){return this.build(!1)._string},s.protocol=w("protocol"),s.username=w("username"),s.password=w("password"),s.hostname=w("hostname"),s.port=w("port"),s.query=b("query","?"),s.fragment=b("fragment","#"),s.search=function(e,t){var n=this.query(e,t);return"string"==typeof n&&n.length?"?"+n:n},s.hash=function(e,t){var n=this.fragment(e,t);return"string"==typeof n&&n.length?"#"+n:n},s.pathname=function(e,t){if(void 0===e||!0===e){var n=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?i.decodeUrnPath:i.decodePath)(n):n}return this._parts.urn?this._parts.path=e?i.recodeUrnPath(e):"":this._parts.path=e?i.recodePath(e):"/",this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var n;if(void 0===e)return this.toString();this._string="",this._parts=i._parts();var r=e instanceof i,o="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName&&(e=e[i.getDomAttribute(e)]||"",o=!1),!r&&o&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=i.parse(String(e),this._parts);else{if(!r&&!o)throw new TypeError("invalid input");var s=r?e._parts:e;for(n in s)"query"!==n&&a.call(this._parts,n)&&(this._parts[n]=s[n]);s.query&&this.query(s.query,!1)}return this.build(!t),this},s.is=function(e){var t=!1,r=!1,o=!1,s=!1,a=!1,u=!1,c=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,r=i.ip4_expression.test(this._parts.hostname),o=i.ip6_expression.test(this._parts.hostname),a=(s=!(t=r||o))&&n&&n.has(this._parts.hostname),u=s&&i.idn_expression.test(this._parts.hostname),c=s&&i.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return s;case"sld":return a;case"ip":return t;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return o;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var x=s.protocol,S=s.port,A=s.hostname;s.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(i.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return x.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),i.ensureValidPort(e))),S.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==i.parseHost(e,n))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=n.hostname,this._parts.preventInvalidHostname&&i.ensureValidHostname(e,this._parts.protocol)}return A.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=i(e);return this.protocol(r.protocol()).authority(r.authority()).build(!t),this},s.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildHost(this._parts):"";if("/"!==i.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildAuthority(this._parts):"";if("/"!==i.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=i.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==e[e.length-1]&&(e+="@"),i.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var n;return void 0===e?this.path()+this.search()+this.hash():(n=i.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,o=this._parts.hostname.substring(0,r),s=new RegExp("^"+u(o));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&i.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,e),this.build(!t),this},s.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(t).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(i.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var o=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},s.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),o=this._parts.hostname.substring(r+1);return!0!==t&&n&&n.list[o.toLowerCase()]&&n.get(this._parts.hostname)||o}var i;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');i=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},s.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return e?i.decodePath(r):r}var o=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,o),a=new RegExp("^"+u(s));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=i.recodePath(e),this._parts.path=this._parts.path.replace(a,e),this.build(!t),this},s.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return e?i.decodePathSegment(r):r}var o=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(o=!0);var s=new RegExp(u(this.filename())+"$");return e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e),o?this.normalizePath(t):this.build(!t),this},s.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,o=this.filename(),s=o.lastIndexOf(".");return-1===s?"":(n=o.substring(s+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",e?i.decodePathSegment(r):r)}"."===e.charAt(0)&&(e=e.substring(1));var a,c=this.suffix();if(c)a=e?new RegExp(u(c)+"$"):new RegExp(u("."+c)+"$");else{if(!e)return this;this._parts.path+="."+i.recodePath(e)}return a&&(e=i.recodePath(e),this._parts.path=this._parts.path.replace(a,e)),this.build(!t),this},s.segment=function(e,t,n){var r=this._parts.urn?":":"/",o=this.path(),i="/"===o.substring(0,1),s=o.split(r);if(void 0!==e&&"number"!=typeof e&&(n=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(i&&s.shift(),e<0&&(e=Math.max(s.length+e,0)),void 0===t)return void 0===e?s:s[e];if(null===e||void 0===s[e])if(l(t)){s=[];for(var a=0,u=t.length;a<u;a++)(t[a].length||s.length&&s[s.length-1].length)&&(s.length&&!s[s.length-1].length&&s.pop(),s.push(h(t[a])))}else(t||"string"==typeof t)&&(t=h(t),""===s[s.length-1]?s[s.length-1]=t:s.push(t));else t?s[e]=h(t):s.splice(e,1);return i&&s.unshift(""),this.path(s.join(r),n)},s.segmentCoded=function(e,t,n){var r,o,s;if("number"!=typeof e&&(n=t,t=e,e=void 0),void 0===t){if(l(r=this.segment(e,t,n)))for(o=0,s=r.length;o<s;o++)r[o]=i.decode(r[o]);else r=void 0!==r?i.decode(r):void 0;return r}if(l(t))for(o=0,s=t.length;o<s;o++)t[o]=i.encode(t[o]);else t="string"==typeof t||t instanceof String?i.encode(t):t;return this.segment(e,t,n)};var E=s.query;return s.query=function(e,t){if(!0===e)return i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=e.call(this,n);return this._parts.query=i.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=i.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):E.call(this,e,t)},s.setQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)r[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var o in e)a.call(e,o)&&(r[o]=e[o])}return this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},s.addQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.addQuery(r,e,void 0===t?null:t),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},s.removeQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.removeQuery(r,e,t),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},s.hasQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.hasQuery(r,e,t,n)},s.setSearch=s.setQuery,s.addSearch=s.addQuery,s.removeSearch=s.removeQuery,s.hasSearch=s.hasQuery,s.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},s.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},s.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},s.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===i.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},s.normalizePath=function(e){var t,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=i.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var r,o,s="";for("/"!==(n=i.recodePath(n)).charAt(0)&&(t=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(s=n.substring(1).match(/^(\.\.\/)+/)||"")&&(s=s[0]);-1!==(r=n.search(/\/\.\.(\/|$)/));)0!==r?(-1===(o=n.substring(0,r).lastIndexOf("/"))&&(o=r),n=n.substring(0,o)+n.substring(r+3)):n=n.substring(3);return t&&this.is("relative")&&(n=s+n.substring(1)),this._parts.path=n,this.build(!e),this},s.normalizePathname=s.normalizePath,s.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(i.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},s.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},s.normalizeSearch=s.normalizeQuery,s.normalizeHash=s.normalizeFragment,s.iso8859=function(){var e=i.encode,t=i.decode;i.encode=escape,i.decode=decodeURIComponent;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},s.unicode=function(){var e=i.encode,t=i.decode;i.encode=g,i.decode=unescape;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},s.readable=function(){var t=this.clone();t.username("").password("").normalize();var n="";if(t._parts.protocol&&(n+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=":"+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(n+="/"),n+=t.path(!0),t._parts.query){for(var r="",o=0,s=t._parts.query.split("&"),a=s.length;o<a;o++){var u=(s[o]||"").split("=");r+="&"+i.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(r+="="+i.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+=i.decodeQuery(t.hash(),!0)},s.absoluteTo=function(e){var t,n,r,o=this.clone(),s=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof i||(e=new i(e)),o._parts.protocol)return o;if(o._parts.protocol=e._parts.protocol,this._parts.hostname)return o;for(n=0;r=s[n];n++)o._parts[r]=e._parts[r];return o._parts.path?(".."===o._parts.path.substring(-2)&&(o._parts.path+="/"),"/"!==o.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),o._parts.path=(t?t+"/":"")+o._parts.path,o.normalizePath())):(o._parts.path=e._parts.path,o._parts.query||(o._parts.query=e._parts.query)),o.build(),o},s.relativeTo=function(e){var t,n,r,o,s,a=this.clone().normalize();if(a._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new i(e).normalize(),t=a._parts,n=e._parts,o=a.path(),s=e.path(),"/"!==o.charAt(0))throw new Error("URI is already relative");if("/"!==s.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===n.protocol&&(t.protocol=null),t.username!==n.username||t.password!==n.password)return a.build();if(null!==t.protocol||null!==t.username||null!==t.password)return a.build();if(t.hostname!==n.hostname||t.port!==n.port)return a.build();if(t.hostname=null,t.port=null,o===s)return t.path="",a.build();if(!(r=i.commonPath(o,s)))return a.build();var u=n.path.substring(r.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=u+t.path.substring(r.length)||"./",a.build()},s.equals=function(e){var t,n,r,o,s,u=this.clone(),c=new i(e),d={};if(u.normalize(),c.normalize(),u.toString()===c.toString())return!0;if(r=u.query(),o=c.query(),u.query(""),c.query(""),u.toString()!==c.toString())return!1;if(r.length!==o.length)return!1;for(s in t=i.parseQuery(r,this._parts.escapeQuerySpace),n=i.parseQuery(o,this._parts.escapeQuerySpace),t)if(a.call(t,s)){if(l(t[s])){if(!p(t[s],n[s]))return!1}else if(t[s]!==n[s])return!1;d[s]=!0}for(s in n)if(a.call(n,s)&&!d[s])return!1;return!0},s.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},s.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},s.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},i},e.exports?e.exports=n(Et,Ot,It):t.URI=n(t.punycode,t.IPv6,t.SecondLevelDomains,t)}));function Rt(e,t){if(null===e||"object"!=typeof e)return e;t=r.defaultValue(t,!1);const n=new e.constructor;for(const r in e)if(e.hasOwnProperty(r)){let o=e[r];t&&(o=Rt(o,t)),n[r]=o}return n}function Tt(e,t){let n;return"undefined"!=typeof document&&(n=document),Tt._implementation(e,t,n)}Tt._implementation=function(e,t,n){if(!r.defined(t)){if(void 0===n)return e;t=r.defaultValue(n.baseURI,n.location.href)}const o=new Pt(e);return""!==o.scheme()?o.toString():o.absoluteTo(t).toString()};const qt={};function zt(e,t,n){r.defined(t)||(t=e.width),r.defined(n)||(n=e.height);let o=qt[t];r.defined(o)||(o={},qt[t]=o);let i=o[n];if(!r.defined(i)){const e=document.createElement("canvas");e.width=t,e.height=n,i=e.getContext("2d"),i.globalCompositeOperation="copy",o[n]=i}return i.drawImage(e,0,0,t,n),i.getImageData(0,0,t,n).data}const Mt=/^blob:/i;function Dt(e){return Mt.test(e)}let Ut;const kt=/^data:/i;function Ft(e){return kt.test(e)}var Nt=Object.freeze({UNISSUED:0,ISSUED:1,ACTIVE:2,RECEIVED:3,CANCELLED:4,FAILED:5});var jt=Object.freeze({TERRAIN:0,IMAGERY:1,TILES3D:2,OTHER:3});function Bt(e){e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT);const t=r.defaultValue(e.throttleByServer,!1),n=r.defaultValue(e.throttle,!1);this.url=e.url,this.requestFunction=e.requestFunction,this.cancelFunction=e.cancelFunction,this.priorityFunction=e.priorityFunction,this.priority=r.defaultValue(e.priority,0),this.throttle=n,this.throttleByServer=t,this.type=r.defaultValue(e.type,jt.OTHER),this.serverKey=void 0,this.state=Nt.UNISSUED,this.deferred=void 0,this.cancelled=!1}function Vt(e,t,n){this.statusCode=e,this.response=t,this.responseHeaders=n,"string"==typeof this.responseHeaders&&(this.responseHeaders=function(e){const t={};if(!e)return t;const n=e.split("\r\n");for(let e=0;e<n.length;++e){const r=n[e],o=r.indexOf(": ");if(o>0){const e=r.substring(0,o),n=r.substring(o+2);t[e]=n}}return t}(this.responseHeaders))}function Lt(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}function Qt(e,t){return t-e}function $t(e){this._comparator=e.comparator,this._array=[],this._length=0,this._maximumLength=void 0}function Wt(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}Bt.prototype.cancel=function(){this.cancelled=!0},Bt.prototype.clone=function(e){return r.defined(e)?(e.url=this.url,e.requestFunction=this.requestFunction,e.cancelFunction=this.cancelFunction,e.priorityFunction=this.priorityFunction,e.priority=this.priority,e.throttle=this.throttle,e.throttleByServer=this.throttleByServer,e.type=this.type,e.serverKey=this.serverKey,e.state=this.RequestState.UNISSUED,e.deferred=void 0,e.cancelled=!1,e):new Bt(this)},Vt.prototype.toString=function(){let e="Request has failed.";return r.defined(this.statusCode)&&(e+=` Status Code: ${this.statusCode}`),e},Object.defineProperties(Lt.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}}),Lt.prototype.addEventListener=function(e,t){this._listeners.push(e),this._scopes.push(t);const n=this;return function(){n.removeEventListener(e,t)}},Lt.prototype.removeEventListener=function(e,t){const n=this._listeners,r=this._scopes;let o=-1;for(let i=0;i<n.length;i++)if(n[i]===e&&r[i]===t){o=i;break}return-1!==o&&(this._insideRaiseEvent?(this._toRemove.push(o),n[o]=void 0,r[o]=void 0):(n.splice(o,1),r.splice(o,1)),!0)},Lt.prototype.raiseEvent=function(){let e;this._insideRaiseEvent=!0;const t=this._listeners,n=this._scopes;let o=t.length;for(e=0;e<o;e++){const o=t[e];r.defined(o)&&t[e].apply(n[e],arguments)}const i=this._toRemove;if(o=i.length,o>0){for(i.sort(Qt),e=0;e<o;e++){const r=i[e];t.splice(r,1),n.splice(r,1)}i.length=0}this._insideRaiseEvent=!1},Object.defineProperties($t.prototype,{length:{get:function(){return this._length}},internalArray:{get:function(){return this._array}},maximumLength:{get:function(){return this._maximumLength},set:function(e){const t=this._length;if(e<t){const n=this._array;for(let r=e;r<t;++r)n[r]=void 0;this._length=e,n.length=e}this._maximumLength=e}},comparator:{get:function(){return this._comparator}}}),$t.prototype.reserve=function(e){e=r.defaultValue(e,this._length),this._array.length=e},$t.prototype.heapify=function(e){e=r.defaultValue(e,0);const t=this._length,n=this._comparator,o=this._array;let i=-1,s=!0;for(;s;){const r=2*(e+1),a=r-1;i=a<t&&n(o[a],o[e])<0?a:e,r<t&&n(o[r],o[i])<0&&(i=r),i!==e?(Wt(o,i,e),e=i):s=!1}},$t.prototype.resort=function(){const e=this._length;for(let t=Math.ceil(e/2);t>=0;--t)this.heapify(t)},$t.prototype.insert=function(e){const t=this._array,n=this._comparator,o=this._maximumLength;let i,s=this._length++;for(s<t.length?t[s]=e:t.push(e);0!==s;){const e=Math.floor((s-1)/2);if(!(n(t[s],t[e])<0))break;Wt(t,s,e),s=e}return r.defined(o)&&this._length>o&&(i=t[o],this._length=o),i},$t.prototype.pop=function(e){if(e=r.defaultValue(e,0),0===this._length)return;const t=this._array,n=t[e];return Wt(t,e,--this._length),this.heapify(e),t[this._length]=void 0,n};const Ht={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0};let Yt=20;const Zt=new $t({comparator:function(e,t){return e.priority-t.priority}});Zt.maximumLength=Yt,Zt.reserve(Yt);const Gt=[];let Jt={};const Xt="undefined"!=typeof document?new Pt(document.location.href):new Pt,Kt=new Lt;function en(){}function tn(e){r.defined(e.priorityFunction)&&(e.priority=e.priorityFunction())}function nn(e){return e.state===Nt.UNISSUED&&(e.state=Nt.ISSUED,e.deferred=Z()),e.deferred.promise}function rn(e){const t=nn(e);return e.state=Nt.ACTIVE,Gt.push(e),++Ht.numberOfActiveRequests,++Ht.numberOfActiveRequestsEver,++Jt[e.serverKey],e.requestFunction().then(function(e){return function(t){if(e.state===Nt.CANCELLED)return;const n=e.deferred;--Ht.numberOfActiveRequests,--Jt[e.serverKey],Kt.raiseEvent(),e.state=Nt.RECEIVED,e.deferred=void 0,n.resolve(t)}}(e)).catch(function(e){return function(t){e.state!==Nt.CANCELLED&&(++Ht.numberOfFailedRequests,--Ht.numberOfActiveRequests,--Jt[e.serverKey],Kt.raiseEvent(t),e.state=Nt.FAILED,e.deferred.reject(t))}}(e)),t}function on(e){const t=e.state===Nt.ACTIVE;if(e.state=Nt.CANCELLED,++Ht.numberOfCancelledRequests,r.defined(e.deferred)){const t=e.deferred;e.deferred=void 0,t.reject()}t&&(--Ht.numberOfActiveRequests,--Jt[e.serverKey],++Ht.numberOfCancelledActiveRequests),r.defined(e.cancelFunction)&&e.cancelFunction()}en.maximumRequests=50,en.maximumRequestsPerServer=6,en.requestsByServer={"api.cesium.com:443":18,"assets.cesium.com:443":18},en.throttleRequests=!0,en.debugShowStatistics=!1,en.requestCompletedEvent=Kt,Object.defineProperties(en,{statistics:{get:function(){return Ht}},priorityHeapLength:{get:function(){return Yt},set:function(e){if(e<Yt)for(;Zt.length>e;){on(Zt.pop())}Yt=e,Zt.maximumLength=e,Zt.reserve(e)}}}),en.serverHasOpenSlots=function(e,t){t=r.defaultValue(t,1);const n=r.defaultValue(en.requestsByServer[e],en.maximumRequestsPerServer);return Jt[e]+t<=n},en.heapHasOpenSlots=function(e){return Zt.length+e<=Yt},en.update=function(){let e,t,n=0;const r=Gt.length;for(e=0;e<r;++e)t=Gt[e],t.cancelled&&on(t),t.state===Nt.ACTIVE?n>0&&(Gt[e-n]=t):++n;Gt.length-=n;const o=Zt.internalArray,i=Zt.length;for(e=0;e<i;++e)tn(o[e]);Zt.resort();const s=Math.max(en.maximumRequests-Gt.length,0);let a=0;for(;a<s&&Zt.length>0;)t=Zt.pop(),t.cancelled?on(t):!t.throttleByServer||en.serverHasOpenSlots(t.serverKey)?(rn(t),++a):on(t);!function(){if(!en.debugShowStatistics)return;0===Ht.numberOfActiveRequests&&Ht.lastNumberOfActiveRequests>0&&(Ht.numberOfAttemptedRequests>0&&(console.log(`Number of attempted requests: ${Ht.numberOfAttemptedRequests}`),Ht.numberOfAttemptedRequests=0),Ht.numberOfCancelledRequests>0&&(console.log(`Number of cancelled requests: ${Ht.numberOfCancelledRequests}`),Ht.numberOfCancelledRequests=0),Ht.numberOfCancelledActiveRequests>0&&(console.log(`Number of cancelled active requests: ${Ht.numberOfCancelledActiveRequests}`),Ht.numberOfCancelledActiveRequests=0),Ht.numberOfFailedRequests>0&&(console.log(`Number of failed requests: ${Ht.numberOfFailedRequests}`),Ht.numberOfFailedRequests=0));Ht.lastNumberOfActiveRequests=Ht.numberOfActiveRequests}()},en.getServerKey=function(e){let t=new Pt(e);""===t.scheme()&&(t=new Pt(e).absoluteTo(Xt),t.normalize());let n=t.authority();/:/.test(n)||(n=`${n}:${"https"===t.scheme()?"443":"80"}`);const o=Jt[n];return r.defined(o)||(Jt[n]=0),n},en.request=function(e){if(Ft(e.url)||Dt(e.url))return Kt.raiseEvent(),e.state=Nt.RECEIVED,e.requestFunction();if(++Ht.numberOfAttemptedRequests,r.defined(e.serverKey)||(e.serverKey=en.getServerKey(e.url)),en.throttleRequests&&e.throttleByServer&&!en.serverHasOpenSlots(e.serverKey))return;if(!en.throttleRequests||!e.throttle)return rn(e);if(Gt.length>=en.maximumRequests)return;tn(e);const t=Zt.insert(e);if(r.defined(t)){if(t===e)return;on(t)}return nn(e)},en.clearForSpecs=function(){for(;Zt.length>0;){on(Zt.pop())}const e=Gt.length;for(let t=0;t<e;++t)on(Gt[t]);Gt.length=0,Jt={},Ht.numberOfAttemptedRequests=0,Ht.numberOfActiveRequests=0,Ht.numberOfCancelledRequests=0,Ht.numberOfCancelledActiveRequests=0,Ht.numberOfFailedRequests=0,Ht.numberOfActiveRequestsEver=0,Ht.lastNumberOfActiveRequests=0},en.numberOfActiveRequestsByServer=function(e){return Jt[e]},en.requestHeap=Zt;const sn={};let an={};sn.add=function(e,t){const n=`${e.toLowerCase()}:${t}`;r.defined(an[n])||(an[n]=!0)},sn.remove=function(e,t){const n=`${e.toLowerCase()}:${t}`;r.defined(an[n])&&delete an[n]},sn.contains=function(e){const t=function(e){const t=new Pt(e);t.normalize();let n=t.authority();if(0!==n.length){if(t.authority(n),-1!==n.indexOf("@")){const e=n.split("@");n=e[1]}if(-1===n.indexOf(":")){let e=t.scheme();if(0===e.length&&(e=window.location.protocol,e=e.substring(0,e.length-1)),"http"===e)n+=":80";else{if("https"!==e)return;n+=":443"}}return n}}(e);return!(!r.defined(t)||!r.defined(an[t]))},sn.clear=function(){an={}};const un=function(){try{const e=new XMLHttpRequest;return e.open("GET","#",!0),e.responseType="blob","blob"===e.responseType}catch(e){return!1}}();function cn(e,t,n,o){const i=e.query();if(0===i.length)return{};let s;if(-1===i.indexOf("=")){const e={};e[i]=void 0,s=e}else s=function(e){const t={};if(""===e)return t;const n=e.replace(/\+/g,"%20").split(/[&;]/);for(let e=0,o=n.length;e<o;++e){const o=n[e].split("="),i=decodeURIComponent(o[0]);let s=o[1];s=r.defined(s)?decodeURIComponent(s):"";const a=t[i];"string"==typeof a?t[i]=[a,s]:Array.isArray(a)?a.push(s):t[i]=s}return t}(i);t._queryParameters=n?pn(s,t._queryParameters,o):s,e.search("")}function ln(e,t){const n=t._queryParameters,o=Object.keys(n);1!==o.length||r.defined(n[o[0]])?e.search(function(e){let t="";for(const n in e)if(e.hasOwnProperty(n)){const r=e[n],o=`${encodeURIComponent(n)}=`;if(Array.isArray(r))for(let e=0,n=r.length;e<n;++e)t+=`${o+encodeURIComponent(r[e])}&`;else t+=`${o+encodeURIComponent(r)}&`}return t=t.slice(0,-1),t}(n)):e.search(o[0])}function dn(e,t){return r.defined(e)?r.defined(e.clone)?e.clone():Rt(e):t}function fn(e){if(e.state===Nt.ISSUED||e.state===Nt.ACTIVE)throw new n.RuntimeError("The Resource is already being fetched.");e.state=Nt.UNISSUED,e.deferred=void 0}function pn(e,t,n){if(!n)return s.combine(e,t);const o=Rt(e,!0);for(const e in t)if(t.hasOwnProperty(e)){let n=o[e];const i=t[e];r.defined(n)?(Array.isArray(n)||(n=o[e]=[n]),o[e]=n.concat(i)):o[e]=Array.isArray(i)?i.slice():i}return o}function hn(e){"string"==typeof(e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT))&&(e={url:e}),this._url=void 0,this._templateValues=dn(e.templateValues,{}),this._queryParameters=dn(e.queryParameters,{}),this.headers=dn(e.headers,{}),this.request=r.defaultValue(e.request,new Bt),this.proxy=e.proxy,this.retryCallback=e.retryCallback,this.retryAttempts=r.defaultValue(e.retryAttempts,0),this._retryCount=0;const t=new Pt(e.url);cn(t,this,!0,!0),t.fragment(""),this._url=t.toString()}let mn;function gn(e){const t=e.resource,n=e.flipY,o=e.skipColorSpaceConversion,i=e.preferImageBitmap,s=t.request;s.url=t.url,s.requestFunction=function(){let e=!1;t.isDataUri||t.isBlobUri||(e=t.isCrossOriginUrl);const r=Z();return hn._Implementations.createImage(s,e,r,n,o,i),r.promise};const a=en.request(s);if(r.defined(a))return a.catch((function(e){return s.state!==Nt.FAILED?Promise.reject(e):t.retryOnError(e).then((function(r){return r?(s.state=Nt.UNISSUED,s.deferred=void 0,gn({resource:t,flipY:n,skipColorSpaceConversion:o,preferImageBitmap:i})):Promise.reject(e)}))}))}function yn(e,t,n){const o={};o[t]=n,e.setQueryParameters(o);const i=e.request;i.url=e.url,i.requestFunction=function(){const t=Z();return window[n]=function(e){t.resolve(e);try{delete window[n]}catch(e){window[n]=void 0}},hn._Implementations.loadAndExecuteScript(e.url,n,t),t.promise};const s=en.request(i);if(r.defined(s))return s.catch((function(r){return i.state!==Nt.FAILED?Promise.reject(r):e.retryOnError(r).then((function(o){return o?(i.state=Nt.UNISSUED,i.deferred=void 0,yn(e,t,n)):Promise.reject(r)}))}))}hn.createIfNeeded=function(e){return e instanceof hn?e.getDerivedResource({request:e.request}):"string"!=typeof e?e:new hn({url:e})},hn.supportsImageBitmapOptions=function(){if(r.defined(mn))return mn;if("function"!=typeof createImageBitmap)return mn=Promise.resolve(!1),mn;return mn=hn.fetchBlob({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAAE4g3rEiDgAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADElEQVQI12Ng6GAAAAEUAIngE3ZiAAAAAElFTkSuQmCC"}).then((function(e){return Promise.all([createImageBitmap(e,{imageOrientation:"flipY",premultiplyAlpha:"none",colorSpaceConversion:"none"}),createImageBitmap(e)])})).then((function(e){const t=zt(e[0]),n=zt(e[1]);return t[1]!==n[1]})).catch((function(){return!1})),mn},Object.defineProperties(hn,{isBlobSupported:{get:function(){return un}}}),Object.defineProperties(hn.prototype,{queryParameters:{get:function(){return this._queryParameters}},templateValues:{get:function(){return this._templateValues}},url:{get:function(){return this.getUrlComponent(!0,!0)},set:function(e){const t=new Pt(e);cn(t,this,!1),t.fragment(""),this._url=t.toString()}},extension:{get:function(){return function(e){const t=new Pt(e);t.normalize();let n=t.path(),r=n.lastIndexOf("/");return-1!==r&&(n=n.substr(r+1)),r=n.lastIndexOf("."),n=-1===r?"":n.substr(r+1),n}(this._url)}},isDataUri:{get:function(){return Ft(this._url)}},isBlobUri:{get:function(){return Dt(this._url)}},isCrossOriginUrl:{get:function(){return function(e){r.defined(Ut)||(Ut=document.createElement("a")),Ut.href=window.location.href;const t=Ut.host,n=Ut.protocol;return Ut.href=e,Ut.href=Ut.href,n!==Ut.protocol||t!==Ut.host}(this._url)}},hasHeaders:{get:function(){return Object.keys(this.headers).length>0}}}),hn.prototype.toString=function(){return this.getUrlComponent(!0,!0)},hn.prototype.getUrlComponent=function(e,t){if(this.isDataUri)return this._url;const n=new Pt(this._url);e&&ln(n,this);let o=n.toString().replace(/%7B/g,"{").replace(/%7D/g,"}");const i=this._templateValues;return o=o.replace(/{(.*?)}/g,(function(e,t){const n=i[t];return r.defined(n)?encodeURIComponent(n):e})),t&&r.defined(this.proxy)&&(o=this.proxy.getURL(o)),o},hn.prototype.setQueryParameters=function(e,t){this._queryParameters=t?pn(this._queryParameters,e,!1):pn(e,this._queryParameters,!1)},hn.prototype.appendQueryParameters=function(e){this._queryParameters=pn(e,this._queryParameters,!0)},hn.prototype.setTemplateValues=function(e,t){this._templateValues=t?s.combine(this._templateValues,e):s.combine(e,this._templateValues)},hn.prototype.getDerivedResource=function(e){const t=this.clone();if(t._retryCount=0,r.defined(e.url)){const n=new Pt(e.url);cn(n,t,!0,r.defaultValue(e.preserveQueryParameters,!1)),n.fragment(""),""!==n.scheme()?t._url=n.toString():t._url=n.absoluteTo(new Pt(Tt(this._url))).toString()}return r.defined(e.queryParameters)&&(t._queryParameters=s.combine(e.queryParameters,t._queryParameters)),r.defined(e.templateValues)&&(t._templateValues=s.combine(e.templateValues,t.templateValues)),r.defined(e.headers)&&(t.headers=s.combine(e.headers,t.headers)),r.defined(e.proxy)&&(t.proxy=e.proxy),r.defined(e.request)&&(t.request=e.request),r.defined(e.retryCallback)&&(t.retryCallback=e.retryCallback),r.defined(e.retryAttempts)&&(t.retryAttempts=e.retryAttempts),t},hn.prototype.retryOnError=function(e){const t=this.retryCallback;if("function"!=typeof t||this._retryCount>=this.retryAttempts)return Promise.resolve(!1);const n=this;return Promise.resolve(t(this,e)).then((function(e){return++n._retryCount,e}))},hn.prototype.clone=function(e){return r.defined(e)||(e=new hn({url:this._url})),e._url=this._url,e._queryParameters=Rt(this._queryParameters),e._templateValues=Rt(this._templateValues),e.headers=Rt(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e},hn.prototype.getBaseUri=function(e){return function(e,t){let n="";const r=e.lastIndexOf("/");return-1!==r&&(n=e.substring(0,r+1)),t?(0!==(e=new Pt(e)).query().length&&(n+=`?${e.query()}`),0!==e.fragment().length&&(n+=`#${e.fragment()}`),n):n}(this.getUrlComponent(e),e)},hn.prototype.appendForwardSlash=function(){var e;this._url=(0!==(e=this._url).length&&"/"===e[e.length-1]||(e=`${e}/`),e)},hn.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})},hn.fetchArrayBuffer=function(e){return new hn(e).fetchArrayBuffer()},hn.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})},hn.fetchBlob=function(e){return new hn(e).fetchBlob()},hn.prototype.fetchImage=function(e){e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT);const t=r.defaultValue(e.preferImageBitmap,!1),n=r.defaultValue(e.preferBlob,!1),o=r.defaultValue(e.flipY,!1),i=r.defaultValue(e.skipColorSpaceConversion,!1);if(fn(this.request),!un||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!n)return gn({resource:this,flipY:o,skipColorSpaceConversion:i,preferImageBitmap:t});const s=this.fetchBlob();if(!r.defined(s))return;let a,u,c,l;return hn.supportsImageBitmapOptions().then((function(e){return a=e,u=a&&t,s})).then((function(e){if(!r.defined(e))return;if(l=e,u)return hn.createImageBitmapFromBlob(e,{flipY:o,premultiplyAlpha:!1,skipColorSpaceConversion:i});const t=window.URL.createObjectURL(e);return c=new hn({url:t}),gn({resource:c,flipY:o,skipColorSpaceConversion:i,preferImageBitmap:!1})})).then((function(e){if(r.defined(e))return e.blob=l,u||window.URL.revokeObjectURL(c.url),e})).catch((function(e){return r.defined(c)&&window.URL.revokeObjectURL(c.url),e.blob=l,Promise.reject(e)}))},hn.fetchImage=function(e){return new hn(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})},hn.prototype.fetchText=function(){return this.fetch({responseType:"text"})},hn.fetchText=function(e){return new hn(e).fetchText()},hn.prototype.fetchJson=function(){const e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if(r.defined(e))return e.then((function(e){if(r.defined(e))return JSON.parse(e)}))},hn.fetchJson=function(e){return new hn(e).fetchJson()},hn.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})},hn.fetchXML=function(e){return new hn(e).fetchXML()},hn.prototype.fetchJsonp=function(e){let t;e=r.defaultValue(e,"callback"),fn(this.request);do{t=`loadJsonp${o.CesiumMath.nextRandomNumber().toString().substring(2,8)}`}while(r.defined(window[t]));return yn(this,e,t)},hn.fetchJsonp=function(e){return new hn(e).fetchJsonp(e.callbackParameterName)},hn.prototype._makeRequest=function(e){const t=this;fn(t.request);const n=t.request;n.url=t.url,n.requestFunction=function(){const o=e.responseType,i=s.combine(e.headers,t.headers),a=e.overrideMimeType,u=e.method,c=e.data,l=Z(),d=hn._Implementations.loadWithXhr(t.url,o,u,c,i,l,a);return r.defined(d)&&r.defined(d.abort)&&(n.cancelFunction=function(){d.abort()}),l.promise};const o=en.request(n);if(r.defined(o))return o.then((function(e){return n.cancelFunction=void 0,e})).catch((function(r){return n.cancelFunction=void 0,n.state!==Nt.FAILED?Promise.reject(r):t.retryOnError(r).then((function(o){return o?(n.state=Nt.UNISSUED,n.deferred=void 0,t.fetch(e)):Promise.reject(r)}))}))};const vn=/^data:(.*?)(;base64)?,(.*)$/;function Cn(e,t){const n=decodeURIComponent(t);return e?atob(n):n}function _n(e,t){const n=Cn(e,t),r=new ArrayBuffer(n.length),o=new Uint8Array(r);for(let e=0;e<n.length;e++)o[e]=n.charCodeAt(e);return r}function wn(e,t){switch(t){case"text":return e.toString("utf8");case"json":return JSON.parse(e.toString("utf8"));default:return new Uint8Array(e).buffer}}hn.prototype.fetch=function(e){return(e=dn(e,{})).method="GET",this._makeRequest(e)},hn.fetch=function(e){return new hn(e).fetch({responseType:e.responseType,overrideMimeType:e.overrideMimeType})},hn.prototype.delete=function(e){return(e=dn(e,{})).method="DELETE",this._makeRequest(e)},hn.delete=function(e){return new hn(e).delete({responseType:e.responseType,overrideMimeType:e.overrideMimeType,data:e.data})},hn.prototype.head=function(e){return(e=dn(e,{})).method="HEAD",this._makeRequest(e)},hn.head=function(e){return new hn(e).head({responseType:e.responseType,overrideMimeType:e.overrideMimeType})},hn.prototype.options=function(e){return(e=dn(e,{})).method="OPTIONS",this._makeRequest(e)},hn.options=function(e){return new hn(e).options({responseType:e.responseType,overrideMimeType:e.overrideMimeType})},hn.prototype.post=function(e,t){return n.Check.defined("data",e),(t=dn(t,{})).method="POST",t.data=e,this._makeRequest(t)},hn.post=function(e){return new hn(e).post(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})},hn.prototype.put=function(e,t){return n.Check.defined("data",e),(t=dn(t,{})).method="PUT",t.data=e,this._makeRequest(t)},hn.put=function(e){return new hn(e).put(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})},hn.prototype.patch=function(e,t){return n.Check.defined("data",e),(t=dn(t,{})).method="PATCH",t.data=e,this._makeRequest(t)},hn.patch=function(e){return new hn(e).patch(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})},hn._Implementations={},hn._Implementations.loadImageElement=function(e,t,n){const r=new Image;r.onload=function(){0===r.naturalWidth&&0===r.naturalHeight&&0===r.width&&0===r.height&&(r.width=300,r.height=150),n.resolve(r)},r.onerror=function(e){n.reject(e)},t&&(sn.contains(e)?r.crossOrigin="use-credentials":r.crossOrigin=""),r.src=e},hn._Implementations.createImage=function(e,t,o,i,s,a){const u=e.url;hn.supportsImageBitmapOptions().then((function(c){if(!c||!a)return void hn._Implementations.loadImageElement(u,t,o);const l=Z(),d=hn._Implementations.loadWithXhr(u,"blob","GET",void 0,void 0,l,void 0,void 0,void 0);return r.defined(d)&&r.defined(d.abort)&&(e.cancelFunction=function(){d.abort()}),l.promise.then((function(e){if(r.defined(e))return hn.createImageBitmapFromBlob(e,{flipY:i,premultiplyAlpha:!1,skipColorSpaceConversion:s});o.reject(new n.RuntimeError(`Successfully retrieved ${u} but it contained no content.`))})).then((function(e){o.resolve(e)}))})).catch((function(e){o.reject(e)}))},hn.createImageBitmapFromBlob=function(e,t){return n.Check.defined("options",t),n.Check.typeOf.bool("options.flipY",t.flipY),n.Check.typeOf.bool("options.premultiplyAlpha",t.premultiplyAlpha),n.Check.typeOf.bool("options.skipColorSpaceConversion",t.skipColorSpaceConversion),createImageBitmap(e,{imageOrientation:t.flipY?"flipY":"none",premultiplyAlpha:t.premultiplyAlpha?"premultiply":"none",colorSpaceConversion:t.skipColorSpaceConversion?"none":"default"})};const bn="undefined"==typeof XMLHttpRequest;function xn(e){if(e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT),this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._downloadPromise=void 0,this._dataError=void 0,this._addNewLeapSeconds=r.defaultValue(e.addNewLeapSeconds,!0),r.defined(e.data))An(this,e.data);else if(r.defined(e.url)){const t=hn.createIfNeeded(e.url),n=this;this._downloadPromise=t.fetchJson().then((function(e){An(n,e)})).catch((function(){n._dataError=`An error occurred while retrieving the EOP data from the URL ${t.url}.`}))}else An(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}function Sn(e,t){return St.compare(e.julianDate,t)}function An(e,t){if(!r.defined(t.columnNames))return void(e._dataError="Error in loaded EOP data: The columnNames property is required.");if(!r.defined(t.samples))return void(e._dataError="Error in loaded EOP data: The samples property is required.");const n=t.columnNames.indexOf("modifiedJulianDateUtc"),o=t.columnNames.indexOf("xPoleWanderRadians"),i=t.columnNames.indexOf("yPoleWanderRadians"),s=t.columnNames.indexOf("ut1MinusUtcSeconds"),a=t.columnNames.indexOf("xCelestialPoleOffsetRadians"),u=t.columnNames.indexOf("yCelestialPoleOffsetRadians"),c=t.columnNames.indexOf("taiMinusUtcSeconds");if(n<0||o<0||i<0||s<0||a<0||u<0||c<0)return void(e._dataError="Error in loaded EOP data: The columnNames property must include modifiedJulianDateUtc, xPoleWanderRadians, yPoleWanderRadians, ut1MinusUtcSeconds, xCelestialPoleOffsetRadians, yCelestialPoleOffsetRadians, and taiMinusUtcSeconds columns");const l=e._samples=t.samples,d=e._dates=[];let f;e._dateColumn=n,e._xPoleWanderRadiansColumn=o,e._yPoleWanderRadiansColumn=i,e._ut1MinusUtcSecondsColumn=s,e._xCelestialPoleOffsetRadiansColumn=a,e._yCelestialPoleOffsetRadiansColumn=u,e._taiMinusUtcSecondsColumn=c,e._columnCount=t.columnNames.length,e._lastIndex=void 0;const p=e._addNewLeapSeconds;for(let t=0,o=l.length;t<o;t+=e._columnCount){const e=l[t+n],o=l[t+c],i=new St(e+it.MODIFIED_JULIAN_DATE_DIFFERENCE,o,st.TAI);if(d.push(i),p){if(o!==f&&r.defined(f)){const e=St.leapSeconds,t=et(e,i,Sn);if(t<0){const n=new ot(i,o);e.splice(~t,0,n)}}f=o}}}function En(e,t,n,r,o){const i=n*r;o.xPoleWander=t[i+e._xPoleWanderRadiansColumn],o.yPoleWander=t[i+e._yPoleWanderRadiansColumn],o.xPoleOffset=t[i+e._xCelestialPoleOffsetRadiansColumn],o.yPoleOffset=t[i+e._yCelestialPoleOffsetRadiansColumn],o.ut1MinusUtc=t[i+e._ut1MinusUtcSecondsColumn]}function On(e,t,n){return t+e*(n-t)}function In(e,t,n,r,o,i,s){const a=e._columnCount;if(i>t.length-1)return s.xPoleWander=0,s.yPoleWander=0,s.xPoleOffset=0,s.yPoleOffset=0,s.ut1MinusUtc=0,s;const u=t[o],c=t[i];if(u.equals(c)||r.equals(u))return En(e,n,o,a,s),s;if(r.equals(c))return En(e,n,i,a,s),s;const l=St.secondsDifference(r,u)/St.secondsDifference(c,u),d=o*a,f=i*a;let p=n[d+e._ut1MinusUtcSecondsColumn],h=n[f+e._ut1MinusUtcSecondsColumn];const m=h-p;if(m>.5||m<-.5){const t=n[d+e._taiMinusUtcSecondsColumn],o=n[f+e._taiMinusUtcSecondsColumn];t!==o&&(c.equals(r)?p=h:h-=o-t)}return s.xPoleWander=On(l,n[d+e._xPoleWanderRadiansColumn],n[f+e._xPoleWanderRadiansColumn]),s.yPoleWander=On(l,n[d+e._yPoleWanderRadiansColumn],n[f+e._yPoleWanderRadiansColumn]),s.xPoleOffset=On(l,n[d+e._xCelestialPoleOffsetRadiansColumn],n[f+e._xCelestialPoleOffsetRadiansColumn]),s.yPoleOffset=On(l,n[d+e._yCelestialPoleOffsetRadiansColumn],n[f+e._yCelestialPoleOffsetRadiansColumn]),s.ut1MinusUtc=On(l,p,h),s}function Pn(e,t,n){this.heading=r.defaultValue(e,0),this.pitch=r.defaultValue(t,0),this.roll=r.defaultValue(n,0)}hn._Implementations.loadWithXhr=function(e,t,o,i,s,a,u){const c=vn.exec(e);if(null!==c)return void a.resolve(function(e,t){t=r.defaultValue(t,"");const n=e[1],o=!!e[2],i=e[3];let s,a;switch(t){case"":case"text":return Cn(o,i);case"arraybuffer":return _n(o,i);case"blob":return s=_n(o,i),new Blob([s],{type:n});case"document":return a=new DOMParser,a.parseFromString(Cn(o,i),n);case"json":return JSON.parse(Cn(o,i))}}(c,t));if(bn)return void function(e,t,r,o,i,s,a){const u=require("url").parse(e),c="https:"===u.protocol?require("https"):require("http"),l=require("zlib"),d={protocol:u.protocol,hostname:u.hostname,port:u.port,path:u.path,query:u.query,method:r,headers:i};c.request(d).on("response",(function(e){if(e.statusCode<200||e.statusCode>=300)return void s.reject(new Vt(e.statusCode,e,e.headers));const r=[];e.on("data",(function(e){r.push(e)})),e.on("end",(function(){const o=Buffer.concat(r);"gzip"===e.headers["content-encoding"]?l.gunzip(o,(function(e,r){e?s.reject(new n.RuntimeError("Error decompressing response.")):s.resolve(wn(r,t))})):s.resolve(wn(o,t))}))})).on("error",(function(e){s.reject(new Vt)})).end()}(e,t,o,0,s,a);const l=new XMLHttpRequest;if(sn.contains(e)&&(l.withCredentials=!0),l.open(o,e,!0),r.defined(u)&&r.defined(l.overrideMimeType)&&l.overrideMimeType(u),r.defined(s))for(const e in s)s.hasOwnProperty(e)&&l.setRequestHeader(e,s[e]);r.defined(t)&&(l.responseType=t);let d=!1;return"string"==typeof e&&(d=0===e.indexOf("file://")||"undefined"!=typeof window&&"file://"===window.location.origin),l.onload=function(){if((l.status<200||l.status>=300)&&(!d||0!==l.status))return void a.reject(new Vt(l.status,l.response,l.getAllResponseHeaders()));const e=l.response,i=l.responseType;if("HEAD"===o||"OPTIONS"===o){const e=l.getAllResponseHeaders().trim().split(/[\r\n]+/),t={};return e.forEach((function(e){const n=e.split(": "),r=n.shift();t[r]=n.join(": ")})),void a.resolve(t)}if(204===l.status)a.resolve();else if(!r.defined(e)||r.defined(t)&&i!==t)if("json"===t&&"string"==typeof e)try{a.resolve(JSON.parse(e))}catch(e){a.reject(e)}else(""===i||"document"===i)&&r.defined(l.responseXML)&&l.responseXML.hasChildNodes()?a.resolve(l.responseXML):""!==i&&"text"!==i||!r.defined(l.responseText)?a.reject(new n.RuntimeError("Invalid XMLHttpRequest response type.")):a.resolve(l.responseText);else a.resolve(e)},l.onerror=function(e){a.reject(new Vt)},l.send(i),l},hn._Implementations.loadAndExecuteScript=function(e,t,n){return function(e){const t=Z(),n=document.createElement("script");n.async=!0,n.src=e;const r=document.getElementsByTagName("head")[0];return n.onload=function(){n.onload=void 0,r.removeChild(n),t.resolve()},n.onerror=function(e){t.reject(e)},r.appendChild(n),t.promise}(e).catch((function(e){n.reject(e)}))},hn._DefaultImplementations={},hn._DefaultImplementations.createImage=hn._Implementations.createImage,hn._DefaultImplementations.loadWithXhr=hn._Implementations.loadWithXhr,hn._DefaultImplementations.loadAndExecuteScript=hn._Implementations.loadAndExecuteScript,hn.DEFAULT=Object.freeze(new hn({url:"undefined"==typeof document?"":document.location.href.split("?")[0]})),xn.NONE=Object.freeze({getPromiseToLoad:function(){return Promise.resolve()},compute:function(e,t){return r.defined(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new tt(0,0,0,0,0),t}}),xn.prototype.getPromiseToLoad=function(){return Promise.resolve(this._downloadPromise)},xn.prototype.compute=function(e,t){if(!r.defined(this._samples)){if(r.defined(this._dataError))throw new n.RuntimeError(this._dataError);return}if(r.defined(t)||(t=new tt(0,0,0,0,0)),0===this._samples.length)return t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0,t;const o=this._dates,i=this._lastIndex;let s=0,a=0;if(r.defined(i)){const n=o[i],u=o[i+1],c=St.lessThanOrEquals(n,e),l=!r.defined(u),d=l||St.greaterThanOrEquals(u,e);if(c&&d)return s=i,!l&&u.equals(e)&&++s,a=s+1,In(this,o,this._samples,e,s,a,t),t}let u=et(o,e,St.compare,this._dateColumn);return u>=0?(u<o.length-1&&o[u+1].equals(e)&&++u,s=u,a=u):(a=~u,s=a-1,s<0&&(s=0)),this._lastIndex=s,In(this,o,this._samples,e,s,a,t),t},Pn.fromQuaternion=function(e,t){r.defined(t)||(t=new Pn);const n=2*(e.w*e.y-e.z*e.x),i=1-2*(e.x*e.x+e.y*e.y),s=2*(e.w*e.x+e.y*e.z),a=1-2*(e.y*e.y+e.z*e.z),u=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(u,a),t.roll=Math.atan2(s,i),t.pitch=-o.CesiumMath.asinClamped(n),t},Pn.fromDegrees=function(e,t,n,i){return r.defined(i)||(i=new Pn),i.heading=e*o.CesiumMath.RADIANS_PER_DEGREE,i.pitch=t*o.CesiumMath.RADIANS_PER_DEGREE,i.roll=n*o.CesiumMath.RADIANS_PER_DEGREE,i},Pn.clone=function(e,t){if(r.defined(e))return r.defined(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new Pn(e.heading,e.pitch,e.roll)},Pn.equals=function(e,t){return e===t||r.defined(e)&&r.defined(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll},Pn.equalsEpsilon=function(e,t,n,i){return e===t||r.defined(e)&&r.defined(t)&&o.CesiumMath.equalsEpsilon(e.heading,t.heading,n,i)&&o.CesiumMath.equalsEpsilon(e.pitch,t.pitch,n,i)&&o.CesiumMath.equalsEpsilon(e.roll,t.roll,n,i)},Pn.prototype.clone=function(e){return Pn.clone(this,e)},Pn.prototype.equals=function(e){return Pn.equals(this,e)},Pn.prototype.equalsEpsilon=function(e,t,n){return Pn.equalsEpsilon(this,e,t,n)},Pn.prototype.toString=function(){return`(${this.heading}, ${this.pitch}, ${this.roll})`};const Rn=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;let Tn,qn,zn;function Mn(e){return"undefined"==typeof document?e:(r.defined(Tn)||(Tn=document.createElement("a")),Tn.href=e,Tn.href=Tn.href,Tn.href)}function Dn(){if(r.defined(qn))return qn;let e;return e="undefined"!=typeof CESIUM_BASE_URL?CESIUM_BASE_URL:"object"==typeof define&&r.defined(define.amd)&&!define.amd.toUrlUndefined&&r.defined(require.toUrl)?Tt("..",Fn("Core/buildModuleUrl.js")):function(){const e=document.getElementsByTagName("script");for(let t=0,n=e.length;t<n;++t){const n=e[t].getAttribute("src"),r=Rn.exec(n);if(null!==r)return r[1]}}(),qn=new hn({url:Mn(e)}),qn.appendForwardSlash(),qn}function Un(e){return Mn(require.toUrl(`../${e}`))}function kn(e){return Dn().getDerivedResource({url:e}).url}function Fn(e){r.defined(zn)||(zn="object"==typeof define&&r.defined(define.amd)&&!define.amd.toUrlUndefined&&r.defined(require.toUrl)?Un:kn);return zn(e)}function Nn(e,t,n){this.x=e,this.y=t,this.s=n}function jn(e){e=r.defaultValue(e,r.defaultValue.EMPTY_OBJECT),this._xysFileUrlTemplate=hn.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=r.defaultValue(e.interpolationOrder,9),this._sampleZeroJulianEphemerisDate=r.defaultValue(e.sampleZeroJulianEphemerisDate,2442396.5),this._sampleZeroDateTT=new St(this._sampleZeroJulianEphemerisDate,0,st.TAI),this._stepSizeDays=r.defaultValue(e.stepSizeDays,1),this._samplesPerXysFile=r.defaultValue(e.samplesPerXysFile,1e3),this._totalSamples=r.defaultValue(e.totalSamples,27426),this._samples=new Array(3*this._totalSamples),this._chunkDownloadsInProgress=[];const t=this._interpolationOrder,n=this._denominators=new Array(t+1),o=this._xTable=new Array(t+1),i=Math.pow(this._stepSizeDays,t);for(let e=0;e<=t;++e){n[e]=i,o[e]=e*this._stepSizeDays;for(let r=0;r<=t;++r)r!==e&&(n[e]*=e-r);n[e]=1/n[e]}this._work=new Array(t+1),this._coef=new Array(t+1)}Fn._cesiumScriptRegex=Rn,Fn._buildModuleUrlFromBaseUrl=kn,Fn._clearBaseResource=function(){qn=void 0},Fn.setBaseUrl=function(e){qn=hn.DEFAULT.getDerivedResource({url:e})},Fn.getCesiumBaseUrl=Dn;const Bn=new St(0,0,st.TAI);function Vn(e,t,n){const r=Bn;return r.dayNumber=t,r.secondsOfDay=n,St.daysDifference(r,e._sampleZeroDateTT)}function Ln(e,t){if(e._chunkDownloadsInProgress[t])return e._chunkDownloadsInProgress[t];const n=Z();let o;e._chunkDownloadsInProgress[t]=n;const i=e._xysFileUrlTemplate;return o=r.defined(i)?i.getDerivedResource({templateValues:{0:t}}):new hn({url:Fn(`Assets/IAU2006_XYS/IAU2006_XYS_${t}.json`)}),o.fetchJson().then((function(r){e._chunkDownloadsInProgress[t]=!1;const o=e._samples,i=r.samples,s=t*e._samplesPerXysFile*3;for(let e=0,t=i.length;e<t;++e)o[s+e]=i[e];n.resolve()})),n.promise}jn.prototype.preload=function(e,t,n,r){const o=Vn(this,e,t),i=Vn(this,n,r);let s=o/this._stepSizeDays-this._interpolationOrder/2|0;s<0&&(s=0);let a=i/this._stepSizeDays-this._interpolationOrder/2|0+this._interpolationOrder;a>=this._totalSamples&&(a=this._totalSamples-1);const u=s/this._samplesPerXysFile|0,c=a/this._samplesPerXysFile|0,l=[];for(let e=u;e<=c;++e)l.push(Ln(this,e));return Promise.all(l)},jn.prototype.computeXysRadians=function(e,t,n){const o=Vn(this,e,t);if(o<0)return;const i=o/this._stepSizeDays|0;if(i>=this._totalSamples)return;const s=this._interpolationOrder;let a=i-(s/2|0);a<0&&(a=0);let u=a+s;u>=this._totalSamples&&(u=this._totalSamples-1,a=u-s,a<0&&(a=0));let c=!1;const l=this._samples;if(r.defined(l[3*a])||(Ln(this,a/this._samplesPerXysFile|0),c=!0),r.defined(l[3*u])||(Ln(this,u/this._samplesPerXysFile|0),c=!0),c)return;r.defined(n)?(n.x=0,n.y=0,n.s=0):n=new Nn(0,0,0);const d=o-a*this._stepSizeDays,f=this._work,p=this._denominators,h=this._coef,m=this._xTable;let g,y;for(g=0;g<=s;++g)f[g]=d-m[g];for(g=0;g<=s;++g){for(h[g]=1,y=0;y<=s;++y)y!==g&&(h[g]*=f[y]);h[g]*=p[g];let e=3*(a+g);n.x+=h[g]*l[e++],n.y+=h[g]*l[e++],n.s+=h[g]*l[e]}return n};const Qn={},$n={up:{south:"east",north:"west",west:"south",east:"north"},down:{south:"west",north:"east",west:"north",east:"south"},south:{up:"west",down:"east",west:"down",east:"up"},north:{up:"east",down:"west",west:"up",east:"down"},west:{up:"north",down:"south",north:"down",south:"up"},east:{up:"south",down:"north",north:"up",south:"down"}},Wn={north:[-1,0,0],east:[0,1,0],up:[0,0,1],south:[1,0,0],west:[0,-1,0],down:[0,0,-1]},Hn={},Yn={east:new t.Cartesian3,north:new t.Cartesian3,up:new t.Cartesian3,west:new t.Cartesian3,south:new t.Cartesian3,down:new t.Cartesian3};let Zn=new t.Cartesian3,Gn=new t.Cartesian3,Jn=new t.Cartesian3;Qn.localFrameToFixedFrameGenerator=function(e,i){if(!$n.hasOwnProperty(e)||!$n[e].hasOwnProperty(i))throw new n.DeveloperError("firstAxis and secondAxis must be east, north, up, west, south or down.");const s=$n[e][i];let a;const u=e+i;return r.defined(Hn[u])?a=Hn[u]:(a=function(n,a,u){if(r.defined(u)||(u=new t.Matrix4),t.Cartesian3.equalsEpsilon(n,t.Cartesian3.ZERO,o.CesiumMath.EPSILON14))t.Cartesian3.unpack(Wn[e],0,Zn),t.Cartesian3.unpack(Wn[i],0,Gn),t.Cartesian3.unpack(Wn[s],0,Jn);else if(o.CesiumMath.equalsEpsilon(n.x,0,o.CesiumMath.EPSILON14)&&o.CesiumMath.equalsEpsilon(n.y,0,o.CesiumMath.EPSILON14)){const r=o.CesiumMath.sign(n.z);t.Cartesian3.unpack(Wn[e],0,Zn),"east"!==e&&"west"!==e&&t.Cartesian3.multiplyByScalar(Zn,r,Zn),t.Cartesian3.unpack(Wn[i],0,Gn),"east"!==i&&"west"!==i&&t.Cartesian3.multiplyByScalar(Gn,r,Gn),t.Cartesian3.unpack(Wn[s],0,Jn),"east"!==s&&"west"!==s&&t.Cartesian3.multiplyByScalar(Jn,r,Jn)}else{(a=r.defaultValue(a,t.Ellipsoid.WGS84)).geodeticSurfaceNormal(n,Yn.up);const o=Yn.up,u=Yn.east;u.x=-n.y,u.y=n.x,u.z=0,t.Cartesian3.normalize(u,Yn.east),t.Cartesian3.cross(o,u,Yn.north),t.Cartesian3.multiplyByScalar(Yn.up,-1,Yn.down),t.Cartesian3.multiplyByScalar(Yn.east,-1,Yn.west),t.Cartesian3.multiplyByScalar(Yn.north,-1,Yn.south),Zn=Yn[e],Gn=Yn[i],Jn=Yn[s]}return u[0]=Zn.x,u[1]=Zn.y,u[2]=Zn.z,u[3]=0,u[4]=Gn.x,u[5]=Gn.y,u[6]=Gn.z,u[7]=0,u[8]=Jn.x,u[9]=Jn.y,u[10]=Jn.z,u[11]=0,u[12]=n.x,u[13]=n.y,u[14]=n.z,u[15]=1,u},Hn[u]=a),a},Qn.eastNorthUpToFixedFrame=Qn.localFrameToFixedFrameGenerator("east","north"),Qn.northEastDownToFixedFrame=Qn.localFrameToFixedFrameGenerator("north","east"),Qn.northUpEastToFixedFrame=Qn.localFrameToFixedFrameGenerator("north","up"),Qn.northWestUpToFixedFrame=Qn.localFrameToFixedFrameGenerator("north","west");const Xn=new Oe,Kn=new t.Cartesian3(1,1,1),er=new t.Matrix4;Qn.headingPitchRollToFixedFrame=function(e,n,o,i,s){i=r.defaultValue(i,Qn.eastNorthUpToFixedFrame);const a=Oe.fromHeadingPitchRoll(n,Xn),u=t.Matrix4.fromTranslationQuaternionRotationScale(t.Cartesian3.ZERO,a,Kn,er);return s=i(e,o,s),t.Matrix4.multiply(s,u,s)};const tr=new t.Matrix4,nr=new t.Matrix3;Qn.headingPitchRollQuaternion=function(e,n,r,o,i){const s=Qn.headingPitchRollToFixedFrame(e,n,r,o,tr),a=t.Matrix4.getMatrix3(s,nr);return Oe.fromRotationMatrix(a,i)};const rr=new t.Cartesian3(1,1,1),or=new t.Cartesian3,ir=new t.Matrix4,sr=new t.Matrix4,ar=new t.Matrix3,ur=new Oe;Qn.fixedFrameToHeadingPitchRoll=function(e,n,o,i){n=r.defaultValue(n,t.Ellipsoid.WGS84),o=r.defaultValue(o,Qn.eastNorthUpToFixedFrame),r.defined(i)||(i=new Pn);const s=t.Matrix4.getTranslation(e,or);if(t.Cartesian3.equals(s,t.Cartesian3.ZERO))return i.heading=0,i.pitch=0,i.roll=0,i;let a=t.Matrix4.inverseTransformation(o(s,n,ir),ir),u=t.Matrix4.setScale(e,rr,sr);u=t.Matrix4.setTranslation(u,t.Cartesian3.ZERO,u),a=t.Matrix4.multiply(a,u,a);let c=Oe.fromRotationMatrix(t.Matrix4.getMatrix3(a,ar),ur);return c=Oe.normalize(c,c),Pn.fromQuaternion(c,i)};const cr=o.CesiumMath.TWO_PI/86400;let lr=new St;Qn.computeTemeToPseudoFixedMatrix=function(e,n){lr=St.addSeconds(e,-St.computeTaiMinusUtc(e),lr);const i=lr.dayNumber,s=lr.secondsOfDay;let a;const u=i-2451545;a=s>=43200?(u+.5)/it.DAYS_PER_JULIAN_CENTURY:(u-.5)/it.DAYS_PER_JULIAN_CENTURY;const c=(24110.54841+a*(8640184.812866+a*(.093104+-62e-7*a)))*cr%o.CesiumMath.TWO_PI+(72921158553e-15+11772758384668e-32*(i-2451545.5))*((s+.5*it.SECONDS_PER_DAY)%it.SECONDS_PER_DAY),l=Math.cos(c),d=Math.sin(c);return r.defined(n)?(n[0]=l,n[1]=-d,n[2]=0,n[3]=d,n[4]=l,n[5]=0,n[6]=0,n[7]=0,n[8]=1,n):new t.Matrix3(l,d,0,-d,l,0,0,0,1)},Qn.iau2006XysData=new jn,Qn.earthOrientationParameters=xn.NONE;const dr=32.184;Qn.preloadIcrfFixed=function(e){const t=e.start.dayNumber,n=e.start.secondsOfDay+dr,r=e.stop.dayNumber,o=e.stop.secondsOfDay+dr,i=Qn.iau2006XysData.preload(t,n,r,o),s=Qn.earthOrientationParameters.getPromiseToLoad();return Promise.all([i,s])},Qn.computeIcrfToFixedMatrix=function(e,n){r.defined(n)||(n=new t.Matrix3);const o=Qn.computeFixedToIcrfMatrix(e,n);if(r.defined(o))return t.Matrix3.transpose(o,n)};const fr=new Nn(0,0,0),pr=new tt(0,0,0,0,0,0),hr=new t.Matrix3,mr=new t.Matrix3;Qn.computeFixedToIcrfMatrix=function(e,n){r.defined(n)||(n=new t.Matrix3);const i=Qn.earthOrientationParameters.compute(e,pr);if(!r.defined(i))return;const s=e.dayNumber,a=e.secondsOfDay+dr,u=Qn.iau2006XysData.computeXysRadians(s,a,fr);if(!r.defined(u))return;const c=u.x+i.xPoleOffset,l=u.y+i.yPoleOffset,d=1/(1+Math.sqrt(1-c*c-l*l)),f=hr;f[0]=1-d*c*c,f[3]=-d*c*l,f[6]=c,f[1]=-d*c*l,f[4]=1-d*l*l,f[7]=l,f[2]=-c,f[5]=-l,f[8]=1-d*(c*c+l*l);const p=t.Matrix3.fromRotationZ(-u.s,mr),h=t.Matrix3.multiply(f,p,hr),m=e.dayNumber-2451545,g=(e.secondsOfDay-St.computeTaiMinusUtc(e)+i.ut1MinusUtc)/it.SECONDS_PER_DAY;let y=.779057273264+g+.00273781191135448*(m+g);y=y%1*o.CesiumMath.TWO_PI;const v=t.Matrix3.fromRotationZ(y,mr),C=t.Matrix3.multiply(h,v,hr),_=Math.cos(i.xPoleWander),w=Math.cos(i.yPoleWander),b=Math.sin(i.xPoleWander),x=Math.sin(i.yPoleWander);let S=s-2451545+a/it.SECONDS_PER_DAY;S/=36525;const A=-47e-6*S*o.CesiumMath.RADIANS_PER_DEGREE/3600,E=Math.cos(A),O=Math.sin(A),I=mr;return I[0]=_*E,I[1]=_*O,I[2]=b,I[3]=-w*O+x*b*E,I[4]=w*E+x*b*O,I[5]=-x*_,I[6]=-x*O-w*b*E,I[7]=x*E-w*b*O,I[8]=w*_,t.Matrix3.multiply(C,I,n)};const gr=new t.Cartesian4;Qn.pointToWindowCoordinates=function(e,t,n,r){return(r=Qn.pointToGLWindowCoordinates(e,t,n,r)).y=2*t[5]-r.y,r},Qn.pointToGLWindowCoordinates=function(e,n,o,i){r.defined(i)||(i=new t.Cartesian2);const s=gr;return t.Matrix4.multiplyByVector(e,t.Cartesian4.fromElements(o.x,o.y,o.z,1,s),s),t.Cartesian4.multiplyByScalar(s,1/s.w,s),t.Matrix4.multiplyByVector(n,s,s),t.Cartesian2.fromCartesian4(s,i)};const yr=new t.Cartesian3,vr=new t.Cartesian3,Cr=new t.Cartesian3;Qn.rotationMatrixFromPositionVelocity=function(e,n,i,s){const a=r.defaultValue(i,t.Ellipsoid.WGS84).geodeticSurfaceNormal(e,yr);let u=t.Cartesian3.cross(n,a,vr);t.Cartesian3.equalsEpsilon(u,t.Cartesian3.ZERO,o.CesiumMath.EPSILON6)&&(u=t.Cartesian3.clone(t.Cartesian3.UNIT_X,u));const c=t.Cartesian3.cross(u,n,Cr);return t.Cartesian3.normalize(c,c),t.Cartesian3.cross(n,c,u),t.Cartesian3.negate(u,u),t.Cartesian3.normalize(u,u),r.defined(s)||(s=new t.Matrix3),s[0]=n.x,s[1]=n.y,s[2]=n.z,s[3]=u.x,s[4]=u.y,s[5]=u.z,s[6]=c.x,s[7]=c.y,s[8]=c.z,s};const _r=new t.Matrix4(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1),wr=new t.Cartographic,br=new t.Cartesian3,xr=new t.Cartesian3,Sr=new t.Matrix3,Ar=new t.Matrix4,Er=new t.Matrix4;Qn.basisTo2D=function(e,n,r){const o=t.Matrix4.getTranslation(n,xr),i=e.ellipsoid,s=i.cartesianToCartographic(o,wr),a=e.project(s,br);t.Cartesian3.fromElements(a.z,a.x,a.y,a);const u=Qn.eastNorthUpToFixedFrame(o,i,Ar),c=t.Matrix4.inverseTransformation(u,Er),l=t.Matrix4.getMatrix3(n,Sr),d=t.Matrix4.multiplyByMatrix3(c,l,r);return t.Matrix4.multiply(_r,d,r),t.Matrix4.setTranslation(r,a,r),r},Qn.wgs84To2DModelMatrix=function(e,n,r){const o=e.ellipsoid,i=Qn.eastNorthUpToFixedFrame(n,o,Ar),s=t.Matrix4.inverseTransformation(i,Er),a=o.cartesianToCartographic(n,wr),u=e.project(a,br);t.Cartesian3.fromElements(u.z,u.x,u.y,u);const c=t.Matrix4.fromTranslation(u,Ar);return t.Matrix4.multiply(_r,s,r),t.Matrix4.multiply(c,r,r),r},e.BoundingSphere=l,e.FeatureDetection=Ee,e.GeographicProjection=a,e.Intersect=u,e.Interval=c,e.Quaternion=Oe,e.Resource=hn,e.Transforms=Qn,e.buildModuleUrl=Fn}));
|