define(["require","exports","../../Validation","./tools","esri/geometry/geometryEngineAsync"],function(e,t,i,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(s.prototype.execute=function(e){var t=i.validation.exists("geometry",e.geometry),e=i.validation.exists("point",e.point),e=o.nearestCoordinate(t,e);return n.inline(e,function(e){return{point:e.coordinate,distance:e.distance,side:e.isRightSide?"right":"left",index:e.vertexIndex,empty:e.isEmpty}})},s.action="gcx:wf:arcgis::NearestCoordinateEngineTask",s.suite="gcx:wf:builtin",s);function s(){}t.NearestCoordinateEngineTask=r});