PageSourceSearch

https://www.bouyguestelecom.fr/statics/landingpages/_next/static/chunks/55.f778b5671a4e9920.js

js bouyguestelecom.fr collected 2026-09-24 08:38:46 UTC 118,769 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[55,8707],{12748:(e,t,r)=>{r.d(t,{Z:()=>o});let o=(()=>{let e=new ArrayBuffer(4),t=new Uint8Array(e);return new Uint32Array(e)[0]=1,1===t[0]})()},16106:(e,t,r)=>{r.d(t,{u:()=>o,x:()=>i});let o=new(r(65760)).J({none:"none",standardDeviation:"standard-deviation",histogramEqualization:"histogram-equalization",minMax:"min-max",percentClip:"percent-clip",sigmoid:"sigmoid"}),i={0:"none",3:"standardDeviation",4:"histogramEqualization",5:"minMax",6:"percentClip",9:"sigmoid"}},16413:(e,t,r)=>{r.d(t,{L7:()=>l,M5:()=>p,R8:()=>C,S2:()=>b,hf:()=>S,hs:()=>c,iv:()=>y,kH:()=>u,vL:()=>T,vj:()=>s});var o=r(35495),i=r(2460),a=r(65760),n=r(40496);let l=["random","ndvi","ndvi2","ndvi3","elevation","gray","hillshade"],s=[{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]}]}
1,{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]}],u=new a.J({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-d
1ark","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"});function h(e,t){if(!e||!t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]>t[r]+2||e[r]<t[r]-2)return!1;return!0}function f(e){let t=e.clone();return t.fromColor=e.toColor,t.toColor=e.fromColor,t.algorithm=e.algorithm,t}function d(e,t){if(!e)return;let r=t??s,i=null;return"algorithmic"===e.type?r.some(t=>{if(h(e.fromColor.toRgb(),t.fromColor)&&h(e.toColor.toRgb(),t.toColor))return i=t.id,!0}):"multipart"===e.type&&r.some(t=>{let r=e.colorRamps,a=t.colorRamps;if(r&&a&&r.length===a.length&&!a.some((e,t)=>{if(!h(r[t].fromColor.toRgb(),new o.A(e.fromColor).toRgb())||!h(r[t].toColor.toRgb(),new o.A(e.toColor).toRgb()))return!0})){if(i)return!0;i=t.id}}),i}function c(e,t=!1){let r="string"==typeof e?e:function(e,t,r=!1){if(!e)return;let o=!1,i=d(e,t);return null!=i||r||(o=!0,i=d(e=function(e){if("multipart"===e.type){let t=e.clone();return t.colorRamps?.length&&(t.colorRamps=t.colorRamps.reverse().map(e=>f(e))),t}return f(e)}(e),t)),i?{id:i,inverted:o}:void 0}(e,void 0,t)?.id;return r?u.toJSON(r):null}function p(e,t="esriCIELabAlgorithm"){let r=s.find(({id:t})=>t===e);return r?r.colorRamps?{type:"multipart",colorRamps:r.colorRamps.map(e=>({type:"algorithmic",algorithm:t,fromColor:[...e.fromColor],toColor:[...e.toColor]}))}:{type:"algorithmic",algorithm:t,fromColor:[...r.fromColor],toColor:[...r.toColor]}:null}function m(e){let t=(e=e||{}).numColors||256,r=e.distanceOffset||0,o=null!=e.isCustomInterval?e.isCustomInterval:null!==e.distanceInterval&&e.distanceInterval!==1/(t-1),i=e.distanceInterval||1/(t-1);
1return{...e,numColors:t,distanceOffset:r,interpolateAlpha:!!e.interpolateAlpha,distanceInterval:i,isCustomInterval:o,weights:e.weights}}function g(e,t){let{fromColor:r,toColor:o}=e;o=[...o],3===(r=[...r]).length&&(r=r.concat([255])),3===o.length&&(o=o.concat([255]));let a=e.algorithm||"esriCIELabAlgorithm",n=m(t),{numColors:l,distanceOffset:s,isCustomInterval:u,interpolateAlpha:h}=n;if(1===l&&0===s)return[r];if(2===l&&0===s&&!u)return[r,o];let f={r:r[0],g:r[1],b:r[2]},d={r:o[0],g:o[1],b:o[2]},c="esriCIELabAlgorithm"===a?function(e,t,r){let{numColors:o,distanceOffset:i,distanceInterval:a,isCustomInterval:n}=r,{l:l,a:s,b:u}=e,h=(t.l-l)*a,f=(t.a-s)*a,d=(t.b-u)*a,c=[];if(i){let e=i/a;l+=e*h,s+=e*f,u+=e*d}for(let e=0;e<o-1;e++)c.push({l:l,a:s,b:u}),l+=h,s+=f,u+=d;return c.push(n?{l:l,a:s,b:u}:t),c}((0,i.ZD)(f),(0,i.ZD)(d),n):"esriHSVAlgorithm"===a?function(e,t,r){let{numColors:o,distanceOffset:i,distanceInterval:a,isCustomInterval:n}=r,l=0===e.s,s=0===t.s,u=e.h,h=t.h;l&&!s?u=h:s&&!l&&(t={...t,h:u},h=u);let f,d=Math.abs(h-u);d<180?f=(h-u)*a:(d=360-d,f=u>h?d*a:-d*a);let c=(t.s-e.s)*a,p=(t.v-e.v)*a,{s:m,v:g}=e,y=u;if(i){let e=i/a;y=(y+e*f+360)%360,m+=e*c,g+=e*p}let C=[];for(let e=0;e<o-1;e++)C.push({h:y,s:m,v:g}),y=(y+f+360)%360,m+=c,g+=p;return C.push(n?{h:y,s:m,v:g}:t),C}((0,i.N2)(f),(0,i.N2)(d),n):function(e,t,r){let o,{numColors:i,distanceOffset:a,distanceInterval:n,isCustomInterval:l}=r,s=e.h,u=t.h,h=2*Math.PI;if(s<=u){let e=u-s,t=u-s-h;o=Math.abs(t)<Math.abs(e)?t:e}else{let e=u+h-s,t=u-s;o=Math.abs(t)<Math.abs(e)?t:e}let f=o*n,d=(t.l-e.l)*n,c=(t.c-e.c)*n,{l:p,c:m,h:g}=e;if(a){let e=a/n;p+=e*d,m+=e*c,g=(g+e*f+h)%h}let y=[];for(let e=0;e<i-1;e++)y.push({l:p,c:m,h:g}),p+=d,m+=c,g=(g+f+h)%h;return y.push(l?{l:p,c:m,h:g}:t),y}((0,i.RH)(f),(0,i.RH)(d),n),p=[],g=r[3]??255,y=((o[3]??255)-g)/(l-1);for(let e=0;e<l;e++){let{r:t,g:r,b:o}=(0,i.$)(c[e]),a=h?Math.round(g+y*e):255;p.push([t,r,o,a])}return p}function y(e,t){let r=(0,n.Wj)(e)?e.toJSON():e;return"multipart"===r.type?function(e,t){let{numColors:r,interpolateAlpha:o}=m(t),i=t?.weights,{colorRamps:a}=e;if(i){let e=i.reduce((e,t)=>e+t);i=i.map(t=>t/e)}else{i=[];for(let e=0;e<a.length;e++)i[e]=1/a.length}let n=[],l=1/(r-1),s=0,u=!1;for(let e=0;e<a.length;e++){let t=n.length,h=u?0:t*l-s;s+=i[e];let f=e===a.length-1?r-1-t:(i[e]-h)/l;if(u=Math.ceil(f)===f,0===(f=Math.ceil(f)))continue;let d=g(a[e],{numColors:f,interpolateAlpha:o,distanceOffset:h/i[e],distanceInterval:l/i[e]});n.push(...d)}let h=[...a[a.length-1].toColor];return 3===h.length&&h.push(255),n.push(h),n}(r,t):g(r,t)}function C(e,t){let r=y(e,t),o=t?.interpolateAlpha;return r.forEach((e,t)=>{e.unshift(t),o||e.pop()}),r}function b(e){let t=[];for(let r=0;r<e.length;r+=4){let o=(0,i.N2)({r:e[r],g:e[r+1],b:e[r+2]});t.push([o.h/60,o.s/100,255*o.v/100])}return t}function w(e){let t=(0,i.N2)(e);return{type:"HsvColor",Hue:t.h,Saturation:t.s,Value:t.v,AlphaValue:255}}function v(e){let t=e.toJSON();return{Algorithm:t?.Algorithm||"esriHSVAlgorithm",type:"AlgorithmicColorRamp",FromColor:w(e.fromColor),ToColor:w(e.toColor)}}function S(e){let t=c(e);if(!t)return null;if("algorithmic"===e.type)return{...v(e),Name:t};if(e.colorRamps){let r=e.colorRamps.map(v);return{type:"MultiPartColorRamp",NumColorRamps:r.length,ArrayOfColorRamp:r,Name:t}}return null}function T(e){return 0|Number.parseInt(e.reverse().map(e=>{let t=e.toString(16);return t.length<2?"0"+t:t}).join(""),16)}},21604:(e,t,r)=>{r.d(t,{D:()=>O,g:()=>D});var o=r(55114),i=r(88284),a=r(58414),n=r(12553),l=r(85314),s=r(71762);class u{constructor(e){this._canvas=null,this._ctx=null,e&&(this._canvas=e.canvas,this._ctx=e.ctx||e.canvas&&e.canvas.getContext("2d"))}decode(e,t,r){if(!e||e.byteLength<10)throw new o.A("imagecanvasdecoder: decode","required a valid encoded data as input.");let{width:i=0,height:a=0,format:n}=t,{applyJpegMask:s}=t;if(s&&(!i||!a))throw new o.A("imagecanvasdecoder: decode","image width and height are needed to apply jpeg mask directly to canvas");return new Promise((o,h)=>{let f,d=null;"jpg"===n&&s&&(d=u._getMask(e,{width:i,height:a}));let c=new Blob([new Uint8Array(e)],{type:"image/"+n=="jpg"?"jpeg":n}),p=URL.createObjectURL(c),m=new Image;m.src=p,m.onload=()=>{let e;if(URL.revokeObjectURL(p),(0,l.G4)(r))return void h((0,l.NK)());i=m.width,a=m.height,this._canvas&&this._ctx?(this._canvas.width===i&&this._canvas.height===a||(this._canvas.width=i,this._canvas.height=a),this._ctx.clearRect(0,0,i,a)):(this._canvas=document.createElement("canvas"),this._canvas.width=i,this._canvas.height=a,this._ctx=this._canvas.getContext("2d")),this._ctx.drawImage(m,0,0);let n=this._ctx.getImageData(0,0,i,a);if(f=n.data,t.renderOnCanvas){if(d)for(e=0;e<d.length;e++)d[e]?f[4*e+3]=255:f[4*e+3]=0;return this._ctx.putImageData(n,0,0),void o(null)}let s=i*a,u=new Uint8Array(s),c=new Uint8Array(s),g=new Uint8Array(s);if(d)for(e=0;e<s;e++)u[e]=f[4*e],c[e]=f[4*e+1],g[e]=f[4*e+2];else for(d=new Uint8Array(s),e=0;e<s;e++)u[e]=f[4*e],c[e]=f[4*e+1],g[e]=f[4*e+2],d[e]=f[4*e+3];o({width:i,height:a,pixels:[u,c,g],mask:d,pixelType:"u8"})},m.onerror=()=>{URL.revokeObjectURL(p),h("cannot load image")}})}static _getMask(e,t){let r=null;try{let o=new Uint8Array(e),i=Math.ceil(o.length/2),a=0,n=o.length-2;for(a=i;a<n&&(255!==o[a]||217!==o[a+1]);a++);if((a+=2)<o.length-1){let e=new s.Z(o.subarray(a)).getBytes();r=new Uint8Array(t.width*t.height);let i=0;for(let t=0;t<e.length;t++)for(let o=7;o>=0;o--)r[i++]=e[t]>>o&1}}catch(e){}return r}}var h=r(32446);class f{static decode(e,t=!1){let r=new Uint8Array(e),o=new h.J;o.parse(r);let{width:i,height:a,numComponents:n,eof:l}=o,u=o.getData(i,a,!0),f=i*a,d,c=null,p=0,m=0,g=0;if(!t&&l<r.length-1)try{let e=new s.Z(r.subarray(l)).getBytes();c=new Uint8Array(f);let t=0;for(p=0;p<e.length;p++)for(g=7;g>=0;g--)c[t++]=e[p]>>g&1}catch{}if(1===n&&u.length===i*a){let e=new Uint8Array(u.buffer);d=[e,e,e]}else{for(d=[],p=0;p<3;p++)d.push(new Uint8Array(f));for(g=0,m=0;m<f;m++)for(p=0;p<3;p++)d[p][m]=u[g++]}return{width:i,height:a,pixels:d,mask:c}}}var d=r(58207),c=r(70722),p=r(99831);let m=(e,t)=>
1{let r=t.width*t.height,o=t.pixelType;return Math.floor(e.byteLength/(r*g(o)))},g=e=>{let t=1;switch(e){case Uint8Array:case Int8Array:t=1;break;case Uint16Array:case Int16Array:t=2;break;case Uint32Array:case Int32Array:case Float32Array:t=4;break;case Float64Array:t=8}return t},y=(e,t)=>{if(8*e.byteLength<t)return null;let r=new Uint8Array(e,0,Math.ceil(t/8)),o=new Uint8Array(t),i=0,a=0,n=0,l=0;for(n=0;n<r.length-1;n++)for(a=r[n],l=7;l>=0;l--)o[i++]=a>>l&1;for(l=7;i<t-1;)a=r[r.length-1],o[i++]=a>>l&1,l--;return o};class C{static decode(e,t){let r=t.pixelType,o=[],i=t.width*t.height,a=m(e,t),{bandIds:n,format:l}=t,s=n?.length||m(e,t),u=e.byteLength-e.byteLength%(i*g(r)),h=new r(e,0,i*a),f,d,c,p,C=null;if("bip"===l)for(f=0;f<s;f++){for(c=new r(i),p=n?n[f]:f,d=0;d<i;d++)c[d]=h[d*a+p];o.push(c)}else if("bsq"===l)for(f=0;f<s;f++)p=n?n[f]:f,o.push(h.subarray(p*i,(p+1)*i));return u<e.byteLength-1&&(C=y(e.slice(u),i)),{pixels:o,mask:C}}}var b=r(27768),w=r(12748),v=function(e){var t,r,o;function i(e){var t,r,o,i,a,n,l,s,u,h,f,d,c;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(t=this.readUInt32(),s=(function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),o=this.readUInt16()||100,a.delay=1e3*i/o,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===s&&(this.pos+=4,t-=4),e=(null!=a?a.data:void 0)||this.imgData,f=0;0<=t?f<t:f>t;0<=t?++f:--f)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(this.transparency.indexed=this.read(t),(u=255-this.transparency.indexed.length)>0)for(d=0;0<=u?d<u:d>u;0<=u?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":n=(h=this.read(t)).indexOf(0),l=String.fromCharCode.apply(String,h.slice(0,n)),this.text[l]=String.fromCharCode.apply(String,h.slice(n+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=4===(c=this.colorType)||6===c,r=this.colors+ +!!this.hasAlphaChannel,this.pixelBitlength=this.bits*r,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw Error("Incomplete or corrupt PNG file")}}return i.load=function(e,t,r){var o;return"function"==typeof t&&(r=t),(o=new XMLHttpRequest).open("GET",e,!0),o.responseType="arraybuffer",o.onload=function(){var e;return e=new i(new Uint8Array(o.response||o.mozResponseArrayBuffer)),"function"==typeof(null!=t?t.getContext:void 0)&&e.render(t),"function"==typeof r?r(e):void 0},o.send(null)},i.prototype.read=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)r.push(this.data[this.pos++]);return r},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(e){var t,r,o,i,a,n,l,u,h,f,d,c,p,m,g,y,C,b,w,v,S,T,A;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);for(e=(e=new s.Z(e)).getBytes(),p=new Uint8Array((y=(c=this.pixelBitlength/8)*this.width)*this.height),n=e.length,g=0,m=0,r=0;m<n;){switch(e[m++]){case 0:for(i=w=0;w<y;i=w+=1)p[r++]=e[m++];break;case 1:for(i=v=0;v<y;
1i=v+=1)t=e[m++],a=i<c?0:p[r-c],p[r++]=(t+a)%256;break;case 2:for(i=S=0;S<y;i=S+=1)t=e[m++],o=(i-i%c)/c,C=g&&p[(g-1)*y+o*c+i%c],p[r++]=(C+t)%256;break;case 3:for(i=T=0;T<y;i=T+=1)t=e[m++],o=(i-i%c)/c,a=i<c?0:p[r-c],C=g&&p[(g-1)*y+o*c+i%c],p[r++]=(t+Math.floor((a+C)/2))%256;break;case 4:for(i=A=0;A<y;i=A+=1)t=e[m++],o=(i-i%c)/c,a=i<c?0:p[r-c],0===g?C=b=0:(C=p[(g-1)*y+o*c+i%c],b=o&&p[(g-1)*y+(o-1)*c+i%c]),u=Math.abs((l=a+C-b)-a),f=Math.abs(l-C),d=Math.abs(l-b),h=u<=f&&u<=d?a:f<=d?C:b,p[r++]=(t+h)%256;break;default:throw Error("Invalid filter algorithm: "+e[m-1])}g++}return p},i.prototype.decodePalette=function(){var e,t,r,o,i,a,n,l,s;for(r=this.palette,i=new Uint8Array(((a=this.transparency.indexed||[]).length||0)+r.length),o=0,r.length,e=0,t=n=0,l=r.length;n<l;t=n+=3)i[o++]=r[t],i[o++]=r[t+1],i[o++]=r[t+2],i[o++]=null!=(s=a[e++])?s:255;return i},i.prototype.copyToImageData=function(e,t){var r,o,i,a,n,l,s,u,h,f,d;if(o=this.colors,h=null,r=this.hasAlphaChannel,this.palette.length&&(h=null!=(d=this._decodedPalette)?d:this._decodedPalette=this.decodePalette(),o=4,r=!0),u=(i=e.data||e).length,n=h||t,a=l=0,1===o)for(;a<u;)s=h?4*t[a/4]:l,f=n[s++],i[a++]=f,i[a++]=f,i[a++]=f,i[a++]=r?n[s++]:this.transparency.grayscale&&this.transparency.grayscale===f?0:255,l=s;else for(;a<u;)s=h?4*t[a/4]:l,i[a++]=n[s++],i[a++]=n[s++],i[a++]=n[s++],i[a++]=r?n[s++]:this.transparency.rgb&&this.transparency.rgb[1]===n[s-3]&&this.transparency.rgb[3]===n[s-2]&&this.transparency.rgb[5]===n[s-1]?0:255,l=s},i.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e},o=(r=e.document&&e.document.createElement("canvas"))&&r.getContext("2d"),t=function(e){var t;return o.width=e.width,o.height=e.height,o.clearRect(0,0,e.width,e.height),o.putImageData(e,0,0),(t=new Image).src=r.toDataURL(),t},i.prototype.decodeFrames=function(e){var r,o,i,a,n,l,s,u;if(this.animation){for(u=[],o=n=0,l=(s=this.animation.frames).length;n<l;o=++n)r=s[o],i=e.createImageData(r.width,r.height),a=this.decodePixels(new Uint8Array(r.data)),this.copyToImageData(i,a),r.imageData=i,u.push(r.image=t(i));return u}},i.prototype.renderFrame=function(e,t){var r,o,i;return r=(o=this.animation.frames)[t],i=o[t-1],0===t&&e.clearRect(0,0,this.width,this.height),(null!=i?i.disposeOp:void 0)===1?e.clearRect(i.xOffset,i.yOffset,i.width,i.height):(null!=i?i.disposeOp:void 0)===2&&e.putImageData(i.imageData,i.xOffset,i.yOffset),0===r.blendOp&&e.clearRect(r.xOffset,r.yOffset,r.width,r.height),e.drawImage(r.image,r.xOffset,r.yOffset)},i.prototype.animate=function(e){var t,r,o,i,a,n,l=this;return r=0,i=(n=this.animation).numFrames,o=n.frames,a=n.numPlays,(t=function(){var n,s;if(s=o[n=r++%i],l.renderFrame(e,n),i>1&&r/i<a)return l.animation._timeout=setTimeout(t,s.delay)})()},i.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},i.prototype.render=function(e){var t,r;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(r=t.createImageData(this.width,this.height),this.copyToImageData(r,this.decodePixels()),t.putImageData(r,0,0))},i}(self);let S=new Set(["jpg","png","bmp","gif"]);async function T(e,t){if(!w.Z)throw new o.A("rasterCoded:decode","lerc decoder is not supported on big endian platform");await (0,d.Hh)();let{offset:r}=t,{width:i,height:l,pixelType:s,statistics:u,depthCount:h,noDataValues:f,bandMasks:c,pixels:p,mask:m}=(0,d.D4)(e,{inputOffset:r,returnInterleaved:t.returnInterleaved}),g=new a.A({width:i,height:l,pixelType:s.toLowerCase(),pixels:p,mask:m,statistics:u.map(({minValue:e,maxValue:t})=>new n.z(e,t)),bandMasks:c,depthCount:h,noDataValues:f});return u?.length||g.updateStatistics(),g}async function A(e,t){let r=await (0,b.D4)(e,{...t,noDataValue:null});(0,i.Lw)(r);let o=new a.A({width:r.width,height:r.height,pixels:r.pixels,pixelType:r.pixelType.toLowerCase(),mask:r.mask,bandMasks:r.bandMasks,statistics:null});return o.updateStatistics(),o}async function x(e,t){let r=await (0,b.s$)(e,t.customOptions),o=new a.A({width:r.width,height:r.height,pixels:r.pixels,pixelType:r.pixelType.toLowerCase(),mask:r.mask,statistics:null});return o.updateStatistics(),o}function I(e,t){let r=t.pixelType||"u8",o=a.A.getPixelArrayConstructor(r),i="u8"===r?e:new o(e.buffer),n=[],l=t.planes||1;if(1===l)n.push(i);else for(let r=0;r<l;r++){let a=(t.width||1)*(t.height||e.length),s=new o(a);for(let e=0;e<a;e++)s[e]=i[e*l+r];n.push(s)}let s=new a.A({width:t.width||1,height:t.height||e.length,pixels:n,pixelType:r,statistics:null});return s.updateStatistics(),s}function k(e,t){return I(new s.Z(new Uint8Array(e)).getBytes(),t)}function E(e,t){return I((0,c.D)(e,t.offset,t.eof,!t.isInputBigEndian),t)}function P(e,t){let r=f.decode(e,t.hasNoZlibMask??void 0),o=new a.A({width:r.width,height:r.height,pixels:r.pixels,pixelType:"u8",mask:r.mask,statistics:null});return o.updateStatistics(),o}function M(e,t){let r=new v(new Uint8Array(e)),{width:o,height:i}=t,n=o*i,l=r.decode(),s,u=0,h=0,f=new Uint8Array(n);for(u=0;
1u<n;u++)f[u]=l[4*u+3];let d=new a.A({width:o,height:i,pixels:[],pixelType:"u8",mask:f,statistics:[]});for(u=0;u<3;u++){for(s=new Uint8Array(n),h=0;h<n;h++)s[h]=l[4*h+u];d.addData({pixels:s})}return d.updateStatistics(),d}async function R(e,t,r,o){let i=new u,n={applyJpegMask:!1,format:t,...r},l=await i.decode(e,n,o),s=new a.A(l);return s.updateStatistics(),s}function L(e){if(null==e)throw new o.A("rasterCodec:decode","parameter encodeddata is required.");let t=new Uint8Array(e,0,10),r="";return 255===t[0]&&216===t[1]?r="jpg":137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?r="png":67===t[0]&&110===t[1]&&116===t[2]&&90===t[3]&&73===t[4]&&109===t[5]&&97===t[6]&&103===t[7]&&101===t[8]&&32===t[9]?r="lerc":76===t[0]&&101===t[1]&&114===t[2]&&99===t[3]&&50===t[4]&&32===t[5]?r="lerc2":73===t[0]&&73===t[1]&&42===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&42===t[3]||73===t[0]&&73===t[1]&&43===t[2]&&0===t[3]||77===t[0]&&77===t[1]&&0===t[2]&&43===t[3]?r="tiff":71===t[0]&&73===t[1]&&70===t[2]?r="gif":66===t[0]&&77===t[1]?r="bmp":String.fromCharCode.apply(null,t).toLowerCase().includes("error")&&(r="error"),r}function D(e){let t=L(e);return"lerc2"===t?t="lerc":"error"===t&&(t=""),t}async function O(e,t={},r){let i;if(null==e)throw new o.A("rasterCodec:decode","missing encodeddata parameter.");let n=t.format?.toLowerCase();if(("bsq"===n||"bip"===n)&&(null==t.width||null==t.height))throw new o.A("rasterCodec:decode","requires width and height in options parameter.");if("tiff"===n&&t.customOptions)return x(e,t);if(n&&("bsq"===n||"bip"===n||"deflate"===n||"lzw"===n)||(n=L(e)),t.useCanvas&&S.has(n))return R(e,n,t,r);let l=function(e){let t=null;switch(e){case"lerc":case"lerc2":t=T;break;case"jpg":t=P;break;case"png":t=M;break;case"bsq":case"bip":t=(t,r)=>(function(e,t,r){let{pixelTypeCtor:o}=function(e){let t=null,r=null;switch(e?e.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":r=255,t=Uint8Array;break;case"u16":r=r||65535,t=Uint16Array;break;case"u32":r=r||0x100000000-1,t=Uint32Array;break;case"s8":r=r||-128,t=Int8Array;break;case"s16":r=r||-32768,t=Int16Array;break;case"s32":r=r||0-0x80000000,t=Int32Array;break;default:t=Float32Array}return{pixelTypeCtor:t,noDataValue:r}}(t.pixelType),i=(0,C.decode)(e,{width:t.width,height:t.height,pixelType:o,format:r}),n=new a.A({width:t.width,height:t.height,pixels:i.pixels,pixelType:t.pixelType,mask:i.mask,statistics:null});return n.updateStatistics(),n})(t,r,e);break;case"tiff":t=A;break;case"deflate":t=k;break;case"lzw":t=E;break;case"error":t=()=>{throw new o.A("rasterCodec:decode","input data contains error")};break;default:t=()=>{throw new o.A("rasterCodec:decode","unsupported raster format")}}return t}(n);t.isPoint&&(null!=(t={...t}).width&&t.width++,null!=t.height&&t.height++);let{offsets:s}=t;if(s&&s.length>1){let r=s.map((r,o)=>l(e.slice(r,s[o+1]),t)),o=await Promise.all(r);(i=o[0]).pixels=o.map(e=>e.pixels[0]);let n=o.map(e=>e.mask);o.some(e=>null!=e)&&(n.forEach((e,t)=>{null==e&&(n[t]=new Uint8Array(i.width*i.height).fill(255))}),i.bandMasks=n,i.mask=a.A.combineBandMasks(n)),i.updateStatistics()}else i=await l(e,{...t,offset:s?.[0]??t.offset});return"jpg"!==n&&null!=t.noDataValue&&1===i.depthCount&&(0,p.Sp)(i,t.noDataValue,{customFloatTolerance:t.tolerance}),t.isPoint&&function(e,t=1){if(!e)return;let{pixels:r,width:o,height:i,mask:n}=e;if(!r||0===r.length)return;let l=r.length,s=o-1,u=i-1,h=[],f,d,c,p,m,g,y=null,C=a.A.getPixelArrayConstructor(e.pixelType);if(0===t){for(f=0;f<l;f++){for(m=r[f],g=new C(s*u),d=0;d<u;d++)for(p=d*o,c=0;c<s;c++)g[d*s+c]=m[p+c];h.push(g)}if(null!=n)for(y=new Uint8Array(s*u),d=0;d<u;d++)for(p=d*o,c=0;c<s;c++)y[d*s+c]=n[p+c]}else{for(f=0;f<l;f++){for(m=r[f],g=new C(s*u),d=0;d<u;d++)for(p=d*o,c=0;c<s;c++)g[d*s+c]=(m[p+c]+m[p+c+1]+m[p+o+c]+m[p+o+c+1])/4;h.push(g)}if(n)for(y=new Uint8Array(s*u),d=0;d<u;d++)for(p=d*o,c=0;c<s;c++)y[d*s+c]=Math.min.apply(null,[n[p+c],n[p+c+1],n[p+o+c],n[p+o+c+1]])}e.width=s,e.height=u,e.mask=y,e.pixels=h}(i),i}},27452:(e,t,r)=>{r.d(t,{A:()=>m});var o=r(49493),i=r(40496),a=r(64988),n=r(9491);r(74552),r(32243);var l=r(44708),s=r(49734),u=r(53825),h=r(63358),f=r(95480),d=r(16413),c=r(49162);let p=class extends i.oY{constructor(e){super(e)}bind(){let e,{rendererJSON:t}=this;if(!t)return{success:!1};switch(this.lookup={rendererJSON:{}},t.type){case"uniqueValue":e=this._updateUVRenderer(t);break;case"rasterColormap":e=this._updateColormapRenderer(t);break;case"rasterStretch":e=this._updateStretchRenderer(t);break;case"classBreaks":e=this._updateClassBreaksRenderer(t);break;case"rasterShadedRelief":e=this._updateShadedReliefRenderer(t);break;case"vectorField":e=this._updateVectorFieldRenderer();break;case"flowRenderer":e=this._updateFlowRenderer()}return e}symbolize(e){let t=e?.pixelBlock;if(!g(t))return t;if(e.simpleStretchParams&&"rasterStretch"===this.rendererJSON.type)return this.simpleStretch(t,e.simpleStretchParams);try{let r;switch(t.pixels.length>3&&(t=t.extractBands(e.bandIds??[0,1,2])),this.rendererJSON.type){case"uniqueValue":case"rasterColormap":r=this._symbolizeColormap(t);break;case"classBreaks":r=this._symbolizeClassBreaks(t);break;case"rasterStretch":r=this._symbolizeStretch(t,e.bandIds);break;case"rasterShadedRelief":{let o=e.extent,i=o.spatialReference.isGeographic,a={x:(o.xmax-o.xmin)/t.width,y:(o.ymax-o.ymin)/t.height};r=this._symbolizeShadedRelief(t,{isGCS:i,resolution:a})}}return r}catch(e){return a.A.getLogger(this).error("symbolize",e.message),t}}simpleStretch(e,t){if(!g(e))return e;try{return e.pixels.length>3&&(e=e.extractBands([0,1,2])),(0,h._N)(e,{...t,isRenderer:!0})}catch(t){return a.A.getLogger(this).error("symbolize",t.message),e}}generateWebGLParameters(e){if(["uniqueValue","rasterColormap","classBreaks"].includes(this.rendererJSON.type)){let{indexedColormap:e,offset:t}=this.lookup.colormapLut||{};return{colormap:e,colormapOffset:t,isClassBreaks:"classBreaks"===this.rendererJSON.type,type:"lut"}}let{pixelBlock:t,isGCS:r,resolution:o,bandIds:i}=e,{rendererJSON:a}=this;return"rasterStretch"===a.type?this._generateStretchWebGLParams(t,a,i):"rasterShadedRelief"===a.type?this._generateShadedReliefWebGLParams(a,r,o??void 0):"vectorField"===a.type?this._generateVectorFieldWebGLParams(a):null}_isLUTChanged(e){if(!this.lookup||!this.lookup.rendererJSON)return!0;
1if("colorRamp"in this.rendererJSON){let t=this.rendererJSON.colorRamp;return e?JSON.stringify(t)!==JSON.stringify(this.lookup.rendererJSON.colorRamp):(this.rendererJSON,this.lookup.rendererJSON,JSON.stringify(this.rendererJSON)!==JSON.stringify(this.lookup.rendererJSON))}return JSON.stringify(this.rendererJSON)!==JSON.stringify(this.lookup.rendererJSON)}_symbolizeColormap(e){return this._isLUTChanged()&&!this.bind().success?e:(0,u.qL)(e,this.lookup.colormapLut)}_symbolizeClassBreaks(e){let{canUseIndexedLUT:t}=this._analyzeClassBreaks(this.rendererJSON);return this._isLUTChanged()&&!this.bind().success?e:t?(0,u.qL)(e,this.lookup.colormapLut):(0,u.Hx)(e,this.lookup.remapLut??[])}_symbolizeStretch(e,t){let r,o,{rasterInfo:i}=this,{pixelType:a,bandCount:n}=i,l=this.rendererJSON,s=["u8","u16","s8","s16"].includes(a),{dra:f}=l,{gamma:d}=this.lookup;if("histogramEqualization"===l.stretchType){let r=f?null:this.lookup?.histogramLut,a=(0,h.DP)(l,{rasterInfo:i,pixelBlock:e,bandIds:t,returnHistogramLut:!r}),n=(0,h._N)(e,{...a,gamma:d,isRenderer:!0});o=(0,u.eH)(n,{lut:f?a.histogramLut:r,offset:0})}else if(s){if(f){let o=(0,h.DP)(l,{rasterInfo:i,pixelBlock:e,bandIds:t});r=(0,h.RP)({pixelType:a,...o,gamma:d,rounding:"floor"})}else if(this._isLUTChanged()){if(!this.bind().success)return e;r=this.lookup?this.lookup.stretchLut:null}else r=this.lookup?this.lookup.stretchLut:null;if(!r)return e;n>1&&null!=t&&t.length===e?.pixels.length&&r?.lut.length===n&&(r={lut:t.map(e=>r.lut[e]),offset:r.offset}),o=(0,u.eH)(e,r)}else{let r=(0,h.DP)(l,{rasterInfo:i,pixelBlock:e,bandIds:t});o=(0,h._N)(e,{...r,gamma:d,isRenderer:!0})}if(l.colorRamp){if(this._isLUTChanged(!0)&&!this.bind().success)return e;o=(0,u.qL)(o,this.lookup?.colormapLut)}return o}_symbolizeShadedRelief(e,t){let r,o=this.rendererJSON,i={...o,...t},a=(0,f.fw)(e,i);if(!o.colorRamp)return a;if(this._isLUTChanged(!0)){if(!this.bind().success)return a;r=this.lookup?this.lookup.hsvMap:null}else r=this.lookup?this.lookup.hsvMap:null;if(!r)return a;let n=this.rasterInfo.statistics?.[0]??{min:0,max:8e3};return(0,f.SC)(a,e,r,n),a}_isVectorFieldData(){let{bandCount:e,dataType:t}=this.rasterInfo;return 2===e&&("vector-magdir"===t||"vector-uv"===t)}_updateVectorFieldRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; VectorFieldRenderer only supports "vector-magdir" and "vector-uv".`}}_updateFlowRenderer(){return this._isVectorFieldData()?{success:!0}:{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; FlowRenderer only supports "vector-magdir" and "vector-uv".`}}_updateUVRenderer(e){let{bandCount:t,attributeTable:r,pixelType:o}=this.rasterInfo,i=e.field1;if(!i)return{success:!1,error:"Unsupported renderer; missing UniqueValueRenderer.field."};let a=e.defaultSymbol,n=1===t&&["u8","s8"].includes(o);if(!(0,c.hu)(this.rasterInfo,i)&&!n)return{success:!1,error:"Unsupported data; UniqueValueRenderer is only supported on single band data with a valid raster attribute table."};let l=[];if(null!=r){let t=r.fields.find(e=>"value"===e.name.toLowerCase());if(!t)return{success:!1,error:"Unsupported data; the data's raster attribute table does not have a value field."};r.features.forEach(r=>{let o=e.uniqueValueInfos?.find(e=>String(e.value)===String(r.attributes[i])),n=o?.symbol?.color;n?l.push([r.attributes[t.name]].concat(n)):a&&l.push([r.attributes[t.name]].concat(a.color))})}else{if("value"!==i.toLowerCase())return{success:!1,error:'Unsupported renderer; UniqueValueRenderer.field must be "Value" when raster attribute table is not available.'};e.uniqueValueInfos?.forEach(e=>{let t=e?.symbol?.color;t?l.push([parseInt(""+e.value,10)].concat(t)):a&&l.push([parseInt(""+e.value,10)].concat(a?.color))})}if(0===l.length)return{success:!1,error:"Invalid UniqueValueRenderer. Cannot find matching records in the raster attribute table."};let s=(0,u.zg)({colormap:l});return this.lookup={rendererJSON:e,colormapLut:s},this.canRenderInWebGL=(0,c.WN)(s?.indexedColormap),{success:!0}}_updateColormapRenderer(e){if(!(0,c.FA)(this.rasterInfo))return{success:!1,error:"Unsupported data; the data source does not have a colormap."};let t=e.colormapInfos.map(e=>[e.value].concat(e.color)).sort((e,t)=>
1e[0]-t[0]);if(!t||0===t.length)return{success:!1,error:"Unsupported renderer; ColormapRenderer must have meaningful colormapInfos."};let r=(0,u.zg)({colormap:t});return this.lookup={rendererJSON:e,colormapLut:r},this.canRenderInWebGL=(0,c.WN)(r?.indexedColormap),{success:!0}}_updateShadedReliefRenderer(e){if(!(0,c.iL)(this.rasterInfo))return{success:!1,error:`Unsupported data type "${this.rasterInfo.dataType}"; ShadedReliefRenderer only supports "elevation", or single band float/s16 data.`};if(e.colorRamp){let t=(0,d.R8)(e.colorRamp,{interpolateAlpha:!0}),r=(0,u.zg)({colormap:t}),o=(0,d.S2)(r.indexedColormap);this.lookup={rendererJSON:e,colormapLut:r,hsvMap:o}}else this.lookup=null;return this.canRenderInWebGL=!0,{success:!0}}_analyzeClassBreaks(e){let{attributeTable:t,pixelType:r}=this.rasterInfo,o=null!=t?t.fields.find(e=>"value"===e.name.toLowerCase()):null,i=null!=t?t.fields.find(t=>t.name.toLowerCase()===e.field.toLowerCase()):null;return{canUseIndexedLUT:["u8","u16","s8","s16"].includes(r)||null!=o&&null!==i,tableValueField:o,tableBreakField:i}}_updateClassBreaksRenderer(e){let{attributeTable:t}=this.rasterInfo,{canUseIndexedLUT:r,tableValueField:o,tableBreakField:i}=this._analyzeClassBreaks(e),a=e.classBreakInfos;if(!a?.length)return{success:!1,error:"Unsupported renderer; missing or invalid ClassBreaksRenderer.classBreakInfos."};let n=a.sort((e,t)=>e.classMaxValue-t.classMaxValue),l=n[n.length-1],s=e.minValue;if(!r){let t=[];for(let e=0;e<n.length;e++)t.push({value:n[e].classMinValue??s,mappedColor:n[e].symbol.color}),s=n[e].classMaxValue;return t.push({value:l.classMaxValue,mappedColor:l.symbol.color}),this.lookup={rendererJSON:e,remapLut:t},this.canRenderInWebGL=!1,{success:!0}}let h=[];if(null!=t&&null!=o&&null!==i&&o!==i){let r=o.name,a=i.name,l=n[n.length-1],{classMaxValue:u}=l;for(let o of(s=e.minValue,t.features)){let e=o.attributes[r],t=o.attributes[a],i=t===u?l:t<s?null:n.find(({classMaxValue:e})=>e>t);i&&h.push([e].concat(i.symbol.color))}}else{s=Math.floor(e.minValue);for(let e=0;e<n.length;e++){let t=n[e];for(let e=s;e<t.classMaxValue;e++)h.push([e].concat(t.symbol.color));s=Math.ceil(t.classMaxValue)}l.classMaxValue===s&&h.push([l.classMaxValue].concat(l.symbol.color))}let f=(0,u.zg)({colormap:h,fillUnspecified:!1});return this.lookup={rendererJSON:e,colormapLut:f},this.canRenderInWebGL=(0,c.WN)(f?.indexedColormap),{success:!0}}_updateStretchRenderer(e){var t,r,o;let{stretchType:i,dra:a}=e;if(!("none"===i||e.statistics?.length||null!=(t=this.rasterInfo.statistics)&&t.length>0&&null!=t[0].min&&null!=t[0].max||a))return{success:!1,error:"Unsupported renderer; StretchRenderer.statistics is required when dynamic range adjustment is not used."};let n=e.histograms||this.rasterInfo.histograms;"percentClip"!==(r=e.stretchType)&&"histogramEqualization"!==r||n?.length||a||(i="minMax");let{computeGamma:l,useGamma:s,colorRamp:f}=e,{gamma:c}=e;if(s&&l&&!c?.length){let t=e.statistics?.length?e.statistics:this.rasterInfo.statistics;c=(0,h.fP)(this.rasterInfo.pixelType,t)}let p=this.rasterInfo.pixelType,m=!a&&["u8","u16","s8","s16"].includes(p);if("histogramEqualization"===i){let t=n.map(e=>(0,h.WF)(e));this.lookup={rendererJSON:e,histogramLut:t}}else if(m){let t=(0,h.DP)(e,{rasterInfo:this.rasterInfo}),r=(0,h.RP)({pixelType:p,...t,gamma:s?c:null,rounding:"floor"});this.lookup={rendererJSON:e,stretchLut:r}}if(f&&!("algorithmic"===(o=f).type&&["0,0,0,255","0,0,0"].includes(o.fromColor.join(","))&&["255,255,255,255","255,255,255"].includes(o.toColor.join(",")))){let t=(0,d.R8)(f,{interpolateAlpha:!0});this.lookup||(this.lookup={rendererJSON:e}),this.lookup.colormapLut=(0,u.zg)({colormap:t}),this.lookup.rendererJSON=e}return this.lookup.gamma=s&&c?.length?c:null,this.canRenderInWebGL=!0,{success:!0}}_generateStretchWebGLParams(e,t,r){let o,i=null,a=null,n=this.lookup?.colormapLut;t.colorRamp&&n&&(i=n.indexedColormap,a=n.offset),"histogramEqualization"===t.stretchType&&(t={...t,stretchType:"minMax"});let{gamma:l}=this.lookup,s=!(!t.useGamma||!l?.some(e=>1!==e)),{minCutOff:u,maxCutOff:f,outMin:d,outMax:c}=(0,h.DP)(t,{rasterInfo:this.rasterInfo,pixelBlock:e,bandIds:r}),p=0;
1null!=e&&2===(p=e.getPlaneCount())&&((e=e.clone()).statistics=[e.statistics[0]],e.pixels=[e.pixels[0]]);let{bandCount:m}=this.rasterInfo,g=Math.min(3,r?.length||p||m,m),y=new Float32Array(g),C=i||s?1:255;for(o=0;o<u.length;o++)y[o]=f[o]===u[o]?0:(c-d)/(f[o]-u[o])/C;let b=new Float32Array(g);if(s&&l)for(o=0;o<g;o++)l[o]>1?l[o]>2?b[o]=6.5+(l[o]-2)**2.5:b[o]=6.5+100*(2-l[o])**4:b[o]=1;return{bandCount:g,outMin:d/C,outMax:c/C,minCutOff:u,maxCutOff:f,factor:y,useGamma:s,gamma:s?l:[1,1,1],gammaCorrection:s?b:[1,1,1],colormap:i,colormapOffset:a,stretchType:t.stretchType,type:"stretch"}}_generateShadedReliefWebGLParams(e,t=!1,r={x:0,y:0}){let o=null,i=null,a=this.lookup?.colormapLut;e.colorRamp&&a&&(o=a.indexedColormap,i=a.offset);let n={...e,isGCS:t,resolution:r},l=(0,f.ng)(n),s=this.rasterInfo.statistics?.[0];return{...l,minValue:s?.min??0,maxValue:s?.max??8e3,hillshadeType:+("traditional"!==e.hillshadeType),type:"hillshade",colormap:o,colormapOffset:i}}_generateVectorFieldWebGLParams(e){let t,{style:r,inputUnit:o,outputUnit:i,visualVariables:a,symbolTileSize:n,flowRepresentation:l}=e,s=this.rasterInfo.statistics?.[0].min??0,u=this.rasterInfo.statistics?.[0].max??50,h=a?.find(e=>"sizeInfo"===e.type)??{type:"sizeInfo",field:"Magnitude",maxDataValue:u,maxSize:.8*n,minDataValue:s,minSize:.2*n},f=h.minDataValue??s,d=h.maxDataValue??u,c=null!=h.maxSize&&null!=h.minSize?[h.minSize/n,h.maxSize/n]:[.2,.8];if("wind_speed"===r){let e=(c[0]+c[1])/2;c[0]=c[1]=e}if("classified_arrow"===r)if(null!=f&&null!=d&&null!=h){t=[];let e=(h.maxDataValue-h.minDataValue)/5;for(let r=0;r<6;r++)t.push(h.minDataValue+e*r)}else t=[0,1e-6,3.5,7,10.5,14];let p="flow_to"===l==("ocean_current_kn"===r||"ocean_current_m"===r)?0:Math.PI,m=a?.find(e=>"rotationInfo"===e.type);return{breakValues:t,dataRange:null!=f&&null!=d?[f,d]:null,inputUnit:o,outputUnit:i,symbolTileSize:n,symbolPercentRange:c,style:r||"single_arrow",rotation:p,rotationType:this.rasterInfo.storageInfo?.tileInfo&&"vector-uv"===this.rasterInfo.dataType?"geographic":m?.rotationType||e.rotationType,type:"vectorField"}}};(0,o._)([(0,n.MZ)({json:{write:!0}})],p.prototype,"rendererJSON",void 0),(0,o._)([(0,n.MZ)({type:s.A,json:{write:!0}})],p.prototype,"rasterInfo",void 0),(0,o._)([(0,n.MZ)({json:{write:!0}})],p.prototype,"lookup",void 0),(0,o._)([(0,n.MZ)()],p.prototype,"canRenderInWebGL",void 0);let m=p=(0,o._)([(0,l.$)("esri.renderers.support.RasterSymbolizer")],p);function g(e){return(0,u.AB)(e)&&0!==e.validPixelCount}},27768:(e,t,r)=>{r.d(t,{Cr:()=>P,D4:()=>F,JM:()=>N,XO:()=>R,r9:()=>D,s$:()=>_,uT:()=>G,uc:()=>M,zS:()=>L}),r(74552);var o=r(50883),i=r(32446),a=r(58207),n=r(70722),l=r(99831),s=r(82609),u=r(12748),h=r(71762);let f=[0,1,1,2,4,8,1,1,2,4,8,4,8,-1,-1,-1,8,8,8],d=new Set([1,5,6,7,8,34712,34887]);function c(e,t){let r="unknown";return 3===e?r=64===t?"f64":"f32":1===e?1===t?r="u1":2===t?r="u2":4===t?r="u4":t<=8?r="u8":t<=16?r="u16":t<=32&&(r="u32"):2===e&&(t<=8?r="s8":t<=16?r="s16":t<=32&&(r="s32")),r}function p(e){let t=null;switch(e?e.toLowerCase():"f32"){case"u1":case"u2":case"u4":case"u8":t=Uint8Array;break;case"u16":t=Uint16Array;break;case"u32":t=Uint32Array;break;case"s8":t=Int8Array;break;case"s16":t=Int16Array;break;case"s32":t=Int32Array;break;case"f64":t=Float64Array;break;default:t=Float32Array}return t}function m(e,t){return e.get(t)?.values}function g(e,t){return e.get(t)?.values}function y(e,t){return e.get(t)?.values?.[0]}function C(e,t){return e.get(t)?.values?.[0]}function b(e,t,r,o=0,i=s.A.tiffTags,a=4){let n=8===a,l=n?O(new DataView(e,r,8),0,t):new DataView(e,r,2).getUint16(0,t),u=4+2*a,h=n?8:2,f=h+l*u;if(r+f>e.byteLength)return{success:!1,ifd:null,nextIFD:null,requiredBufferSize:f};let d=r+f+4<=e.byteLength?U(new DataView(e,r+f,8===a?8:4),0,t,8===a):null,c=r+h,p=new Map,m,g,y,C,w,v=0,S=0;for(let r=0;r<l;r++){y=(g=new DataView(e,c+u*r,u)).getUint16(0,t),w=g.getUint16(2,t),C=s.A.getTagName(y,i);let n=[];2===a?(v=g.getUint16(4,t),S=g.getUint16(6,t)):4===a?(v=g.getUint32(4,t),S=g.getUint32(8,t)):8===a&&(v=U(g,4,t,!0),S=U(g,12,t,!0),n.push(g.getUint32(12,t)),n.push(g.getUint32(16,t))),P(e,t,m={id:y,type:w,valueCount:v,valueOffset:S,valueOffsets:n,values:null},o,!1,a),p.set(C,m)}return{success:!0,ifd:p,nextIFD:d,requiredBufferSize:f}}let w=(e,t)=>(0,a.D4)(e,{inputOffset:t}).pixels[0];function v(e,t){if(1!==t&&2!==t&&4!==t)return e;let r=new Uint8Array(e),o=8/t,i=new Uint8Array(e.byteLength*o),a=0,n=2**t-1;for(let e=0;e<r.length;e++){let l=r[e];for(let e=0;e<o;e++)i[a++]=l<<t*e>>>8-t&n}return i.buffer}function S(e,t,r){let o=new i.J;return o.parse(e),o.colorTransform=6===r?-1:0,new Uint8Array(o.getData(o.width,o.height,1!==t&&4!==t).buffer)}
1function T(e){let t=new h.Z(e).getBytes(),r=new Uint8Array(new ArrayBuffer(t.length));return r.set(t),r}async function A(e,t,r,o,i){let l,s,h,f=u.Z===t,d=C(r,"BITSPERSAMPLE"),m=C(r,"SAMPLESPERPIXEL")??1,g=C(r,"PHOTOMETRICINTERPRETATION"),y=C(r,"SAMPLEFORMAT")??1,b=c(y,d),A=C(r,"COMPRESSION")??1,x=p(b);if(34887===A)return await (0,a.Hh)(),w(e,o);if(1===A)s=new Uint8Array(l=e.slice(o,o+i));else if(8===A||32946===A)l=(s=T(s=new Uint8Array(e,o,i))).buffer;else if(6===A)l=(s=S(s=new Uint8Array(e,o,i),m,g)).buffer;else if(7===A){let t=r.get("JPEGTABLES").values,a=t.length-2;s=new Uint8Array(a+i-2);for(let e=0;e<a;e++)s[e]=t[e];let n=new Uint8Array(e,o+2,i-2);for(let e=0;e<n.length;e++)s[a+e]=n[e];l=(s=S(s,m,g)).buffer}else{if(5!==A)throw Error("tiff-decode: unsupport compression "+A);l=(s=(0,n.D)(e,o,i,t)).buffer}if(l=v(l,d),"u8"===b||"s8"===b||f)h=new x(l);else{let e=new Uint8Array(l=new ArrayBuffer(s.length));switch(b){case"u16":case"s16":for(let t=0;t<s.length;t+=2)e[t]=s[t+1],e[t+1]=s[t];break;case"u32":case"s32":case"f32":for(let t=0;t<s.length;t+=4)e[t]=s[t+3],e[t+1]=s[t+2],e[t+2]=s[t+1],e[t+3]=s[t]}h=new x(l)}let I=C(r,"PREDICTOR")??1,k=C(r,"TILEWIDTH"),E=C(r,"TILELENGTH");if(I>1&&(5===A||8===A||32946===A)&&k&&E){let e=R(r),t=new x(h.length);t.set(h),h=function(e,t,r,o,i){let a=o?4:1,n=r*a*i;o&&(e=new Uint8Array(e.buffer));for(let r=0;r<t;r++){let t=r*n;for(let r=i;r<n;r++)e[t+r]+=e[t+r-i]}if(!o)return e;let l=new Uint8Array(e.length),s=r*i;for(let r=0;r<t;r++){let t=r*n;for(let r=0;r<s;r++)for(let o=0;o<a;o++)l[t+r*a+o]=e[t+r+(a-o-1)*s]}return new Float32Array(l.buffer)}(t,E,k,3===y&&3===I,e?1:m)}return h}async function x(e,t,r){let o,i,a,n,l,s,u,h,f,d,c,m,y,b=g(r,"TILEOFFSETS");if(void 0===b)return null;let w=g(r,"TILEBYTECOUNTS"),{width:v,height:S,pixelType:T,tileWidth:x,tileHeight:I}=M([r]),k=R(r,t),E=C(r,"SAMPLESPERPIXEL")||t.planes,P=v*S,L=C(r,"BITSPERSAMPLE"),D=34887===(C(r,"COMPRESSION")??1),O=p(T),U=[];for(let e=0;e<E;e++)U.push(new O(P));let G=Math.ceil(v/x),N=new Uint8Array(P).fill(255),B=!1;if(L%8==0)if(D&&k&&E>1){let i=Math.round(b.length/E);for(o=0;o<i;o++){h=(s=Math.floor(o/G)*I)*v+(u=o%G*x);for(let i=0;i<E;i++){let p=o*E+i;for(0===w[p]?(a=null,B=!0):a=await A(e,t.littleEndian,r,b[p],w[p]),d=0,f=h,m=Math.min(x,v-u),c=Math.min(I,S-s),y=U[i],n=0;n<c;n++)for(f=h+n*v,d=n*x,l=0;l<m;l++,f++,d++)a?y[f]=a[d]:N[f]=0}}}else for(o=0;o<b.length;o++)for(h=(s=Math.floor(o/G)*I)*v+(u=o%G*x),0===w[o]?(a=null,B=!0):a=await A(e,t.littleEndian,r,b[o],w[o]),d=0,f=h,m=Math.min(x,v-u),c=Math.min(I,S-s),i=0;i<E;i++)if(y=U[i],k||D)for(n=0;n<c;n++)for(f=h+n*v,d=x*I*i+n*x,l=0;l<m;l++,f++,d++)a?y[f]=a[d]:N[f]=0;else for(n=0;n<c;n++)for(f=h+n*v,d=n*x*E+i,l=0;l<m;l++,f++,d+=E)a?y[f]=a[d]:N[f]=0;return{width:v,height:S,pixelType:T,pixels:U,mask:B?N:void 0}}let I=(e,t,r)=>{let o,i,a,l,s,h,f,d,c,m=u.Z===t.littleEndian,y=g(r,"STRIPOFFSETS");if(void 0===y)return null;let{width:b,height:w,pixelType:A}=M([r]),x=C(r,"SAMPLESPERPIXEL")||t.planes,I=C(r,"PHOTOMETRICINTERPRETATION"),k=b*w,E=C(r,"BITSPERSAMPLE"),P=p(A),R=new P(k*x),L=g(r,"STRIPBYTECOUNTS"),D=C(r,"ROWSPERSTRIP"),O=C(r,"COMPRESSION")??1;if(E%8==0)for(o=0;o<y.length;o++){if(s=D*b*o*x,"u8"===A||"s8"===A||m)l=new P(h=v(h=8===O||32946===O?(f=T(f=new Uint8Array(e,y[o],L[o]))).buffer:6===O?(f=S(f=new Uint8Array(e,y[o],L[o]),x,I)).buffer:5===O?(f=(0,n.D)(e,y[o],L[o],t.littleEndian)).buffer:e.slice(y[o],y[o]+L[o]),E));else{switch(6===O||8===O||32946===O?h=(d=T(f=new Uint8Array(e,y[o],L[o]))).buffer:(h=new ArrayBuffer(L[o]),f=new Uint8Array(e,y[o],L[o]),d=new Uint8Array(h)),A){case"u16":case"s16":for(a=0;a<f.length;a+=2)d[a]=f[a+1],d[a+1]=f[a];break;case"u32":case"s32":case"f32":for(a=0;a<f.length;a+=4)d[a]=f[a+3],d[a+1]=f[a+2],d[a+2]=f[a+1],d[a+3]=f[a]}l=new P(h=v(h,E))}R.set(l,s)}let U=[];if(1===x)U.push(R);else for(o=0;o<x;o++){for(c=new P(k),i=0;i<k;i++)c[i]=R[i*x+o];U.push(c)}return{width:b,height:w,pixelType:A,pixels:U}},k=(e,t,r)=>{let o,i,a;if(!(e&&e.length>0&&t&&r))return null;let n=e[0].length,l=e.length,s=new Uint8Array(n);for(let u=0;u<l;u++)if(o=e[u],i=t[u],a=r[u],0===u)for(let e=0;e<n;e++)s[e]=o[e]<i||o[e]>a?0:1;else for(let e=0;e<n;e++)s[e]&&(s[e]=o[e]<i||o[e]>a?0:1);return s},E=e=>{let t,r,o,i,a;if(!e)return null;let n=e.match(/<Item(.*?)Item>/gi);
1if(!n||0===n.length)return null;let l=new Map;for(let e=0;e<n.length;e++)r=(t=n[e]).slice(6,t.indexOf(">")),(i=t.indexOf("sample="))>-1&&(a=t.slice(i+8,t.indexOf('"',i+8))),(i=t.indexOf("name="))>-1&&(r=t.slice(i+6,t.indexOf('"',i+6))),r&&(o=t.slice(t.indexOf(">")+1,t.indexOf("</Item>")).trim(),null!=a?l.has(r)?l.get(r)[a]=o:l.set(r,[o]):l.set(r,o)),a=null;let s=l.get("STATISTICS_MINIMUM"),u=l.get("STATISTICS_MAXIMUM"),h=l.get("STATISTICS_MEAN"),f=l.get("STATISTICS_STDDEV"),d=null;if(s&&u){d=[];for(let e=0;e<s.length;e++)d.push({min:parseFloat(s[e]),max:parseFloat(u[e]),avg:h&&parseFloat(h[e]),stddev:f&&parseFloat(f[e])})}let c=l.get("BandName"),p=l.get("WavelengthMin"),m=l.get("WavelengthMax"),g=null;if(c){g=[];for(let e=0;e<c.length;e++)g.push({BandName:c[e],WavelengthMin:p&&parseFloat(p[e]),WavelengthMax:m&&parseFloat(m[e])})}return{statistics:d,bandProperties:g,dataType:l.get("DataType"),rawMetadata:l}};function P(e,t,r,o=0,i=!1,a=4){let n,l;if(r.values)return!0;let s=r.type,u=r.valueCount,h=r.valueOffset,d=[],c=f[s],p=8*c,m=u*c,g=u*f[s]*8,y=8===a?64:32,C=r.valueOffsets;if(g>y&&m>(i?e.byteLength:e?e.byteLength-h+o:0))return r.offlineOffsetSize=[h,m],r.values=null,!1;if(g<=y){if(!t)if(y<=32)h>>>=32-g;else{let e=C?.length?C[0]:h>>>0,t=C?.length?C[1]:Math.round((h-e)/0x100000000);g<=32?(h=e>>>32-g,C[0]=h):(h=e*2**(32-g)+(t>>>32-g),C[0]=e,C[1]=t>>>32-g)}if(1===u&&p===y)d=[h];else if(64===y){let e=C?.length?C[0]:h>>>0,t=C?.length?C[1]:Math.round((h-e)/0x100000000),r=e,o=32;for(l=1;l<=u;l++){let e=32-p*l%32;if(o<p){let i=r<<e>>>32-o,a=t<<32-o>>>32-o;r=t,d.push(i+a*2**(p-o)),o-=32-(p-o)}else d.push(r<<e>>>32-p),o-=p;0===o&&(o=32,r=t)}}else for(l=1;l<=u;l++){let e=32-p*l;d.push(h<<e>>>32-p)}}else{h-=o,i&&(h=0);for(let r=h;r<h+m;r+=c){switch(s){case 1:case 2:case 7:n=new DataView(e,r,1).getUint8(0);break;case 3:n=new DataView(e,r,2).getUint16(0,t);break;case 4:case 13:n=new DataView(e,r,4).getUint32(0,t);break;case 5:n=new DataView(e,r,4).getUint32(0,t)/new DataView(e,r+4,4).getUint32(0,t);break;case 6:n=new DataView(e,r,1).getInt8(0);break;case 8:n=new DataView(e,r,2).getInt16(0,t);break;case 9:n=new DataView(e,r,4).getInt32(0,t);break;case 10:n=new DataView(e,r,4).getInt32(0,t)/new DataView(e,r+4,4).getInt32(0,t);break;case 11:n=new DataView(e,r,4).getFloat32(0,t);break;case 12:n=new DataView(e,r,8).getFloat64(0,t);break;case 16:case 18:n=O(new DataView(e,r,8),0,t);break;case 17:n=function(e,t,r){let o=r?e.getInt32(0,r):e.getUint32(t,r),i=r?e.getUint32(t+4,r):e.getInt32(t+4,r),a=(r?o:i)>=0?1:-1;return r?o*=a:i*=a,a*(r?0x100000000*i+o:0x100000000*o+i)}(new DataView(e,r,8),0,t);break;default:n=null}d.push(n)}}if(2===s){let e="",t=d;for(d=[],l=0;l<t.length;l++)0===t[l]&&""!==e?(d.push(e),e=""):e+=String.fromCharCode(t[l]);""===e&&0!==d.length||d.push(e)}return r.values=d,!0}function M(e){let t,r,o,i,a,n,l,s=e[0],u=C(s,"TILEWIDTH"),h=C(s,"TILELENGTH"),f=C(s,"IMAGEWIDTH"),p=C(s,"IMAGELENGTH"),b=C(s,"BITSPERSAMPLE"),w=C(s,"SAMPLESPERPIXEL"),v=C(s,"SAMPLEFORMAT")??1,S=c(v,b),T=R(s),A=m(s,"GDAL_NODATA"),x=null;A?.length&&(x=A.map(e=>parseFloat(e))).some(e=>isNaN(e))&&(x=null);let I=C(s,"COMPRESSION")??1;switch(I){case 1:t="NONE";break;case 2:case 3:case 4:case 32771:t="CCITT";break;case 5:t="LZW";break;case 6:case 7:t="JPEG";break;case 32773:t="PACKBITS";break;case 8:case 32946:t="DEFLATE";break;case 34712:t="JPEG2000";break;case 34887:t="LERC";break;default:t=String(I)}let k=!0,P="";d.has(I)||(k=!1,P+="unsupported tag compression "+I),v>3&&(k=!1,P+="unsupported tag sampleFormat "+v),1!==b&&2!==b&&4!==b&&b%8!=0&&(k=!1,P+="unsupported tag bitsPerSample "+b);let M=y(s,"GEOASCIIPARAMS");if(M){let e=M.split("|").find(e=>e.includes("ESRI PE String = ")),t=e?e.replace("ESRI PE String = ",""):"";r=t.startsWith("COMPD_CS")||t.startsWith("PROJCS")||t.startsWith("GEOGCS")?{wkid:null,wkt:t}:null}let O=g(s,"GEOTIEPOINTS"),U=g(s,"GEOPIXELSCALE"),G=g(s,"GEOTRANSMATRIX"),N=s.has("GEOKEYDIRECTORY")?s.get("GEOKEYDIRECTORY").data:null,_,F,z=!1,V=!1;if(N){z=2===C(N,"GTRasterTypeGeoKey");let e=C(N,"GTModelTypeGeoKey");if(2===e){let e=C(N,"GeographicTypeGeoKey");e>=1024&&e<=32766&&(r={wkid:e}),r||32767!==e||(V=!0,r={wkid:4326})}else if(1===e){let e=C(N,"ProjectedCSTypeGeoKey");e>=1024&&e<=32766&&(r={wkid:e})}}if(U&&O&&O.length>=6?(_=[U[0],0,O[3]-O[0]*U[0],0,-Math.abs(U[1]),O[4]-O[1]*U[1]],z&&(_[2]-=.5*_[0]+.5*_[1],_[5]-=.5*_[3]+.5*_[4])):G&&16===G.length&&(_=z?[G[0],G[1],G[3]-.5*G[0],G[4],G[5],G[7]-.5*G[5]]:[G[0],G[1],G[3],G[4],G[5],G[7]]),_){let e=[{x:0,y:p},{x:0,y:0},{x:f,y:p},{x:f,y:0}],t,o=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,n=Number.NEGATIVE_INFINITY;for(let r=0;r<e.length;r++){var j,Z;j=e[r],o=(t={x:(Z=_)[0]*j.x+Z[1]*j.y+Z[2],y:Z[3]*j.x+Z[4]*j.y+Z[5]}).x>o?o:t.x,a=t.x<a?a:t.x,i=t.y>i?i:t.y,n=t.y<n?n:t.y}F={xmin:o,xmax:a,ymin:i,ymax:n,spatialReference:r}}else F={xmin:-.5,ymin:.5-p,xmax:f-.5,ymax:.5,spatialReference:r};V&&(F.xmax-F.xmin>400||Math.max(Math.abs(F.xmin),Math.abs(F.xmax))>361)&&(r=null,F.spatialReference=null);let H=L(e);if(H.length>0){a=Math.round(Math.log(f/C(H[0],"IMAGEWIDTH"))/Math.LN2);let e=H[H.length-1];n=H.length,o=C(e,"TILEWIDTH"),i=C(e,"TILELENGTH")}o=null!=n&&n>0?o||u:null,i=null!=n&&n>0?i||h:null,u&&(l=[{maxCol:Math.ceil(f/u)-1,maxRow:Math.ceil(p/h)-1,minRow:0,minCol:0}
1],H.forEach(e=>{l.push({maxCol:Math.ceil(C(e,"IMAGEWIDTH")/C(e,"TILEWIDTH"))-1,maxRow:Math.ceil(C(e,"IMAGELENGTH")/C(e,"TILELENGTH"))-1,minRow:0,minCol:0})}));let W=E(y(e[0],"GDAL_METADATA"));P+=" "+B({width:f,height:p,tileWidth:u,tileHeight:h,planes:w,ifds:e});let J=D(e).length===H.length+1,K=H?.length?H.map(e=>({x:f/C(e,"IMAGEWIDTH"),y:p/C(e,"IMAGELENGTH")})):void 0;return{width:f,height:p,tileWidth:u,tileHeight:h,planes:w,isBSQ:T,pixelType:S,compression:t,noData:x,hasMaskBand:J,isSupported:k,pyramidResolutions:K,message:P,extent:F,isPseudoGeographic:V,affine:U?null:_,firstPyramidLevel:a,maximumPyramidLevel:n,pyramidBlockWidth:o,pyramidBlockHeight:i,tileBoundary:l,metadata:W}}function R(e,t){let r=m(e,"PLANARCONFIGURATION");return r?2===r[0]:!!t&&t.isBSQ}function L(e){return e.filter(e=>1===C(e,"NEWSUBFILETYPE"))}function D(e){return e.filter(e=>{let t=!(4&~(C(e,"NEWSUBFILETYPE")??0)),r=4===C(e,"PHOTOMETRICINTERPRETATION");return t&&r})}function O(e,t,r){let o=e.getUint32(t,r),i=e.getUint32(t+4,r);return r?0x100000000*i+o:0x100000000*o+i}function U(e,t,r,o){return o?O(e,t,r):e.getUint32(t,r)}function G(e){let t=new DataView(e,0,16),r=t.getUint16(0,!1),o=null;if(18761===r)o=!0;else{if(19789!==r)throw Error("unexpected endianess byte");o=!1}let i=t.getUint16(2,o);if(42!==i&&43!==i)throw Error("unexpected tiff identifier");let a=4,n=43===i;if(n){let e=t.getUint16(a,o);if(a+=2,8!==e||0!==t.getUint16(a,o))throw Error("unsupported bigtiff version");a+=2}return{littleEndian:o,isBigTiff:n,firstIFDPos:U(t,a,o,n)}}function N(e,t,r,i=0,a=s.A.tiffTags,n=4){let l,u=b(e,t,r,i,a,n),h=u.ifd;if(h){if(s.A.ifdTags.forEach((r,o)=>{h.has(o)&&((l=h.get(o)).data=b(e,t,l.valueOffset-i,i,r).ifd)}),h.has("GEOKEYDIRECTORY")){let r=(l=h.get("GEOKEYDIRECTORY")).values;if(r&&r.length>4){let o=r[0]+"."+r[1]+"."+r[2];l.data=b(e,t,l.valueOffset+6-i,i,s.A.geoKeys,2).ifd,l.data&&l.data.set("GEOTIFFVersion",{id:0,type:2,valueCount:1,valueOffset:null,values:[o]})}}if(h.has("XMP")){let e=(l=h.get("XMP")).values;"number"==typeof e[0]&&7===l.type&&(l.values=[(0,o.w)(new Uint8Array(e))])}}return u}function B(e){let{width:t,height:r,tileHeight:o,tileWidth:i}=e,a=e.planes,n=C(e.ifds[0],"BITSPERSAMPLE"),l="";return(i?i*o:t*r)*a>0x40000000/(n>8?n/8:1)&&(l=i?"tiled tiff exceeding 1 gigabits per tile is not supported":"scanline tiff exceeding 1 gigabits is not supported"),l}async function _(e,t){let r,{headerInfo:o,ifd:i,offsets:a,sizes:n}=t,s=[];for(let t=0;t<a.length;t++){n[t];let r=await A(e,o.littleEndian,i,a[t],n[t]||e.byteLength);s.push(r)}let u=R(i,o),h=C(i,"BITSPERSAMPLE"),f=c(C(i,"SAMPLEFORMAT")??1,h),d=C(i,"SAMPLESPERPIXEL")||o.planes,m=p(f),g=C(i,"TILEWIDTH"),y=C(i,"TILELENGTH"),b=C(i,"COMPRESSION")??1,w=g*y,v=[],S=s[0],T=34887===b;for(let e=0;e<d;e++){if(r=new m(w),s.length===d)(S=s[e]).length===w&&(r=S);else if(S.length)if(u||T)r=S.length===w?S:S.slice(w*e,w*(e+1));else for(let t=0;t<w;t++)r[t]=S[t*d+e];v.push(r)}let x=o.noData?o.noData[0]:t.noDataValue,I=o.metadata?o.metadata.statistics:null,E=I?I.map(e=>e.min):null,P=I?I.map(e=>e.max):null,M={pixelType:f,width:g,height:y,pixels:v,noDataValue:x};return null!=x?(0,l.Sp)(M,x):E&&P&&t.applyMinMaxConstraint&&(M.mask=k(v,E,P)),M}async function F(e,t={}){let r=t.pyramidLevel||0,o=t.headerInfo||function(e){let{littleEndian:t,isBigTiff:r,firstIFDPos:o}=G(e),i=o,a=[];do{let o=N(e,t,i,0,s.A.tiffTags,r?8:4);if(!o.success)break;a.push(o.ifd),i=o.nextIFD}while(i>0);return{...M(a),littleEndian:t,isBigTiff:r,ifds:a,pyramidIFDs:L(a),maskIFDs:D(a)}}(e),{ifds:i,noData:a}=o;if(0===i.length)throw Error("no valid image file directory");let n=B(o);if(n)throw n;let u=null,h=-1===r?i[i.length-1]:i[r],f=a??t.noDataValue;return(u=o.tileWidth?await x(e,o,h):I(e,o,h))&&null!=f&&(0,l.Sp)(u,f),u}},32446:(e,t,r)=>{r.d(t,{J:()=>n});var o,i=r(68707),a={exports:{}};let n=(0,i.g)(function(){var e;return o||(o=1,void 0!==(e=function(){var e=function(){function e(e){this.message="JPEG error: "+e}return e.prototype=Error(),e.prototype.name="JpegError",e.constructor=e,e}();if(!self||!self.Uint8ClampedArray)return null;var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,5
17,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);function r(){this.decodeTransform=null,this.colorTransform=-1}function o(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function i(e,t,r){function o(t){return e[t]<<8|e[t+1]}var i=e.length-1,a=r<t?r:t;if(t>=i)return null;var n=o(t);if(n>=65472&&n<=65534)return{invalid:null,marker:n,offset:t};for(var l=o(a);!(l>=65472&&l<=65534);){if(++a>=i)return null;l=o(a)}return{invalid:n.toString(16),marker:l,offset:a}}return r.prototype={parse:function(r){function a(){var e=r[s]<<8|r[s+1];return s+=2,e}var n,l,s=0,u=null,h=null,f=[],d=[],c=[],p=a();if(65496!==p)throw new e("SOI not found");for(p=a();65497!==p;){switch(p){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var m=function(){var e=a(),t=s+e-2,o=i(r,t,s);o&&o.invalid&&(console.log("readDataBlock - incorrect length, next marker is: "+o.invalid),t=o.offset);var n=r.subarray(s,t);return s+=n.length,n}();65504===p&&74===m[0]&&70===m[1]&&73===m[2]&&70===m[3]&&0===m[4]&&(u={version:{major:m[5],minor:m[6]},densityUnits:m[7],xDensity:m[8]<<8|m[9],yDensity:m[10]<<8|m[11],thumbWidth:m[12],thumbHeight:m[13],thumbData:m.subarray(14,14+3*m[12]*m[13])}),65518===p&&65===m[0]&&100===m[1]&&111===m[2]&&98===m[3]&&101===m[4]&&(h={version:m[5]<<8|m[6],flags0:m[7]<<8|m[8],flags1:m[9]<<8|m[10],transformCode:m[11]});break;case 65499:for(var g=a()+s-2;s<g;){var y=r[s++],C=new Uint16Array(64);if(y>>4){if(y>>4!=1)throw new e("DQT - invalid table spec");for(w=0;w<64;w++)C[t[w]]=a()}else for(w=0;w<64;w++)C[t[w]]=r[s++];f[15&y]=C}break;case 65472:case 65473:case 65474:if(n)throw new e("Only single frame JPEGs supported");a(),(n={}).extended=65473===p,n.progressive=65474===p,n.precision=r[s++],n.scanLines=a(),n.samplesPerLine=a(),n.components=[],n.componentIds={};var b,w,v,S,T=r[s++],A=0,x=0;for(b=0;b<T;b++){S=r[s];var I=r[s+1]>>4,k=15&r[s+1];A<I&&(A=I),x<k&&(x=k);var E=r[s+2];v=n.components.push({h:I,v:k,quantizationId:E,quantizationTable:null}),n.componentIds[S]=v-1,s+=3}n.maxH=A,n.maxV=x,function(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),o=0;o<e.components.length;o++){O=e.components[o];var i=Math.ceil(Math.ceil(e.samplesPerLine/8)*O.h/e.maxH),a=Math.ceil(Math.ceil(e.scanLines/8)*O.v/e.maxV),n=t*O.h,l=r*O.v*64*(n+1);O.blockData=new Int16Array(l),O.blocksPerLine=i,O.blocksPerColumn=a}e.mcusPerLine=t,e.mcusPerColumn=r}(n);break;case 65476:var P=a();for(b=2;b<P;){var M=r[s++],R=new Uint8Array(16),L=0;for(w=0;w<16;w++,s++)L+=R[w]=r[s];var D=new Uint8Array(L);for(w=0;w<L;w++,s++)D[w]=r[s];b+=17+L,(M>>4?d:c)[15&M]=function(e,t){for(var r,o,i=0,a=[],n=16;n>0&&!e[n-1];)n--;a.push({children:[],index:0});var l,s=a[0];for(r=0;r<n;r++){for(o=0;o<e[r];o++){for((s=a.pop()).children[s.index]=t[i];s.index>0;)s=a.pop();for(s.index++,a.push(s);a.length<=r;)a.push(l={children:[],index:0}),s.children[s.index]=l.children,s=l;i++}r+1<n&&(a.push(l={children:[],index:0}),s.children[s.index]=l.children,s=l)}return a[0].children}(R,D)}break;case 65501:a(),l=a();break;case 65498:a();var O,U=r[s++],G=[];for(b=0;b<U;b++){var N=n.componentIds[r[s++]];O=n.components[N];var B=r[s++];O.huffmanTableDC=c[B>>4],O.huffmanTableAC=d[15&B],G.push(O)}var _=r[s++],F=r[s++],z=r[s++],V=function(r,a,n,l,s,u,h,f,d){var c=n.mcusPerLine,p=n.progressive,m=a,g=0,y=0;function C(){if(y>0)return y--,g>>y&1;if(255===(g=r[a++])){var t=r[a++];if(t)throw new e("unexpected marker "+(g<<8|t).toString(16))}return y=7,g>>>7}function b(t){for(var r=t;;){if("number"==typeof(r=r[C()]))return r;if("object"!=typeof r)throw new e("invalid huffman sequence")}}function w(e){for(var t=0;e>0;)t=t<<1|C(),e--;return t}function v(e){if(1===e)return 1===C()?1:-1;var t=w(e);return t>=1<<e-1?t:t+(-1<<e)+1}var S,T,A,x,I,k,E,P=0,M=0,R=l.length;E=p?0===u?0===f?function(e,t){var r=b(e.huffmanTableDC),o=0===r?0:v(r)<<d;e.blockData[t]=e.pred+=o}:function(e,t){e.blockData[t]|=C()<<d}:0===f?function(e,r){if(P>0)P--;else for(var o=u;o<=h;){var i=b(e.huffmanTableAC),a=15&i,n=i>>4;if(0!==a){var l=t[o+=n];
1e.blockData[r+l]=v(a)*(1<<d),o++}else{if(n<15){P=w(n)+(1<<n)-1;break}o+=16}}}:function(r,o){for(var i,a,n=u,l=0;n<=h;){var s=t[n];switch(M){case 0:if(l=(a=b(r.huffmanTableAC))>>4,0==(i=15&a))l<15?(P=w(l)+(1<<l),M=4):(l=16,M=1);else{if(1!==i)throw new e("invalid ACn encoding");S=v(i),M=l?2:3}continue;case 1:case 2:r.blockData[o+s]?r.blockData[o+s]+=C()<<d:0==--l&&(M=3*(2===M));break;case 3:r.blockData[o+s]?r.blockData[o+s]+=C()<<d:(r.blockData[o+s]=S<<d,M=0);break;case 4:r.blockData[o+s]&&(r.blockData[o+s]+=C()<<d)}n++}4===M&&0==--P&&(M=0)}:function(e,r){var o=b(e.huffmanTableDC),i=0===o?0:v(o);e.blockData[r]=e.pred+=i;for(var a=1;a<64;){var n=b(e.huffmanTableAC),l=15&n,s=n>>4;if(0!==l){var u=t[a+=s];e.blockData[r+u]=v(l),a++}else{if(s<15)break;a+=16}}};var L,D,O,U,G=0;for(D=1===R?l[0].blocksPerLine*l[0].blocksPerColumn:c*n.mcusPerColumn;G<D;){var N,B,_,F,z,V,j=s?Math.min(D-G,s):D;for(A=0;A<R;A++)l[A].pred=0;if(P=0,1===R)for(T=l[0],k=0;k<j;k++)E(N=T,o(N,(B=G)/N.blocksPerLine|0,B%N.blocksPerLine)),G++;else for(k=0;k<j;k++){for(A=0;A<R;A++)for(O=(T=l[A]).h,U=T.v,x=0;x<U;x++)for(I=0;I<O;I++)_=T,F=G,z=x,V=I,E(_,o(_,(F/c|0)*_.v+z,F%c*_.h+V));G++}y=0,(L=i(r,a))&&L.invalid&&(console.log("decodeScan - unexpected MCU data, next marker is: "+L.invalid),a=L.offset);var Z=L&&L.marker;if(!Z||Z<=65280)throw new e("marker was not found");if(!(Z>=65488&&Z<=65495))break;a+=2}return(L=i(r,a))&&L.invalid&&(console.log("decodeScan - unexpected Scan data, next marker is: "+L.invalid),a=L.offset),a-m}(r,s,n,G,l,_,F,z>>4,15&z);s+=V;break;case 65535:255!==r[s]&&s--;break;default:if(255===r[s-3]&&r[s-2]>=192&&r[s-2]<=254){s-=3;break}throw new e("unknown marker "+p.toString(16))}p=a()}for(this.width=n.samplesPerLine,this.height=n.scanLines,this.jfif=u,this.eof=s,this.adobe=h,this.components=[],b=0;b<n.components.length;b++){var j=f[(O=n.components[b]).quantizationId];j&&(O.quantizationTable=j),this.components.push({output:function(t,r){for(var i=r.blocksPerLine,a=r.blocksPerColumn,n=new Int16Array(64),l=0;l<a;l++)for(var s=0;s<i;s++)!function(t,r,o){var i,a,n,l,s,u,h,f,d,c,p,m,g,y,C,b,w,v=t.quantizationTable,S=t.blockData;if(!v)throw new e("missing required Quantization Table.");for(var T=0;T<64;T+=8)d=S[r+T],c=S[r+T+1],p=S[r+T+2],m=S[r+T+3],g=S[r+T+4],y=S[r+T+5],C=S[r+T+6],b=S[r+T+7],d*=v[T],c|p|m|g|y|C|b?(c*=v[T+1],p*=v[T+2],m*=v[T+3],g*=v[T+4],y*=v[T+5],C*=v[T+6],b*=v[T+7],a=(i=(i=5793*d+128>>8)+(a=5793*g+128>>8)+1>>1)-a,w=3784*(n=p)+1567*(l=C)+128>>8,n=1567*n-3784*l+128>>8,h=(s=(s=2896*(c-b)+128>>8)+(h=y<<4)+1>>1)-h,u=(f=(f=2896*(c+b)+128>>8)+(u=m<<4)+1>>1)-u,l=(i=i+(l=w)+1>>1)-l,n=(a=a+n+1>>1)-n,w=2276*s+3406*f+2048>>12,s=3406*s-2276*f+2048>>12,f=w,w=799*u+4017*h+2048>>12,u=4017*u-799*h+2048>>12,h=w,o[T]=i+f,o[T+7]=i-f,o[T+1]=a+h,o[T+6]=a-h,o[T+2]=n+u,o[T+5]=n-u,o[T+3]=l+s,o[T+4]=l-s):(w=5793*d+512>>10,o[T]=w,o[T+1]=w,o[T+2]=w,o[T+3]=w,o[T+4]=w,o[T+5]=w,o[T+6]=w,o[T+7]=w);for(var A=0;A<8;++A)d=o[A],(c=o[A+8])|(p=o[A+16])|(m=o[A+24])|(g=o[A+32])|(y=o[A+40])|(C=o[A+48])|(b=o[A+56])?(a=(i=4112+((i=5793*d+2048>>12)+(a=5793*g+2048>>12)+1>>1))-a,w=3784*(n=p)+1567*(l=C)+2048>>12,n=1567*n-3784*l+2048>>12,l=w,h=(s=(s=2896*(c-b)+2048>>12)+(h=y)+1>>1)-h,u=(f=(f=2896*(c+b)+2048>>12)+(u=m)+1>>1)-u,w=2276*s+3406*f+2048>>12,s=3406*s-2276*f+2048>>12,f=w,w=799*u+4017*h+2048>>12,u=4017*u-799*h+2048>>12,d=(d=(i=i+l+1>>1)+f)<16?0:d>=4080?255:d>>4,c=(c=(a=a+n+1>>1)+(h=w))<16?0:c>=4080?255:c>>4,p=(p=(n=a-n)+u)<16?0:p>=4080?255:p>>4,m=(m=(l=i-l)+s)<16?0:m>=4080?255:m>>4,g=(g=l-s)<16?0:g>=4080?255:g>>4,y=(y=n-u)<16?0:y>=4080?255:y>>4,C=(C=a-h)<16?0:C>=4080?255:C>>4,b=(b=i-f)<16?0:b>=4080?255:b>>4,S[r+A]=d,S[r+A+8]=c,S[r+A+16]=p,S[r+A+24]=m,S[r+A+32]=g,S[r+A+40]=y,S[r+A+48]=C,S[r+A+56]=b):(w=(w=5793*d+8192>>14)<-2040?0:w>=2024?255:w+2056>>4,S[r+A]=w,S[r+A+8]=w,S[r+A+16]=w,S[r+A+24]=w,S[r+A+32]=w,S[r+A+40]=w,S[r+A+48]=w,S[r+A+56]=w)}(r,o(r,l,s),n);return r.blockData}(0,O),scaleX:O.h/n.maxH,scaleY:O.v/n.maxV,blocksPerLine:O.blocksPerLine,blocksPerColumn:O.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(e,t){var r,o,i,a,n,l,s,u,h,f,d,c=this.width/e,p=this.height/t,m=0,g=this.components.length,y=e*t*g,C=new Uint8ClampedArray(y),b=new Uint32Array(e);for(s=0;s<g;s++){for(o=(r=this.components[s]).scaleX*c,i=r.scaleY*p,m=s,d=r.output,a=r.blocksPerLine+1<<3,n=0;n<e;n++)u=0|n*o,b[n]=(0xfffffff8&u)<<3|7&u;for(l=0;l<t;l++)for(f=a*(0xfffffff8&(u=0|l*i))|(7&u)<<3,n=0;n<e;n++)C[m]=d[f+b[n]],m+=g}var w=this.decodeTransform;if(w)for(s=0;s<y;)for(u=0,h=0;u<g;u++,s++,h+=2)C[s]=(C[s]*w[h]>>8)+w[h+1];return C},_isColorConversionNeeded:function(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this.colorTransform:1===this.colorTransform},_convertYccToRgb:function(e){for(var t,r,o,i=0,a=e.length;i<a;i+=3)t=e[i],r=e[i+1],o=e[i+2],e[i]=t-179.456+1.402*o,e[i+1]=t+135.459-.344*r-.714*o,e[i+2]=t-226.816+1.772*r;return e},_convertYcckToRgb:function(e){for(var t,r,o,i,a=0,n=0,l=e.length;n<l;n+=4)t=e[n],r=e[n+1],o=e[n+2],i=e[n+3],e[a++]=r*(-660635669420364e-19*r+437130475926232e-18*o-54080610064599e-18*t+48449797120281e-17*i-.154362151871126)-122.67195406894+o*(-957964378445773e-18*o+817076911346625e-18*t-.00477271405408747*i+1.53380253221734)+t*(961250184130688e-18*t-.00266257332283933*i+.48357088451265)+i*(-336197177618394e-18*i+.484791561490776),e[a++]=107.268039397724+r*(219927104525741e
1-19*r-640992018297945e-18*o+659397001245577e-18*t+426105652938837e-18*i-.176491792462875)+o*(-778269941513683e-18*o+.00130872261408275*t+770482631801132e-18*i-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*i+.25802910206845)+i*(-318913117588328e-18*i-.213742400323665),e[a++]=r*(-570115196973677e-18*r-263409051004589e-19*o+.0020741088115012*t-.00288260236853442*i+.814272968359295)-20.810012546947+o*(-153496057440975e-19*o-132689043961446e-18*t+560833691242812e-18*i-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*i+.116935020465145)+i*(-343531996510555e-18*i+.24165260232407);return e},_convertYcckToCmyk:function(e){for(var t,r,o,i=0,a=e.length;i<a;i+=4)t=e[i],r=e[i+1],o=e[i+2],e[i]=434.456-t-1.402*o,e[i+1]=119.541-t+.344*r+.714*o,e[i+2]=481.816-t-1.772*r;return e},_convertCmykToRgb:function(e){for(var t,r,o,i,a=0,n=1/255,l=0,s=e.length;l<s;l+=4)t=e[l]*n,r=e[l+1]*n,o=e[l+2]*n,i=e[l+3]*n,e[a++]=255+t*(-4.387332384609988*t+54.48615194189176*r+18.82290502165302*o+212.25662451639585*i-285.2331026137004)+r*(1.7149763477362134*r-5.6096736904047315*o-17.873870861415444*i-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*i+17.5119270841813)-i*(21.86122147463605*i+189.48180835922747),e[a++]=255+t*(8.841041422036149*t+60.118027045597366*r+6.871425592049007*o+31.159100130055922*i-79.2970844816548)+r*(-15.310361306967817*r+17.575251261109482*o+131.35250912493976*i-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*i-24.86741582555878)-i*(20.737325471181034*i+187.80453709719578),e[a++]=255+t*(.8842522430003296*t+8.078677503112928*r+30.89978309703729*o-.23883238689178934*i-14.183576799673286)+r*(10.49593273432072*r+63.02378494754052*o+50.606957656360734*i-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*i-193.58209356861505)-i*(22.33816807309886*i+180.12613974708367);return e},getData:function(t,r,o){if(this.numComponents>4)throw new e("Unsupported color mode");var i=this._getLinearizedBlockData(t,r);if(1===this.numComponents&&o){for(var a=i.length,n=new Uint8ClampedArray(3*a),l=0,s=0;s<a;s++){var u=i[s];n[l++]=u,n[l++]=u,n[l++]=u}return n}if(3===this.numComponents&&this._isColorConversionNeeded())return this._convertYccToRgb(i);if(4===this.numComponents){if(this._isColorConversionNeeded())return o?this._convertYcckToRgb(i):this._convertYcckToCmyk(i);if(o)return this._convertCmykToRgb(i)}return i}},r}())&&(a.exports=e)),a.exports}())},41743:(e,t,r)=>{r.d(t,{A:()=>f});var o,i=r(49493),a=r(40496),n=r(13356),l=r(9491);r(74552),r(64988);var s=r(44708),u=r(1589);let h=o=class extends a.oY{constructor(){super(...arguments),this.blockWidth=void 0,this.blockHeight=void 0,this.compression=null,this.origin=null,this.firstPyramidLevel=null,this.maximumPyramidLevel=null,this.pyramidScalingFactor=2,this.pyramidBlockWidth=null,this.pyramidBlockHeight=null,this.isVirtualTileInfo=!1,this.tileInfo=null,this.transposeInfo=null,this.blockBoundary=null}clone(){return new o({blockWidth:this.blockWidth,blockHeight:this.blockHeight,compression:this.compression,origin:(0,n.o8)(this.origin),firstPyramidLevel:this.firstPyramidLevel,maximumPyramidLevel:this.maximumPyramidLevel,pyramidResolutions:(0,n.o8)(this.pyramidResolutions),pyramidScalingFactor:this.pyramidScalingFactor,pyramidBlockWidth:this.pyramidBlockWidth,pyramidBlockHeight:this.pyramidBlockHeight,isVirtualTileInfo:this.isVirtualTileInfo,tileInfo:(0,n.o8)(this.tileInfo),transposeInfo:(0,n.o8)(this.transposeInfo),blockBoundary:(0,n.o8)(this.blockBoundary)})}};(0,i._)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"blockWidth",void 0),(0,i._)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"blockHeight",void 0),(0,i._)([(0,l.MZ)({type:String,json:{write:!0}})],h.prototype,"compression",void 0),(0,i._)([(0,l.MZ)({type:u.A,json:{write:!0}})],h.prototype,"origin",void 0),(0,i._)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"firstPyramidLevel",void 0),(0,i._)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"maximumPyramidLevel",void 0),(0,i._)([(0,l.MZ)({json:{write:!0}})],h.prototype,"pyramidResolutions",void 0),(0,i._)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"pyramidScalingFactor",void 0),(0,i._)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"pyramidBlockWidth",void 0),(0,i._)([(0,l.MZ)({type:Number,json:{write:!0}})],h.prototype,"pyramidBlockHeight",void 0),(0,i._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"isVirtualTileInfo",void 0),(0,i._)([(0,l.MZ)({json:{write:!0}})],h.prototype,"tileInfo",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"transposeInfo",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"blockBoundary",void 0);let f=h=o=(0,i._)([(0,s.$)("esri.layers.support.RasterStorageInfo")],h)},49162:(e,t,r)=>{function o(e,t){var r;let{attributeTable:o,bandCount:i}=e;return!!(null==o&&["u8","s8"].includes((r=e).pixelType)&&null!=r.statistics?.[0]?.min&&null!=r.statistics[0]?.max)&&1===r.bandCount||null!=o&&!(i>1)&&(!t||null!=o.fields.find(e=>e.name.toLowerCase()===t.toLowerCase()))}function i(e){let{bandCount:t,dataType:r,pixelType:o}=e;return"elevation"===r||"generic"===r&&1===t&&("s16"===o||"s32"===o||"f32"===o||"f64"===o)}function a(e,t=!1){let{bandCount:r,colormap:o,pixelType:i}=e;return 1===r&&(!!o?.length||!t&&"u8"===i)}function n(e,t=!1){let{attributeTable:r,bandCount:o}=e;return 1===o&&(!t||null!=r||null!=e.histograms)}function l(e){let{dataType:t}=e;return"vector-uv"===t||"vector-magdir"===t}function s(e){let{dataType:t}=e;return"vector-uv"===t||"vector-magdir"===t}function u(e){return!!e?.length&&e.length<=16384}r.d(t,{FA:()=>a,QJ:()=>s,WN:()=>u,hu:()=>o,iL:()=>i,rd:()=>l,xX:()=>n})},49734:(e,t,r)=>{r.d(t,{A:()=>T});
1var o,i,a,n=r(49493),l=r(40496),s=r(13356),u=r(9491);r(74552),r(64988);var h=r(44708),f=r(3917),d=r(5120);function c(e){return isNaN(e=Number(e))?void 0:e}r(32243);let p=o=class extends l.oY{constructor(){super(...arguments),this.name=null,this.minWavelength=void 0,this.maxWavelength=void 0,this.radianceBias=void 0,this.radianceGain=void 0,this.reflectanceBias=void 0,this.reflectanceGain=void 0,this.solarIrradiance=void 0}clone(){return new o({name:this.name,minWavelength:this.minWavelength,maxWavelength:this.maxWavelength,radianceBias:this.radianceBias,radianceGain:this.radianceGain,reflectanceBias:this.reflectanceBias,reflectanceGain:this.reflectanceGain,solarIrradiance:this.solarIrradiance})}};(0,n._)([(0,u.MZ)({json:{name:"BandName",write:!0}})],p.prototype,"name",void 0),(0,n._)([(0,u.MZ)({json:{name:"WavelengthMin",read:{reader:c},write:!0}})],p.prototype,"minWavelength",void 0),(0,n._)([(0,u.MZ)({json:{name:"WavelengthMax",read:{reader:c},write:!0}})],p.prototype,"maxWavelength",void 0),(0,n._)([(0,u.MZ)({json:{name:"RadianceBias",read:{reader:c},write:!0}})],p.prototype,"radianceBias",void 0),(0,n._)([(0,u.MZ)({json:{name:"RadianceGain",read:{reader:c},write:!0}})],p.prototype,"radianceGain",void 0),(0,n._)([(0,u.MZ)({json:{name:"ReflectanceBias",read:{reader:c},write:!0}})],p.prototype,"reflectanceBias",void 0),(0,n._)([(0,u.MZ)({json:{name:"ReflectanceGain",read:{reader:c},write:!0}})],p.prototype,"reflectanceGain",void 0),(0,n._)([(0,u.MZ)({json:{name:"SolarIrradiance",read:{reader:c},write:!0}})],p.prototype,"solarIrradiance",void 0);let m=p=o=(0,n._)([(0,h.$)("esri.layers.support.RasterBandInfo")],p);var g=r(98285),y=r(8705);function C(e){return isNaN(e=Number(e))?void 0:e}let b=i=class extends l.oY{constructor(){super(...arguments),this.acquisitionDate=void 0,this.cloudCover=void 0,this.productName=void 0,this.sensorName=null,this.sensorAzimuth=void 0,this.sensorElevation=void 0,this.sunAzimuth=void 0,this.sunElevation=void 0}readAcquisitionDate(e){return new Date(e)}writeAcquisitionDate(e,t){t.AcquisitionDate=e.getTime()}clone(){return new i({acquisitionDate:this.acquisitionDate,cloudCover:this.cloudCover,productName:this.productName,sensorName:this.sensorName,sensorAzimuth:this.sensorAzimuth,sensorElevation:this.sensorElevation,sunAzimuth:this.sunAzimuth,sunElevation:this.sunElevation})}};(0,n._)([(0,u.MZ)({json:{name:"AcquisitionDate",write:!0}})],b.prototype,"acquisitionDate",void 0),(0,n._)([(0,g.w)("acquisitionDate")],b.prototype,"readAcquisitionDate",null),(0,n._)([(0,y.K)("acquisitionDate")],b.prototype,"writeAcquisitionDate",null),(0,n._)([(0,u.MZ)({json:{name:"CloudCover",read:{reader:C},write:!0}})],b.prototype,"cloudCover",void 0),(0,n._)([(0,u.MZ)({json:{name:"ProductName",write:!0}})],b.prototype,"productName",void 0),(0,n._)([(0,u.MZ)({json:{name:"SensorName",write:!0}})],b.prototype,"sensorName",void 0),(0,n._)([(0,u.MZ)({json:{name:"SensorAzimuth",read:{reader:C},write:!0}})],b.prototype,"sensorAzimuth",void 0),(0,n._)([(0,u.MZ)({json:{name:"SensorElevation",read:{reader:C},write:!0}})],b.prototype,"sensorElevation",void 0),(0,n._)([(0,u.MZ)({json:{name:"SunAzimuth",read:{reader:C},write:!0}})],b.prototype,"sunAzimuth",void 0),(0,n._)([(0,u.MZ)({json:{name:"SunElevation",read:{reader:C},write:!0}})],b.prototype,"sunElevation",void 0);let w=b=i=(0,n._)([(0,h.$)("esri.layers.support.RasterSensorInfo")],b);var v=r(41743);let S=a=class extends l.oY{constructor(e){super(e),this.attributeTable=null,this.bandCount=null,this.colormap=null,this.extent=null,this.format=void 0,this.height=null,this.width=null,this.histograms=null,this.keyProperties={},this.multidimensionalInfo=null,this.noDataValue=null,this.pixelSize=null,this.pixelType=null,this.isPseudoSpatialReference=!1,this.spatialReference=null,this.statistics=null,this.storageInfo=null,this.transform=null}get bandInfos(){let e=this.keyProperties.BandProperties,{bandCount:t}=this;if(!e?.length||e.length<t){let e=[];for(let r=1;r<=t;r++)e.push(new m({name:"band_"+r}));return e}let r=e.map(e=>m.fromJSON(e));for(let e=0;e<r.length;e++)r[e].name=r[e].name||"band_"+(e+1);return r}get dataType(){let e=this.keyProperties?.DataType?.toLowerCase()??"generic";return"stdtime"===e?"standard-time":e}get nativeExtent(){return this._get("nativeExtent")||this.extent}set nativeExtent(e){e&&this._set("nativeExtent",e)}get nativePixelSize(){if(null==this.transform||!this.transform.affectsPixelSize)return this.pixelSize;let e=this.nativeExtent;return{x:e.width/this.width,y:e.height/this.height}}get hasMultidimensionalTranspose(){return!!this.storageInfo?.transposeInfo}get sensorInfo(){if(this.keyProperties?.SensorName)return w.fromJSON(this.keyProperties)}clone(){return new a({attributeTable:(0,s.o8)(this.attributeTable),bandCount:this.bandCount,colormap:(0,s.o8)(this.colormap),extent:(0,s.o8)(this.extent),format:this.format,height:this.height,width:this.width,histograms:(0,s.o8)(this.histograms),keyProperties:(0,s.o8)(this.keyProperties),multidimensionalInfo:(0,s.o8)(this.multidimensionalInfo),noDataValue:this.noDataValue,pixelSize:(0,s.o8)(this.pixelSize),pixelType:this.pixelType,isPseudoSpatialReference:this.isPseudoSpatialReference,spatialReference:(0,s.o8)(this.spatialReference),statistics:(0,s.o8)(this.statistics),storageInfo:(0,s.o8)(this.storageInfo),transform:(0,s.o8)(this.transform)})}};(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"attributeTable",void 0),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"bandCount",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],S.prototype,"bandInfos",null),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"colormap",void 0),(0,n._)([(0,u.MZ)({type:String,readOnly:!0})],S.prototype,"dataType",null),(0,n._)([(0,u.MZ)({type:f.A,json:{write:!0}})],S.prototype,"extent",void 0),(0,n._)([(0,u.MZ)({type:f.A,json:{write:!0}})],S.prototype,"nativeExtent",null),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"nativePixelSize",null),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"format",void 0),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"height",void 0),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"width",void 0),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"hasMultidimensionalTranspose",null),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"histograms",void 0),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"keyProperties",void 0),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"multidimensionalInfo",void 0),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"noDataValue",void 0),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"pixelSize",void 0),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"pixelType",void 0),(0,n._)([(0,u.MZ)()],S.prototype,"isPseudoSpatialReference",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],S.prototype,"sensorInfo",null),(0,n._)([(0,u.MZ)({type:d.A,json:{write:!0}})],S.prototype,"spatialReference",void 0),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"statistics",void 0),(0,n._)([(0,u.MZ)({type:v.A,json:{write:!0}})],S.prototype,"storageInfo",void 0),(0,n._)([(0,u.MZ)({json:{write:!0}})],S.prototype,"transform",void 0);let T=S=a=(0,n._)([(0,h.$)("esri.layers.support.RasterInfo")],S)},50883:(e,t,r)=>{r.d(t,{w:()=>o});function o(e,t){let r=0,o="",i=0,a=0,n=e.length;for(;r<n;)(i=(a=e[r++])>>4)<8?i=1:15===i?(i=4,a=(7&a)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++]):14===i?(i=3,a=(15&a)<<12|(63&e[r++])<<6|63&e[r++]):(i=2,a=(31&a)<<6|63&e[r++]),(0!==a||t)&&(o+=String.fromCharCode(a));return o}},58207:(e,t,r)=>{r.d(t,{D4:()=>u,Hh:()=>n});var o=r(22545);let i=[{pixelType:"S8",size:1,ctor:Int8Array,range:[-128,127]},{pixelType:"U8",size:1,ctor:Uint8Array,range:[0,255]},{pixelType:"S16",size:2,ctor:Int16Array,range:[-32768,32767]},{pixelType:"U16",size:2,ctor:Uint16Array,range:[0,65536]},{pixelType:"S32",size:4,ctor:Int32Array,range:[-0x80000000,0x7fffffff]},{pixelType:"U32",size:4,ctor:Uint32Array,range:[0,0x100000000]},{pixelType:"F32",size:4,ctor:Float32Array,range:[-34027999387901484e22,34027999387901484e22]},{pixelType:"F64",size:8,ctor:Float64Array,range:[-17976931348623157e292,17976931348623157e292]}],a=null;function n(){return a||(a=r.e(9490).then(r.bind(r,49490)).then(e=>e.l).then(({default:e})=>e({locateFile:e=>(0,o.s)(`esri/layers/support/rasterFormats/${e}`)})).then(e=>{let t;var r=e;let{_malloc:o,_free:a,_lerc_getBlobInfo:n,_lerc_getDataRanges:u,_lerc_decode_4D:h,asm:f}=r,d=Object.values(f).find(e=>e&&"buffer"in e&&e.buffer===r.HEAPU8.buffer),c=e=>{let r=e.map(e=>16+(e>>3<<3)),i=o(r.reduce((e,t)=>
1e+t));t=new Uint8Array(d.buffer);let a=r[0];r[0]=i;for(let e=1;e<r.length;e++){let t=r[e];r[e]=r[e-1]+a,a=t}return r};l.getBlobInfo=e=>{let r=new Uint8Array(48),o=new Uint8Array(24),[i,l,h]=c([e.length,r.length,o.length]);t.set(e,i),t.set(r,l),t.set(o,h);let f=n(i,e.length,l,h,12,3);if(f)throw a(i),Error(`lerc-getBlobInfo: error code is ${f}`);s(t=new Uint8Array(d.buffer),l,r),s(t,h,o);let p=new Uint32Array(r.buffer),m=new Float64Array(o.buffer),[g,y,,C,b,w,v,S,T,A,x]=p,I={version:g,depthCount:A,width:C,height:b,validPixelCount:v,bandCount:w,blobSize:S,maskCount:T,dataType:y,minValue:m[0],maxValue:m[1],maxZerror:m[2],statistics:[],bandCountWithNoData:x};if(x&&A>1)return a(i),I;if(1===A&&1===w)return a(i),I.statistics.push({minValue:m[0],maxValue:m[1]}),I;let k=A*w*8,E=new Uint8Array(k),P=new Uint8Array(k),M=i,R=0,L=0,D=!1;if(t.byteLength<i+2*k?(a(i),D=!0,[M,R,L]=c([e.length,k,k]),t.set(e,M)):[R,L]=c([k,k]),t.set(E,R),t.set(P,L),f=u(M,e.length,A,w,R,L))throw a(M),D||a(R),Error(`lerc-getDataRanges: error code is ${f}`);s(t=new Uint8Array(d.buffer),R,E),s(t,L,P);let O=new Float64Array(E.buffer),U=new Float64Array(P.buffer),G=I.statistics;for(let e=0;e<w;e++)if(A>1){let t=O.slice(e*A,(e+1)*A),r=U.slice(e*A,(e+1)*A),o=Math.min.apply(null,t),i=Math.max.apply(null,r);G.push({minValue:o,maxValue:i,depthStats:{minValues:t,maxValues:r}})}else G.push({minValue:O[e],maxValue:U[e]});return a(M),D||a(R),I},l.decode=(e,r)=>{let{maskCount:o,depthCount:n,bandCount:l,width:u,height:f,dataType:p,bandCountWithNoData:m}=r,g=i[p],y=u*f,C=new Uint8Array(y*l),b=new Uint8Array(y*n*l*g.size),w=new Uint8Array(l),v=new Uint8Array(8*l),[S,T,A,x,I]=c([e.length,C.length,b.length,w.length,v.length]);t.set(e,S),t.set(C,T),t.set(b,A),t.set(w,x),t.set(v,I);let k=h(S,e.length,o,T,n,u,f,l,p,A,x,I);if(k)throw a(S),Error(`lerc-decode: error code is ${k}`);s(t=new Uint8Array(d.buffer),A,b),s(t,T,C);let E=null;if(m){s(t,x,w),s(t,I,v),E=[];let e=new Float64Array(v.buffer);for(let t=0;t<w.length;t++)E.push(w[t]?e[t]:null)}return a(S),{data:b,maskData:C,noDataValues:E}}}))}let l={getBlobInfo:null,decode:null};function s(e,t,r){r.set(e.slice(t,t+r.length))}function u(e,t={}){let r=t.inputOffset??0,o=e instanceof Uint8Array?e.subarray(r):new Uint8Array(e,r),a=l.getBlobInfo(o),{data:n,maskData:s,noDataValues:h}=l.decode(o,a),{width:f,height:d,bandCount:c,depthCount:p,dataType:m,maskCount:g,statistics:y}=a,C=i[m],b=new C.ctor(n.buffer),w=[],v=[],S=f*d,T=S*p;for(let e=0;e<c;e++){let r=b.subarray(e*T,(e+1)*T);if(t.returnInterleaved)w.push(r);else{let e=function(e,t,r,o,i){if(r<2)return e;let a=new o(t*r);for(let o=0,i=0;o<t;o++)for(let n=0,l=o;n<r;n++,l+=t)a[l]=e[i++];return a}(r,S,p,C.ctor);w.push(e)}v.push(s.subarray(e*T,(e+1)*T))}let A=0===g?null:1===g?v[0]:new Uint8Array(S);if(g>1){A.set(v[0]);for(let e=1;e<v.length;e++){let t=v[e];for(let e=0;e<S;e++)A[e]=A[e]&t[e]}}let{noDataValue:x}=t,I=null!=x&&C.range[0]<=x&&C.range[1]>=x;if(g>0&&I)for(let e=0;e<c;e++){let t=w[e],r=v[e]||A;for(let e=0;e<S;e++)0===r[e]&&(t[e]=x)}let k=g===c&&c>1?v:null,{pixelType:E}=C;return{width:f,height:d,bandCount:c,pixelType:E,depthCount:p,statistics:y,pixels:w,mask:A,bandMasks:k,noDataValues:h}}},63358:(e,t,r)=>{r.d(t,{DP:()=>m,Nh:()=>g,Pg:()=>p,RP:()=>u,WF:()=>s,_N:()=>y,eH:()=>d,f4:()=>c,fP:()=>f,zj:()=>h});var o=r(88284),i=r(58414),a=r(99831),n=r(16106);let l=[.299,.587,.114];function s(e,t=256){t=Math.min(t,256);let{size:r,counts:o}=e,i=new Uint8Array(r),a=o.reduce((e,r)=>e+r/t,0),n=0,l=0,u=0,h=a;for(let e=0;e<r;e++)if(u+=o[e],!(e<r-1&&u+o[e+1]<h)){for(;n<t-1&&h<u;)n++,h+=a;for(let t=l;t<=e;t++)i[t]=n;l=e+1}for(let e=l;e<r;e++)i[e]=t-1;return i}function u(e){let t,r,o,i,{minCutOff:a,maxCutOff:n,gamma:l,pixelType:s,rounding:u}=e,f=e.outMin||0,d=e.outMax||255;if(!["u8","u16","s8","s16"].includes(s))return null;let c=a.length,p,m,y=0;"s8"===s?y=-127:"s16"===s&&(y=-32767);let C=256;["u16","s16"].includes(s)&&(C=65536);let b=[],w=[],v=d-f;for(p=0;p<c;p++)w[p]=n[p]-a[p],b[p]=0===w[p]?0:v/w[p];let S=[];if(l&&l.length>=c){let e=g(c,l);for(p=0;p<c;p++){for(i=[],m=0;m<C;m++)if(0!==w[p])if(t=((r=m+y)-a[p])/w[p],o=1,l[p]>1&&(o-=(1/v)**(t*e[p])),r<n[p]&&r>a[p]){let e=o*v*t**(1/l[p])+f;i[m]="floor"===u?Math.floor(e):"round"===u?Math.round(e):e}else r>=n[p]?i[m]=d:i[m]=f;else i[m]=f;S[p]=i}}else for(p=0;p<c;p++){for(i=[],m=0;m<C;m++)if((r=m+y)<=a[p])i[m]=f;else if(r>=n[p])i[m]=d;else{let e=(r-a[p])*b[p]+f;i[m]="floor"===u?Math.floor(e):"round"===u?Math.round(e):e}S[p]=i}if(null!=e.contrastOffset){let t=h(e.contrastOffset,e.brightnessOffset);for(p=0;p<c;p++)for(i=S[p],m=0;m<C;m++)i[m]=t[i[m]]}return{lut:S,offset:y}}function h(e,t){let r=Math.min(Math.max(e,-100),100),o=Math.min(Math.max(t??0,-100),100),i=0,a=0,n=new Uint8Array(256);for(i=0;i<256;i++)r>0&&r<100?a=(200*i-25500+510*o)/(2*(100-r))+128:r<=0&&r>-100?a=(200*i-25500+510*o)*(100+r)/2e4+128:100===r?a=255*((a=200*i-25500+256*(100-r)+510*o)>0):-100===r&&(a=128),n[i]=a>255?255:a<0?0:a;return n}function f(e,t,r){let o=[];for(let i=0;i<t.length;i++){let a=0,n=0,s=0;"min"in t[i]?{min:a,max:n,avg:s}=t[i]:[a,n,s]=t[i];let u=s??0;"u8"!==e&&(u=255*(u-a)/(n-a)),r&&(u*=l[i]),o.push(function(e){if(e<=0||e>=255)return 1;let t=0;150!==e&&(t=e<=150?45*Math.cos(.01047*e):17*Math.sin(.021*e));let r=e+t,o=Math.log(e/255),i=Math.log(r/255);if(0===i)return 1;let a=o/i;return isNaN(a)?1:Math.min(9.9,Math.max(.01,a))}(u))}return o}function d(e){let{pixels:t,mask:r,pixelType:o,bandMasks:i}=e,a=t.map((e,t)=>(function(e,t,r,o){let i=1/0,a=-1/0,n=0,l=0,s=0,u=0,h=e.length,f=new Map,d=[];for(let r=0;r<h;r++){let o=e[r];if(!t||t[r]){d.push(o);let e=(f.get(o)??0)+1;f.set(o,e),e>u&&(u=e,s=o),i=o<i?o:i,a=o>a?o:a,n+=o,l++}}if(0===l)return{statistics:{min:0,max:0,avg:0,stddev:0,mode:0,median:0},histogram:null};let c=n/l,p=0;for(let r=0;r<h;r++)t&&!t[r]||(p+=(e[r]-c)**2);let m=t?t.filter(e=>e).length:h,g=m<=1?0:Math.sqrt(p/(m-1));d.sort((e,t)=>
1e-t);let y=l>>>1,C={min:i,max:a,avg:c,stddev:g,mode:s,median:l%2?d[Math.floor(y)]:(d[y-1]+d[y])/2};if(["u8","s8","u4","u2","u1"].includes(r)){let r=a-i+1,o=new Uint32Array(r);for(let r=0;r<h;r++)t&&!t[r]||o[e[r]-i]++;return{statistics:C,histogram:{min:i-.5,max:a+.5,size:r,counts:o}}}let b=new Uint32Array(256),w=(a-i)/256;if(0===w)return{statistics:C,histogram:{min:i,max:a,size:1,counts:new Uint32Array(1).fill(l)}};let v=new Uint32Array(257);for(let r=0;r<h;r++)t&&!t[r]||v[Math.floor((e[r]-i)/w)]++;for(let e=0;e<255;e++)b[e]=v[e];return b[255]=v[255]+v[256],{statistics:C,histogram:{min:i,max:a,size:256,counts:b}}})(e,i?.[t]??r,o));return{statistics:a.map(({statistics:e})=>e),histograms:a.map(({histogram:e})=>e)}}function c(e){let t,r,o,i;if(!e?.pixels?.length)return null;let{pixels:a,mask:n,bandMasks:l,pixelType:s}=e,u=e.width*e.height,h=a.length,f=[],d=[];for(let c=0;c<h;c++){o=new Uint32Array(256);let h=a[c],p=l?.[c]??n;if("u8"===s){if(t=255,r=0,p){for(let e=0;e<u;e++)if(p[e]){let i=h[e];t=i<t?i:t,r=i>r?i:r,o[i]++}}else for(let e=0;e<u;e++){let i=h[e];t=i<t?i:t,r=i>r?i:r,o[i]++}o=o.slice(t,r+1)}else{let a=!1;e.statistics||(e.updateStatistics(),a=!0);let n=e.statistics;t=n[c].minValue;let l=((r=n[c].maxValue)-t)/256;if(0===l){!n||e.validPixelCount||a||e.updateStatistics();let t=(e.validPixelCount||e.width*e.height)/256;for(let e=0;e<256;e++)o[e]=Math.round(t*(e+1))-Math.round(t*e)}else{i=new Uint32Array(257);for(let e=0;e<u;e++)p&&!p[e]||i[Math.floor((h[e]-t)/l)]++;for(let e=0;e<255;e++)o[e]=i[e];o[255]=i[255]+i[256]}}let m="u8"===s?t-.5:t,g="u8"===s?r+.5:r;f.push({min:m,max:g,size:o.length,counts:o});let y=0,C=0,b=0;for(let e=0;e<o.length;e++)y+=o[e],C+=e*o[e];let w=C/y;for(let e=0;e<o.length;e++)b+=o[e]*(e-w)**2;let v=Math.sqrt(b/(y-1)),S=(g-m)/o.length,T=(w+.5*("u8"!==s))*S+t,A=v*S;d.push({min:t,max:r,avg:T,stddev:A})}return{statistics:d,histograms:f}}function p(e){let t=[];for(let r=0;r<e.length;r++){let{min:o,max:i,size:a,counts:n}=e[r],l=0,s=0;for(let e=0;e<a;e++)l+=n[e],s+=e*n[e];let u=s/l,h=0;for(let e=0;e<a;e++)h+=n[e]*(e-u)**2;let f=(i-o)/a,d=(u+.5)*f+o,c=Math.sqrt(h/(l-1))*f;t.push({min:o,max:i,avg:d,stddev:c})}return t}function m(e,t){let r,i,l,u,h,f,d,p,m,g,y,C,{pixelBlock:b,bandIds:w,returnHistogramLut:v,rasterInfo:S}=t,T=null,A=null,x=e.stretchType;if("number"==typeof x&&(x=n.x[x]),e.dra)if("minMax"===x&&b?.statistics)T=b.statistics.map(e=>[e.minValue,e.maxValue,0,0]);else{let e=c(b);T=null!=e?e.statistics:null,A=null!=e?e.histograms:null}else T=e.statistics?.length?e.statistics:S.statistics,(A="histograms"in e?e.histograms:void 0)||(A=S.histograms);"percentClip"!==x&&"histogramEqualization"!==x||A?.length||(x="minMax");let I=T?.length||A?.length||S.bandCount,k=[],E=[];T&&!Array.isArray(T[0])&&(T=T.map(e=>[e.min,e.max,e.avg,e.stddev]));let[P,M]=(0,a.hP)(S.pixelType);if(!T?.length){for(T=[],p=0;p<I;p++)T.push([P,M,1,1]);"standardDeviation"===x&&(x="minMax")}switch(x){case"none":for(p=0;p<I;p++)k[p]=P,E[p]=M;break;case"minMax":default:for(p=0;p<I;p++){let e=T[p];k[p]=e[0],E[p]=e[1]}break;case"standardDeviation":{let{numberOfStandardDeviations:t=2}=e;for(p=0;p<I;p++){let e=T[p];k[p]=e[2]-t*e[3],E[p]=e[2]+t*e[3],k[p]<e[0]&&(k[p]=e[0]),E[p]>e[1]&&(E[p]=e[1])}}break;case"histogramEqualization":for((0,o.Lw)(A),p=0;p<I;p++)k[p]=A[p].min,E[p]=A[p].max;break;case"percentClip":for((0,o.Lw)(A),p=0;p<A.length;p++){for(h=new Uint32Array((r=A[p]).size),(u=[...r.counts]).length>=20&&(u[0]=u[1]=u[2]=u[u.length-1]=u[u.length-2]=0),l=0,i=(r.max-r.min)/r.size,d=.5*(-.5===r.min&&1===i),m=0;m<r.size;m++)l+=u[m],h[m]=l;for(f=(e.minPercent||0)*l/100,k[p]=r.min+d,m=0;m<r.size;m++)if(h[m]>f){k[p]=r.min+i*(m+d);break}for(f=(1-(e.maxPercent||0)/100)*l,E[p]=r.max+d,m=r.size-2;m>=0;m--)if(h[m]<f){E[p]=r.min+i*(m+2-d);break}if(E[p]<k[p]){let e=k[p];k[p]=E[p],E[p]=e}}}return"histogramEqualization"===x?((0,o.Lw)(A),y=A[0].size||256,g=0,v&&(C=A.map(e=>s(e)))):(y=e.max||255,g=e.min||0),function(e,t){if(null==t||0===t.length)return e;let r=Math.max.apply(null,t),{minCutOff:o,maxCutOff:i,outMin:a,outMax:n,histogramLut:l}=e;return o.length===t.length||o.length<=r?e:{minCutOff:t.map(e=>o[e]),maxCutOff:t.map(e=>i[e]),histogramLut:l?t.map(e=>l[e]):null,outMin:a,outMax:n}}({minCutOff:k,maxCutOff:E,outMax:y,outMin:g,histogramLut:C},w)}function g(e,t){let r=new Float32Array(e);for(let o=0;o<e;o++)t[o]>1?t[o]>
12?r[o]=6.5+(t[o]-2)**2.5:r[o]=6.5+100*(2-t[o])**4:r[o]=1;return r}function y(e,t){if(!e?.pixels?.length)return e;let{mask:r,bandMasks:o,width:a,height:n,pixels:l}=e,{minCutOff:s,maxCutOff:u,gamma:h}=t,f=t.outMin||0,d=t.outMax||255,c=a*n,p=t.outputPixelType||"u8",m=e.pixels.map(()=>i.A.createEmptyBand(p,c)),y=m.length,C=d-f,b=[],w=[];for(let e=0;e<y;e++)w[e]=u[e]-s[e],b[e]=0===w[e]?0:C/w[e];let v=p.startsWith("u")||p.startsWith("s"),S=h&&h.length>=y,T=!!t.isRenderer;if(S){let e=g(y,h);for(let t=0;t<y;t++){let i=o?.[t]??r;for(let r=0;r<c;r++)if(null==i||i[r]){if(0===w[t]){m[t][r]=f;continue}let o=l[t][r],i=(o-s[t])/w[t],a=1;if(h[t]>1&&(a-=(1/C)**(i*e[t])),o<u[t]&&o>s[t]){let e=a*C*i**(1/h[t])+f;m[t][r]=T?Math.floor(e):v?Math.round(e):e}else o>=u[t]?m[t][r]=d:m[t][r]=f}}}else for(let e=0;e<y;e++){let t=o?.[e]??r;for(let r=0;r<c;r++)if(null==t||t[r]){let t=l[e][r];if(t<u[e]&&t>s[e]){let o=(t-s[e])*b[e]+f;m[e][r]=T?Math.floor(o):v?Math.round(o):o}else t>=u[e]?m[e][r]=d:m[e][r]=f}}let A=new i.A({width:a,height:n,mask:r,bandMasks:o,pixels:m,pixelType:p});return A.updateStatistics(),A}},68707:(e,t,r)=>{r.d(t,{c:()=>o,g:()=>i});var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},70722:(e,t,r)=>{function o(){let e=[];for(let t=0;t<=257;t++)e[t]=[t];return e}function i(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}r.d(t,{D:()=>n});let a=new Set;function n(e,t,r,l=!0){let s=function(e,t,r,o=!0){if(t%4!=0||r%4!=0){let i=new Uint8Array(new ArrayBuffer(4*Math.ceil(r/4))),a=new Uint8Array(e,t,r);if(o)for(let e=0;e<i.length;e+=4)i[e]=a[e+3],i[e+1]=a[e+2],i[e+2]=a[e+1],i[e+3]=a[e];else i.set(a);return new Uint32Array(i.buffer)}if(o){let o=new Uint8Array(e,t,r),i=new Uint8Array(o.length);for(let e=0;e<i.length;e+=4)i[e]=o[e+3],i[e+1]=o[e+2],i[e+2]=o[e+1],i[e+3]=o[e];return new Uint32Array(i.buffer)}return new Uint32Array(e,t,r/4)}(e,t,r,l),u=9,h=o(),f=32,d=h.length,c=[],p=1,m=s[0],g=0,y=s.length,C=8*(4*y-r),b=[];for(;null!=m;){if(f>=u)f-=u,g=m>>>32-u,m<<=u;else{g=m>>>32-f,m=s[p++];let e=u-f;f=32-e,g=(g<<e)+(m>>>f),m<<=e}if(257===g)break;if(256===g){u=9,d=(h=o()).length,c=[];continue}let e=h[g];if(null==e){if(g>h.length)throw Error("data integrity issue: code does not exist on code page");c.push(c[0]),h[d++]=c.slice(),i(b,c)}else i(b,e),c.push(e[0]),c.length>1&&(h[d++]=c.slice()),c=e.slice();if(a.has(d)&&u++,0===f&&(m=s[p++],f=32),p>y||p===y&&f<=C)break}return new Uint8Array(b)}a.add(511),a.add(1023),a.add(2047),a.add(4095),a.add(8191)},71762:(e,t,r)=>{r.d(t,{Z:()=>n});var o,i=r(68707),a={exports:{}};let n=(0,i.g)(function(){var e,t;return o||(o=1,void 0!==(e=function(){function e(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return e.prototype={ensureBuffer:function(e){var t=this.buffer,r=t?t.byteLength:0;if(e<r)return t;for(var o=512;o<e;)o<<=1;for(var i=new Uint8Array(o),a=0;a<r;++a)i[a]=t[a];return this.buffer=i},getByte:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(e){var t=this.pos;if(e){this.ensureBuffer(t+e);for(var r=t+e;!this.eof&&this.bufferLength<r;)this.readBlock();var o=this.bufferLength;r>o&&(r=o)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}return this.pos=r,this.buffer.subarray(t,r)},lookChar:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(e,t,r){for(var o=e+t;this.bufferLength<=o&&!this.eof;)this.readBlock();return new Stream(this.buffer,e,t,r)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0}},e}(),t=function(){if(!self||!self.Uint32Array)return null;var t=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r=new 
vendor: 4,540 bytes, line 1
1Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),o=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),i=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],a=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function n(e){throw Error(e)}function l(t){var r=0,o=t[r++],i=t[r++];-1!=o&&-1!=i||n("Invalid header in flate stream"),8!=(15&o)&&n("Unknown compression method in flate stream"),((o<<8)+i)%31!=0&&n("Bad FCHECK in flate stream"),32&i&&n("FDICT bit set in flate stream"),this.bytes=t,this.bytesPos=r,this.co
1deSize=0,this.codeBuf=0,e.call(this)}return l.prototype=Object.create(e.prototype),l.prototype.getBits=function(e){for(var t,r=this.codeSize,o=this.codeBuf,i=this.bytes,a=this.bytesPos;r<e;)void 0===(t=i[a++])&&n("Bad encoding in flate stream"),o|=t<<r,r+=8;return t=o&(1<<e)-1,this.codeBuf=o>>e,this.codeSize=r-=e,this.bytesPos=a,t},l.prototype.getCode=function(e){for(var t,r=e[0],o=e[1],i=this.codeSize,a=this.codeBuf,l=this.bytes,s=this.bytesPos;i<o;)void 0===(t=l[s++])&&n("Bad encoding in flate stream"),a|=t<<i,i+=8;var u=r[a&(1<<o)-1],h=u>>16;return(0==i||i<h||0==h)&&n("Bad encoding in flate stream"),this.codeBuf=a>>h,this.codeSize=i-h,this.bytesPos=s,65535&u},l.prototype.generateHuffmanTable=function(e){for(var t=e.length,r=0,o=0;o<t;++o)e[o]>r&&(r=e[o]);for(var i=1<<r,a=new Uint32Array(i),n=1,l=0,s=2;n<=r;++n,l<<=1,s<<=1)for(var u=0;u<t;++u)if(e[u]==n){var h=0,f=l;for(o=0;o<n;++o)h=h<<1|1&f,f>>=1;for(o=h;o<i;o+=s)a[o]=n<<16|u;++l}return[a,r]},l.prototype.readBlock=function(){function e(e,t,r,o,i){for(var a=e.getBits(r)+o;a-- >0;)t[d++]=i}var l=this.getBits(3);if(1&l&&(this.eof=!0),0!=(l>>=1)){if(1==l)A=i,x=a;else if(2==l){for(var s=this.getBits(5)+257,u=this.getBits(5)+1,h=this.getBits(4)+4,f=Array(t.length),d=0;d<h;)f[t[d++]]=this.getBits(3);for(var c=this.generateHuffmanTable(f),p=0,m=(d=0,s+u),g=Array(m);d<m;){var y=this.getCode(c);16==y?e(this,g,2,3,p):17==y?e(this,g,3,3,p=0):18==y?e(this,g,7,11,p=0):g[d++]=p=y}A=this.generateHuffmanTable(g.slice(0,s)),x=this.generateHuffmanTable(g.slice(s,m))}else n("Unknown block type in flate stream");for(var C=(L=this.buffer)?L.length:0,b=this.bufferLength;;){var w=this.getCode(A);if(w<256)b+1>=C&&(C=(L=this.ensureBuffer(b+1)).length),L[b++]=w;else{if(256==w)return void(this.bufferLength=b);var v=(w=r[w-=257])>>16;v>0&&(v=this.getBits(v)),p=(65535&w)+v,(v=(w=o[w=this.getCode(x)])>>16)>0&&(v=this.getBits(v));var S=(65535&w)+v;b+p>=C&&(C=(L=this.ensureBuffer(b+p)).length);for(var T=0;T<p;++T,++b)L[b]=L[b-S]}}}else{var A,x,I,k=this.bytes,E=this.bytesPos;void 0===(I=k[E++])&&n("Bad block header in flate stream");var P=I;void 0===(I=k[E++])&&n("Bad block header in flate stream"),P|=I<<8,void 0===(I=k[E++])&&n("Bad block header in flate stream");var M=I;void 0===(I=k[E++])&&n("Bad block header in flate stream"),(M|=I<<8)!=(65535&~P)&&n("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var R=this.bufferLength,L=this.ensureBuffer(R+P),D=R+P;this.bufferLength=D;for(var O=R;O<D;++O){if(void 0===(I=k[E++])){this.eof=!0;break}L[O]=I}this.bytesPos=E}},l}())&&(a.exports=t)),a.exports}())},82609:(e,t,r)=>{r.d(t,{A:()=>l});let o=(()=>{let e=[];return e[254]="NEWSUBFILETYPE",e[255]="SUBFILETYPE",e[256]="IMAGEWIDTH",e[257]="IMAGELENGTH",e[258]="BITSPERSAMPLE",e[259]="COMPRESSION",e[262]="PHOTOMETRICINTERPRETATION",e[263]="THRESHHOLDING",e[264]="CELLWIDTH",e[265]="CELLLENGTH",e[266]="FILLORDER",e[269]="DOCUMENTNAME",e[270]="IMAGEDESCRIPTION",e[271]="MAKE",e[272]="MODEL",e[273]="STRIPOFFSETS",e[274]="ORIENTATION",e[277]="SAMPLESPERPIXEL",e[278]="ROWSPERSTRIP",e[279]="STRIPBYTECOUNTS",e[280]="MINSAMPLEVALUE",e[281]="MAXSAMPLEVALUE",e[282]="XRESOLUTION",e[283]="YRESOLUTION",e[284]="PLANARCONFIGURATION",e[285]="PAGENAME",e[286]="XPOSITION",e[287]="YPOSITION",e[288]="FREEOFFSETS",e[289]="FREEBYTECOUNTS",e[290]="GRAYRESPONSEUNIT",e[291]="GRAYRESPONSECURVE",e[292]="T4OPTIONS",e[293]="T6OPTIONS",e[296]="RESOLUTIONUNIT",e[297]="PAGENUMBER",e[300]="COLORRESPONSEUNIT",e[301]="TRANSFERFUNCTION",e[305]="SOFTWARE",e[306]="DATETIME",e[315]="ARTIST",e[316]="HOSTCOMPUTER",e[317]="PREDICTOR",e[318]="WHITEPOINT",e[319]="PRIMARYCHROMATICITIES",e[320]="COLORMAP",e[321]="HALFTONEHINTS",e[322]="TILEWIDTH",e[323]="TILELENGTH",e[324]="TILEOFFSETS",e[325]="TILEBYTECOUNTS",e[326]="BADFAXLINES",e[327]="CLEANFAXDATA",e[328]="CONSECUTIVEBADFAXLINES",e[330]="SUBIFD",e[332]="INKSET",e[333]="INKNAMES",e[334]="NUMBEROFINKS",e[336]="DOTRANGE",e[337]="TARGETPRINTER",e[338]="EXTRASAMPLES",e[339]="SAMPLEFORMAT",e[340]="SMINSAMPLEVALUE",e[341]="SMAXSAMPLEVALUE",e[342]="TRANSFERRANGE",e[347]="JPEGTABLES",e[512]="JPEGPROC",e[513]="JPEGIFOFFSET",e[514]="JPEGIFBYTECOUNT",e[515]="JPEGRESTARTINTERVAL",e[517]="JPEGLOSSLESSPREDICTORS",e[518]="JPEGPOINTTRANSFORM",e[519]="JPEGQTABLES",e[520]="JPEGDCTABLES",e[521]="JPEGACTABLES",e[529]="YCBCRCOEFFICIENTS",e[530]="YCBCRSUBSAMPLING",e[531]="YCBCRPOSITIONING",e[532]="REFERENCEBLACKWHITE",e[700]="XMP",e[33550]="GEOPIXELSCALE",e[33922]="GEOTIEPOINTS",e[33432]="COPYRIGHT",e[42112]="GDAL_METADATA",e[42113]="GDAL_NODATA",e[50844]="RPCCOEFFICIENT",e[34264]="GEOTRANSMATRIX",e[34735]="GEOKEYDIRECTORY",e[34736]="GEODOUBLEPARAMS",e[34737]="GEOASCIIPARAMS",e[34665]="EXIFIFD",e[34853]="GPSIFD",e[40965]="INTEROPERABILITYIFD",e})(),i=(()=>{let e=o.slice();return e[36864]="ExifVersion",e[40960]="FlashpixVersion",e[40961]="ColorSpace",e[42240]="Gamma",e[37121]="ComponentsConfiguration",e[37122]="CompressedBitsPerPixel",e[40962]="PixelXDimension",e[40963]="PixelYDimension",e[37500]="MakerNote",e[37510]="UserComment",e[40964]="RelatedSoundFile",e[36867]="DateTimeOriginal",e[36868]="DateTimeDigitized",e[36880]="OffsetTime",e[36881]="OffsetTimeOriginal",e[36882]="OffsetTimeDigitized",e[37520]="SubSecTime",e[37521]="SubSecTimeOriginal",e[37522]="SubSecTimeDigitized",e[37888]="Temperature",e[37889]="Humidity",e[37890]="Pressure",e[37891]="WaterDepth",e[37892]="Acceleration",e[37893]="CameraElevationAngle",e[42016]="ImageUniqueID",e[42032]="CameraOwnerName",e[42033]="BodySerialNumber",e[42034]="LensSpecification",e[42035]="LensMake",e[42036]="LensModel",e[42037]="LensSerialNumber",e[33434]="ExposureTime",e[33437]="FNumber",e[34850]="ExposureProgram",e[34852]="SpectralSensitivity",e[34855]="PhotographicSensitivity",e[34856]="OECF",e[34864]="SensitivityType",e[34865]="StandardOutputSensitivity",e[34866]="RecommendedExposureIndex",e[34867]="ISOSpeed",e[34868]="ISOSpeedLatitudeyyy",e[34869]="ISOSpeedLatitudezzz",e[37377]="ShutterSpeedValue",e[37378]="ApertureValue",e[37379]="BrightnessValue",e[3738
10]="ExposureBiasValue",e[37381]="MaxApertureValue",e[37382]="SubjectDistance",e[37383]="MeteringMode",e[37384]="LightSource",e[37385]="Flash",e[37386]="FocalLength",e[37396]="SubjectArea",e[41483]="FlashEnergy",e[41484]="SpatialFrequencyResponse",e[41486]="FocalPlaneXResolution",e[41487]="FocalPlaneYResolution",e[41488]="FocalPlaneResolutionUnit",e[41492]="SubjectLocation",e[41493]="ExposureIndex",e[41495]="SensingMethod",e[41728]="FileSource",e[41729]="SceneType",e[41730]="CFAPattern",e[41985]="CustomRendered",e[41986]="ExposureMode",e[41987]="WhiteBalance",e[41988]="DigitalZoomRatio",e[41989]="FocalLengthIn35mmFilm",e[41990]="SceneCaptureType",e[41991]="GainControl",e[41992]="Contrast",e[41993]="Saturation",e[41994]="Sharpness",e[41995]="DeviceSettingDescription",e[41996]="SubjectDistanceRange",e})(),a=(()=>{let e=[];return e[1024]="GTModelTypeGeoKey",e[1025]="GTRasterTypeGeoKey",e[1026]="GTCitationGeoKey",e[2048]="GeographicTypeGeoKey",e[2049]="GeogCitationGeoKey",e[2050]="GeogGeodeticDatumGeoKey",e[2051]="GeogPrimeMeridianGeoKey",e[2052]="GeogLinearUnitsGeoKey",e[2053]="GeogLinearUnitSizeGeoKey",e[2054]="GeogAngularUnitsGeoKey",e[2055]="GeogAngularUnitSizeGeoKey",e[2056]="GeogEllipsoidGeoKey",e[2057]="GeogSemiMajorAxisGeoKey",e[2058]="GeogSemiMinorAxisGeoKey",e[2059]="GeogInvFlatteningGeoKey",e[2061]="GeogPrimeMeridianLongGeoKey",e[2060]="GeogAzimuthUnitsGeoKey",e[3072]="ProjectedCSTypeGeoKey",e[3073]="PCSCitationGeoKey",e[3074]="ProjectionGeoKey",e[3075]="ProjCoordTransGeoKey",e[3076]="ProjLinearUnitsGeoKey",e[3077]="ProjLinearUnitSizeGeoKey",e[3078]="ProjStdParallel1GeoKey",e[3079]="ProjStdParallel2GeoKey",e[3080]="ProjNatOriginLongGeoKey",e[3081]="ProjNatOriginLatGeoKey",e[3082]="ProjFalseEastingGeoKey",e[3083]="ProjFalseNorthingGeoKey",e[3084]="ProjFalseOriginLongGeoKey",e[3085]="ProjFalseOriginLatGeoKey",e[3086]="ProjFalseOriginEastingGeoKey",e[3087]="ProjFalseOriginNorthingGeoKey",e[3088]="ProjCenterLongGeoKey",e[3090]="ProjCenterEastingGeoKey",e[3091]="ProjCenterNorthingGeoKey",e[3092]="ProjScaleAtNatOriginGeoKey",e[3093]="ProjScaleAtCenterGeoKey",e[3094]="ProjAzimuthAngleGeoKey",e[3095]="ProjStraightVertPoleLongGeoKey",e[4096]="VerticalCSTypeGeoKey",e[4097]="VerticalCitationGeoKey",e[4098]="VerticalDatumGeoKey",e[4099]="VerticalUnitsGeoKey",e})(),n=new Map;n.set("EXIFIFD",i),n.set("GPSIFD",["GPSVersionID","GPSLatitudeRef","GPSLatitude","GPSLongitudeRef","GPSLongitude","GPSAltitudeRef","GPSAltitude","GPSTimeStamp","GPSSatellites","GPSStatus","GPSMeasureMode","GPSDOP","GPSSpeedRef","GPSSpeed","GPSTrackRef","GPSTrack","GPSImgDirectionRef","GPSImgDirection","GPSMapDatum","GPSDestLatitudeRef","GPSDestLatitude","GPSDestLongitudeRef","GPSDestLongitude","GPSDestBearingRef","GPSDestBearing","GPSDestDistanceRef","GPSDestDistance","GPSProcessingMethod","GPSAreaInformation","GPSDateStamp","GPSDifferential","GPSHPositioningError"]);let l={tiffTags:o,ifdTags:n,geoKeys:a,getTagName:(e,t)=>{let r=(t||o)[e];return void 0===r&&(r="unknown"+String(e)),r}}},95480:(e,t,r)=>{r.d(t,{E0:()=>p,PP:()=>m,SC:()=>f,di:()=>c,fw:()=>h,ng:()=>l,rk:()=>n,yy:()=>d});var o=r(58414),i=r(12553),a=r(53825);let n=1/111e3;function l(e){let{altitude:t,azimuth:r}=e,{hillshadeType:o,pixelSizePower:i=1,pixelSizeFactor:a=1,scalingType:l,isGCS:s,resolution:u}=e,h="multi-directional"===o?2*e.zFactor:e.zFactor,{x:f,y:d}=u,c=h/(8*f),p=h/(8*d);if(s&&h>.001&&(c/=n,p/=n),"adjusted"===l)if(s){let e=f*n,t=d*n;c=(h+e**i*a)/(8*e),p=(h+t**i*a)/(8*t)}else c=(h+f**i*a)/(8*f),p=(h+d**i*a)/(8*d);let m=(90-t)*Math.PI/180,g=Math.cos(m),y=(360-r+90)*Math.PI/180,C=Math.sin(m)*Math.cos(y),b=Math.sin(m)*Math.sin(y),w=[315,270,225,360,180,0],v=[60,60,60,60,60,90],S=new Float32Array([3,5,3,2,1,4]),T=S.reduce((e,t)=>e+t),A=S.map(e=>e/T),x="multi-directional"===o?w.length:1,I=new Float32Array(6),k=new Float32Array(6),E=new Float32Array(6);if("multi-directional"===o)for(let e=0;e<x;e++)t=v[e],r=w[e],g=Math.cos(m=(90-t)*Math.PI/180),C=Math.sin(m)*Math.cos(y=(360-r+90)*Math.PI/180),b=Math.sin(m)*Math.sin(y),I[e]=g,k[e]=C,E[e]=b;else I.fill(g),k.fill(C),E.fill(b);return{resolution:u,factor:[c,p],sinZcosA:C,sinZsinA:b,cosZ:g,sinZcosAs:k,sinZsinAs:E,cosZs:I,weights:A,hillshadeType:["traditional","multi-directional"].indexOf(o)}}function s(e,t){let r,o,i,a,n,l,s,u,h,{width:f,height:d}=e,c=f*d,p=new Uint8Array(c),m=null!=e.mask;if(m){r=new Uint8Array(e.mask);for(let e=0;e<r.length;e++)r[e]&&(p[e]=1,r[e]=1)}let g=e.pixels[0],y=new Float32Array(c),C=new Float32Array(c),b,w=0;if(t){let{resolution:e}=t,r=e?(e.x+e.y)/2:1;w=200*t.zFactor/(r*r),b=new Float32Array(c)}let v=t?.curvatureType;for(let e=1;e<d-1;e++){let t=e*f;for(let e=1;e<f-1;e++){let d=t+e;if(!r||0!==r[d]){if(r){if(r[d-f-1]+r[d-f]+r[d-f+1]+r[d-1]+r[d+1]+r[d+f-1
1]+r[d+f]+r[d+f+1]<7){p[d]=0;continue}o=r[d-f-1]?g[d-f-1]:g[d],i=r[d-f]?g[d-f]:g[d],a=r[d-f+1]?g[d-f+1]:g[d],n=r[d-1]?g[d-1]:g[d],l=r[d+1]?g[d+1]:g[d],s=r[d+f-1]?g[d+f-1]:g[d],u=r[d+f]?g[d+f]:g[d],h=r[d+f+1]?g[d+f+1]:g[d]}else o=g[d-f-1],i=g[d-f],a=g[d-f+1],n=g[d-1],l=g[d+1],s=g[d+f-1],u=g[d+f],h=g[d+f+1];if(y[d]=a+l+l+h-(o+n+n+s),C[d]=s+u+u+h-(o+i+i+a),null!=b){let e=g[d],t=.5*(n+l)-e,r=.5*(i+u)-e;if("standard"===v)b[d]=-w*(t+r);else{let e=(-o+a+s-h)/4,f=(-n+l)/2,c=(i-u)/2,p=f*f,m=c*c,g=p+m;g&&(b[d]="profile"===v?w*(t*p+r*m+e*f*c)/g:-w*(t*m+r*p-e*f*c)/g)}}}}}return{outMask:m?p:null,dzxs:y,dzys:C,curvatures:b}}function u(e,t,r){for(let o=0;o<r;o++)e[o*t]=e[o*t+1],e[(o+1)*t-1]=e[(o+1)*t-2];for(let o=1;o<t-1;o++)e[o]=e[o+t],e[o+(r-1)*t]=e[o+(r-2)*t]}function h(e,t){if(!(0,a.AB)(e))return e;let{factor:r,sinZcosA:n,sinZsinA:h,cosZ:f,sinZcosAs:d,sinZsinAs:c,cosZs:p,weights:m}=l(t),[g,y]=r,C="traditional"===t.hillshadeType,{width:b,height:w}=e,v=new Uint8Array(b*w),{dzxs:S,dzys:T,outMask:A}=s(e);for(let e=1;e<w-1;e++){let t=e*b;for(let e=1;e<b-1;e++){let r=t+e;if(!A||A[r]){let e=S[r]*g,t=T[r]*y,o=Math.sqrt(1+e*e+t*t),i=0;if(C){let r=255*(f+h*t-n*e)/o;r<0&&(r=0),i=r}else{let r=c.length;for(let a=0;a<r;a++){let r=255*(p[a]+c[a]*t-d[a]*e)/o;r<0&&(r=0),i+=r*m[a]}}v[r]=255&i}}}return u(v,b,w),new o.A({width:b,height:w,pixels:[v],mask:A,pixelType:"u8",validPixelCount:e.validPixelCount,statistics:[new i.z(0,255)]})}function f(e,t,r,o){if(!(0,a.AB)(e)||!(0,a.AB)(t))return;let{min:i,max:n}=o,l=e.pixels[0],{pixels:s,mask:u}=t,h=s[0],f=255.00001/(n-i),d=new Uint8ClampedArray(h.length),c=new Uint8ClampedArray(h.length),p=new Uint8ClampedArray(h.length),m=r.length-1;for(let e=0;e<h.length;e++){if(u&&0===u[e])continue;let t=Math.floor((h[e]-i)*f),[o,a]=r[t<0?0:t>m?m:t],n=l[e],s=n*a,g=s*(1-Math.abs(o%2-1)),y=n-s;switch(Math.floor(o)){case 0:d[e]=s+y,c[e]=g+y,p[e]=y;break;case 1:d[e]=g+y,c[e]=s+y,p[e]=y;break;case 2:d[e]=y,c[e]=s+y,p[e]=g+y;break;case 3:d[e]=y,c[e]=g+y,p[e]=s+y;break;case 4:d[e]=g+y,c[e]=y,p[e]=s+y;break;case 5:case 6:d[e]=s+y,c[e]=y,p[e]=g+y}}e.pixels=[d,c,p],e.updateStatistics()}function d(e,t){if(!(0,a.AB)(e))return e;let r=t.zFactor,i=t.pixelSizePower??1,l=t.pixelSizeFactor??1,h=t.slopeType,f=t.isGCS,{x:d,y:c}=t.resolution,p=r/(8*d),m=r/(8*c);f&&1e-4>Math.abs(r-1)&&(p/=n,m/=n),"adjusted"===h&&(p=(r+d**i*l)/(8*d),m=(r+c**i*l)/(8*c));let{dzxs:g,dzys:y,outMask:C}=s(e),{width:b,height:w}=e,v=new Float32Array(b*w);for(let e=1;e<w-1;e++){let t=e*b;for(let e=1;e<b-1;e++){let r=t+e;if(!C||C[r]){let o=g[r]*p,i=y[r]*m,a=Math.sqrt(o*o+i*i);v[t+e]="percent-rise"===h?100*a:57.2957795*Math.atan(a)}}}u(v,b,w);let S=new o.A({width:b,height:w,pixels:[v],mask:C,pixelType:"f32",validPixelCount:e.validPixelCount});return S.updateStatistics(),S}function c(e,t={}){if(!(0,a.AB)(e))return e;let{resolution:r}=t,n=r?1/r.x:1,l=r?1/r.y:1,{dzxs:h,dzys:f,outMask:d}=s(e),{width:p,height:m}=e,g=new Float32Array(p*m);for(let e=1;e<m-1;e++){let t=e*p;for(let e=1;e<p-1;e++){let r=t+e;if(!d||d[r]){let o=h[r]*n,i=f[r]*l,a=-1;0===o&&0===i||((a=90-57.29578*Math.atan2(i,-o))<0&&(a+=360),360===a?a=0:a>360&&(a%=360)),g[t+e]=a}}}return u(g,p,m),new o.A({width:p,height:m,pixels:[g],mask:d,pixelType:"f32",validPixelCount:e.validPixelCount,statistics:[new i.z(-1,360)]})}function p(e,t){if(!(0,a.AB)(e))return e;let{curvatures:r,outMask:i}=s(e,t),{width:n,height:l}=e;u(r,n,l);let h=new o.A({width:n,height:l,pixels:[r],mask:i,pixelType:"f32",validPixelCount:e.validPixelCount});return h.updateStatistics(),h}function m(e,t,r){let{hillshadeType:o,altitude:i,azimuth:a,zFactor:n,pixelSizeFactor:l,pixelSizePower:s,slopeType:u}=e;return{hillshadeType:o,altitude:i,azimuth:a,zFactor:n,pixelSizePower:s,pixelSizeFactor:l,scalingType:"scaled"===u?"adjusted":"none",resolution:t,isGCS:r}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.