define(["require","exports","tslib","./esriDelegate!esri/geometry/SpatialReference","../../Validation","./tools","esri/tasks/GeometryService"],function(e,i,n,s,l,c,d){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),d=n.__importDefault(d);o.prototype.execute=function(e,i){var n=l.validation.string("url",e.url,l.validation.never),o=l.validation.array("strings",e.strings,l.validation.never),t=l.validation.exists("spatialReference",e.spatialReference),r=l.validation.string("conversionType",e.conversionType,l.validation.never),a="object"==typeof t?t:void 0;"number"==typeof t&&(a=new s.SpatialReference({wkid:t}));r={strings:o,sr:a="string"==typeof t?new s.SpatialReference({wkt:t}):a,conversionType:r};null!==e.conversionMode&&void 0!==e.conversionMode&&(r.conversionMode=e.conversionMode);e=new d.default(n),n=c.isAbortable(i.cancellationToken)?{signal:i.cancellationToken.signal}:void 0,n=e.fromGeoCoordinateString(r,n);return c.schedulePromiseCancellation(i,n),c.inline(n,function(e){return{coordinates:e}})},o.action="gcx:wf:arcgis::FromGeoCoordinateStringServiceTask",o.suite="gcx:wf:builtin",n=o;function o(){}i.FromGeoCoordinateStringServiceTask=n});