// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("exports ../../chunks/earcut ./Axis ./coordsUtils ./DoubleArray ./Indices ./polygonUtils ./meshUtils/deduplicate".split(" "),function(p,F,q,u,v,A,G,B){function H(a,c,d){if(1===a.length)return a[0];c=v.newDoubleArray(c);d=Array(d);let m=0,b=0,f=0;for(const k of a){for(a=0;ah-k);f=A.compactIndices(F.earcut(g,f,3));c.push({position:g,faces:f});d+=g.length;m+=f.length}b=H(c,d,m);a=Array.isArray(b.position)?B.deduplicate(b.position,3,{originalIndices:b.faces}):B.deduplicate(b.position.buffer,6,{originalIndices:b.faces});b.position=v.doubleArrayFrom(new Float64Array(a.buffer));b.faces=a.indices;return b};Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});