import{validation}from"../../Validation.js";import{inline}from"./tools.js";import{generalize}from"@arcgis/core/geometry/geometryEngineAsync";class GeneralizeEngineTask{execute(e){var i=validation.exists("geometry",e.geometry),n=validation.exists("maxDeviation",e.maxDeviation),e=generalize(i,n,e.removeDegenerateParts,e.unit);return inline(e,function(e){return{geometry:e}})}}GeneralizeEngineTask.action="gcx:wf:arcgis::GeneralizeEngineTask",GeneralizeEngineTask.suite="gcx:wf:builtin";export{GeneralizeEngineTask};