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