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