define(["exports","./arrayRemoveDuplicates-80a91d16","./Matrix2-c6c16658","./when-4bbc8319","./ComponentDatatype-3d0a0aac","./PolylinePipeline-013902ec"],(function(e,t,i,n,o,r){"use strict";const a={};function s(e,t){return o.CesiumMath.equalsEpsilon(e.latitude,t.latitude,o.CesiumMath.EPSILON10)&&o.CesiumMath.equalsEpsilon(e.longitude,t.longitude,o.CesiumMath.EPSILON10)}const l=new i.Cartographic,h=new i.Cartographic;const c=new Array(2),g=new Array(2),p={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};a.computePositions=function(e,a,u,d,y,m){const P=function(e,o,r,a){const c=(o=t.arrayRemoveDuplicates(o,i.Cartesian3.equalsEpsilon)).length;if(c<2)return;const g=n.defined(a),p=n.defined(r),u=new Array(c),d=new Array(c),y=new Array(c),m=o[0];u[0]=m;const P=e.cartesianToCartographic(m,l);p&&(P.height=r[0]),d[0]=P.height,y[0]=g?a[0]:0;let f=d[0]===y[0],A=1;for(let t=1;t