define(["./arrayRemoveDuplicates-398390b2","./BoundingRectangle-735493ea","./Transforms-36e0c57f","./Matrix2-7f5bbd54","./Matrix3-293ae7b3","./ComponentDatatype-985dcc38","./CoplanarPolygonGeometryLibrary-66418079","./defaultValue-865ac579","./GeometryAttribute-df0cc42c","./GeometryAttributes-75794475","./GeometryInstance-0f6ca825","./GeometryPipeline-d395f1f6","./IndexDatatype-16f6b4a1","./Math-76ce6367","./PolygonGeometryLibrary-90e667ef","./PolygonPipeline-8986342f","./VertexFormat-20b5279f","./combine-5e110d09","./RuntimeError-9e0724f9","./WebGLConstants-258cf3a0","./OrientedBoundingBox-df5dc87a","./EllipsoidTangentPlane-7a62129b","./AxisAlignedBoundingBox-6806540a","./IntersectionTests-3a8233fc","./Plane-a7f8aee2","./AttributeCompression-e34a188e","./EncodedCartesian3-d8932345","./ArcType-68098157","./EllipsoidRhumbLine-2feb918c"],(function(e,t,n,o,a,r,i,s,l,c,y,p,u,d,m,g,f,C,h,x,b,P,A,L,w,G,F,v,E){"use strict";const _=new a.Cartesian3,T=new t.BoundingRectangle,k=new o.Cartesian2,D=new o.Cartesian2,V=new a.Cartesian3,R=new a.Cartesian3,H=new a.Cartesian3,I=new a.Cartesian3,M=new a.Cartesian3,B=new a.Cartesian3,O=new n.Quaternion,z=new a.Matrix3,S=new a.Matrix3,N=new a.Cartesian3;function Q(e,t,i,y,p,m,f,C,h){const x=e.positions;let b=g.PolygonPipeline.triangulate(e.positions2D,e.holes);b.length<3&&(b=[0,1,2]);const P=u.IndexDatatype.createTypedArray(x.length,b.length);P.set(b);let A=z;if(0!==y){let e=n.Quaternion.fromAxisAngle(f,y,O);if(A=a.Matrix3.fromQuaternion(e,A),t.tangent||t.bitangent){e=n.Quaternion.fromAxisAngle(f,-y,O);const o=a.Matrix3.fromQuaternion(e,S);C=a.Cartesian3.normalize(a.Matrix3.multiplyByVector(o,C,C),C),t.bitangent&&(h=a.Cartesian3.normalize(a.Cartesian3.cross(f,C,h),h))}}else A=a.Matrix3.clone(a.Matrix3.IDENTITY,A);const L=D;t.st&&(L.x=i.x,L.y=i.y);const w=x.length,G=3*w,F=new Float64Array(G),v=t.normal?new Float32Array(G):void 0,E=t.tangent?new Float32Array(G):void 0,T=t.bitangent?new Float32Array(G):void 0,V=t.st?new Float32Array(2*w):void 0;let R=0,H=0,I=0,M=0,B=0;for(let e=0;e