define(["./when-ca391574","./Cartesian2-5b63e672","./ArcType-2b58731c","./arrayRemoveDuplicates-fc9e255d","./Transforms-5295b227","./Color-821fa62a","./ComponentDatatype-8f71e605","./Check-64f87f7d","./GeometryAttribute-7ef2d452","./GeometryAttributes-a356f820","./IndexDatatype-4e56bcfa","./Math-b53708b3","./PolylinePipeline-00f5e064","./VertexFormat-63b3c6da","./RuntimeError-19cb26ba","./WebGLConstants-95ceb4e9","./EllipsoidGeodesic-bbea0b0a","./EllipsoidRhumbLine-21029cef","./IntersectionTests-f5111308","./Plane-99b2becd"],function(Y,q,z,J,j,K,Q,e,X,Z,$,ee,te,y,t,r,a,o,n,i){"use strict";var re=[];function m(e){var t=(e=Y.defaultValue(e,Y.defaultValue.EMPTY_OBJECT)).positions,r=e.colors,a=Y.defaultValue(e.width,1),o=Y.defaultValue(e.colorsPerVertex,!1);this._positions=t,this._colors=r,this._width=a,this._colorsPerVertex=o,this._vertexFormat=y.VertexFormat.clone(Y.defaultValue(e.vertexFormat,y.VertexFormat.DEFAULT)),this._arcType=Y.defaultValue(e.arcType,z.ArcType.GEODESIC),this._granularity=Y.defaultValue(e.granularity,ee.CesiumMath.RADIANS_PER_DEGREE),this._ellipsoid=q.Ellipsoid.clone(Y.defaultValue(e.ellipsoid,q.Ellipsoid.WGS84)),this._workerName="createPolylineGeometry";t=1+t.length*q.Cartesian3.packedLength;t+=Y.defined(r)?1+r.length*K.Color.packedLength:1,this.packedLength=t+q.Ellipsoid.packedLength+y.VertexFormat.packedLength+4}m.pack=function(e,t,r){var a;r=Y.defaultValue(r,0);var o=e._positions,n=o.length;for(t[r++]=n,a=0;a