!function(i){"object"==typeof module&&"object"==typeof module.exports?i(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","esri/kernel"],i)}(function(i,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,e,o,s=i("esri/kernel");function t(i){var r=null,i=(i="string"==typeof(i=void 0===i?s.version:i)?i:String(i)).match(/^\s*(\d+)\.(\d+)/);return r=i?{majorVersion:parseInt(i[1],10),minorVersion:parseInt(i[2],10)}:r}(i=n=r.ArcGisApiVersion||(r.ArcGisApiVersion={}))[i.Unknown=0]="Unknown",i[i.v3=1]="v3",i[i.v4=2]="v4",r.isArcGisApiVersionAtLeast=function(i){var r,n=(r=i,n=null,i=e=e||t(),r=t(r),i&&r?(r.majorVersion!==i.majorVersion?n=i.majorVersion<r.majorVersion?-1:1:r.minorVersion!==i.minorVersion&&(n=i.minorVersion<r.minorVersion?-1:1),n=n||0):n);return null!==n&&-1<n},r.arcGisApiVersion="4."===(o=s.version.substr(0,2))?n.v4:"3."===o?n.v3:n.Unknown,r.isArcGisApiVersion3x=r.arcGisApiVersion===n.v3,r.isArcGisApiVersion4x=r.arcGisApiVersion===n.v4,r.isUnknownArcGisApiVersion=r.arcGisApiVersion===n.Unknown});