{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/layers/ImageryLayer.js","webpack:///./node_modules/arcgis-js-api/layers/mixins/ArcGISImageService.js","webpack:///./node_modules/arcgis-js-api/layers/support/RasterJobHandler.js","webpack:///./node_modules/arcgis-js-api/tasks/support/ImageServiceIdentifyResult.js","webpack:///./node_modules/arcgis-js-api/rest/imageServiceIdentify.js","webpack:///./node_modules/arcgis-js-api/tasks/support/ImageServiceIdentifyParameters.js","webpack:///./node_modules/arcgis-js-api/layers/support/MosaicRule.js","webpack:///./node_modules/arcgis-js-api/layers/support/ExportImageServiceParameters.js","webpack:///./node_modules/arcgis-js-api/layers/support/DimensionalDefinition.js","webpack:///./node_modules/arcgis-js-api/tasks/ImageServiceIdentifyTask.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAO,CAAC,2BAAkB,CAAC,2BAAe,CAAC,2BAAgC,CAAC,2BAAsB,CAAC,2BAAoC,CAAC,2BAAS,CAAC,2BAA6B,CAAC,2BAAwB,CAAC,2BAAqB,CAAC,2BAA2B,CAAC,2BAAsB,CAAC,2BAA2B,CAAC,2BAA0B,CAAC,2BAAwB,CAAC,2BAA4B,CAAC,2BAAuB,CAAC,mCAAE,gDAAgD,aAAa,mBAAmB,aAAa,iBAAiB,mBAAmB,sBAAsB,4BAA4B,wJAAwJ,oEAAoE,qCAAqC,MAAM,MAAM,8BAA8B,uCAAuC,qDAAqD,iCAAiC,qBAAqB,0BAA0B,cAAc,0BAA0B,oBAAoB,uDAAuD,8EAA8E,iEAAiE,2DAA2D,eAAe,kCAAkC,+BAA+B,8CAA8C,yDAAyD,uOAAuO,cAAc,yFAAyF,gBAAgB,WAAW,KAAK,kCAAkC,mEAAmE,8BAA8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,kGAAkG,MAAM,UAAU,oFAAoF,kBAAkB,MAAM,cAAc,QAAQ,iBAAiB,gHAAgH,MAAM,UAAU,6DAA6D,MAAM,UAAU,2IAA2I,gVAAgV,yDAAyD,kEAAkE,UAAU,4DAA4D,2FAA2F,UAAU,uHAAuH,gBAAgB,iCAAiC;AAAA,oGAAE,C;;;;;;;ACxBv8K;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAO,CAAC,2BAAwB,CAAC,2BAAiB,CAAC,2BAAuC,CAAC,2BAAuC,CAAC,mCAAE,wBAAwB,aAAa,mBAAmB,cAAc,2BAA2B,2EAA2E,MAAM,yDAAyD,cAAc,iHAAiH,EAAE,2BAA2B,kBAAkB,UAAU,gEAAgE,kBAAkB,UAAU,iEAAiE,wGAAwG,UAAU,0DAA0D,mBAAmB,UAAU,+GAA+G,gBAAgB;AAAA,oGAAE,C;;;;;;;ACxB3iC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAO,CAAC,2BAAoC,CAAC,2BAA8B,CAAC,2BAAQ,CAAC,mCAAE,sBAAsB,aAAa,mBAAmB,aAAa,+CAA+C,0DAA0D,4CAA4C,uEAAuE,IAAI;AAAA,oGAAE,C","file":"js/chunk-b13436d2.efaa28ff.js","sourcesContent":["// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../PopupTemplate\",\"../core/maybe\",\"../core/MultiOriginJSONSupport\",\"../core/promiseUtils\",\"../core/accessorSupport/decorators\",\"./Layer\",\"./mixins/ArcGISImageService\",\"./mixins/ArcGISService\",\"./mixins/BlendLayer\",\"./mixins/OperationalLayer\",\"./mixins/PortalLayer\",\"./mixins/RefreshableLayer\",\"./mixins/ScaleRangeLayer\",\"./mixins/TemporalLayer\",\"./support/commonProperties\",\"../support/popupUtils\"],(function(e,r,t,a,i,o,p,n,s,l,c,y,d,u,m,v,g,f,S){\"use strict\";return function(e){function r(){for(var r=[],t=0;t0)&&(\"esriImageServiceDataTypeVector-UV\"===this.serviceDataType||\"esriImageServiceDataTypeVector-MagDir\"===this.serviceDataType));var n=new Set;o&&(n.add(\"raster.itempixelvalue\"),p&&n.add(\"raster.magnitude\").add(\"raster.direction\"));for(var s=0,l=r;s-1||i.add(c.name)}return S.createPopupTemplate({fields:r,title:a},t.__assign(t.__assign({},e),{visibleFieldNames:i}))},r.prototype.redraw=function(){this.emit(\"redraw\")},t.__decorate([n.property(f.legendEnabled)],r.prototype,\"legendEnabled\",void 0),t.__decorate([n.property({type:[\"show\",\"hide\"]})],r.prototype,\"listMode\",void 0),t.__decorate([n.property({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:function(){return{enabled:!1}}}}})],r.prototype,\"isReference\",void 0),t.__decorate([n.property({type:[\"ArcGISImageServiceLayer\"],json:{origins:{\"web-map\":{type:[\"ArcGISImageServiceLayer\",\"ArcGISImageServiceVectorLayer\"],read:!1,write:{target:\"layerType\",ignoreOrigin:!0}}}}})],r.prototype,\"operationalLayerType\",void 0),t.__decorate([n.writer(\"web-map\",\"operationalLayerType\")],r.prototype,\"writeOperationalLayerType\",null),t.__decorate([n.property(f.popupEnabled)],r.prototype,\"popupEnabled\",void 0),t.__decorate([n.property({type:a,json:{read:{source:\"popupInfo\"},write:{target:\"popupInfo\"}}})],r.prototype,\"popupTemplate\",void 0),t.__decorate([n.property({readOnly:!0,dependsOn:[\"fields\",\"title\"]})],r.prototype,\"defaultPopupTemplate\",null),t.__decorate([n.property({readOnly:!0,json:{read:!1}})],r.prototype,\"type\",void 0),r=t.__decorate([n.subclass(\"esri.layers.ImageryLayer\")],r)}(y.BlendLayer(g.TemporalLayer(m.RefreshableLayer(v.ScaleRangeLayer(d.OperationalLayer(u.PortalLayer(l.ArcGISImageService(c.ArcGISService(o.MultiOriginJSONMixin(s))))))))))}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../geometry\",\"../../Graphic\",\"../../rasterRenderers\",\"../../request\",\"../../core/Error\",\"../../core/jsonMap\",\"../../core/lang\",\"../../core/Logger\",\"../../core/maybe\",\"../../core/promiseUtils\",\"../../core/SetUtils\",\"../../core/urlUtils\",\"../../core/accessorSupport/decorators\",\"../../core/accessorSupport/ensureType\",\"../../core/accessorSupport/decorators/property\",\"../support/commonProperties\",\"../support/DimensionalDefinition\",\"../support/ExportImageServiceParameters\",\"../support/Field\",\"../support/FieldsIndex\",\"../support/imageryRendererUtils\",\"../support/MosaicRule\",\"../support/PixelBlock\",\"../support/RasterFunction\",\"../support/RasterInfo\",\"../support/RasterJobHandler\",\"../support/rasterFormats/RasterCodec\",\"../../renderers/support/rasterRendererHelper\",\"../../renderers/support/RasterSymbolizer\",\"../../tasks/ImageServiceIdentifyTask\",\"../../tasks/QueryTask\",\"../../tasks/support/FeatureSet\",\"../../tasks/support/ImageServiceIdentifyParameters\",\"../../tasks/support/Query\"],(function(e,t,r,i,n,a,o,s,l,u,p,c,d,f,m,h,y,g,_,v,b,R,x,I,S,w,O,P,N,D,F,T,J,C,V,M,j){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.ArcGISImageService=void 0;var q=p.getLogger(\"esri.layers.mixins.ArcGISImageService\"),z=l.strict()({RSP_NearestNeighbor:\"nearest\",RSP_BilinearInterpolation:\"bilinear\",RSP_CubicConvolution:\"cubic\",RSP_Majority:\"majority\"}),A=l.strict()({esriNoDataMatchAny:\"any\",esriNoDataMatchAll:\"all\"}),E=l.strict()({U1:\"u1\",U2:\"u2\",U4:\"u4\",U8:\"u8\",S8:\"s8\",U16:\"u16\",S16:\"s16\",U32:\"u32\",S32:\"s32\",F32:\"f32\",F64:\"f64\",C64:\"c64\",C128:\"c128\",UNKNOWN:\"unknown\"}),U=f.SetFromValues([\"png\",\"png8\",\"png24\",\"png32\",\"jpg\",\"bmp\",\"gif\",\"jpgpng\",\"lerc\",\"tiff\"]),Q=g.ensureRange(y.ensureNumber,{min:0,max:255});t.ArcGISImageService=function(e){return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._functionRasterInfos={},t._rasterJobHandler={instance:null,refCount:0,connectionPromise:null},t._symbolizer=null,t._defaultServiceMosaicRule=null,t.rasterAttributeTableFieldPrefix=\"Raster.\",t.adjustAspectRatio=null,t.bandCount=null,t.bandIds=void 0,t.capabilities=null,t.compressionQuality=void 0,t.compressionTolerance=.01,t.copyright=null,t.definitionExpression=null,t.exportImageServiceParameters=null,t.rasterInfo=null,t.fields=null,t.fullExtent=null,t.hasMultidimensions=!1,t.imageMaxHeight=4100,t.imageMaxWidth=4100,t.interpolation=void 0,t.minScale=0,t.maxScale=0,t.multidimensionalInfo=null,t.noData=null,t.noDataInterpretation=void 0,t.objectIdField=null,t.pixelSizeX=null,t.pixelSizeY=null,t.pixelFilter=null,t.raster=void 0,t.viewId=void 0,t.renderer=null,t.rasterAttributeTable=null,t.rasterFunctionInfos=null,t.serviceDataType=null,t.spatialReference=null,t.pixelType=null,t.serviceRasterInfo=null,t.sourceJSON=null,t.url=null,t.version=null,t}return r.__extends(t,e),t.prototype.initialize=function(){this._set(\"exportImageServiceParameters\",new b.ExportImageServiceParameters({layer:this}))},t.prototype.readDefaultServiceMosaicRule=function(e,t){return S.fromJSON(t)},Object.defineProperty(t.prototype,\"rasterFunctionNamesIndex\",{get:function(){var e=new Map;return!this.rasterFunctionInfos||this.rasterFunctionInfos.length<1?e:(this.rasterFunctionInfos.forEach((function(t){e.set(t.name.toLowerCase().replace(/ /gi,\"_\"),t.name)})),e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"queryTask\",{get:function(){return new C({url:this.url})},enumerable:!1,configurable:!0}),t.prototype.readBandIds=function(e,t){if(Array.isArray(e)&&e.length>0&&e.every((function(e){return\"number\"==typeof e})))return e},t.prototype.readCapabilities=function(e,t){return this._readCapabilities(t)},t.prototype.writeCompressionQuality=function(e,t,r){null!=e&&\"lerc\"!==this.format&&(t[r]=e)},t.prototype.writeCompressionTolerance=function(e,t,r){\"lerc\"===this.format&&null!=e&&(t[r]=e)},Object.defineProperty(t.prototype,\"fieldsIndex\",{get:function(){return this.fields?new x(this.fields):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"format\",{set:function(e){e&&U.has(e.toLowerCase())&&this._set(\"format\",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.readFormat=function(e,t){return\"esriImageServiceDataTypeVector-UV\"===t.serviceDataType||\"esriImageServiceDataTypeVector-MagDir\"===t.serviceDataType?\"lerc\":null!=this.pixelFilter?\"lerc\":\"jpgpng\"},t.prototype.readMinScale=function(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0},t.prototype.readMaxScale=function(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0},Object.defineProperty(t.prototype,\"mosaicRule\",{set:function(e){var t=e;t&&t.mosaicMethod&&(t=S.fromJSON(r.__assign(r.__assign({},t.toJSON()),{mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation}))),this._set(\"mosaicRule\",t)},enumerable:!1,configurable:!0}),t.prototype.readMosaicRule=function(e,t){return S.fromJSON(e||t.mosaicRule||t)},t.prototype.writeMosaicRule=function(e,t,r){var i=this.mosaicRule,n=this.definitionExpression;i?n&&n!==i.where&&((i=i.clone()).where=n):n&&(i=new S({where:n})),this._isValidCustomizedMosaicRule(i)&&(t[r]=i.toJSON())},t.prototype.writeNoData=function(e,t,r){null!=e&&\"number\"==typeof e&&(t[r]=Q(e))},t.prototype.readObjectIdField=function(e,t){if(!e){var r=t.fields.filter((function(e){return\"esriFieldTypeOID\"===e.type||\"oid\"===e.type}));e=r&&r[0]&&r[0].name}return e},Object.defineProperty(t.prototype,\"parsedUrl\",{get:function(){return this.url?m.urlToObject(this.url):null},enumerable:!1,configurable:!0}),t.prototype.readRenderer=function(e,t,r){var i=t&&t.layerDefinition&&t.layerDefinition.drawingInfo&&t.layerDefinition.drawingInfo.renderer,n=a.read(i,r)||void 0;if(null!=n)return I.isSupportedRendererType(n)||q.warn(\"ArcGISImageService\",\"Imagery layer doesn't support given renderer type.\"),n},Object.defineProperty(t.prototype,\"rasterFields\",{get:function(){var e=this.rasterAttributeTableFieldPrefix||\"Raster.\",t=new R({name:\"Raster.ItemPixelValue\",alias:\"Item Pixel Value\",domain:null,editable:!1,length:50,type:\"string\"}),r=new R({name:\"Raster.ServicePixelValue\",alias:\"Service Pixel Value\",domain:null,editable:!1,length:50,type:\"string\"}),i=new R({name:\"Raster.ServicePixelValue.Raw\",alias:\"Raw Service Pixel Value\",domain:null,editable:!1,length:50,type:\"string\"}),n=this.fields?u.clone(this.fields):[];n.push(r),this.capabilities.operations.supportsQuery&&this.fields&&this.fields.length>0&&n.push(t),this.version>=10.4&&this.rasterFunctionInfos&&this.rasterFunctionInfos.some((function(e){return\"none\"===e.name.toLowerCase()}))&&n.push(i),this.rasterFunctionInfos&&this.rasterFunctionInfos.filter((function(e){return\"none\"!==e.name.toLowerCase()})).forEach((function(e){n.push(new R({name:\"Raster.ServicePixelValue.\"+e.name,alias:e.name,domain:null,editable:!1,length:50,type:\"string\"}))})),null==this.pixelFilter||\"esriImageServiceDataTypeVector-UV\"!==this.serviceDataType&&\"esriImageServiceDataTypeVector-MagDir\"!==this.serviceDataType||(n.push(new R({name:\"Raster.Magnitude\",alias:\"Magnitude\",domain:null,editable:!1,type:\"double\"})),n.push(new R({name:\"Raster.Direction\",alias:\"Direction\",domain:null,editable:!1,type:\"double\"})));var a=this.rasterInfo.attributeTable&&this.rasterInfo.attributeTable.fields||null;if(a&&a.length>0){var o=a.filter((function(e){return\"esriFieldTypeOID\"!==e.type&&\"value\"!==e.name.toLowerCase()})).map((function(t){var r=u.clone(t);return r.name=e+t.name,r}));n=n.concat(o)}return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,\"renderingRule\",{set:function(e){var t=e;t&&t.rasterFunction&&(t=O.fromJSON(r.__assign(r.__assign({},t.toJSON()),{rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments}))),this._set(\"renderingRule\",t)},enumerable:!1,configurable:!0}),t.prototype.readRenderingRule=function(e,t){var r=t.rasterFunctionInfos;return t.renderingRule||r&&r.length&&\"None\"!==r[0].name?O.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null},t.prototype.writeRenderingRule=function(e,t,r){this._isRFTJson(e)||(t[r]=e.toJSON())},t.prototype.readSpatialReference=function(e,t){var r=e||t.extent.spatialReference;return r?i.SpatialReference.fromJSON(r):null},t.prototype.readPixelType=function(e){return E.fromJSON(e)||e},t.prototype.writePixelType=function(e,t,r){(c.isNone(this.serviceRasterInfo)||this.pixelType!==this.serviceRasterInfo.pixelType)&&(t[r]=E.toJSON(e))},t.prototype.readVersion=function(e,t){var r=t.currentVersion;return r||(r=t.hasOwnProperty(\"fields\")||t.hasOwnProperty(\"timeInfo\")?10:9.3),r},t.prototype.applyFilter=function(e){var t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t},t.prototype.applyRenderer=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var i,n,a,o,s;return r.__generator(this,(function(l){switch(l.label){case 0:return i=e,this._isPicture()||!this.renderer||!this._symbolizer||this.pixelFilter?[3,5]:(n=JSON.stringify(this._cachedRendererJson)!==JSON.stringify(this.renderer.toJSON()),a=this._rasterJobHandler.instance,o=this.bandIds,a?n?(this._symbolizer.bind(),[4,a.updateSymbolizer(this._symbolizer,t)]):[3,2]:[3,4]);case 1:l.sent(),this._cachedRendererJson=this.renderer.toJSON(),l.label=2;case 2:return[4,a.symbolize(r.__assign({bandIds:o},e),t)];case 3:return s=l.sent(),i={extent:e.extent,pixelBlock:s},[3,5];case 4:i={extent:e.extent,pixelBlock:this._symbolizer.symbolize(r.__assign({bandIds:o},e))},l.label=5;case 5:return[2,i]}}))}))},t.prototype.destroy=function(){this._shutdownJobHandler()},t.prototype.increaseRasterJobHandlerUsage=function(){this._rasterJobHandler.refCount++},t.prototype.decreaseRasterJobHandlerUsage=function(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()},t.prototype.fetchImage=function(e,t,r,i){var n=this;if(void 0===i&&(i={}),null==e||null==t||null==r)return d.reject(new s(\"imagery-layer:fetch-image\",\"Insufficient parameters for requesting an image. A valid extent, width and height values are required.\"));var a=this.renderer||this._symbolizer?this.generateRasterInfo(this.renderingRule,{signal:i.signal}):null;return d.when(a).then((function(a){a&&(n.rasterInfo=a);var o={imageServiceParameters:n.getExportImageServiceParameters(e,t,r,i.timeExtent),imageProps:{extent:e,width:t,height:r,format:n.format},requestAsImageElement:i.requestAsImageElement&&!n.pixelFilter||!1,signal:i.signal};return n._requestArrayBuffer(o)}))},t.prototype.fetchKeyProperties=function(e){var t=e&&e.renderingRule&&e.renderingRule.toJSON();return o(this.parsedUrl.path+\"/keyProperties\",{query:this._getQueryParams({renderingRule:this.version>=10.3&&t?JSON.stringify(t):null})}).then((function(e){return e.data}))},t.prototype.fetchRasterAttributeTable=function(e){var t=e&&e.renderingRule&&e.renderingRule.toJSON();return this.version<10.1?d.reject(new s(\"#fetchRasterAttributeTable()\",\"Failed to get rasterAttributeTable\")):o(this.parsedUrl.path+\"/rasterAttributeTable\",{query:this._getQueryParams({renderingRule:this.version>=10.3&&t?JSON.stringify(t):null})}).then((function(e){return V.fromJSON(e.data)}))},t.prototype.getCatalogItemRasterInfo=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,a,s,l,u;return r.__generator(this,(function(p){switch(p.label){case 0:return n=o(this.parsedUrl.path+\"/\"+e+\"/info\",r.__assign({query:this._getQueryParams()},t)).then((function(e){return e.data})),a=o(this.parsedUrl.path+\"/\"+e+\"/info/keyProperties\",r.__assign({query:this._getQueryParams()},t)).then((function(e){return e.data})).catch((function(){})),[4,d.all([n,a])];case 1:return(s=p.sent())[0]?(l=i.Extent.fromJSON(s[0].extent),u=s[0].statistics?s[0].statistics.map((function(e){return{min:e[0],max:e[1],avg:e[2],stddev:e[3]}})):null,[2,new P({bandCount:s[0].bandCount,extent:l,spatialReference:l.sr,pixelSize:new i.Point({x:s[0].pixelSizeX,y:s[0].pixelSizeY,spatialReference:l.sr}),pixelType:s[0].pixelType.toLowerCase(),statistics:u,histograms:s[0].histograms,keyProperties:s[1]||{}})]):[2,void 0]}}))}))},t.prototype.getCatalogItemICSInfo=function(e,t){var n,a,s;return r.__awaiter(this,void 0,void 0,(function(){var l,u,p,c,f,m,h,y,g,_,v,b,R,x,I,S,w,O,P,N,D,F,T,J,C,V,M,j,q,z;return r.__generator(this,(function(A){switch(A.label){case 0:return[4,o(this.parsedUrl.path+\"/\"+e+\"/info/ics\",r.__assign({query:this._getQueryParams()},t))];case 1:if(l=A.sent().data,!(u=l&&l.ics))return[2,void 0];p=null,A.label=2;case 2:return A.trys.push([2,4,,5]),[4,o(this.parsedUrl.path+\"/\"+e+\"/info\",r.__assign({query:this._getQueryParams()},t))];case 3:return c=A.sent(),p=c.data.extent,[3,5];case 4:return A.sent(),[3,5];case 5:if(!p||!p.spatialReference)return[2,{ics:u,icsToPixelTransform:null,icsExtent:null,northDirection:null}];for(f=this.version>=10.7?o(this.parsedUrl.path+\"/\"+e+\"/info/icstopixel\",r.__assign({query:this._getQueryParams()},t)).then((function(e){return e.data})).catch((function(){return{}})):{},m=p.spatialReference,h={geometries:JSON.stringify({geometryType:\"esriGeometryEnvelope\",geometries:[p]}),inSR:m.wkid||JSON.stringify(m),outSR:\"0:\"+e},y=o(this.parsedUrl.path+\"/project\",r.__assign({query:this._getQueryParams(h)},t)).then((function(e){return e.data})).catch((function(){return{}})),g=5,_=(p.xmin+p.xmax)/2,v=(p.ymax-p.ymin)/(g+1),b=p.ymin+v,R=[],V=0;VN[0].x,z=N[g-1].y>N[0].y,M===1/0?j=z?90:270:0===M?j=q?0:180:M>0?j=q?180*Math.atan(M)/Math.PI:180*Math.atan(M)/Math.PI+180:M<0&&(j=z?180+180*Math.atan(M)/Math.PI:360+180*Math.atan(M)/Math.PI),[2,{ics:u,icsToPixelTransform:w,icsExtent:P,northDirection:j}]}}))}))},t.prototype.generateRasterInfo=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var i,n;return r.__generator(this,(function(r){switch(r.label){case 0:if((!e||\"none\"===e.functionName.toLowerCase())&&c.isSome(this.serviceRasterInfo))return[2,this.serviceRasterInfo];if(i=function(e){if(!e)return null;var t=JSON.stringify(e).match(/\"rasterFunction\":\"(.*?\")/gi),r=null==t?void 0:t.map((function(e){return e.replace('\"rasterFunction\":\"',\"\").replace('\"',\"\")}));return r?r.join(\"/\"):null}(e),this._functionRasterInfos[i])return[2,this._functionRasterInfos[i]];n=this._generateRasterInfo(e,t),this._functionRasterInfos[i]=n,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n];case 2:return[2,r.sent()];case 3:return r.sent(),this._functionRasterInfos[i]=null,[2,null];case 4:return[2]}}))}))},t.prototype.getExportImageServiceParameters=function(e,t,i,n){var a,o=(e=e.clone().shiftCentralMeridian()).spatialReference;if(o.imageCoordinateSystem){var s=o.imageCoordinateSystem,l=s.id,u=s.referenceServiceName;a=null!=l?u?this.parsedUrl.path.toLowerCase().indexOf(\"/\"+u.toLowerCase()+\"/\")>-1?\"0:\"+l:JSON.stringify({icsid:l,icsns:u}):\"0:\"+l:JSON.stringify({ics:o.imageCoordinateSystem})}else a=o.wkid||JSON.stringify(o.toJSON());c.isSome(this.serviceRasterInfo)&&this.pixelType!==this.serviceRasterInfo.pixelType&&(this.exportImageServiceParameters.pixelType=this.pixelType);var p=this.exportImageServiceParameters.toJSON(),d=p.bandIds,f=p.noData,m=p.mosaicRule,h=p.renderingRule;d instanceof Array&&d.length>0&&(p.bandIds=d.join(\",\")),f instanceof Array&&f.length>0&&(p.noData=f.join(\",\"));var y=this.timeInfo;m&&m.multidimensionalDefinition&&n&&y&&y.startField&&(m.multidimensionalDefinition=m.multidimensionalDefinition.filter((function(e){return e.dimensionName!==y.startField}))),p.mosaicRule=m&&JSON.stringify(m),p.renderingRule=h&&JSON.stringify(h);var g={};if(n){var _=n.toJSON(),v=_.start,b=_.end;v&&b&&v===b?g.time=\"\"+v:null==v&&null==b||(g.time=(null==v?\"null\":v)+\",\"+(null==b?\"null\":b))}return r.__assign(r.__assign({bbox:e.xmin+\",\"+e.ymin+\",\"+e.xmax+\",\"+e.ymax,bboxSR:a,imageSR:a,size:t+\",\"+i},p),g)},t.prototype.queryRasters=function(e){return this.queryTask.execute(e)},t.prototype.queryVisibleRasters=function(e,t){var r=this;if(!e)return d.reject(new s(\"imagery-layer: query-visible-rasters\",\"missing query parameter\"));var n=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1},a=n.pixelSize,o=n.returnDomainValues,l=n.returnTopmostRaster,u=n.showNoDataRecords,p=!1,c=null,f=null,m=this.rasterFunctionNamesIndex;if(e.outFields&&(p=e.outFields.some((function(e){return-1===e.toLowerCase().indexOf(\"raster.servicepixelvalue\")})),this.version>=10.4)){var h=e.outFields.filter((function(e){return e.toLowerCase().indexOf(\"raster.servicepixelvalue\")>-1&&e.length>\"raster.servicepixelvalue\".length})).map((function(e){var t=e.slice(\"raster.servicepixelvalue\".length+1);return[r._updateRenderingRulesFunctionName(t,m),t]}));c=h.map((function(e){return new O({functionName:e[0]})})),f=h.map((function(e){return e[1]})),0===c.length?this.renderingRule?(c.push(this.renderingRule),f.push(this.renderingRule.functionName)):c=null:this.renderingRule&&!c.some((function(e){return e.functionName===r.renderingRule.functionName}))&&(c.push(this.renderingRule),f.push(this.renderingRule.functionName))}var y=!e.outSpatialReference||e.outSpatialReference.equals(this.spatialReference),g=this._getQueryParams({geometry:e.geometry,timeExtent:e.timeExtent,mosaicRule:this.exportImageServiceParameters.mosaicRule,renderingRule:this.version<10.4?this.renderingRule:null,renderingRules:c,pixelSize:a,returnCatalogItems:p,returnGeometry:y,maxItemCount:l?1:null});delete g.f;var _=new M(g),v=new J({url:this.url}),b=this.generateRasterInfo(this.renderingRule);return d.create((function(t){b.then((function(){v.execute(_).then((function(n){var a=e.outFields;if(p&&!y&&n.catalogItems&&n.catalogItems.features&&n.catalogItems.features.length>0){var l=r.objectIdField||\"ObjectId\",c=n.catalogItems.features,d=c.map((function(e){return e.attributes&&e.attributes[l]})),m=new j({objectIds:d,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[l]});return r.queryRasters(m).then((function(s){s&&s.features&&s.features.length>0&&s.features.forEach((function(t){c.forEach((function(r){r.attributes[l]===t.attributes[l]&&(r.geometry=new i.Polygon(t.geometry),r.geometry.spatialReference=e.outSpatialReference)}))})),t(r._processVisibleRastersResponse(n,{returnDomainValues:o,templateRRFunctionNames:f,showNoDataRecords:u,templateFields:a}))})).catch((function(){throw new s(\"imagery-layer:query-visible-rasters\",\"encountered error when querying visible rasters geometry\")}))}t(r._processVisibleRastersResponse(n,{returnDomainValues:o,templateRRFunctionNames:f,showNoDataRecords:u,templateFields:a}))})).catch((function(){throw new s(\"imagery-layer:query-visible-rasters\",\"encountered error when querying visible rasters\")}))}))}))},t.prototype.fetchVariableStatisticsHistograms=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var i,n,a;return r.__generator(this,(function(r){switch(r.label){case 0:return i=o(this.parsedUrl.path+\"/statistics\",{query:this._getQueryParams({variable:e}),signal:t}).then((function(e){var t;return null===(t=e.data)||void 0===t?void 0:t.statistics})),n=o(this.parsedUrl.path+\"/histograms\",{query:this._getQueryParams({variable:e}),signal:t}).then((function(e){var t;return null===(t=e.data)||void 0===t?void 0:t.histograms})),[4,d.all([i,n])];case 1:return(a=r.sent())[0]&&a[0].forEach((function(e){e.avg=e.mean,e.stddev=e.standardDeviation})),[2,{statistics:a[0]||null,histograms:a[1]||null}]}}))}))},t.prototype._fetchService=function(e){var t;return r.__awaiter(this,void 0,void 0,(function(){var i,n,a,l,u,p,f=this;return r.__generator(this,(function(r){switch(r.label){case 0:return(i=this.sourceJSON)?[3,2]:[4,o(this.parsedUrl.path,{query:this._getQueryParams(),signal:e})];case 1:n=r.sent(),a=n.data,l=n.ssl,i=a,this.sourceJSON=i,l&&(this.url=this.url.replace(/^http:/i,\"https:\")),r.label=2;case 2:if((null===(t=i.capabilities)||void 0===t?void 0:t.toLowerCase().split(\",\").map((function(e){return e.trim()})).indexOf(\"tilesonly\"))>-1)throw new s(\"imagery-layer:fetch-metadata\",\"use ImageryTileLayer to open tiles-only image services\");return this.read(i,{origin:\"service\",url:this.parsedUrl}),c.isSome(this.serviceRasterInfo)&&!this.rasterInfo&&(this.rasterInfo=this.serviceRasterInfo),u=c.isSome(this.serviceRasterInfo)?d.resolve(this.serviceRasterInfo):this._fetchAuxiliaryRasterInfo({serviceInfo:i,signal:e}).then((function(e){return f._set(\"serviceRasterInfo\",e),e})),p=this.renderingRule&&\"none\"!==this.renderingRule.functionName.toLowerCase()?this.generateRasterInfo(this.renderingRule,{signal:e}):null,[2,d.all([u,p]).then((function(e){e[1]?f._set(\"rasterInfo\",e[1]):f._set(\"rasterInfo\",e[0]),f._configDefaultRenderer(),f.watch(\"renderer\",(function(){return f._configDefaultRenderer()})),f.watch(\"renderingRule\",(function(e){(f.renderer||f._symbolizer||f.popupEnabled&&f.popupTemplate)&&f.generateRasterInfo(e).then((function(e){e&&(f.rasterInfo=e)}))}));var t=c.isSome(f.serviceRasterInfo)&&f.serviceRasterInfo.multidimensionalInfo;t&&f._updateMultidimensionalDefinition(t)}))]}}))}))},t.prototype._initJobHandler=function(){return r.__awaiter(this,void 0,void 0,(function(){var e,t=this;return r.__generator(this,(function(r){switch(r.label){case 0:return null!=this._rasterJobHandler.connectionPromise?[2,this._rasterJobHandler.connectionPromise]:(e=new N,this._rasterJobHandler.connectionPromise=e.initialize().then((function(){t._rasterJobHandler.instance=e}),(function(){return null})),[4,this._rasterJobHandler.connectionPromise]);case 1:return r.sent(),[2]}}))}))},t.prototype._shutdownJobHandler=function(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0},t.prototype._isPicture=function(){return!this.format||this.format.indexOf(\"jpg\")>-1||this.format.indexOf(\"png\")>-1},t.prototype._configDefaultRenderer=function(){var e,t;if(!this._isPicture()&&!this.pixelFilter){if(!this.bandIds&&this.rasterInfo.bandCount>=3){var r=F.getDefaultBandCombination(this.rasterInfo);!r||3===this.rasterInfo.bandCount&&0===r[0]&&1===r[1]&&2===r[2]||(this.bandIds=r)}this.renderer||(this.renderer=F.createDefaultRenderer(this.rasterInfo,{bandIds:this.bandIds,variableName:this.renderingRule?null:null===(t=null===(e=this.mosaicRule)||void 0===e?void 0:e.multidimensionalDefinition)||void 0===t?void 0:t[0].variableName})),this._symbolizer?(this._symbolizer.renderer=this.renderer,this._symbolizer.rasterInfo=this.rasterInfo):this._symbolizer=new T({renderer:this.renderer,rasterInfo:this.rasterInfo}),this._symbolizer.bind()||(this._symbolizer=null)}},t.prototype._clonePixelData=function(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:e.pixelBlock&&e.pixelBlock.clone()}},t.prototype._getQueryParams=function(e){var t=this.raster,i=this.viewId;return r.__assign({raster:t,viewId:i,f:\"json\"},e)},t.prototype._decodePixelBlock=function(e,t,r){return this._rasterJobHandler.instance?this._rasterJobHandler.instance.decode({data:e,options:t}):D.decode(e,t,r)},t.prototype._fetchMultidimensionalInfo=function(e){var t;return r.__awaiter(this,void 0,void 0,(function(){var i;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,o(this.parsedUrl.path+\"/multidimensionalInfo\",{query:this._getQueryParams(),signal:e}).then((function(e){var t;return null===(t=e.data)||void 0===t?void 0:t.multidimensionalInfo}))];case 1:return i=r.sent(),(null===(t=i.variables)||void 0===t?void 0:t.length)&&i.variables.forEach((function(e){var t;(null===(t=e.statistics)||void 0===t?void 0:t.length)&&e.statistics.forEach((function(e){e.avg=e.mean,e.stddev=e.standardDeviation}))})),[2,i]}}))}))},t.prototype._fetchAuxiliaryRasterInfo=function(e){var t=e&&e.serviceInfo;if(!t)return d.reject(new s(\"imagery-layer:fetch-metadata\",\"valid serviceInfo is required\"));var r=e.renderingRule?JSON.stringify(e.renderingRule.toJSON()):null,n=e.signal,a=!!(t.hasRasterAttributeTable&&this.version>=10.1)&&o(this.parsedUrl.path+\"/rasterAttributeTable\",{query:this._getQueryParams({renderingRule:this.version>=10.1?r:null}),signal:n}).then((function(e){return V.fromJSON(e.data)})).catch((function(){return null})),l=!!(t.hasColormap&&this.version>=10.1)&&o(this.parsedUrl.path+\"/colormap\",{query:this._getQueryParams({renderingRule:this.version>=10.6?r:null}),signal:n}).then((function(e){var t;return null===(t=e.data)||void 0===t?void 0:t.colormap})),u=!!(t.hasHistograms&&this.version>=10.1)&&o(this.parsedUrl.path+\"/histograms\",{query:this._getQueryParams({renderingRule:this.version>=10.1?r:null}),signal:n}).then((function(e){var t;return null===(t=e.data)||void 0===t?void 0:t.histograms})),p=this.version>=10.3&&o(this.parsedUrl.path+\"/keyProperties\",{query:this._getQueryParams({renderingRule:r}),signal:n}).then((function(e){return e.data})).catch((function(){})),c=!!(t.hasMultidimensions&&this.version>=10.3)&&this._fetchMultidimensionalInfo();return d.all([a,l,u,p,c]).then((function(e){var r=null;if(t.minValues&&t.minValues.length===t.bandCount){r=[];for(var n=0;n-1)return o(this.parsedUrl.path+\"/exportImage\",{responseType:\"image\",query:this._getQueryParams(r.__assign({f:\"image\"},e.imageServiceParameters)),signal:a}).then((function(e){return{imageElement:e.data,params:i}}));var l=this._initJobHandler(),u=o(this.parsedUrl.path+\"/exportImage\",{responseType:\"array-buffer\",query:this._getQueryParams(r.__assign({f:\"image\"},e.imageServiceParameters)),signal:a});return d.all([u,l]).then((function(e){var n=e[0].data,o=i.format||\"jpgpng\",l=o;if(\"bsq\"!==l&&\"bip\"!==l&&(l=D.getFormat(n)),!l)throw new s(\"imagery-layer:fetch-image\",\"unsupported format signature \"+String.fromCharCode.apply(null,new Uint8Array(n)));var u=\"gif\"===o||\"bmp\"===o||o.indexOf(\"png\")>-1&&(\"png\"===l||\"jpg\"===l),p={signal:a};return u?D.decode(n,r.__assign({useCanvas:!0},i),p).then((function(e){return{pixelData:{pixelBlock:e,extent:i.extent},params:i}})):t._decodePixelBlock(n,{width:i.width,height:i.height,planes:null,pixelType:null,noDataValue:null,format:o},p).then((function(e){return{pixelData:{pixelBlock:e,extent:i.extent},params:i}}))}))},t.prototype._generateRasterInfo=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var i;return r.__generator(this,(function(n){switch(n.label){case 0:return[4,o(this.parsedUrl.path,r.__assign({query:this._getQueryParams({renderingRule:e})},t))];case 1:return i=n.sent().data,[4,this._fetchAuxiliaryRasterInfo(r.__assign({serviceInfo:i,renderingRule:e},t))];case 2:return[2,n.sent()]}}))}))},t.prototype._isValidCustomizedMosaicRule=function(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this._defaultServiceMosaicRule&&this._defaultServiceMosaicRule.toJSON())},t.prototype._updateMultidimensionalDefinition=function(e){if(!this._isValidCustomizedMosaicRule(this.mosaicRule)){var t=e.variables[0].dimensions,r=[];for(var i in t)if(t.hasOwnProperty(i)){var n=t[i],a=n.extent,o=!0,s=[a[0]];n.hasRanges&&!0===n.hasRanges?(o=!1,s=[n.values[0]]):\"stdz\"===n.name.toLowerCase()&&Math.abs(a[1])<=Math.abs(a[0])&&(s=[a[1]]),r.push(new v({variableName:\"\",dimensionName:t[i].name,isSlice:o,values:s}))}if(r.length>0){this.mosaicRule=this.mosaicRule||new S;var l=this.mosaicRule.multidimensionalDefinition;(!l||l&&l.length<=0)&&(this.mosaicRule.multidimensionalDefinition=r)}}},t.prototype._formatAttributeValue=function(e,t){if(\"string\"==typeof e){var r=this.popupTemplate&&this.popupTemplate.fieldInfos,i=this._getFieldInfo(r,t),n=i&&i.format;if(n){var a=void 0,o=void 0;return e.trim().indexOf(\",\")>-1?(o=(a=\",\")+\" \",this._formatDelimitedString(e,a,o,n)):e.trim().indexOf(\" \")>-1?(a=o=\" \",this._formatDelimitedString(e,a,o,n)):this._formatNumberFromString(e,n)}}return e},t.prototype._getFieldInfo=function(e,t){if(e&&e.length&&t){var r=t.toLowerCase(),i=void 0;return e.some((function(e){return!(!e.fieldName||e.fieldName.toLowerCase()!==r&&e.fieldName.toLowerCase()!==r.replace(/ /g,\"_\"))&&(i=e,!0)})),i}},t.prototype._formatDelimitedString=function(e,t,r,i){var n=this;return e&&t&&r&&i?e.trim().split(t).map((function(e){return n._formatNumberFromString(e,i)})).join(r):e},t.prototype._formatNumberFromString=function(e,t){if(!e||!t)return e;var r=Number(e);return isNaN(r)?e:t.format(r)},t.prototype._processVisibleRastersResponse=function(e,t){t=t||{};var r,i,a,o=e.value,s=t.templateRRFunctionNames,l=t.showNoDataRecords,u=t.returnDomainValues,p=t.templateFields,d=e.processedValues,f=e.catalogItems&&e.catalogItems.features,m=e.properties&&e.properties.Values&&e.properties.Values.map((function(e){return e.replace(/ /gi,\", \")}))||[],h=this.objectIdField||\"ObjectId\",y=\"string\"==typeof o&&o.toLowerCase().indexOf(\"nodata\")>-1,g=[];if(o&&!f&&!y){var _={};_[h]=0,m=[o],f=[new n(this.fullExtent,null,_)]}if(!f)return[];this._updateResponseFieldNames(f,p);for(var v=0;v0&&s&&s.length>0&&s.indexOf(this.renderingRule.functionName)>-1?d[s.indexOf(this.renderingRule.functionName)]:o,\"nodata\"===i.toLowerCase()&&!l)continue;r.attributes[\"Raster.ItemPixelValue\"]=this._formatAttributeValue(i,\"Raster.ItemPixelValue\"),r.attributes[\"Raster.ServicePixelValue\"]=this._formatAttributeValue(a,\"Raster.ServicePixelValue\"),this._updateFeatureWithMagDirValues(r,i);var b=this.fields&&this.fields.length>0,R=this.renderingRule&&c.isSome(this.serviceRasterInfo)&&this.serviceRasterInfo.attributeTable?b?i:o:a;this.renderingRule||(R=b?i:o),this._updateFeatureWithRasterAttributeTableValues(r,R)}if(r.sourceLayer=this,u&&this._updateFeatureWithDomainValues(r),s&&d&&s.length===d.length)for(var x=0;x-1,o=\"esriImageServiceDataTypeElevation\"===e.serviceDataType,s=!!(e.spatialReference||e.extent&&e.extent.spatialReference);return{operations:{supportsComputeHistograms:a,supportsExportImage:a,supportsIdentify:a,supportsMeasure:t.indexOf(\"mensuration\")>-1&&s,supportsDownload:t.indexOf(\"download\")>-1,supportsQuery:t.indexOf(\"catalog\")>-1&&e.fields&&e.fields.length>0,supportsGetSamples:r>=10.2&&a,supportsProject:r>=10.3&&a,supportsComputeStatisticsHistograms:r>=10.4&&a,supportsQueryBoundary:r>=10.6&&a,supportsCalculateVolume:r>=10.7&&o,supportsComputePixelLocation:r>=10.7&&t.indexOf(\"catalog\")>-1},query:{supportsStatistics:!(!i||!i.supportsStatistics),supportsOrderBy:!(!i||!i.supportsOrderBy),supportsDistinct:!(!i||!i.supportsDistinct),supportsPagination:!(!i||!i.supportsPagination),supportsStandardizedQueriesOnly:!(!i||!i.useStandardizedQueries),maxRecordCount:n}}},r.__decorate([h.property()],t.prototype,\"_functionRasterInfos\",void 0),r.__decorate([h.property()],t.prototype,\"_rasterJobHandler\",void 0),r.__decorate([h.property()],t.prototype,\"_symbolizer\",void 0),r.__decorate([h.property()],t.prototype,\"_defaultServiceMosaicRule\",void 0),r.__decorate([h.reader(\"_defaultServiceMosaicRule\",[\"defaultMosaicMethod\"])],t.prototype,\"readDefaultServiceMosaicRule\",null),r.__decorate([h.property()],t.prototype,\"_cachedRendererJson\",void 0),r.__decorate([h.property()],t.prototype,\"rasterAttributeTableFieldPrefix\",void 0),r.__decorate([h.property({readOnly:!0,dependsOn:[\"rasterFunctionInfos\"]})],t.prototype,\"rasterFunctionNamesIndex\",null),r.__decorate([h.property({readOnly:!0,dependsOn:[\"url\"]})],t.prototype,\"queryTask\",null),r.__decorate([h.property()],t.prototype,\"adjustAspectRatio\",void 0),r.__decorate([h.property({readOnly:!0}),h.aliasOf(\"serviceRasterInfo.bandCount\")],t.prototype,\"bandCount\",void 0),r.__decorate([h.property({type:[y.Integer],json:{write:!0}})],t.prototype,\"bandIds\",void 0),r.__decorate([h.reader(\"bandIds\")],t.prototype,\"readBandIds\",null),r.__decorate([h.property({readOnly:!0,json:{read:!1}})],t.prototype,\"capabilities\",void 0),r.__decorate([h.reader(\"service\",\"capabilities\",[\"capabilities\",\"currentVersion\",\"serviceDataType\"])],t.prototype,\"readCapabilities\",null),r.__decorate([h.property({type:Number})],t.prototype,\"compressionQuality\",void 0),r.__decorate([h.writer(\"compressionQuality\")],t.prototype,\"writeCompressionQuality\",null),r.__decorate([h.property({type:Number})],t.prototype,\"compressionTolerance\",void 0),r.__decorate([h.writer(\"compressionTolerance\")],t.prototype,\"writeCompressionTolerance\",null),r.__decorate([h.property({json:{read:{source:\"copyrightText\"}}})],t.prototype,\"copyright\",void 0),r.__decorate([h.property({type:String,json:{read:{source:\"layerDefinition.definitionExpression\"},write:{target:\"layerDefinition.definitionExpression\"}}})],t.prototype,\"definitionExpression\",void 0),r.__decorate([h.property({readOnly:!0,constructOnly:!0})],t.prototype,\"exportImageServiceParameters\",void 0),r.__decorate([h.property()],t.prototype,\"rasterInfo\",void 0),r.__decorate([h.property({readOnly:!0,type:[R]})],t.prototype,\"fields\",void 0),r.__decorate([h.property({readOnly:!0,dependsOn:[\"fields\"]})],t.prototype,\"fieldsIndex\",null),r.__decorate([h.property({type:[\"png\",\"png8\",\"png24\",\"png32\",\"jpg\",\"bmp\",\"gif\",\"jpgpng\",\"lerc\",\"tiff\"],json:{write:!0}})],t.prototype,\"format\",null),r.__decorate([h.reader(\"service\",\"format\",[\"serviceDataType\"])],t.prototype,\"readFormat\",null),r.__decorate([h.property({type:i.Extent})],t.prototype,\"fullExtent\",void 0),r.__decorate([h.property({readOnly:!0})],t.prototype,\"hasMultidimensions\",void 0),r.__decorate([h.property({json:{read:{source:\"maxImageHeight\"}}})],t.prototype,\"imageMaxHeight\",void 0),r.__decorate([h.property({json:{read:{source:\"maxImageWidth\"}}})],t.prototype,\"imageMaxWidth\",void 0),r.__decorate([h.property({type:String,json:{type:z.jsonValues,read:z.read,write:z.write}})],t.prototype,\"interpolation\",void 0),r.__decorate([h.property()],t.prototype,\"minScale\",void 0),r.__decorate([h.reader(\"service\",\"minScale\")],t.prototype,\"readMinScale\",null),r.__decorate([h.property()],t.prototype,\"maxScale\",void 0),r.__decorate([h.reader(\"service\",\"maxScale\")],t.prototype,\"readMaxScale\",null),r.__decorate([h.property({type:S})],t.prototype,\"mosaicRule\",null),r.__decorate([h.reader(\"mosaicRule\",[\"mosaicRule\",\"defaultMosaicMethod\"])],t.prototype,\"readMosaicRule\",null),r.__decorate([h.writer(\"mosaicRule\")],t.prototype,\"writeMosaicRule\",null),r.__decorate([h.property({readOnly:!0}),h.aliasOf(\"serviceRasterInfo.multidimensionalInfo\")],t.prototype,\"multidimensionalInfo\",void 0),r.__decorate([h.property({json:{type:y.Integer}})],t.prototype,\"noData\",void 0),r.__decorate([h.writer(\"noData\")],t.prototype,\"writeNoData\",null),r.__decorate([h.property({type:String,json:{type:A.jsonValues,read:A.read,write:A.write}})],t.prototype,\"noDataInterpretation\",void 0),r.__decorate([h.property({type:String,readOnly:!0,json:{read:{source:[\"fields\"]}}})],t.prototype,\"objectIdField\",void 0),r.__decorate([h.reader(\"objectIdField\")],t.prototype,\"readObjectIdField\",null),r.__decorate([h.property({readOnly:!0,dependsOn:[\"url\"]})],t.prototype,\"parsedUrl\",null),r.__decorate([h.property({readOnly:!0}),h.aliasOf(\"serviceRasterInfo.pixelSize.x\")],t.prototype,\"pixelSizeX\",void 0),r.__decorate([h.property({readOnly:!0}),h.aliasOf(\"serviceRasterInfo.pixelSize.y\")],t.prototype,\"pixelSizeY\",void 0),r.__decorate([h.property({type:Function})],t.prototype,\"pixelFilter\",void 0),r.__decorate([h.property()],t.prototype,\"raster\",void 0),r.__decorate([h.property()],t.prototype,\"viewId\",void 0),r.__decorate([h.property({types:a.rasterRendererTypes,json:{read:{source:\"layerDefinition.drawingInfo.renderer\"},write:{target:\"layerDefinition.drawingInfo.renderer\"}}})],t.prototype,\"renderer\",void 0),r.__decorate([h.reader(\"renderer\")],t.prototype,\"readRenderer\",null),r.__decorate([h.property(_.opacityDrawingInfo)],t.prototype,\"opacity\",void 0),r.__decorate([h.property({readOnly:!0}),h.aliasOf(\"serviceRasterInfo.attributeTable\")],t.prototype,\"rasterAttributeTable\",void 0),r.__decorate([h.property({readOnly:!0,dependsOn:[\"fields\",\"rasterInfo\",\"capabilities\"]})],t.prototype,\"rasterFields\",null),r.__decorate([h.property({readOnly:!0})],t.prototype,\"rasterFunctionInfos\",void 0),r.__decorate([h.property({type:O})],t.prototype,\"renderingRule\",null),r.__decorate([h.reader(\"renderingRule\",[\"renderingRule\",\"rasterFunctionInfos\"])],t.prototype,\"readRenderingRule\",null),r.__decorate([h.writer(\"renderingRule\")],t.prototype,\"writeRenderingRule\",null),r.__decorate([h.property()],t.prototype,\"serviceDataType\",void 0),r.__decorate([h.property({readOnly:!0,type:i.SpatialReference})],t.prototype,\"spatialReference\",void 0),r.__decorate([h.reader(\"spatialReference\",[\"spatialReference\",\"extent\"])],t.prototype,\"readSpatialReference\",null),r.__decorate([h.property({json:{type:E.jsonValues}})],t.prototype,\"pixelType\",void 0),r.__decorate([h.reader(\"pixelType\")],t.prototype,\"readPixelType\",null),r.__decorate([h.writer(\"pixelType\")],t.prototype,\"writePixelType\",null),r.__decorate([h.property({constructOnly:!0,type:P})],t.prototype,\"serviceRasterInfo\",void 0),r.__decorate([h.property()],t.prototype,\"sourceJSON\",void 0),r.__decorate([h.property(_.url)],t.prototype,\"url\",void 0),r.__decorate([h.property({readOnly:!0})],t.prototype,\"version\",void 0),r.__decorate([h.reader(\"version\",[\"currentVersion\",\"fields\",\"timeInfo\"])],t.prototype,\"readVersion\",null),t=r.__decorate([h.subclass(\"esri.layers.mixins.ArcGISImageService\")],t)}(e)}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../core/Error\",\"../../core/promiseUtils\",\"../../core/workers\",\"./PixelBlock\"],(function(e,r,t,n,o,i,s){\"use strict\";return function(){function e(){this._workerThread=null,this._destroyed=!1}return e.prototype.initialize=function(){return t.__awaiter(this,void 0,void 0,(function(){var e;return t.__generator(this,(function(r){switch(r.label){case 0:return[4,i.open(\"RasterWorker\")];case 1:return e=r.sent(),this._destroyed?e.close():this._workerThread=e,[2]}}))}))},e.prototype.destroy=function(){this._destroyed=!0,this._workerThread&&(this._workerThread.close(),this._workerThread=null)},e.prototype.decode=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var o;return t.__generator(this,(function(t){switch(t.label){case 0:if(!this._workerThread)throw new n(\"raster-jobhandler:no-connection\",\"no available worker connection\");return[4,this._workerThread.invoke(\"decode\",e,r)];case 1:return[2,(o=t.sent())?new s(o):null]}}))}))},e.prototype.symbolize=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var o,i;return t.__generator(this,(function(t){switch(t.label){case 0:if(!this._workerThread)throw new n(\"raster-jobhandler:no-connection\",\"no available worker connection\");return o={extent:e.extent&&e.extent.toJSON(),pixelBlock:e.pixelBlock.toJSON(),simpleStretchParams:e.simpleStretchParams,bandIds:e.bandIds},[4,this._workerThread.invoke(\"symbolize\",o,r)];case 1:return[2,(i=t.sent())?new s(i):null]}}))}))},e.prototype.updateSymbolizer=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var i;return t.__generator(this,(function(t){switch(t.label){case 0:if(!this._workerThread)throw new n(\"raster-jobhandler:no-connection\",\"no available worker connection\");return i=e&&e.renderer&&\"raster-stretch\"===e.renderer.type&&e.renderer.histograms,[4,o.all(this._workerThread.broadcast(\"updateSymbolizer\",{symbolizerJSON:e.toJSON(),histograms:i},r))];case 1:return t.sent(),[2]}}))}))},e.prototype.stretch=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var o,i;return t.__generator(this,(function(t){switch(t.label){case 0:if(!this._workerThread)throw new n(\"raster-jobhandler:no-connection\",\"no available worker connection\");return e&&e.pixelBlock?(o={srcPixelBlock:e.pixelBlock.toJSON(),stretchParams:e.stretchParams},[4,this._workerThread.invoke(\"stretch\",o,r)]):[2,null];case 1:return[2,(i=t.sent())?new s(i):null]}}))}))},e.prototype.mosaicAndTransform=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var o,i;return t.__generator(this,(function(a){switch(a.label){case 0:if(!this._workerThread)throw new n(\"raster-jobhandler:no-connection\",\"no available worker connection\");return e&&e.srcPixelBlocks&&e.srcPixelBlocks.length>0?(o=t.__assign(t.__assign({},e),{srcPixelBlocks:e.srcPixelBlocks.map((function(e){return e?e.toJSON():null}))}),[4,this._workerThread.invoke(\"mosaicAndTransform\",o,r)]):[2,null];case 1:return[2,(i=a.sent())?new s(i):null]}}))}))},e}()}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../core/JSONSupport\",\"../../core/accessorSupport/decorators\",\"../../geometry/Point\",\"./FeatureSet\"],(function(e,t,o,r,p,i,s){\"use strict\";return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.catalogItemVisibilities=null,t.catalogItems=null,t.location=null,t.name=null,t.objectId=null,t.processedValues=null,t.properties=null,t.value=null,t}return o.__extends(t,e),o.__decorate([p.property({json:{write:!0}})],t.prototype,\"catalogItemVisibilities\",void 0),o.__decorate([p.property({type:s,json:{write:!0}})],t.prototype,\"catalogItems\",void 0),o.__decorate([p.property({type:i,json:{write:!0}})],t.prototype,\"location\",void 0),o.__decorate([p.property({json:{write:!0}})],t.prototype,\"name\",void 0),o.__decorate([p.property({json:{write:!0}})],t.prototype,\"objectId\",void 0),o.__decorate([p.property({json:{write:!0}})],t.prototype,\"processedValues\",void 0),o.__decorate([p.property({json:{write:!0}})],t.prototype,\"properties\",void 0),o.__decorate([p.property({json:{write:!0}})],t.prototype,\"value\",void 0),t=o.__decorate([p.subclass(\"esri.tasks.support.ImageServiceIdentifyResult\")],t)}(r.JSONSupport)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../request\",\"../core/maybe\",\"../geometry/support/normalizeUtils\",\"./utils\",\"../tasks/support/ImageServiceIdentifyResult\"],(function(e,t,r,i,n,o,s,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.imageServiceIdentify=void 0,t.imageServiceIdentify=function(e,t,u){return r.__awaiter(this,void 0,void 0,(function(){var f,d;return r.__generator(this,(function(c){return f=s.parseUrl(e),d=t.geometry?[t.geometry]:[],[2,o.normalizeCentralMeridian(d).then((function(e){var o=t.toJSON(),a=e&&e[0];n.isSome(a)&&(o.geometry=JSON.stringify(a.toJSON()));var d=s.encode(r.__assign(r.__assign(r.__assign({},f.query),{f:\"json\"}),o)),c=s.asValidOptions(d,u);return i(f.path+\"/identify\",c)})).then((function(e){return a.fromJSON(e.data)}))]}))}))}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../TimeExtent\",\"../../core/JSONSupport\",\"../../core/accessorSupport/decorators\",\"../../geometry/Point\",\"../../geometry/support/jsonUtils\",\"../../layers/support/MosaicRule\",\"../../layers/support/RasterFunction\"],(function(e,t,r,o,n,i,p,l,u,s){\"use strict\";return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.geometry=null,t.renderingRules=null,t.pixelSize=null,t.returnGeometry=!0,t.returnCatalogItems=!0,t.returnPixelValues=!0,t.maxItemCount=null,t.timeExtent=null,t.raster=void 0,t.viewId=void 0,t}return r.__extends(t,e),t.prototype.writeGeometry=function(e,t,r){null!=e&&(t.geometryType=l.getJsonType(e),t[r]=JSON.stringify(e.toJSON()))},Object.defineProperty(t.prototype,\"mosaicRule\",{set:function(e){var t=e;t&&t.mosaicMethod&&(t=u.fromJSON(r.__assign(r.__assign({},t.toJSON()),{mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation}))),this._set(\"mosaicRule\",t)},enumerable:!1,configurable:!0}),t.prototype.writeMosaicRule=function(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON()))},Object.defineProperty(t.prototype,\"renderingRule\",{set:function(e){var t=e;t&&t.rasterFunction&&(t=s.fromJSON(r.__assign(r.__assign({},t.toJSON()),{rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments}))),this._set(\"renderingRule\",t)},enumerable:!1,configurable:!0}),t.prototype.writeRenderingRule=function(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON()))},t.prototype.writeRenderingRules=function(e,t,r){null!=e&&(t[r]=JSON.stringify(e.map((function(e){return e.toJSON()}))))},t.prototype.writePixelSize=function(e,t,r){null!=e&&(t[r]=JSON.stringify(e.toJSON()))},t.prototype.writeTimeExtent=function(e,t,r){if(null!=e){var o=e.start?e.start.getTime():null,n=e.end?e.end.getTime():null;t[r]=null!=o?null!=n?o+\",\"+n:\"\"+o:null}},r.__decorate([i.property({json:{write:!0}})],t.prototype,\"geometry\",void 0),r.__decorate([i.writer(\"geometry\")],t.prototype,\"writeGeometry\",null),r.__decorate([i.property({type:u,json:{write:!0}})],t.prototype,\"mosaicRule\",null),r.__decorate([i.writer(\"mosaicRule\")],t.prototype,\"writeMosaicRule\",null),r.__decorate([i.property({type:s,json:{write:!0}})],t.prototype,\"renderingRule\",null),r.__decorate([i.writer(\"renderingRule\")],t.prototype,\"writeRenderingRule\",null),r.__decorate([i.property({type:[s],json:{write:!0}})],t.prototype,\"renderingRules\",void 0),r.__decorate([i.writer(\"renderingRules\")],t.prototype,\"writeRenderingRules\",null),r.__decorate([i.property({type:p,json:{write:!0}})],t.prototype,\"pixelSize\",void 0),r.__decorate([i.writer(\"pixelSize\")],t.prototype,\"writePixelSize\",null),r.__decorate([i.property({type:Boolean,json:{write:!0}})],t.prototype,\"returnGeometry\",void 0),r.__decorate([i.property({type:Boolean,json:{write:!0}})],t.prototype,\"returnCatalogItems\",void 0),r.__decorate([i.property({type:Boolean,json:{write:!0}})],t.prototype,\"returnPixelValues\",void 0),r.__decorate([i.property({type:Number,json:{write:!0}})],t.prototype,\"maxItemCount\",void 0),r.__decorate([i.property({type:o,json:{write:{target:\"time\"}}})],t.prototype,\"timeExtent\",void 0),r.__decorate([i.writer(\"timeExtent\")],t.prototype,\"writeTimeExtent\",null),r.__decorate([i.property({json:{write:!0}})],t.prototype,\"raster\",void 0),r.__decorate([i.property({json:{write:!0}})],t.prototype,\"viewId\",void 0),t=r.__decorate([i.subclass(\"esri.tasks.support.ImageServiceIdentifyParameters\")],t)}(n.JSONSupport)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../core/jsonMap\",\"../../core/JSONSupport\",\"../../core/lang\",\"../../core/accessorSupport/decorators\",\"../../geometry/Point\",\"./DimensionalDefinition\",\"./RasterFunction\"],(function(e,t,r,o,i,n,s,a,c,p){\"use strict\";var d=o.strict()({MT_FIRST:\"first\",MT_LAST:\"last\",MT_MIN:\"min\",MT_MAX:\"max\",MT_MEAN:\"mean\",MT_BLEND:\"blend\",MT_SUM:\"sum\"}),l=o.strict()({esriMosaicNone:\"none\",esriMosaicCenter:\"center\",esriMosaicNadir:\"nadir\",esriMosaicViewpoint:\"viewpoint\",esriMosaicAttribute:\"attribute\",esriMosaicLockRaster:\"lock-raster\",esriMosaicNorthwest:\"northwest\",esriMosaicSeamline:\"seamline\"});return function(e){function t(t){var r=e.call(this,t)||this;return r.ascending=!0,r.itemRenderingRule=null,r.lockRasterIds=null,r.method=null,r.multidimensionalDefinition=null,r.objectIds=null,r.operation=null,r.sortField=null,r.sortValue=null,r.viewpoint=null,r.where=null,r}var o;return r.__extends(t,e),o=t,t.prototype.readAscending=function(e,t){return null!=t.ascending?t.ascending:null==t.sortAscending||t.sortAscending},t.prototype.readMethod=function(e,t){return function(e){var t;switch(e?e.toLowerCase().replace(\"esrimosaic\",\"\"):\"\"){case\"byattribute\":case\"attribute\":t=\"esriMosaicAttribute\";break;case\"lockraster\":t=\"esriMosaicLockRaster\";break;case\"center\":t=\"esriMosaicCenter\";break;case\"northwest\":t=\"esriMosaicNorthwest\";break;case\"nadir\":t=\"esriMosaicNadir\";break;case\"viewpoint\":t=\"esriMosaicViewpoint\";break;case\"seamline\":t=\"esriMosaicSeamline\";break;case\"none\":default:t=\"esriMosaicNone\"}return l.fromJSON(t)}(t.mosaicMethod||t.defaultMosaicMethod)},t.prototype.readOperation=function(e,t){var r=t.mosaicOperation,o=t.mosaicOperator&&t.mosaicOperator.toLowerCase(),i=r||(o?d.toJSON(o):null);return d.fromJSON(i)||\"first\"},t.prototype.castSortValue=function(e){return null==e||\"string\"==typeof e||\"number\"==typeof e?e:\"\"+e},t.prototype.clone=function(){return new o({ascending:this.ascending,itemRenderingRule:n.clone(this.itemRenderingRule),lockRasterIds:n.clone(this.lockRasterIds),method:this.method,multidimensionalDefinition:n.clone(this.multidimensionalDefinition),objectIds:n.clone(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:n.clone(this.viewpoint),where:this.where})},r.__decorate([s.property({type:Boolean,json:{write:!0}})],t.prototype,\"ascending\",void 0),r.__decorate([s.reader(\"ascending\",[\"ascending\",\"sortAscending\"])],t.prototype,\"readAscending\",null),r.__decorate([s.property({type:p,json:{write:!0}})],t.prototype,\"itemRenderingRule\",void 0),r.__decorate([s.property({type:[Number],json:{write:{overridePolicy:function(){return{enabled:\"lock-raster\"===this.method}}}}})],t.prototype,\"lockRasterIds\",void 0),r.__decorate([s.property({type:String,json:{type:l.jsonValues,write:{target:\"mosaicMethod\",writer:l.write}}})],t.prototype,\"method\",void 0),r.__decorate([s.reader(\"method\",[\"mosaicMethod\",\"defaultMosaicMethod\"])],t.prototype,\"readMethod\",null),r.__decorate([s.property({type:[c],json:{write:!0}})],t.prototype,\"multidimensionalDefinition\",void 0),r.__decorate([s.property({type:[Number],json:{read:{source:\"fids\"},write:{target:\"fids\"}}})],t.prototype,\"objectIds\",void 0),r.__decorate([s.property({json:{type:d.jsonValues,read:{reader:d.read},write:{target:\"mosaicOperation\",writer:d.write}}})],t.prototype,\"operation\",void 0),r.__decorate([s.reader(\"operation\",[\"mosaicOperation\",\"mosaicOperator\"])],t.prototype,\"readOperation\",null),r.__decorate([s.property({type:String,json:{write:{overridePolicy:function(){return{enabled:\"attribute\"===this.method}}}}})],t.prototype,\"sortField\",void 0),r.__decorate([s.property({type:[String,Number],json:{write:{allowNull:!0,overridePolicy:function(){return{enabled:\"attribute\"===this.method,allowNull:!0}}}}})],t.prototype,\"sortValue\",void 0),r.__decorate([s.cast(\"sortValue\")],t.prototype,\"castSortValue\",null),r.__decorate([s.property({type:a,json:{write:!0}})],t.prototype,\"viewpoint\",void 0),r.__decorate([s.property({type:String,json:{write:!0}})],t.prototype,\"where\",void 0),t=o=r.__decorate([s.subclass(\"esri.layers.support.MosaicRule\")],t)}(i.JSONSupport)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../core/jsonMap\",\"../../core/JSONSupport\",\"../../core/accessorSupport/decorators\",\"./imageryRendererUtils\",\"./MosaicRule\",\"./RasterFunction\"],(function(e,r,t,o,i,n,a,p,l){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.ExportImageServiceParameters=void 0;var s=new o.default({RSP_NearestNeighbor:\"nearest\",RSP_BilinearInterpolation:\"bilinear\",RSP_CubicConvolution:\"cubic\",RSP_Majority:\"majority\"}),d=new o.default({esriNoDataMatchAny:\"any\",esriNoDataMatchAll:\"all\"}),y=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.layer=null,r.adjustAspectRatio=void 0,r.bandIds=void 0,r.compression=void 0,r.compressionQuality=void 0,r.compressionTolerance=.01,r.format=null,r.interpolation=null,r.noData=null,r.noDataInterpretation=void 0,r.pixelType=void 0,r.lercVersion=2,r}return t.__extends(r,e),r.prototype.writeAdjustAspectRatio=function(e,r,t){this.layer.version<10.3||(r[t]=e)},r.prototype.writeCompressionQuality=function(e,r,t){this.format&&this.format.toLowerCase().indexOf(\"jpg\")>-1&&null!=e&&(r[t]=e)},r.prototype.writeCompressionTolerance=function(e,r,t){\"lerc\"===this.format&&null!=e&&(r[t]=e)},r.prototype.writeLercVersion=function(e,r,t){\"lerc\"===this.format&&this.layer.version>=10.5&&(r[t]=e)},Object.defineProperty(r.prototype,\"version\",{get:function(){var e=this.layer;return e.bandIds,e.format,e.compressionQuality,e.compressionTolerance,e.interpolation,e.noData,e.noDataInterpretation,e.mosaicRule,e.renderingRule,e.adjustAspectRatio,e.pixelFilter,e.renderer,e.definitionExpression,(this._get(\"version\")||0)+1},set:function(e){this._set(\"version\",e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"mosaicRule\",{get:function(){var e=this.layer,r=e.mosaicRule,t=e.definitionExpression;return r?t&&t!==r.where&&((r=r.clone()).where=t):t&&(r=new p({where:t})),r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"renderingRule\",{get:function(){var e=this.layer,r=e.renderingRule,t=e.pixelFilter,o=!e.format||e.format.indexOf(\"jpg\")>-1||e.format.indexOf(\"png\")>-1;return r=this._addResampleRasterFunction(r),o&&!t&&(r=this.combineRendererWithRenderingRule()),r},enumerable:!1,configurable:!0}),r.prototype.combineRendererWithRenderingRule=function(){var e,r=this.layer,t=r.rasterInfo,o=r.renderingRule,i=r.renderer;return i&&a.isSupportedRendererType(i)?a.combineRenderingRules(a.convertRendererToRenderingRule(i,{rasterAttributeTable:t.attributeTable,pixelType:t.pixelType,dataType:t.dataType,bandProperties:null===(e=t.keyProperties)||void 0===e?void 0:e.BandProperties,convertColorRampToColormap:r.version<10.6}),o):o},r.prototype._addResampleRasterFunction=function(e){var r,t=null;if(\"vector-field\"===(null===(r=this.layer.renderer)||void 0===r?void 0:r.type)){var o={},i=this.layer.renderingRule;if(!i||\"Resample\"!==i.functionName){var n=\"esriImageServiceDataTypeVector-UV\"===this.layer.serviceDataType?7:10;o.rasterFunction=\"Resample\",o.rasterFunctionArguments={ResamplingType:n,InputCellSize:{x:this.layer.pixelSizeX,y:this.layer.pixelSizeY}}}t=l.fromJSON(o)}return a.combineRenderingRules(t,e)},t.__decorate([n.property()],r.prototype,\"layer\",void 0),t.__decorate([n.property({json:{write:!0}})],r.prototype,\"adjustAspectRatio\",void 0),t.__decorate([n.writer(\"adjustAspectRatio\")],r.prototype,\"writeAdjustAspectRatio\",null),t.__decorate([n.property({json:{write:!0}}),n.aliasOf(\"layer.bandIds\")],r.prototype,\"bandIds\",void 0),t.__decorate([n.property({json:{write:!0}})],r.prototype,\"compression\",void 0),t.__decorate([n.property({json:{write:!0}}),n.aliasOf(\"layer.compressionQuality\")],r.prototype,\"compressionQuality\",void 0),t.__decorate([n.writer(\"compressionQuality\")],r.prototype,\"writeCompressionQuality\",null),t.__decorate([n.property({json:{write:!0}}),n.aliasOf(\"layer.compressionTolerance\")],r.prototype,\"compressionTolerance\",void 0),t.__decorate([n.writer(\"compressionTolerance\")],r.prototype,\"writeCompressionTolerance\",null),t.__decorate([n.property({json:{write:!0}}),n.aliasOf(\"layer.format\")],r.prototype,\"format\",void 0),t.__decorate([n.property({type:String,json:{read:{reader:s.read},write:{writer:s.write}}}),n.aliasOf(\"layer.interpolation\")],r.prototype,\"interpolation\",void 0),t.__decorate([n.property({json:{write:!0}}),n.aliasOf(\"layer.noData\")],r.prototype,\"noData\",void 0),t.__decorate([n.property({type:String,json:{read:{reader:d.read},write:{writer:d.write}}}),n.aliasOf(\"layer.noDataInterpretation\")],r.prototype,\"noDataInterpretation\",void 0),t.__decorate([n.property({json:{write:!0}})],r.prototype,\"pixelType\",void 0),t.__decorate([n.property({json:{write:!0}})],r.prototype,\"lercVersion\",void 0),t.__decorate([n.writer(\"lercVersion\")],r.prototype,\"writeLercVersion\",null),t.__decorate([n.property({type:Number,dependsOn:[\"layer.adjustAspectRatio\",\"layer.bandIds\",\"layer.format\",\"layer.compressionQuality\",\"layer.compressionTolerance\",\"layer.definitionExpression\",\"layer.interpolation\",\"layer.noData\",\"layer.noDataInterpretation\",\"layer.mosaicRule\",\"layer.renderingRule\",\"layer.pixelFilter\",\"layer.renderer\",\"lercVersion\",\"pixelType\"]})],r.prototype,\"version\",null),t.__decorate([n.property({dependsOn:[\"layer.mosaicRule\",\"layer.definitionExpression\"],json:{write:!0}})],r.prototype,\"mosaicRule\",null),t.__decorate([n.property({dependsOn:[\"layer.renderingRule\",\"layer.renderer\",\"layer.rasterInfo\",\"layer.format\"],json:{write:!0}})],r.prototype,\"renderingRule\",null),r=t.__decorate([n.subclass(\"esri.layers.mixins.ExportImageServiceParameters\")],r)}(i.JSONSupport);r.ExportImageServiceParameters=y}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../core/JSONSupport\",\"../../core/lang\",\"../../core/accessorSupport/decorators\",\"../../core/accessorSupport/ensureType\"],(function(e,r,t,o,i,s,n){\"use strict\";return function(e){function r(r){var t=e.call(this,r)||this;return t.variableName=null,t.dimensionName=null,t.values=[],t.isSlice=!1,t}var o;return t.__extends(r,e),o=r,r.prototype.clone=function(){return new o({variableName:this.variableName,dimensionName:this.dimensionName,values:i.clone(this.values),isSlice:this.isSlice})},t.__decorate([s.property({type:String,json:{write:!0}})],r.prototype,\"variableName\",void 0),t.__decorate([s.property({type:String,json:{write:!0}})],r.prototype,\"dimensionName\",void 0),t.__decorate([s.property({type:n.types.array(n.types.oneOf([n.types.native(Number),n.types.array(n.types.native(Number))])),json:{write:!0}})],r.prototype,\"values\",void 0),t.__decorate([s.property({type:Boolean,json:{write:!0}})],r.prototype,\"isSlice\",void 0),r=o=t.__decorate([s.subclass(\"esri.layers.support.DimensionalDefinition\")],r)}(o.JSONSupport)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../core/accessorSupport/decorators\",\"../rest/imageServiceIdentify\",\"./Task\"],(function(e,t,r,i,s,n){\"use strict\";return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.execute=function(e,t){return s.imageServiceIdentify(this.url,e,t)},t=r.__decorate([i.subclass(\"esri.tasks.ImageServiceIdentifyTask\")],t)}(n)}));"],"sourceRoot":""}