define(["exports","./Check-24483042","./when-54335d57","./Math-d6182036"],function(e,t,h,r){"use strict";var l=r.CesiumMath.EPSILON10;e.arrayRemoveDuplicates=function(e,t,r){if(h.defined(e)){r=h.defaultValue(r,!1);var n,i,f,u=e.length;if(u<2)return e;for(n=1;n<u&&!t(i=e[n-1],f=e[n],l);++n);if(n===u)return r&&t(e[0],e[e.length-1],l)?e.slice(1):e;for(var a=e.slice(0,n);n<u;++n)t(i,f=e[n],l)||(a.push(f),i=f);return r&&1<a.length&&t(a[0],a[a.length-1],l)&&a.shift(),a}}});
