Custom Gis Application with Arcgis Javascript API with modern layouting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

126 lines
62 KiB

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
require({cache:{"esri/layers/support/rasterFunctions/creators/createAppearenceFunctions":function(){define(["exports","./utils"],function(a,p){function f(g,b){const {raster:e,dynamicRangeAdjustment:h,gamma:r,useGamma:z,outputMin:B=0,outputMax:k=255}=b;return{raster:e,stretchType:g,min:B,max:k,useGamma:!!z,gamma:r,dra:!!h}}const c={"user-defined":-1,"line-detection-horizontal":0,"line-detection-vertical":1,"line-detection-left-diagonal":2,"line-detection-right-diagonal":3,"gradient-north":4,"gradient-west":5,
"gradient-east":6,"gradient-south":7,"gradient-north-east":8,"gradient-north-west":9,"smooth-arithmetic-mean":10,smoothing3x3:11,smoothing5x5:12,sharpening3x3:13,sharpening5x5:14,laplacian3x3:15,laplacian5x5:16,"sobel-horizontal":17,"sobel-vertical":18,sharpen:19,sharpen2:20,"point-spread":21,none:255};a.contrastBrightness=function(g){const {contrastOffset:b,brightnessOffset:e,raster:h,outputPixelType:r}=g;return p.createRasterFunction("ContrastBrightness",{contrastOffset:b,brightnessOffset:e,raster:h},
r)};a.convolution=function(g){const {raster:b,outputPixelType:e}=g;if("convolutionType"in g&&"user-defined"!==g.convolutionType)return p.createRasterFunction("Convolution",{type:c[g.convolutionType]??255,raster:b},e);const {rows:h,cols:r,kernel:z}=g;return p.createRasterFunction("Convolution",{type:-1,rows:h,cols:r,kernel:z,raster:b},e)};a.stretchHistogramEqualization=function(g){const b=f(4,g);return p.createRasterFunction("Stretch",b,g.outputPixelType)};a.stretchMinMax=function(g){const b=f(5,g);
b.statistics=g.statistics?.map(e=>[e.min,e.max,e.avg??0,e.stddev??-1]);return p.createRasterFunction("Stretch",b,g.outputPixelType)};a.stretchNone=function(g){const b=f(0,g);return p.createRasterFunction("Stretch",b,g.outputPixelType)};a.stretchPercentClip=function(g){const b=f(6,g);b.minPercent=g.minPercent??.25;b.maxPercent=g.maxPercent??.25;return p.createRasterFunction("Stretch",b,g.outputPixelType)};a.stretchStandardDeviation=function(g){const b=f(3,g);b.statistics=g.statistics?.map(e=>[e.min,
e.max,e.avg??0,e.stddev??-1]);b.numberOfStandardDeviations=g.numberOfStandardDeviations??2;return p.createRasterFunction("Stretch",b,g.outputPixelType)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/rasterFunctions/creators/utils":function(){define(["exports","../../RasterFunction"],function(a,p){a.createRasterFunction=function(f,c,g){Object.keys(c).forEach(b=>{null==c[b]&&delete c[b]});g||="unknown";return new p({functionName:f,functionArguments:c,outputPixelType:g})};
Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/RasterFunction":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./RasterFunctionTemplate".split(" "),function(a,p,f,
c,g,b,e,h,r,z,B){var k;const q=new Set(["raster","raster2","dem","fillraster"]),A=new Set(["rasters"]),x=m=>m?.rasterFunction?t.fromJSON(m):m,v=m=>m&&m instanceof t?m.toJSON():m,u=m=>m?.functionName&&!m.declaredClass?new t(m):m;g={types:{key:"type",base:null,typeMap:{RasterFunctionTemplate:B}},json:{write:!0,name:"rasterFunctionDefinition"}};let t=k=class extends p.JSONSupport{constructor(m){super(m);this.functionName=null;this.outputPixelType="unknown";this.functionDefinition=this.variableName=null}set functionArguments(m){if(m){const d=
Object.keys(m);if(d.some(l=>{var n;if(n=q.has(l.toLowerCase()))l=m[l],n=l?.functionName&&!l.declaredClass;return n})||d.some(l=>A.has(l.toLowerCase())&&Array.isArray(m[l])&&m[l].some(n=>n?.functionName&&!n.declaredClass))){m=f.clone(m);for(const l of d)q.has(l.toLowerCase())?m[l]=u(m[l]):A.has(l.toLowerCase())&&Array.isArray(m[l])&&(m[l]=m[l].map(n=>u(n)))}}this._set("functionArguments",m)}readFunctionArguments(m){if(null==m)var d=null;else{m=f.clone(m);var l={};for(d of Object.keys(m))q.has(d.toLowerCase())?
l[d]=x(m[d]):A.has(d.toLowerCase())&&Array.isArray(m[d])?l[d]=m[d].map(x):l[d]=m[d];d=l}return d}writeFunctionArguments(m,d,l){const n={};for(const y of Object.keys(m))q.has(y.toLowerCase())?n[y]=v(m[y]):A.has(y.toLowerCase())&&Array.isArray(m[y])?n[y]=m[y].map(v):n[y]=v(m[y]);d[l]=n}readFunctionName(m,d){m=d.rasterFunctionInfos;const l=d.name;return l?l:m?.length&&"None"!==m[0].name?m[0].name:d.rasterFunctionDefinition?d.rasterFunctionDefinition.name:d.rasterFunction}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(m){this.functionDefinition=
m?B.fromJSON(m):null}get hasClipFunction(){return this.rasterFunctionDefinition?JSON.stringify(this.rasterFunctionDefinition).includes('"type":"ClipFunction"'):JSON.stringify(this).includes('"rasterFunction":"Clip"')}clone(){return new k({functionName:this.functionName,functionArguments:f.clone(this.functionArguments),outputPixelType:this.outputPixelType,variableName:this.variableName,rasterFunctionDefinition:f.clone(this.rasterFunctionDefinition)})}};a.__decorate([c.property({json:{type:Object,name:"rasterFunctionArguments"}})],
t.prototype,"functionArguments",null);a.__decorate([h.reader("functionArguments")],t.prototype,"readFunctionArguments",null);a.__decorate([z.writer("functionArguments")],t.prototype,"writeFunctionArguments",null);a.__decorate([c.property({json:{type:String,write:{target:"rasterFunction"}}})],t.prototype,"functionName",void 0);a.__decorate([h.reader("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],t.prototype,"readFunctionName",null);a.__decorate([e.enumeration({C128:"c128",
C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1}),c.property({json:{default:"unknown"}})],t.prototype,"outputPixelType",void 0);a.__decorate([c.property({type:String,json:{read:!0,write:!0}})],t.prototype,"variableName",void 0);a.__decorate([c.property()],t.prototype,"rasterFunctionDefinition",null);a.__decorate([c.property(g)],t.prototype,"functionDefinition",void 0);a.__decorate([c.property()],t.prototype,
"hasClipFunction",null);return t=k=a.__decorate([r.subclass("esri.layers.support.RasterFunction")],t)})},"esri/layers/support/RasterFunctionTemplate":function(){define("../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass ./RasterFunctionInfo ./RasterFunctionProperties".split(" "),function(a,p,f,c,g,b,e,h,r,z){p=new p.JSONMap({0:"mosaic",
1:"item",2:"item-group"},{useNumericKeys:!0});f=class extends f.JSONSupport{constructor(){super(...arguments);this.functionType="mosaic";this.type="RasterFunctionTemplate"}};a.__decorate([c.property({type:[String],json:{write:!0}})],f.prototype,"aliases",void 0);a.__decorate([c.property({type:Object,json:{write:!0}})],f.prototype,"arguments",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],f.prototype,"description",void 0);a.__decorate([c.property({type:r,json:{write:!0,name:"function"}})],
f.prototype,"functionInfo",void 0);a.__decorate([c.property({type:p.apiValues,json:{type:[0,1,2],read:p.read,write:p.write}})],f.prototype,"functionType",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],f.prototype,"group",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],f.prototype,"help",void 0);a.__decorate([c.property({type:Number,json:{type:g.Integer,write:!0,name:"_object_id"}})],f.prototype,"id",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],
f.prototype,"name",void 0);a.__decorate([c.property({type:String,json:{write:!0,name:"definition"}})],f.prototype,"queryDefinition",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],f.prototype,"tag",void 0);a.__decorate([c.property({type:z,json:{write:!0}})],f.prototype,"properties",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],f.prototype,"thumbnail",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],f.prototype,"thumbnailEx",void 0);a.__decorate([c.property({json:{type:["RasterFunctionTemplate"],
write:!0}})],f.prototype,"type",void 0);return f=a.__decorate([h.subclass("esri.layers.support.RasterFunctionTemplate")],f)})},"esri/layers/support/RasterFunctionInfo":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass ./rasterEnums".split(" "),function(a,p,f,c,g,b,e,h){p=class extends p.JSONSupport{constructor(){super(...arguments);
this.pixelType="unknown"}};a.__decorate([f.property({type:String,json:{write:!0}})],p.prototype,"name",void 0);a.__decorate([f.property({type:String,json:{write:!0}})],p.prototype,"description",void 0);a.__decorate([f.property({type:c.Integer,json:{type:c.Integer,write:!0,name:"_object_id"}})],p.prototype,"id",void 0);a.__decorate([f.property({type:String,json:{type:h.pixelTypeKebabDict.jsonValues,read:h.pixelTypeKebabDict.read,write:h.pixelTypeKebabDict.write}})],p.prototype,"pixelType",void 0);
a.__decorate([f.property({type:String,json:{write:!0}})],p.prototype,"type",void 0);return p=a.__decorate([e.subclass("esri.layers.support.RasterFunctionInfo")],p)})},"esri/layers/support/rasterEnums":function(){define(["exports","../../core/jsonMap"],function(a,p){const f=p.strict()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),c=p.strict()({esriNoDataMatchAny:"any",esriNoDataMatchAll:"all"});p=p.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"});a.interpolationKebab=f;a.noDataInterpretationKebab=c;a.pixelTypeKebabDict=p;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/RasterFunctionProperties":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass ./RasterFunctionVariable".split(" "),
function(a,p,f,c,g,b,e,h){g={key:"type",base:null,typeMap:{RasterFunctionVariable:h}};p=class extends p.JSONSupport{};a.__decorate([f.property({types:g,json:{types:g,name:"MatchVariable"}})],p.prototype,"matchVariable",void 0);a.__decorate([f.property({types:g,json:{types:g,name:"UnionDimension"}})],p.prototype,"unionDimension",void 0);a.__decorate([f.property({type:Number,json:{type:c.Integer,write:!0,name:"_object_id"}})],p.prototype,"id",void 0);a.__decorate([f.property({type:String,json:{write:!0}})],
p.prototype,"type",void 0);return p=a.__decorate([e.subclass("esri.layers.support.RasterFunctionProperties")],p)})},"esri/layers/support/RasterFunctionVariable":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass".split(" "),function(a,p,f,c,g,b,e){p=class extends p.JSONSupport{constructor(){super(...arguments);this.isPublic=
this.isDataset=!1;this.type="RasterFunctionVariable"}};a.__decorate([f.property({type:String,json:{write:!0}})],p.prototype,"name",void 0);a.__decorate([f.property({type:Number,json:{type:c.Integer,write:!0,name:"_object_id"}})],p.prototype,"id",void 0);a.__decorate([f.property({type:Boolean,json:{write:!0}})],p.prototype,"isDataset",void 0);a.__decorate([f.property({type:Boolean,json:{write:!0}})],p.prototype,"isPublic",void 0);a.__decorate([f.property({json:{write:!0}})],p.prototype,"value",void 0);
a.__decorate([f.property({type:String,json:{write:!0}})],p.prototype,"type",void 0);return p=a.__decorate([e.subclass("esri.layers.support.RasterFunctionVariable")],p)})},"esri/layers/support/rasterFunctions/creators/createBandIndexFunctions":function(){define(["exports","./utils"],function(a,p){function f(c,g,b,e=[]){const {raster:h,outputPixelType:r}=c;c={raster:h,method:g,bandIndexes:b.map(z=>z+1).concat(e).join(" ")};return p.createRasterFunction("BandArithmetic",c,r)}a.bandArithmeticBAI=function(c){const {redBandId:g,
nirBandId:b}=c;return f(c,24,[g,b])};a.bandArithmeticCIg=function(c){const {nirBandId:g,greenBandId:b}=c;return f(c,17,[g,b])};a.bandArithmeticCIre=function(c){const {nirBandId:g,reBandId:b}=c;return f(c,16,[g,b])};a.bandArithmeticClayMinerals=function(c){const {swir1BandId:g,swir2BandId:b}=c;return f(c,22,[g,b])};a.bandArithmeticCustom=function(c){const {raster:g,bandIndexes:b,outputPixelType:e}=c;return p.createRasterFunction("BandArithmetic",{raster:g,method:0,bandIndexes:b},e)};a.bandArithmeticEVI=
function(c){const {nirBandId:g,redBandId:b,blueBandId:e}=c;return f(c,19,[g,b,e])};a.bandArithmeticFerrousMinerals=function(c){const {swirBandId:g,nirBandId:b}=c;return f(c,21,[g,b])};a.bandArithmeticGEMI=function(c){const {nirBandId:g,redBandId:b}=c;return f(c,5,[g,b])};a.bandArithmeticGNDVI=function(c){const {nirBandId:g,greenBandId:b}=c;return f(c,10,[g,b])};a.bandArithmeticGVITM=function(c){return f(c,7,c.bandIds)};a.bandArithmeticIronOxide=function(c){const {redBandId:g,blueBandId:b}=c;return f(c,
20,[g,b])};a.bandArithmeticMNDWI=function(c){const {greenBandId:g,swirBandId:b}=c;return f(c,29,[g,b])};a.bandArithmeticMSAVI=function(c){const {nirBandId:g,redBandId:b}=c;return f(c,4,[g,b])};a.bandArithmeticMTVI2=function(c){const {nirBandId:g,redBandId:b,greenBandId:e}=c;return f(c,14,[g,b,e])};a.bandArithmeticNBR=function(c){const {nirBandId:g,swirBandId:b}=c;return f(c,25,[g,b])};a.bandArithmeticNDBI=function(c){const {swirBandId:g,nirBandId:b}=c;return f(c,26,[g,b])};a.bandArithmeticNDMI=function(c){const {nirBandId:g,
swirBandId:b}=c;return f(c,27,[g,b])};a.bandArithmeticNDSI=function(c){const {greenBandId:g,swirBandId:b}=c;return f(c,28,[g,b])};a.bandArithmeticNDVI=function(c){const {nirBandId:g,redBandId:b,scientificOutput:e=!0,raster:h,outputPixelType:r}=c;return p.createRasterFunction("NDVI",{raster:h,visibleBandID:b,infraredBandID:g,scientificOutput:e},r)};a.bandArithmeticNDVIre=function(c){const {nirBandId:g,reBandId:b}=c;return f(c,12,[g,b])};a.bandArithmeticNDWI=function(c){const {nirBandId:g,greenBandId:b}=
c;return f(c,18,[g,b])};a.bandArithmeticPVI=function(c){const {nirBandId:g,redBandId:b,slope:e=.3,gradient:h=.5}=c;return f(c,6,[g,b],[e,h])};a.bandArithmeticRTVICore=function(c){const {nirBandId:g,reBandId:b,greenBandId:e}=c;return f(c,15,[g,b,e])};a.bandArithmeticSAVI=function(c){const {nirBandId:g,redBandId:b,factor:e=.33}=c;return f(c,2,[g,b],[e])};a.bandArithmeticSR=function(c){const {nirBandId:g,redBandId:b}=c;return f(c,11,[g,b])};a.bandArithmeticSRre=function(c){const {nirBandId:g,reBandId:b}=
c;return f(c,13,[g,b])};a.bandArithmeticSultan=function(c){return f(c,8,c.bandIds)};a.bandArithmeticTSAVI=function(c){const {nirBandId:g,redBandId:b,slope:e=.33,intercept:h=.5,factor:r=1.5}=c;return f(c,3,[g,b],[e,h,r])};a.bandArithmeticVARI=function(c){const {redBandId:g,greenBandId:b,blueBandId:e}=c;return f(c,9,[g,b,e])};a.bandArithmeticWNDWI=function(c){const {greenBandId:g,nirBandId:b,swirBandId:e,alpha:h=.5}=c;return f(c,23,[g,b,e],[h])};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},
"esri/layers/support/rasterFunctions/creators/createDataManagementFunctions":function(){define(["exports","../../../../colorUtils","../../rasterFunctionConstants","./utils","../../../../renderers/support/colorRampUtils"],function(a,p,f,c,g){function b(h){const r=h.colormap.map(k=>{if("value"in k){const q="string"===typeof k.color?p.getNamedColor(k.color)??p.hex2rgba(k.color):k.color;k=[k.value,...q];k[4]&&1>=k[4]&&(k[4]=Math.round(255*k[4]))}return k}),{raster:z,outputPixelType:B}=h;return c.createRasterFunction("Colormap",
{colormap:r,raster:z},B)}function e(h){const {colorRampName:r}=h,z=Object.values(f.colormapName).find(A=>A.toLowerCase()===r?.toLowerCase()),B=g.colorRampDict.toJSON(r),{raster:k,outputPixelType:q="unknown"}=h;return c.createRasterFunction("Colormap",z?{colormapName:z,raster:k}:{colorRampName:B,raster:k},q)}a.clip=function(h){const {geometry:r,keepOutside:z,outputPixelType:B="unknown",raster:k}=h;h="declaredClass"in r?r.toJSON():r;return c.createRasterFunction("Clip",{clippingGeometry:h,clippingType:z?
2:1,raster:k},B)};a.colormap=function(h){if("colormap"in h)h=b(h);else if("colorRamp"in h){const {raster:r,colorRamp:z,outputPixelType:B}=h;h={colorRamp:"toJSON"in z?z.toJSON():z,raster:r};h=c.createRasterFunction("Colormap",h,B)}else h=e(h);return h};a.compositeBands=function(h){const {rasters:r,outputPixelType:z}=h;return c.createRasterFunction("CompositeBand",{rasters:r},z)};a.extractBand=function(h){const {raster:r,outputPixelType:z="unknown"}=h,B={raster:r,missingBandAction:"fail"===h.missingBandAction?
1:0};"bandIds"in h?B.bandIds=h.bandIds:"bandNames"in h?B.bandNames=h.bandNames:"bandWavelengths"in h&&(B.bandWavelengths=h.bandWavelengths);return c.createRasterFunction("ExtractBand",B,z)};a.grayscale=function(h){const {weights:r,outputPixelType:z="unknown",raster:B}=h;return c.createRasterFunction("Grayscale",{conversionParameters:r,raster:B},z)};a.mask=function(h){const {raster:r,outputPixelType:z="unknown"}=h,B=h.includedRanges?.flatMap(q=>q),k=h.noDataValues?.map(q=>q.join(" "));return c.createRasterFunction("Mask",
{raster:r,includedRanges:B,noDataInterpretation:"match-all"===h.noDataInterpretation?1:0,noDataValues:k},z)};a.remap=function(h){const {allowUnmatched:r,raster:z,rangeMaps:B,outputPixelType:k}=h;var q=B?.filter(({output:x})=>null!=x);h=q?.flatMap(({range:x})=>x);q=q?.map(({output:x})=>x);const A=B?.filter(x=>null==x.output)?.flatMap(({range:x})=>x);return c.createRasterFunction("Remap",{allowUnmatched:r,raster:z,inputRanges:h,outputValues:q,noDataRanges:A},k)};a.statisticsHistogram=function(h){const {raster:r,
histograms:z,outputPixelType:B}=h;h=h.statistics?.map(k=>({min:k.min,max:k.max,mean:k.avg,standardDeviation:k.stddev}));return c.createRasterFunction("StatisticsHistograms",{raster:r,statistics:h,histograms:z},B)};a.table=function(h){const {raster:r,attributeTable:z,outputPixelType:B="unknown"}=h;h="toJSON"in z?z.toJSON():z;return c.createRasterFunction("Table",{raster:r,attributeTableAsRecordSet:h},B)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/rasterFunctionConstants":function(){define(["exports"],
function(a){const p={plus:1,minus:2,times:3,sqrt:4,power:5,abs:10,divide:23,exp:25,exp10:26,exp2:27,int:30,float:32,ln:35,log10:36,log2:37,mod:44,negate:45,roundDown:48,roundUp:49,square:53,floatDivide:64,floorDivide:65},f={bitwiseAnd:11,bitwiseLeftShift:12,bitwiseNot:13,bitwiseOr:14,bitwiseRightShift:15,bitwiseXOr:16,booleanAnd:17,booleanNot:18,booleanOr:19,booleanXOr:20,equalTo:24,greaterThan:28,greaterThanEqual:29,lessThan:33,lessThanEqual:34,isNull:31,notEqual:46},c={acos:6,asin:7,atan:8,atanh:9,
cos:21,cosh:22,sin:51,sinh:52,tan:56,tanh:57,acosh:59,asinh:60,atan2:61},g={majority:38,max:39,mean:40,med:41,min:42,minority:43,range:47,stddev:54,sum:55,variety:58,majorityIgnoreNoData:66,maxIgnoreNoData:67,meanIgnoreNoData:68,medIgnoreNoData:69,minIgnoreNoData:70,minorityIgnoreNoData:71,rangeIgnoreNoData:72,stddevIgnoreNoData:73,sumIgnoreNoData:74,varietyIgnoreNoData:75},b={setNull:50,conditional:78},e={...p,...f,...c,...g,...b};a.arithmeticOperation={plus:1,minus:2,multiply:3,divide:4,power:5,
mod:6};a.bandIndexType={userDefined:0,NDVI:1,SAVI:2,TSAVI:3,MSAVI:4,GEMI:5,PVI:6,GVITM:7,Sultan:8,VARI:9,GNDVI:10,SR:11,NDVIRe:12,SRRe:13,MTVI2:14,RTVICore:15,CIRe:16,CIG:17,NDWI:18,EVI:19,ironOxide:20,ferrousMinerals:21,clayMinerals:22,WNDWI:23,BAI:24,NBR:25,NDBI:26,NDMI:27,NDSI:28,MNDWI:29};a.cellStatisticalOperation=g;a.clippingType={outside:1,inside:2};a.colorRampName={aspect:"Aspect",blackToWhite:"Black to White",blueBright:"Blue Bright",blueLightToDark:"Blue Light to Dark",blueGreenBright:"Blue-Green Bright",
blueGreenLightToDark:"Blue-Green Light to Dark",brownLightToDark:"Brown Light to Dark",brownToBlueGreenDivergingBright:"Brown to Blue Green Diverging, Bright",brownToBlueGreenDivergingDark:"Brown to Blue Green Diverging, Dark",coefficientBias:"Coefficient Bias",coldToHotDiverging:"Cold to Hot Diverging",conditionNumber:"Condition Number",cyanToPurple:"Cyan to Purple",cyanLightToBlueDark:"Cyan-Light to Blue-Dark",distance:"Distance",elevation1:"Elevation #1",elevation2:"Elevation #2",errors:"Errors",
grayLightToDark:"Gray Light to Dark",greenBright:"Green Bright",greenLightToDark:"Green Light to Dark",greenToBlue:"Green to Blue",orangeBright:"Orange Bright",orangeLightToDark:"Orange Light to Dark",partialSpectrum:"Partial Spectrum",partialSpectrum1Diverging:"Partial Spectrum 1 Diverging",partialSpectrum2Diverging:"Partial Spectrum 2 Diverging",pinkToYellowGreenDivergingBright:"Pink to YellowGreen Diverging, Bright",pinkToYellowGreenDivergingDark:"Pink to YellowGreen Diverging, Dark",precipitation:"Precipitation",
prediction:"Prediction",purpleBright:"Purple Bright",purpleToGreenDivergingBright:"Purple to Green Diverging, Bright",purpleToGreenDivergingDark:"Purple to Green Diverging, Dark",purpleBlueBright:"Purple-Blue Bright",purpleBlueLightToDark:"Purple-Blue Light to Dark",purpleRedBright:"Purple-Red Bright",purpleRedLightToDark:"Purple-Red Light to Dark",redBright:"Red Bright",redLightToDark:"Red Light to Dark",redToBlueDivergingBright:"Red to Blue Diverging, Bright",redToBlueDivergingDark:"Red to Blue Diverging, Dark",
redToGreen:"Red to Green",redToGreenDivergingBright:"Red to Green Diverging, Bright",redToGreenDivergingDark:"Red to Green Diverging, Dark",slope:"Slope",spectrumFullBright:"Spectrum-Full Bright",spectrumFullDark:"Spectrum-Full Dark",spectrumFullLight:"Spectrum-Full Light",surface:"Surface",temperature:"Temperature",whiteToBlack:"White to Black",yellowToDarkRed:"Yellow to Dark Red",yellowToGreenToDarkBlue:"Yellow to Green to Dark Blue",yellowToRed:"Yellow to Red",yellowGreenBright:"Yellow-Green Bright",
yellowGreenLightToDark:"Yellow-Green Light to Dark"};a.colormapName={random:"Random",NDVI:"NDVI",NDVI2:"NDVI2",NDVI3:"NDVI3",elevation:"Elevation",gray:"Gray",hillshade:"Hillshade"};a.computeChangeMethod={difference:0,relativeDifference:1,categorical:2,spectralEuclidianDistance:3,spectralAngleDifference:4,bandWithMostChange:5};a.convolutionKernel={userDefined:-1,lineDetectionHorizontal:0,lineDetectionVertical:1,lineDetectionLeftDiagonal:2,lineDetectionRightDiagonal:3,gradientNorth:4,gradientWest:5,
gradientEast:6,gradientSouth:7,gradientNorthEast:8,gradientNorthWest:9,smoothArithmeticMean:10,smoothing3x3:11,smoothing5x5:12,sharpening3x3:13,sharpening5x5:14,laplacian3x3:15,laplacian5x5:16,sobelHorizontal:17,sobelVertical:18,sharpen:19,sharpen2:20,pointSpread:21,none:255};a.curvatureType={standard:0,platform:1,profile:2};a.localArithmeticOperation=p;a.localConditionalOperation=b;a.localLogicalOperation=f;a.localOperators=e;a.localTrigonometricOperation=c;a.missingBandAction={bestMatch:0,fail:1};
a.noDataInterpretation={matchAny:0,matchAll:1};a.slopeType={degree:1,percentRise:2,adjusted:3};a.statisticsType={min:1,max:2,mean:3,standardDeviation:4,median:5,majority:6,minority:7};a.stretchType={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/renderers/support/colorRampUtils":function(){define(["exports","../../Color","../../core/colorUtils","../../core/jsonMap","../../core/JSONSupport"],
function(a,p,f,c,g){function b(d,l){if(!d||!l||d.length!==l.length)return!1;for(let n=0;n<d.length;n++)if(d[n]>l[n]+2||d[n]<l[n]-2)return!1;return!0}function e(d){const l=d.clone();l.fromColor=d.toColor;l.toColor=d.fromColor;l.algorithm=d.algorithm;return l}function h(d){if("multipart"===d.type){d=d.clone();if(!d.colorRamps?.length)return d;d.colorRamps=d.colorRamps.reverse().map(l=>e(l));return d}return e(d)}function r(d,l){if(d){l=l??t;var n=null;"algorithmic"===d.type?l.some(y=>{if(b(d.fromColor.toRgb(),
y.fromColor)&&b(d.toColor.toRgb(),y.toColor))return n=y.id,!0}):"multipart"===d.type&&l.some(y=>{const w=d.colorRamps,U=y.colorRamps;if(w&&U&&w.length===U.length&&!U.some((da,ea)=>{if(!b(w[ea].fromColor.toRgb(),(new p(da.fromColor)).toRgb())||!b(w[ea].toColor.toRgb(),(new p(da.toColor)).toRgb()))return!0})){if(n)return!0;n=y.id}});return n}}function z(d,l,n=!1){if(d){var y=!1,w=r(d,l);null!=w||n||(y=!0,d=h(d),w=r(d,l));return w?{id:w,inverted:y}:void 0}}function B(d,l=!1){return(d="string"===typeof d?
d:z(d,void 0,l)?.id)?m.toJSON(d):null}function k(d){d=d||{};const l=d.numColors||256;return{...d,numColors:l,distanceOffset:d.distanceOffset||0,interpolateAlpha:!!d.interpolateAlpha,distanceInterval:d.distanceInterval||1/(l-1),isCustomInterval:null!=d.isCustomInterval?d.isCustomInterval:null!==d.distanceInterval&&d.distanceInterval!==1/(l-1),weights:d.weights}}function q(d,l){let {fromColor:n,toColor:y}=d;n=[...n];y=[...y];3===n.length&&(n=n.concat([255]));3===y.length&&(y=y.concat([255]));d=d.algorithm||
"esriCIELabAlgorithm";var w=k(l);const {numColors:U,distanceOffset:da,isCustomInterval:ea,interpolateAlpha:Y}=w;if(1===U&&0===da)return[n];if(2===U&&0===da&&!ea)return[n,y];var C={r:n[0],g:n[1],b:n[2]};l={r:y[0],g:y[1],b:y[2]};if("esriCIELabAlgorithm"===d){d=f.toLAB(C);l=f.toLAB(l);const {numColors:fa,distanceOffset:V,distanceInterval:I,isCustomInterval:N}=w;let {l:E,a:J,b:F}=d;d=(l.l-E)*I;C=(l.a-J)*I;w=(l.b-F)*I;var D=[];if(V){var K=V/I;E+=K*d;J+=K*C;F+=K*w}for(K=0;K<fa-1;K++)D.push({l:E,a:J,b:F}),
E+=d,J+=C,F+=w;D.push(N?{l:E,a:J,b:F}:l);l=D}else if("esriHSVAlgorithm"===d){d=f.toHSV(C);l=f.toHSV(l);const {numColors:fa,distanceOffset:V,distanceInterval:I,isCustomInterval:N}=w;D=0===d.s;K=0===l.s;C=d.h;w=l.h;D&&!K?C=w:K&&!D&&(l={...l,h:C},w=C);D=Math.abs(w-C);180>D?w=(w-C)*I:(D=360-D,w=C>w?D*I:-D*I);D=(l.s-d.s)*I;K=(l.v-d.v)*I;let {s:E,v:J}=d;d=C;V&&(C=V/I,d=(d+C*w+360)%360,E+=C*D,J+=C*K);C=[];for(var aa=0;aa<fa-1;aa++)C.push({h:d,s:E,v:J}),d=(d+w+360)%360,E+=D,J+=K;C.push(N?{h:d,s:E,v:J}:l);
l=C}else{C=f.toLCH(C);l=f.toLCH(l);const {numColors:fa,distanceOffset:V,distanceInterval:I,isCustomInterval:N}=w;w=C.h;D=l.h;d=2*Math.PI;w<=D?(K=D-w,w=D-w-d,w=Math.abs(w)<Math.abs(K)?w:K):(K=D+d-w,w=D-w,w=Math.abs(w)<Math.abs(K)?w:K);w*=I;D=(l.l-C.l)*I;K=(l.c-C.c)*I;let {l:E,c:J,h:F}=C;V&&(C=V/I,E+=C*D,J+=C*K,F=(F+C*w+d)%d);C=[];for(aa=0;aa<fa-1;aa++)C.push({l:E,c:J,h:F}),E+=D,J+=K,F=(F+w+d)%d;C.push(N?{l:E,c:J,h:F}:l);l=C}d=[];C=n[3]??255;w=((y[3]??255)-C)/(U-1);for(D=0;D<U;D++){const {r:fa,g:V,
b:I}=f.toRGB(l[D]);d.push([fa,V,I,Y?Math.round(C+w*D):255])}return d}function A(d,l){const {numColors:n,interpolateAlpha:y}=k(l);l=l?.weights;({colorRamps:d}=d);if(l){const D=l.reduce((K,aa)=>K+aa);l=l.map(K=>K/D)}else{l=[];for(var w=0;w<d.length;w++)l[w]=1/d.length}w=[];const U=1/(n-1);let da=0,ea=!1;for(let D=0;D<d.length;D++){var Y=w.length,C=ea?0:Y*U-da;da+=l[D];Y=D===d.length-1?n-1-Y:(l[D]-C)/U;ea=Math.ceil(Y)===Y;Y=Math.ceil(Y);0!==Y&&(C=q(d[D],{numColors:Y,interpolateAlpha:y,distanceOffset:C/
l[D],distanceInterval:U/l[D]}),w.push(...C))}l=[...d[d.length-1].toColor];3===l.length&&l.push(255);w.push(l);return w}function x(d,l){d=g.isSerializable(d)?d.toJSON():d;return"multipart"===d.type?A(d,l):q(d,l)}function v(d){d=f.toHSV(d);return{type:"HsvColor",Hue:d.h,Saturation:d.s,Value:d.v,AlphaValue:255}}function u(d){return{Algorithm:d.toJSON()?.Algorithm||"esriHSVAlgorithm",type:"AlgorithmicColorRamp",FromColor:v(d.fromColor),ToColor:v(d.toColor)}}const t=[{id:"aspect",type:"multipart",colorRamps:[{fromColor:[190,
190,190],toColor:[255,45,8]},{fromColor:[255,45,8],toColor:[255,181,61]},{fromColor:[255,181,61],toColor:[255,254,52]},{fromColor:[255,254,52],toColor:[0,251,50]},{fromColor:[0,251,50],toColor:[255,254,52]},{fromColor:[0,253,255],toColor:[0,181,255]},{fromColor:[0,181,255],toColor:[26,35,253]},{fromColor:[26,35,253],toColor:[255,57,251]},{fromColor:[255,57,251],toColor:[255,45,8]}]},{id:"black-to-white",fromColor:[0,0,0],toColor:[255,255,255]},{id:"blue-bright",fromColor:[204,204,255],toColor:[0,
0,224]},{id:"blue-light-to-dark",fromColor:[211,229,232],toColor:[46,100,140]},{id:"blue-green-bright",fromColor:[203,245,234],toColor:[48,207,146]},{id:"blue-green-light-to-dark",fromColor:[216,242,237],toColor:[21,79,74]},{id:"brown-light-to-dark",fromColor:[240,236,170],toColor:[102,72,48]},{id:"brown-to-blue-green-diverging-right",type:"multipart",colorRamps:[{fromColor:[156,85,31],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[33,130,145]}]},{id:"brown-to-blue-green-diverging-dark",
type:"multipart",colorRamps:[{fromColor:[110,70,45],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[48,100,102]}]},{id:"coefficient-bias",fromColor:[214,214,255],toColor:[0,57,148]},{id:"cold-to-hot-diverging",type:"multipart",colorRamps:[{fromColor:[69,117,181],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[214,47,39]}]},{id:"condition-number",type:"multipart",colorRamps:[{fromColor:[0,97,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,34,0]}]},{id:"cyan-to-purple",
type:"multipart",colorRamps:[{fromColor:[0,245,245],toColor:[0,0,245]},{fromColor:[0,0,245],toColor:[245,0,245]}]},{id:"cyan-light-to-blue-dark",type:"multipart",colorRamps:[{fromColor:[182,237,240],toColor:[31,131,224]},{fromColor:[31,131,224],toColor:[9,9,145]}]},{id:"distance",fromColor:[255,200,0],toColor:[0,0,255]},{id:"elevation1",type:"multipart",colorRamps:[{fromColor:[175,240,233],toColor:[255,255,179]},{fromColor:[255,255,179],toColor:[0,128,64]},{fromColor:[0,128,64],toColor:[252,186,3]},
{fromColor:[252,186,3],toColor:[128,0,0]},{fromColor:[120,0,0],toColor:[105,48,13]},{fromColor:[105,48,13],toColor:[171,171,171]},{fromColor:[171,171,171],toColor:[255,252,255]}]},{id:"elevation2",type:"multipart",colorRamps:[{fromColor:[118,219,211],toColor:[255,255,199]},{fromColor:[255,255,199],toColor:[255,255,128]},{fromColor:[255,255,128],toColor:[217,194,121]},{fromColor:[217,194,121],toColor:[135,96,38]},{fromColor:[135,96,38],toColor:[150,150,181]},{fromColor:[150,150,181],toColor:[181,150,
181]},{fromColor:[181,150,181],toColor:[255,252,255]}]},{id:"errors",fromColor:[255,235,214],toColor:[196,10,10]},{id:"gray-light-to-dark",fromColor:[219,219,219],toColor:[69,69,69]},{id:"green-bright",fromColor:[204,255,204],toColor:[14,204,14]},{id:"green-light-to-dark",fromColor:[220,245,233],toColor:[34,102,51]},{id:"green-to-blue",type:"multipart",colorRamps:[{fromColor:[32,204,16],toColor:[0,242,242]},{fromColor:[0,242,242],toColor:[2,33,227]}]},{id:"orange-bright",fromColor:[255,235,204],toColor:[240,
118,5]},{id:"orange-light-to-dark",fromColor:[250,233,212],toColor:[171,65,36]},{id:"partial-spectrum",type:"multipart",colorRamps:[{fromColor:[242,241,162],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]},{fromColor:[252,3,69],toColor:[176,7,237]},{fromColor:[176,7,237],toColor:[2,29,173]}]},{id:"partial-spectrum-1-diverging",type:"multipart",colorRamps:[{fromColor:[135,38,38],toColor:[240,149,12]},{fromColor:[240,149,12],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[74,
80,181]},{fromColor:[74,80,181],toColor:[39,32,122]}]},{id:"partial-spectrum-2-diverging",type:"multipart",colorRamps:[{fromColor:[115,77,42],toColor:[201,137,52]},{fromColor:[201,137,52],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[91,63,176]},{fromColor:[91,63,176],toColor:[81,13,97]}]},{id:"pink-to-yellow-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[158,30,113],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[99,110,45]}]},{id:"pink-to-yellow-green-diverging-dark",
type:"multipart",colorRamps:[{fromColor:[97,47,73],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[22,59,15]}]},{id:"precipitation",type:"multipart",colorRamps:[{fromColor:[194,82,60],toColor:[237,161,19]},{fromColor:[237,161,19],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,219,0]},{fromColor:[0,219,0],toColor:[32,153,143]},{fromColor:[32,153,143],toColor:[11,44,122]}]},{id:"prediction",type:"multipart",colorRamps:[{fromColor:[40,146,199],toColor:[250,250,100]},{fromColor:[250,
250,100],toColor:[232,16,20]}]},{id:"purple-bright",fromColor:[255,204,255],toColor:[199,0,199]},{id:"purple-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[77,32,150],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[20,122,11]}]},{id:"purple-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[67,14,89],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[24,79,15]}]},{id:"purple-blue-bright",fromColor:[223,184,230],toColor:[112,12,242]},{id:"purple-blue-light-to-dark",
fromColor:[229,213,242],toColor:[93,44,112]},{id:"purple-red-bright",fromColor:[255,204,225],toColor:[199,0,99]},{id:"purple-red-light-to-dark",fromColor:[250,215,246],toColor:[143,17,57]},{id:"red-bright",fromColor:[255,204,204],toColor:[219,0,0]},{id:"red-light-to-dark",fromColor:[255,224,224],toColor:[143,10,10]},{id:"red-to-blue-diverging-bright",type:"multipart",colorRamps:[{fromColor:[196,69,57],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[48,95,207]}]},{id:"red-to-blue-diverging-dark",
type:"multipart",colorRamps:[{fromColor:[107,13,13],toColor:[204,204,102]},{fromColor:[204,204,102],toColor:[13,53,97]}]},{id:"red-to-green",type:"multipart",colorRamps:[{fromColor:[245,0,0],toColor:[245,245,0]},{fromColor:[245,245,0],toColor:[0,245,0]}]},{id:"red-to-green-diverging-bright",type:"multipart",colorRamps:[{fromColor:[186,20,20],toColor:[255,255,191]},{fromColor:[255,255,191],toColor:[54,145,33]}]},{id:"red-to-green-diverging-dark",type:"multipart",colorRamps:[{fromColor:[97,21,13],toColor:[204,
204,102]},{fromColor:[204,204,102],toColor:[16,69,16]}]},{id:"slope",type:"multipart",colorRamps:[{fromColor:[56,168,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,0,0]}]},{id:"spectrum-full-bright",type:"multipart",colorRamps:[{fromColor:[255,0,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,0,255]}]},{id:"spectrum-full-dark",type:"multipart",colorRamps:[{fromColor:[153,0,0],toColor:[153,153,0]},{fromColor:[153,153,0],toColor:[0,
153,153]},{fromColor:[0,153,153],toColor:[0,0,153]}]},{id:"spectrum-full-light",type:"multipart",colorRamps:[{fromColor:[255,153,153],toColor:[255,255,153]},{fromColor:[255,255,153],toColor:[153,255,255]},{fromColor:[153,255,255],toColor:[153,153,255]}]},{id:"surface",type:"multipart",colorRamps:[{fromColor:[112,153,89],toColor:[242,238,162]},{fromColor:[242,238,162],toColor:[242,206,133]},{fromColor:[242,206,133],toColor:[194,140,124]},{fromColor:[194,140,124],toColor:[255,242,255]}]},{id:"temperature",
type:"multipart",colorRamps:[{fromColor:[255,252,255],toColor:[255,0,255]},{fromColor:[255,0,255],toColor:[0,0,255]},{fromColor:[0,0,255],toColor:[0,255,255]},{fromColor:[0,255,255],toColor:[0,255,0]},{fromColor:[0,255,0],toColor:[255,255,0]},{fromColor:[255,255,0],toColor:[255,128,0]},{fromColor:[255,128,0],toColor:[128,0,0]}]},{id:"white-to-black",fromColor:[255,255,255],toColor:[0,0,0]},{id:"yellow-to-dark-red",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[242,167,46]},{fromColor:[242,
167,46],toColor:[107,0,0]}]},{id:"yellow-to-green-to-dark-blue",type:"multipart",colorRamps:[{fromColor:[255,255,128],toColor:[56,224,9]},{fromColor:[56,224,9],toColor:[26,147,171]},{fromColor:[26,147,171],toColor:[12,16,120]}]},{id:"yellow-to-red",fromColor:[245,245,0],toColor:[255,0,0]},{id:"yellow-green-bright",fromColor:[236,252,204],toColor:[157,204,16]},{id:"yellow-green-light-to-dark",fromColor:[215,240,175],toColor:[96,107,45]}],m=new c.JSONMap({Aspect:"aspect","Black to White":"black-to-white",
"Blue Bright":"blue-bright","Blue Light to Dark":"blue-light-to-dark","Blue-Green Bright":"blue-green-bright","Blue-Green Light to Dark":"blue-green-light-to-dark","Brown Light to Dark":"brown-light-to-dark","Brown to Blue Green Diverging, Bright":"brown-to-blue-green-diverging-right","Brown to Blue Green Diverging, Dark":"brown-to-blue-green-diverging-dark","Coefficient Bias":"coefficient-bias","Cold to Hot Diverging":"cold-to-hot-diverging","Condition Number":"condition-number","Cyan to Purple":"cyan-to-purple",
"Cyan-Light to Blue-Dark":"cyan-light-to-blue-dark",Distance:"distance","Elevation #1":"elevation1","Elevation #2":"elevation2",Errors:"errors","Gray Light to Dark":"gray-light-to-dark","Green Bright":"green-bright","Green Light to Dark":"green-light-to-dark","Green to Blue":"green-to-blue","Orange Bright":"orange-bright","Orange Light to Dark":"orange-light-to-dark","Partial Spectrum":"partial-spectrum","Partial Spectrum 1 Diverging":"partial-spectrum-1-diverging","Partial Spectrum 2 Diverging":"partial-spectrum-2-diverging",
"Pink to YellowGreen Diverging, Bright":"pink-to-yellow-green-diverging-bright","Pink to YellowGreen Diverging, Dark":"pink-to-yellow-green-diverging-dark",Precipitation:"precipitation",Prediction:"prediction","Purple Bright":"purple-bright","Purple to Green Diverging, Bright":"purple-to-green-diverging-bright","Purple to Green Diverging, Dark":"purple-to-green-diverging-dark","Purple-Blue Bright":"purple-blue-bright","Purple-Blue Light to Dark":"purple-blue-light-to-dark","Purple-Red Bright":"purple-red-bright",
"Purple-Red Light to Dark":"purple-red-light-to-dark","Red Bright":"red-bright","Red Light to Dark":"red-light-to-dark","Red to Blue Diverging, Bright":"red-to-blue-diverging-bright","Red to Blue Diverging, Dark":"red-to-blue-diverging-dark","Red to Green":"red-to-green","Red to Green Diverging, Bright":"red-to-green-diverging-bright","Red to Green Diverging, Dark":"red-to-green-diverging-dark",Slope:"slope","Spectrum-Full Bright":"spectrum-full-bright","Spectrum-Full Dark":"spectrum-full-dark","Spectrum-Full Light":"spectrum-full-light",
Surface:"surface",Temperature:"temperature","White to Black":"white-to-black","Yellow to Dark Red":"yellow-to-dark-red","Yellow to Green to Dark Blue":"yellow-to-green-to-dark-blue","Yellow to Red":"yellow-to-red","Yellow-Green Bright":"yellow-green-bright","Yellow-Green Light to Dark":"yellow-green-light-to-dark"});a.colorRampDict=m;a.convertColorRampToColormap=function(d,l){d=x(d,l);const n=l?.interpolateAlpha;d.forEach((y,w)=>{y.unshift(w);n||y.pop()});return d};a.convertColorRampToColors=x;a.convertRGBATo32Bit=
function(d){d=d.reverse().map(l=>{l=l.toString(16);return 2>l.length?"0"+l:l});return 4294967295&Number.parseInt(d.join(""),16)};a.getColorRampId=z;a.getColorRampJSON=function(d,l="esriCIELabAlgorithm"){const n=t.find(({id:y})=>y===d);return n?n.colorRamps?{type:"multipart",colorRamps:n.colorRamps.map(y=>({type:"algorithmic",algorithm:l,fromColor:[...y.fromColor],toColor:[...y.toColor]}))}:{type:"algorithmic",algorithm:l,fromColor:[...n.fromColor],toColor:[...n.toColor]}:null};a.getColorRampName=
B;a.getRFxArgColorRampValue=function(d){const l=B(d);return l?"algorithmic"===d.type?{...u(d),Name:l}:d.colorRamps?(d=d.colorRamps.map(u),{type:"MultiPartColorRamp",NumColorRamps:d.length,ArrayOfColorRamp:d,Name:l}):null:null};a.predefinedJsonColorRamps=t;a.rasterColormapNames="random ndvi ndvi2 ndvi3 elevation gray hillshade".split(" ");Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/rasterFunctions/creators/createLocalFunctions":function(){define(["exports",
"./utils"],function(a,p){function f(b,e,h="unknown"){let r;"object"==typeof e&&("raster"in e||!("rasterFunction"in e||"functionName"in e))?(r=[e.raster??"$$"],h=e.outputPixelType??"unknown"):r=[e];return p.createRasterFunction("Local",{operation:b,rasters:r},h)}function c(b,e,h,r="unknown"){"object"==typeof e&&"raster"in e?(h=[e.raster,e.raster2],r=e.outputPixelType??"unknown"):h=[e,h];return p.createRasterFunction("Local",{operation:b,rasters:h},r)}const g={majority:38,max:39,mean:40,median:41,min:42,
minority:43,range:47,stddev:54,sum:55,variety:58};a.abs=function(b,e="unknown"){return f(10,b,e)};a.acos=function(b,e="unknown"){return f(6,b,e)};a.acosh=function(b,e="unknown"){return f(59,b,e)};a.asin=function(b,e="unknown"){return f(7,b,e)};a.asinh=function(b,e="unknown"){return f(60,b,e)};a.atan=function(b,e="unknown"){return f(8,b,e)};a.atan2=function(b,e,h="unknown"){return c(61,b,e,h)};a.atanh=function(b,e="unknown"){return f(9,b,e)};a.bitwiseAnd=function(b,e,h="unknown"){return c(11,b,e,h)};
a.bitwiseLeftShift=function(b,e,h="unknown"){return c(12,b,e,h)};a.bitwiseNot=function(b,e="unknown"){return f(13,b,e)};a.bitwiseOr=function(b,e,h="unknown"){return c(14,b,e,h)};a.bitwiseRightShift=function(b,e,h="unknown"){return c(15,b,e,h)};a.bitwiseXor=function(b,e,h="unknown"){return c(16,b,e,h)};a.booleanAnd=function(b,e,h="unknown"){return c(17,b,e,h)};a.booleanNot=function(b,e="unknown"){return f(18,b,e)};a.booleanOr=function(b,e,h="unknown"){return c(19,b,e,h)};a.booleanXor=function(b,e,
h="unknown"){return c(20,b,e,h)};a.cellStatistics=function(b){const {rasters:e,statType:h,processAsMultiband:r=!0,outputPixelType:z}=b;return p.createRasterFunction("Local",{operation:g[h],processAsMultiband:r,rasters:e},z)};a.conditional=function(b,e,h,r){"object"==typeof b&&"raster"in b&&"trueRaster"in b?(e=[b.raster,b.trueRaster,b.falseRaster],r=b.outputPixelType??"unknown"):e=[b,e,h];return p.createRasterFunction("Local",{operation:78,rasters:e},r)};a.cos=function(b,e="unknown"){return f(21,b,
e)};a.cosh=function(b,e="unknown"){return f(22,b,e)};a.divide=function(b,e,h="unknown"){return c(23,b,e,h)};a.equalTo=function(b,e,h="unknown"){return c(24,b,e,h)};a.exp=function(b,e="unknown"){return f(25,b,e)};a.exp10=function(b,e="unknown"){return f(26,b,e)};a.exp2=function(b,e="unknown"){return f(27,b,e)};a.float=function(b,e="unknown"){return f(32,b,e)};a.greaterThan=function(b,e,h="unknown"){return c(28,b,e,h)};a.greaterThanEqual=function(b,e,h="unknown"){return c(29,b,e,h)};a.int=function(b,
e="unknown"){return f(30,b,e)};a.isNull=function(b,e="unknown"){return f(31,b,e)};a.lessThan=function(b,e,h="unknown"){return c(33,b,e,h)};a.lessThanEqual=function(b,e,h="unknown"){return c(34,b,e,h)};a.log=function(b,e="unknown"){return f(35,b,e)};a.log10=function(b,e="unknown"){return f(36,b,e)};a.log2=function(b,e="unknown"){return f(37,b,e)};a.minus=function(b,e,h="unknown"){return c(2,b,e,h)};a.mod=function(b,e,h="unknown"){return c(44,b,e,h)};a.negate=function(b,e="unknown"){return f(45,b,e)};
a.notEqual=function(b,e,h="unknown"){return c(46,b,e,h)};a.plus=function(b,e,h="unknown"){return c(1,b,e,h)};a.power=function(b,e,h="unknown"){return c(5,b,e,h)};a.roundDown=function(b,e="unknown"){return f(48,b,e)};a.roundUp=function(b,e="unknown"){return f(49,b,e)};a.setNull=function(b,e,h="unknown"){"object"==typeof b&&"raster"in b?(e=[b.raster,b.falseRaster],h=b.outputPixelType??"unknown"):e=[b,e];return p.createRasterFunction("Local",{operation:50,rasters:e},h)};a.sin=function(b,e="unknown"){return f(51,
b,e)};a.sinh=function(b,e="unknown"){return f(52,b,e)};a.sqrt=function(b,e="unknown"){return f(4,b,e)};a.square=function(b,e="unknown"){return f(53,b,e)};a.tan=function(b,e="unknown"){return f(56,b,e)};a.tanh=function(b,e="unknown"){return f(57,b,e)};a.times=function(b,e,h="unknown"){return c(3,b,e,h)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/rasterFunctions/creators/createSurfaceFunctions":function(){define(["exports","./utils"],function(a,p){a.aspect=
function(f){const {raster:c,outputPixelType:g}=f;return p.createRasterFunction("Aspect",{raster:c},g)};a.curvature=function(f){const {raster:c,zFactor:g,outputPixelType:b="unknown"}=f;return p.createRasterFunction("Curvature",{raster:c,curvatureType:"standard"===f.curvatureType?0:"platform"===f.curvatureType?1:2,zFactor:g},b)};a.slope=function(f){const {raster:c,zFactor:g,removeEdgeEffect:b,outputPixelType:e="unknown"}=f,h="degree"===f.slopeType?1:"percent-rise"===f.slopeType?2:3,r={raster:c,slopeType:h,
zFactor:g,removeEdgeEffect:b};3===h&&(r.psPower=f.pixelSizePower,r.psZFactor=f.pixelSizeZFactor);return p.createRasterFunction("Slope",r,e)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/rasterFunctions/creators/createStatisticsFunctions":function(){define(["exports","../focalStatUtils","./utils"],function(a,p,f){a.statistics=function(c){const {rows:g,cols:b,fillNoDataOnly:e=!1,raster:h,outputPixelType:r}=c;c=p.statisticsTypeMap.toJSON(c.statisticsType);return f.createRasterFunction("Statistics",
{rows:g,cols:b,fillNoDataOnly:e,statisticsType:c,raster:h},r)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/rasterFunctions/focalStatUtils":function(){define(["exports","../../../core/has","../../../core/jsonMap","../PixelBlock","./mirror"],function(a,p,f,c,g){function b(e,h){const {fillNoDataOnly:r}=h,{band:z,width:B,height:k,mask:q,outBand:A}=e;if(r&&!q)A.set(z);else{var {kernelRows:x,kernelCols:v}=h;e=Math.floor(x/2);h=Math.floor(v/2);var u=A.slice(),t=new Uint32Array(B*
k);for(var m=e;m<k-e;m++){var d=m*B;for(var l=h;l<B-h;l++){if(r&&q?.[d+l])continue;const n=[];for(let y=0;y<x;y++)for(let w=0;w<v;w++){const U=d+l+(y-e)*B+w-h;q&&!q[U]||n.push(z[U])}n.length&&(n.sort((y,w)=>y-w),q?(u[d+l]=n[Math.floor((n.length-1)/2)],t[d+l]=n.length):A[d+l]=n[Math.floor((n.length-1)/2)])}}if(q)for(m=e;m<k-e;m++)for(d=m*B,l=h;l<B-h;l++)!t[d+l]||r&&q[d+l]||(A[d+l]=u[d+l],q[d+l]=255)}}p=new f.JSONMap({1:"min",2:"max",3:"mean",4:"stddev",5:"median",6:"majority",7:"minority"},{useNumericKeys:!0});
a.computeFocalStatistics=function(e,h){const {mask:r}=e,{fillNoDataOnly:z}=h;if(z&&!r)return e;const {pixels:B,width:k,height:q,bandMasks:A,pixelType:x}=e,v=B.length,u=k*q,t=[],{kernelRows:m,kernelCols:d,statisticsType:l,mirrorEdges:n}=h;if(z&&!r)return e;const y=h.outputPixelType??x,w=[];for(let D=0;D<v;D++){const K=B[D],aa=c.createEmptyBand(y,u);z&&aa.set(K);const fa=(A?.[D]??r)?.slice()??null,V={band:K,width:k,height:q,mask:fa,outBand:aa};switch(l){case "min":case "max":a:{var U=h;const {fillNoDataOnly:I}=
U,{band:N,width:E,height:J,mask:F,outBand:ba}=V;if(I&&!F){ba.set(N);break a}const {kernelRows:na,kernelCols:ha,statisticsType:Z}=U,S=Math.floor(na/2),W=Math.floor(ha/2),la="min"===Z,ia=ba.slice(),ja=new Uint32Array(E*J);for(let T=S;T<J-S;T++){const L=T*E;for(let G=W;G<E-W;G++){let X=la?Number.MAX_VALUE:-Number.MAX_VALUE,ca=0;for(let ka=0;ka<na;ka++)for(let M=0;M<ha;M++){const H=L+G+(ka-S)*E+M-W;if(!F||F[H])X=la?Math.min(X,N[H]):Math.max(X,N[H]),ca++}F?(ia[L+G]=0===ca?0:X,ja[L+G]=ca):ba[L+G]=0===ca?
0:X}}if(F)for(let T=S;T<J-S;T++){const L=T*E;for(let G=W;G<E-W;G++)!ja[L+G]||I&&F[L+G]||(ba[L+G]=ia[L+G],F[L+G]=255)}}break;case "mean":case "stddev":a:{var da=h;const {fillNoDataOnly:I}=da,{band:N,width:E,height:J,mask:F,outBand:ba}=V;if(I&&!F){ba.set(N);break a}const {statisticsType:na,kernelRows:ha,kernelCols:Z}=da,S="stddev"===na,W=E*J,la=new Float64Array(W),ia=new Float64Array(W),ja=new Uint32Array(W);for(let M=0;M<J;M++){const H=M*E;let O=0,R=0,P=0;for(let Q=0;Q<Z;Q++)if(!F||F[H+Q])O+=N[H+Q],
S&&(R+=N[H+Q]**2),P++;la[H]=O;ia[H]=R;ja[H]=P;for(let Q=1;Q<=E-Z;Q++){const ma=H+Q-1,oa=ma+Z;F?(F[ma]&&(P--,O-=N[ma],S&&(R-=N[ma]**2)),F[oa]&&(P++,O+=N[oa],S&&(R+=N[oa]**2))):(O-=N[ma],O+=N[oa],S&&(R-=N[ma]**2,R+=N[oa]**2));la[H+Q]=O;ja[H+Q]=P;S&&(ia[H+Q]=R)}}const T=new Float64Array(W),L=new Float64Array(W),G=new Uint32Array(W),X=ha*E;for(let M=0;M<=E-Z;M++){let H=0,O=0,R=0;for(let P=0;P<ha;P++){const Q=P*E+M;H+=la[Q];R+=ja[Q];S&&(O+=ia[Q])}T[M]=H;L[M]=O;G[M]=R;for(let P=1;P<=J-ha;P++){const Q=(P-
1)*E+M,ma=Q+X;H-=la[Q];H+=la[ma];R-=ja[Q];R+=ja[ma];S&&(O-=ia[Q],O+=ia[ma]);T[P*E+M]=H;L[P*E+M]=O;G[P*E+M]=R}}const ca=Math.floor(ha/2),ka=Math.floor(Z/2);for(let M=ca;M<J-ca;M++){const H=M*E;for(let O=ka;O<E-ka;O++){const R=(M-ca)*E+O-ka,P=G[R];if(0===P||I&&(!F||F[H+O]))continue;const Q=T[R]/P;ba[H+O]=S?Math.sqrt((L[R]-T[R]*Q)/P):Q;F&&(F[H+O]=255)}}}break;case "median":b(V,h);break;case "majority":case "minority":a:{var ea=h;const {fillNoDataOnly:I}=ea,{band:N,width:E,height:J,mask:F,outBand:ba}=
V;if(I&&!F){ba.set(N);break a}const {kernelRows:na,kernelCols:ha}=ea,Z=Math.floor(na/2),S=Math.floor(ha/2),W="majority"===ea.statisticsType,la=na*ha,ia=ba.slice(),ja=new Uint32Array(E*J);for(let T=Z;T<J-Z;T++){const L=T*E;for(let G=S;G<E-S;G++){if(I&&F?.[L+G])continue;const X=new Map;for(let H=0;H<na;H++)for(let O=0;O<ha;O++){const R=L+G+(H-Z)*E+O-S;if(F&&!F[R])continue;const P=N[R];X.set(P,X.has(P)?X.get(P)+1:1)}if(0===X.size)continue;let ca=0,ka=0,M=W?0:la+1;for(const H of X.keys())ka=X.get(H),
W===ka>M&&(M=ka,ca=H);F?(ia[L+G]=ca,ja[L+G]=X.size):ba[L+G]=ca}}if(F)for(let T=Z;T<J-Z;T++){const L=T*E;for(let G=S;G<E-S;G++)!ja[L+G]||I&&F[L+G]||(ba[L+G]=ia[L+G],F[L+G]=255)}}}n&&!z&&g.mirror(aa,k,q,m,d);t.push(aa);fa&&w.push(fa)}let Y=w[0]??r;w.length!==v&&(w.length=0);1<v&&A?.length&&(Y=c.combineBandMasks(A));const C=new c({pixelType:y,width:k,height:q,pixels:t,bandMasks:A&&w.length?w:null,mask:Y});C.updateStatistics();return C};a.statisticsTypeMap=p;Object.defineProperty(a,Symbol.toStringTag,
{value:"Module"})})},"esri/layers/support/PixelBlock":function(){define("../../chunks/tslib.es6 ../../core/Error ../../core/JSONSupport ../../core/lang ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/subclass ./SimpleBandStatistics ./rasterFormats/pixelRangeUtils".split(" "),function(a,p,f,c,g,b,e,h,r,z){var B;f=B=class extends f.JSONSupport{static createEmptyBand(k,q){return new (B.getPixelArrayConstructor(k))(q)}static combineBandMasks(k){if(2>
k.length)return k[0];const q=k[0].length,A=(new Uint8Array(q)).fill(255);for(let x=0;x<k.length;x++){const v=k[x];for(let u=0;u<q;u++)v[u]||(A[u]=0)}return A}static getPixelArrayConstructor(k){let q;switch(k){case "u1":case "u2":case "u4":case "u8":q=Uint8Array;break;case "u16":q=Uint16Array;break;case "u32":q=Uint32Array;break;case "s8":q=Int8Array;break;case "s16":q=Int16Array;break;case "s32":q=Int32Array;break;case "f32":q=Float32Array;break;case "f64":q=Float64Array;break;case "c64":case "c128":case "unknown":q=
Float32Array}return q}constructor(k){super(k);this.height=this.width=null;this.pixelType="f32";this.mask=this.validPixelCount=null;this.premultiplyAlpha=this.maskIsAlpha=!1;this.statistics=null;this.depthCount=1}castPixelType(k){if(!k)return"f32";k=k.toLowerCase();["u1","u2","u4"].includes(k)?k="u8":"unknown u8 s8 u16 s16 u32 s32 f32 f64".split(" ").includes(k)||(k="f32");return k}getPlaneCount(){return this.pixels?.length}addData(k){if(!k.pixels||k.pixels.length!==this.width*this.height)throw new p("pixelblock:invalid-or-missing-pixels",
"add data requires valid pixels array that has same length defined by pixel block width * height");this.pixels||(this.pixels=[]);this.statistics||(this.statistics=[]);this.pixels.push(k.pixels);this.statistics.push(k.statistics??new r.SimpleBandStatistics)}getAsRGBA(){const k=new ArrayBuffer(this.width*this.height*4);switch(this.pixelType){case "s8":case "s16":case "u16":case "s32":case "u32":case "f32":case "f64":this._fillFromNon8Bit(k);break;default:this._fillFrom8Bit(k)}return new Uint8ClampedArray(k)}getAsRGBAFloat(){const k=
new Float32Array(this.width*this.height*4);this._fillFrom32Bit(k);return k}updateStatistics(){if(this.pixels){this.statistics=this.pixels.map(A=>{var x=this.mask;let v=Infinity,u=-Infinity;const t=A.length;let m,d=0;if(null!=x)for(m=0;m<t;m++)x[m]&&(d=A[m],v=d<v?d:v,u=d>u?d:u);else for(m=0;m<t;m++)d=A[m],v=d<v?d:v,u=d>u?d:u;return new r.SimpleBandStatistics(v,u)});var k=this.mask,q=0;if(null!=k)for(let A=0;A<k.length;A++)k[A]&&q++;else q=this.width*this.height;this.validPixelCount=q}}clamp(k){if(k&&
"f64"!==k&&"f32"!==k&&this.pixels){var [q,A]=z.getPixelValueRange(k),x=this.pixels,v=this.width*this.height,u=x.length,t=[];for(let n=0;n<u;n++){var m=B.createEmptyBand(k,v);var d=x[n];for(let y=0;y<v;y++){var l=d[y];m[y]=l>A?A:l<q?q:l}t.push(m)}this.pixels=t;this.pixelType=k}}extractBands(k){const {pixels:q,statistics:A}=this;if(null==k||0===k.length||!q||0===q.length)return this;var x=q.length;const v=k.some(n=>n>=q.length),u=x===k.length&&!k.some((n,y)=>n!==y);if(v||u)return this;x=this.bandMasks?.length===
x?k.map(n=>this.bandMasks[n]):void 0;let {mask:t,validPixelCount:m}=this;const {width:d,height:l}=this;x?.length&&(t=B.combineBandMasks(x),m=t.filter(n=>!!n).length);return new B({pixelType:this.pixelType,width:d,height:l,mask:t,bandMasks:x,validPixelCount:m,maskIsAlpha:this.maskIsAlpha,pixels:k.map(n=>q[n]),statistics:A&&k.map(n=>A[n])})}clone(){const k=new B({width:this.width,height:this.height,pixelType:this.pixelType,maskIsAlpha:this.maskIsAlpha,validPixelCount:this.validPixelCount});null!=this.mask&&
(k.mask=new Uint8Array(this.mask));this.bandMasks&&(k.bandMasks=this.bandMasks.map(x=>new Uint8Array(x)));let q;const A=B.getPixelArrayConstructor(this.pixelType);if(this.pixels&&0<this.pixels.length){k.pixels=[];const x=!!this.pixels[0].slice;for(q=0;q<this.pixels.length;q++)k.pixels[q]=x?this.pixels[q].slice(0,this.pixels[q].length):new A(this.pixels[q])}if(this.statistics)for(k.statistics=[],q=0;q<this.statistics.length;q++)k.statistics[q]=c.clone(this.statistics[q]);k.premultiplyAlpha=this.premultiplyAlpha;
return k}_fillFrom8Bit(k){const {mask:q,maskIsAlpha:A,premultiplyAlpha:x,pixels:v}=this;if(k&&v?.length){var u,t;var m=u=t=v[0];3<=v.length?(u=v[1],t=v[2]):2===v.length&&(u=v[1]);var d=new Uint32Array(k),l=this.width*this.height;if(m.length!==l)g.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");else if(null!=q&&q.length===l)if(A)for(k=0;k<l;k++){const n=q[k];if(n){const y=n/255;d[k]=x?n<<24|t[k]*y<<16|u[k]*y<<8|m[k]*y:n<<24|t[k]<<16|u[k]<<8|m[k]}}else for(k=
0;k<l;k++)q[k]&&(d[k]=-16777216|t[k]<<16|u[k]<<8|m[k]);else for(k=0;k<l;k++)d[k]=-16777216|t[k]<<16|u[k]<<8|m[k]}else g.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.")}_fillFromNon8Bit(k){const {pixels:q,mask:A,statistics:x}=this;if(k&&q?.length){var v=this.pixelType,u=1,t=0;u=1;if(x&&0<x.length){for(var m of x)null!=m.minValue&&(t=Math.min(t,m.minValue)),null!=m.maxValue&&null!=m.minValue&&(u=Math.max(u,m.maxValue-m.minValue));u=255/u}else u=255,
"s8"===v?(t=-128,u=127):"u16"===v?u=65535:"s16"===v?(t=-32768,u=32767):"u32"===v?u=4294967295:"s32"===v?(t=-2147483648,u=2147483647):"f32"===v?(t=-3.4*1E39,u=3.4*1E39):"f64"===v&&(t=-Number.MAX_VALUE,u=Number.MAX_VALUE),u=255/(u-t);k=new Uint32Array(k);v=this.width*this.height;var d,l,n;m=d=l=q[0];if(m.length!==v)return g.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The pixelblock is invalid.");if(2<=q.length)if(d=q[1],3<=q.length&&(l=q[2]),null!=A&&A.length===v)for(n=0;n<v;n++)A[n]&&
(k[n]=-16777216|(l[n]-t)*u<<16|(d[n]-t)*u<<8|(m[n]-t)*u);else for(n=0;n<v;n++)k[n]=-16777216|(l[n]-t)*u<<16|(d[n]-t)*u<<8|(m[n]-t)*u;else if(null!=A&&A.length===v)for(n=0;n<v;n++)d=(m[n]-t)*u,A[n]&&(k[n]=-16777216|d<<16|d<<8|d);else for(n=0;n<v;n++)d=(m[n]-t)*u,k[n]=-16777216|d<<16|d<<8|d}else g.getLogger(this).error("getAsRGBA()","Unable to convert to RGBA. The input pixel block is empty.")}_fillFrom32Bit(k){const {pixels:q,mask:A}=this;if(!k||!q?.length)return g.getLogger(this).error("getAsRGBAFloat()",
"Unable to convert to RGBA. The input pixel block is empty.");let x,v,u,t;x=v=u=q[0];3<=q.length?(v=q[1],u=q[2]):2===q.length&&(v=q[1]);const m=this.width*this.height;if(x.length!==m)return g.getLogger(this).error("getAsRGBAFloat()","Unable to convert to RGBA. The pixelblock is invalid.");let d=0;if(null!=A&&A.length===m)for(t=0;t<m;t++)k[d++]=x[t],k[d++]=v[t],k[d++]=u[t],k[d++]=A[t]&1;else for(t=0;t<m;t++)k[d++]=x[t],k[d++]=v[t],k[d++]=u[t],k[d++]=1}};a.__decorate([b.property({json:{write:!0}})],
f.prototype,"width",void 0);a.__decorate([b.property({json:{write:!0}})],f.prototype,"height",void 0);a.__decorate([b.property({json:{write:!0}})],f.prototype,"pixelType",void 0);a.__decorate([e.cast("pixelType")],f.prototype,"castPixelType",null);a.__decorate([b.property({json:{write:!0}})],f.prototype,"validPixelCount",void 0);a.__decorate([b.property({json:{write:!0}})],f.prototype,"mask",void 0);a.__decorate([b.property({json:{write:!0}})],f.prototype,"maskIsAlpha",void 0);a.__decorate([b.property({json:{write:!0}})],
f.prototype,"pixels",void 0);a.__decorate([b.property()],f.prototype,"premultiplyAlpha",void 0);a.__decorate([b.property({json:{write:!0}})],f.prototype,"statistics",void 0);a.__decorate([b.property({json:{write:!0}})],f.prototype,"depthCount",void 0);a.__decorate([b.property({json:{write:!0}})],f.prototype,"noDataValues",void 0);a.__decorate([b.property({json:{write:!0}})],f.prototype,"bandMasks",void 0);return f=B=a.__decorate([h.subclass("esri.layers.support.PixelBlock")],f)})},"esri/layers/support/SimpleBandStatistics":function(){define(["exports"],
function(a){class p{constructor(f=null,c=null,g=null){this.minValue=f;this.maxValue=c;this.noDataValue=g}}a.SimpleBandStatistics=p;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/rasterFormats/pixelRangeUtils":function(){define(["exports"],function(a){function p(c){return f[c]??[-3.4028234663852886E38,3.4028234663852886E38]}const f={u1:[0,1],u2:[0,3],u4:[0,15],u8:[0,255],s8:[-128,127],u16:[0,65535],s16:[-32768,32767],u32:[0,4294967295],s32:[-2147483648,2147483647],
f32:[-3.4028234663852886E38,3.4028234663852886E38],f64:[-Number.MAX_VALUE,Number.MAX_VALUE],unknown:void 0,c64:void 0,c128:void 0};a.convertNoDataToMask=function(c,g,b){if(!(c.depthCount&&1<c.depthCount)){var {pixels:e,statistics:h,pixelType:r}=c,z=e[0].length,B=c.bandMasks??[];z=c.mask??(new Uint8Array(z)).fill(255);var k="f32"===r||"f64"===r,q=p(r),A=!1;for(let u=0;u<e.length;u++){const t="number"===typeof g?g:g[u];if(null==t)continue;var x=h?.[u]?.maxValue??q[1];if((h?.[u]?.minValue??q[0])>t+Number.EPSILON||
x<t-Number.EPSILON)continue;x=B[u]||z.slice();const m=e[u];var v=b?.customFloatTolerance;if(k&&0!==v){v||=9.999999E37<=Math.abs(t)?2E-7*Math.abs(t):"f32"===r?2**-23:Number.EPSILON;for(let d=0;d<m.length;d++)x[d]&&Math.abs(m[d]-t)<v&&(m[d]=0,x[d]=0,z[d]=0,A=!0)}else for(v=0;v<m.length;v++)x[v]&&m[v]===t&&(m[v]=0,x[v]=0,z[v]=0,A=!0);B[u]=x}A&&(c.bandMasks=c.bandMasks||1<c.pixels.length?B:null,c.mask=z);A&&"updateStatistics"in c&&c.updateStatistics()}};a.getIntegerPixelType=function(c,g){return null==
c||null==g?"s32":0>c?-128<=c&&128>g?"s8":-32768<=c&&32768>g?"s16":"s32":256>g?"u8":65536>g?"u16":"u32"};a.getPixelValueRange=p;a.isIntegerPixelType=function(c){return(c?.startsWith("s")||c?.startsWith("u"))??!1};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/rasterFunctions/mirror":function(){define(["exports"],function(a){a.mirror=function(p,f,c,g,b){g=Math.floor(g/2);for(var e=0;e<g;e++)for(var h=0;h<f;h++)p[e*f+h]=p[(b-1-e)*f+h],p[(c-1-e)*f+h]=p[(c-b+e)*f+
h];g=Math.floor(b/2);for(e=0;e<c;e++){h=e*f;for(let r=0;r<g;r++)p[h+r]=p[h+b-1-r],p[h+f-r-1]=p[h+f+r-b]}};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"*noref":1}});
define("exports ./rasterFunctions/creators/createAppearenceFunctions ./rasterFunctions/creators/createBandIndexFunctions ./rasterFunctions/creators/createDataManagementFunctions ./rasterFunctions/creators/createLocalFunctions ./rasterFunctions/creators/createSurfaceFunctions ./rasterFunctions/creators/createStatisticsFunctions".split(" "),function(a,p,f,c,g,b,e){a.contrastBrightness=p.contrastBrightness;a.convolution=p.convolution;a.stretchHistogramEqualization=p.stretchHistogramEqualization;a.stretchMinMax=
p.stretchMinMax;a.stretchNone=p.stretchNone;a.stretchPercentClip=p.stretchPercentClip;a.stretchStandardDeviation=p.stretchStandardDeviation;a.bandArithmeticBAI=f.bandArithmeticBAI;a.bandArithmeticCIg=f.bandArithmeticCIg;a.bandArithmeticCIre=f.bandArithmeticCIre;a.bandArithmeticClayMinerals=f.bandArithmeticClayMinerals;a.bandArithmeticCustom=f.bandArithmeticCustom;a.bandArithmeticEVI=f.bandArithmeticEVI;a.bandArithmeticFerrousMinerals=f.bandArithmeticFerrousMinerals;a.bandArithmeticGEMI=f.bandArithmeticGEMI;
a.bandArithmeticGNDVI=f.bandArithmeticGNDVI;a.bandArithmeticGVITM=f.bandArithmeticGVITM;a.bandArithmeticIronOxide=f.bandArithmeticIronOxide;a.bandArithmeticMNDWI=f.bandArithmeticMNDWI;a.bandArithmeticMSAVI=f.bandArithmeticMSAVI;a.bandArithmeticMTVI2=f.bandArithmeticMTVI2;a.bandArithmeticNBR=f.bandArithmeticNBR;a.bandArithmeticNDBI=f.bandArithmeticNDBI;a.bandArithmeticNDMI=f.bandArithmeticNDMI;a.bandArithmeticNDSI=f.bandArithmeticNDSI;a.bandArithmeticNDVI=f.bandArithmeticNDVI;a.bandArithmeticNDVIre=
f.bandArithmeticNDVIre;a.bandArithmeticNDWI=f.bandArithmeticNDWI;a.bandArithmeticPVI=f.bandArithmeticPVI;a.bandArithmeticRTVICore=f.bandArithmeticRTVICore;a.bandArithmeticSAVI=f.bandArithmeticSAVI;a.bandArithmeticSR=f.bandArithmeticSR;a.bandArithmeticSRre=f.bandArithmeticSRre;a.bandArithmeticSultan=f.bandArithmeticSultan;a.bandArithmeticTSAVI=f.bandArithmeticTSAVI;a.bandArithmeticVARI=f.bandArithmeticVARI;a.bandArithmeticWNDWI=f.bandArithmeticWNDWI;a.clip=c.clip;a.colormap=c.colormap;a.compositeBands=
c.compositeBands;a.extractBand=c.extractBand;a.grayscale=c.grayscale;a.mask=c.mask;a.remap=c.remap;a.statisticsHistogram=c.statisticsHistogram;a.table=c.table;a.abs=g.abs;a.acos=g.acos;a.acosh=g.acosh;a.asin=g.asin;a.asinh=g.asinh;a.atan=g.atan;a.atan2=g.atan2;a.atanh=g.atanh;a.bitwiseAnd=g.bitwiseAnd;a.bitwiseLeftShift=g.bitwiseLeftShift;a.bitwiseNot=g.bitwiseNot;a.bitwiseOr=g.bitwiseOr;a.bitwiseRightShift=g.bitwiseRightShift;a.bitwiseXor=g.bitwiseXor;a.booleanAnd=g.booleanAnd;a.booleanNot=g.booleanNot;
a.booleanOr=g.booleanOr;a.booleanXor=g.booleanXor;a.cellStatistics=g.cellStatistics;a.conditional=g.conditional;a.cos=g.cos;a.cosh=g.cosh;a.divide=g.divide;a.equalTo=g.equalTo;a.exp=g.exp;a.exp10=g.exp10;a.exp2=g.exp2;a.float=g.float;a.greaterThan=g.greaterThan;a.greaterThanEqual=g.greaterThanEqual;a.int=g.int;a.isNull=g.isNull;a.lessThan=g.lessThan;a.lessThanEqual=g.lessThanEqual;a.log=g.log;a.log10=g.log10;a.log2=g.log2;a.minus=g.minus;a.mod=g.mod;a.negate=g.negate;a.notEqual=g.notEqual;a.plus=
g.plus;a.power=g.power;a.roundDown=g.roundDown;a.roundUp=g.roundUp;a.setNull=g.setNull;a.sin=g.sin;a.sinh=g.sinh;a.sqrt=g.sqrt;a.square=g.square;a.tan=g.tan;a.tanh=g.tanh;a.times=g.times;a.aspect=b.aspect;a.curvature=b.curvature;a.slope=b.slope;a.statistics=e.statistics;a.defaultRaster="$$";Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});