define(["./defaultValue-69ee94f4","./Matrix2-671a840a","./ArcType-e1641d8d","./GeometryOffsetAttribute-4d39b441","./BoundingRectangle-3ad1eca3","./Transforms-b2d190a4","./RuntimeError-ac440aa5","./ComponentDatatype-a9820060","./EllipsoidGeodesic-b822d46f","./EllipsoidTangentPlane-8dba80f8","./GeometryAttribute-77f8362f","./GeometryInstance-8b77bc5a","./GeometryPipeline-1ece61ef","./IndexDatatype-1cbc8622","./PolygonGeometryLibrary-293cf9b0","./PolygonPipeline-2e659938","./VertexFormat-e68722dd","./PixelFormat-9ceadbf3","./WebGLConstants-f63312fc","./_commonjsHelpers-3aae1032-15991586","./combine-0259f56f","./AxisAlignedBoundingBox-41c092aa","./IntersectionTests-3c5a408d","./Plane-2cd3a9dd","./AttributeCompression-747df01a","./EncodedCartesian3-ed89131b","./arrayRemoveDuplicates-fe254feb","./EllipsoidRhumbLine-7fe7b64a","./GeometryAttributes-1b4134a9"],(function(e,t,o,i,n,r,a,s,l,c,u,p,m,y,g,d,h,f,b,_,P,x,C,w,T,I,A,E,v){"use strict";const G=new t.Cartographic,O=new t.Cartographic;function V(e,t,o,i){const n=i.cartesianToCartographic(e,G).height,r=i.cartesianToCartographic(t,O);r.height=n,i.cartographicToCartesian(r,t);const a=i.cartesianToCartographic(o,O);a.height=n-100,i.cartographicToCartesian(a,o)}const F=new n.BoundingRectangle,D=new t.Cartesian3,L=new t.Cartesian3,N=new t.Cartesian3,H=new t.Cartesian3,R=new t.Cartesian3,M=new t.Cartesian3;let S=new t.Cartesian3,B=new t.Cartesian3,k=new t.Cartesian3;const z=new t.Cartesian2,W=new t.Cartesian2,Y=new t.Cartesian3,U=new r.Quaternion,j=new t.Matrix3,Q=new t.Matrix3;function q(o){const n=o.vertexFormat,a=o.geometry,l=o.shadowVolume,c=a.attributes.position.values;let p=c.length;const m=o.wall,y=o.top||m,g=o.bottom||m;if(n.st||n.normal||n.tangent||n.bitangent||l){const e=o.boundingRectangle,i=o.tangentPlane,d=o.ellipsoid,h=o.stRotation,f=o.perPositionHeight,b=z;b.x=e.x,b.y=e.y;const _=n.st?new Float32Array(p/3*2):void 0;let P;n.normal&&(P=f&&y&&!m?a.attributes.normal.values:new Float32Array(p));const x=n.tangent?new Float32Array(p):void 0,C=n.bitangent?new Float32Array(p):void 0,w=l?new Float32Array(p):void 0;let T=0,I=0,A=L,E=N,v=H,G=!0,O=j,F=Q;if(0!==h){let e=r.Quaternion.fromAxisAngle(i._plane.normal,h,U);O=t.Matrix3.fromQuaternion(e,O),e=r.Quaternion.fromAxisAngle(i._plane.normal,-h,U),F=t.Matrix3.fromQuaternion(e,F)}else O=t.Matrix3.clone(t.Matrix3.IDENTITY,O),F=t.Matrix3.clone(t.Matrix3.IDENTITY,F);let q=0,K=0;y&&g&&(q=p/2,K=p/3,p/=2);for(let r=0;r
J.eastOverIDL-J.westOverIDL&&(c.west=J.westOverIDL,c.east=J.eastOverIDL,c.east>s.CesiumMath.PI&&(c.east=c.east-s.CesiumMath.TWO_PI),c.west>s.CesiumMath.PI&&(c.west=c.west-s.CesiumMath.TWO_PI)),c}const ee=new t.Cartographic;function te(e,t,o,i){const n=e.surfaceDistance,r=Math.ceil(n*t),a=r>0?n/(r-1):Number.POSITIVE_INFINITY;let l=0;for(let t=0;t