define(["require","exports","tslib","../../deps/bluebird_fork","../../Validation","./tools","esri/geometry/geometryEngineAsync"],function(e,t,r,i,n,o,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i=r.__importDefault(i);a.prototype.execute=function(e){var t=o.featuresToArray(n.validation.exists("features",e.features)),e=n.validation.boolean("union",e.union,!1),t=t.map(function(e){return e.geometry}),t=e?u.union(t):i.default.resolve(t);return o.inline(t,function(e){e=e instanceof Array?e:[e];return{geometry:e[0],geometries:e}})},a.action="gcx:wf:arcgis::GetFeatureGeometries",a.suite="gcx:wf:builtin",r=a;function a(){}t.GetFeatureGeometries=r});