import{validation}from"../../Validation.js";import{featuresToArray,extentOf}from"./tools.js";class GetFeatureSetExtent{execute(e,t){const r=featuresToArray(validation.exists("featureSet",e.features));e=r.map(e=>e.geometry),e=extentOf(e);if(void 0===e)return{};{const a=e;return{extent:a,center:a.center||a.getCenter()}}}}GetFeatureSetExtent.action="gcx:wf:arcgis::GetFeatureSetExtent",GetFeatureSetExtent.suite="gcx:wf:builtin";export{GetFeatureSetExtent};