// 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 ../../core/quantityUtils ../../core/unitUtils ../../chunks/earcut ../../chunks/vec32 ../../core/libs/gl-matrix-2/factories/vec3f64 ../../geometry/projection/projectVectorToVector ../../geometry/support/plane ../../geometry/support/triangle ./measurementUtils".split(" "),function(h,A,B,x,r,u,C,t,D,E){function v(a,e,l=a.hasZ){const f=E.computeEuclideanMeasurementSR(a.spatialReference),m=B.areaUnitFromSpatialReference(f);if(null==m)return null;let n=0;for(const y of a.rings){var c=y.length; if(3>c)continue;const {positionsWorldCoords:b}=e;for(;b.lengthg.length?g=!1:(r.set(p,g[0],g[1],l?g[2]||0:0),g=!0);if(!g||!C.projectVectorToVector(p,a.spatialReference,b[q],f))return null;r.scaleAndAdd(d,d,b[q],k)}p=t.fromPoints(b[0],b[1],d,t.wrap());if(0!==r.squaredLength(t.getNormal(p))){for(k=0;k