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