(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21021b"],{b71a:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return c}));var n=i("38a4"),a={};a.defaultNoDataValue=Object(n["g"])(-1/0),a.decode=function(e,t){var i=(t=t||{}).encodedMaskData||null===t.encodedMaskData,f=o(e,t.inputOffset||0,i),u=null!=t.noDataValue?Object(n["g"])(t.noDataValue):a.defaultNoDataValue,m=l(f,t.pixelType||Float32Array,t.encodedMaskData,u,t.returnMask),c={width:f.width,height:f.height,pixelData:m.resultPixels,minValue:f.pixels.minValue,maxValue:f.pixels.maxValue,noDataValue:u};return m.resultMask&&(c.maskData=m.resultMask),t.returnEncodedMask&&f.mask&&(c.encodedMaskData=f.mask.bitset?f.mask.bitset:null),t.returnFileInfo&&(c.fileInfo=s(f,u),t.computeUsedBitDepths&&(c.fileInfo.bitDepths=r(f))),c};var l=function(e,t,i,n,a){var l,s,r=0,o=e.pixels.numBlocksX,u=e.pixels.numBlocksY,m=Math.floor(e.width/o),c=Math.floor(e.height/u),d=2*e.maxZError;i=i||(e.mask?e.mask.bitset:null),l=new t(e.width*e.height),a&&i&&(s=new Uint8Array(e.width*e.height));for(var g,h,k=new Float32Array(m*c),x=0;x<=u;x++){var w=x!==u?c:e.height%u;if(0!==w)for(var p=0;p<=o;p++){var y=p!==o?m:e.width%o;if(0!==y){var V,B,v,b,U=x*e.width*c+p*m,D=e.width-y,M=e.pixels.blocks[r];if(M.encoding<2?(0===M.encoding?V=M.rawData:(f(M.stuffedData,M.bitsPerPixel,M.numValidPixels,M.offset,d,k,e.pixels.maxValue),V=k),B=0):v=2===M.encoding?0:M.offset,i)for(h=0;h>3],b<<=7&U),g=0;g>3]),128&b?(s&&(s[U]=1),l[U++]=M.encoding<2?V[B++]:v):(s&&(s[U]=0),l[U++]=n),b<<=1;U+=D}else if(M.encoding<2)for(h=0;h0){var s=new Uint8Array(Math.ceil(n.width*n.height/8)),r=(l=new DataView(e,t,n.mask.numBytes)).getInt16(0,!0),o=2,f=0;do{if(r>0)for(;r--;)s[f++]=l.getUint8(o++);else{var u=l.getUint8(o++);for(r=-r;r--;)s[f++]=u}r=l.getInt16(o,!0),o+=2}while(o0?1:0),g=c+(n.height%c>0?1:0);n.pixels.blocks=new Array(d*g);for(var h=1e9,k=0,x=0;x3)throw"Invalid block encoding ("+V.encoding+")";if(2!==V.encoding){if(0!==B&&2!==B){if(B>>=6,V.offsetType=B,2===B)V.offset=l.getInt8(1),p++;else if(1===B)V.offset=l.getInt16(1,!0),p+=2;else{if(0!==B)throw"Invalid block offset type";V.offset=l.getFloat32(1,!0),p+=4}if(h=Math.min(V.offset,h),1===V.encoding)if(B=l.getUint8(p),p++,V.bitsPerPixel=63&B,B>>=6,V.numValidPixelsType=B,2===B)V.numValidPixels=l.getUint8(p),p++;else if(1===B)V.numValidPixels=l.getUint16(p,!0),p+=2;else{if(0!==B)throw"Invalid valid pixel count type";V.numValidPixels=l.getUint32(p,!0),p+=4}}var v;if(t+=p,3!=V.encoding)if(0===V.encoding){var b=(n.pixels.numBytes-1)/4;if(b!==Math.floor(b))throw"uncompressed block has invalid length";v=new ArrayBuffer(4*b),new Uint8Array(v).set(new Uint8Array(e,t,4*b));for(var U=new Float32Array(v),D=0;D=t)o=f>>>c-t&u,c-=t;else{var h=t-c;o=(f&u)<>>(c=32-h)}l[r]=o