import{validation}from"../../Validation.js";import{inline}from"./tools.js";import{offset}from"@arcgis/core/geometry/geometryEngineAsync";class OffsetEngineTask{execute(e){var i=validation.exists("geometry",e.geometry),n=validation.number("distance",e.distance),e=(validation.string("joinType",e.joinType),offset(i,n,e.unit,e.joinType,e.bevelRatio,e.flattenError));return inline(e,function(e){return{geometry:e}})}}OffsetEngineTask.action="gcx:wf:arcgis::OffsetEngineTask",OffsetEngineTask.suite="gcx:wf:builtin";export{OffsetEngineTask};