import{__decorate}from"tslib";import{validation}from"../../Validation.js";import{inline}from"./tools.js";import{MapProvider}from"./MapProvider.js";import{activate}from"../../Hooks.js";import{extendedSpatialReferenceInfo}from"@arcgis/core/geometry/geometryEngineAsync";let ExtendedSpatialReferenceInfoEngineTask=class{execute(e,n,t){e=validation.exists("spatialReference",e.spatialReference),e=extendedSpatialReferenceInfo(t.getOutSR(e));return inline(e,function(e){return{spatialReference:e}})}};ExtendedSpatialReferenceInfoEngineTask.action="gcx:wf:arcgis::ExtendedSpatialReferenceInfoEngineTask",ExtendedSpatialReferenceInfoEngineTask.suite="gcx:wf:builtin",ExtendedSpatialReferenceInfoEngineTask=__decorate([activate(MapProvider)],ExtendedSpatialReferenceInfoEngineTask);export{ExtendedSpatialReferenceInfoEngineTask};