define(["./when-229515d6","./Matrix2-f2da41d4","./ArcType-1da7fdca","./Transforms-7cd3197b","./Color-d2414093","./ComponentDatatype-17b06483","./RuntimeError-ffe03243","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./IndexDatatype-b10faa0b","./PolylinePipeline-a3ba6f24","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./EllipsoidGeodesic-43ba18de","./EllipsoidRhumbLine-afd6cd20","./IntersectionTests-1b8a3cb9","./Plane-0421a8be"],(function(e,o,r,t,a,l,i,n,s,p,d,y,f,c,u,h,C){"use strict";function T(e,o,r,t,l,i,n){var s,p=d.PolylinePipeline.numberOfPoints(e,o,l),y=r.red,f=r.green,c=r.blue,u=r.alpha,h=t.red,C=t.green,T=t.blue,g=t.alpha;if(a.Color.equals(r,t)){for(s=0;s0?new Array(n):void 0;for(i=0;i0&&(o.Cartesian3.pack(W,f,F),F+=3,h=g[y-1],u[H++]=a.Color.floatToByte(h.red),u[H++]=a.Color.floatToByte(h.green),u[H++]=a.Color.floatToByte(h.blue),u[H++]=a.Color.floatToByte(h.alpha)),k&&y===G-1)break;o.Cartesian3.pack(W,f,F),F+=3,e.defined(g)&&(h=g[y],u[H++]=a.Color.floatToByte(h.red),u[H++]=a.Color.floatToByte(h.green),u[H++]=a.Color.floatToByte(h.blue),u[H++]=a.Color.floatToByte(h.alpha))}}var Y=new s.GeometryAttributes;Y.position=new n.GeometryAttribute({componentDatatype:l.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:f}),e.defined(g)&&(Y.color=new n.GeometryAttribute({componentDatatype:l.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,values:u,normalize:!0}));var q=2*((c=f.length/3)-1),z=p.IndexDatatype.createTypedArray(c,q),J=0;for(y=0;y