!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","../../Validation","./tools","esri/geometry/geometryEngineAsync","esri/geometry/Polygon"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("tslib"),n=e("../../Validation"),i=e("./tools"),r=e("esri/geometry/geometryEngineAsync"),a=o.__importDefault(e("esri/geometry/Polygon")),e=(g.prototype.execute=function(e){var t=n.validation.exists("geometry",e.geometry),o=n.validation.number("angle",e.angle,n.validation.never),t=i.polygonFromExtent(t,a.default),e=r.rotate(t,o,e.origin);return i.inline(e,function(e){return{geometry:e}})},g.action="gcx:wf:arcgis::RotateEngineTask",g.suite="gcx:wf:builtin",g);function g(){}t.RotateEngineTask=e});