define(["require","exports","../../Validation","./tools","esri/geometry/geometryEngineAsync"],function(e,t,r,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(a.prototype.executeUsing=function(e,t,i){return e?o.symmetricDifference(t,i):o.difference(t,i)},a.prototype.execute=function(e){var t=r.validation.array("geometry",e.geometry,r.validation.never),i=r.validation.exists("subtractor",e.subtractor),e=r.validation.boolean("symmetric",e.symmetric,!1),i=this.executeUsing(e,t,i);return n.inline(i,function(e){e=Array.isArray(e)?e:[e];return{geometry:e[0],results:e}})},a.action="gcx:wf:arcgis::DifferenceEngineTask",a.suite="gcx:wf:builtin",a);function a(){}t.DifferenceEngineTask=i});