define(["exports","./GeometryOffsetAttribute-718fa138","./Transforms-b51fdb37","./Rectangle-82621db8","./Check-24483042","./ComponentDatatype-1a100acd","./when-54335d57","./EllipseGeometryLibrary-a65cc329","./GeometryAttribute-02fdce7a","./GeometryAttributes-caa08d6c","./GeometryInstance-4247a2b3","./GeometryPipeline-6bfd5efb","./IndexDatatype-edb2f4d6","./Math-7a8129d6","./VertexFormat-81ec7207"],function(e,U,Q,W,t,J,q,B,Z,K,b,v,C,y,f){"use strict";var X=new W.Cartesian3,$=new W.Cartesian3,ee=new W.Cartesian3,te=new W.Cartesian3,re=new W.Cartesian2,ae=new Q.Matrix3,Y=new Q.Matrix3,ie=new Q.Quaternion,ne=new W.Cartesian3,oe=new W.Cartesian3,se=new W.Cartesian3,le=new W.Cartographic,ue=new W.Cartesian3,me=new W.Cartesian2,pe=new W.Cartesian2;function w(e,t,r){var a=t.vertexFormat,i=t.center,n=t.semiMajorAxis,o=t.semiMinorAxis,s=t.ellipsoid,l=t.stRotation,u=r?e.length/3*2:e.length/3,m=t.shadowVolume,p=a.st?new Float32Array(2*u):void 0,y=a.normal?new Float32Array(3*u):void 0,c=a.tangent?new Float32Array(3*u):void 0,d=a.bitangent?new Float32Array(3*u):void 0,f=m?new Float32Array(3*u):void 0,A=0,h=ne,x=oe,g=se,_=new Q.GeographicProjection(s),b=_.project(s.cartesianToCartographic(i,le),ue),v=s.scaleToGeodeticSurface(i,X);s.geodeticSurfaceNormal(v,v);var C=ae,w=Y;if(0!==l){var M=Q.Quaternion.fromAxisAngle(v,l,ie);C=Q.Matrix3.fromQuaternion(M,C),M=Q.Quaternion.fromAxisAngle(v,-l,ie),w=Q.Matrix3.fromQuaternion(M,w)}else C=Q.Matrix3.clone(Q.Matrix3.IDENTITY,C),w=Q.Matrix3.clone(Q.Matrix3.IDENTITY,w);for(var E=W.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,me),I=W.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,pe),T=e.length,G=r?T:0,N=G/3*2,P=0;Py.CesiumMath.PI&&(p.north=0