/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{isSome as e}from"../core/arrayUtils.js";import{convertToSpatialReferenceUnit as r}from"../core/units.js";import{execute as t,executeMany as o,supportsCurves as s}from"../geometry/operators/gx/operatorGeneralize.js";import{getSpatialReference as a,toGeometry as n,fromGeometry as p}from"../geometry/operators/support/apiConverter.js";function u(e,o,s={}){const{removeDegenerateParts:u=!1,unit:i}=s,m=a(e);return i&&(o=r(o,i,m)),n(t(p(e),o,u),m)}function i(t,s,u={}){const{removeDegenerateParts:i=!1,unit:m}=u,c=t.map(p),f=a(t);return m&&(s=r(s,m,f)),o(c,s,i).map(e=>n(e,f)).filter(e)}const m=s(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:u,executeMany:i,supportsCurves:m},Symbol.toStringTag,{value:"Module"}));export{i as a,u as e,c as g,m as s};
