/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.96.6 * * Copyright 2011-2022 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. */ define(["exports","./RuntimeError-a977b8e0","./defaultValue-028a8a27","./ComponentDatatype-438cad2a"],(function(e,n,t,i){"use strict";const d=i.CesiumMath.EPSILON10;function u(e,i,u,a){if(n.Check.defined("equalsEpsilon",i),!t.defined(e))return;u=t.defaultValue(u,!1);const f=t.defined(a),s=e.length;if(s<2)return e;let l,r,c,o=e[0],p=0,h=-1;for(l=1;l<s;++l)r=e[l],i(o,r,d)?(t.defined(c)||(c=e.slice(0,l),p=l-1,h=0),f&&a.push(l)):(t.defined(c)&&(c.push(r),p=l,f&&(h=a.length)),o=r);return u&&i(e[0],e[s-1],d)&&(f&&(t.defined(c)?a.splice(h,0,p):a.push(s-1)),t.defined(c)?c.length-=1:c=e.slice(0,-1)),t.defined(c)?c:e}e.arrayRemoveDuplicates=u}));