!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","../../Errors","../../Validation","./tools"],e)}(function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o=e("../../Errors"),a=e("../../Validation"),u=e("./tools"),e=(r.prototype.execute=function(e,i){var r=a.validation.string("url",e.url,a.validation.never),t=a.validation.number("timeout",e.timeout,void 0),n={};e.dynamicLayerDefinition?n.layer=e.dynamicLayerDefinition:e.source&&(n.layer={source:e.source});t=u.fetch(r,n,t,i.cancellationToken.signal);return u.schedulePromiseCancellation(i,t),u.inline(t,function(e){if(!e.fields)throw new o.GenericActivityError('Error running the "Get Feature Layer Info" activity. The response did not include the required "fields" property.');return{layerInfo:e}})},r.action="gcx:wf:arcgis::GetFeatureLayerInfo",r.suite="gcx:wf:builtin",r);function r(){}i.GetFeatureLayerInfo=e});