!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","../../Validation","./MapProvider","../../Hooks","./tools"],e)}(function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("tslib"),n=e("../../Validation"),t=e("./MapProvider"),o=e("../../Hooks"),l=e("./tools"),t=(a.prototype.execute=function(e,r,i){var t=n.validation.id("layerId",e.layerId,n.validation.never),o=n.validation.id("sublayerId",e.sublayerId,void 0),a=i.create();return l.inline(a.load(),function(){var r=a.findLayer(t);return null!=r?l.inline(r.load(),function(){if(void 0===o)return{layer:r.layer};var e=a.findLayer(o,r.layer);return null!=e?{layer:e.layer,sublayer:e.sublayer}:{}}):{}})},a.action="gcx:wf:arcgis::GetLayer",a.suite="gcx:wf:builtin",i.__decorate([o.activate(t.MapProvider)],a));function a(){}r.GetLayer=t});